/* Footactica styles */
:root{color-scheme:dark}
[hidden]{display:none!important}
img{max-width:100%}
/* Layout: tool strip | pitch with step timeline | side panel. On phones the strip runs along the top and the panel slides up. */
:root {
  --bg: #edf1ee; --panel: #fbfcfb; --panel2: #e3e9e5; --text: #15201a; --muted: #56655c; --line: #cdd7d0;
  --accent: #17794a; --accent-ink: #ffffff; --accent-soft: #d3ebdd; --warn: #a85a00; --danger: #c23b2e;
  --stage: #c9d3cc; --shadow: 0 6px 24px rgba(10, 30, 20, .18); --ok: #17794a;
  --font-ui: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-disp: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1210; --panel: #141b17; --panel2: #1c2520; --text: #e8efe9; --muted: #8c9d93; --line: #26332c;
    --accent: #38c47a; --accent-ink: #04170c; --accent-soft: #18352a; --warn: #f0a53a; --danger: #ff6a5c;
    --stage: #090d0b; --shadow: 0 6px 24px rgba(0, 0, 0, .5); --ok: #38c47a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1210; --panel: #141b17; --panel2: #1c2520; --text: #e8efe9; --muted: #8c9d93; --line: #26332c;
  --accent: #38c47a; --accent-ink: #04170c; --accent-soft: #18352a; --warn: #f0a53a; --danger: #ff6a5c;
  --stage: #090d0b; --shadow: 0 6px 24px rgba(0, 0, 0, .5); --ok: #38c47a; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.4 var(--font-ui); overflow: hidden; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .4; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ic { width: 20px; height: 20px; flex: none; display: block; }

#app { height: 100%; display: grid; gap: 10px; padding-block: 10px; padding-inline: 16px; min-height: 0;
  grid-template-columns: auto minmax(0, 1fr) 336px; grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "top top top" "tools stage panel" "tools time panel"; }
#top { grid-area: top; display: flex; align-items: center; gap: 8px; min-width: 0; }
#tools { grid-area: tools; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
#stage { grid-area: stage; position: relative; background: var(--stage); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-height: 0; min-width: 0; }
#time { grid-area: time; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
#panel { grid-area: panel; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; }

