/* Segev Studio - components. Built only from tokens.css. RTL first.
   Load order: fonts/heebo.css, tokens.css, components.css */

.ss{font-family:var(--font);color:var(--c-navy)}
.ss *,.ss *::before,.ss *::after{box-sizing:border-box}

/* ---------- buttons ---------- */
.ss-btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--s-1);min-height:var(--hit);padding:0 24px;border-radius:var(--r-btn);font:var(--w-medium) 16px var(--font);border:2px solid transparent;cursor:pointer;text-decoration:none;transition:transform var(--t-fast) ease,background-color var(--t-fast) ease,box-shadow var(--t-fast) ease}
.ss-btn svg{width:20px;height:20px}
.ss-btn--primary{background:var(--c-yellow);color:var(--c-navy)}
.ss-btn--primary:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(247,182,49,.35)}
.ss-btn--secondary{background:var(--c-navy);color:var(--c-cream)}
.ss-btn--secondary:hover{transform:translateY(-2px)}
.ss-btn--outline{background:transparent;color:var(--c-navy);border-color:var(--c-text-2)}
.ss-btn--outline:hover{border-color:var(--c-navy)}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-btn--outline{color:var(--c-cream);border-color:var(--c-text-2-dark)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-btn--secondary{background:var(--c-cream);color:var(--c-navy)}}
.ss-btn--quiet{background:transparent;color:var(--c-navy);padding:0 8px;text-decoration:underline;text-underline-offset:4px}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-btn--quiet{color:var(--c-cream)}}
.ss-btn[disabled]{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-btn[disabled]{opacity:1;background:var(--c-line-dark);color:var(--c-text-2-dark);border-color:transparent}}

/* ---------- pills and tags ---------- */
.ss-pill{display:inline-flex;align-items:center;gap:8px;border-radius:var(--r-pill);padding:6px 14px;font:var(--w-medium) 14px var(--font);background:var(--c-white);color:var(--c-navy)}
.ss-pill .dot{width:8px;height:8px;border-radius:50%;background:var(--c-navy)}
.ss-pill--active{background:var(--c-navy);color:var(--c-cream)}
/* status (1.12, hers): quiet surface, colour only in the sign, one sign colour per status on both sides.
   The base look is the light one, so a page that forgot its surface class still shows the decided look (2.12). */
.ss-pill--ok{background:var(--c-white)}.ss-pill--ok .dot{background:var(--c-ok-sign)}
.ss-pill--warn{background:var(--c-white)}.ss-pill--warn .dot{background:var(--c-warn-sign)}
.ss-pill--issue{background:var(--c-white)}.ss-pill--issue .dot{background:var(--c-issue-sign)}
.ss-pill--glass{background:rgba(238,233,226,.08);color:var(--c-cream)}
.ss-edge-tag{position:absolute;top:-12px;right:20px;background:var(--c-yellow);color:var(--c-navy);font:var(--w-bold) 13px var(--font);padding:4px 10px;border-radius:8px}
.ss-eyebrow{display:inline-flex;align-items:center;gap:8px;font:var(--w-medium) 13px var(--font);letter-spacing:.02em;color:var(--c-text-2);border:1px solid var(--c-line);border-radius:var(--r-pill);padding:4px 12px}

/* ---------- cards (rotate between variants) ---------- */
.ss-card{position:relative;background:var(--c-white);border-radius:var(--r-lg);padding:var(--s-3)}
.ss-card h3{font:var(--w-bold) var(--fs-card-title)/1.3 var(--font);margin:0 0 var(--s-1)}
.ss-card p{font:var(--w-regular) var(--fs-body)/var(--lh-body) var(--font);margin:0}
.ss-card .meta{font:var(--w-medium) 14px var(--font);color:var(--c-text-2);margin-bottom:var(--s-1)}
.ss-card--top{border-top:6px solid var(--c-navy);border-radius:var(--r-lg) var(--r-lg) var(--r-md) var(--r-md)}
.ss-card--top.y{border-top-color:var(--c-yellow)}
.ss-card--side{border-right:6px solid var(--c-yellow)} /* rotation only, never the default */
.ss-card--recommended{border:2px solid var(--c-yellow)}
.ss-card--glass{background:rgba(238,233,226,.06);border:1px solid var(--c-line-dark);color:var(--c-cream)}
.ss-card--glass .meta{color:var(--c-text-2-dark)}
.ss-card--muted{background:transparent;border:1px dashed var(--c-text-2)}

/* ---------- inner surfaces / callouts ---------- */
.ss-inner{background:var(--c-cream);border-radius:var(--r-md);padding:var(--s-2)}
.ss-callout{border-radius:var(--r-md);padding:var(--s-2);display:flex;gap:12px;align-items:flex-start;font:var(--w-regular) 16px/1.6 var(--font)}
.ss-callout b{display:block;font-weight:var(--w-bold);margin-bottom:2px}
.ss-callout .ic{flex:none;width:32px;height:32px;border-radius:10px;display:flex;align-items:center;justify-content:center}
.ss-callout--tip{background:var(--c-cream)}.ss-callout--tip .ic{background:var(--c-navy);color:var(--c-yellow)}
.ss-callout--update{background:var(--c-white)}.ss-callout--update .ic{background:var(--c-warn-sign);color:var(--c-navy)}
.ss-callout--warning{background:var(--c-white)}.ss-callout--warning .ic{background:var(--c-issue-sign);color:var(--c-navy)}
.ss-callout--ok{background:var(--c-white)}.ss-callout--ok .ic{background:var(--c-ok-sign);color:var(--c-navy)}
.ss-quote{position:relative;padding:var(--s-3) var(--s-4);font:var(--w-medium) 20px/1.6 var(--font)}
.ss-quote::before{content:"\201D";position:absolute;right:0;top:-18px;font:var(--w-bold) 72px/1 var(--font);color:var(--c-yellow)}

/* ---------- prompt card ---------- */
.ss-prompt{position:relative;background:var(--c-white);border-radius:var(--r-lg);padding:28px var(--s-3) var(--s-3)}
.ss-prompt .box{background:var(--c-cream);border-radius:var(--r-md);padding:var(--s-2);font:var(--w-regular) 16px/1.65 var(--font);white-space:pre-wrap}
.ss-prompt .box mark{background:var(--c-warn-surface);color:var(--c-navy);border-radius:4px;padding:0 3px}
.ss-prompt .foot{display:flex;align-items:center;gap:12px;margin-top:var(--s-2)}
.ss-spark{display:flex;gap:6px}.ss-spark i{width:14px;height:14px;background:var(--c-yellow);clip-path:polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%);animation:ss-spark 1.2s ease 2}

