@font-face {
  font-family: "Pretendard Variable";
  src: url("../fonts/pretendard/PretendardVariable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
}

:root {
  --blue: #2a45ee;
  --blue-600: #4e62d9;
  --blue-500: #6379ff;
  --blue-100: #e5edff;
  --blue-050: #f4f7ff;
  --sidebar: #fafbfd;
  --ink: #333333;
  --muted: #888888;
  --muted-dark: #636363;
  --line: #d2d2d2;
  --line-soft: #e8e8eb;
  --surface: #ffffff;
  --danger: #d76464;
  --danger-bg: #fff3f3;
  --success: #278064;
  --success-bg: #effaf6;
  --shadow: 0 14px 40px rgba(33, 47, 96, .08);
  --sidebar-width: 389px;
  --content-gutter: clamp(56px, 7.25vw, 139px);
  --radius: 10px;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: #fff; font-size: 16px; line-height: 1.5; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { color: #fff; background: var(--blue); }

.skip-link { position: fixed; z-index: 1000; left: 18px; top: -60px; padding: 10px 16px; border-radius: 8px; color: #fff; background: var(--blue); }
.skip-link:focus { top: 18px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.app-sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  min-height: 100vh;
  padding: 52px 32px 69px;
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
}
.brand {
  width: 284px;
  height: 42px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue);
  border: 1px solid var(--blue);
}
.brand-symbol { display: flex; align-items: center; gap: 3px; height: 20px; }
.brand-symbol i { display: block; width: 3px; border-radius: 3px; background: currentColor; }
.brand-symbol i:nth-child(1) { height: 9px; }
.brand-symbol i:nth-child(2) { height: 18px; }
.brand-symbol i:nth-child(3) { height: 13px; }
.brand-name { font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.sidebar-nav { margin-top: 108px; display: grid; gap: 19px; }
.sidebar-nav a,
.sidebar-account button {
  width: 324px;
  min-height: 59px;
  padding: 18px 25px;
  display: flex;
  align-items: center;
  gap: 21px;
  border: 0;
  border-radius: 8px;
  color: var(--muted-dark);
  background: transparent;
  font-size: 18px;
  font-weight: 650;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.sidebar-nav a:hover,
.sidebar-account button:hover { background: #f0f3fc; }
.sidebar-nav a.active { color: var(--blue-600); background: var(--blue-100); }
.sidebar-nav img, .sidebar-account img { width: 22px; height: 22px; object-fit: contain; }
.sidebar-nav a:not(.active) img { filter: grayscale(1); opacity: .78; }
.sidebar-nav a.active img { filter: brightness(0) saturate(100%) invert(37%) sepia(84%) saturate(1161%) hue-rotate(206deg) brightness(84%) contrast(91%); }
.sidebar-account { margin-top: auto; }
.sidebar-account button { text-align: left; }

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: var(--sidebar-width);
  height: 122px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 35px clamp(42px, 6.9vw, 132px) 0;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
}
.topbar-account { position: relative; }
.topbar-account > summary { list-style: none; }
.topbar-account > summary::-webkit-details-marker { display: none; }
.topbar-user {
  min-height: 44px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s ease;
}
.topbar-user:hover, .topbar-user:focus-visible, .topbar-account[open] .topbar-user { background: #f4f6fb; }
.topbar-user:focus-visible { outline: 3px solid rgba(42, 69, 238, .18); outline-offset: 2px; }
.topbar-avatar { width: 29px; height: 29px; }
.topbar-chevron { width: 24px; height: 24px; margin-left: 2px; transition: transform .18s ease; }
.topbar-account[open] .topbar-chevron { transform: rotate(180deg); }
.topbar-account-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  width: 164px;
  padding: 7px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(33, 47, 96, .14);
}
.topbar-account-menu button {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-radius: 7px;
  color: var(--muted-dark);
  background: transparent;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.topbar-account-menu button:hover, .topbar-account-menu button:focus-visible { color: var(--blue); background: var(--blue-050); }
.topbar-account-menu button:focus-visible { outline: 2px solid rgba(42, 69, 238, .18); outline-offset: 1px; }
.auth-header { position: absolute; z-index: 5; inset: 0 0 auto; padding: 38px clamp(28px, 5vw, 76px); }
.auth-header .brand { width: 208px; background: #fff; }

.workspace {
  width: calc(100% - var(--sidebar-width));
  margin-left: var(--sidebar-width);
  padding-right: var(--content-gutter);
  padding-left: var(--content-gutter);
}
.page-shell { min-height: 100vh; padding-top: 166px; padding-bottom: 90px; }
.report-shell { min-height: 100vh; padding-top: 153px; padding-bottom: 110px; }
.steps-wrap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.page-heading { margin-bottom: 65px; }
.page-heading h1, .report-heading h1, .qna-heading h1 {
  margin: 0;
  font-size: clamp(28px, 2vw, 32px);
  line-height: 1.25;
  letter-spacing: -.025em;
  font-weight: 750;
}
.page-heading > p:last-child, .report-heading > div > p:last-child, .qna-heading > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.015em;
}
.page-step { margin: 0 0 9px; color: var(--blue); font-size: 12px; font-weight: 750; letter-spacing: .08em; }
.page-heading-actions, .report-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.page-heading-actions .button, .report-heading .button { flex: 0 0 auto; }

.button {
  min-height: 50px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #fff;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, .record-button:focus-visible { outline: 3px solid rgba(42, 69, 238, .22); outline-offset: 2px; }
.button-primary { min-width: 190px; color: #fff; background: var(--blue); box-shadow: 0 8px 18px rgba(42, 69, 238, .14); }
.button-primary:hover { background: #1834df; box-shadow: 0 12px 24px rgba(42, 69, 238, .22); }
.button-secondary { color: var(--ink); border-color: var(--line); }
.button-muted { color: var(--ink); background: #ededf0; }
.button-full { width: 100%; }

.field { display: grid; gap: 9px; }
.field label, .scenario-label label, .scenario-label > span { font-size: 15px; font-weight: 650; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), textarea, select {
  width: 100%;
  min-height: 54px;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 116px; resize: vertical; line-height: 1.65; }
input::placeholder, textarea::placeholder { color: #a2a2a8; }
input:hover, textarea:hover, select:hover { border-color: #aaaab1; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42, 69, 238, .08); }
.errorlist { margin: 2px 0 0; padding: 0; list-style: none; color: #c94747; font-size: 13px; }
form > .errorlist { margin-bottom: 16px; padding: 13px 16px; border-radius: 8px; background: var(--danger-bg); }
.field > small { color: var(--muted); font-size: 12px; line-height: 1.55; }
.field > small ul { margin: 5px 0; padding-left: 18px; }

.messages {
  position: fixed;
  z-index: 80;
  top: 126px;
  right: 32px;
  width: min(390px, calc(100% - 40px));
}
.message { padding: 14px 17px; border: 1px solid #cbd5ff; border-radius: 9px; color: #2940b8; background: #f3f6ff; box-shadow: var(--shadow); font-size: 14px; }

/* Material */
.material-form { width: 100%; }
.title-field { max-width: 612px; margin-bottom: 32px; }
.drop-zone {
  position: relative;
  height: 280px;
  padding: 56px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 3px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.drop-zone:hover, .drop-zone.has-file { border-color: #9baaff; background: var(--blue-050); }
.drop-zone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-zone > img { width: 70px; height: 70px; margin-bottom: 2px; }
.drop-zone b { font-size: 20px; font-weight: 650; }
.drop-zone small { color: #5c5c5c; font-size: 14px; }
.selected-file { padding: 4px 10px; border-radius: 99px; color: var(--blue); background: var(--blue-100); font-size: 12px; font-weight: 650; }
.selected-file-row {
  min-height: 97px;
  margin-top: 42px;
  padding: 20px 35px;
  display: flex;
  align-items: center;
  gap: 39px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.selected-file-row > img { width: 27px; height: 27px; }
.selected-file-row > div { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.selected-file-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 500; }
.selected-file-row span { color: var(--muted); font-size: 13px; }
.selected-file-row button { width: 35px; height: 35px; margin-left: auto; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; }
.selected-file-row button img { width: 24px; height: 24px; }
.material-text-option, .text-fallback, .question-rationale, .presentation-popover { margin-top: 24px; }
.material-text-option summary, .text-fallback summary {
  width: max-content;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.material-text-option[open] summary, .text-fallback[open] summary { margin-bottom: 14px; }
.form-footer {
  margin-top: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.form-footer > p { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.form-footer > p span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: var(--blue-100); font-size: 12px; font-weight: 700; }
.align-end { justify-content: flex-end; }

/* Scenario */
.scenario-shell { max-width: 1531px; }
.scenario-shell .page-heading { margin-bottom: 45px; }
.scenario-form { border-top: 1px solid var(--line-soft); }
.scenario-row {
  min-height: 117px;
  padding: 25px 0;
  display: grid;
  grid-template-columns: minmax(220px, 29%) 1fr;
  gap: 46px;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
}
.scenario-label { display: flex; flex-direction: column; gap: 5px; }
.scenario-label small { color: var(--muted); font-size: 13px; }
.scenario-control { max-width: 720px; }
.scenario-control textarea { min-height: 92px; }
.intensity > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.intensity label {
  min-height: 52px;
  padding: 14px 12px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
}
.intensity label:has(input:checked) { color: var(--blue); border-color: var(--blue); background: var(--blue-050); font-weight: 650; }
.intensity input { width: 0; height: 0; margin: 0; opacity: 0; }
.switch-row { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; }
.switch { position: relative; width: 48px; height: 27px; border-radius: 99px; background: #c9c9cf; transition: background .15s ease; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .15s ease; }
.switch-row input:checked + .switch { background: var(--blue); }
.switch-row input:checked + .switch::after { transform: translateX(21px); }
.switch-row b { font-size: 14px; font-weight: 550; }
.scenario-material { margin-top: 20px; padding: 16px 18px; display: flex; gap: 20px; border-radius: 8px; background: #f6f7fa; font-size: 13px; }
.scenario-material span { color: var(--muted); }

/* Dashboard */
.dashboard-shell .page-heading { margin-bottom: 44px; }
.dashboard-summary { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; }
.dashboard-summary > div { min-height: 128px; padding: 25px 27px; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-content: center; }
.dashboard-summary > div + div { border-left: 1px solid var(--line-soft); }
.dashboard-summary span { grid-row: 1 / 3; color: var(--blue); font-size: 13px; font-weight: 750; }
.dashboard-summary b { font-size: 17px; }
.dashboard-summary small { margin-top: 4px; color: var(--muted); font-size: 13px; }
.history-section { margin-top: 61px; }
.section-heading { margin-bottom: 17px; display: flex; align-items: center; justify-content: space-between; }
.section-heading h2 { margin: 0; font-size: 22px; }
.section-heading > span { color: var(--muted); font-size: 14px; }
.rehearsal-list { border-top: 1px solid var(--ink); }
.rehearsal-row {
  min-height: 109px;
  padding: 20px 17px;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 110px 100px 110px;
  gap: 22px;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
}
.rehearsal-title { min-width: 0; display: flex; align-items: center; gap: 15px; }
.status-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #b5b5bb; }
.status-dot.status-presentation, .status-dot.status-qna { background: var(--blue); }
.status-dot.status-feedback { background: #ff9d47; }
.status-dot.status-completed { background: var(--success); }
.rehearsal-title h3 { margin: 0 0 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
.rehearsal-title p { margin: 0; color: var(--muted); font-size: 13px; }
.status-pill { width: max-content; padding: 5px 10px; border-radius: 99px; color: var(--muted-dark); background: #f1f1f3; font-size: 12px; font-weight: 650; }
.status-pill.status-presentation, .status-pill.status-qna { color: var(--blue); background: var(--blue-100); }
.status-pill.status-feedback { color: #a45b1a; background: #fff2e5; }
.status-pill.status-completed { color: var(--success); background: var(--success-bg); }
.rehearsal-row time { color: var(--muted); font-size: 13px; }
.rehearsal-row > a { color: var(--blue); font-size: 14px; font-weight: 650; text-align: right; }
.empty-state { min-height: 325px; padding: 60px 30px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; }
.empty-number { color: var(--blue); font-size: 14px; font-weight: 750; }
.empty-state h3 { margin: 13px 0 7px; font-size: 23px; }
.empty-state p { margin: 0 auto 25px; max-width: 560px; color: var(--muted); }

/* Presentation, Q&A, retry */
.practice-shell { display: flex; flex-direction: column; }
.practice-shell .page-heading { margin-bottom: 54px; }
.presentation-shell { padding-top: 148px; padding-bottom: 55px; }
.presentation-heading { margin-bottom: 25px !important; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.presentation-heading > div > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 18px; font-weight: 500; }
.material-type-badge { flex: 0 0 auto; padding: 7px 11px; border-radius: 99px; color: var(--blue); background: var(--blue-100); font-size: 12px; font-weight: 700; }
.presentation-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 22px; align-items: stretch; }
.material-viewer { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.viewer-header { min-height: 58px; padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.viewer-header > div { min-width: 0; display: flex; align-items: center; gap: 10px; }
.viewer-header span { flex: 0 0 auto; color: var(--blue); font-size: 12px; font-weight: 700; }
.viewer-header b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.viewer-header > p { margin: 0; flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.viewer-stage { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; background: #202229; outline: none; touch-action: pan-y; }
.viewer-stage:focus-visible { box-shadow: inset 0 0 0 3px var(--blue-500); }
.viewer-stage > img { width: 100%; height: 100%; object-fit: contain; background: #202229; transition: opacity .15s ease; }
.viewer-stage > img.is-loading { opacity: .28; }
.viewer-loader { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; background: rgba(23, 25, 31, .5); font-size: 12px; }
.viewer-loader i { width: 27px; height: 27px; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: viewer-spin .8s linear infinite; }
.viewer-error { position: absolute; z-index: 3; inset: 0; padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; background: #2a2d35; text-align: center; }
.viewer-error b { font-size: 14px; }
.viewer-error button { padding: 7px 12px; border: 1px solid rgba(255,255,255,.45); border-radius: 99px; color: #fff; background: transparent; cursor: pointer; }
.viewer-controls { min-height: 56px; padding: 8px 18px; display: flex; align-items: center; justify-content: center; gap: 15px; }
.viewer-nav { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--blue); background: #fff; font-size: 18px; cursor: pointer; }
.viewer-nav:hover:not(:disabled) { border-color: var(--blue); background: var(--blue-050); }
.viewer-nav:disabled { color: #b9bac1; background: #f5f5f6; cursor: not-allowed; }
.viewer-page { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.viewer-page input { width: 45px !important; min-height: 36px !important; padding: 5px 6px !important; text-align: center; font-weight: 650; -moz-appearance: textfield; }
.viewer-page input::-webkit-inner-spin-button { appearance: none; }
.presentation-brief { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfd; }
.brief-label { display: block; margin-bottom: 20px; color: var(--blue); font-size: 12px; font-weight: 750; }
.rehearsal-context { max-width: 890px; margin: 0; }
.rehearsal-context > div { min-height: 54px; display: grid; grid-template-columns: 92px 1fr; gap: 8px; align-items: start; }
.rehearsal-context dt { color: var(--muted); font-size: 12px; }
.rehearsal-context dd { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.55; }
.presentation-transcript { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.presentation-transcript summary { color: var(--blue); font-size: 12px; font-weight: 650; cursor: pointer; }
.presentation-transcript p { max-height: 150px; margin: 10px 0 0; overflow: auto; color: var(--muted-dark); font-size: 12px; line-height: 1.6; }
.material-unavailable, .material-text-reference { min-height: 420px; padding: 35px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: #fafbfd; }
.material-unavailable > span, .material-text-reference > span { color: var(--blue); font-size: 12px; font-weight: 700; }
.material-unavailable h2, .material-text-reference h2 { margin: 10px 0; font-size: 21px; }
.material-unavailable p, .material-text-reference p { margin: 0; color: var(--muted-dark); font-size: 13px; line-height: 1.75; }
.speech-form { width: 100%; margin-top: auto; padding-top: 52px; }
.presentation-recorder { position: sticky; z-index: 12; bottom: 0; margin-top: 0; padding-top: 22px; padding-bottom: 7px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 18px); }
.recorder-input-bar {
  min-height: 80px;
  padding: 7px 7px 7px 25px;
  display: flex;
  align-items: center;
  gap: 19px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(40, 50, 90, .04);
}
.recorder-copy { min-width: 245px; display: flex; align-items: center; gap: 15px; }
.record-status { font-size: 15px; font-weight: 500; }
.record-time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.wave-bars { flex: 1; height: 34px; display: flex; align-items: center; justify-content: flex-end; gap: 5px; opacity: 0; }
.wave-bars i { width: 2px; height: 7px; border-radius: 3px; background: var(--blue); }
.wave-bars i:nth-child(3n) { height: 19px; }
.wave-bars i:nth-child(3n+1) { height: 12px; }
.recorder.is-recording .wave-bars { opacity: .75; }
.recorder.is-recording .wave-bars i { animation: wave .7s ease-in-out infinite alternate; }
.record-button {
  position: relative;
  flex: 0 0 auto;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
}
.record-button img { width: 25px; height: 25px; filter: brightness(0) invert(1); }
.record-button.is-ready::after { content: ""; position: absolute; width: 8px; height: 8px; margin: 44px 0 0 44px; border: 2px solid #fff; border-radius: 50%; background: var(--success); }
.stop-button { background: #e24f4f; }
.stop-button span { width: 18px; height: 18px; border-radius: 3px; background: #fff; }
.recorder audio { width: min(520px, 100%); height: 38px; margin: 14px 0 0 24px; }
.audio-input { display: none; }
.audio-source-actions { margin: 12px 24px 0; display: flex; align-items: center; gap: 12px; }
.audio-upload-button {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted-dark);
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.audio-upload-button:hover { border-color: var(--blue); color: var(--blue); }
.audio-upload-button:focus-visible { outline: 3px solid rgba(75, 99, 255, .18); outline-offset: 2px; }
.audio-upload-button:disabled { opacity: .45; cursor: not-allowed; }
.audio-upload-button img { width: 18px; height: 18px; }
.audio-upload-help { color: var(--muted); font-size: 12px; }
.audio-selection {
  width: min(520px, calc(100% - 48px));
  min-height: 50px;
  margin: 12px 24px 0;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #dce1ff;
  border-radius: 9px;
  background: #f7f8ff;
}
.audio-selection[hidden] { display: none; }
.audio-selection > div { min-width: 0; display: flex; align-items: center; gap: 10px; }
.audio-selection img { width: 20px; height: 20px; }
.audio-selection span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.audio-selection b { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.audio-selection small { color: var(--muted); font-size: 11px; }
.audio-selection button { padding: 6px; border: 0; color: var(--muted-dark); background: none; font-size: 12px; cursor: pointer; }
.audio-client-error, .audio-server-errors { margin: 8px 24px 0; color: #cf3838; font-size: 12px; }
.audio-server-errors ul { margin: 0; padding-left: 18px; }
.text-fallback { margin: 14px 0 0 24px; }
.text-fallback .field textarea { max-width: 760px; min-height: 140px; }
.speech-actions { margin-top: 20px; display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.speech-hint { margin-right: auto; color: var(--muted); font-size: 13px; }

.qna-shell { min-height: 100vh; padding-top: 166px; padding-bottom: 70px; display: flex; flex-direction: column; }
.qna-heading { margin-bottom: 46px; }
.qna-heading h1 span { color: var(--blue); }
.conversation { width: 100%; display: flex; flex-direction: column; gap: 28px; }
.message-row { display: flex; align-items: flex-start; gap: 13px; }
.message-row > img { width: 44px; height: 44px; flex: 0 0 auto; }
.message-row > div { max-width: min(780px, 72%); }
.message-row b { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 650; }
.message-row p { margin: 0; padding: 17px 21px; border-radius: 4px 14px 14px 14px; background: #f1f1f3; font-size: 16px; line-height: 1.65; }
.user-message { justify-content: flex-end; }
.user-message > div { display: flex; flex-direction: column; align-items: flex-end; }
.user-message p { color: #27326d; background: #ecf2ff; border-radius: 14px 4px 14px 14px; }
.question-rationale { margin: 9px 0 0 8px; color: var(--muted); font-size: 12px; }
.question-rationale summary { color: var(--blue); cursor: pointer; }
.question-rationale span { display: block; margin-top: 6px; }
.presentation-popover { position: relative; width: max-content; margin-top: 35px; }
.presentation-popover summary { padding: 8px 14px; list-style: none; border: 1px solid var(--blue-500); border-radius: 99px; color: var(--blue); font-size: 12px; font-weight: 650; cursor: pointer; }
.presentation-popover summary::before { content: "\002B"; margin-right: 5px; }
.presentation-popover[open] summary { color: #fff; background: var(--blue-500); }
.presentation-popover[open] summary::before { content: "\2212"; }
.presentation-popover > div { position: absolute; z-index: 6; bottom: 42px; left: 0; width: min(620px, calc(100vw - var(--sidebar-width) - 60px)); max-height: 240px; padding: 21px; overflow: auto; border: 1px solid #cbd5ff; border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.presentation-popover > div b { color: var(--blue); font-size: 13px; }
.presentation-popover > div p { margin: 8px 0 0; color: var(--muted-dark); font-size: 13px; line-height: 1.7; }
.qna-speech-form { margin-top: auto; padding-top: 32px; }
.retry-question { padding: 26px 30px; border: 1px solid var(--line); border-radius: 12px; }
.retry-question > span { color: var(--blue); font-size: 13px; font-weight: 750; }
.retry-question h2 { margin: 8px 0 0; font-size: 21px; line-height: 1.5; }
.retry-previous { margin-top: 20px; padding: 22px 25px; border-radius: 10px; background: #f5f5f7; }
.retry-previous span { color: var(--muted); font-size: 12px; font-weight: 650; }
.retry-previous p { margin: 8px 0 0; line-height: 1.7; }

/* Reports */
.report-heading { margin-bottom: 27px; }
.report-heading > div > p:last-child { font-size: 18px; }
.report-meta { margin-bottom: 25px; display: flex; gap: 28px; color: var(--muted); font-size: 13px; }
.report-meta span + span { padding-left: 28px; border-left: 1px solid var(--line); }
.report-meta b { margin-left: 8px; color: var(--ink); font-weight: 550; }
.report-card { border: 1px solid #cbcbcb; border-radius: 14px; background: #fff; }
.overview-card {
  min-height: 235px;
  padding: 31px 36px;
  display: grid;
  grid-template-columns: 180px minmax(300px, 1fr) minmax(300px, .9fr);
  gap: 34px;
  align-items: center;
}
.overview-impact { height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid var(--line-soft); }
.overview-impact strong { color: var(--blue); font-size: 50px; line-height: 1; letter-spacing: -.04em; }
.overview-impact span { margin-top: 10px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.overview-summary > span { color: var(--blue); font-size: 12px; font-weight: 700; }
.overview-summary h2 { margin: 9px 0 13px; font-size: 19px; line-height: 1.55; }
.strengths { display: grid; gap: 5px; }
.strengths p { margin: 0; display: flex; align-items: center; gap: 7px; color: var(--muted-dark); font-size: 13px; }
.strengths img { width: 17px; height: 17px; }
.focus-bars { display: grid; gap: 12px; }
.focus-bars > div { display: grid; grid-template-columns: 55px 1fr 35px; align-items: center; gap: 11px; font-size: 12px; }
.focus-bars i { position: relative; height: 7px; overflow: hidden; border-radius: 99px; background: #eceef5; }
.focus-bars i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--blue-500); }
.focus-bars b { color: var(--blue); font-weight: 650; }
.focus-bars p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.feedback-columns { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.feedback-panel { padding: 29px; }
.feedback-panel > header { padding-bottom: 21px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line-soft); }
.panel-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: var(--blue-100); font-size: 14px; font-weight: 750; }
.panel-icon.strategy { font-size: 18px; }
.feedback-panel h2, .qna-detail h2, .comparison-notes h2 { margin: 0; font-size: 20px; }
.feedback-panel header p, .qna-detail header p, .comparison-notes header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.improvement-list > article { padding: 24px 0; }
.improvement-list > article + article { border-top: 1px solid var(--line-soft); }
.item-heading { display: flex; align-items: flex-start; gap: 11px; }
.item-heading > span { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: var(--blue); font-size: 10px; font-weight: 700; }
.item-heading h3 { margin: 0; font-size: 17px; }
.item-heading p { margin: 4px 0 15px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.change-row, .evidence { margin-top: 8px; padding: 13px 15px; border-radius: 8px; }
.change-row small, .evidence small { display: block; margin-bottom: 5px; font-size: 10px; font-weight: 750; }
.change-row p, .evidence p { margin: 0; font-size: 13px; line-height: 1.55; }
.change-row.before { color: #954545; background: var(--danger-bg); }
.change-row.after { color: #254ab9; background: #eef3ff; }
.evidence { color: var(--muted-dark); background: #f4f4f6; }
.item-action { margin: 13px 0 0; color: var(--muted-dark); font-size: 12px; line-height: 1.6; }
.item-action b { margin-right: 8px; color: var(--ink); }
.qna-detail { margin-top: 22px; padding: 29px; }
.qna-detail > header { padding-bottom: 21px; border-bottom: 1px solid var(--line-soft); }
.qna-detail > article { padding: 23px 0; display: grid; grid-template-columns: 45px 1fr; gap: 14px; }
.qna-detail > article + article { border-top: 1px solid var(--line-soft); }
.qna-number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: var(--blue-100); font-size: 12px; font-weight: 750; }
.qna-detail h3 { margin: 0 0 8px; font-size: 16px; }
.qna-detail article p { margin: 0; padding: 13px 16px; border-radius: 8px; color: var(--muted-dark); background: #f5f5f7; font-size: 13px; line-height: 1.6; }
.retry-banner { margin-top: 22px; padding: 31px; display: flex; align-items: center; justify-content: space-between; gap: 30px; background: var(--blue-050); border-color: #cad5ff; }
.retry-banner > div > span { color: var(--blue); font-size: 12px; font-weight: 700; }
.retry-banner h2 { margin: 7px 0 5px; font-size: 18px; line-height: 1.45; }
.retry-banner p { margin: 0; color: var(--muted); font-size: 13px; }

.comparison-result { padding: 38px; text-align: center; }
.result-status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; color: var(--muted-dark); background: #f0f0f2; font-size: 13px; font-weight: 650; }
.result-status.improved { color: var(--success); background: var(--success-bg); }
.result-status img { width: 19px; height: 19px; }
.comparison-result > h2 { margin: 19px auto 29px; max-width: 720px; font-size: 23px; line-height: 1.55; }
.comparison-question { padding: 18px 20px; display: flex; align-items: flex-start; gap: 12px; border-radius: 9px; background: #f5f5f7; text-align: left; }
.comparison-question span { color: var(--blue); font-size: 13px; font-weight: 750; }
.comparison-question p { margin: 0; font-weight: 600; }
.answer-comparison { margin-top: 18px; display: grid; grid-template-columns: 1fr 34px 1fr; gap: 12px; align-items: stretch; text-align: left; }
.answer-comparison article { padding: 22px; border-radius: 10px; }
.answer-comparison article.before { background: var(--danger-bg); }
.answer-comparison article.after { background: #eef3ff; }
.answer-comparison small { color: var(--muted); font-size: 11px; font-weight: 750; }
.answer-comparison p { margin: 8px 0 0; font-size: 15px; line-height: 1.7; }
.compare-arrow { display: grid; place-items: center; color: var(--blue); font-size: 20px; }
.comparison-notes { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.comparison-notes > section { min-height: 220px; padding: 29px; }
.comparison-notes header { padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.comparison-notes ul { margin: 17px 0 0; padding: 0; display: grid; gap: 13px; list-style: none; }
.comparison-notes li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.comparison-notes li img { width: 17px; height: 17px; margin-top: 2px; }
.next-focus > p { margin: 21px 0 0; color: var(--blue); font-size: 16px; font-weight: 600; line-height: 1.65; }
.report-completion { margin-top: 35px; display: flex; justify-content: center; gap: 12px; }

/* Figma result report · node 1:518 */
.figma-result-shell { padding-top: 164px; padding-bottom: 112px; }
.result-heading { min-height: 89px; display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.result-heading h1 { margin: 0; font-size: 32px; line-height: 1.2; letter-spacing: -.025em; }
.result-heading > div:first-child > p { margin: 9px 0 0; color: var(--muted); font-size: 22px; font-weight: 500; }
.result-heading-actions { margin-top: 35px; display: flex; align-items: center; gap: 10px; }
.result-action {
  height: 51px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.result-action-muted { min-width: 163px; background: #f1f1f3; }
.result-action-download { min-width: 189px; border-color: #cbcbcb; }
.result-action-download img { width: 16px; height: 16px; }
.result-action-primary { min-width: 190px; color: #fff; background: var(--blue); }
.result-action:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(33, 47, 96, .08); }
.result-action:focus-visible, .result-home-button:focus-visible, .result-audio-button:focus-visible, .result-evidence-audio:focus-visible { outline: 3px solid rgba(42, 69, 238, .2); outline-offset: 2px; }
.result-meta { min-height: 49px; padding-top: 10px; display: flex; align-items: flex-start; gap: 38px; color: #333; font-size: 14px; }
.result-meta span { display: flex; gap: 18px; }
.result-meta b { color: #333; font-weight: 700; }
.result-card { border: 1px solid #cbcbcb; border-radius: 14px; background: #fff; }
.result-overview {
  min-height: 238px;
  padding: 39px 48px;
  display: grid;
  grid-template-columns: 335px 320px minmax(0, 1fr);
  align-items: center;
}
.result-overall { min-height: 135px; padding-right: 34px; border-right: 1px solid #d7d7d7; }
.result-overall > span { font-size: 14px; font-weight: 700; }
.result-score { height: 74px; display: flex; align-items: center; }
.result-score strong { color: var(--blue); font-size: 55px; line-height: 1; letter-spacing: -.04em; }
.result-score small { margin: 21px 0 0 5px; color: #aeaeae; font-size: 25px; font-weight: 650; }
.result-overall > p { margin: 0; display: flex; align-items: center; gap: 7px; font-size: 18px; font-weight: 650; }
.result-overall > p img { width: 17px; height: 17px; }
.result-overall > small { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; }
.result-score-bars { min-height: 135px; padding: 0 29px 0 31px; display: grid; align-content: center; gap: 5px; border-right: 1px solid #d7d7d7; }
.result-score-bars > div { display: grid; grid-template-columns: 39px 1fr 23px; align-items: center; gap: 14px; font-size: 14px; font-weight: 650; }
.result-score-bars i { height: 7px; overflow: hidden; border-radius: 99px; background: #e9e9e9; }
.result-score-bars em { height: 100%; display: block; border-radius: inherit; background: var(--blue-500); }
.result-score-bars b { color: var(--blue); font-size: 14px; }
.result-tip { padding-left: 33px; }
.result-tip h2 { margin: 0 0 10px; display: flex; align-items: center; gap: 9px; font-size: 18px; }
.result-tip h2 img { width: 18px; height: 18px; }
.result-tip p { margin: 0; color: #333; font-size: 18px; line-height: 1.62; letter-spacing: -.03em; }
.result-improvements { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 19px; align-items: start; }
.result-improvement-panel { min-height: 682px; padding: 24px 32px 5px; }
.result-improvement-panel > h2 { margin: 0 0 20px 4px; font-size: 22px; }
.result-improvement-list > article { min-height: 177px; padding: 0 0 20px; }
.result-improvement-list > article + article { padding-top: 20px; border-top: 1px solid #e8e8e8; }
.result-change { min-height: 54px; padding: 11px 17px; display: grid; grid-template-columns: 55px minmax(0, 1fr); gap: 12px; align-items: start; border-radius: 10px; }
.result-change + .result-change { margin-top: 13px; }
.result-change b { padding-top: 3px; font-size: 14px; line-height: 1.55; letter-spacing: -.03em; }
.result-change p { margin: 0; font-size: 16px; line-height: 1.75; letter-spacing: -.03em; overflow-wrap: anywhere; }
.result-change.before { color: #852e2e; background: #fef2f2; }
.result-change.before b { color: #ec6e6e; }
.expression-panel .result-change.after { color: #2e5485; background: #f2f9fe; }
.expression-panel .result-change.after b { color: #5a9cee; }
.delivery-panel .result-change.after { color: #39733b; background: #f0faef; }
.delivery-panel .result-change.after b { color: #55aa59; }
.result-explanation { margin: 8px 10px 0; color: #70727f; font-size: 12px; line-height: 1.65; letter-spacing: -.03em; }
.result-explanation strong { color: #575967; font-weight: 700; }
.result-empty { padding: 40px 5px; color: var(--muted); font-size: 14px; }
.result-qna-card { margin-top: 28px; padding: 30px 37px; }
.result-qna-card > header h2, .result-retry-card > h2 { margin: 0; font-size: 22px; }
.result-qna-card > header p { margin: 5px 0 0; color: var(--muted); font-size: 16px; }
.result-qna-card > header .result-audio-status { min-height: 20px; margin-top: 7px; color: var(--blue); font-size: 13px; font-weight: 600; }
.result-qna-card > header .result-audio-status:empty { display: none; }
.result-qna-card > header .result-audio-status.is-error { color: var(--danger); }
.result-qna-list { margin-top: 27px; display: grid; gap: 39px; }
.result-qna-group { display: grid; gap: 13px; }
.result-question { min-width: 0; display: flex; align-items: flex-start; gap: 15px; }
.result-question > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: #556cf7; font-size: 16px; font-weight: 750; }
.result-question h3 { margin: 0; min-width: 0; font-size: 20px; font-weight: 550; line-height: 1.6; letter-spacing: -.02em; }
.result-feedback-row { min-height: 104px; padding: 20px 28px 20px 22px; display: grid; grid-template-columns: 57px minmax(0, 1fr) 58px; align-items: center; gap: 28px; border-radius: 20px; background: #fafafa; }
.result-feedback-tag { min-height: 31px; padding: 4px 9px; display: grid; place-items: center; border-radius: 99px; font-size: 14px; font-weight: 650; text-align: center; }
.result-feedback-row > div { min-width: 0; }
.result-feedback-row h4, .result-retry-row h4 { margin: 0; color: #333; font-size: 18px; font-weight: 650; line-height: 1.55; overflow-wrap: anywhere; }
.result-feedback-row h4 { display: flex; align-items: center; gap: 10px; }
.result-evidence-audio { position: relative; width: 21px; height: 21px; padding: 0; display: grid; place-items: center; flex: 0 0 auto; border: 0; border-radius: 50%; color: #507cff; background: transparent; cursor: pointer; }
.result-evidence-audio img { width: 21px; height: 21px; }
.tone-expression .result-evidence-audio { color: #ff9232; }
.tone-clarity .result-evidence-audio { color: #ad50ff; }
.result-evidence-audio.is-loading img, .result-evidence-audio.is-playing img { display: none; }
.result-evidence-audio.is-loading::after { content: ""; width: 13px; height: 13px; border: 2px solid rgba(80, 124, 255, .25); border-top-color: currentColor; border-radius: 50%; animation: viewer-spin .7s linear infinite; }
.result-evidence-audio.is-playing::after { content: ""; width: 8px; height: 8px; border-radius: 1px; background: currentColor; }
.result-evidence-audio:disabled { cursor: wait; }
.result-feedback-row p, .result-retry-row p { margin: 1px 0 0; color: #636363; font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.tone-expression .result-feedback-tag { color: #a55a0f; background: #ffdd78; }
.tone-expression .result-audio-button { background: #ff9a34; }
.tone-flow .result-feedback-tag, .tone-answer .result-feedback-tag { color: #525b81; background: rgba(201, 232, 255, .82); }
.tone-flow .result-audio-button, .tone-answer .result-audio-button { background: #507cff; }
.tone-clarity .result-feedback-tag { color: #6b5281; background: rgba(226, 201, 255, .82); }
.tone-clarity .result-audio-button { background: #ad50ff; }
.result-audio-button { position: relative; width: 58px; height: 58px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; }
.result-audio-button img { width: 24px; height: 24px; }
.result-audio-button.is-static { opacity: .82; cursor: default; }
.result-audio-button.is-loading img, .result-audio-button.is-playing img { display: none; }
.result-audio-button.is-loading::after { content: ""; width: 19px; height: 19px; border: 3px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: viewer-spin .7s linear infinite; }
.result-audio-button.is-playing::after { content: ""; width: 15px; height: 15px; border-radius: 2px; background: #fff; }
.result-audio-button:disabled { cursor: wait; }
.result-retry-card { margin-top: 28px; padding: 30px 37px; }
.result-retry-card > .result-question { margin-top: 27px; }
.result-retry-rows { margin-top: 16px; display: grid; gap: 17px; }
.result-retry-row { min-height: 104px; padding: 20px 40px 20px 22px; display: grid; grid-template-columns: 57px minmax(0, 1fr) 55px; align-items: center; gap: 28px; border-radius: 20px; background: #fafafa; }
.result-retry-row > span { min-height: 31px; padding: 4px 9px; display: grid; place-items: center; border-radius: 99px; font-size: 14px; font-weight: 650; }
.result-retry-row.before > span { color: #a55a0f; background: #ffdd78; }
.result-retry-row.after > span { color: #525b81; background: rgba(201, 232, 255, .82); }
.result-retry-row > strong { color: var(--blue-500); font-size: 26px; text-align: right; }
.result-retry-row.before > strong { color: #ff9232; }
.result-retry-prompt { margin-top: 27px; padding: 25px 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 30px; align-items: center; border-radius: 20px; background: #fafafa; }
.result-retry-prompt .result-question { grid-column: 1 / -1; }
.result-retry-prompt > p { margin: 0 0 0 49px; color: #636363; font-size: 15px; }
.result-footer { padding-top: 92px; display: flex; justify-content: center; }
.result-home-button { width: 234px; height: 50px; display: grid; place-items: center; border-radius: 99px; color: #fff; background: var(--blue); font-size: 18px; font-weight: 650; }

@media (max-width: 1400px) {
  .result-overview { grid-template-columns: 280px 285px minmax(0, 1fr); padding-inline: 36px; }
  .result-overall { padding-right: 25px; }
  .result-score-bars { padding-inline: 25px; }
  .result-tip { padding-left: 25px; }
  .result-tip p { font-size: 16px; }
}

@media (max-width: 1150px) {
  .result-overview { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .result-score-bars { border-right: 0; }
  .result-tip { grid-column: 1 / -1; padding: 23px 0 0; border-top: 1px solid #d7d7d7; }
  .result-improvements { grid-template-columns: 1fr; }
  .result-improvement-panel { min-height: 0; }
}

@media (max-width: 760px) {
  .figma-result-shell { padding-top: 112px; padding-bottom: 65px; }
  .result-heading { min-height: 0; flex-direction: column; }
  .result-heading h1 { font-size: 27px; }
  .result-heading > div:first-child > p { font-size: 17px; }
  .result-heading-actions { width: 100%; margin-top: 2px; }
  .result-action { width: 100%; min-width: 0; padding-inline: 12px; font-size: 13px; }
  .result-meta { min-height: 0; margin: 25px 0 18px; padding: 0; flex-wrap: wrap; gap: 8px 20px; font-size: 12px; }
  .result-meta span { gap: 7px; }
  .result-overview { padding: 25px 20px; grid-template-columns: 1fr; }
  .result-overall { padding: 0 0 24px; border-right: 0; border-bottom: 1px solid #d7d7d7; }
  .result-score-bars { padding: 0 0 24px; border-bottom: 1px solid #d7d7d7; }
  .result-tip { grid-column: auto; padding-top: 0; border-top: 0; }
  .result-improvement-panel { padding: 22px 16px 4px; }
  .result-improvement-panel > h2, .result-qna-card > header h2, .result-retry-card > h2 { font-size: 20px; }
  .result-change { padding: 10px 12px; grid-template-columns: 47px 1fr; gap: 8px; }
  .result-change p { font-size: 14px; }
  .result-qna-card, .result-retry-card { padding: 23px 16px; }
  .result-qna-card > header p { font-size: 13px; }
  .result-question { gap: 10px; }
  .result-question > span { width: 30px; height: 30px; font-size: 13px; }
  .result-question h3 { font-size: 16px; }
  .result-feedback-row, .result-retry-row { padding: 15px; grid-template-columns: 50px minmax(0, 1fr); gap: 10px 14px; border-radius: 14px; }
  .result-feedback-row h4, .result-retry-row h4 { font-size: 15px; }
  .result-feedback-row p, .result-retry-row p { font-size: 13px; }
  .result-audio-button { width: 44px; height: 44px; grid-column: 2; justify-self: end; }
  .result-retry-row > strong { grid-column: 2; font-size: 22px; }
  .result-retry-prompt { padding: 18px; grid-template-columns: 1fr; }
  .result-retry-prompt .result-question { grid-column: auto; }
  .result-retry-prompt > p { margin-left: 40px; }
  .result-retry-prompt .result-action { margin-top: 6px; }
  .result-footer { padding-top: 55px; }
}

@media print {
  @page { size: A4 landscape; margin: 10mm; }
  html, body { min-width: 0; background: #fff; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .skip-link, .app-sidebar, .topbar, .result-heading-actions, .result-footer, .loading-screen,
  .result-audio-button, .result-evidence-audio, .result-audio-status,
  .result-retry-prompt .result-action { display: none !important; }
  .workspace.figma-result-shell {
    width: auto !important;
    max-width: none !important;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
  }
  .result-heading { min-height: 56px; display: block; }
  .result-heading h1 { font-size: 24px; }
  .result-heading > div:first-child > p { margin-top: 4px; font-size: 15px; }
  .result-meta { min-height: 34px; padding-top: 5px; gap: 28px; font-size: 11px; }
  .result-meta span { gap: 10px; }
  .result-card { border-radius: 10px; box-shadow: none; }
  .result-overview {
    min-height: 150px;
    padding: 20px 25px;
    grid-template-columns: 28% 27% minmax(0, 1fr);
    break-inside: avoid;
  }
  .result-overall { min-height: 100px; padding-right: 22px; }
  .result-score { height: 53px; }
  .result-score strong { font-size: 42px; }
  .result-score small { margin-top: 15px; font-size: 18px; }
  .result-overall > p { font-size: 14px; }
  .result-overall > small { font-size: 10px; }
  .result-score-bars { min-height: 100px; padding-inline: 22px; }
  .result-score-bars > div { grid-template-columns: 35px 1fr 20px; gap: 9px; font-size: 11px; }
  .result-score-bars b { font-size: 11px; }
  .result-tip { padding-left: 24px; }
  .result-tip h2 { margin-bottom: 6px; font-size: 14px; }
  .result-tip p { font-size: 13px; line-height: 1.5; }
  .result-improvements { margin-top: 14px; grid-template-columns: 1fr 1fr; gap: 14px; break-inside: avoid; }
  .result-improvement-panel { min-height: 0; padding: 17px 20px 4px; }
  .result-improvement-panel > h2, .result-qna-card > header h2, .result-retry-card > h2 { margin-bottom: 12px; font-size: 16px; }
  .result-improvement-list > article { min-height: 0; padding-bottom: 12px; break-inside: avoid; }
  .result-improvement-list > article + article { padding-top: 12px; }
  .result-change { min-height: 0; padding: 7px 10px; grid-template-columns: 43px minmax(0, 1fr); gap: 8px; border-radius: 7px; }
  .result-change + .result-change { margin-top: 6px; }
  .result-change b { font-size: 10px; }
  .result-change p { font-size: 11px; line-height: 1.45; }
  .result-explanation { margin-top: 5px; font-size: 9px; line-height: 1.45; }
  .result-qna-card, .result-retry-card { margin-top: 14px; padding: 14px 22px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  .result-qna-card { break-inside: avoid; }
  .result-retry-card { break-inside: avoid; }
  .result-qna-card > header p { margin-top: 2px; font-size: 11px; }
  .result-qna-list { margin-top: 12px; gap: 12px; }
  .result-qna-group { gap: 8px; break-inside: auto; }
  .result-question { gap: 9px; break-inside: avoid; }
  .result-question > span { width: 24px; height: 24px; font-size: 11px; }
  .result-question h3 { font-size: 13px; line-height: 1.45; }
  .result-feedback-row {
    min-height: 0;
    padding: 7px 14px;
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 14px;
    border-radius: 10px;
    break-inside: avoid;
  }
  .result-feedback-tag { min-height: 23px; padding: 3px 6px; font-size: 10px; }
  .result-feedback-row h4, .result-retry-row h4 { font-size: 12px; line-height: 1.4; }
  .result-feedback-row p, .result-retry-row p { font-size: 10px; line-height: 1.4; }
  .result-retry-card > .result-question { margin-top: 13px; }
  .result-retry-rows { margin-top: 10px; gap: 8px; }
  .result-retry-row { min-height: 0; padding: 10px 16px; grid-template-columns: 45px minmax(0, 1fr) 38px; gap: 14px; border-radius: 10px; break-inside: avoid; }
  .result-retry-row > span { min-height: 23px; padding: 3px 6px; font-size: 10px; }
  .result-retry-row > strong { font-size: 18px; }
  .result-retry-prompt { margin-top: 13px; padding: 14px 16px; border-radius: 10px; break-inside: avoid; }
  .result-retry-prompt > p { margin-left: 33px; font-size: 10px; }
}

/* Auth */
.auth-page { min-height: 100vh; background: #f7f8fd; }
.auth-page main { min-height: 100vh; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(440px, .85fr); }
.auth-promise { padding: 170px clamp(48px, 8vw, 150px) 80px; display: flex; flex-direction: column; justify-content: center; color: #fff; background: var(--blue); }
.auth-promise .page-step { color: #cbd3ff; }
.auth-promise h1 { margin: 6px 0 24px; font-size: clamp(44px, 4.2vw, 70px); line-height: 1.12; letter-spacing: -.05em; }
.auth-promise h1 span { color: #cbd3ff; }
.auth-promise > p:not(.page-step) { max-width: 650px; margin: 0; color: rgba(255,255,255,.72); font-size: 18px; line-height: 1.7; }
.auth-principles { margin-top: 65px; display: flex; gap: 35px; }
.auth-principles > div { min-width: 150px; padding-top: 18px; display: flex; gap: 14px; border-top: 1px solid rgba(255,255,255,.3); }
.auth-principles b { font-size: 20px; }
.auth-principles span { color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.5; }
.auth-card { width: min(510px, calc(100% - 64px)); margin: auto; padding: 50px; border: 1px solid var(--line-soft); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.auth-card h2 { margin: 0; font-size: 32px; }
.auth-card > p:not(.page-step):not(.auth-switch) { margin: 9px 0 31px; color: var(--muted); }
.stack-form { display: grid; gap: 19px; }
.auth-switch { margin: 23px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.auth-switch a { color: var(--blue); font-weight: 650; }

/* Loading */
.loading-screen {
  display: none;
  position: fixed;
  z-index: 200;
  inset: 0;
  place-items: center;
  padding: 24px;
  color: var(--ink);
  background: rgba(250, 251, 253, .92);
  backdrop-filter: blur(10px);
}
body.is-loading { overflow: hidden; }
body.is-loading .loading-screen { display: grid; }
.loading-panel { width: min(460px, 100%); padding: 42px 34px; text-align: center; border: 1px solid #dce1fa; border-radius: 16px; background: #fff; box-shadow: 0 30px 90px rgba(42, 69, 238, .12); }
.loading-mark { width: 78px; height: 78px; margin: 0 auto 26px; display: flex; align-items: center; justify-content: center; gap: 4px; border-radius: 50%; color: #fff; background: var(--blue); }
.loading-mark i { display: block; width: 3px; height: 13px; border-radius: 5px; background: currentColor; animation: loading-wave .8s ease-in-out infinite alternate; }
.loading-mark i:nth-child(2), .loading-mark i:nth-child(4) { height: 25px; animation-delay: -.25s; }
.loading-mark i:nth-child(3) { height: 36px; animation-delay: -.5s; }
.loading-kicker { margin: 0 0 10px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.loading-panel strong { display: block; font-size: 23px; }
.loading-panel > p:not(.loading-kicker) { margin: 12px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.loading-progress { width: min(270px, 100%); height: 4px; margin: auto; overflow: hidden; border-radius: 4px; background: #e7e9f2; }
.loading-progress span { display: block; width: 42%; height: 100%; border-radius: inherit; background: var(--blue); animation: loading-progress 1.6s cubic-bezier(.45,0,.55,1) infinite; }

@keyframes wave { to { transform: scaleY(.35); opacity: .45; } }
@keyframes viewer-spin { to { transform: rotate(360deg); } }
@keyframes loading-wave { to { transform: scaleY(.42); opacity: .62; } }
@keyframes loading-progress { from { transform: translateX(-120%); } to { transform: translateX(340%); } }

@media (max-width: 1250px) {
  :root { --sidebar-width: 280px; --content-gutter: 58px; }
  .app-sidebar { padding-inline: 24px; }
  .brand { width: 232px; }
  .sidebar-nav a, .sidebar-account button { width: 232px; }
  .overview-card { grid-template-columns: 145px 1fr; }
  .focus-bars { grid-column: 1 / -1; }
  .feedback-columns { grid-template-columns: 1fr; }
  .presentation-layout { grid-template-columns: minmax(0, 1fr) 260px; }
  .presentation-brief { padding: 20px; }
  .viewer-header > p { display: none; }
}
@media (max-width: 1100px) {
  .presentation-layout { grid-template-columns: 1fr; }
  .presentation-brief { display: grid; grid-template-columns: 100px 1fr; gap: 18px; }
  .brief-label { margin: 0; }
  .presentation-brief .rehearsal-context { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
  .presentation-transcript { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --sidebar-width: 0px; --content-gutter: 28px; }
  .app-sidebar { position: fixed; inset: 0 0 auto; width: 100%; min-height: 78px; height: 78px; padding: 15px 22px; flex-direction: row; align-items: center; border-bottom: 1px solid var(--line-soft); }
  .app-sidebar .brand { width: 174px; height: 40px; padding-inline: 15px; }
  .sidebar-nav { margin: 0 0 0 auto; display: flex; gap: 6px; }
  .sidebar-nav a { width: auto; min-height: 44px; padding: 11px 14px; gap: 8px; font-size: 14px; }
  .sidebar-nav img { width: 19px; height: 19px; }
  .sidebar-account { display: none; }
  .topbar { display: none; }
  .workspace { width: 100%; margin-left: 0; }
  .page-shell, .qna-shell { padding-top: 130px; }
  .report-shell { padding-top: 125px; }
  .page-heading { margin-bottom: 42px; }
  .dashboard-summary { grid-template-columns: 1fr; }
  .dashboard-summary > div + div { border-left: 0; border-top: 1px solid var(--line-soft); }
  .rehearsal-row { grid-template-columns: 1fr 100px; }
  .rehearsal-row time { display: none; }
  .overview-card { grid-template-columns: 120px 1fr; }
  .answer-comparison { grid-template-columns: 1fr; }
  .compare-arrow { transform: rotate(90deg); }
  .comparison-notes { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-promise { min-height: 540px; padding: 140px 48px 70px; }
  .auth-card { margin-block: 60px; }
  .presentation-shell { padding-top: 112px; }
}
@media (max-width: 640px) {
  :root { --content-gutter: 18px; }
  .app-sidebar { padding-inline: 14px; }
  .app-sidebar .brand { width: 44px; padding: 0; justify-content: center; border: 0; }
  .app-sidebar .brand-name { display: none; }
  .sidebar-nav a { padding-inline: 12px; }
  .sidebar-nav a span { display: none; }
  .page-shell, .qna-shell { padding-top: 112px; padding-bottom: 60px; }
  .report-shell { padding-top: 110px; }
  .page-heading-actions, .report-heading { align-items: flex-start; flex-direction: column; }
  .page-heading h1, .report-heading h1, .qna-heading h1 { font-size: 27px; }
  .page-heading > p:last-child, .report-heading > div > p:last-child, .qna-heading > p:last-child { font-size: 16px; }
  .button { min-height: 47px; padding-inline: 22px; }
  .drop-zone { height: 250px; padding-inline: 20px; }
  .drop-zone b { font-size: 17px; }
  .selected-file-row { margin-top: 20px; padding-inline: 20px; gap: 17px; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .form-footer .button { width: 100%; }
  .scenario-row { grid-template-columns: 1fr; gap: 14px; padding-block: 20px; }
  .intensity > div { grid-template-columns: 1fr; }
  .rehearsal-row { padding-inline: 5px; grid-template-columns: 1fr auto; gap: 12px; }
  .rehearsal-row .status-pill { display: none; }
  .dashboard-summary > div { min-height: 105px; }
  .rehearsal-context > div { grid-template-columns: 105px 1fr; }
  .presentation-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .presentation-heading > div > p:last-child { font-size: 16px; }
  .material-type-badge { display: none; }
  .viewer-header { min-height: 52px; padding-inline: 13px; }
  .viewer-header > div { gap: 7px; }
  .viewer-header b { font-size: 12px; }
  .viewer-controls { min-height: 52px; }
  .presentation-brief { display: block; padding: 18px; }
  .presentation-brief .rehearsal-context { display: block; }
  .brief-label { margin-bottom: 16px; }
  .material-unavailable, .material-text-reference { min-height: 320px; padding: 25px 20px; }
  .presentation-recorder { padding-top: 18px; }
  .recorder-input-bar { padding-left: 18px; }
  .recorder-copy { min-width: 0; flex: 1; flex-direction: column; align-items: flex-start; gap: 2px; }
  .wave-bars { display: none; }
  .record-button { width: 58px; height: 58px; }
  .record-status { font-size: 13px; }
  .audio-source-actions { margin-inline: 0; align-items: flex-start; flex-direction: column; }
  .audio-upload-button { width: 100%; justify-content: center; }
  .audio-selection { width: 100%; margin-inline: 0; }
  .recorder audio { width: 100%; margin-left: 0; }
  .audio-client-error, .audio-server-errors { margin-left: 0; }
  .speech-actions { align-items: stretch; flex-direction: column; }
  .speech-actions .button { width: 100%; }
  .message-row > div { max-width: 84%; }
  .message-row p { font-size: 14px; }
  .presentation-popover > div { width: calc(100vw - 36px); }
  .report-meta { flex-wrap: wrap; gap: 10px 15px; }
  .report-meta span + span { padding-left: 15px; }
  .overview-card { padding: 25px 20px; grid-template-columns: 1fr; }
  .overview-impact { height: auto; padding-bottom: 20px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .focus-bars { grid-column: auto; }
  .feedback-panel, .qna-detail { padding: 22px 18px; }
  .retry-banner { align-items: stretch; flex-direction: column; padding: 24px 20px; }
  .retry-banner .button { width: 100%; }
  .comparison-result { padding: 27px 18px; }
  .comparison-result > h2 { font-size: 19px; }
  .answer-comparison p { font-size: 13px; }
  .comparison-notes > section { padding: 22px 18px; }
  .report-completion { flex-direction: column; }
  .report-completion .button { width: 100%; }
  .auth-header { padding: 25px; }
  .auth-promise { min-height: 480px; padding: 120px 25px 55px; }
  .auth-promise h1 { font-size: 40px; }
  .auth-promise > p:not(.page-step) { font-size: 16px; }
  .auth-principles { margin-top: 40px; gap: 15px; flex-wrap: wrap; }
  .auth-card { width: calc(100% - 30px); margin-block: 30px; padding: 34px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
