:root {
  --ink: #183233;
  --muted: #617273;
  --paper: #f6f4ee;
  --surface: #ffffff;
  --teal: #176f6a;
  --teal-dark: #0c514e;
  --teal-soft: #dcecea;
  --gold: #e4a83c;
  --line: #dce3df;
  --shadow: 0 18px 50px rgba(27, 54, 52, 0.09);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
button, select, textarea { font: inherit; }
button, select { cursor: pointer; }

.topbar {
  height: 78px;
  padding: 0 clamp(22px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  color: white; background: var(--teal); border-radius: 12px;
  font-weight: 800; letter-spacing: -0.04em;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; }
.brand small { color: var(--muted); font-size: 12px; }
.demo-badge { color: var(--muted); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.demo-badge span { width: 8px; height: 8px; border-radius: 50%; background: #49a87f; box-shadow: 0 0 0 4px #e1f1e9; }

main { max-width: 1500px; margin: 0 auto; padding: 44px clamp(20px, 4vw, 62px) 60px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; margin-bottom: 28px; }
.kicker { margin: 0 0 7px; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 5vw, 58px); line-height: 1.02; letter-spacing: -.035em; font-weight: 500; }
.hero-copy { max-width: 680px; margin-bottom: 0; color: var(--muted); font-size: 17px; }
.focus-switch { display: flex; gap: 10px; padding: 7px; background: #e9e7df; border-radius: 18px; }
.focus-button {
  min-width: 168px; padding: 13px 16px; display: flex; align-items: center; gap: 11px;
  border: 0; border-radius: 13px; color: var(--muted); background: transparent; text-align: left;
}
.focus-button.active { color: var(--ink); background: white; box-shadow: 0 5px 15px rgba(30, 48, 47, .09); }
.focus-button strong, .focus-button small { display: block; }
.focus-button small { font-size: 11px; color: var(--muted); }
.focus-icon { font-size: 23px; color: var(--teal); }

.selection-panel {
  display: flex; align-items: flex-end; gap: 18px; padding: 18px 20px; margin-bottom: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 30px rgba(27, 54, 52, .05);
}
.selection-panel label { display: grid; gap: 6px; min-width: 260px; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
select { width: 100%; padding: 11px 40px 11px 13px; color: var(--ink); background: #f8faf8; border: 1px solid var(--line); border-radius: 11px; font-weight: 650; text-transform: none; letter-spacing: normal; }
.selection-note { margin: 0 0 10px auto; max-width: 470px; color: var(--muted); font-size: 12px; }

.workspace { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(330px, .72fr); gap: 24px; align-items: start; }
.dashboard-column { min-width: 0; }
.summary-heading { margin: 18px 2px 20px; }
.summary-heading h2 { margin-bottom: 4px; font-family: Georgia, "Times New Roman", serif; font-size: 31px; font-weight: 500; }
.summary-heading p:last-child { margin: 0; color: var(--muted); }
.headline-card { width: 100%; margin-top: 15px; padding: 14px 17px; background: var(--teal-soft); border-left: 4px solid var(--teal); border-radius: 8px 14px 14px 8px; }
.headline-card span { display: block; color: var(--teal-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.headline-card strong { display: block; margin-top: 3px; font-size: 15px; }

.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.metric-card { min-height: 148px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 25px rgba(28, 59, 55, .05); }
.metric-card::before { content: ""; display: block; width: 32px; height: 4px; margin-bottom: 20px; background: var(--teal); border-radius: 4px; }
.metric-card.positive::before { background: #55a77a; }
.metric-card.attention::before { background: var(--gold); }
.metric-label { min-height: 36px; color: var(--muted); font-size: 12px; font-weight: 750; }
.metric-value { display: block; margin: 3px 0 4px; font-family: Georgia, "Times New Roman", serif; font-size: 31px; line-height: 1; }
.metric-detail { color: var(--muted); font-size: 11px; line-height: 1.35; }

.chart-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.panel { min-height: 330px; padding: 21px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.panel-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 22px; }
.panel h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 500; }
.panel-copy { max-width: 700px; margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.info-tip { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 11px; font-weight: 800; }
.skill-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr 45px; gap: 10px; align-items: center; margin: 12px 0; }
.skill-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 650; }
.bar-track { height: 10px; background: #edf0ed; border-radius: 10px; overflow: hidden; }
.bar-fill { height: 100%; min-width: 3px; background: linear-gradient(90deg, var(--teal), #45a09a); border-radius: inherit; }
.skill-value { text-align: right; font-size: 12px; font-weight: 800; }
.skill-meta { grid-column: 1 / -1; margin-top: -8px; color: var(--muted); font-size: 10px; text-align: right; }
.readiness-group + .readiness-group { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.readiness-group h4 { margin: 0 0 8px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.readiness-row { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(180px, 1.5fr) 42px; gap: 14px; align-items: center; padding: 11px 4px; }
.readiness-name, .readiness-value { font-size: 12px; }
.readiness-name { display: flex; gap: 9px; align-items: center; }
.skill-emoji { min-width: 36px; flex: 0 0 auto; font-size: 14px; line-height: 1; text-align: center; letter-spacing: -2px; }
.readiness-value { text-align: right; }
.trend-chart { height: 215px; }
.trend-chart svg { width: 100%; height: 100%; overflow: visible; }
.trend-grid { stroke: #e6ebe8; stroke-width: 1; }
.trend-area { fill: url(#trendGradient); }
.trend-line { fill: none; stroke: var(--teal); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.trend-dot { fill: white; stroke: var(--teal); stroke-width: 3; }
.trend-label { fill: var(--muted); font-size: 10px; }
.trend-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }

.evidence-panel { margin-top: 16px; padding: 15px 18px; background: rgba(255,255,255,.65); border: 1px solid var(--line); border-radius: 14px; color: var(--muted); font-size: 12px; }
.evidence-panel summary { color: var(--ink); font-weight: 750; cursor: pointer; }
.evidence-panel ul { padding-left: 18px; }
.evidence-panel p { margin-bottom: 0; }

.chat-panel { position: sticky; top: 22px; min-height: 690px; padding: 22px; background: var(--ink); color: white; border-radius: 22px; box-shadow: 0 24px 60px rgba(22, 48, 48, .2); }
.chat-heading { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.assistant-avatar { width: 42px; height: 42px; display: grid; place-items: center; background: var(--gold); color: var(--ink); border-radius: 13px; font-size: 20px; }
.chat-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 500; }
.chat-heading p { margin: 2px 0 0; color: #b9cbca; font-size: 11px; }
.question-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.question-chip { padding: 8px 10px; color: #dce9e7; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: 999px; font-size: 11px; text-align: left; }
.question-chip:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.3); }
.messages { height: 460px; padding-right: 4px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #486462 transparent; }
.assistant-message, .user-message { margin: 0 0 12px; padding: 13px 14px; border-radius: 14px; font-size: 12px; }
.assistant-message { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.09); }
.assistant-message h4 { margin: 10px 0 3px; color: #f4c970; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.assistant-message h4:first-child { margin-top: 0; }
.assistant-message p { margin-bottom: 0; }
.user-message { margin-left: 30px; background: var(--teal); }
.response-mode { display: inline-block; margin-top: 10px; color: #b9cbca; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.message-evidence { margin-top: 10px; }
.message-evidence summary { color: #dbe8e6; cursor: pointer; }
.message-evidence ul { padding-left: 17px; color: #c3d0cf; }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; margin-top: 13px; padding: 7px; background: white; border-radius: 14px; }
.chat-form textarea { min-height: 45px; max-height: 100px; padding: 9px; resize: vertical; border: 0; outline: 0; color: var(--ink); }
.chat-form button { padding: 11px 13px; color: white; background: var(--teal); border: 0; border-radius: 10px; font-weight: 750; }
.chat-form button:disabled { opacity: .55; cursor: wait; }
.chat-disclaimer { margin: 9px 0 0; color: #9eb2b0; font-size: 9px; text-align: center; }

.loading-state, .error-state { padding: 40px; text-align: center; color: var(--muted); }
.error-state { color: #8b3d32; background: #fff0eb; border-radius: 14px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
footer { max-width: 1500px; margin: 0 auto; padding: 25px clamp(20px, 4vw, 62px) 35px; display: flex; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }
footer a { color: var(--teal); font-weight: 750; }

@media (max-width: 1100px) {
  .workspace { grid-template-columns: 1fr; }
  .chat-panel { position: static; min-height: auto; }
  .messages { height: 320px; }
}
@media (max-width: 820px) {
  .topbar { height: auto; padding-top: 14px; padding-bottom: 14px; }
  .demo-badge { display: none; }
  .hero { align-items: stretch; flex-direction: column; }
  .focus-switch { width: 100%; }
  .focus-button { flex: 1; min-width: 0; }
  .selection-panel { align-items: stretch; flex-direction: column; }
  .selection-panel label { min-width: 0; }
  .selection-note { margin: 0; }
  .headline-card { max-width: none; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-grid { grid-template-columns: 1fr; }
  .readiness-row { grid-template-columns: minmax(130px, 1fr) minmax(100px, 1.2fr) 40px; gap: 9px; }
}
@media (max-width: 480px) {
  main { padding-top: 30px; }
  h1 { font-size: 38px; }
  .focus-switch { flex-direction: column; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: auto; }
  footer { gap: 10px; flex-direction: column; }
}