/* ---------- tables ---------- */
.ss-table-wrap{overflow-x:auto;border-radius:var(--r-lg);-webkit-overflow-scrolling:touch}
.ss-table-wrap{scrollbar-width:thin}
@media (max-width:640px){.ss-table-wrap .ss-table{min-width:560px}}
.ss-table{width:100%;border-collapse:separate;border-spacing:0;background:var(--c-white);border-radius:var(--r-lg);overflow:hidden;font:var(--w-regular) 16px/1.5 var(--font)}
.ss-table th{background:var(--c-navy);color:var(--c-cream);font-weight:var(--w-bold);text-align:right;padding:16px 20px}
.ss-table td{padding:16px 20px;border-top:1px solid var(--c-line);vertical-align:top}
.ss-table tbody tr:nth-child(even) td{background:rgba(238,233,226,.4)}
.ss-table .rec{background:var(--c-warn-surface)!important}
.ss-table th.rec{background:var(--c-navy)!important;box-shadow:inset 0 4px 0 var(--c-yellow);color:var(--c-yellow)}
.ss-rows{display:flex;flex-direction:column;gap:12px}
.ss-row{display:grid;grid-template-columns:56px 1.2fr 2fr 1fr;gap:20px;align-items:center;background:var(--c-white);border-radius:var(--r-lg);padding:16px 20px;font:var(--w-regular) 16px/1.5 var(--font)}
.ss-row .ic{width:44px;height:44px;border-radius:12px;background:var(--c-cream);display:flex;align-items:center;justify-content:center}

/* ---------- lesson tabs ---------- */
.ss-tabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid var(--c-line-dark);scrollbar-width:none}
.ss-tab{flex:none;min-height:var(--hit);padding:0 16px;background:transparent;border:0;border-bottom:3px solid transparent;color:var(--c-text-2-dark);font:var(--w-medium) 15px var(--font);cursor:pointer;display:inline-flex;align-items:center;gap:8px}
.ss-tab[aria-selected="true"]{color:var(--c-cream);border-bottom-color:var(--c-yellow)}
.ss-tab .count{background:var(--c-yellow);color:var(--c-navy);border-radius:var(--r-pill);font-size:12px;font-weight:var(--w-bold);padding:0 7px}

/* ---------- steps ---------- */
.ss-steps{position:relative;display:flex;flex-direction:column;gap:var(--s-2);padding-right:48px}
.ss-steps .rail{position:absolute;right:15px;top:12px;bottom:12px;width:3px;background:var(--c-line-dark);border-radius:2px}
.ss-steps .rail i{display:block;width:3px;background:var(--c-yellow);border-radius:2px;height:0;transition:height .45s ease-out}
.ss-step{position:relative;color:var(--c-cream);font:var(--w-regular) 17px/1.5 var(--font)}
.ss-step .n{position:absolute;right:-48px;top:-2px;width:34px;height:34px;border-radius:50%;border:3px solid var(--c-yellow);background:var(--ss-surface,var(--c-navy));color:var(--c-yellow);font:var(--w-bold) 15px var(--font);display:flex;align-items:center;justify-content:center}
.ss-step b{display:block;font-weight:var(--w-bold)}
.ss-step.final{background:var(--c-yellow);color:var(--c-navy);border-radius:var(--r-pill);padding:12px 20px}
.ss-step.final .n{background:var(--c-yellow);border-color:var(--c-yellow);color:var(--c-navy);top:50%;transform:translateY(-50%)}
.ss-step.final{display:flex;align-items:center;min-height:52px}

/* ---------- data ---------- */
.ss-bar{height:8px;border-radius:4px;background:var(--c-cream);overflow:hidden}.ss-bar i{display:block;height:100%;background:var(--c-navy);border-radius:4px}
.ss-big{font:var(--w-bold) 64px/1 var(--font);color:var(--c-yellow)}

/* ---------- inputs ---------- */
.ss-field{display:flex;flex-direction:column;gap:6px;font:var(--w-medium) 15px var(--font)}
.ss-field input,.ss-field textarea{min-height:var(--hit);border:1.5px solid var(--c-text-2);border-radius:var(--r-md);padding:10px 14px;font:var(--w-regular) 16px var(--font);color:var(--c-navy);background:var(--c-white)}
.ss-field input:focus,.ss-field textarea:focus{outline:none;border-color:var(--c-navy);box-shadow:0 0 0 3px var(--c-warn-surface)}
.ss-field .help{font:var(--w-regular) 14px/1.5 var(--font);color:var(--c-text-2)}
.ss-check{display:flex;gap:10px;align-items:flex-start;font:var(--w-regular) 15px/1.5 var(--font)}
.ss-check input{width:22px;height:22px;accent-color:var(--c-navy);flex:none;margin-top:1px}
.ss-search{box-shadow:0 0 0 1.5px var(--c-line);display:flex;align-items:center;gap:12px;background:var(--c-white);border-radius:14px;min-height:56px;padding:0 20px;font:var(--w-regular) 17px var(--font);color:var(--c-text-2)}

/* ---------- chat (agent, option B) ---------- */
.ss-chat{background:var(--c-cream);padding:var(--s-2);display:flex;flex-direction:column;gap:var(--s-2)}
.ss-msg-agent{display:flex;gap:10px;align-items:flex-start;font:var(--w-regular) 17px/1.6 var(--font)}
.ss-msg-user{align-self:flex-end;max-width:80%;background:var(--c-white);border:1px solid var(--c-line);border-radius:16px 16px 4px 16px;padding:12px 16px;font:var(--w-regular) 17px/1.6 var(--font)}

/* ---------- bottom line ---------- */
.ss-marker{background-image:linear-gradient(var(--c-yellow),var(--c-yellow));background-repeat:no-repeat;background-position:right 88%;background-size:0% 34%;transition:background-size .7s var(--ease-inout)}
.ss-marker.on{background-size:100% 34%}
.ss-baseline{background:var(--c-navy);color:var(--c-cream);border-radius:0 0 var(--r-lg) var(--r-lg);padding:var(--s-2) var(--s-3);font:var(--w-medium) 17px/1.5 var(--font)}
.ss-baseline em{font-style:normal;color:var(--c-yellow)}

