:root {
  --ink: #1f2333;
  --muted: #7a8092;
  --line: rgba(31, 35, 51, 0.1);
  --paper: rgba(255, 255, 255, 0.82);
  --paper-strong: rgba(255, 255, 255, 0.94);
  --dark: #242638;
  --pink: #ff7ab6;
  --peach: #ff9f7a;
  --mint: #66dbc2;
  --blue: #6aa8ff;
  --lilac: #a78bfa;
  --yellow: #ffd166;
  --shadow: 0 24px 60px rgba(83, 72, 116, 0.16);
  --radius: 22px;
  --radius-sm: 14px;
  --agent-launcher-rail: 148px;
}

body[data-theme="glass"] {
  --pink: #f97355;
  --peach: #f5b84b;
  --mint: #0f9f6e;
  --blue: #2563eb;
  --lilac: #7c3aed;
  --yellow: #f5b84b;
  background:
    radial-gradient(circle at 18% 4%, rgba(255, 255, 255, 0.95), transparent 30%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 30%),
    linear-gradient(315deg, rgba(15, 159, 110, 0.1), transparent 36%),
    #f2efe9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 122, 182, 0.24), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(102, 219, 194, 0.26), transparent 30%),
    radial-gradient(circle at 60% 95%, rgba(255, 209, 102, 0.22), transparent 34%),
    linear-gradient(135deg, #fff7fb 0%, #f5fbff 42%, #fffaf1 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(31,35,51,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,35,51,0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.sidebar {
  position: fixed;
  inset: 18px auto 18px 18px;
  width: 238px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 30px;
  background: rgba(255,255,255,0.58);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 8px;
  border-radius: 18px;
}
.brand img {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(167,139,250,0.24);
}
.brand span { font-family: Outfit, sans-serif; line-height: 1; font-weight: 800; }
.brand strong { color: var(--pink); }

.nav { display: grid; gap: 10px; margin-top: 26px; }
.nav-item {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: rgba(31,35,51,0.6);
  transition: transform 0.2s, background 0.2s;
}
.nav a.nav-item { text-decoration: none; }
.nav-item svg { width: 18px; height: 18px; }
.nav-item:hover, .nav-item.active {
  color: var(--ink);
  background: var(--paper-strong);
  border-color: rgba(255,255,255,0.9);
  box-shadow: 0 12px 28px rgba(83,72,116,0.1);
  transform: translateY(-1px);
}

.provider-mini {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,122,182,0.15), rgba(102,219,194,0.16));
}
.provider-mini span {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(102,219,194,0.22);
}
.provider-mini b, .provider-mini small { display: block; }
.provider-mini small { color: var(--muted); overflow-wrap: anywhere; }

.shell {
  position: relative;
  margin-left: 280px;
  padding: 22px var(--agent-launcher-rail) 44px 30px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0 18px;
  backdrop-filter: blur(20px);
}
.eyebrow {
  margin: 0 0 6px;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 900;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 0;
  font-family: Outfit, "Noto Sans SC", sans-serif;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
}
h2 {
  font-size: clamp(38px, 5.5vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
  margin-bottom: 16px;
}
h3 { font-size: 19px; margin-bottom: 0; }

.top-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.theme-block {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 8px 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(255,255,255,0.86);
  box-shadow: 0 14px 30px rgba(83,72,116,0.08);
}
.theme-block > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.theme-switch {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(255,255,255,0.86);
}
.theme-option {
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}
.theme-option.active {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--lilac));
}
.config-button { min-height: 48px; border-radius: 999px; padding: 0 18px; }
.model-config-panel {
  position: sticky;
  top: 88px;
  z-index: 12;
  margin: -2px 0 18px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}
.model-config-grid {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(190px, 0.9fr) minmax(220px, 1fr) minmax(230px, 1.1fr) auto;
  gap: 12px;
  align-items: center;
}
.model-config-grid .compact,
.model-config-grid .model-input,
.model-config-grid .custom-model-input,
.model-config-grid .key-input { width: 100%; }
.provider-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.provider-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(31,35,51,0.08);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}
.provider-links a:hover { border-color: rgba(255,122,182,0.5); color: #b94d83; }
.muted-note { color: var(--muted); font-size: 13px; }
.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -4px 0 14px;
}
.source-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(31,35,51,0.08);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}
.source-links a:hover {
  color: #b94d83;
  border-color: rgba(255,122,182,0.46);
}
.input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.82);
  border-radius: 18px;
  background: var(--paper-strong);
  color: var(--ink);
  padding: 13px 14px;
  outline: 0;
  min-width: 0;
  box-shadow: 0 10px 24px rgba(83,72,116,0.06);
}
.input:focus { border-color: rgba(255,122,182,0.75); box-shadow: 0 0 0 5px rgba(255,122,182,0.12); }
.compact { width: 190px; }
.model-input { width: 230px; }
.key-input { width: 240px; }
.textarea { min-height: 180px; resize: vertical; line-height: 1.7; }
.textarea.medium { min-height: 150px; }
.smallarea { min-height: 96px; }
.textarea.answer { min-height: 230px; }