/* top bar */
.brand { border: 0; background: none; color: inherit; padding: 0; cursor: pointer; display: flex; align-items: center; gap: 8px; font-family: var(--font-disp); font-weight: 700; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.brand .mark svg { width: 20px; height: 20px; }
.projname { background: none; border: 1px solid transparent; border-radius: 8px; padding: 6px 10px; font-weight: 600; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.projname:hover { background: var(--panel); border-color: var(--line); }
.savestate { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.savestate.ok::before, .savestate.busy::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--ok); }
.savestate.busy::before { background: var(--warn); }
.savestate.warn { color: var(--warn); }
.grow { flex: 1 1 auto; }
.langsw { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.langsw button { border: 0; background: var(--panel); padding: 6px 9px; font-weight: 600; font-size: 12px; letter-spacing: .04em; }
.langsw button.on { background: var(--accent); color: var(--accent-ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel2); font-weight: 600; min-height: 38px; }
.btn:hover:not(:disabled) { border-color: var(--muted); }
.btn.pri { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.dng { color: var(--danger); }
.btn.pri.dng, .btn.dng.on { color: #fff; background: var(--danger); }
.btn.wide { width: 100%; }
.ibtn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel2); flex: none; padding: 0; }
.ibtn:hover:not(:disabled) { border-color: var(--muted); }
.ibtn.pri { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.ibtn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.ibtn.dng { color: var(--danger); }
.topbtn { display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; height: 38px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); font-weight: 600; white-space: nowrap; }
.topbtn:hover:not(:disabled) { border-color: var(--muted); }
.topbtn.pri { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
#panelBtn { display: none; }

/* tools */
.tgroup { display: flex; flex-direction: column; gap: 6px; }
.tlabel { font-family: var(--font-disp); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-inline: 2px; }
.tgrid { display: grid; grid-template-columns: repeat(2, 40px); gap: 6px; }
.tool { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); display: grid; place-items: center; padding: 0; }
.tool:hover { border-color: var(--muted); }
.tool.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

/* stage */
#board { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; display: block; }
#board.noedit [data-oid], #board.noedit [data-did] { pointer-events: none; }
#hint { position: absolute; left: 10px; right: 10px; top: 10px; pointer-events: none; display: flex; }
#hint { font-size: 12.5px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); font-weight: 600; }
#zoomctl { position: absolute; right: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 6px; }
#zoomctl .ibtn { background: rgba(20, 27, 23, .78); color: #fff; border-color: rgba(255, 255, 255, .25); }
#polyDone { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); }

/* timeline */
.tc { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tc select { width: auto; height: 38px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel2); padding: 0 8px; }
.tc input[type=range] { flex: 1 1 140px; min-width: 100px; accent-color: var(--accent); }
.stepno { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.chip { flex: none; position: relative; width: 96px; height: 62px; border-radius: 9px; border: 2px solid var(--line); background: var(--panel2); padding: 0; overflow: hidden; }
.chip.cur { border-color: var(--accent); }
.chip .th { position: absolute; inset: 0; }
.chip .th svg { width: 100%; height: 100%; display: block; }
.chip .cn { position: absolute; left: 4px; top: 3px; background: rgba(12, 16, 14, .78); color: #fff; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 0 6px; font-variant-numeric: tabular-nums; }

/* panel */
.ptabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 6px; border-bottom: 1px solid var(--line); flex: none; align-items: center; position: relative; }
.ptabs button[role=tab] { flex: 1 1 auto; border: 0; background: none; padding: 8px 4px; border-radius: 8px; font-family: var(--font-disp); font-weight: 600; font-size: 13px; letter-spacing: .01em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ptabs button[role=tab].on { background: var(--accent-soft); color: var(--accent); }
.pclose { display: none !important; }
.pbody { padding: 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; min-height: 0; flex: 1 1 auto; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: var(--panel); }
.card h3 { margin: 0; font-family: var(--font-disp); font-weight: 600; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lbl { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.note { margin: 0; font-size: 12.5px; color: var(--muted); }
label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); min-width: 0; }
input[type=text], input[type=password], input[type=email], input[type=tel], input[type=number], input[type=date], textarea, select { width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 8px 10px; color: var(--text); font-weight: 500; }
textarea { resize: vertical; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; }
.chk { flex-direction: row; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text); }
.chk.pad { padding-bottom: 8px; }
.chk input { width: 18px; height: 18px; accent-color: var(--accent); }
.seg { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.seg button { flex: 1 1 auto; border: 0; border-right: 1px solid var(--line); background: var(--panel2); padding: 8px 8px; font-weight: 600; font-size: 13px; min-width: 0; }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; }
.btnrow .btn { flex: 1 1 auto; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); padding: 0; }
.sw.on { border-color: var(--text); }
.colin, input[type=color] { width: 32px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; }
.teamrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.cl { flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 600; }
.fgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.fbtn { border: 1px solid var(--line); background: var(--panel2); border-radius: 9px; padding: 10px 6px; font-family: var(--font-disp); font-size: 20px; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.fbtn.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.tpls { display: flex; flex-direction: column; gap: 6px; }
.tplcard { text-align: left; border: 1px solid var(--line); background: var(--panel2); border-radius: 10px; padding: 9px 11px; display: flex; flex-direction: column; gap: 1px; }
.tplcard:hover { border-color: var(--accent); }
.tplcard .tn { font-weight: 600; }
.tplcard .tm { font-size: 12px; color: var(--muted); }

/* dialogs */
#dlgBack { position: fixed; inset: 0; z-index: 50; background: rgba(5, 10, 8, .55); display: grid; place-items: center; padding: 16px; }
#dlg { width: 100%; max-width: 560px; max-height: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.dh { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 12px 8px 16px; }
.dh h2 { margin: 0; font-family: var(--font-disp); font-size: 24px; letter-spacing: .03em; text-transform: uppercase; text-wrap: balance; }
.db { padding: 4px 16px 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.db p { margin: 0; }
.df { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 10px 16px 14px; border-top: 1px solid var(--line); }
.pillrow { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { border: 1px solid var(--line); background: var(--panel2); border-radius: 999px; padding: 5px 12px; font-weight: 600; font-size: 13px; }
.pill.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.plist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.prow { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; flex-wrap: wrap; }
.prow.cur { border-color: var(--accent); background: var(--accent-soft); }
.prow.conf { border-color: var(--danger); }
.pinfo { display: flex; flex-direction: column; min-width: 0; flex: 1 1 160px; }
.pinfo b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pinfo span { font-size: 12px; color: var(--muted); }
.pbtns { display: flex; gap: 6px; flex-wrap: wrap; }
.colrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.colrow .cl { flex-direction: row; gap: 8px; font-size: 12.5px; }
.expprev { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--stage); }
.expprev img { width: 100%; display: block; }
.smwrap { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.smsvg { width: 100%; display: block; }
.smsum { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); }
.smsum b { color: var(--text); font-variant-numeric: tabular-nums; }
.smsum b.g { color: var(--ok); } .smsum b.r { color: var(--danger); }
#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; max-width: calc(100% - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  #app { grid-template-columns: auto minmax(0, 1fr) 280px; }
  .topbtn span { display: none; }
  .topbtn { padding: 0 10px; }
}
@media (max-width: 860px) {
  #app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-areas: "top" "tools" "stage" "time"; gap: 8px; padding-block: 8px; }
  #tools { flex-direction: row; overflow-x: auto; overflow-y: hidden; gap: 14px; padding: 6px; }
  .tgroup { flex-direction: row; align-items: center; flex: none; }
  .tlabel { display: none; }
  .tgrid { display: flex; }
  .tool { width: 42px; height: 42px; }
  #panelBtn { display: inline-flex; }
  .savestate { display: none; }
  .brand span.bn { display: none; }
  .projname { max-width: 30vw; }
  #panel { position: fixed; left: 0; right: 0; bottom: 0; height: 64%; z-index: 30; border-radius: 16px 16px 0 0; transform: translateY(104%); transition: transform .22s ease; box-shadow: var(--shadow); padding-bottom: env(safe-area-inset-bottom, 0px); }
  #panel.open { transform: none; }
  .pclose { display: inline-grid !important; grid-column: 1 / -1; justify-self: end; order: -1; }
  .chip { width: 80px; height: 52px; }
  .tc input[type=range] { flex-basis: 100px; }
}
/* present mode */
#presentBar { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; box-shadow: var(--shadow); }
#app.present { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); grid-template-areas: "stage"; padding: 0; gap: 0; }
#app.present #top, #app.present #tools, #app.present #time, #app.present #panel, #app.present #hint, #app.present #zoomctl { display: none; }
#app.present #stage { border-radius: 0; border: 0; }
#app.present #board [data-oid], #app.present #board [data-did] { pointer-events: none; }
@media (max-width: 640px) {
  .langsw, [data-top=present] { display: none; }
  .ibtn { width: 36px; height: 36px; }
  .topbtn { height: 36px; padding: 0 9px; }
  #top { gap: 6px; }
  .projname { max-width: 24vw; }
}
@media (prefers-reduced-motion: reduce) {
  #panel, #toast { transition: none; }
}

/* equipment library */
.pillrow { display: flex; flex-wrap: wrap; gap: 6px; }
.eqgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.eqcard { border: 1px solid var(--line); background: var(--panel2); border-radius: 12px; padding: 8px 4px 7px; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.eqcard:hover { border-color: var(--muted); }
.eqcard.on { border-color: var(--accent); background: var(--accent-soft); }
.eqpv { width: 100%; aspect-ratio: 1; display: grid; place-items: center; background: #2b7a3d; border-radius: 8px; overflow: hidden; }
.eqpv svg { width: 78%; height: 78%; }
.eqname { font-size: 11.5px; font-weight: 600; text-align: center; line-height: 1.2; overflow-wrap: anywhere; }
/* full screen board */
#fullExit { position: absolute; right: 10px; top: 10px; z-index: 5; background: rgba(20, 27, 23, .85); color: #fff; border-color: rgba(255, 255, 255, .3); }
#app.full { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "tools stage" "tools time"; padding: 0; gap: 8px; padding: 8px; }
#app.full #top, #app.full #panel { display: none; }
@media (max-width: 860px) {
  #app.full { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tools" "stage" "time"; grid-template-rows: auto minmax(0, 1fr) auto; }
}


/* ===== website layer: landing page (fixed dark look) and dashboard (follows theme) ===== */
#landing, #dash { position: fixed; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
#landing .langsw, #dash .langsw { display: flex; }
#landing .lp-nav .langsw { }

#landing {
  --l-bg: #08120d; --l-bg2: #0d1a13; --l-fg: #eef4ee; --l-mute: #9bafa3; --l-line: #1d3227; --l-acc: #f2c230; --l-acc-ink: #1a1500; --l-green: #2f9e5b; --l-card: #0f1f17;
  background: var(--l-bg); color: var(--l-fg); color-scheme: dark; font-size: 16px; line-height: 1.55; padding-inline: 0;
}
#landing * { min-width: 0; }
:where(#landing) :where(h1, h2, h3, p) { margin: 0; }
:where(#landing) :where(h1, h2, h3) { font-family: var(--font-disp); font-weight: 700; line-height: 1.04; text-wrap: balance; letter-spacing: .005em; }
.lp-wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .lp-wrap { padding-inline: 28px; } }

.lp-nav { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--l-bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--l-line); }
.lp-navin { display: flex; align-items: center; gap: 14px; min-height: 60px; }
.lp-brand { display: flex; align-items: center; gap: 9px; background: none; border: 0; color: var(--l-fg); padding: 0; font-family: var(--font-disp); font-weight: 700; font-size: 23px; letter-spacing: .02em; cursor: pointer; }
.lp-brand.static { cursor: default; }
.lp-brand .mark, .d-brand .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--l-acc); color: var(--l-acc-ink); display: grid; place-items: center; flex: none; }
.lp-brand .mark svg, .d-brand .mark svg { width: 20px; height: 20px; }
.lp-links { display: flex; gap: 4px; margin-left: 14px; }
.lp-links button { background: none; border: 0; color: var(--l-mute); font-weight: 600; padding: 8px 10px; border-radius: 8px; }
.lp-links button:hover { color: var(--l-fg); background: var(--l-bg2); }
#landing .langsw { border-color: var(--l-line); }
#landing .langsw button { background: transparent; color: var(--l-mute); }
#landing .langsw button.on { background: var(--l-fg); color: var(--l-bg); }
.lp-btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--l-line); background: var(--l-bg2); color: var(--l-fg); font-weight: 700; padding: 9px 16px; min-height: 40px; }
.lp-btn:hover { border-color: var(--l-mute); }
.lp-btn.pri { background: var(--l-acc); color: var(--l-acc-ink); border-color: transparent; }
.lp-btn.pri:hover { filter: brightness(1.07); }
.lp-btn.big { min-height: 50px; padding: 12px 22px; font-size: 17px; }
#landing :focus-visible { outline-color: var(--l-acc); }

