:root {
  --ink: #222f3b;
  --ink-soft: #454f66;
  --muted: #6b7387;
  --forest: #222f3b;
  --forest-2: #34435a;
  --accent: #7992d8;
  --mint: #e3e9fa;
  --mint-2: #eef1fb;
  --cream: #f6f5f0;
  --paper: #f5f5f5;
  --gold: #d99b45;
  --gold-soft: #fff1d9;
  --rose: #c96f66;
  --rose-soft: #fae9e6;
  --line: #dcdcdc;
  --line-dark: #c2c2c2;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(34, 47, 59, .04), 0 8px 24px rgba(34, 47, 59, .05);
  --shadow-md: 0 16px 50px rgba(34, 47, 59, .12);
  --radius: 18px;
  --radius-sm: 12px;
  --sidebar: 260px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 26px 18px 18px;
  background: #eef1f6;
  border-right: 1px solid var(--line);
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 25px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: var(--white); background: var(--forest); border-radius: 12px; }
.brand-mark svg, .brand-mark img { width: 23px; }
.brand strong, .brand small { display: block; }
.brand strong { font: 700 19px/1.1 "Poppins", sans-serif; letter-spacing: -.02em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.nav-label { margin: 11px 12px 8px; color: #868da3; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.main-nav { display: grid; gap: 3px; }
.nav-item { display: flex; align-items: center; gap: 11px; min-height: 45px; padding: 0 12px; color: var(--ink-soft); border-radius: 11px; font-size: 13.5px; font-weight: 600; transition: .18s ease; }
.nav-item:hover { color: var(--forest); background: rgba(255,255,255,.65); }
.nav-item.active { color: var(--forest); background: var(--white); box-shadow: 0 1px 8px rgba(34,47,59,.05); }
.nav-item svg { width: 19px; height: 19px; }
.nav-count { margin-left: auto; min-width: 24px; padding: 2px 7px; color: var(--forest); background: var(--mint); border-radius: 20px; font-size: 11px; text-align: center; }
.sidebar-support { margin-top: auto; padding: 14px 10px 16px; border-bottom: 1px solid var(--line-dark); }
.coach-mini { display: grid; grid-template-columns: 34px 1fr 8px; align-items: center; gap: 9px; margin-bottom: 10px; }
.coach-mini small, .coach-mini strong { display: block; }
.coach-mini small { color: var(--muted); font-size: 10px; }
.coach-mini strong { margin-top: 2px; font-size: 12px; }
.status-dot { width: 7px; height: 7px; background: #4ba77f; border: 2px solid #d9eee5; border-radius: 50%; }
.avatar { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; color: var(--white); background: var(--forest); border: 0; border-radius: 50%; font-size: 11px; font-weight: 700; }
.avatar-photo { background: linear-gradient(145deg, #d28f70, #76524a); }
.avatar.small { width: 32px; height: 32px; }
.portal-link { display: flex; align-items: center; gap: 8px; padding: 10px 12px; color: var(--muted); border-radius: 10px; font-size: 12px; font-weight: 600; transition: .15s ease; }
.portal-link:hover { color: var(--forest); background: rgba(255,255,255,.65); }
.portal-link svg { width: 15px; height: 15px; }
.user-menu { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 14px 10px 2px; text-align: left; background: transparent; border: 0; cursor: pointer; }
.user-menu strong, .user-menu small { display: block; }
.user-menu strong { font-size: 12px; }
.user-menu small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.chevron { color: var(--muted); }

#app-main { min-height: 100vh; margin-left: var(--sidebar); padding: 38px 46px 70px; outline: none; }
.page { width: min(1180px, 100%); margin: 0 auto; animation: pageIn .28s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(5px); } }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 8px; color: var(--forest-2); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); }
h1, h2, h3, h4 { margin: 0; font-family: "Poppins", sans-serif; letter-spacing: -.025em; }
h1 { max-width: 760px; font-size: clamp(30px, 4vw, 44px); line-height: 1.09; }
h2 { font-size: 22px; line-height: 1.2; }
h3 { font-size: 16px; line-height: 1.3; }
.lead { max-width: 690px; margin: 11px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 34px 0 15px; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card.compact { padding: 17px; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.card p:last-child { margin-bottom: 0; }
.hero-panel {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; padding: 32px;
  color: var(--white); border-radius: 24px; box-shadow: var(--shadow-md);
  background:
    linear-gradient(115deg, rgba(255,255,255,.06) 0%, transparent 38%),
    linear-gradient(295deg, rgba(255,255,255,.045) 0%, transparent 42%),
    var(--forest);
}
.hero-panel::after { content: ""; position: absolute; width: 300px; height: 300px; right: -100px; top: -125px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 50px rgba(255,255,255,.025), 0 0 0 100px rgba(255,255,255,.018); }
.hero-panel h1 { max-width: 620px; font-size: clamp(28px, 3.5vw, 42px); }
.hero-panel p { max-width: 620px; margin: 13px 0 23px; color: #cce0d9; font-size: 14px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-aside { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; }
.progress-orbit { position: relative; display: grid; place-items: center; width: 180px; height: 180px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.progress-orbit::before { content: ""; position: absolute; inset: 16px; border: 7px solid rgba(255,255,255,.12); border-top-color: #e7bd78; border-right-color: #e7bd78; border-radius: 50%; transform: rotate(25deg); }
.progress-orbit strong { font: 700 34px/1 "Poppins", sans-serif; }
.progress-orbit span { display: block; margin-top: 5px; color: #bdd4cc; font-size: 11px; text-align: center; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 17px; color: var(--white); background: var(--forest); border: 1px solid var(--forest); border-radius: 11px; font-size: 13px; font-weight: 700; cursor: pointer; transition: .18s ease; }
.button:hover { background: #171f28; transform: translateY(-1px); }
.button.secondary { color: var(--forest); background: var(--white); border-color: var(--line-dark); }
.button.secondary:hover { background: var(--mint-2); }
.button.warm { color: var(--ink); background: #f2c77f; border-color: #f2c77f; }
.button.light { color: var(--white); background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.24); }
.button.light:hover { background: rgba(255,255,255,.18); }
.button svg, .ghost-button svg { width: 17px; height: 17px; }
.ghost-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 12px; color: var(--forest); background: transparent; border: 1px solid var(--line-dark); border-radius: 9px; font-size: 12px; font-weight: 700; cursor: pointer; }
.ghost-button:hover { background: var(--white); }
.ghost-button.full { width: 100%; }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.icon-button svg { width: 18px; }
.text-button { padding: 0; color: var(--forest); background: none; border: 0; font-size: 12px; font-weight: 700; cursor: pointer; }

.metric-card { min-height: 125px; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.metric-icon { display: grid; place-items: center; width: 38px; height: 38px; color: var(--forest); background: var(--mint); border-radius: 11px; }
.metric-icon svg { width: 19px; }
.metric-card strong { display: block; margin-top: 15px; font: 700 26px/1 "Poppins", sans-serif; }
.metric-card p { margin: 6px 0 0; }
.delta { color: #397c65; background: var(--mint-2); padding: 4px 7px; border-radius: 20px; font-size: 10px; font-weight: 700; }
.tag { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; color: var(--forest); background: var(--mint); border-radius: 20px; font-size: 10px; font-weight: 700; }
.tag.gold { color: #80571d; background: var(--gold-soft); }
.tag.gray { color: var(--ink-soft); background: #edf0ef; }
.tag.rose { color: #8b413a; background: var(--rose-soft); }

.competency-list { display: grid; gap: 10px; }
.competency-row { display: grid; grid-template-columns: minmax(190px, 1.25fr) 2fr 90px; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.competency-row:last-child { border-bottom: 0; }
.competency-name strong, .competency-name small { display: block; }
.competency-name strong { font-size: 13px; }
.competency-name small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.level { color: var(--forest); font-size: 11px; font-weight: 700; text-align: right; }
.bar { overflow: hidden; height: 7px; background: #e8eeeb; border-radius: 10px; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--forest-2), #8fa3dc); border-radius: inherit; }
.bar.gold span { background: linear-gradient(90deg, #c98734, #efbe6a); }

.timeline { display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.timeline-item:last-child { border-bottom: 0; }
.timeline-dot { display: grid; place-items: center; width: 28px; height: 28px; color: var(--forest); background: var(--mint); border-radius: 9px; }
.timeline-dot svg { width: 15px; }
.timeline-item strong, .timeline-item small { display: block; }
.timeline-item strong { font-size: 12px; }
.timeline-item small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.timeline-item time { color: var(--muted); font-size: 10px; }

.story-card { display: flex; flex-direction: column; min-height: 230px; }
.story-card .story-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; }
.story-card h3 { margin-bottom: 8px; }
.story-card p { margin: 0; }
.story-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 17px; }
.story-score { color: var(--muted); font-size: 10px; }
.story-score b { color: var(--forest); }

.profile-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, .7fr); gap: 20px; }
.upload-zone { display: grid; place-items: center; padding: 27px; text-align: center; background: var(--mint-2); border: 1px dashed #a7c6ba; border-radius: 14px; }
.upload-zone svg { width: 28px; color: var(--forest); }
.upload-zone strong { margin-top: 10px; font-size: 13px; }
.upload-zone small { margin-top: 5px; color: var(--muted); }
.cv-context-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 18px; }
.notice { margin-top: 14px; padding: 14px; border: 1px solid #c9ddd5; border-radius: 12px; background: var(--mint-2); }
.notice p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.consent-choice { display: flex; gap: 11px; align-items: flex-start; margin-top: 15px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; }
.consent-choice input { margin-top: 3px; flex: 0 0 auto; }
.consent-choice span { display: grid; gap: 4px; }
.consent-choice small { color: var(--muted); line-height: 1.45; }
.cv-editor-list { display: grid; gap: 10px; margin-top: 8px; }
.cv-edit-row { display: grid; grid-template-columns: .65fr 1fr 1fr auto; gap: 8px; align-items: end; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--mint-2); }
.cv-edit-row.story { grid-template-columns: .75fr 1.6fr auto; }
.cv-edit-row .field { margin: 0; }
.empty-state { margin: 0; color: var(--muted); line-height: 1.6; }
.danger-text { color: #9b342d; }
.profile-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.fact { padding: 14px; background: #f8faf8; border: 1px solid var(--line); border-radius: 12px; }
.fact small, .fact strong { display: block; }
.fact small { color: var(--muted); font-size: 10px; }
.fact strong { margin-top: 5px; font-size: 12px; }
.check-list { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 9px; color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.check-list li::before { content: "✓"; display: grid; place-items: center; flex: 0 0 19px; height: 19px; color: var(--forest); background: var(--mint); border-radius: 50%; font-size: 10px; font-weight: 700; }

.practice-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; height: calc(100vh - 116px); min-height: 650px; }
.chat-card { display: flex; flex-direction: column; min-width: 0; padding: 0; overflow: hidden; }
.chat-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.coach-identity { display: flex; align-items: center; gap: 11px; }
.coach-identity strong, .coach-identity small { display: block; }
.coach-identity strong { font-size: 13px; }
.coach-identity small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.live-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; background: #4ba77f; border-radius: 50%; }
.chat-messages { flex: 1; overflow-y: auto; padding: 22px; background: linear-gradient(180deg, #fbfcfa, #f7faf7); }
.message { display: flex; gap: 9px; max-width: 78%; margin-bottom: 16px; }
.message.user { margin-left: auto; flex-direction: row-reverse; }
.message-bubble { padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 4px 15px 15px 15px; box-shadow: 0 2px 12px rgba(34,47,59,.04); font-size: 13px; line-height: 1.55; }
.message.user .message-bubble { color: var(--white); background: var(--forest); border-color: var(--forest); border-radius: 15px 4px 15px 15px; }
.message-meta { margin-top: 6px; color: var(--muted); font-size: 9px; }
.message.user .message-meta { color: #bcd2ca; text-align: right; }
.coach-note { margin: 8px 0 18px 45px; padding: 12px 14px; color: #735322; background: var(--gold-soft); border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; font-size: 11px; line-height: 1.5; }
.typing { display: inline-flex; gap: 3px; padding: 4px 0; }
.typing i { width: 5px; height: 5px; background: #9aaba6; border-radius: 50%; animation: typing 1s infinite alternate; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes typing { to { opacity: .25; transform: translateY(-2px); } }
.chat-composer { padding: 15px 18px 17px; background: var(--white); border-top: 1px solid var(--line); }
.composer-box { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; padding: 9px 9px 9px 14px; border: 1px solid var(--line-dark); border-radius: 14px; }
.composer-box:focus-within { border-color: #34435a; box-shadow: 0 0 0 3px rgba(52,67,90,.09); }
.composer-box textarea { width: 100%; max-height: 110px; min-height: 34px; resize: none; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 13px; line-height: 1.5; }
.send-button { display: grid; place-items: center; width: 36px; height: 36px; color: var(--white); background: var(--forest); border: 0; border-radius: 10px; cursor: pointer; }
.send-button svg { width: 17px; }
.send-button:disabled, .composer-box textarea:disabled { cursor: wait; opacity: .58; }
.composer-hint { margin: 7px 4px 0; color: var(--muted); font-size: 9px; }
.cycle-status { display: flex; align-items: center; gap: 7px; margin: 0 3px 9px; color: var(--muted); font-size: 10px; font-weight: 600; }
.cycle-status span { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 4px var(--gold-soft); }
.cycle-label { display: flex; align-items: center; gap: 7px; max-width: calc(78% - 45px); margin: 4px 0 7px 45px; color: var(--forest); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.cycle-label svg { width: 15px; height: 15px; }
.message.cycle-feedback .message-bubble { border-left: 4px solid var(--gold); background: #fffaf0; }
.message.cycle-reconstruction .message-bubble { border-left: 4px solid #559783; background: #f2faf6; }
.message.cycle-comparison .message-bubble { border-left: 4px solid #5179a3; background: #f4f8fc; }
.message.cycle-report .message-bubble { border-left: 4px solid var(--gold); background: linear-gradient(135deg, #fffaf0, #f2faf6); }
.request-error { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 8px 0 18px 45px; padding: 13px 14px; color: #7d3d37; background: var(--rose-soft); border: 1px solid #efd0cc; border-radius: 12px; }
.request-error strong, .request-error span { display: block; }
.request-error strong { font-size: 11px; }
.request-error span { margin-top: 3px; font-size: 10px; line-height: 1.45; }
.session-panel { overflow-y: auto; padding: 20px; }
.session-panel h3 { margin-bottom: 14px; }
.coverage-caption { margin: -5px 0 15px !important; font-size: 10px !important; }
.coverage { display: grid; gap: 12px; }
.coverage-item { display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; }
.coverage-item span { font-size: 11px; }
.coverage-item small { color: var(--muted); font-size: 9px; }
.coverage-item .bar { grid-column: 1 / -1; height: 5px; }
.coach-cycle-actions { display: grid; gap: 8px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.coach-cycle-actions h3 { margin-bottom: 3px; }
.cycle-button { display: grid; grid-template-columns: 29px 1fr; gap: 9px; align-items: center; width: 100%; padding: 10px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 11px; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.cycle-button:hover:not(:disabled) { background: var(--mint-2); border-color: #b9d4ca; transform: translateY(-1px); }
.cycle-button:disabled { cursor: not-allowed; opacity: .46; }
.cycle-button > svg { width: 18px; color: var(--forest); }
.cycle-button strong, .cycle-button small { display: block; }
.cycle-button strong { font-size: 10px; }
.cycle-button small { margin-top: 2px; color: var(--muted); font-size: 8px; line-height: 1.3; }
.story-structure { margin-top: 22px; }
.story-structure ol { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; counter-reset: item; }
.story-structure li { display: grid; grid-template-columns: 23px 1fr; gap: 8px; align-items: start; color: var(--muted); font-size: 10px; }
.story-structure li::before { counter-increment: item; content: counter(item); display: grid; place-items: center; width: 22px; height: 22px; color: var(--forest); background: var(--mint); border-radius: 7px; font-weight: 700; }

.simulation-hero { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: center; padding: 30px; background: linear-gradient(135deg, #eef1fb, #f5f5f5); border: 1px solid var(--line); border-radius: 24px; }
.simulation-steps { display: grid; gap: 10px; margin: 20px 0; }
.simulation-step { display: grid; grid-template-columns: 31px 1fr; gap: 10px; align-items: center; }
.simulation-step b { display: grid; place-items: center; width: 30px; height: 30px; color: var(--forest); background: var(--white); border: 1px solid var(--line); border-radius: 9px; font-size: 11px; }
.simulation-step span { color: var(--ink-soft); font-size: 12px; }
.simulation-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; height: calc(100vh - 116px); min-height: 650px; }
.simulation-chat { min-height: 650px; }
.simulation-side { display: flex; flex-direction: column; }
.simulation-focus-list { display: grid; gap: 10px; margin-top: 16px; }
.simulation-focus-list > div { display: grid; grid-template-columns: 28px 1fr; gap: 9px; align-items: start; padding: 10px; background: var(--mint-2); border-radius: 10px; }
.simulation-focus-list b { display: grid; place-items: center; width: 25px; height: 25px; color: var(--forest); background: var(--white); border-radius: 7px; font-size: 10px; }
.simulation-focus-list strong, .simulation-focus-list small { display: block; }
.simulation-focus-list strong { font-size: 10px; }
.simulation-focus-list small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.35; }
.privacy-reminder { margin-top: auto; padding: 13px; color: var(--ink-soft); background: var(--gold-soft); border-radius: 11px; }
.privacy-reminder strong { font-size: 10px; }
.privacy-reminder p { margin: 5px 0 0; font-size: 9px; line-height: 1.45; }
.simulation-finish-actions { display: flex; gap: 10px; padding: 16px 18px; background: var(--white); border-top: 1px solid var(--line); }
.interview-visual { display: grid; place-items: center; min-height: 270px; background: var(--forest); border-radius: 20px; }
.interview-avatar { display: grid; place-items: center; width: 120px; height: 120px; color: var(--white); background: linear-gradient(145deg, #d28f70, #76524a); border: 8px solid rgba(255,255,255,.12); border-radius: 50%; font: 700 26px "Poppins", sans-serif; }
.interview-visual strong { margin-top: 15px; color: var(--white); font-size: 13px; }
.interview-visual small { margin-top: 4px; color: #bfd4cd; font-size: 10px; }

.auth-mode .sidebar, .auth-mode .mobile-header { display: none; }
.auth-mode .app-shell { display: block; }
.auth-mode #app-main { min-height: 100vh; }
.login-page { display: grid; place-items: center; min-height: 100vh; padding: 28px; background: radial-gradient(circle at 80% 10%, #e3e9fa 0, transparent 35%), linear-gradient(145deg, #f7f7f8, #f2f2f2); }
.login-card { width: min(100%, 460px); padding: 36px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 24px 70px rgba(34,47,59,.14); }
.login-brand { display: inline-flex; margin-bottom: 28px; }
.login-card h1 { margin: 8px 0 12px; font-size: 28px; line-height: 1.15; }
.login-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }
.login-card form { display: grid; gap: 15px; margin-top: 24px; }
.login-card .field { margin: 0; }
.login-card input { width: 100%; }
.login-error { padding: 11px 12px; color: #8c3932; background: var(--rose-soft); border-radius: 9px; font-size: 11px; }
.login-help { display: block; margin-top: 18px; color: var(--muted); font-size: 9px; text-align: center; }

.progress-chart { display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 20px; min-height: 250px; padding: 26px 24px 16px; border-bottom: 1px solid var(--line); }
.chart-column { display: grid; grid-template-rows: 1fr auto auto; justify-items: center; height: 210px; gap: 7px; }
.chart-bar-wrap { align-self: end; width: 34px; height: 150px; display: flex; align-items: end; background: #edf1ef; border-radius: 10px 10px 3px 3px; }
.chart-bar { width: 100%; background: linear-gradient(180deg, #8fa3dc, var(--forest)); border-radius: 10px 10px 3px 3px; }
.chart-column strong { font-size: 11px; }
.chart-column small { color: var(--muted); font-size: 9px; text-align: center; }

.role-switch { display: inline-flex; padding: 4px; background: #edf1ef; border-radius: 11px; }
.role-switch button { min-height: 32px; padding: 0 12px; color: var(--muted); background: transparent; border: 0; border-radius: 8px; font-size: 11px; font-weight: 700; cursor: pointer; }
.role-switch button.active { color: var(--forest); background: var(--white); box-shadow: 0 1px 5px rgba(34,47,59,.08); }
.participant-table { width: 100%; border-collapse: collapse; }
.participant-table th { padding: 12px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 10px; text-align: left; text-transform: uppercase; }
.participant-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); font-size: 12px; }
.participant-table tr:last-child td { border-bottom: 0; }
.person { display: flex; align-items: center; gap: 9px; }

.modal-backdrop { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(20,26,33,.48); backdrop-filter: blur(4px); z-index: 80; animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { width: min(520px, 100%); max-height: 90vh; overflow-y: auto; padding: 25px; background: var(--white); border-radius: 20px; box-shadow: var(--shadow-md); }
.modal-header { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.modal-header p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.field { display: grid; gap: 6px; margin: 14px 0; }
.field label { font-size: 11px; font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; padding: 11px 12px; color: var(--ink); background: #fbfcfb; border: 1px solid var(--line-dark); border-radius: 10px; outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #34435a; box-shadow: 0 0 0 3px rgba(52,67,90,.09); }
.catalog-choice-list { display: grid; gap: 8px; max-height: 360px; overflow: auto; padding-right: 4px; }
.catalog-choice { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.catalog-choice:hover { background: var(--mint-2); border-color: #b9d4ca; }
.catalog-choice input { width: auto; margin-top: 3px; accent-color: var(--forest); }
.catalog-choice span { display: grid; gap: 3px; }
.catalog-choice small { color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }

@media (max-width: 720px) {
  .cv-context-list { grid-template-columns: 1fr; }
  .cv-edit-row, .cv-edit-row.story { grid-template-columns: 1fr; }
}
.toast-region { position: fixed; right: 24px; bottom: 24px; display: grid; gap: 8px; z-index: 100; }
.toast { min-width: 260px; padding: 13px 15px; color: var(--white); background: var(--ink); border-radius: 11px; box-shadow: var(--shadow-md); font-size: 12px; animation: toastIn .25s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }
.mobile-header { display: none; }

@media (max-width: 980px) {
  :root { --sidebar: 230px; }
  #app-main { padding: 30px 26px 60px; }
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-panel, .simulation-hero { grid-template-columns: 1fr; }
  .hero-aside { display: none; }
  .profile-layout, .practice-layout, .simulation-layout { grid-template-columns: 1fr; height: auto; }
  .chat-card { min-height: 680px; }
  .session-panel { display: none; }
}
@media (max-width: 760px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-md); }
  .sidebar.open { transform: translateX(0); }
  .mobile-header { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 16px; background: rgba(253,252,248,.93); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); z-index: 15; }
  .mobile-brand { font: 700 18px "Poppins", sans-serif; }
  .mobile-brand small { font-size: 10px; color: var(--muted); }
  #app-main { margin-left: 0; padding: 24px 16px 50px; }
  .page-header { flex-direction: column; }
  .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
  .hero-panel { padding: 24px; }
  .competency-row { grid-template-columns: 1fr 70px; }
  .competency-row .bar { grid-column: 1 / -1; grid-row: 2; }
  .message { max-width: 92%; }
  .simulation-hero { padding: 21px; }
  .interview-visual { min-height: 230px; }
  .profile-facts { grid-template-columns: 1fr; }
  .participant-table { min-width: 650px; }
  .table-scroll { overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