.page { display: none; animation: rise 0.25s ease; }
.page.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.page-subnav {
  position: relative;
  top: auto;
  z-index: 9;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 8px;
  border-radius: 22px;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(255,255,255,0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 34px rgba(83,72,116,0.08);
}
.page-subnav button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}
.page-subnav button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--dark), #3b315b);
}
.module-panel.is-filtered-out { display: none !important; }

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  min-height: 430px;
  box-shadow: var(--shadow);
  background: var(--dark);
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}
.anime-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(36,38,56,0.82), rgba(36,38,56,0.25), rgba(255,255,255,0.06)),
    radial-gradient(circle at 18% 30%, rgba(255,122,182,0.24), transparent 28%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: clamp(34px, 5vw, 66px);
  color: #fff;
}
.hero-sub {
  max-width: 560px;
  color: rgba(255,255,255,0.78);
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.hero-actions, .button-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.primary, .ghost, .icon-button {
  min-height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  white-space: nowrap;
}
.primary {
  padding: 0 18px;
  background: linear-gradient(135deg, var(--dark), #3b315b);
  color: #fff;
  box-shadow: 0 14px 26px rgba(36,38,56,0.22);
}
.primary:hover, .ghost:hover, .icon-button:hover { transform: translateY(-1px); }
.ghost {
  padding: 0 16px;
  background: var(--paper-strong);
  border: 1px solid rgba(255,255,255,0.88);
  color: var(--ink);
}
.ghost.small { min-height: 36px; font-size: 13px; }
.icon-button {
  width: 46px;
  background: var(--paper-strong);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,0.88);
}
.sound-toggle {
  position: relative;
  overflow: hidden;
}
.sound-toggle::after {
  content: "";
  position: absolute;
  inset: auto 9px 9px auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(105,226,204,0.18);
}
.sound-toggle.is-off {
  color: var(--muted);
}
.sound-toggle.is-off::after {
  background: var(--muted);
  box-shadow: none;
}
.primary svg, .ghost svg, .icon-button svg { width: 18px; height: 18px; }
.full { width: 100%; }
.hero-route {
  max-width: 650px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.hero-route button {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 18px;
  color: #fff;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  text-align: left;
  cursor: pointer;
}
.hero-route button:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.18);
}
.hero-route b {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--dark);
  background: rgba(255,255,255,0.86);
  font-size: 12px;
}
.hero-route span {
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}
.metric, .panel {
  border: 1px solid rgba(255,255,255,0.82);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.metric {
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.metric::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,122,182,0.22), rgba(102,219,194,0.22));
}
.metric span {
  display: block;
  font: 800 42px/1 Outfit, sans-serif;
  color: var(--dark);
}
.metric small { color: var(--muted); }

.career-goal-panel { margin: 18px 0; padding: 20px; }
.career-goal-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.career-goal-form label { display: grid; gap: 7px; min-width: 0; }
.career-goal-form label > span { color: var(--muted); font-size: 13px; font-weight: 800; }
.career-goal-skills { grid-column: span 3; }
.career-goal-form .primary { min-height: 48px; }
.career-goal-status { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.career-goal-status-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.career-goal-status-row .ghost { margin-top: 12px; }

.career-pulse {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 16px;
  margin: 18px 0;
  padding: 18px;
  border-radius: 30px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.pulse-score {
  display: grid;
  place-items: center;
  min-height: 170px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 12%, rgba(255,255,255,0.34), transparent 34%),
    linear-gradient(135deg, #242638 0%, var(--lilac) 42%, var(--pink) 100%);
  box-shadow: 0 20px 42px rgba(187,101,225,0.22);
}
.pulse-score span {
  font-family: Outfit, "Noto Sans SC", sans-serif;
  font-size: clamp(54px, 6vw, 78px);
  font-weight: 900;
  line-height: 1;
}
.pulse-score small {
  font-weight: 900;
  letter-spacing: 0.08em;
}
.pulse-body {
  display: grid;
  gap: 12px;
  align-content: start;
}
.pulse-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.pulse-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.pulse-chips span {
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(31,35,51,0.06);
  color: var(--ink);
  line-height: 1.5;
  font-weight: 800;
}
.weekly-plan {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.plan-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 0;
  border-radius: 18px;
  background: rgba(255,255,255,0.78);
  color: var(--ink);
  text-align: left;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(31,35,51,0.06);
}
.plan-step b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(105,226,204,0.2);
  color: #246c60;
}
.plan-step:hover { transform: translateY(-1px); }

.journey-panel {
  margin: 18px 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(239,252,250,0.72)),
    radial-gradient(circle at 88% 12%, rgba(255,123,198,0.16), transparent 28%),
    radial-gradient(circle at 8% 90%, rgba(105,226,204,0.18), transparent 34%);
}
.journey-panel .module-copy {
  margin: 6px 0 0;
  max-width: 760px;
}
.journey-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.journey-step {
  min-height: 142px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.88);
  border-radius: 22px;
  background: rgba(255,255,255,0.72);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(31,35,51,0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.journey-step:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 24px 54px rgba(31,35,51,0.13);
}
.journey-step b {
  width: 42px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,123,198,0.22), rgba(105,226,204,0.22));
  color: #246c60;
  font-size: 13px;
}
.journey-step span {
  font-size: 16px;
  font-weight: 950;
}
.journey-step small {
  color: var(--muted);
  line-height: 1.6;
}