/* ---------- tables: more forms ---------- */
.ss-tcols{display:grid;gap:16px;align-items:end}
.ss-tcol{background:var(--c-white);border-radius:var(--r-lg);padding:var(--s-3);display:flex;flex-direction:column;gap:12px}
.ss-tcol h4{margin:0;font:var(--w-bold) 20px var(--font)}
.ss-tcol .row{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--c-line);padding-top:12px;font:var(--w-regular) 15px/1.5 var(--font)}
.ss-tcol .row span:first-child{color:var(--c-text-2)}
.ss-tcol--rec{background:var(--c-navy);color:var(--c-cream);padding-top:40px;position:relative;transform:translateY(-12px);box-shadow:var(--shadow-lift)}
.ss-tcol--rec .row{border-top-color:var(--c-line-dark)}.ss-tcol--rec .row span:first-child{color:var(--c-text-2-dark)}
.ss-matrix{width:100%;border-collapse:collapse;font:var(--w-regular) 16px var(--font)}
.ss-matrix th{font:var(--w-medium) 14px var(--font);color:var(--c-text-2);text-align:center;padding:12px;border-bottom:2px solid var(--c-navy)}
.ss-matrix th:first-child{text-align:right}
.ss-matrix td{padding:14px 12px;text-align:center;border-bottom:1px solid var(--c-line)}
.ss-matrix td:first-child{text-align:right;font-weight:var(--w-bold)}
.ss-yes,.ss-no,.ss-part{display:inline-flex;width:30px;height:30px;border-radius:50%;align-items:center;justify-content:center;font-weight:var(--w-bold);font-size:19px} /* 19px bold = large text, contrast 3 is enough (fixed 1.12) */
.ss-yes{background:var(--c-ok-sign);color:var(--c-navy)}.ss-no{background:var(--c-issue-sign);color:var(--c-navy)}.ss-part{background:var(--c-warn-sign);color:var(--c-navy)}
.ss-dark-table{width:100%;border-collapse:separate;border-spacing:0 10px;font:var(--w-regular) 16px var(--font);color:var(--c-cream)}
.ss-dark-table th{font:var(--w-medium) 14px var(--font);color:var(--c-text-2-dark);text-align:right;padding:0 20px}
.ss-dark-table td{background:rgba(238,233,226,.06);padding:18px 20px}
.ss-dark-table td:first-child{border-radius:0 12px 12px 0;font-weight:var(--w-bold)}.ss-dark-table td:last-child{border-radius:12px 0 0 12px}
.ss-dark-table tr.hl td{background:rgba(238,233,226,.13)}.ss-dark-table tr.hl td:first-child{box-shadow:inset -4px 0 0 var(--c-yellow)}
.ss-dl{display:grid;grid-template-columns:auto 1fr;gap:0;background:var(--c-white);border-radius:var(--r-lg);overflow:hidden}
.ss-dl dt{background:var(--c-cream);padding:18px 20px;font:var(--w-bold) 16px var(--font);border-top:2px solid var(--c-white)}
.ss-dl dd{margin:0;padding:18px 20px;font:var(--w-regular) 16px/1.6 var(--font);border-top:1px solid var(--c-line)}
.ss-dl dt:first-of-type,.ss-dl dd:first-of-type{border-top:0}
.ss-bignum-table{display:grid;grid-template-columns:repeat(3,1fr);gap:0;background:var(--c-white);border-radius:var(--r-lg);overflow:hidden}
.ss-bignum-table>div{padding:var(--s-3);border-left:1px solid var(--c-line)}
.ss-bignum-table>div:last-child{border-left:0}
.ss-bignum-table .num{font:var(--w-bold) 44px/1 var(--font);color:var(--c-navy)}
.ss-bignum-table .lab{font:var(--w-medium) 14px var(--font);color:var(--c-text-2);margin-top:8px}
.ss-bignum-table .note{font:var(--w-regular) 15px/1.5 var(--font);margin-top:12px}

/* ---------- form, friendly ---------- */
.ss-form{max-width:560px;background:var(--c-white);border-radius:24px;overflow:hidden;box-shadow:0 1px 0 var(--c-line),0 24px 48px rgba(31,58,69,.10)}
.ss-form-head{position:relative;overflow:hidden;padding:28px 28px 24px;color:var(--c-cream)}
.ss-form-head h3{margin:8px 0 6px;font:var(--w-bold) 28px/1.25 var(--font)}
.ss-form-head h3 em{font-style:normal;color:var(--c-yellow)}
.ss-form-head p{margin:0;font:var(--w-regular) 16px/1.6 var(--font);color:var(--c-text-2-dark)}
.ss-form-steps{display:flex;gap:8px;margin-top:16px}.ss-form-steps i{height:4px;flex:1;border-radius:2px;background:var(--c-line-dark)}.ss-form-steps i.on{background:var(--c-yellow)}
.ss-form-body{padding:24px 28px 28px;display:flex;flex-direction:column;gap:18px}
.ss-ffield{display:flex;flex-direction:column;gap:6px}
.ss-ffield label{font:var(--w-bold) 15px var(--font)}
.ss-ffield .in{display:flex;align-items:center;gap:10px;min-height:52px;border-radius:14px;background:var(--c-cream);padding:0 16px;border:2px solid transparent;transition:border-color .2s,background .2s}
.ss-ffield .in:focus-within{background:var(--c-white);border-color:var(--c-navy)}
.ss-ffield .in svg{width:20px;height:20px;flex:none}
.ss-ffield input{flex:1;border:0;background:transparent;font:var(--w-regular) 17px var(--font);color:var(--c-navy);outline:none;min-height:48px}
.ss-ffield input::placeholder{color:var(--c-text-2)}
.ss-ffield .help{font:var(--w-regular) 14px/1.5 var(--font);color:var(--c-text-2)}
.ss-ffield .in.ok{border-color:var(--c-ok-sign);background:var(--c-white)}
.ss-promise{display:flex;gap:10px;align-items:center;font:var(--w-medium) 14px var(--font);color:var(--c-text-2)}
.ss-promise b{color:var(--c-navy)}

/* ---------- icons (Lucide, local: icons/lucide.min.js; call lucide.createIcons()) ---------- */
.ss-ic{width:24px;height:24px;stroke-width:2;flex:none}
.ss-ic--16{width:16px;height:16px}.ss-ic--20{width:20px;height:20px}.ss-ic--32{width:32px;height:32px}
.ss-ic--48{width:48px;height:48px;stroke-width:1.5}.ss-ic--96{width:96px;height:96px;stroke-width:1.25}
.ss-ic-chip{width:52px;height:52px;display:inline-flex;align-items:center;justify-content:center;border-radius:14px;background:var(--c-yellow);color:var(--c-navy)}
.ss-ic-chip--navy{background:var(--c-navy);color:var(--c-yellow);border-radius:50%}
.ss-ic-chip--ring{background:transparent;border:2px solid currentColor;border-radius:50%}
.ss-ic-chip--white{background:var(--c-white);color:var(--c-navy)}
.ss-brand-logo{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;background:var(--c-white)} /* third-party logos keep original colors, on a neutral tile */

/* ---------- from the test site (approved 1.12, moves in rotation) ---------- */
/* yellow period: the logo's dot at the end of the screen's key sentence. One per screen (two in a two-tone headline) */
.ss-period{color:var(--c-yellow)}
/* two-tone headline: the first part decides, the second explains. Large titles only, never running text */
.ss-two-tone .ss-tone2{color:var(--c-yellow);font-weight:500} /* move A (1.12): the grey second part "looked tired" */
.ss-two-tone.on-light .ss-tone2{color:var(--c-navy);font-weight:700;background-image:linear-gradient(var(--c-yellow),var(--c-yellow));background-repeat:no-repeat;background-position:right 100%;background-size:100% .08em;padding-bottom:.08em}
/* thin display: big headlines in 300; huge numbers in 200. Body text stays 400 */
.ss-display-thin{font-weight:var(--w-light);letter-spacing:-.01em;line-height:1.1}
.ss-big--thin{font-weight:var(--w-thin);font-size:clamp(56px,7vw,96px);line-height:1;letter-spacing:-.02em;color:inherit;direction:ltr;unicode-bidi:isolate;display:inline-block}

