/* Ver.54.8.6 — SIX COLORS / LIGHT FIRST. Visual styling only.
   Keep all existing functional JS, saved data, APIs and six workflow stages unchanged. */
:root[data-theme="light"]{
  color-scheme:light;
  --navy:#133e66;--navy2:#1d537b;--blue:#155c9c;--accent:#f4cb42;
  --text:#1b344a;--muted:#536b7c;--bg:#f5f8fc;--border:#d5e2ec;--white:#fff;
  --boat1:#fff;--boat2:#20242a;--boat3:#e73f4c;--boat4:#2468d5;--boat5:#f6cf2c;--boat6:#16824c;
  --action:#1164aa;--actionHover:#084c86;--softblue:#eaf3ff;
}
:root[data-theme="light"] body.v66-fresh{background:#f6f9fd;color:var(--text)}
/* A six-color signature; no full saturated content backgrounds. */
body.v66-fresh .hero{position:relative;padding:12px 0 14px!important;min-height:0!important}
:root[data-theme="light"] body.v66-fresh .hero{background:linear-gradient(115deg,#fafdff 0%,#eaf3ff 100%);color:#173953;border-bottom:1px solid #c4d8e9}
body.v66-fresh .hero::before{content:"";position:absolute;top:0;left:0;right:0;height:7px;background:linear-gradient(to right,#ffffff 0 16.66%,#22262b 16.66% 33.33%,#e94350 33.33% 50%,#286bd7 50% 66.66%,#f4cc27 66.66% 83.33%,#168650 83.33% 100%);border-bottom:1px solid #cad6e0}
body.v66-fresh .hero-grid{display:none!important}
body.v66-fresh .brand{gap:10px}
:root[data-theme="light"] body.v66-fresh .brand b{color:#183c61;font-size:20px;letter-spacing:-.01em}
:root[data-theme="light"] body.v66-fresh .overline{color:#54708a;font-size:9px;letter-spacing:.11em}
body.v66-fresh .mark{transform:none;border-radius:12px;width:43px;height:43px;line-height:43px;box-shadow:inset 0 0 0 2px #f0c21e,0 3px 9px #0d305520}
:root[data-theme="light"] body.v66-fresh .mark{background:#f8d543;color:#1b344a}
:root[data-theme="light"] body.v66-fresh .version{border-color:#aabfd2;color:#49677b;background:#fff;font-weight:700}
:root[data-theme="light"] body.v66-fresh .theme-toggle{border:1px solid #c4d8e8;background:white;color:#17486a;font-weight:800;box-shadow:0 1px 2px #16415d12}
:root[data-theme="light"] body.v66-fresh .theme-toggle:hover{background:#eaf2fb}
/* Compact real-work header */
body.v66-fresh .quick-heading{margin:9px 0 3px;padding:2px 0!important}
:root[data-theme="light"] body.v66-fresh .quick-heading h2{color:#183b61;font-size:21px}
:root[data-theme="light"] body.v66-fresh .quick-heading h2 small{color:#6d8799;font-weight:700}
:root[data-theme="light"] body.v66-fresh .quick-eyebrow{color:#2067a1;letter-spacing:.08em}
:root[data-theme="light"] body.v66-fresh .quick-mode-switch{background:#fff;border:1px solid #cfdee8;border-left:4px solid #e5b72e;box-shadow:0 2px 8px #1d5b8e0a}
:root[data-theme="light"] body.v66-fresh #quick-test-banner{background:#eff9f1;border-color:#a6d4b0;color:#1b6537}
:root[data-theme="light"] body.v66-fresh .v65-safe-menu{background:#fff;border-color:#d7e2ec}
:root[data-theme="light"] body.v66-fresh .v65-research-menu>summary{background:#f7f9fc;color:#63798a;border:1px dashed #b9cada}
:root[data-theme="light"] body.v66-fresh .quick-controls{background:#fff;border-color:#b9d1e5;box-shadow:0 2px 9px #1c5d9910}
:root[data-theme="light"] body.v66-fresh select,:root[data-theme="light"] body.v66-fresh input:not([type="checkbox"]):not([type="radio"]),:root[data-theme="light"] body.v66-fresh textarea{background:#fff;color:#1a344b;border-color:#b7ccda}
/* Six-color boat identity, exclusively on genuine boat indicators */
body.v66-fresh .v66-six-ribbon{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin:7px 0 8px;max-width:440px}
body.v66-fresh .v66-six-ribbon span{font-size:14px;font-weight:950;display:grid;place-items:center;height:29px;border-radius:7px;border:1px solid #d6e0e7;background:white;color:#192c3d}
body.v66-fresh .v66-six-ribbon span:nth-child(2){background:#20242a;color:#fff;border-color:#20242a}
body.v66-fresh .v66-six-ribbon span:nth-child(3){background:#e73f4c;color:#fff;border-color:#e73f4c}
body.v66-fresh .v66-six-ribbon span:nth-child(4){background:#2468d5;color:#fff;border-color:#2468d5}
body.v66-fresh .v66-six-ribbon span:nth-child(5){background:#f6cf2c;color:#20242a;border-color:#e5be16}
body.v66-fresh .v66-six-ribbon span:nth-child(6){background:#16824c;color:#fff;border-color:#16824c}
:root[data-theme="light"] body.v66-fresh .quick-boat,
:root[data-theme="light"] body.v66-fresh .v18-boat,
:root[data-theme="light"] body.v66-fresh .v54-boat-number{font-weight:950}
/* Step tiles: colorful accent, but stage identity is not mistaken for boat assignment */
:root[data-theme="light"] body.v66-fresh .v65-guide{border:1px solid #cae0f4;border-left:5px solid #1769b1;background:linear-gradient(100deg,#e8f3ff,#f9fcff);padding:10px 13px;box-shadow:0 3px 12px #1d5a9610}
:root[data-theme="light"] body.v66-fresh .v65-guide b{color:#123a60}
:root[data-theme="light"] body.v66-fresh .v65-guide span{color:#155e98;font-size:13px}
:root[data-theme="light"] body.v66-fresh #v47-tabs{background:#fff;border:1px solid #d8e5f0;border-radius:13px;padding:7px;box-shadow:0 3px 12px #1543660c}
:root[data-theme="light"] body.v66-fresh #v47-tabs button{background:#f8fafc;border-color:#d4e0eb;color:#344e64;border-bottom-width:4px;box-shadow:0 1px 2px #13375708;border-radius:10px;font-size:12px;min-height:47px}
:root[data-theme="light"] body.v66-fresh #v47-tabs button:nth-child(1){border-bottom-color:#b6c4d0}
:root[data-theme="light"] body.v66-fresh #v47-tabs button:nth-child(2){border-bottom-color:#31383f}
:root[data-theme="light"] body.v66-fresh #v47-tabs button:nth-child(3){border-bottom-color:#e44350}
:root[data-theme="light"] body.v66-fresh #v47-tabs button:nth-child(4){border-bottom-color:#2876d6}
:root[data-theme="light"] body.v66-fresh #v47-tabs button:nth-child(5){border-bottom-color:#e9b811}
:root[data-theme="light"] body.v66-fresh #v47-tabs button:nth-child(6){border-bottom-color:#238c56}
:root[data-theme="light"] body.v66-fresh #v47-tabs button[aria-selected="true"]{background:#144f83!important;color:#fff!important;border-color:#144f83!important;border-bottom-color:#f1cf41!important;box-shadow:0 3px 9px #104f8530}
/* Priority input surfaces */
:root[data-theme="light"] body.v66-fresh .v47-pane>.v65-lead,
:root[data-theme="light"] body.v66-fresh .v65-step-heading{background:linear-gradient(90deg,#e9f3ff,#fff);border:1px solid #c9dff3;border-left:5px solid #2373b4;border-radius:10px;padding:10px 12px;color:#173f63}
:root[data-theme="light"] body.v66-fresh .v47-pane>.v65-lead strong,
:root[data-theme="light"] body.v66-fresh .v65-step-heading strong{color:#153d61}
:root[data-theme="light"] body.v66-fresh .v47-panel,
:root[data-theme="light"] body.v66-fresh .v45-section,
:root[data-theme="light"] body.v66-fresh .v64-panel{background:#fff;border-color:#d3e1ec;border-radius:13px;box-shadow:0 2px 9px #1748750b}
:root[data-theme="light"] body.v66-fresh .v45-title h3,
:root[data-theme="light"] body.v66-fresh .v47-panel h3{color:#163c60}
:root[data-theme="light"] body.v66-fresh .v65-extra{background:#f8fafc;border:1px dashed #bccfdf;box-shadow:none}
:root[data-theme="light"] body.v66-fresh .v65-extra>summary{color:#4f6d86}
:root[data-theme="light"] body.v66-fresh .v65-extra[open]{background:#fff;border-style:solid}
:root[data-theme="light"] body.v66-fresh .v65-footer{background:#f0f7ff;border-color:#c6ddf0}
:root[data-theme="light"] body.v66-fresh .v65-foot-row .v65-back{background:#fff;border-color:#b7ccde;color:#2a5778}
:root[data-theme="light"] body.v66-fresh .v65-foot-row .v65-next{background:#146cac!important;color:#fff!important;border-color:#146cac!important;box-shadow:0 4px 8px #1369ae25}
:root[data-theme="light"] body.v66-fresh .v65-foot-row .v65-next:hover{background:#07558c!important}
:root[data-theme="light"] body.v66-fresh .v64-panel{border-left:4px solid #f0b53e}
:root[data-theme="light"] body.v66-fresh button.primary,
:root[data-theme="light"] body.v66-fresh .primary{background:#1164a7;border-color:#1164a7;color:#fff}
:root[data-theme="light"] body.v66-fresh .outline,
:root[data-theme="light"] body.v66-fresh .secondary{background:#fff;color:#155e98;border-color:#b0cadf}
:root[data-theme="light"] body.v66-fresh button:focus-visible{outline-color:#df9d00}
/* Distinguish a selected boat with a ring without changing its color identity */
body.v66-fresh .v47-lane-group button.selected{outline:3px solid #f7b83f!important;outline-offset:2px}
:root[data-theme="light"] body.v66-fresh .v54-buttons .v54-boat.active{border-color:#176aa0;box-shadow:0 0 0 2px #b5dcf0}
/* Dark remains available on explicit request and retains restrained contrast */
:root[data-theme="dark"] body.v66-fresh .hero::before{border-color:#546875}
:root[data-theme="dark"] body.v66-fresh .v66-six-ribbon span:first-child{color:#172b3b}
/* Small screen: minimal scroll, strong tap targets, no sideways scrolling. */
@media(max-width:750px){
 body.v66-fresh .hero{padding:10px 0 8px!important}
 body.v66-fresh .hero .brand{gap:7px}
 body.v66-fresh .brand b{font-size:17px!important}
 body.v66-fresh .version{display:none}
 body.v66-fresh .quick-heading h2{font-size:18px!important}
 body.v66-fresh .v65-guide{padding:8px 10px}
 body.v66-fresh .v65-guide>small{font-size:10px}
 body.v66-fresh .v66-six-ribbon{margin:5px 0 6px}
 body.v66-fresh #v47-tabs{position:sticky;top:0;z-index:25}
 body.v66-fresh #v47-tabs button{min-height:46px;font-size:11px!important;line-height:1.32}
 body.v66-fresh .v65-extra>summary{min-height:46px}
}
@media(max-width:390px){body.v66-fresh .hero .brand .overline{display:none}body.v66-fresh .v65-guide b{font-size:13px}}
