/* TW Quote. Quiet, neutral, readable on a store monitor, a tablet at the counter or a phone.
   One white surface per section, hairline dividers inside it, one accent for the primary action and selection. */
:root {
  --ink: #1c2430; --ink-2: #3a4556; --muted: #6a7585; --faint: #9aa4b2;
  --hair: #eceef2; --line: #dfe3e8; --line-strong: #c9cfd7; --bg: #f5f6f8; --panel: #fff; --well: #f7f8fa;
  --accent: #2f6fed; --accent-ink: #1f55c4; --accent-soft: #eef3fd;
  --good: #1e8a4c; --warn: #b26a00; --bad: #c0392b;
  --good-soft: #e9f6ee; --warn-soft: #fff6e6; --bad-soft: #fdf0ee; --info-soft: #eef3fd;
  --r: 8px; --r-lg: 10px; --tap: 40px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Arabic", "Noto Sans Devanagari", "Nirmala UI", sans-serif; font-size: 14.5px; color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { line-height: 1.45; }
html[lang="ar"], html[lang="hi"] { line-height: 1.6; } html[lang="ar"] body, html[lang="hi"] body { line-height: 1.6; }
html[dir="rtl"] .num, html[dir="rtl"] .price, html[dir="rtl"] .big3 strong, html[dir="rtl"] .mobilebar strong { direction: ltr; unicode-bidi: isolate; }
a { color: var(--accent-ink); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 1.3rem; font-weight: 600; margin: 0 0 2px; letter-spacing: -.01em; }
h2 { font-size: 1.02rem; font-weight: 600; margin: 0; }
h3 { font-size: .9rem; font-weight: 600; margin: 14px 0 6px; color: var(--ink); }
p { margin: 0 0 8px; }
.muted { color: var(--muted); } .small { font-size: .84rem; }
.k { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.good-t { color: var(--good); } .bad-t { color: var(--bad); }
.hidden { display: none !important; } .mt { margin-top: 8px; }

/* top bar */
.top { display: flex; align-items: center; gap: 18px; background: var(--panel); border-bottom: 1px solid var(--line); padding: 0 20px; height: 50px; position: sticky; top: 0; z-index: 20; }
.top .brand { font-weight: 650; color: var(--ink); }
.top nav { display: flex; gap: 2px; flex: 1; }
.top nav a { color: var(--ink-2); padding: 6px 10px; border-radius: 6px; }
.top nav a:hover { background: var(--bg); text-decoration: none; }
.top .who { display: flex; gap: 12px; align-items: center; font-size: .86rem; color: var(--muted); }
.top .who a { color: var(--ink-2); }
.top .who .langform select { width: auto; height: 32px; padding: 0 8px; font-size: .86rem; }

main { max-width: 1100px; margin: 20px auto 40px; padding: 0 18px; }
main.wide { max-width: 1440px; }

/* surfaces */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; margin: 0 0 12px; }
.panel.narrow { max-width: 440px; margin: 0 auto; }
fieldset.panel { min-width: 0; padding-top: 12px; }
fieldset.panel > legend { float: left; width: 100%; padding: 0; margin: 0 0 10px; font-weight: 600; font-size: .98rem; }
fieldset.panel > legend + * { clear: both; }
legend .muted { font-weight: 400; }
details > summary { cursor: pointer; font-weight: 500; color: var(--ink-2); }
.divided > * + * { border-top: 1px solid var(--hair); }

/* forms */
label { display: flex; flex-direction: column; gap: 3px; font-size: .8rem; color: var(--muted); margin-bottom: 8px; min-width: 0; }
label.check, label.chip { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); font-size: .9rem; }
input, select, button, .button, textarea { font: inherit; font-size: .92rem; }
input, select, textarea { padding: 0 10px; height: 36px; border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; color: var(--ink); min-width: 0; width: 100%; }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; flex: none; accent-color: var(--ink); }
input[type="date"] { padding-inline-end: 6px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
input.short { max-width: 90px; }
button, .button { height: 36px; padding: 0 13px; border-radius: var(--r); border: 1px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 500; white-space: nowrap; }
button:hover, .button:hover { background: var(--well); text-decoration: none; }
button:disabled { opacity: .5; cursor: default; }
button.primary, .button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
button.primary:hover, .button.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
button.big { height: 42px; padding: 0 20px; }
button.quiet { background: var(--well); border-color: transparent; }
button.quiet:hover { background: #eef0f3; }
button.link { border: 0; background: none; padding: 0; height: auto; color: var(--accent-ink); font-weight: 500; }
button.link:hover { text-decoration: underline; background: none; }
button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
form.inline { display: inline; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.row-wrap { display: flex; gap: 10px 18px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.grid3.tight { gap: 8px; grid-template-columns: repeat(3, 1fr); }
.grid4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 2px 12px; }
.inline-num { flex-direction: row; align-items: center; gap: 6px; margin: 0; color: var(--ink); font-size: .9rem; } .inline-num input { width: 68px; }

/* chips: tap to pick */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.chip { border: 1px solid var(--line-strong); border-radius: var(--r); padding: 0 12px; height: 34px; background: #fff; margin: 0; font-size: .88rem; cursor: pointer; user-select: none; color: var(--ink); }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.chip:hover { background: var(--well); }
.chip:has(input:checked), button.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }

/* notices and status */
.alert { padding: 9px 12px; border-radius: var(--r); background: var(--warn-soft); color: var(--warn); margin: 8px 0; font-size: .9rem; }
.alert.bad { background: var(--bad-soft); color: var(--bad); }
.alert.good { background: var(--good-soft); color: var(--good); }
.alert.info { background: var(--info-soft); color: var(--accent-ink); }
.alert ul { margin: 6px 0 0; padding-inline: 18px 0; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: .76rem; font-weight: 600; background: #eef0f3; color: var(--ink-2); line-height: 1.6; white-space: nowrap; }
.pill.firm, .pill.approved, .pill.active, .pill.closed, .pill.sold, .pill.accepted { background: var(--good-soft); color: var(--good); }
.pill.estimate, .pill.in_review, .pill.needs_review, .pill.coming_back, .pill.presented { background: var(--warn-soft); color: var(--warn); }
.pill.blocked, .pill.rejected, .pill.dropped, .pill.not_today { background: var(--bad-soft); color: var(--bad); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); margin-inline-end: 6px; vertical-align: 1px; }
.dot.firm { background: var(--good); } .dot.estimate { background: var(--warn); } .dot.blocked { background: var(--bad); }

/* tables */
table { border-collapse: collapse; width: 100%; }
table.list th, table.list td { text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--hair); vertical-align: top; }
table.list th { font-size: .76rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
table.lines td, table.lines th { padding: 6px 2px; border-bottom: 1px solid var(--hair); text-align: start; font-size: .9rem; }
table.lines tr.total td { font-weight: 600; border-bottom: 0; }
table.lines tr.current td { background: var(--well); }
.num { text-align: end !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.bad-row { background: var(--bad-soft); } tr.corrected { background: var(--info-soft); }
.rule { color: var(--faint); font-size: .7rem; white-space: nowrap; }
.subnav { display: flex; gap: 2px; margin-bottom: 12px; font-size: .9rem; flex-wrap: wrap; }
.subnav a { padding: 5px 9px; border-radius: 6px; color: var(--ink-2); } .subnav a:hover { background: #fff; text-decoration: none; }
.filters { display: flex; gap: 10px; align-items: flex-end; margin: 10px 0; }
.filters label { margin: 0; }
details.fix form { min-width: 240px; padding-top: 6px; }
.row-form { display: flex; gap: 6px; flex-wrap: wrap; }
.login { margin-top: 8vh; }
.big { font-size: 1.8rem; font-weight: 600; margin: 2px 0 4px; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ quote builder */
.builder-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.mode { display: inline-flex; background: #e9ecf0; border-radius: var(--r); padding: 2px; }
.mode button { border: 0; height: 30px; padding: 0 12px; border-radius: 6px; font-size: .84rem; color: var(--ink-2); background: none; font-weight: 500; }
.mode button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .08); }

ol.steps { list-style: none; display: flex; gap: 4px; padding: 0; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
ol.steps li button { height: auto; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 8px 10px 10px; margin-bottom: -1px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-weight: 500; text-align: start; }
ol.steps li button:hover { background: none; color: var(--ink); }
ol.steps li button .k { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: .7rem; letter-spacing: 0; color: var(--muted); }
ol.steps li button strong { font-weight: 600; } ol.steps li button .d { display: none; }
ol.steps li.on button { color: var(--ink); border-bottom-color: var(--ink); } ol.steps li.on button .k { background: var(--ink); border-color: var(--ink); color: #fff; }
ol.steps li.done button .k { background: var(--ink); border-color: var(--ink); color: #fff; } ol.steps li.done button .k::after { content: "✓"; }
ol.steps li.done button .k span { display: none; }

.builder-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; align-items: start; }
.step { display: none; } [data-mode="compact"] .step, .builder[data-step="1"] .step[data-step="1"], .builder[data-step="2"] .step[data-step="2"], .builder[data-step="3"] .step[data-step="3"] { display: block; }
[data-mode="compact"] ol.steps, [data-mode="compact"] .step-nav, [data-mode="compact"] .tip, [data-mode="compact"] .step[data-step="1"] .step-head .muted { display: none; }
[data-mode="compact"] .step[data-step="1"] .learn .q:not(.keep), [data-mode="compact"] .step[data-step="1"] details.more { display: none; } [data-mode="compact"].learn-open .step[data-step="1"] .learn .q, [data-mode="compact"].learn-open .step[data-step="1"] details.more { display: block; }
.only-compact { display: none; } [data-mode="compact"] .only-compact { display: inline-flex; }
.step-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 2px 0 10px; }
.step-nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 4px 0 18px; }

/* step 1: one surface, a divider per question */
.learn { padding: 2px 16px; }
.learn .q { padding: 13px 0 9px; border-top: 1px solid var(--hair); }
.learn .q:first-child { border-top: 0; }
.qq { font-weight: 600; font-size: .96rem; margin: 0 0 8px; }
.tip { font-size: .82rem; color: var(--muted); margin: 2px 0 2px; }
.when-existing { padding-top: 6px; }
details.panel.more { padding: 10px 16px; } details.panel.more[open] summary { margin-bottom: 8px; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 12px; }
.plan-card { position: relative; border: 1px solid var(--line-strong); border-radius: var(--r); padding: 10px 12px; cursor: pointer; color: var(--ink); gap: 1px; margin: 0; background: #fff; min-height: 104px; }
.plan-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.plan-card:hover { background: var(--well); }
.plan-card:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fff; }
.plan-card .k { font-size: .66rem; min-height: 1em; letter-spacing: .04em; }
.plan-card strong { font-size: .88rem; font-weight: 600; } .plan-card .price { font-size: 1.15rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan-card small { color: var(--muted); font-size: .76rem; line-height: 1.3; margin-top: 2px; }
.plan-card.off { opacity: .45; } .plan-card.off .k::after { content: attr(data-off); }

/* lines: dividers, no boxes */
#lines .line { padding: 10px 0 2px; border-top: 1px solid var(--hair); }
#lines .line:first-child { border-top: 0; padding-top: 4px; }
.line-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: .88rem; }
.line-head span { color: var(--muted); font-size: .82rem; }
.small-line { padding: 8px 0 0; border-top: 1px solid var(--hair); }
.adv { opacity: .7; }
.line.needs-phone [data-f="device_id"] { border-color: var(--warn); }

/* extras: label left, control right */
.extras > .extra { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--hair); }
.extras > .extra:first-child { border-top: 0; padding-top: 4px; }
.extra > div:first-child { min-width: 180px; flex: 1; } .extra .actions { margin: 0; }
.extra select { width: auto; min-width: 150px; }

/* right column */
.result { position: sticky; top: 62px; max-height: calc(100vh - 74px); overflow: auto; padding-bottom: 8px; scrollbar-width: thin; }
.busy #summary { opacity: .6; transition: opacity .15s; }
.panel.summary { padding: 12px 16px 10px; }
.res-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; font-size: .84rem; color: var(--muted); flex-wrap: wrap; }
.res-head .status { color: var(--ink); font-weight: 500; }
.big3 { display: grid; grid-template-columns: repeat(3, 1fr); margin: 4px 0 2px; }
.big3 > div { display: flex; flex-direction: column; padding: 2px 12px; border-inline-start: 1px solid var(--hair); }
.big3 > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.big3 span { font-size: .74rem; color: var(--muted); } .big3 strong { font-size: 1.32rem; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.2; } .big3 em { font-size: .72rem; color: var(--muted); font-style: normal; }
details.details { padding: 10px 16px; } details.details summary { font-size: .86rem; color: var(--muted); } details.details[open] summary { margin-bottom: 4px; }
.res-details h3:first-child { margin-top: 4px; }
[data-mode="guided"][data-step="1"] .save, [data-mode="guided"][data-step="1"] details.details { display: none; }
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px 8px; }
.tp { display: flex; flex-direction: column; font-size: .74rem; color: var(--muted); padding: 4px 0; border-top: 1px solid var(--hair); }
.tp strong { font-size: .86rem; color: var(--ink); font-weight: 500; }
.line-res { border-top: 1px solid var(--hair); padding: 7px 0; font-size: .88rem; }
ul.why, ul.checks, ul.notes, ol.steps-list { margin: 4px 0 0; padding: 0 0 0 18px; padding-inline: 18px 0; font-size: .84rem; color: var(--ink-2); }
ul.why li.possible, ul.checks li { color: var(--warn); }
.status-blocked .big3 strong { color: var(--muted); }

/* coach: one surface, one divider per play */
.coach-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0 16px; margin-bottom: 12px; }
.coach-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 11px 0 6px; }
.coach-head h2 { font-size: .92rem; }
.play { padding: 11px 0 12px; border-top: 1px solid var(--hair); font-size: .9rem; }
.play h3 { margin: 0; font-size: .92rem; }
.play-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.tag { font-size: .74rem; color: var(--muted); font-weight: 500; white-space: nowrap; }
.tag.gap { color: var(--warn); } .tag.asked { color: var(--good); }
.play p { margin: 0 0 6px; color: var(--ink-2); }
.play.ask p { margin: 0 0 4px; } .play.ask strong { color: var(--ink); }
.play .actions { margin-top: 6px; gap: 6px; }
.play .actions button { min-height: 32px; height: auto; font-size: .85rem; padding: 5px 11px; white-space: normal; text-align: start; line-height: 1.25; max-width: 100%; }
.play .actions .d { color: var(--muted); font-weight: 400; }
.play .actions .link { margin-inline-start: 4px; font-size: .84rem; }
.play .dep { margin: 6px 0 0; } .coach-panel .pb { padding-bottom: 10px; }
.facts { display: grid; gap: 0; margin: 4px 0 6px; font-size: .82rem; }
.fact { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 5px 0; border-top: 1px solid var(--hair); }
.fact:first-child { border-top: 0; }
.fact strong { font-weight: 600; } .fact.off { opacity: .5; }
.fact ul { margin: 0; padding: 0; list-style: none; color: var(--ink-2); } .fact li { display: inline; } .fact li + li::before { content: " · "; color: var(--faint); }
.applied-note { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--good-soft); color: var(--good); border-radius: var(--r); padding: 8px 12px; margin-bottom: 10px; font-size: .86rem; }