/* =====================================================================
   COUNTER VERSIONS (2026-12-01, her rule: "every component and background has a counter version").
   Every surface declares its side: .ss-on-light (cream or white) or .ss-on-dark (navy).
   Light-first components get a dark version here; dark-first ones (tabs, steps, dark table, glass, form head) get a light one.
   Yellow as TEXT only on navy (contrast); on light it becomes navy, and yellow stays a mark, line or dot.
   Check: 2026-12-01-components-both.html shows every component on both sides, with a contrast check.
   ===================================================================== */
@scope (.ss-on-light) to (.ss-on-dark){:scope{color:var(--c-navy);--ss-surface:var(--c-cream)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope{color:var(--c-cream);--ss-surface:var(--c-navy)}}
/* a white card inside a light surface: add style="--ss-surface:#fff" */

/* --- dark versions of light-first components --- */
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-pill{background:rgba(238,233,226,.08);color:var(--c-cream)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-pill .dot{background:var(--c-cream)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-pill--active{background:var(--c-yellow);color:var(--c-navy)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-pill--active .dot{background:var(--c-navy)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-pill--ok,:scope .ss-pill--warn,:scope .ss-pill--issue{color:var(--c-navy)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-pill--ok{background:var(--c-ok-surface)}}@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-pill--warn{background:var(--c-warn-surface)}}@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-pill--issue{background:var(--c-issue-surface)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-pill--ok .dot{background:var(--c-ok)}}@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-pill--warn .dot{background:var(--c-warn)}}@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-pill--issue .dot{background:var(--c-issue)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-eyebrow{color:var(--c-text-2-dark);border-color:var(--c-line-dark)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-card{background:rgba(238,233,226,.06);border:1px solid var(--c-line-dark);color:var(--c-cream)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-card .meta{color:var(--c-text-2-dark)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-card--top{border-top:6px solid var(--c-cream)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-card--top.y{border-top-color:var(--c-yellow)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-card--side{border-right:6px solid var(--c-yellow)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-card--recommended{border:2px solid var(--c-yellow)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-card--muted{background:transparent;border:1px dashed var(--c-text-2-dark)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-inner{background:rgba(238,233,226,.06)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-callout--tip{background:rgba(238,233,226,.08);color:var(--c-cream)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-callout--tip .ic{background:var(--c-yellow);color:var(--c-navy)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-callout--update,:scope .ss-callout--warning,:scope .ss-callout--ok{color:var(--c-navy)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-prompt{background:rgba(238,233,226,.06);border:1px solid var(--c-line-dark);color:var(--c-cream)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-prompt .box{background:rgba(238,233,226,.08);color:var(--c-cream)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-prompt .box mark{background:rgba(247,182,49,.22);color:var(--c-cream)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-table{background:rgba(238,233,226,.04);color:var(--c-cream)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-table th{background:rgba(238,233,226,.12);color:var(--c-cream)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-table td{border-top-color:var(--c-line-dark)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-table tbody tr:nth-child(even) td{background:rgba(238,233,226,.03)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-table .rec{background:rgba(238,233,226,.10)!important}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-table th.rec{background:rgba(238,233,226,.12)!important;color:var(--c-cream)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-row{background:rgba(238,233,226,.06);color:var(--c-cream)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-row .ic{background:rgba(238,233,226,.08)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-bar{background:var(--c-line-dark)}}@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-bar i{background:var(--c-yellow)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-field{color:var(--c-cream)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-field input,:scope .ss-field textarea{background:rgba(238,233,226,.06);border-color:var(--c-text-2-dark);color:var(--c-cream)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-field input:focus,:scope .ss-field textarea:focus{border-color:var(--c-yellow);box-shadow:0 0 0 3px rgba(247,182,49,.25)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-field .help{color:var(--c-text-2-dark)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-check{color:var(--c-cream)}}@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-check input{accent-color:var(--c-yellow)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-search{background:rgba(238,233,226,.06);box-shadow:0 0 0 1.5px var(--c-line-dark);color:var(--c-text-2-dark)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-chat{background:rgba(238,233,226,.04);color:var(--c-cream)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-msg-user{background:rgba(238,233,226,.08);border-color:var(--c-line-dark);color:var(--c-cream)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-marker{background-position:right 100%;background-size:0% 16%}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-marker.on{background-size:100% 16%}} /* on navy the marker is a thick yellow underline; text stays cream */
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-baseline{background:var(--c-cream);color:var(--c-navy)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-baseline em{color:var(--c-navy);box-shadow:inset 0 -.4em 0 rgba(247,182,49,.65)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-tcol{background:rgba(238,233,226,.06);color:var(--c-cream)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-tcol .row{border-top-color:var(--c-line-dark)}}@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-tcol .row span:first-child{color:var(--c-text-2-dark)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-tcol--rec{background:var(--c-cream);color:var(--c-navy)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-tcol--rec .row{border-top-color:var(--c-line)}}@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-tcol--rec .row span:first-child{color:var(--c-text-2)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-matrix{color:var(--c-cream)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-matrix th{color:var(--c-text-2-dark);border-bottom-color:var(--c-cream)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-matrix td{border-bottom-color:var(--c-line-dark)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-dl{background:rgba(238,233,226,.04);color:var(--c-cream)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-dl dt{background:rgba(238,233,226,.08);border-top-color:var(--c-navy)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-dl dd{border-top-color:var(--c-line-dark)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-bignum-table{background:rgba(238,233,226,.06);color:var(--c-cream)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-bignum-table>div{border-left-color:var(--c-line-dark)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-bignum-table .num{color:var(--c-cream)}}@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-bignum-table .lab{color:var(--c-text-2-dark)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-form{background:var(--c-navy);box-shadow:0 0 0 1px var(--c-line-dark),0 24px 48px rgba(0,0,0,.25);color:var(--c-cream)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-ffield label{color:var(--c-cream)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-ffield .in{background:rgba(238,233,226,.08)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-ffield .in:focus-within,:scope .ss-ffield .in.ok{background:rgba(238,233,226,.12)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-ffield .in:focus-within{border-color:var(--c-yellow)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-ffield input{color:var(--c-cream)}}@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-ffield input::placeholder{color:var(--c-text-2-dark)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-ffield .help,:scope .ss-promise{color:var(--c-text-2-dark)}}@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-promise b{color:var(--c-cream)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-ic-chip{background:rgba(247,182,49,.16);color:var(--c-yellow)}} /* on navy: a tint of the same color, not a solid tile */
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-ic-chip--navy{background:rgba(238,233,226,.08);color:var(--c-yellow)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-ic-chip--white{background:rgba(238,233,226,.12);color:var(--c-cream)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-ic-chip--ring{background:transparent;color:var(--c-cream)}}

/* --- light: inner surfaces that were cream on cream (tip had no background, 1.12) --- */
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-callout--tip,:scope .ss-inner,:scope .ss-chat{background:rgba(31,58,69,.06)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-bar{background:rgba(31,58,69,.12)}}

/* --- light versions of dark-first components --- */
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-pill--glass{background:rgba(31,58,69,.06);color:var(--c-navy)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-card--glass{background:rgba(255,255,255,.55);border-color:var(--c-line);color:var(--c-navy)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-card--glass .meta{color:var(--c-text-2)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-tabs{border-bottom-color:var(--c-line)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-tab{color:var(--c-text-2)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-tab[aria-selected="true"]{color:var(--c-navy);font-weight:var(--w-bold)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-steps .rail{background:var(--c-line)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-step{color:var(--c-navy)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-step .n{background:var(--ss-surface);color:var(--c-navy)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-step.final .n{background:var(--c-yellow)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-dark-table{color:var(--c-navy)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-dark-table th{color:var(--c-text-2)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-dark-table td{background:var(--c-white)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-dark-table tr.hl td{background:var(--c-warn-surface)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-form-head{color:var(--c-navy)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-form-head p{color:var(--c-text-2)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-form-head h3 em{color:var(--c-navy);box-shadow:inset 0 -.35em 0 rgba(247,182,49,.65)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-form-steps i{background:var(--c-line)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-big{color:var(--c-navy)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-two-tone .ss-tone2{color:var(--c-navy);font-weight:700;background-image:linear-gradient(var(--c-yellow),var(--c-yellow));background-repeat:no-repeat;background-position:right 100%;background-size:100% .08em;padding-bottom:.08em}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-btn[disabled]{opacity:1;background:var(--c-line);color:var(--c-text-2);border-color:transparent}}

/* ---------- round 5 (1.12, her notes) ---------- */
/* a number next to another number or a unit sits on one baseline */
.ss-numrow{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap}

/* field states: filled, valid, invalid. Never color alone: a sign and words too */
.ss-field .msg{font:var(--w-medium) 14px/1.5 var(--font);display:flex;gap:6px;align-items:center}
.ss-field.is-ok input{border-color:var(--c-ok)}.ss-field.is-ok .msg{color:var(--c-ok-text)}
.ss-field.is-error input{border-color:var(--c-issue);border-width:2px}.ss-field.is-error .msg{color:var(--c-issue-text)}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-field.is-ok input{border-color:var(--c-ok-on-dark)}}@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-field.is-ok .msg{color:var(--c-ok-on-dark)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-field.is-error input{border-color:var(--c-issue-on-dark)}}@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-field.is-error .msg{color:var(--c-issue-on-dark)}}
.ss-ffield .in.err{border-color:var(--c-issue);background:var(--c-white)}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-ffield .in.ok{border-color:var(--c-ok-on-dark)}}@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-ffield .in.err{border-color:var(--c-issue-on-dark);background:rgba(238,233,226,.12)}}

/* "you are here" path (from the Genspark slide she liked). Dark first, light below */
.ss-path{position:relative;display:flex;justify-content:space-between;gap:8px;padding-top:44px;list-style:none;margin:0;padding-right:0;padding-left:0}
.ss-path::before{content:"";position:absolute;top:72px;right:6%;left:6%;height:2px;background:var(--c-line-dark)}
.ss-stop{position:relative;flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px}
.ss-stop .c{position:relative;width:56px;height:56px;border-radius:50%;border:1.5px solid var(--c-line-dark);background:var(--ss-surface,var(--c-navy));display:flex;align-items:center;justify-content:center;color:var(--c-text-2-dark)}
.ss-stop .c svg{width:22px;height:22px}
.ss-stop h5{margin:10px 0 0;font:var(--w-bold) 17px/1.3 var(--font);color:var(--c-text-2-dark)}
.ss-stop .sub{font:var(--w-medium) 13px var(--font);color:var(--c-text-2-dark)}
.ss-stop p{margin:0;font:var(--w-regular) 14px/1.5 var(--font);color:var(--c-text-2-dark);max-width:18ch}
.ss-stop.done .c{border-color:var(--c-cream);color:var(--c-cream)}
.ss-stop.here .c{width:72px;height:72px;margin-top:-8px;margin-bottom:-8px;border:0;background:var(--c-yellow);color:var(--c-navy);box-shadow:0 0 0 8px rgba(247,182,49,.14),0 0 36px rgba(247,182,49,.35)}
.ss-stop.here .c svg{width:28px;height:28px}
.ss-stop.here h5{color:var(--c-yellow);font-size:20px}
.ss-stop.here .sub{background:rgba(247,182,49,.16);color:var(--c-yellow);border-radius:var(--r-pill);padding:2px 10px;font-weight:var(--w-bold)}
.ss-stop.here p{color:var(--c-cream)}
.ss-here-label{position:absolute;top:-44px;left:50%;transform:translateX(-50%);white-space:nowrap;font:var(--w-bold) 15px var(--font);color:var(--c-yellow)}
.ss-here-label::after{content:"";display:block;margin:4px auto 0;width:0;height:0;border:7px solid transparent;border-top-color:var(--c-yellow);border-bottom:0}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-path::before{background:var(--c-line)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-stop .c{border-color:var(--c-line);color:var(--c-text-2)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-stop h5,:scope .ss-stop .sub,:scope .ss-stop p{color:var(--c-text-2)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-stop.done .c{border-color:var(--c-navy);color:var(--c-navy)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-stop.here .c{color:var(--c-navy)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-stop.here h5,:scope .ss-stop.here p{color:var(--c-navy)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-stop.here .sub{background:var(--c-warn-surface);color:var(--c-navy)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-here-label{color:var(--c-navy)}}
.ss-path-wrap{container-type:inline-size}
.ss-stop .sub{white-space:nowrap}
@container (max-width:640px){
  .ss-path{flex-direction:column;gap:20px;padding-top:0}
  .ss-path::before{top:0;bottom:0;right:27px;left:auto;width:2px;height:auto}
  .ss-stop{flex-direction:row;align-items:center;text-align:right;gap:14px}
  .ss-stop .c{flex:none}.ss-stop.here .c{margin:0 -8px}
  .ss-stop .t{display:flex;flex-direction:column;gap:2px}
  .ss-stop h5{margin:0}
  .ss-here-label{position:static;transform:none;order:3;margin-right:auto}.ss-here-label::after{display:none}
}
/* status surfaces almost vanish on cream (warn on cream = 1.01): on light they get a thin edge in their own color (1.12, found by the check) */
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-callout--update,:scope .ss-pill--warn{box-shadow:inset 0 0 0 1px rgba(247,182,49,.55)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-callout--ok,:scope .ss-pill--ok{box-shadow:inset 0 0 0 1px rgba(47,125,109,.35)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-callout--warning,:scope .ss-pill--issue{box-shadow:inset 0 0 0 1px rgba(181,82,59,.35)}}

/* numbers and ranges (3–5, 1–4, 050-12) never flip in RTL: isolate them left to right (1.12, they flipped twice) */
.ss-num,.ss-bignum-table .num,.ss-big,.ss-big--thin{direction:ltr;unicode-bidi:isolate}
.ss-bignum-table .num{display:block;text-align:right}
/* phone: big numbers never break in the middle (3– / 5 broke on a 390px screen, 1.12) */
.ss-bignum-table .num{white-space:nowrap}
@media (max-width:640px){.ss-bignum-table .num{font-size:32px}.ss-bignum-table>div{padding:var(--s-2)}}
/* "you are here", round 2 (1.12, her note: the circle touched the text; the label farther, bobbing like an arrow) */
.ss-path{padding-top:64px}
.ss-path::before{top:92px}
.ss-stop.here .c{margin:-8px 0 0}
.ss-stop.here .t{margin-top:26px}
.ss-stop.here .c.m-pulse::before{inset:-6px;animation:ss-here-ring 2.6s ease-out infinite}
@keyframes ss-here-ring{0%{transform:scale(.92);opacity:.55}100%{transform:scale(1.28);opacity:0}}
.ss-here-label{--lx:-50%;top:-62px;transform:translateX(var(--lx));animation:ss-bob 1.6s ease-in-out infinite}
@keyframes ss-bob{0%,100%{transform:translate(var(--lx),0)}50%{transform:translate(var(--lx),7px)}}
@container (max-width:640px){
  .ss-path{padding-top:0;gap:24px}
  .ss-path::before{top:0}
  .ss-stop{gap:18px}
  .ss-stop.here{margin-top:44px;gap:30px}
  .ss-stop.here .c{margin:0}
  .ss-stop.here .t{margin-top:0}
  .ss-here-label{position:absolute;order:0;margin:0;top:-46px;right:36px;left:auto;--lx:50%}
  .ss-here-label::after{display:block}
}
@media (prefers-reduced-motion:reduce){.ss-here-label{animation:none}.ss-stop.here .c.m-pulse::before{animation:none;opacity:0}}
/* =====================================================================
   RULE (1.12, hers): no see-through yellow fill on navy. It turns olive.
   On navy, yellow is solid (a fill with navy text), a line, a ring or a glow. A tinted surface on navy is a cream tint.
   The check page flags any translucent yellow background on the dark side.
   ===================================================================== */
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-prompt .box mark{background:rgba(238,233,226,.14);color:var(--c-cream);box-shadow:inset 0 -2px 0 var(--c-yellow)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-field input:focus,:scope .ss-field textarea:focus{box-shadow:0 0 0 1px var(--c-yellow)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-ic-chip{background:rgba(238,233,226,.08);color:var(--c-yellow);box-shadow:inset 0 0 0 1.5px var(--c-yellow)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-ic-chip--navy{box-shadow:none}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-ic-chip--white{box-shadow:none}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-ic-chip--ring{box-shadow:none}}
/* the current stop: a thin solid ring with a gap, plus glow (no tinted band) */
.ss-stop.here .c{box-shadow:0 0 0 6px var(--ss-surface,var(--c-navy)),0 0 0 7.5px var(--c-yellow),0 0 32px rgba(247,182,49,.3)}
.ss-stop.here .sub{background:transparent;box-shadow:inset 0 0 0 1px var(--c-yellow)}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-stop.here .sub{background:var(--c-warn-surface);box-shadow:none}}
/* vertical path: the big circle centered on the line, the label centered over it */
@container (max-width:640px){
  .ss-stop.here .c{margin:0 -8px 0 0}
  .ss-here-label{right:28px}
}
/* =====================================================================
   STATUS ON NAVY = option B (chosen 1.12, 2026-12-01-status-on-dark.html):
   the surface stays a quiet cream tint; color lives only in a small solid sign (dot, icon chip, check), and in the title.
   ===================================================================== */
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-pill--ok,:scope .ss-pill--warn,:scope .ss-pill--issue{background:rgba(238,233,226,.08);color:var(--c-cream)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-pill--ok .dot{background:var(--c-ok-on-dark)}}@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-pill--warn .dot{background:var(--c-yellow)}}@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-pill--issue .dot{background:var(--c-issue-on-dark)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-callout--ok,:scope .ss-callout--update,:scope .ss-callout--warning{background:rgba(238,233,226,.06);color:var(--c-cream);box-shadow:none}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-callout--ok .ic{background:var(--c-ok-on-dark);color:var(--c-navy)}}@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-callout--ok b{color:var(--c-ok-on-dark)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-callout--update .ic{background:var(--c-yellow);color:var(--c-navy)}}@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-callout--update b{color:var(--c-yellow)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-callout--warning .ic{background:var(--c-issue-on-dark);color:var(--c-navy)}}@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-callout--warning b{color:var(--c-issue-on-dark)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-yes{background:var(--c-ok-on-dark);color:var(--c-navy)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-part{background:var(--c-yellow);color:var(--c-navy)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-no{background:var(--c-issue-on-dark);color:var(--c-navy)}}

/* =====================================================================
   STATUS = option B on BOTH sides (1.12, hers): quiet surface, color only in a small solid sign.
   One sign color per status everywhere (--c-*-sign), navy glyph inside. Titles and messages keep the normal text color.
   Light: the surface is white. Dark: a cream tint.
   ===================================================================== */
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-pill--ok,:scope .ss-pill--warn,:scope .ss-pill--issue{background:var(--c-white);color:var(--c-navy);box-shadow:none}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-callout--ok,:scope .ss-callout--update,:scope .ss-callout--warning{background:var(--c-white);color:var(--c-navy);box-shadow:none}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-callout--ok b,:scope .ss-callout--update b,:scope .ss-callout--warning b{color:inherit}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-pill--ok .dot{background:var(--c-ok-sign)}}@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-pill--ok .dot{background:var(--c-ok-sign)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-pill--warn .dot{background:var(--c-warn-sign)}}@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-pill--warn .dot{background:var(--c-warn-sign)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-pill--issue .dot{background:var(--c-issue-sign)}}@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-pill--issue .dot{background:var(--c-issue-sign)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-callout--ok .ic{background:var(--c-ok-sign);color:var(--c-navy)}}@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-callout--ok .ic{background:var(--c-ok-sign);color:var(--c-navy)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-callout--update .ic{background:var(--c-warn-sign);color:var(--c-navy)}}@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-callout--update .ic{background:var(--c-warn-sign);color:var(--c-navy)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-callout--warning .ic{background:var(--c-issue-sign);color:var(--c-navy)}}@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-callout--warning .ic{background:var(--c-issue-sign);color:var(--c-navy)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-yes{background:var(--c-ok-sign);color:var(--c-navy)}}@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-yes{background:var(--c-ok-sign);color:var(--c-navy)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-part{background:var(--c-warn-sign);color:var(--c-navy)}}@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-part{background:var(--c-warn-sign);color:var(--c-navy)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-no{background:var(--c-issue-sign);color:var(--c-navy)}}@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-no{background:var(--c-issue-sign);color:var(--c-navy)}}
/* fields: the border and the small sign carry the color; the words stay readable */
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-field.is-ok input{border-color:var(--c-ok-sign);border-width:2px}}@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-field.is-ok input{border-color:var(--c-ok-sign);border-width:2px}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-field.is-error input{border-color:var(--c-issue-sign);border-width:2px}}@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-field.is-error input{border-color:var(--c-issue-sign);border-width:2px}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-field .msg{color:inherit}}@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-field .msg{color:inherit}}
.ss-field .msg .s{display:inline-flex;width:18px;height:18px;border-radius:50%;align-items:center;justify-content:center;font-size:12px;font-weight:var(--w-bold);color:var(--c-navy);flex:none}
.ss-field.is-ok .msg .s{background:var(--c-ok-sign)}.ss-field.is-error .msg .s{background:var(--c-issue-sign)}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-ffield .in.ok{border-color:var(--c-ok-sign)}}@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-ffield .in.ok{border-color:var(--c-ok-sign)}}
.ss-ffield .in.err{border-color:var(--c-issue-sign)}@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-ffield .in.err{border-color:var(--c-issue-sign)}}@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-ffield .in.err{border-color:var(--c-issue-sign)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-field.is-ok .msg,:scope .ss-field.is-error .msg{color:inherit}}@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-field.is-ok .msg,:scope .ss-field.is-error .msg{color:inherit}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-callout--tip{background:var(--c-white)}} /* same family as the status boxes: white surface, color only in the icon */
/* =====================================================================
   ALIGNMENT RULES (1.12, hers: option B, "the box on the line"). Brand book section 8.
   1. A tag, pill or chip inside a text column takes only the width of its content, never a whole row.
   2. In a right-aligned column, the BOX edge sits on the text line (the text inside is inset by its padding).
   3. A highlight on words inside a line (marker): the opposite, the words stay on the line and the color hangs out a little.
   4. In a centered layout everything is centered, the tag too.
   5. An icon next to text is centered on the FIRST line of the text, not on the whole block.
   6. Numbers: left to right, and in tables and number blocks every digit has the same width, so they stand under each other.
   ===================================================================== */
.ss-pill,.ss-eyebrow,.ss-stop .sub,.ss-edge-tag{width:fit-content;max-width:100%}
.ss-marker{padding:0 .12em;margin:0 -.12em}
.ss-callout .ic{margin-top:calc((1.6em - 32px) / 2)}
.ss-check input{margin-top:calc((1.5em - 22px) / 2)}
.ss-table,.ss-dark-table,.ss-matrix,.ss-bignum-table,.ss-tcol .row,.ss-num,.ss-big,.ss-big--thin{font-variant-numeric:tabular-nums}
/* tip on navy: a light icon (cream, navy "i"), so it is not mistaken for the yellow "update" (1.12, hers) */
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-callout--tip .ic{background:var(--c-cream);color:var(--c-navy)}}
/* signs inside circles and tiles are icons (Lucide), never text characters: a ✓ or ✕ glyph sits off-center (1.12, hers: "something inside the field icons is not aligned") */
.ss-callout .ic svg{width:18px;height:18px;stroke-width:2.25}
.ss-yes svg,.ss-no svg,.ss-part svg{width:16px;height:16px;stroke-width:3}
.ss-field .msg .s svg{width:12px;height:12px;stroke-width:3.5}
.ss-step .n svg{width:16px;height:16px;stroke-width:3}
.ss-ic-chip svg,.ss-stop .c svg{display:block}
.ss-callout .ic,.ss-yes,.ss-no,.ss-part,.ss-field .msg .s{line-height:0}

/* BRAND SCROLLBARS (1.12, hers: the default scrollbar "looks outdated"): a thin rounded thumb, no arrows, no track */
.ss-table-wrap{scrollbar-width:auto}
.ss ::-webkit-scrollbar,.ss::-webkit-scrollbar{width:10px;height:10px}@scope (.ss-on-dark) to (.ss-on-light){:scope ::-webkit-scrollbar{width:10px;height:10px}}@scope (.ss-on-light) to (.ss-on-dark){:scope ::-webkit-scrollbar{width:10px;height:10px}}
.ss ::-webkit-scrollbar-track{background:transparent}@scope (.ss-on-dark) to (.ss-on-light){:scope ::-webkit-scrollbar-track{background:transparent}}@scope (.ss-on-light) to (.ss-on-dark){:scope ::-webkit-scrollbar-track{background:transparent}}
.ss ::-webkit-scrollbar-button{display:none}@scope (.ss-on-dark) to (.ss-on-light){:scope ::-webkit-scrollbar-button{display:none}}@scope (.ss-on-light) to (.ss-on-dark){:scope ::-webkit-scrollbar-button{display:none}}
.ss ::-webkit-scrollbar-thumb{background:rgba(31,58,69,.28);border-radius:999px;border:3px solid transparent;background-clip:padding-box}@scope (.ss-on-light) to (.ss-on-dark){:scope ::-webkit-scrollbar-thumb{background:rgba(31,58,69,.28);border-radius:999px;border:3px solid transparent;background-clip:padding-box}}
.ss ::-webkit-scrollbar-thumb:hover{background-color:rgba(31,58,69,.5)}@scope (.ss-on-light) to (.ss-on-dark){:scope ::-webkit-scrollbar-thumb:hover{background-color:rgba(31,58,69,.5)}}
@scope (.ss-on-dark) to (.ss-on-light){:scope ::-webkit-scrollbar-thumb{background:rgba(238,233,226,.28);border-radius:999px;border:3px solid transparent;background-clip:padding-box}}
@scope (.ss-on-dark) to (.ss-on-light){:scope ::-webkit-scrollbar-thumb:hover{background-color:rgba(238,233,226,.5)}}
@supports not selector(::-webkit-scrollbar){.ss *{scrollbar-width:thin;scrollbar-color:rgba(31,58,69,.3) transparent}@scope (.ss-on-light) to (.ss-on-dark){:scope *{scrollbar-width:thin;scrollbar-color:rgba(31,58,69,.3) transparent}}@scope (.ss-on-dark) to (.ss-on-light){:scope *{scrollbar-color:rgba(238,233,226,.3) transparent}}}
/* ANCHOR RULE (1.12, hers): anything that opens, filters or grows keeps its top edge still and grows downward. Never re-center while it changes size. */
.ss-anchor-top{display:flex;flex-direction:column;justify-content:flex-start}

/* =====================================================================
   FULL-BLEED HEADER AND FOOTER (1.12, hers: "in every product of mine").
   The top bar and the footer run edge to edge of the screen, with an edge padding that grows with the screen.
   Only the content in between sits in a centered column.
   ===================================================================== */
:root{--edge:clamp(24px,4vw,56px)} /* brand book: phone margins at least 24 (fixed 2.12, was 16) */
.ss-bar-full,.ss-footer{width:100%;box-sizing:border-box;padding-inline:var(--edge)}
.ss-bar-full{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:72px}
.ss-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-block:28px;border-top:1px solid var(--c-line-dark);font-size:14px;color:var(--c-text-2-dark)}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-footer{border-top-color:var(--c-line);color:var(--c-text-2)}}
.ss-footer img{height:18px;display:block}

/* CHIP ROWS NEVER SCROLL SIDEWAYS (1.12, hers): they wrap to a second line. More than about 8 options: a dropdown, not a strip */
.ss-chiprow{display:flex;flex-wrap:wrap;gap:8px}

/* EDGE TAG on a prompt card: "arena · number", yellow, readable on navy and on cream (decided 1.12, never an internal code like V-002) */
.ss-edge-tag{background:var(--c-yellow);color:var(--c-navy)}

/* TWO-TONE HEADLINE, moves in rotation (1.12, hers). Never the thin grey again.
   A (default .ss-two-tone): the second part is yellow on navy; on cream it is navy, bolder, with a yellow line under it.
   C (.ss-two-tone--band): the second part sits on a yellow band, navy text. The loudest: once per product at most. */
.ss-two-tone--band .ss-tone2{background:var(--c-yellow);color:var(--c-navy);font-weight:500;padding:0 .18em;border-radius:.12em;-webkit-box-decoration-break:clone;box-decoration-break:clone;background-image:none}@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-two-tone--band .ss-tone2{background:var(--c-yellow);color:var(--c-navy);font-weight:500;padding:0 .18em;border-radius:.12em;-webkit-box-decoration-break:clone;box-decoration-break:clone;background-image:none}}

/* NO ORPHANS WHEN THERE IS ROOM (1.12, hers): headings balance their lines, paragraphs avoid a lonely last word.
   LINE LENGTH (1.12, hers): the ~67-character limit is ONLY for running text (guides, reports, the long text of a page).
   A subtitle or lead gets a middle measure, about 76 characters: longer than running text, so it ends in fewer lines, but never the full width of the page. */
.ss-lead{max-width:min(100%,76ch);text-wrap:pretty}
.ss h1,.ss h2,.ss h3{text-wrap:balance}@scope (.ss-on-dark) to (.ss-on-light){:scope h1{text-wrap:balance}}@scope (.ss-on-light) to (.ss-on-dark){:scope h1{text-wrap:balance}}
.ss p,.ss li{text-wrap:pretty}@scope (.ss-on-dark) to (.ss-on-light){:scope p{text-wrap:pretty}}@scope (.ss-on-light) to (.ss-on-dark){:scope p{text-wrap:pretty}}
/* a light surface inside a dark page (a white section, a white card): the buttons follow the nearest surface, not the page (1.12, found in the digital brand book) */
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-btn--outline{color:var(--c-navy);border-color:var(--c-text-2)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-btn--secondary{background:var(--c-navy);color:var(--c-cream)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-btn--quiet{color:var(--c-navy)}}

/* HEADER-TO-BODY: no grey line (1.12, hers, option B). The live background of the header thins out toward the bottom,
   and the header melts into the page. Put .ss-hero-fade on the header that holds the live background. */
.ss-hero-fade{border-bottom:0!important;padding-bottom:max(96px,var(--hero-pb,0px))}
.ss-hero-fade > canvas{-webkit-mask-image:linear-gradient(to bottom,#000 45%,transparent 100%);mask-image:linear-gradient(to bottom,#000 45%,transparent 100%)}
@media (max-width:640px){.ss-hero-fade{padding-bottom:64px}}

/* nested light surface inside a dark one (2026-12-02): a form field on a white or cream card that sits on navy
   keeps the light look. Same rule as the nested buttons. Found on the vault's "fill in for this prompt" fields. */
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-field{color:var(--c-navy)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-field input,:scope .ss-field textarea{background:var(--c-white);border-color:var(--c-text-2);color:var(--c-navy)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-field input:focus,:scope .ss-field textarea:focus{border-color:var(--c-navy);box-shadow:0 0 0 3px var(--c-warn-surface)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-field .help{color:var(--c-text-2)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-field input::placeholder,:scope .ss-field textarea::placeholder{color:var(--c-text-2)}}

/* TWO-TONE MOVE D (2.12, hers: "שלושת הדוגמאות המוצעות הן כולן מקובלות עליי"): on cream only, the second part sits
   on a navy band in yellow text, like a dark window inside a light slide. On navy there is no band (it would vanish),
   so it falls back to move A. */
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-two-tone--navyband .ss-tone2{background:var(--c-navy);background-image:none;color:var(--c-yellow);font-weight:inherit;padding:0 .22em;border-radius:.16em;-webkit-box-decoration-break:clone;box-decoration-break:clone}}
.ss-two-tone--navyband:not(.ss-on-light *) .ss-tone2{background:var(--c-navy);color:var(--c-yellow);padding:0 .22em;border-radius:.16em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-two-tone--navyband .ss-tone2{background:none;padding:0;color:var(--c-yellow)}}

/* TAB READING AREA (2.12, hers: option B). The tab bar stays navy; the running text sits on a light area, no extra card.
   Mark it .ss-on-light so everything inside follows the light side. */
.ss-tab-panel{background:var(--c-white);color:var(--c-navy);padding:28px 32px 36px;font:var(--w-regular) 18px/1.7 var(--font);border-radius:0 0 var(--r-lg) var(--r-lg)}
.ss-tab-panel h3,.ss-tab-panel b.h{display:block;font:var(--w-bold) 22px/1.3 var(--font);margin:0 0 8px}
@media (max-width:640px){.ss-tab-panel{padding:20px 20px 28px;font-size:17px}}

/* EDGE SHADOW (2.12, hers: "צריך לשים לב שיש הצללה על הרכיבים כדי שגם מה שמסתיים בצבע של הרקע יהיה לו תחושה של סוף מוגדר").
   On light surfaces every component gets a soft shadow, so a part that ends in the page colour (a cream column on a cream page)
   still has a clear end. On hover the lift shadow takes over. On navy the surfaces already stand apart. */
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-table-wrap,:scope .ss-table:not(.ss-table-wrap .ss-table),:scope .ss-dl,:scope .ss-bignum-table,:scope .ss-card,:scope .ss-tcol:not(.ss-tcol--rec),:scope .ss-prompt,:scope .ss-chat,:scope .ss-row,:scope .ss-callout,:scope .ss-tab-panel{box-shadow:var(--shadow-edge)}}
@scope (.ss-on-light) to (.ss-on-dark){:scope .ss-lift:hover{box-shadow:var(--shadow-lift)}}

/* focus on buttons (2.12, digital quote: a browser double ring showed on the cover button). Keyboard only, one ring, brand colour */
.ss-btn:focus{outline:none}
.ss-btn:focus-visible{outline:2px solid var(--c-navy);outline-offset:3px}
@scope (.ss-on-dark) to (.ss-on-light){:scope .ss-btn:focus-visible{outline-color:var(--c-yellow)}}