.home-grid, .lab-grid, .interview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: 18px;
  align-items: start;
}
.lab-grid, .interview-grid {
  grid-template-columns: minmax(0, 1fr);
}
.panel { padding: 20px; overflow: hidden; }
.panel.wide { min-width: 0; grid-column: span 1; }
.panel-head {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  color: #246c60;
  background: rgba(102,219,194,0.18);
  font-size: 12px;
  font-weight: 900;
}
.module-copy {
  margin: -4px 0 14px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}
.workflow-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}
.workflow-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(31,35,51,0.08);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.feature-list { display: grid; gap: 12px; }
.feature-list div {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(255,255,255,0.74);
  border-left: 6px solid var(--pink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.feature-list div:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.88);
  box-shadow: 0 18px 38px rgba(31,35,51,0.1);
}
.feature-list div:nth-child(2) { border-left-color: var(--mint); }
.feature-list div:nth-child(3) { border-left-color: var(--blue); }
.feature-list div:nth-child(4) { border-left-color: var(--yellow); }
.feature-list p { color: var(--muted); margin: 5px 0 0; line-height: 1.7; }
.next-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.agent-result-focus { margin-top: 16px; }
.profile-result-summary {
  padding: 16px;
  border: 1px solid rgba(37,99,235,0.24);
  border-radius: 8px;
  background: rgba(255,255,255,0.72);
}
.profile-result-summary header { display: flex; justify-content: space-between; gap: 12px; }
.profile-result-summary header small { color: var(--muted); }
.profile-result-summary dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 0; }
.profile-result-summary dl div { min-width: 0; }
.profile-result-summary dt { color: var(--muted); font-size: 0.78rem; }
.profile-result-summary dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.next-action-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.82);
}
.next-action-card b,
.next-action-card small { display: block; }
.next-action-card small { color: var(--muted); line-height: 1.55; }
.poster-panel { min-height: 400px; padding: 0; background: rgba(255,255,255,0.54); }
.poster-panel img { width: 100%; height: 100%; min-height: 400px; object-fit: cover; object-position: center; border-radius: inherit; }

.media-strip {
  position: relative;
  min-height: 430px;
  padding: 0;
  display: grid;
  align-items: end;
  background: rgba(255,255,255,0.62);
}
.media-strip::before {
  content: "";
  position: absolute;
  inset: -18px;
  background-image: var(--asset-bg);
  background-size: cover;
  background-position: center;
  filter: blur(22px);
  transform: scale(1.06);
  opacity: 0.55;
}
.media-strip img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--asset-pos, center);
  opacity: 1;
}
.media-strip::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(36,38,56,0.82), rgba(36,38,56,0.26), rgba(36,38,56,0.03)),
    linear-gradient(180deg, rgba(36,38,56,0.03), rgba(36,38,56,0.16));
}
.media-strip > div {
  position: relative;
  z-index: 3;
  width: min(680px, calc(100% - 48px));
  margin: 0 0 34px 34px;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  color: #fff;
}
.media-strip h3 { max-width: 720px; font-size: clamp(23px, 2.5vw, 36px); }
.resume-visual img { object-position: center 42%; }
.track-visual { align-items: start; }
.track-visual img { object-position: center 72%; }
.track-visual > div {
  margin: 34px 0 0 34px;
  width: min(720px, calc(100% - 48px));
}

