/* Khan v160.15 · deliberate feedback, accessible quick find and inspectable data. */
.ks-command-trigger { font-family:var(--sans); cursor:pointer; }
html[data-design="signature"] .topbar .ks-command-top { display:flex; align-items:center; gap:9px; flex:0 0 auto; min-height:36px; padding:4px 10px; border:1px solid rgba(221,211,164,.3); border-radius:10px; background:rgba(255,255,231,.06); color:#e8e5ce; }
.ks-command-top>span { font:24px/1 var(--sans); }
.ks-command-top kbd { font:500 10px/1.4 var(--mono,monospace); color:inherit; }
.ks-command-top:hover { background:rgba(255,255,231,.13) !important; }
.ks-command-menu { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:44px; padding:10px 12px; border:1px solid var(--ui-line); border-radius:12px; background:var(--ui-soft); color:var(--ui-heading); font-size:12px; font-weight:600; }
.ks-command-menu>span { font-size:22px; }
html.ks-command-lock,html.ks-command-lock body { overflow:hidden !important; }
.ks-command-veil { position:fixed; inset:0; z-index:16000; display:flex; align-items:flex-start; justify-content:center; padding:clamp(20px,9vh,86px) 18px 20px; background:rgba(4,22,14,.62); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); }
.ks-command { box-sizing:border-box; display:flex; flex-direction:column; width:min(620px,100%); max-height:min(680px,83dvh); border:1px solid var(--ui-line); border-radius:24px; background:var(--ui-paper); color:var(--ui-ink); box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 32px 100px -20px rgba(0,15,7,.55); overflow:hidden; font-family:var(--sans); }
.ks-command-heading { display:flex; align-items:center; gap:13px; padding:24px 24px 18px; }
.ks-command-mark { display:grid; place-items:center; flex:0 0 43px; height:43px; border-radius:13px; font:600 25px/1 var(--serif,serif); color:#e7cd7d; background:linear-gradient(135deg,#285c3a,#143b27); border:1px solid #718055; box-shadow:inset 0 1px 0 #8a9460,0 5px 10px -6px #1c4427; }
.ks-command-eyebrow { color:var(--ui-muted); font:600 9px/1.4 var(--mono,monospace); letter-spacing:.16em; }
html[data-design="signature"] .ks-command h2 { font:600 23px/1.25 var(--sans) !important; letter-spacing:-.04em; color:var(--ui-heading) !important; margin:4px 0 0; }
.ks-command-close { margin-left:auto; flex:0 0 36px; height:36px; border:1px solid var(--ui-line); border-radius:50%; background:var(--ui-soft); color:var(--ui-muted); font:23px/1 var(--sans); cursor:pointer; }
.ks-command-search { display:flex; align-items:center; gap:12px; margin:0 24px 14px; padding:0 14px; min-height:52px; border:1px solid var(--ui-line); border-radius:14px; background:var(--ui-soft); }
.ks-command-search:focus-within { border-color:var(--ui-brand); box-shadow:0 0 0 3px rgba(85,143,97,.13); }
.ks-command-search>span { font-size:28px; color:var(--ui-brand); }
html[data-design="signature"] .ks-command-search input { border:0 !important; outline:0 !important; box-shadow:none !important; background:transparent !important; color:var(--ui-ink) !important; font:500 15px/1.5 var(--sans); min-width:0; width:100%; padding:12px 0; border-radius:0; }
.ks-command-search input::placeholder { color:var(--ui-muted); opacity:1; }
.ks-command kbd { color:var(--ui-muted); border:1px solid var(--ui-line); border-radius:5px; padding:2px 4px; font:500 9px/1.3 var(--mono,monospace); white-space:nowrap; }
.ks-command-filters { display:flex; align-items:center; gap:7px; padding:0 24px 14px; border-bottom:1px solid var(--ui-line); }
.ks-command-filters button { cursor:pointer; min-height:33px; padding:6px 12px; border:1px solid transparent; background:transparent; color:var(--ui-muted); font:600 11px/1.4 var(--sans); border-radius:9px; }
.ks-command-filters button[aria-pressed="true"] { background:var(--ui-soft); color:var(--ui-brand); border-color:var(--ui-line); }
.ks-command-list { min-height:80px; overflow-y:auto; overscroll-behavior:contain; padding:8px; scrollbar-width:thin; }
.ks-command-option { display:flex; align-items:center; gap:12px; width:100%; padding:11px 14px; min-height:64px; border:1px solid transparent; background:transparent; text-align:left; border-radius:13px; color:var(--ui-ink); cursor:pointer; font-family:var(--sans); }
.ks-command-option.is-active { background:var(--ui-soft); border-color:var(--ui-line); }
.ks-command-option>span:nth-child(2) { display:flex; flex-direction:column; gap:4px; flex:1; min-width:0; }
.ks-command-option b { color:var(--ui-heading); font-size:13px; line-height:1.4; font-weight:600; }
.ks-command-option small { color:var(--ui-muted); font-size:10px; line-height:1.4; }
.ks-command-icon { display:grid; place-items:center; flex:0 0 36px; height:36px; background:var(--ui-paper); border:1px solid var(--ui-line); border-radius:11px; font-size:18px; color:var(--ui-brand); }
.ks-command-kind { font-size:9px; color:var(--ui-muted); }
.ks-command-arrow { color:var(--ui-brand); font-size:16px; }
.ks-command-empty { padding:30px 20px; text-align:center; font-size:13px; line-height:1.7; color:var(--ui-muted); }
.ks-command-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 24px; border-top:1px solid var(--ui-line); font-size:10px; color:var(--ui-muted); background:var(--ui-soft); }
.ks-command-footer>span:last-child { display:flex; align-items:center; gap:5px; }
.ks-command-trigger:focus-visible,.ks-command button:focus-visible { outline:3px solid var(--ui-gold); outline-offset:3px; }
/* Feedback is bounded to the activated control and removed after 600 ms. */
.ks-ripple-wrap { position:fixed; pointer-events:none; z-index:16002; overflow:hidden; contain:strict; }
.ks-ripple-wrap i { position:absolute; display:block; border-radius:50%; background:radial-gradient(circle,rgba(236,213,137,.34),rgba(236,213,137,.12) 50%,transparent 70%); transform:translate(-50%,-50%) scale(0); animation:ks-tap-wave .55s cubic-bezier(.22,1,.36,1) both; }
@keyframes ks-tap-wave { 0% { transform:translate(-50%,-50%) scale(0); opacity:1; } 100% { transform:translate(-50%,-50%) scale(1); opacity:0; } }
@keyframes ks-view-in { from { opacity:.5; transform:translateY(7px); } to { opacity:1; transform:none; } }
html:not([data-alive-motion="off"]):not([data-alive-focus="true"]) .ks-view-enter { animation:ks-view-in .34s cubic-bezier(.22,1,.36,1) both; }
html:not([data-alive-motion="off"]):not([data-alive-focus="true"]) :is(.btn,.mth-btn,.ksat-quick__b):active { scale:.98; }
/* Exact outcome proportions, independent of animation or rendering speed. */
.ak-overview { display:flex; align-items:center; gap:30px; padding:26px 32px; margin-bottom:20px; border:1px solid var(--ui-line); border-radius:24px; background:radial-gradient(ellipse at 0 50%,rgba(103,147,89,.09),transparent 45%),var(--ui-paper); box-shadow:inset 0 1px 0 var(--sp-glint),0 12px 35px -26px var(--sp-shadow); }
.ak-ring { flex:0 0 140px; width:140px; height:140px; position:relative; }
.ak-ring svg { width:100%; height:100%; overflow:visible; transform:rotate(-90deg); }
.ak-ring circle { fill:none; stroke-width:8; }
.ak-ring-track { stroke:var(--ui-line); }
.ak-ring-segment { stroke-linecap:butt; }
.ak-ring-correct { stroke:#448b5d; }.ak-ring-wrong { stroke:#c47564; }.ak-ring-empty { stroke:#c9a227; }
.ak-ring>div { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; }
.ak-ring strong { color:var(--ui-heading); font:600 26px/1.2 var(--sans); letter-spacing:-.05em; }
.ak-ring small { font:500 10px/1.4 var(--sans); color:var(--ui-muted); }
.ak-overview-copy { flex:1; min-width:0; }
.ak-overview .ak-eyebrow { color:var(--ui-muted); font-size:9px; margin-bottom:5px; }
html[data-design="signature"] .ak-overview h2 { margin:0 0 7px; color:var(--ui-heading) !important; font:600 24px/1.25 var(--sans) !important; letter-spacing:-.035em; }
.ak-overview p { font-size:12px; line-height:1.65; color:var(--ui-muted); margin:0 0 17px; }
.ak-overview .ak-outcomes { border:0; border-radius:0; padding:0; margin:0; background:none; gap:10px 23px; }
.ak-overview .ak-outcomes>span { font-size:11px; }
.ak-chart-control { border-radius:10px; cursor:crosshair; touch-action:pan-y; }
.ak-chart-control:focus-visible { outline:2px solid var(--ui-brand); outline-offset:5px; }
.ak-crosshair { stroke:var(--ui-gold); stroke-width:1.2; stroke-dasharray:3 4; pointer-events:none; }
.ak-chart-inspect { display:flex; align-items:center; gap:8px; border-top:1px solid var(--ui-line); margin-top:8px; padding-top:12px; }
.ak-chart-inspect button { flex:0 0 34px; height:34px; border:1px solid var(--ui-line); border-radius:10px; background:var(--ui-soft); color:var(--ui-heading); cursor:pointer; font:15px/1 var(--sans); }
.ak-chart-inspect button:disabled { opacity:.35; cursor:default; }
.ak-chart-inspect button:focus-visible { outline:2px solid var(--ui-brand); outline-offset:2px; }
.ak-chart-readout { flex:1; text-align:center; color:var(--ui-muted); font:500 10px/1.6 var(--mono,monospace); font-variant-numeric:tabular-nums; }
.ak-loading { padding:36px 20px 22px; }
.ak-skeleton { display:grid; gap:18px; padding-bottom:40px; }
.ak-skeleton i { display:block; height:180px; border-radius:22px; background:linear-gradient(110deg,var(--ui-soft) 25%,var(--ui-paper) 45%,var(--ui-soft) 65%); background-size:220% 100%; border:1px solid var(--ui-line); animation:ks-skeleton 1.8s linear infinite; }
.ak-skeleton>div { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.ak-skeleton>div i { height:128px; }
@keyframes ks-skeleton { to { background-position:-220% 0; } }
@media (max-width:1100px) { .ks-command-top kbd { display:none; } }
@media (max-width:899px) { html[data-design="signature"] .topbar .ks-command-top { display:none; } }
@media (max-width:600px) {
  .ks-command-veil { padding:12px; }
  .ks-command { max-height:calc(100dvh - 24px); border-radius:20px; }
  .ks-command-heading { padding:20px 17px 16px; }
  html[data-design="signature"] .ks-command h2 { font-size:21px !important; }
  .ks-command-search { margin:0 16px 12px; padding:0 11px; gap:8px; }
  html[data-design="signature"] .ks-command-search input { font-size:16px; }
  .ks-command-filters { padding:0 16px 12px; }
  .ks-command-option { padding:10px; gap:10px; }
  .ks-command-kind { display:none; }
  .ks-command-footer { padding:13px 17px; }
  .ks-command-footer>span:last-child { display:none; }
  .ak-overview { flex-direction:column; align-items:flex-start; gap:17px; padding:24px; }
  .ak-ring { flex-basis:120px; width:120px; height:120px; align-self:center; }
  .ak-overview .ak-outcomes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px 15px; }
  .ak-overview-copy { width:100%; }
  .ak-skeleton>div { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
html[data-alive-motion="off"] :is(.ks-ripple-wrap,.ak-skeleton i),html[data-alive-focus="true"] .ks-ripple-wrap { animation:none !important; }
html[data-alive-motion="off"] .ks-ripple-wrap,html[data-alive-focus="true"] .ks-ripple-wrap { display:none; }
@media (prefers-reduced-motion:reduce) {
  .ks-ripple-wrap { display:none !important; }
  .ks-view-enter,.ak-skeleton i { animation:none !important; }
  :is(.btn,.mth-btn,.ksat-quick__b):active { scale:1 !important; }
}
@media print { .ks-command-trigger,.ks-command-veil,.ks-ripple-wrap,.ak-chart-inspect { display:none !important; } }