/* tags (countries) */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; min-height: 0; }
.tagchip { height: 30px; padding: 0 10px; border-radius: var(--r); font-size: .86rem; background: var(--well); border-color: transparent; }
.tagchip span { color: var(--muted); margin-inline-start: 4px; }
input.mid { max-width: 320px; }

/* compare (vs their carrier) */
.compare { padding: 10px 16px 8px; }
.compare .coach-head { padding: 0 0 6px; }
.wins { margin: 0 0 6px; padding-inline: 18px 0; font-size: .88rem; color: var(--ink-2); }
.wins li { margin-bottom: 2px; }
table.cmp td { font-size: .86rem; }
table.cmp tr.ours td { font-weight: 500; }
table.cmp tr.ours + tr:not(.ours) td { border-top: 1px solid var(--line); }
.cmp-foot { margin: 8px 0 0; }

/* step 3 */
.close-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px; align-items: start; }
.pushback { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2px 16px; }
.obj { padding: 11px 0; border-top: 1px solid var(--hair); }
.obj:first-child { border-top: 0; }
.obj .they { font-weight: 600; margin: 0 0 3px; } .obj .you { margin: 0; color: var(--ink-2); font-size: .9rem; }
.closebox .askline { font-size: 1rem; font-weight: 600; margin: 2px 0 8px; }
.step-item { flex-direction: row; align-items: flex-start; gap: 8px; color: var(--ink); font-size: .86rem; margin: 0; padding: 7px 0; border-top: 1px solid var(--hair); }
.step-item input { margin-top: 2px; }