.lab-grid .media-strip { grid-column: 1 / -1; }
.input-panel { grid-column: 2 / 3; grid-row: span 1; }
.resume-list-panel { grid-column: 1 / 2; }
.resume-tools-panel { grid-column: 2 / 3; }
.skill-panel { grid-column: 2 / 3; }
.lab-grid > .module-panel,
.interview-grid > .module-panel {
  grid-column: 1 / -1 !important;
  width: 100%;
}
.module-panel:not(.is-filtered-out) {
  min-height: 360px;
}
.input-panel .textarea { min-height: 280px; }
.resume-list-panel .stack-list,
.practice-panel .question-list {
  max-height: min(620px, 62vh);
}
.resume-tools-panel .tool-upload {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inline-visual {
  display: grid;
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.76);
  border-radius: 20px;
  background: rgba(255,255,255,0.6);
}
.inline-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  background: rgba(255,255,255,0.62);
}
.inline-visual p { margin: 0; color: var(--muted); line-height: 1.7; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.form-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stack-list, .question-list {
  display: grid;
  gap: 10px;
  max-height: 390px;
  overflow: auto;
}
.list-item, .question-card {
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 18px;
  background: rgba(255,255,255,0.68);
}
.list-item b, .question-card b { display: block; overflow-wrap: anywhere; }
.list-item small, .question-card small { color: var(--muted); }
.list-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.file-action {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.file-action input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.tool-upload {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.tool-upload label {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(255,255,255,0.78);
  color: var(--muted);
  font-weight: 800;
}
.tool-upload input { width: 100%; }

.result {
  margin-top: 14px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.68);
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.result h4 { margin: 0 0 8px; }
.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.score-grid div {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(31,35,51,0.08);
}
.score-grid b {
  display: block;
  font-size: 22px;
  font-family: Outfit, "Noto Sans SC", sans-serif;
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.hidden { display: none !important; }

.interview-stage {
  position: relative;
  min-height: 560px;
  border-radius: 34px;
  overflow: hidden;
  background: var(--dark);
  box-shadow: var(--shadow);
  grid-row: span 2;
}
.stage-bg { position: absolute; inset: 0; overflow: hidden; }
.stage-bg::before {
  content: "";
  position: absolute;
  inset: -18px;
  background-image: var(--asset-bg);
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  transform: scale(1.06);
  opacity: 0.56;
}
.stage-bg img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: var(--asset-pos, center 42%); opacity: 1; }
.interview-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36,38,56,0.03), rgba(36,38,56,0.78));
}
.interviewer-card {
  position: absolute;
  left: 24px;
  right: auto;
  bottom: 24px;
  width: min(820px, calc(100% - 48px));
  z-index: 1;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 26px;
  background: rgba(36,38,56,0.54);
  color: #fff;
  backdrop-filter: blur(18px);
}
.interviewer-card img { width: 72px; height: 72px; border-radius: 24px; object-fit: cover; }
.interviewer-card h3 { font-size: clamp(18px, 2vw, 26px); line-height: 1.35; }
.progress-track {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 14px;
  height: 6px;
  border-radius: 99px;
  background: transparent;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
}
.progress-track.has-progress {
  opacity: 1;
  background: rgba(255,255,255,0.24);
}
.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--mint), var(--yellow));
  transition: width 0.25s;
}
.answer-panel { min-height: 390px; }
.practice-panel { grid-column: 1 / -1; }
.edit-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,122,182,0.16), rgba(105,226,204,0.16));
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: 0 12px 34px rgba(31,35,51,0.08);
}
.edit-notice b,
.edit-notice span {
  display: block;
}
.edit-notice span {
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.5;
}
.practice-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.practice-workbench {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(380px, 1.05fr);
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}
.answer-studio {
  position: sticky;
  top: 132px;
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.82);
  box-shadow: 0 18px 42px rgba(31,35,51,0.08);
}
.compact-head {
  margin-bottom: 0;
}
.compact-head h4 {
  margin: 0;
}
.practice-answer {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.audio-lab {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(31,35,51,0.08);
}
.audio-lab.compact-audio {
  background: rgba(255,255,255,0.72);
}
.audio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.audio-lab audio {
  width: 100%;
  min-height: 38px;
}
.audio-playback-fallback { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.audio-playback-status { margin: 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.audio-playback-status.is-warning { color: #9a3412; font-weight: 800; }
.audio-download-link { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.audio-upload {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}
.audio-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}
.audio-metrics span {
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.68);
  color: var(--ink);
  font-weight: 900;
  font-size: 13px;
  border: 1px solid rgba(31,35,51,0.06);
}
.records-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.record-column {
  min-height: 220px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.72);
}
.record-column h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 10px;
}
.record-column h4 span {
  display: inline-flex;
  min-width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,122,182,0.16);
  color: #b94d83;
  font-size: 12px;
}
.record-card {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
  padding: 13px;
  border-radius: 18px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(31,35,51,0.06);
}
.record-card b { overflow-wrap: anywhere; }
.record-card small { color: var(--muted); }
.record-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.record-actions .danger {
  color: #b94d5a;
}
.record-detail {
  margin-top: 16px;
}
.record-detail audio {
  width: 100%;
  margin: 10px 0;
}
.audio-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 8px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(31,35,51,0.08);
}
.conversation-line {
  display: grid;
  gap: 5px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(31,35,51,0.08);
}
.conversation-line span {
  color: var(--muted);
  line-height: 1.6;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}