.lp-hero { padding-block: clamp(32px, 6vw, 72px) clamp(40px, 7vw, 88px); background: radial-gradient(900px 420px at 80% 0%, #123324 0%, transparent 70%); }
.lp-herogrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.lp-herotxt h1 { font-size: clamp(40px, 5.6vw, 72px); text-transform: uppercase; }
.lp-lead { margin-top: 20px; font-size: clamp(17px, 2vw, 20px); color: #c4d3c9; max-width: 34em; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.lp-fine { margin-top: 16px; font-size: 14px; color: var(--l-mute); max-width: 32em; }
.lp-live { margin: 0; border: 1px solid var(--l-line); border-radius: 16px; overflow: hidden; background: #0a1711; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.lp-livebar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--l-line); font-size: 13px; color: var(--l-mute); }
.lp-livebar i { width: 9px; height: 9px; border-radius: 50%; background: #2a4437; display: block; }
.lp-livebar span { margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-live svg { display: block; width: 100%; height: auto; aspect-ratio: 1140 / 770; }

.lp-sec { padding-block: clamp(48px, 8vw, 96px); }
.lp-sec.alt { background: var(--l-bg2); border-block: 1px solid var(--l-line); }
.lp-head { max-width: 46em; margin-bottom: clamp(24px, 4vw, 44px); }
.lp-head h2 { font-size: clamp(32px, 4.6vw, 52px); }
.lp-head p { margin-top: 12px; color: var(--l-mute); font-size: 18px; }
.lp-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lp-feat { background: var(--l-card); border: 1px solid var(--l-line); border-radius: 14px; padding: 20px; }
.lp-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #173325; color: var(--l-acc); margin-bottom: 14px; }
.lp-feat h3 { font-size: 24px; margin-bottom: 6px; }
.lp-feat p { color: var(--l-mute); font-size: 15px; }

.lp-views { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.lp-views .lp-head { margin: 0; }
.lp-devs { display: flex; gap: 20px; align-items: flex-end; justify-content: center; }
.lp-dev { margin: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.lp-dev.h { flex: 1 1 58%; }
.lp-dev.v { flex: 0 1 28%; }
.lp-screen { width: 100%; border-radius: 12px; border: 3px solid #2a4437; overflow: hidden; background: #0a1711; }
.lp-dev.h .lp-screen { aspect-ratio: 16 / 10; }
.lp-dev.v .lp-screen { aspect-ratio: 9 / 16; border-radius: 18px; }
.lp-screen svg, .lp-th svg, .d-th svg { display: block; width: 100%; height: 100%; }
.lp-dev figcaption { font-size: 14px; color: var(--l-mute); font-weight: 600; }

.lp-eqcats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lp-eqcat { background: var(--l-card); border: 1px solid var(--l-line); border-radius: 14px; padding: 18px; }
.lp-eqcat:first-child { grid-column: 1 / -1; }
.lp-eqcat h3 { font-size: 22px; margin-bottom: 12px; }
.lp-eqrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 10px; }
.lp-eqi { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--l-mute); text-align: center; line-height: 1.25; }
#landing .eqpv { border-radius: 10px; }

.lp-who { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.lp-w { border-top: 3px solid var(--l-acc); padding-top: 14px; }
.lp-w h3 { font-size: 26px; margin-bottom: 8px; }
.lp-w p { color: var(--l-mute); font-size: 15px; }

.lp-tpls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-tpl { text-align: left; background: var(--l-card); border: 1px solid var(--l-line); border-radius: 14px; padding: 10px 10px 14px; color: var(--l-fg); display: flex; flex-direction: column; gap: 4px; }
.lp-tpl:hover { border-color: var(--l-acc); }
.lp-tpl b { font-size: 16px; margin-top: 8px; padding-inline: 4px; }
.lp-tpl small { color: var(--l-mute); font-size: 13px; line-height: 1.4; padding-inline: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lp-th, .d-th { display: block; aspect-ratio: 16 / 10; border-radius: 9px; overflow: hidden; background: #0a1711; }
.lp-more { margin-top: 24px; display: flex; justify-content: center; }

.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lp-steps li { position: relative; padding-left: 58px; }
.lp-steps b { position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--l-acc); color: var(--l-acc); display: grid; place-items: center; font-family: var(--font-disp); font-size: 24px; }
.lp-steps h3 { font-size: 26px; margin-bottom: 6px; }
.lp-steps p { color: var(--l-mute); }

.lp-end { padding-block: clamp(56px, 9vw, 110px); text-align: center; background: radial-gradient(700px 300px at 50% 100%, #14412b 0%, transparent 70%); }
.lp-end h2 { font-size: clamp(36px, 6vw, 68px); text-transform: uppercase; }
.lp-end p { margin: 14px auto 26px; color: var(--l-mute); font-size: 18px; max-width: 30em; }
.lp-foot { border-top: 1px solid var(--l-line); padding-block: 28px; }
.lp-footin { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.lp-footin p { color: var(--l-mute); font-size: 14px; }
.lp-footin .dom { color: var(--l-fg); font-weight: 700; }
.lp-footin .rights { flex-basis: 100%; font-size: 13px; }

@media (max-width: 1000px) {
  .lp-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-links { display: none; }
}
@media (max-width: 800px) {
  .lp-herogrid, .lp-views { grid-template-columns: minmax(0, 1fr); }
  .lp-steps { grid-template-columns: minmax(0, 1fr); }
  .lp-eqcats { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .lp-feats, .lp-who { grid-template-columns: minmax(0, 1fr); }
  .lp-navin { gap: 8px; }
  #landing .lp-nav .langsw { display: none; }
  .lp-brand span:last-child { font-size: 20px; }
  .lp-nav .lp-btn { padding-inline: 10px; font-size: 14px; }
  .lp-tpls { gap: 10px; }
  .lp-devs { gap: 12px; }
}

/* ---- dashboard ---- */
#dash { display: grid; grid-template-columns: 240px minmax(0, 1fr); background: var(--bg); color: var(--text); overflow: hidden; }
.d-side { background: var(--panel); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
.d-brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-disp); font-weight: 700; font-size: 23px; letter-spacing: .02em; padding-inline: 8px; }
.d-brand .mark { background: var(--accent); color: var(--accent-ink); }
.d-nav { display: flex; flex-direction: column; gap: 3px; }
.d-n { display: flex; align-items: center; gap: 11px; border: 0; background: none; padding: 10px; border-radius: 10px; font-weight: 600; color: var(--muted); text-align: left; width: 100%; }
.d-n:hover { background: var(--panel2); color: var(--text); }
.d-n.on { background: var(--accent-soft); color: var(--accent); }
.d-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.d-main { overflow-y: auto; padding-block: 28px 56px; padding-inline: 16px; min-width: 0; }
@media (min-width: 900px) { .d-main { padding-inline: 36px; } }
.d-main > * { max-width: 1100px; margin-inline: auto; }
.d-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 22px; }
.d-head h1 { font-family: var(--font-disp); font-size: clamp(30px, 4vw, 40px); margin: 0; line-height: 1.05; }
.d-head p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.d-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.d-row.sp { justify-content: space-between; flex-wrap: nowrap; }
.d-row.sp span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.d-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.d-q { display: flex; flex-direction: column; gap: 4px; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.d-q:hover { border-color: var(--accent); }
.d-q .qi { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); margin-bottom: 8px; }
.d-q b { font-size: 17px; }
.d-q small { color: var(--muted); font-size: 13.5px; }
.d-sec { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-block: 30px 12px; }
.d-sec h2 { font-family: var(--font-disp); font-size: 26px; margin: 0; }
.d-link { background: none; border: 0; color: var(--accent); font-weight: 700; padding: 4px; }
.d-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.d-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.d-card .d-th { border: 0; border-radius: 0; width: 100%; padding: 0; background: #0a1711; }
.d-ci { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.d-ci b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-ci > span { color: var(--muted); font-size: 13px; }
.d-ci p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.d-ci .d-row { margin-top: 10px; }
.d-card.proj .ibtn { width: 34px; height: 34px; }
.d-card.conf .d-ci { gap: 8px; }
.d-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.d-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding-inline: 10px; flex: 1 1 240px; max-width: 360px; color: var(--muted); }
.d-search input { border: 0; background: none; outline: none; padding: 9px 0; width: 100%; min-width: 0; color: var(--text); }
.d-empty, .d-note { color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; padding: 22px; text-align: center; }
.d-note { border: 0; margin-top: 28px; padding: 0; text-align: left; font-size: 13px; }
.d-squads { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.d-card.squad textarea { margin-top: 8px; }

@media (max-width: 800px) {
  #dash { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .d-side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .d-nav { flex-direction: row; overflow-x: auto; order: 3; flex-basis: 100%; }
  .d-n { width: auto; padding: 8px 12px; white-space: nowrap; }
  .d-side-foot { margin: 0 0 0 auto; flex-direction: row; align-items: center; }
  .d-side-foot .d-n span { display: none; }
  .d-quick { grid-template-columns: minmax(0, 1fr); }
  .d-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: auto; } }


/* ---- landing: pricing, FAQ, contact, accounts, motion ---- */
.lp-btn.ghost { background: transparent; border-color: transparent; color: var(--l-fg); }
.lp-btn.ghost:hover { background: var(--l-bg2); }
.lp-head.center { margin-inline: auto; text-align: center; }
.lp-eqrow.big { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.lp-eqrow.big .lp-eqi { font-size: 13px; }

.lp-bill { display: flex; width: fit-content; margin: 0 auto 28px; padding: 4px; gap: 4px; border: 1px solid var(--l-line); border-radius: 999px; background: var(--l-card); }
.lp-bill button { display: flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; background: none; color: var(--l-mute); font-weight: 700; padding: 8px 16px; transition: background .25s, color .25s; }
.lp-bill button.on { background: var(--l-fg); color: var(--l-bg); }
.lp-bill em { font-style: normal; font-size: 12px; background: var(--l-acc); color: var(--l-acc-ink); border-radius: 999px; padding: 2px 8px; }
.lp-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 860px; margin-inline: auto; }
.lp-plan { background: var(--l-card); border: 1px solid var(--l-line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.lp-plan.feat { border-color: var(--l-acc); box-shadow: 0 0 0 1px var(--l-acc), 0 24px 60px rgba(0, 0, 0, .4); }
.lp-plan h3 { font-size: 32px; }
.lp-plan .pd { color: var(--l-mute); font-size: 15px; min-height: 2.9em; }
.lp-plan .pp { display: flex; align-items: baseline; gap: 6px; }
.lp-plan .pp b { font-family: var(--font-disp); font-size: 64px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.lp-plan .pp .cur { font-family: var(--font-disp); font-size: 32px; font-weight: 700; }
.lp-plan .pp .per { color: var(--l-mute); font-weight: 600; }
.lp-plan .pn { color: var(--l-mute); font-size: 14px; margin-top: -8px; min-height: 1.4em; }
.lp-plan:not(.feat) .pp { margin-bottom: calc(1.4em + 6px); }
.lp-plan ul { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.lp-plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.lp-plan li .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--l-acc); }
.lp-pnote { margin-top: 22px; text-align: center; color: var(--l-mute); font-size: 14px; }

.lp-faqwrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.lp-faqwrap .lp-head { margin: 0; position: sticky; top: 90px; }
.lp-faq { display: flex; flex-direction: column; }
.lp-faq details { border-bottom: 1px solid var(--l-line); }
.lp-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-size: 18px; font-weight: 600; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq .chev { width: 12px; height: 12px; border-right: 2px solid var(--l-acc); border-bottom: 2px solid var(--l-acc); transform: rotate(45deg); transition: transform .25s; flex: none; margin-right: 4px; }
.lp-faq details[open] .chev { transform: rotate(-135deg); }
.lp-faq details p { padding: 0 0 18px; color: var(--l-mute); max-width: 40em; animation: lp-fade .3s ease; }

.lp-contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lp-ci { background: var(--l-card); border: 1px solid var(--l-line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.lp-ci small { color: var(--l-mute); font-size: 13px; font-weight: 600; }
.lp-ci b { font-size: 19px; overflow-wrap: anywhere; user-select: all; }
.lp-copy { margin-top: 6px; border: 1px solid var(--l-line); background: none; color: var(--l-fg); border-radius: 8px; padding: 5px 12px; font-weight: 600; font-size: 13px; }
.lp-copy:hover { border-color: var(--l-acc); color: var(--l-acc); }
.lp-footin .made { flex-basis: 100%; color: var(--l-fg); font-size: 15px; }
.lp-footin .made a { color: var(--l-acc); font-weight: 700; text-decoration: none; }
.lp-footin .made a:hover { text-decoration: underline; }

/* motion: everything below only runs when the visitor has not asked for reduced motion */
.lp-prog { position: fixed; left: 0; top: 0; right: 0; height: 3px; background: var(--l-acc); transform: scaleX(0); transform-origin: left; z-index: 6; pointer-events: none; }
.lp-nav { transition: border-color .3s, background .3s; }
.lp-nav.stuck { background: color-mix(in srgb, var(--l-bg) 94%, transparent); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
@keyframes lp-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes lp-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes lp-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes lp-pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 194, 48, .6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(242, 194, 48, 0); } }
.lp-livebar i.pulse { background: var(--l-acc); animation: lp-pulse 1.8s infinite; }
@media (prefers-reduced-motion: no-preference) {
  .lp-herotxt h1 { animation: lp-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .lp-lead { animation: lp-rise .8s .12s cubic-bezier(.2, .7, .2, 1) both; }
  .lp-cta { animation: lp-rise .8s .24s cubic-bezier(.2, .7, .2, 1) both; }
  .lp-fine { animation: lp-rise .8s .34s both; }
  .lp-live { animation: lp-pop .9s .2s cubic-bezier(.2, .7, .2, 1) both; }
  .lp-fx .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
  .lp-fx .rv.in { opacity: 1; transform: none; }
  .lp-btn { transition: transform .18s, filter .18s, border-color .18s, background .18s; }
  .lp-btn:hover { transform: translateY(-2px); }
  .lp-btn:active { transform: translateY(0); }
  .lp-feat, .lp-tpl, .lp-ci, .lp-plan { transition: transform .25s, border-color .25s, box-shadow .25s, opacity .7s, background .25s; }
  .lp-feat:hover, .lp-ci:hover { transform: translateY(-4px); border-color: #2d4a39; }
  .lp-tpl:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
  .lp-plan:hover { transform: translateY(-4px); }
  .lp-ico { transition: transform .3s, background .3s; }
  .lp-feat:hover .lp-ico { transform: rotate(-8deg) scale(1.08); background: #1d4531; }
  .lp-th svg { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
  .lp-tpl:hover .lp-th svg { transform: scale(1.06); }
  .lp-eqi .eqpv { transition: transform .25s; }
  .lp-eqi:hover .eqpv { transform: translateY(-4px) rotate(-4deg); }
  .lp-dev.v .lp-screen { animation: lp-bob 6s ease-in-out infinite; }
  .lp-plan .pp.swap b { animation: lp-pop .35s ease; }
  .lp-w { transition: transform .25s; }
  .lp-w:hover { transform: translateY(-3px); }
}
@keyframes lp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 1000px) { .lp-links { display: none; } }
@media (max-width: 800px) {
  .lp-plans, .lp-contact, .lp-faqwrap { grid-template-columns: minmax(0, 1fr); }
  .lp-faqwrap .lp-head { position: static; }
}
@media (max-width: 520px) {
  .lp-nav .lp-btn { padding-inline: 11px; min-height: 36px; font-size: 14px; }
  .lp-plan { padding: 22px; }
  .lp-plan .pp b { font-size: 54px; }
}

/* ---- round 3: modern touches, new FAQ, one-row footer, back to top ---- */
.lp-hero { position: relative; overflow: hidden; isolation: isolate; }
.lp-hero > .lp-wrap { position: relative; z-index: 1; }
.lp-hero::before { content: ''; position: absolute; inset: -20% -10% auto -10%; height: 140%; z-index: -2; pointer-events: none;
  background: radial-gradient(420px 320px at 15% 25%, rgba(47, 158, 91, .34), transparent 70%), radial-gradient(520px 380px at 82% 18%, rgba(242, 194, 48, .16), transparent 70%), radial-gradient(480px 360px at 60% 85%, rgba(24, 120, 90, .28), transparent 70%); filter: blur(30px); }
.lp-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--hx, 70%) var(--hy, 30%), rgba(242, 194, 48, .09), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(#000 40%, transparent 100%); mask-image: linear-gradient(#000 40%, transparent 100%); }
.lp-tilt { transition: transform .25s ease-out; will-change: transform; }
.lp-btn.pri { box-shadow: 0 8px 24px rgba(242, 194, 48, .22); }

.lp-marq { overflow: hidden; border-block: 1px solid var(--l-line); background: var(--l-bg2); padding-block: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lp-track { display: flex; width: max-content; }
.lp-set { display: flex; gap: 12px; padding-right: 12px; }
.lp-set span { white-space: nowrap; border: 1px solid var(--l-line); border-radius: 999px; padding: 7px 16px; color: var(--l-mute); font-weight: 600; font-size: 14px; background: var(--l-card); }
@keyframes lp-marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: no-preference) {
  .lp-track { animation: lp-marq 60s linear infinite; }
  .lp-marq:hover .lp-track { animation-play-state: paused; }
  .lp-hero::before { animation: lp-aurora 18s ease-in-out infinite alternate; }
}
@keyframes lp-aurora { from { transform: translate3d(-2%, 0, 0) scale(1); } to { transform: translate3d(3%, 4%, 0) scale(1.08); } }

.lp-feat, .lp-tpl, .lp-plan { position: relative; overflow: hidden; }
.lp-feat::before, .lp-tpl::before, .lp-plan::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(242, 194, 48, .14), transparent 70%); }
.lp-feat:hover::before, .lp-tpl:hover::before, .lp-plan:hover::before { opacity: 1; }
@media (min-width: 1001px) {
  .lp-feats { grid-auto-flow: dense; }
  .lp-feat:nth-child(1), .lp-feat:nth-child(4), .lp-feat:nth-child(8) { grid-column: span 2; }
  .lp-feat:nth-child(1) .lp-ico, .lp-feat:nth-child(4) .lp-ico, .lp-feat:nth-child(8) .lp-ico { background: var(--l-acc); color: var(--l-acc-ink); }
}
.lp-eqrow.big { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.lp-eqrow.big .lp-eqi { background: var(--l-card); border: 1px solid var(--l-line); border-radius: 14px; padding: 12px 12px 14px; font-size: 14px; font-weight: 600; color: var(--l-fg); }
@media (max-width: 700px) { .lp-eqrow.big { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* FAQ: one card per question, the open one lights up */
.lp-faq { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 10px; }
.lp-faq details { border: 1px solid var(--l-line); border-radius: 16px; background: var(--l-card); transition: border-color .25s, background .25s; }
.lp-faq details:hover { border-color: #2d4a39; }
.lp-faq details[open] { border-color: var(--l-acc); background: linear-gradient(180deg, #14281d, var(--l-card)); }
.lp-faq summary { padding: 18px 20px; font-size: 18px; border: 0; }
.lp-faq summary > span { flex: 1; }
.lp-faq .plus { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--l-line); flex: none; transition: background .25s, border-color .25s, transform .3s; }
.lp-faq .plus::before, .lp-faq .plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--l-fg); border-radius: 2px; transition: transform .3s, background .25s; }
.lp-faq .plus::after { transform: rotate(90deg); }
.lp-faq details[open] .plus { background: var(--l-acc); border-color: var(--l-acc); transform: rotate(180deg); }
.lp-faq details[open] .plus::before, .lp-faq details[open] .plus::after { background: var(--l-acc-ink); }
.lp-faq details[open] .plus::after { transform: rotate(0deg); }
.lp-faq details p { padding: 0 64px 20px 20px; }
.lp-faqmore { text-align: center; margin-top: 24px; color: var(--l-mute); }
.lp-link { background: none; border: 0; padding: 0; color: var(--l-acc); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* one-row footer */
.lp-footin { flex-wrap: nowrap; justify-content: space-between; gap: 20px; }
.lp-footin .rights, .lp-footin .made { flex: 0 1 auto; margin: 0; font-size: 14px; }
.lp-footin .rights { color: var(--l-mute); }
.lp-footin .lp-link { text-decoration: none; color: var(--l-fg); font-weight: 600; font-size: 14px; }
.lp-footin .lp-link:hover { color: var(--l-acc); }
@media (max-width: 960px) { .lp-footin { flex-wrap: wrap; justify-content: center; text-align: center; } }

.lp-top { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 6; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--l-line); background: var(--l-acc); color: var(--l-acc-ink); display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .3s, transform .3s; }
.lp-top .ic { transform: rotate(-90deg); }
.lp-top.show { opacity: 1; transform: none; pointer-events: auto; }
#landing[hidden] .lp-top { display: none; }

/* contact pop-up */
.ct-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ct-row small { display: block; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.ct-row b { font-size: 17px; overflow-wrap: anywhere; user-select: all; }
@media (max-width: 520px) { .lp-top { right: 12px; } .lp-faq details p { padding-right: 20px; } .lp-faq summary { font-size: 16px; } }

/* ---- round 4 ---- */
#landing .lp-nav .langsw { display: flex; }
.lp-whosec { padding-top: clamp(40px, 6vw, 72px); }
.lp-who { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.lp-w { border: 1px solid var(--l-line); border-top: 3px solid var(--c, var(--l-acc)); border-radius: 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, var(--l-card)), var(--l-card) 60%); padding: 22px 18px 24px; display: flex; flex-direction: column; gap: 10px; }
.lp-wi { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 20%, transparent); color: var(--c); }
.lp-wi .ic { width: 24px; height: 24px; }
.lp-w h3 { font-size: 27px; overflow-wrap: anywhere; text-transform: uppercase; letter-spacing: .02em; margin: 6px 0 0; }
.lp-w p { color: #b4c4ba; font-size: 15px; }
@media (max-width: 1100px) { .lp-who { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .lp-who { grid-template-columns: minmax(0, 1fr); } .lp-w { flex-direction: row; flex-wrap: wrap; align-items: center; } .lp-w h3 { margin: 0; flex: 1; } .lp-w p { flex-basis: 100%; } }

/* feature showcase */
.lp-ftabs-wrap { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: stretch; }
.lp-ftabs { display: flex; flex-direction: column; gap: 6px; }
.lp-ft { display: flex; align-items: center; gap: 12px; text-align: left; border: 1px solid transparent; background: none; color: var(--l-mute); border-radius: 12px; padding: 12px 14px; font-weight: 700; font-size: 16px; transition: background .2s, color .2s, border-color .2s; }
.lp-ft:hover { color: var(--l-fg); background: var(--l-card); }
.lp-ft.on { background: var(--l-card); border-color: var(--l-acc); color: var(--l-fg); }
.lp-ft .ic { color: var(--l-acc); }
.lp-fpanels { background: var(--l-card); border: 1px solid var(--l-line); border-radius: 18px; padding: clamp(18px, 3vw, 32px); min-height: 330px; }
.lp-fp { display: none; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(18px, 3vw, 36px); align-items: center; height: 100%; }
.lp-fp.on { display: grid; animation: lp-fade .35s ease; }
.lp-ftx h3 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 10px; }
.lp-ftx p { color: #b4c4ba; font-size: 16px; }
.lp-fv .lp-screen { aspect-ratio: 16 / 10; }
.lp-fv.eqs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lp-fv.exp { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.lp-fv.exp b { font-family: var(--font-disp); font-size: 30px; border: 1px solid var(--l-line); background: var(--l-bg2); border-radius: 14px; padding: 18px 26px; color: var(--l-acc); }
@media (max-width: 900px) {
  .lp-ftabs-wrap { grid-template-columns: minmax(0, 1fr); }
  .lp-ftabs { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .lp-ft { flex: none; white-space: nowrap; padding: 10px 12px; }
  .lp-fp { grid-template-columns: minmax(0, 1fr); }
  .lp-fpanels { min-height: 0; }
}

/* equipment: one small row */
.lp-eqsec { padding-block: clamp(36px, 5vw, 56px); }
.lp-eqone { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; }
.lp-eqone .lp-eqi { font-size: 12px; color: var(--l-mute); align-items: center; }
.lp-eqone .eqpv { max-width: 64px; width: 100%; border-radius: 10px; }
@media (max-width: 900px) { .lp-eqone { display: flex; overflow-x: auto; padding-bottom: 6px; } .lp-eqone .lp-eqi { flex: none; width: 78px; } }

/* footer: one row with the contact details */
.lp-footin { gap: 10px 26px; }
.lp-footin .fi { color: var(--l-mute); font-size: 14px; white-space: nowrap; }
.lp-brand small { font-family: var(--font-ui); font-size: 13px; font-weight: 500; color: var(--l-mute); margin-left: 4px; }
@media (max-width: 960px) { .lp-footin .fi { white-space: normal; } }

/* contact form */
.ct-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 8px 0; }
.ct-form label { font-size: 13px; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
input[type=tel], input[type=email] { width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 8px 10px; color: var(--text); font-weight: 500; }
#ctErr { color: var(--danger); min-height: 1.2em; }
@media (max-width: 520px) { .ct-form { grid-template-columns: minmax(0, 1fr); } }

/* ---- dashboard wears the same dark and yellow palette as the landing page ---- */
#dash {
  --bg: #08120d; --panel: #0f1f17; --panel2: #152a1f; --text: #eef4ee; --muted: #9bafa3; --line: #1d3227;
  --accent: #f2c230; --accent-ink: #1a1500; --accent-soft: rgba(242, 194, 48, .14); --danger: #ff6a5c; --warn: #f0a53a;
  color-scheme: dark; background: var(--bg);
}
#dash .d-main { background: radial-gradient(700px 360px at 85% -5%, rgba(47, 158, 91, .22), transparent 70%), radial-gradient(520px 300px at 10% 0%, rgba(242, 194, 48, .06), transparent 70%); }
#dash .d-side { background: #0b1812; }
#dash .d-brand .mark { background: var(--accent); color: var(--accent-ink); }
#dash .btn.pri, #dash .ibtn.pri { box-shadow: 0 6px 18px rgba(242, 194, 48, .18); }
#dash .langsw button.on { background: var(--text); color: var(--bg); }
#dash .d-q:hover, #dash .d-card:hover { border-color: var(--accent); }
#dash .d-q .qi { background: var(--accent-soft); color: var(--accent); }
#dash .d-card .d-th { background: #0a1711; }
#dash .d-link { color: var(--accent); }
#dash input, #dash textarea { background: #0a1711; }
@media (prefers-reduced-motion: no-preference) {
  #dash .d-card, #dash .d-q { transition: transform .22s, border-color .22s, box-shadow .22s; }
  #dash .d-card:hover, #dash .d-q:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0, 0, 0, .4); }
}
#dlgBack.site { --bg: #08120d; --panel: #0f1f17; --panel2: #152a1f; --text: #eef4ee; --muted: #9bafa3; --line: #1d3227; --accent: #f2c230; --accent-ink: #1a1500; --accent-soft: rgba(242, 194, 48, .14); --danger: #ff6a5c; color-scheme: dark; }
#dlgBack.site input, #dlgBack.site textarea, #dlgBack.site select { background: #0a1711; }
#dlgBack.site { color: var(--text); }

/* the editor wears the same dark and yellow palette (choose Light in Settings to switch it off) */
#app.skin {
  --bg: #08120d; --panel: #0f1f17; --panel2: #152a1f; --text: #eef4ee; --muted: #9bafa3; --line: #1d3227;
  --accent: #f2c230; --accent-ink: #1a1500; --accent-soft: rgba(242, 194, 48, .15); --warn: #f0a53a; --danger: #ff6a5c;
  --stage: #060d09; --shadow: 0 6px 24px rgba(0, 0, 0, .5); --ok: #38c47a; color-scheme: dark;
  background: var(--bg); color: var(--text);
}
#app.skin input, #app.skin textarea, #app.skin select { background: #0a1711; }
#app.skin .btn.pri, #app.skin .ibtn.pri, #app.skin .topbtn.pri { box-shadow: 0 6px 18px rgba(242, 194, 48, .16); }
.db .seg, .db label, .db .lbl, .db .pillrow { flex-shrink: 0; }

/* ---- editor tidy-up ---- */
.ptabs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; padding: 6px 6px 0; }
.ptabs button[role=tab] { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px 8px; border-radius: 8px 8px 0 0; font-size: 10.5px; text-transform: none; letter-spacing: 0; font-weight: 600; border-bottom: 2px solid transparent; overflow: hidden; }
.ptabs button[role=tab] span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ptabs button[role=tab] .ic { width: 18px; height: 18px; }
.ptabs button[role=tab].on { background: var(--accent-soft); color: var(--accent); border-bottom-color: var(--accent); }
.ptabs button[role=tab]:hover:not(.on) { color: var(--text); }
.card.acc { padding: 0; gap: 0; }
.card.acc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; font-family: var(--font-disp); font-weight: 600; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--text); }
.card.acc > summary::-webkit-details-marker { display: none; }
.card.acc > summary .ic { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; }
.card.acc[open] > summary .ic { transform: rotate(90deg); }
.card.acc[open] > summary { border-bottom: 1px solid var(--line); }
.card.acc .accb { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
#hint { top: 10px; left: 10px; right: auto; max-width: calc(100% - 70px); background: rgba(8, 18, 13, .72); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 5px 12px; text-shadow: none; font-size: 12px; backdrop-filter: blur(6px); }
#hint:empty { display: none; }
#zoomctl { gap: 4px; }
#zoomctl .ibtn { width: 34px; height: 34px; }
#top .projname { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.savestate { font-size: 12px; color: var(--muted); white-space: nowrap; }
@media (max-width: 860px) { .ptabs button[role=tab] { font-size: 10px; } }

/* ---- light version of the same palette (Settings > Theme > Light) ---- */
#dash.lt, #app.skin.lt, #dlgBack.site.lt {
  --bg: #f4f6f1; --panel: #ffffff; --panel2: #eaefe8; --text: #0e1b13; --muted: #5a6b61; --line: #d9e1d9;
  --accent: #f2c230; --accent-ink: #1a1500; --accent-soft: rgba(242, 194, 48, .22); --warn: #b86e00; --danger: #c93a2c;
  --stage: #dde5dd; --shadow: 0 6px 24px rgba(10, 30, 20, .14); --ok: #17794a; color-scheme: light;
}
#dash.lt .d-main { background: radial-gradient(700px 360px at 85% -5%, rgba(47, 158, 91, .10), transparent 70%), radial-gradient(520px 300px at 10% 0%, rgba(242, 194, 48, .14), transparent 70%); }
#dash.lt .d-side { background: #ffffff; }
#dash.lt .d-card .d-th { background: #e3ebe3; }
#dash.lt input, #dash.lt textarea, #app.skin.lt input, #app.skin.lt textarea, #app.skin.lt select, #dlgBack.site.lt input, #dlgBack.site.lt textarea, #dlgBack.site.lt select { background: #f4f7f3; }
#dash.lt .langsw button.on { background: var(--text); color: #fff; }
#dash.lt .d-link, #dash.lt .d-q .qi, #app.skin.lt .ptabs button[role=tab].on { color: #7a5a00; }
#dash.lt .d-card:hover, #dash.lt .d-q:hover { box-shadow: 0 14px 30px rgba(10, 30, 20, .14); }
#app.skin.lt .btn.pri, #app.skin.lt .ibtn.pri, #app.skin.lt .topbtn.pri, #dash.lt .btn.pri { box-shadow: 0 6px 16px rgba(190, 140, 0, .22); }
#app.skin.lt .seg button.on, #dlgBack.site.lt .seg button.on, #dash.lt .seg button.on { background: var(--accent); color: var(--accent-ink); }
#app.skin.lt .card.acc > summary, #app.skin.lt .tool.on { color: var(--text); }
#dash label.d-search { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
#dash label.d-search .ic { width: 18px; height: 18px; flex: none; }
#dash.lt label.d-search input, #dash label.d-search input { background: none; border: 0; box-shadow: none; padding: 9px 0; height: auto; flex: 1 1 auto; }

/* features showcase: plays on its own, one topic every 6 seconds */
.lp-ft { position: relative; overflow: hidden; }
.lp-ft .pg { position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: var(--l-acc); transform: scaleX(0); transform-origin: left; border-radius: 2px; display: none; }
@media (prefers-reduced-motion: no-preference) {
  .lp-ftabs-wrap.auto .lp-ft.on .pg { display: block; animation: lp-pg 6s linear forwards; }
  .lp-ftabs-wrap.auto:hover .lp-ft.on .pg, .lp-ftabs-wrap.auto:focus-within .lp-ft.on .pg, .lp-ftabs-wrap.off .lp-ft.on .pg { animation-play-state: paused; }
  .lp-fp.on .lp-ftx { animation: lp-rise .5s cubic-bezier(.2, .7, .2, 1) both; }
  .lp-fp.on .lp-fv { animation: lp-zoom .6s cubic-bezier(.2, .7, .2, 1) .08s both; }
  .lp-fp.on .lp-fv.exp b, .lp-fp.on .lp-fv.eqs .eqpv { animation: lp-rise .5s cubic-bezier(.2, .7, .2, 1) both; }
  .lp-fp.on .lp-fv.exp b:nth-child(2), .lp-fp.on .lp-fv.eqs .eqpv:nth-child(2) { animation-delay: .1s; }
  .lp-fp.on .lp-fv.exp b:nth-child(3), .lp-fp.on .lp-fv.eqs .eqpv:nth-child(3) { animation-delay: .2s; }
  .lp-fp.on .lp-fv.exp b:nth-child(4) { animation-delay: .3s; }
}
@keyframes lp-pg { to { transform: scaleX(1); } }
@keyframes lp-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lp-zoom { from { opacity: 0; transform: scale(.92) translateX(18px); } to { opacity: 1; transform: none; } }
.lp-ft.on { box-shadow: 0 0 0 1px var(--l-acc), 0 10px 28px rgba(242, 194, 48, .08); }

/* ---- glow: sections breathe with green and gold light, boxes light up under the pointer ---- */
.lp-sec { position: relative; isolation: isolate; overflow: clip; }
.lp-sec::before { content: ''; position: absolute; z-index: -1; pointer-events: none; width: min(820px, 90vw); aspect-ratio: 1; border-radius: 50%; filter: blur(70px); opacity: .9;
  background: radial-gradient(closest-side, rgba(47, 158, 91, .20), transparent); top: -30%; right: -12%; }
.lp-sec:nth-of-type(even)::before { right: auto; left: -14%; top: auto; bottom: -35%; background: radial-gradient(closest-side, rgba(242, 194, 48, .10), transparent); }
.lp-sec.alt::before { background: radial-gradient(closest-side, rgba(47, 158, 91, .26), transparent); }
#lpPrice::before { background: radial-gradient(closest-side, rgba(242, 194, 48, .14), transparent); top: -20%; right: auto; left: 30%; }
.lp-wsq, .lp-w, .lp-fpanels, .lp-faq details, .lp-steps li, .lp-dev .lp-screen, .lp-ft { position: relative; }
.lp-w, .lp-fpanels, .lp-faq details, .lp-steps li, .lp-dev .lp-screen { overflow: hidden; }
.lp-w::after, .lp-fpanels::after, .lp-faq details::after, .lp-steps li::after, .lp-dev .lp-screen::after, .lp-ft::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; border-radius: inherit;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(70, 200, 120, .17), rgba(242, 194, 48, .06) 45%, transparent 72%); }
.lp-w:hover::after, .lp-fpanels:hover::after, .lp-faq details:hover::after, .lp-steps li:hover::after, .lp-dev .lp-screen:hover::after, .lp-ft:hover::after { opacity: 1; }
.lp-ft::after { z-index: 0; }
.lp-ft > * { position: relative; z-index: 1; }
/* how it works: three real boxes */
.lp-steps li { background: var(--l-card); border: 1px solid var(--l-line); border-radius: 16px; padding: 22px 20px 24px 76px; transition: border-color .25s, transform .25s, box-shadow .25s; }
.lp-steps b { left: 20px; top: 22px; }
.lp-steps li:hover, .lp-w:hover, .lp-tpl:hover, .lp-plan:hover { border-color: rgba(242, 194, 48, .55); }
.lp-dev .lp-screen { transition: box-shadow .3s, border-color .3s; }
.lp-dev .lp-screen:hover { box-shadow: 0 0 0 1px rgba(242, 194, 48, .5), 0 18px 50px rgba(47, 158, 91, .25); }
.lp-tpl:hover { box-shadow: 0 18px 44px rgba(47, 158, 91, .22); }
@media (prefers-reduced-motion: no-preference) {
  .lp-steps li:hover, .lp-w:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .35), 0 0 0 1px rgba(242, 194, 48, .12); }
  .lp-sec::before { animation: lp-drift 16s ease-in-out infinite alternate; }
}
@keyframes lp-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-5%, 6%, 0) scale(1.12); } }
@media (max-width: 700px) { .lp-steps li { padding: 18px 16px 20px 68px; } .lp-steps b { left: 16px; top: 18px; } }

/* ---- pitch and player pickers ---- */
.pkgrid { display: grid; gap: 6px; }
.pkgrid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pkgrid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pkgrid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pkgrid.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pkb { border: 2px solid var(--line); background: var(--panel2); border-radius: 9px; padding: 3px; display: grid; place-items: center; overflow: hidden; aspect-ratio: 1050 / 680; min-width: 0; transition: border-color .15s, transform .15s; }
.pkb svg { width: 100%; height: 100%; display: block; border-radius: 5px; }
.pkb:hover { border-color: var(--muted); }
.pkb.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pkb.tall { aspect-ratio: auto; height: 100%; }
.pkb.sq { aspect-ratio: 1; padding: 4px; }
.pkb.sq svg { border-radius: 0; }
.pkcols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px; align-items: start; }
.pkcols h3 { margin-bottom: 8px; }
.pkcols .pkgrid.c2 { height: calc(100% - 28px); }
.gdots { display: flex; flex-wrap: wrap; gap: 8px; }
.gdot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: var(--g); padding: 0; }
.gdot.on { outline: 2px solid var(--accent); outline-offset: 2px; }
.kitprev { display: flex; align-items: center; gap: 12px; background: var(--panel2); border-radius: 12px; padding: 10px 12px; }
.kitprev svg { width: 64px; height: 64px; flex: none; }
.kitprev.sm svg { width: 48px; height: 48px; }
.kitprev .kpn { flex: 1; min-width: 0; }
.kitprev input[type=text] { width: 100%; }
.rng { display: grid; grid-template-columns: auto minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-weight: 600; font-size: 13px; }
.rng input { accent-color: var(--accent); min-width: 0; }
.rng output { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
#bNew { height: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; white-space: nowrap; }
#bNew .ic { width: 18px; height: 18px; }
.tc .ibtn.on { border-color: var(--accent); color: var(--accent); }
@media (max-width: 520px) { #bNew span { display: none; } #bNew { padding: 0 10px; } }

/* collapsible sidebars (desktop) */
@media (min-width: 861px) {
  #app { --pw: 336px; }
  #app.hide-tools:not(.full) { grid-template-columns: minmax(0, 1fr) var(--pw); grid-template-areas: "top top" "stage panel" "time panel"; }
  #app.hide-panel:not(.full) { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "top top" "tools stage" "tools time"; }
  #app.hide-tools.hide-panel:not(.full) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "stage" "time"; }
  #app.hide-tools:not(.full) #tools, #app.hide-panel:not(.full) #panel { display: none; }
  #panelBtn { display: inline-flex; width: 38px; padding: 0; justify-content: center; background: var(--panel); color: var(--text); border: 1px solid var(--line); }
  #panelBtn span { display: none; }
  #panelBtn[aria-pressed=true], #tgTools[aria-pressed=true] { color: var(--accent); border-color: var(--accent); }
  #tgTools { margin-right: 4px; }
}
@media (min-width: 861px) and (max-width: 1100px) { #app { --pw: 280px; } }
@media (max-width: 860px) { #tgTools { display: none; } }

.ac-form { display: grid; gap: 10px; margin: 12px 0 4px; }
.ac-form label { font-size: 13px; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.ac-msg { min-height: 1.3em; color: #ff8a7a; }
.ac-msg.ok { color: var(--acc, #f2c230); }
.linkbtn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }

.ac-google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; padding: 10px 14px; font-weight: 700; }
.ac-or { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.ac-or::before, .ac-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---- access banner + admin panel ---- */
.acc-bn { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 18px; font-weight: 600; }
.acc-bn.warn { background: var(--accent-soft); border-color: var(--accent); }
.acc-bn.bad { background: rgba(255, 106, 92, .12); border-color: var(--danger); }
.acc-bn > span:first-child { flex: 1 1 320px; min-width: 0; }
.acc-act { display: flex; gap: 8px; align-items: center; }
.d-navh { margin: 14px 10px 4px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.a-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 8px; }
.a-stats3 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-bottom: 16px; }
.a-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.a-stat:hover { border-color: var(--accent); }
.a-stat b { font-family: var(--font-disp); font-size: 34px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.a-stat span { color: var(--muted); font-weight: 600; font-size: 14px; }
.a-stat small { color: var(--muted); font-size: 12px; }
.a-tw { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.a-t { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.a-t th { text-align: left; padding: 10px 12px; color: var(--muted); font-weight: 600; font-size: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.a-t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.a-t tr:last-child td { border-bottom: 0; }
.a-t small { display: block; color: var(--muted); font-size: 12px; }
.a-t td small { margin-top: 2px; }
.a-act { white-space: nowrap; display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 0; }
.a-act .btn { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.bd { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid transparent; white-space: nowrap; }
.b-green { background: rgba(47, 158, 91, .16); color: #4fd08a; border-color: rgba(47, 158, 91, .4); }
.b-blue { background: rgba(45, 127, 249, .16); color: #6aa8ff; border-color: rgba(45, 127, 249, .4); }
.b-red { background: rgba(255, 106, 92, .14); color: #ff8a7a; border-color: rgba(255, 106, 92, .4); }
.b-amber { background: rgba(240, 165, 58, .16); color: #f0b45a; border-color: rgba(240, 165, 58, .4); }
.b-grey { background: rgba(155, 175, 163, .14); color: var(--muted); border-color: var(--line); }
#dash.lt .b-green { color: #17794a; } #dash.lt .b-blue { color: #1d5fc4; } #dash.lt .b-red { color: #b02f22; } #dash.lt .b-amber { color: #8a5200; }
.a-pills { margin-bottom: 14px; }
.a-err { color: var(--danger); font-weight: 600; }
.a-login { max-width: 420px; }
.a-h3 { margin: 0 0 10px; font-size: 18px; }
.a-chk { flex-direction: row !important; align-items: center; gap: 8px !important; margin: 10px 0; }
.a-chk input { width: auto; }
.a-plist { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
#dlgBack .ct-form select, #dlgBack .ct-form input[type=date], #dlgBack .ct-form input[type=number] { width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 8px 10px; color: var(--text); font-weight: 500; }
