/* natural.css: warm, quiet theme. Loaded last. Matches the daylight office: walnut, cream, terracotta, sage.
   No glows, no gradient fills on controls, no blur, no all-caps micro labels. */
:root {
  --display: 'Literata', Georgia, 'Times New Roman', serif;
  --num: 'Source Sans 3', system-ui, sans-serif;
  --navy: #1b1815; --navy2: #24201c; --navy3: #2c2721; --line-b: #4a4338; --cyan: #e0b05a;
  --r: 8px;
}
html, body, button, input, select, textarea { font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif; }
body { font-variant-numeric: tabular-nums; line-height: 1.4; }
.mono, .kv b, table.t td.n { font-family: var(--num); font-variant-numeric: tabular-nums; }
h1, h2, h3, .scr-head h2, .rd-title, .hud-name { font-family: var(--display); }
.scr-head h2 { font-weight: 600; font-size: 21px; letter-spacing: 0; }

/* surfaces: flat, one border, small radius, no blur or glow */
.modal, .card, .sc, #cost-box, #proj-pill, .toast, .tour-card, #launch-bar, .mbtn, .sale-card, .bs-card, .rchip, .trim { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.modal { border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
.modal-back { backdrop-filter: none; background: rgba(20, 17, 14, .72); }
.card, .sc, .sale-card { border-radius: var(--r); box-shadow: none; }
#topbar { background: var(--panel); border-bottom: 1px solid var(--line); }
.btn, .tb-btn, .tb-ico, .segs, .opt-btn, .rchip, .trim, .bs-card, .mbtn { border-radius: 6px; }
.btn.pri, .mbtn.pri { background: var(--acc); border-color: var(--acc); color: #2a160c; box-shadow: none; background-image: none; }
.btn:hover:not(.off), .mbtn:hover { filter: brightness(1.07); transform: none; }
.node.available.go { box-shadow: none; border-color: var(--acc2); }
.tour-hole { box-shadow: 0 0 0 9999px rgba(20, 17, 14, .75), 0 0 0 2px var(--acc); }

/* chips become quiet tags: sentence case, readable size, small radius */
.chip { font: 600 12px/1.2 'Source Sans 3', system-ui, sans-serif; border-radius: 4px; padding: 2px 7px; }
.card h3, .sc h3, .section-title { font: 600 13px 'Source Sans 3', system-ui, sans-serif; color: var(--mut); text-transform: none; letter-spacing: 0; }
small { font-size: 11px; }

/* reviewer badges: solid, no ring glow */
.badge, .badge.s1, .badge.s2, .badge.s3, .badge.s4, .badge.s9, .badge.s10 { box-shadow: none; }

/* motion: nothing bounces or pulses */
.hs.laptop { animation: none; background: none; }
@media (prefers-reduced-motion: no-preference) { .modal { animation-duration: .12s; } }

/* menu + setup: a dark walnut desk with chalk sketches instead of a blueprint */
.menu-bg.dim::after { background: rgba(27, 24, 21, .8); }
.mb-float, .mb-drift { animation: none; }
.ml-mark { background: var(--acc); box-shadow: none; border-radius: 12px; }
.menu-logo h1 { font-weight: 700; letter-spacing: 0; color: var(--text); }
.menu-tag { color: var(--mut); font-size: 14px; }
.mbtn { background: rgba(240, 233, 220, .06); border: 1px solid var(--line2); color: var(--text); box-shadow: none; border-radius: 8px; }
.mbtn:hover { background: rgba(240, 233, 220, .1); }
.mbtn span { font-family: 'Source Sans 3', system-ui, sans-serif; font-weight: 700; font-size: 15px; }
.mbtn.pri { background: var(--acc); border-color: var(--acc); color: #2a160c; box-shadow: none; }
.mbtn:active { transform: none; }
.menu-foot { color: var(--dim); }
.setup-head h2 { color: var(--text); font-weight: 600; }

/* studio (the builder's own stylesheet uses mono + all caps for labels) */
#screen-studio, #screen-studio *:not(i):not(.fas):not(.far):not(.fab) { font-family: 'Source Sans 3', system-ui, sans-serif; text-transform: none; letter-spacing: 0; }
#screen-studio .section-title { font-size: 13px; font-weight: 600; color: var(--mut); }
#screen-studio .opt-btn span, #screen-studio .control-label, #screen-studio .preset-brand { font-size: 12px; }
.os { background: rgba(36, 32, 28, .78); }

/* one filled button per view; small upgrade buttons are outlined */
.btn.pri.sm { background: transparent; color: var(--acc2); border-color: var(--line2); }
.btn.pri.sm:hover:not(.off) { border-color: var(--acc2); }

/* phones catalogue */
.ph-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.ph-sum > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; display: flex; flex-direction: column; }
.ph-sum b { font: 600 20px var(--display); } .ph-sum span { font-size: 12px; color: var(--mut); }
.ph-bar { gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.rs-t { padding: 6px 12px; border-radius: 6px; background: var(--panel2); border: 1px solid var(--line2); font-size: 13px; font-weight: 600; color: var(--mut); min-height: 34px; } .rs-t.on { color: var(--text); border-color: var(--acc2); }
.ph-sel { background: var(--panel2); color: var(--text); border: 1px solid var(--line2); border-radius: 6px; padding: 6px 8px; font-size: 13px; min-height: 34px; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.ph-card { position: relative; display: flex; gap: 12px; padding: 10px 12px 26px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.ph-card:hover { border-color: var(--line2); } .ph-card.picked { border-color: var(--acc2); }
.ph-th { width: 64px; flex: none; display: flex; align-items: center; justify-content: center; } .ph-th.big { width: 130px; }
.ph-main { min-width: 0; flex: 1; } .ph-name { font: 600 15px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-sub { font-size: 12px; color: var(--mut); display: flex; align-items: center; gap: 6px; } .ph-brief { font-size: 12px; color: var(--mut); margin-top: 2px; }
.ph-price { color: var(--text); font-weight: 600; }
.ph-score { min-width: 34px; text-align: center; padding: 1px 6px; border-radius: 4px; font-weight: 700; font-size: 13px; background: var(--acc2); color: #2a160c; }
.ph-score.s1, .ph-score.s2, .ph-score.s3, .ph-score.s4, .ph-score.s5 { background: var(--bad); } .ph-score.s9, .ph-score.s10 { background: var(--good); }
.ph-cmp { position: absolute; right: 10px; bottom: 6px; font-size: 12px; color: var(--mut); display: flex; align-items: center; gap: 5px; cursor: pointer; } .ph-cmp input { accent-color: var(--acc); width: 16px; height: 16px; }
.dotc { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.sp-top { display: flex; gap: 16px; } .sp-cols { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; min-width: 0; } @media (max-width: 760px) { .sp-top { flex-direction: column; } .sp-cols { grid-template-columns: 1fr; } }
.sp-grp { margin-bottom: 10px; } .sp-grp h4, .sp-h { font: 600 13px 'Source Sans 3', system-ui, sans-serif; color: var(--acc2); margin: 0 0 4px; } .sp-h { margin-top: 10px; } .sp-h:first-child { margin-top: 0; }
.stars .fa-star { font-size: 11px; color: var(--acc2); margin-left: 1px; } .stars .off { color: var(--line2); }
table.cmp td, table.cmp th { vertical-align: top; text-align: left; padding: 5px 8px; } table.cmp th { font-weight: 600; }
@media (max-width: 640px) { .ph-sum { grid-template-columns: repeat(2, 1fr); } }
.ph-main .dim { font-size: 12px; }
table.cmp td { font-weight: 500; } table.cmp td.good-t { font-weight: 700; }

/* simpler chip and battery choice */
.sc-list { display: flex; flex-direction: column; gap: 8px; }
.sc-card { padding: 10px 12px; background: var(--panel2); border: 1px solid var(--line2); border-radius: var(--r); cursor: pointer; }
.sc-card:hover { border-color: var(--mut); } .sc-card.on { border-color: var(--acc); background: var(--panel); }
.sc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .sc-top b { font-size: 14px; }
.sc-txt { font-size: 12.5px; color: var(--mut); margin: 3px 0 6px; }
.sc-rows { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; align-items: center; font-size: 11.5px; color: var(--mut); }
.sc-bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; display: block; } .sc-bar i { display: block; height: 100%; background: var(--acc); } .sc-bar i.good { background: var(--good); } .sc-bar i.blue { background: var(--blue); }
.sc-cost { font-size: 12px; color: var(--text); margin-top: 6px; font-weight: 600; }
.sc-old { margin-top: 8px; } .sc-old summary { font-size: 12.5px; color: var(--mut); cursor: pointer; padding: 6px 0; } .sc-old .sc-list { margin-top: 6px; }
.rd-quick { margin: 0 0 10px; } .rq-l { font-size: 12.5px; color: var(--mut); margin-bottom: 4px; } .rq-b { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; }
.rq { text-align: left; padding: 8px 10px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 6px; display: flex; flex-direction: column; gap: 1px; min-height: 48px; } .rq b { font-size: 13px; color: var(--text); } .rq small { font-size: 11px; color: var(--mut); } .rq.on { border-color: var(--acc); }
.rd-hint { font-size: 12.5px; color: var(--mut); background: var(--panel2); border-radius: 6px; padding: 8px 10px; margin: 0 0 12px; line-height: 1.4; } .rd-hint b { color: var(--text); }
.rd-adv { margin: 4px 0 12px; } .rd-adv > summary { font-size: 13px; font-weight: 600; color: var(--acc2); cursor: pointer; padding: 6px 0; } .rd-adv[open] > summary { margin-bottom: 8px; }
#rd-cpu-tab:not(.adv-open) [data-cpu-feature="oc"], #rd-cpu-tab:not(.adv-open) [data-cpu-feature="ecc"], #rd-battery-tab:not(.adv-open) [data-batt-feature="dense"], #rd-battery-tab:not(.adv-open) [data-batt-feature="graphene"], #rd-battery-tab:not(.adv-open) [data-batt-feature="solid"], #rd-cpu-tab:not(.adv-open) .live-preview, #rd-battery-tab:not(.adv-open) .live-preview { display: none; }
#saved-components-grid { display: none !important; }

/* warm dock, and a compact layout for short windows (Safari tab on a phone leaves about 240px) */
.odock { background: var(--panel); border-top: 1px solid var(--line); }
.dk { background: var(--panel2); border-color: var(--line2); }
.ios-tip { font-size: 12px; color: var(--mut); background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px; padding: 8px 10px; max-width: 360px; line-height: 1.35; } .ios-tip b { color: var(--acc2); }
@media (max-height: 330px) {
  :root { --tb: 38px; }
  #topbar { gap: 5px; } .tb-btn, .tb-ico, .tb-res, .tb-date { height: 32px; } .tb-ico { min-width: 34px; padding: 0 6px; } .tb-res { padding: 0 7px; gap: 5px; } .tb-res b { font-size: 12px; } #tb-title { font-size: 12px; }
  .odock { padding: 3px 8px calc(3px + var(--sab)) calc(8px + var(--sal)); gap: 4px; }
  .dk { min-width: 48px; height: 34px; flex-direction: row; gap: 6px; padding: 0 9px; border-radius: 8px; } .dk i { font-size: 12px; } .dk span { font-size: 12px; }
  .menu-left { width: min(560px, 62%); justify-content: center; } .menu-logo h1 { font-size: 17px; } .ml-mark { width: 34px; height: 34px; font-size: 16px; } .menu-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 0; } .menu-btns .mbtn, .menu-btns .mrow { grid-column: auto; } .mrow { display: contents; } .mbtn.sm span { font-size: 13px; }
  .menu-tag { display: none; } .mbtn { height: 34px; } .mbtn.sm { height: 30px; } .menu-left { gap: 5px; } .menu-logo { gap: 10px; } .ios-tip { font-size: 11px; padding: 5px 8px; }
  .setup-head { padding: 4px 10px; } .setup-head h2 { font-size: 16px; }
}

/* landscape phones: buttons become a menu down the left, the office fills the rest (touch targets are at least 44px) */
.scene-view { display: contents; }
@media (max-height: 520px) and (orientation: landscape) {
  .office-wrap { flex-direction: row; align-items: stretch; justify-content: flex-start; overflow: hidden; }
  .scene-view { display: flex; flex: 1; min-width: 0; height: 100%; overflow: hidden; justify-content: flex-end; align-items: center; position: relative; }
  .scene-box { border-radius: 0; box-shadow: none; flex: none; }
  .odock { order: -1; flex: none; width: 124px; display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 48px; gap: 5px; align-content: start; padding: 6px 6px calc(6px + var(--sab)) 6px; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--panel); border: 0; border-right: 1px solid var(--line); border-radius: 0; box-sizing: border-box; }
  .odock::-webkit-scrollbar { display: none; }
  .dk { min-width: 0; width: auto; height: auto; min-height: 48px; padding: 2px; flex-direction: column; justify-content: center; align-items: center; gap: 1px; border-radius: 8px; }
  .dk i { font-size: 15px; } .dk span { font-size: 11px; line-height: 1.1; }
  .dk.pri { grid-column: 1 / -1; flex-direction: row; gap: 7px; } .dk.pri span { font-size: 13px; }
  .dk u { top: 3px; right: 5px; }
}


/* studio on phones: no right-hand specs (they live on the summary screen), a slim cost bar, bigger touch targets */
@media (max-width: 1179px) { #btn-specs { display: none !important; } #screen-studio .right-panel { display: none !important; } }
@media (max-height: 520px) and (orientation: landscape) {
  #cost-box { flex-direction: row; align-items: center; width: auto; gap: 10px; right: 8px; bottom: 8px; padding: 5px 6px 5px 12px; }
  #cost-box .cb-row { display: none; } #cost-box .cb-top { gap: 0; } #cost-box .cb-top span { display: none; } #cost-box .cb-top b { font-size: 18px; }
  #cost-box .cb-go { margin: 0; height: 44px; min-width: 124px; padding: 0 14px; font-size: 14px; }
  #screen-studio .view-controls { top: 6px; right: 8px; flex-direction: row; gap: 4px; } #screen-studio .view-controls .view-btn { width: 42px; height: 42px; }
  #proj-pill { left: 8px; top: 6px; transform: none; padding: 2px 8px; } #proj-pill input { width: 108px; font-size: 13px; }
  #screen-studio .dimension-display { display: none !important; } #proj-pill span { display: none; } #stage-design-content { padding: 50px 120px 0 0; box-sizing: border-box; }
  #screen-studio .left-panel .panel-tab { min-height: 44px; }
}

/* dialogs on short landscape screens use the whole screen with slim bars */
@media (max-height: 520px) and (orientation: landscape) {
  .modal-back { padding: 0 var(--sar) 0 var(--sal); align-items: stretch; }
  .modal { width: 100%; max-width: none; height: 100%; max-height: 100%; border-radius: 0; border: 0; }
  .modal-h { padding: 2px 8px 2px 12px; min-height: 46px; } .modal-h h2 { font-size: 15px; }
  .modal-b { padding: 8px 12px; }
  .modal-f { padding: 5px 10px calc(5px + var(--sab)); }
  .modal .btn { min-height: 40px; }
  .modal-h .btn, .modal-h button { min-width: 44px; min-height: 44px; }
  .sp-top .ph-th.big { width: 90px; }
}

/* touch targets: at least 40px on phones */
@media (max-height: 520px) and (orientation: landscape) {
  .btn { min-height: 40px; } .btn.sm { min-height: 38px; padding: 5px 12px; }
  .lvls button, .rs-t, .trim, .rchip, .segs button, .ph-sel, .tgl, .bs-card, .rq { min-height: 40px; }
  .ph-cmp { padding: 10px 8px; right: 4px; bottom: 0; } .ph-cmp input { width: 22px; height: 22px; } .ph-card { padding-bottom: 34px; }
  .trims { gap: 8px; } .opt-btn, .feature-chip, .part-chip { min-height: 44px; }
}
@media (max-height: 520px) and (orientation: landscape) { .sp-top { flex-direction: row; } .sp-cols { grid-template-columns: 1fr 1fr; gap: 14px; } .ph-th.big { align-items: flex-start; padding-top: 24px; } }
@media (max-height: 520px) and (orientation: landscape) { .cr-head { gap: 8px; margin-bottom: 4px; } .cr-head .thumb { display: none; } .cr-head .tabs { margin: 2px 0 0; } }

/* keep everything out from under the notch and rounded corners */
#stage { padding-left: var(--sal); box-sizing: border-box; }
.setup { padding-left: var(--sal); }