.kanban-column {
  min-height: 160px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(255,255,255,0.68);
}
.kanban-column h4 {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}
.kanban-column h4 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(102,219,194,0.2);
  color: #246c60;
  font-size: 12px;
}
.kanban-column h4 > svg { width: 17px; color: #a84755; }
.kanban-column.needs-review {
  border-color: rgba(185, 77, 90, 0.34);
  background: rgba(255, 246, 244, 0.58);
}
.kanban-card {
  min-height: 112px;
  margin-bottom: 10px;
  padding: 15px;
  border-radius: 20px;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(255,255,255,0.78);
}
.kanban-card strong { display: block; }
.kanban-card .status-text {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.kanban-card em { display: inline-block; margin-top: 10px; color: #b94d83; font-style: normal; font-weight: 900; }
.kanban-card p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.kanban-card .details-command { width: 100%; min-height: 44px; margin-top: 12px; }
.kanban-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 7px;
}
.kanban-card-actions .ghost.small { min-height: 44px; padding: 0 8px; }
.kanban-card-actions .danger { color: #a84755; }
.kanban-empty { padding: 16px 4px; color: var(--muted); font-size: 13px; }
.status-warning {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0 0 12px;
  color: #8d3844;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}
.status-warning svg { flex: 0 0 auto; width: 17px; margin-top: 2px; }

.opportunity-workspace {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  margin-top: 24px;
  padding: 26px 0 10px;
  border-top: 1px solid rgba(31, 35, 51, 0.12);
}
.opportunity-workspace-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
}
.opportunity-workspace-head > div { min-width: 0; }
.opportunity-workspace-head h3,
.opportunity-workspace-head p { overflow-wrap: anywhere; }
.opportunity-workspace-head .icon-button { flex: 0 0 46px; }
.opportunity-tabs {
  display: flex;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  gap: 4px;
  padding: 4px 0 10px;
  border-bottom: 1px solid rgba(31, 35, 51, 0.12);
}
.opportunity-tabs [role="tab"] {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}
.opportunity-tabs [role="tab"][aria-selected="true"] {
  border-bottom-color: var(--pink);
  color: var(--ink);
}
.opportunity-tabs [role="tab"]:focus-visible,
.opportunity-workspace button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 70%, white);
  outline-offset: 2px;
}
.opportunity-panel {
  min-width: 0;
  padding: 24px 0;
  overflow-wrap: anywhere;
}
.opportunity-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0;
}
.opportunity-facts > div {
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid rgba(31, 35, 51, 0.09);
}
.opportunity-facts dt { color: var(--muted); font-size: 12px; font-weight: 800; }
.opportunity-facts dd { margin: 5px 0 0; font-weight: 900; overflow-wrap: anywhere; }
.workspace-note { padding: 18px 0; border-bottom: 1px solid rgba(31, 35, 51, 0.09); }
.workspace-note p { margin: 6px 0 0; color: var(--muted); line-height: 1.7; white-space: pre-wrap; }
.workspace-section + .workspace-section { margin-top: 28px; }
.workspace-section h4 { margin: 0 0 10px; font-size: 15px; }
.workspace-long-text {
  max-height: 360px;
  overflow: auto;
  padding: 14px 0;
  color: var(--muted);
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.workspace-list { border-top: 1px solid rgba(31, 35, 51, 0.09); }
.workspace-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 18px;
  min-width: 0;
  padding: 15px 0;
  border-bottom: 1px solid rgba(31, 35, 51, 0.09);
}
.workspace-row > div { min-width: 0; }
.workspace-row b, .workspace-row span { display: block; overflow-wrap: anywhere; }
.workspace-row span, .workspace-row p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.workspace-row p, .workspace-row pre { grid-column: 1 / -1; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.workspace-row pre { max-height: 220px; overflow: auto; color: var(--muted); }
.workspace-row .ghost { grid-column: 1 / -1; justify-self: start; min-height: 44px; }
.workspace-version {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-block: 1px solid rgba(31, 35, 51, 0.09);
}
.workspace-version > svg { flex: 0 0 auto; width: 26px; color: var(--pink); }
.workspace-version b, .workspace-version span, .workspace-version small { display: block; overflow-wrap: anywhere; }
.workspace-version span, .workspace-version small { margin-top: 4px; color: var(--muted); }
.workspace-primary-action { display: flex; justify-content: flex-end; margin-top: 18px; }
.workspace-primary-action .primary { min-height: 44px; }
.workspace-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-block: 1px solid rgba(168, 71, 85, 0.28);
  color: #8d3844;
  font-weight: 800;
}
.opportunity-empty {
  display: grid;
  gap: 7px;
  justify-items: start;
  min-width: 0;
  padding: 22px 0;
  color: var(--muted);
}
.opportunity-empty strong, .opportunity-empty b { color: var(--ink); }
.opportunity-empty span { line-height: 1.6; overflow-wrap: anywhere; }
.opportunity-empty .primary { margin-top: 4px; min-height: 44px; }
.workspace-timeline { margin: 0; padding: 0; list-style: none; }
.workspace-timeline li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(31, 35, 51, 0.09); }
.workspace-timeline svg { flex: 0 0 auto; width: 17px; color: var(--mint); }
.workspace-timeline b, .workspace-timeline span { display: block; overflow-wrap: anywhere; }
.workspace-timeline span { margin-top: 4px; color: var(--muted); font-size: 13px; }