.save .actions { margin-top: 4px; }
#outcome { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hair); }
[data-step="3"] .save [data-act="save"], [data-mode="compact"] .save [data-act="save"] { background: var(--accent); color: #fff; border-color: var(--accent); }

/* bottom bar (tablet and phone) */
.mobilebar { display: none; }

/* other pages */
.cards { display: grid; gap: 12px; margin-top: 12px; }
.card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; background: #fff; }
.card.conditional { border-style: dashed; }
.card header { display: flex; justify-content: space-between; align-items: center; }
.card ul { margin: 6px 0; padding-inline: 18px 0; }
.card .script { background: var(--well); border-radius: var(--r); padding: 8px; font-size: .88rem; }
.quote-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }

/* printable customer summary */
body.print { background: #fff; }
.sheet { max-width: 780px; margin: 24px auto; padding: 0 20px; }
.sheet h1 { font-size: 1.5rem; } .sheet h2 { font-size: 1.15rem; margin: 18px 0 4px; }
.sheet .notice { background: var(--warn-soft); color: var(--warn); padding: 8px 10px; border-radius: 6px; }
.sheet table.compact th, .sheet table.compact td { font-size: .8rem; text-align: center; padding: 4px 2px; }
.sheet .fine { font-size: .75rem; color: var(--muted); margin-top: 24px; }
@media print {
  .noprint, .top, .subnav { display: none !important; }
  .sheet { margin: 0; max-width: none; }
  .big3 > div { border: 1px solid #ccc; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .builder-grid { grid-template-columns: minmax(0, 1fr) 370px; }
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  main { margin-top: 12px; padding: 0 12px 86px; }
  .builder-grid, .quote-grid, .close-grid { grid-template-columns: 1fr; }
  .result { position: static; max-height: none; overflow: visible; }
  .timeline { grid-template-columns: repeat(4, 1fr); }
  .mobilebar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; gap: 14px; padding: 9px 16px calc(9px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .mobilebar > div { display: flex; flex-direction: column; line-height: 1.15; }
  .mobilebar strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; font-weight: 600; }
  .mobilebar button { margin-inline-start: auto; height: 40px; padding: 0 18px; }
  .top { padding: 0 14px; gap: 12px; }
}
@media (max-width: 640px) {
  .top { height: 46px; gap: 8px; } .top .brand { white-space: nowrap; }
  .top nav { min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; } .top nav::-webkit-scrollbar { display: none; } .top nav a { padding: 5px 7px; flex: none; }
  .top .who { flex: none; gap: 8px; } .top .who form.logout { display: none; } .top .who .langform select { height: 30px; padding: 0 6px; font-size: .82rem; max-width: 96px; }
  main { padding: 0 10px 88px; }
  .panel { padding: 12px 13px; } .learn { padding: 2px 13px; }
  .builder-top { align-items: flex-start; }
  ol.steps li button { padding: 8px 6px 10px; gap: 6px; font-size: .86rem; }
  .plans { grid-template-columns: 1fr 1fr; gap: 6px; } .plan-card { min-height: 0; padding: 9px 10px; } .plan-card small { display: none; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .big3 strong { font-size: 1.1rem; } .big3 > div { padding-inline: 8px 6px; }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .fact { grid-template-columns: 1fr; gap: 2px; }
  .extras > .extra { flex-direction: column; align-items: stretch; } .extra select { width: 100%; }
  .chip { height: 36px; }
  .step-nav .big { width: 100%; }
  .step-nav button, .save .actions button, .mobilebar button { white-space: normal; height: auto; min-height: 36px; padding: 6px 12px; line-height: 1.25; }
  .step-nav .big { min-height: 42px; }
  .play .actions button { min-height: 36px; padding: 6px 10px; }
  .grid3.tight { grid-template-columns: 1fr; }
  table.list { display: block; overflow-x: auto; }
}