.chat-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 18px;
}
.coach-profile {
  padding: 24px;
  border-radius: 34px;
  color: var(--ink);
  background: linear-gradient(160deg, rgba(255,255,255,0.78), rgba(255,245,251,0.86));
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.82);
}
.coach-profile img { width: 110px; height: 110px; border-radius: 30px; object-fit: cover; }
.coach-profile p { color: var(--muted); }
.quick-prompts { display: grid; gap: 10px; margin-top: 18px; }
.quick-prompts button {
  min-height: 40px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.72);
  color: var(--ink);
}
.chat-panel { min-height: 620px; display: flex; flex-direction: column; }
.agent-conversation-bar {
  display: grid;
  grid-template-columns: auto minmax(160px, 280px) 38px 38px;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.55);
}
.agent-conversation-bar label { color: var(--muted); font-size: 0.78rem; font-weight: 800; }
.agent-conversation-bar .input { min-width: 0; }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 12px; overflow: auto; padding-right: 4px; }
.message {
  width: fit-content;
  max-width: min(760px, 88%);
  padding: 13px 15px;
  border-radius: 22px;
  line-height: 1.7;
}
.message.bot { background: rgba(255,255,255,0.72); border: 1px solid rgba(255,255,255,0.78); }
.message.user { align-self: flex-end; background: linear-gradient(135deg, var(--pink), var(--lilac)); color: #fff; }
.agent-events { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; padding-top: 8px; border-top: 1px solid rgba(93,102,130,0.12); }
.agent-events > small { width: 100%; color: var(--muted); font-weight: 800; }
.agent-event { display: inline-flex; align-items: center; gap: 4px; font-size: 0.74rem; color: var(--muted); }
.agent-event svg { width: 13px; height: 13px; }
.agent-event.is-success svg { color: var(--success); }
.agent-event.is-error svg { color: #d65f70; }
.agent-suggested-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.agent-suggested-actions button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--accent); font-weight: 800; padding: 3px 0; }
.agent-suggested-actions svg { width: 14px; height: 14px; }
.chat-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 14px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.agent-command-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.agent-command-head h2 { margin: 4px 0 8px; font-size: 1.65rem; letter-spacing: 0; }
.agent-command-head .primary { min-height: 44px; flex: 0 0 auto; }
.agent-command-helper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 18px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--blue);
  background: linear-gradient(110deg, rgba(37,99,235,0.08), rgba(255,255,255,0.74));
}
.agent-command-helper h3 { margin: 4px 0 6px; font-size: 1rem; letter-spacing: 0; }
.agent-command-helper p:last-child { max-width: 780px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.agent-command-helper .ghost { min-height: 44px; flex: 0 0 auto; }
.agent-command-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.command-panel { min-height: 360px; }
.command-list { display: grid; gap: 8px; }
.command-row {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.52);
  color: var(--ink);
  text-align: left;
}
.command-row:hover { border-color: rgba(37,99,235,0.32); background: rgba(255,255,255,0.84); }
.is-result-highlight { outline: 3px solid rgba(37,99,235,0.28); outline-offset: 2px; }
.command-row span { min-width: 0; }
.command-row b, .command-row small { display: block; overflow-wrap: anywhere; }
.command-row small { margin-top: 4px; color: var(--muted); }
.command-row svg { width: 18px; flex: 0 0 auto; }
.command-empty { display: grid; gap: 6px; justify-items: start; padding: 28px 4px; color: var(--muted); }
.command-empty b { color: var(--ink); }
.command-empty button { min-height: 44px; margin-top: 4px; }

.agent-launcher {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 72;
  min-width: 112px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  box-shadow: 0 14px 34px rgba(31,35,51,0.24);
  font-weight: 800;
}
.agent-launcher svg { width: 19px; }
.agent-launcher b { min-width: 20px; padding: 1px 5px; border-radius: 7px; background: var(--pink); font-size: 12px; }
.agent-drawer-backdrop { position: fixed; inset: 0; z-index: 73; background: rgba(20,22,32,0.52); }
.agent-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 74;
  width: min(520px, calc(100vw - 40px));
  display: flex;
  flex-direction: column;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) 20px;
  border-left: 1px solid var(--line);
  background: rgba(249,250,252,0.98);
  color: var(--ink);
  box-shadow: -18px 0 48px rgba(31,35,51,0.2);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 0.22s ease, visibility 0s linear 0.22s;
}
.agent-drawer[aria-hidden="false"] { transform: translateX(0); visibility: visible; transition-delay: 0s; }
.agent-drawer-open { overflow: hidden; }
.agent-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.agent-drawer-head h2 { margin: 4px 0 0; font-size: 1.2rem; letter-spacing: 0; }
.agent-mode-detail { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.model-config-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.agent-drawer-head .icon-button { flex: 0 0 44px; width: 44px; height: 44px; }
.agent-context-strip { display: grid; gap: 7px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.agent-context-strip > span { color: var(--muted); font-size: 12px; font-weight: 800; }
.agent-context-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.agent-context-chip {
  min-height: 44px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 2px 2px 9px;
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 8px;
  background: rgba(37,99,235,0.07);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.agent-context-chip button { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); }
.agent-context-chip svg { width: 15px; }
.agent-context-empty { color: var(--muted); font-size: 13px; }
.agent-drawer .agent-conversation-bar { grid-template-columns: auto minmax(0, 1fr) 44px 44px; margin: 12px 0; padding-bottom: 12px; border-color: var(--line); }
.agent-drawer .agent-conversation-bar .icon-button { width: 44px; height: 44px; }
.agent-drawer .chat-log { min-height: 0; padding: 4px 4px 12px 0; overscroll-behavior: contain; }
.agent-drawer .message { max-width: 94%; border-radius: 8px; }
.agent-drawer .message.bot { background: #fff; border-color: var(--line); }
.agent-drawer .message.user { background: var(--dark); }
.agent-quick-prompts { display: flex; gap: 6px; padding-top: 10px; overflow-x: auto; scrollbar-width: thin; }
.agent-quick-prompts button { min-height: 44px; flex: 0 0 auto; }
.agent-drawer .chat-input { align-items: end; padding-top: 10px; border-top: 1px solid var(--line); }
.agent-drawer .chat-input textarea { min-height: 52px; max-height: 140px; resize: vertical; }
.agent-drawer .icon-command { width: 48px; height: 48px; padding: 0; display: grid; place-items: center; }

.agent-input-request { margin-top: 12px; padding: 12px; border: 1px solid rgba(37,99,235,0.24); border-radius: 8px; background: rgba(37,99,235,0.05); }
.agent-input-request > p { margin: 0 0 8px; font-weight: 800; color: var(--dark); }
.agent-resume-choice-list { display: grid; gap: 8px; }
.agent-resume-choice { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; width: 100%; padding: 10px; text-align: left; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--dark); }
.agent-resume-choice:hover { border-color: var(--blue); background: rgba(37,99,235,0.04); }
.agent-resume-choice b, .agent-resume-choice small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-resume-choice small { color: var(--muted); grid-column: 1 / -1; }
.agent-resume-choice span { grid-column: 2; grid-row: 1; align-self: center; color: var(--blue); font-size: 12px; font-weight: 800; }

.agent-proposal { width: 100%; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 8px; background: rgba(247,248,251,0.94); }
.agent-proposal header { display: flex; justify-content: space-between; gap: 8px; }
.proposal-status, .proposal-risk { font-size: 12px; font-weight: 800; }
.proposal-risk { color: var(--muted); }
.proposal-risk.risk-high { color: #b42318; }
.agent-proposal > p { margin: 10px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.proposal-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.agent-edit-field { display: grid; gap: 4px; min-width: 0; }
.agent-edit-field span { color: var(--muted); font-size: 11px; font-weight: 800; overflow-wrap: anywhere; }
.agent-edit-field .input { width: 100%; min-width: 0; min-height: 42px; }
.proposal-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.proposal-controls button { min-height: 44px; }
.agent-draft-editor { display: grid; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 8px; background: rgba(37,99,235,0.05); border: 1px solid rgba(37,99,235,0.24); }
.agent-draft-editor header { display: grid; gap: 2px; }
.agent-draft-editor header small { color: var(--muted); line-height: 1.5; }
.agent-draft-content { width: 100%; min-height: 260px; resize: vertical; font-family: "Noto Sans SC", sans-serif; line-height: 1.65; }
.proposal-error { margin-top: 8px; padding: 8px; border-radius: 6px; background: rgba(180,35,24,0.08); color: #b42318; overflow-wrap: anywhere; }
.proposal-result-link { min-height: 44px; display: inline-flex; align-items: center; margin-top: 6px; color: var(--blue); font-weight: 800; }
.agent-proposal[data-status="completed"] { border-left-color: var(--mint); }
.agent-proposal[data-status="cancelled"], .agent-proposal[data-status="expired"] { border-left-color: var(--muted); opacity: 0.82; }

button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid rgba(37,99,235,0.32);
  outline-offset: 2px;
}

@media (max-width: 620px) {
  .agent-conversation-bar { grid-template-columns: minmax(0, 1fr) 38px 38px; }
  .agent-conversation-bar label { grid-column: 1 / -1; }
  .agent-drawer .agent-conversation-bar { grid-template-columns: minmax(0, 1fr) 44px 44px; }
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  max-width: min(420px, calc(100vw - 48px));
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--dark);
  color: #fff;
  box-shadow: var(--shadow);
}
.loading-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  gap: 14px;
  background: rgba(255, 247, 251, 0.78);
  backdrop-filter: blur(18px);
  color: var(--dark);
  font-weight: 900;
}
.loading-layer video {
  width: 156px;
  height: 156px;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.interview-room {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,122,182,0.24), transparent 28%),
    radial-gradient(circle at 80% 16%, rgba(102,219,194,0.24), transparent 30%),
    rgba(247, 248, 255, 0.76);
  backdrop-filter: blur(20px);
}
.interview-room-card {
  width: min(980px, 100%);
  max-height: min(860px, calc(100vh - 56px));
  overflow: auto;
  padding: 22px;
  border-radius: 30px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
}
.room-progress {
  height: 8px;
  margin: 0 0 16px;
  border-radius: 99px;
  background: rgba(31,35,51,0.08);
  overflow: hidden;
}
.room-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--mint), var(--yellow));
  transition: width 0.25s;
}

canvas { max-width: 100%; }

@media (max-width: 1120px) {
  .sidebar {
    position: sticky;
    inset: 0;
    width: auto;
    margin: 10px;
    flex-direction: row;
    align-items: center;
    padding-right: 78px;
  }
  .nav { grid-auto-flow: column; overflow-x: auto; margin: 0 0 0 8px; }
  .nav-item { width: 46px; padding: 0; justify-content: center; }
  .nav-item span, .provider-mini, .brand span { display: none; }
  .shell { margin-left: 0; padding: 8px 14px 30px; }
  .agent-launcher { top: 24px; right: 24px; bottom: auto; min-width: 52px; width: 52px; padding: 0; }
  .agent-launcher > span { display: none; }
  .agent-launcher b { position: absolute; top: -7px; right: -4px; }
  .topbar { position: relative; align-items: flex-start; flex-direction: column; }
  .top-actions { width: 100%; justify-content: stretch; }
  .theme-block, .config-button { flex: 1 1 240px; justify-content: center; }
  .model-config-panel, .page-subnav { position: relative; top: auto; }
  .model-config-grid { grid-template-columns: 1fr 1fr; }
  .model-config-grid .primary { width: 100%; }
  .compact, .model-input, .custom-model-input, .key-input { width: calc(50% - 28px); flex: 1; }
  .home-grid, .lab-grid, .interview-grid, .chat-shell, .records-grid, .practice-workbench, .career-pulse { grid-template-columns: 1fr; }
  .career-goal-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .career-goal-skills { grid-column: span 1; }
  .hero-route { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .answer-studio { position: relative; top: auto; }
  .lab-grid .media-strip, .input-panel, .resume-list-panel, .resume-tools-panel, .skill-panel, .practice-panel { grid-column: auto; }
  .interview-stage { grid-row: auto; min-height: 430px; }
  .inline-visual { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .hero { min-height: 540px; }
  .metric-grid, .form-grid, .form-grid.four { grid-template-columns: 1fr; }
  .career-goal-form { grid-template-columns: minmax(0, 1fr); }
  .model-config-grid { grid-template-columns: 1fr; }
  .compact, .model-input, .custom-model-input, .key-input { width: 100%; }
  .top-actions .icon-button { width: 100%; }
  .hero-route { grid-template-columns: 1fr; }
  .journey-steps { grid-template-columns: 1fr; }
  .interviewer-card { left: 12px; right: 12px; bottom: 12px; align-items: flex-start; }
  .interviewer-card img { width: 54px; height: 54px; }
  .button-row { align-items: stretch; }
  .button-row > * { flex: 1 1 160px; }
  .message { max-width: 96%; }
  .opportunity-workspace { padding-top: 20px; }
  .opportunity-workspace-head { gap: 10px; }
  .opportunity-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
  .workspace-row { grid-template-columns: minmax(0, 1fr); }
  .workspace-row > strong { justify-self: start; }
  .workspace-primary-action { justify-content: stretch; }
  .workspace-primary-action .primary { width: 100%; white-space: normal; }
  .workspace-message { align-items: flex-start; flex-direction: column; }
  .agent-command-head { align-items: stretch; flex-direction: column; gap: 12px; }
  .agent-command-head .primary { width: 100%; }
  .agent-command-helper { align-items: stretch; flex-direction: column; gap: 14px; }
  .agent-command-helper .ghost { width: 100%; }
  .agent-command-grid { grid-template-columns: minmax(0, 1fr); }
  .agent-launcher { top: max(18px, env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right)); bottom: auto; }
  .agent-drawer {
    inset: auto 0 0;
    width: 100%;
    height: min(86dvh, 760px);
    max-height: calc(100dvh - env(safe-area-inset-top));
    padding: 16px max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    transform: translateY(102%);
  }
  .agent-drawer[aria-hidden="false"] { transform: translateY(0); }
  .agent-drawer .message { max-width: 98%; }
  .proposal-fields { grid-template-columns: minmax(0, 1fr); }
  .proposal-controls > button { flex: 1 1 120px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
