/* Creator Clothes - back office of the store generator */
@font-face { font-family: "Inter"; src: url("/fonts/Inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Noto Sans Thai"; src: url("/fonts/NotoSansThai.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f4f5fa;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --ink: #141526;
  --ink-2: #33364a;
  --muted: #6b6f85;
  --line: #e5e7ef;
  --line-2: #eef0f6;
  --pr: #5b4cf0;
  --pr-ink: #ffffff;
  --pr-soft: #eeecff;
  --ac: #ff4f8b;
  --ok: #12a865;
  --ok-soft: #e3f7ee;
  --warn: #e98a00;
  --warn-soft: #fff3df;
  --bad: #e5484d;
  --bad-soft: #ffeaea;
  --info: #2e7cf6;
  --info-soft: #e7f0ff;
  --grad: linear-gradient(120deg, #5b4cf0 0%, #a12bd9 55%, #ff4f8b 100%);
  --side: #0f1022;
  --side-2: #1a1c33;
  --side-ink: #c9cbe0;
  --r: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 21, 38, .04), 0 4px 16px rgba(20, 21, 38, .05);
  --shadow-lg: 0 12px 40px rgba(20, 21, 38, .12);
  --font: "Inter", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0d18;
    --surface: #15172a;
    --surface-2: #1b1d33;
    --ink: #eceef8;
    --ink-2: #c9ccdd;
    --muted: #8e92ab;
    --line: #272a44;
    --line-2: #20223a;
    --pr: #7d70ff;
    --pr-soft: #25234a;
    --ok-soft: #0f2d22;
    --warn-soft: #33270f;
    --bad-soft: #3a1619;
    --info-soft: #132443;
    --side: #090a14;
    --side-2: #15172a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--font); }
body.lang-th { line-height: 1.65; }
a { color: var(--pr); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: .9em; }
small, .small { font-size: .86rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 18px; }
[hidden] { display: none !important; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ok-txt { color: var(--ok); font-weight: 600; }
.bad-txt { color: var(--bad); font-weight: 600; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; padding: 18px 14px; gap: 14px; z-index: 30; }
.side-brand { display: flex; align-items: center; gap: 11px; color: #fff; padding: 4px 6px 8px; text-decoration: none !important; }
.side-brand b { font-weight: 800; }
.side-brand > span:last-child { font-size: 1.08rem; line-height: 1.15; }
.side-brand small { display: block; font-size: .74rem; color: #9a9dbb; font-weight: 400; margin-top: 2px; }
.logo { width: 38px; height: 38px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(161, 43, 217, .45); }
.logo .i { width: 22px; height: 22px; color: #fff; }
.side-cta { justify-content: center; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; color: var(--side-ink); font-weight: 500; text-decoration: none; transition: background .15s, color .15s; }
.nav a:hover { background: var(--side-2); color: #fff; }
.nav a.on { background: rgba(125, 112, 255, .18); color: #fff; box-shadow: inset 3px 0 0 #8b7fff; }
.nav a em { margin-left: auto; font-style: normal; font-size: .72rem; background: var(--side-2); color: #b9bcda; padding: 1px 7px; border-radius: 99px; }
.nav a em.live { background: var(--ac); color: #fff; animation: pulse 1.6s infinite; }
.nav-h { margin: 14px 11px 4px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #6f7293; }
.side-foot { margin-top: auto; font-size: .76rem; color: #6f7293; padding: 6px 11px; }
.scrim { display: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px 28px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-2); }
.top h1 { font-size: 1.12rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top .menu-btn { display: none; }
.lang { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.lang a { padding: 4px 12px; border-radius: 99px; font-size: .82rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.lang a.on { background: var(--ink); color: var(--surface); }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.pill-live { color: var(--pr); border-color: color-mix(in srgb, var(--pr) 35%, transparent); text-decoration: none !important; }
.pill-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ac); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 3px 10px 3px 3px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); }
.usermenu summary::-webkit-details-marker { display: none; }
.who { display: flex; flex-direction: column; line-height: 1.15; }
.who b { font-size: .85rem; }
.who small { font-size: .72rem; color: var(--muted); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: .78rem; font-weight: 700; flex: none; }
.avatar-sm { width: 30px; height: 30px; }
.usermenu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 8px; z-index: 40; }
.usermenu-pop p { padding: 6px 10px 8px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.usermenu-pop a, .usermenu-pop button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink); font: inherit; background: none; border: 0; cursor: pointer; text-decoration: none; }
.usermenu-pop a:hover, .usermenu-pop button:hover { background: var(--surface-2); }
.usermenu-pop form { margin: 0; }

.page { padding: 26px 28px 60px; max-width: 1360px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.page.narrow { max-width: 920px; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.page-h h2 { font-size: 1.6rem; font-weight: 800; }
.page-h h2 small { font-size: 1rem; font-weight: 500; }
.page-h p { margin-top: 4px; max-width: 680px; }
.page-h .no { color: var(--pr); }
.page-h-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .86rem; margin-bottom: 8px; }
.stack { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cols-wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px 22px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-h h3, .card-t { font-size: 1rem; font-weight: 700; }
.card-t { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.card-t .i { color: var(--pr); }
.link { background: none; border: 0; padding: 0; color: var(--pr); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(255, 255, 255, .16); padding: 5px 12px; border-radius: 99px; }
.eyebrow-sm { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pr); margin-bottom: 4px; }
.lead { font-size: 1.05rem; font-weight: 500; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font: 600 .92rem/1 var(--font); cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: transform .12s, box-shadow .15s, background .15s, opacity .15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--ink); color: var(--surface); }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(20, 21, 38, .2); }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 6px 20px rgba(161, 43, 217, .3); }
.btn-grad:hover { box-shadow: 0 10px 28px rgba(161, 43, 217, .42); }
.btn-light { background: #fff; color: #141526; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--pr) 45%, var(--line)); color: var(--pr); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-link-danger { background: none; color: var(--bad); }
.btn-sm { height: 34px; padding: 0 12px; font-size: .85rem; border-radius: 9px; }
.btn-xs { height: 28px; padding: 0 9px; font-size: .78rem; border-radius: 7px; }
.btn-xs .i { width: 15px; height: 15px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-row form { margin: 0; }
.btn-row.center { justify-content: center; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; text-decoration: none !important; }
.icon-btn:hover { color: var(--pr); border-color: color-mix(in srgb, var(--pr) 40%, var(--line)); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: .88rem; font-weight: 600; color: var(--ink-2); min-width: 0; }
.field > span { font-weight: 600; }
.field-inline { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.field-inline input { max-width: 110px; }
.field-compact { margin: 0; }
.hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
input, select, textarea { font: 400 .95rem/1.4 var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; width: 100%; min-width: 0; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pr); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pr) 18%, transparent); }
input[type=checkbox], input[type=radio] { width: auto; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; align-items: end; }
.span2 { grid-column: span 2; }
.lbl { font-size: .82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.check { display: flex; align-items: center; gap: 9px; font-size: .9rem; margin: 8px 0; cursor: pointer; }
.check input { accent-color: var(--pr); width: 17px; height: 17px; }
.radios { display: flex; gap: 10px; flex-wrap: wrap; }
.radio { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; }
.radio input { accent-color: var(--pr); }
.radio small { font-weight: 400; color: var(--muted); }
.radio:has(input:checked) { border-color: var(--pr); background: var(--pr-soft); }
.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; margin: 6px 0; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch > i { width: 40px; height: 23px; border-radius: 99px; background: var(--line); position: relative; flex: none; transition: background .2s; margin-top: 1px; }
.switch > i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked + i { background: var(--pr); }
.switch input:checked + i::after { transform: translateX(17px); }
.switch input:focus-visible + i { box-shadow: 0 0 0 3px color-mix(in srgb, var(--pr) 25%, transparent); }
.switch span { display: flex; flex-direction: column; }
.switch b { font-weight: 600; font-size: .93rem; }
.switch small { color: var(--muted); }
.switch-field { margin-bottom: 14px; align-self: center; }
.switch-sm > i { width: 32px; height: 19px; }
.switch-sm > i::after { width: 13px; height: 13px; }
.switch-sm input:checked + i::after { transform: translateX(13px); }
.switch-sm span { font-size: .8rem; }
details.more { margin-top: 2px; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--pr); margin-bottom: 12px; font-size: .9rem; }
.search { position: relative; display: block; min-width: 220px; }
.search .i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 36px; }

/* ---------- flash, chips, status ---------- */
.flash { display: flex; align-items: center; gap: 10px; margin: 18px 28px 0; padding: 12px 14px; border-radius: var(--r-sm); font-weight: 500; border: 1px solid transparent; }
.flash .icon-btn { margin-left: auto; width: 28px; height: 28px; background: transparent; border: 0; }
.flash-ok { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.flash-error { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.flash-info { background: var(--info-soft); color: var(--info); }
.login-card .flash { margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-size: .78rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.chip.mono { font-family: var(--mono); }
.chip-btn { cursor: pointer; font: 600 .85rem var(--font); padding: 5px 13px; }
.chip-btn:hover, .chip-btn.on { border-color: var(--pr); color: var(--pr); background: var(--pr-soft); }
.chip-star { background: var(--warn-soft); color: var(--warn); border-color: transparent; margin-left: auto; }
.chip-star .i { width: 14px; height: 14px; }
.chip-off { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.st { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 99px; font-size: .78rem; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.st .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-READY { background: var(--info-soft); color: var(--info); }
.st-DEPLOYING, .st-RUNNING.st-job, .st-QUEUED { background: var(--warn-soft); color: var(--warn); }
.st-DEPLOYING .dot, .st-QUEUED .dot { animation: pulse 1.2s infinite; }
.st-RUNNING { background: var(--ok-soft); color: var(--ok); }
.st-SUCCESS { background: var(--ok-soft); color: var(--ok); }
.st-STOPPED { background: var(--surface-2); color: var(--muted); }
.st-FAILED { background: var(--bad-soft); color: var(--bad); }
.sw-dot { width: 12px; height: 12px; border-radius: 4px; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.swatches { display: inline-flex; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); flex: none; }
.swatches i { width: 14px; height: 14px; display: block; }

/* ---------- dashboard ---------- */
.hero-create { position: relative; overflow: hidden; border-radius: 20px; padding: 32px 34px; color: #fff; background: var(--grad); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; box-shadow: 0 18px 50px rgba(91, 76, 240, .28); }
.hero-create::after { content: ""; position: absolute; inset: auto -80px -120px auto; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%); pointer-events: none; }
.hero-copy h2 { font-size: 2rem; font-weight: 800; margin: 14px 0 10px; letter-spacing: -.02em; }
.hero-copy > p { opacity: .9; max-width: 560px; }
.quick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; background: rgba(255, 255, 255, .14); padding: 10px; border-radius: 16px; backdrop-filter: blur(6px); width: fit-content; max-width: 100%; }
.quick-lbl { font-weight: 600; font-size: .92rem; margin-right: 4px; }
.quick .btn-grad { background: #141526; box-shadow: none; }
.hero-note { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: .86rem; opacity: .92; }
.hero-note a { color: #fff; text-decoration: underline; }
.hero-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-content: center; transform: rotate(-4deg) translateX(10px); }
.hero-mosaic .thumb { box-shadow: 0 10px 30px rgba(20, 0, 60, .35); border: 2px solid rgba(255, 255, 255, .5); }
.hero-mosaic .thumb:nth-child(2n) { transform: translateY(14px); }
.stepper { display: inline-flex; align-items: center; background: #fff; border-radius: 12px; padding: 3px; gap: 2px; border: 1px solid var(--line); }
.stepper .icon-btn { border: 0; width: 34px; height: 34px; color: #141526; background: transparent; }
.stepper input { width: 58px; text-align: center; border: 0; font-size: 1.15rem; font-weight: 800; padding: 4px 0; background: transparent; color: #141526; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { box-shadow: none; }
.stepper-lg .icon-btn { width: 46px; height: 46px; }
.stepper-lg input { width: 84px; font-size: 1.7rem; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 14px; color: var(--ink); text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.kpi-ico { grid-row: span 3; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.kpi-ico .i { width: 22px; height: 22px; }
.k1 { background: var(--pr-soft); color: var(--pr); }
.k2 { background: var(--info-soft); color: var(--info); }
.k3 { background: var(--ok-soft); color: var(--ok); }
.k4 { background: var(--warn-soft); color: var(--warn); }
.kpi-v { font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.kpi-l { font-weight: 600; color: var(--ink-2); font-size: .9rem; }
.kpi-s { font-size: .8rem; color: var(--muted); }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-top: 1px solid var(--line-2); }
.plist li:first-child { border-top: 0; }
.plist-tight li { padding: 8px 0; }
.plist-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: var(--ink); text-decoration: none !important; }
.plist-main:hover b { color: var(--pr); }
.plist-name { display: flex; flex-direction: column; min-width: 0; }
.plist-name b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plist-name small { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--pr-soft); color: var(--pr); flex: none; }
.bars { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bars a { display: grid; grid-template-columns: minmax(0, 150px) 1fr 28px; align-items: center; gap: 12px; color: var(--ink); text-decoration: none !important; font-size: .88rem; }
.bars-l { display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.bars-track { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bars-track i { display: block; height: 100%; border-radius: 99px; min-width: 4px; }
.bars-v { text-align: right; font-weight: 700; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 10px; color: var(--muted); }
.empty-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); color: var(--pr); margin-bottom: 6px; }
.empty-ico .i { width: 26px; height: 26px; }
.empty b { color: var(--ink); }

/* ---------- template pictures ---------- */
.thumb { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--bg); isolation: isolate; }
.thumb > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.thumb-no { position: absolute; left: 8px; top: 8px; background: rgba(15, 16, 34, .78); color: #fff; font: 700 .7rem/1 var(--font); padding: 4px 6px; border-radius: 6px; z-index: 2; }
.hero-mosaic .thumb-no, .login-mosaic .thumb-no { display: none; }
.mock { position: absolute; inset: 0; background: var(--bg); display: flex; flex-direction: column; color: var(--ink); }
.mock i { display: block; }
.m-ann { height: 5%; background: var(--ink); opacity: .9; }
.m-top { height: 12%; display: flex; align-items: center; gap: 6%; padding: 0 5%; background: var(--sf); border-bottom: 1px solid var(--ln); }
.m-logo { width: 16%; height: 30%; background: var(--ink); border-radius: 2px; }
.m-nav { display: flex; gap: 4%; flex: 1; }
.m-nav i { height: 5px; width: 13%; border-radius: 3px; background: var(--mu); opacity: .55; }
.m-ico { display: flex; gap: 6px; }
.m-ico i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--ink); }
.m-hero { height: 52%; display: flex; position: relative; background: var(--sf2); }
.m-copy { width: 48%; padding: 6% 5%; display: flex; flex-direction: column; justify-content: center; gap: 7%; z-index: 1; }
.m-h1 { height: 11%; width: 92%; background: var(--ink); border-radius: 2px; }
.m-h2 { height: 11%; width: 64%; background: var(--ink); border-radius: 2px; }
.m-p { height: 5%; width: 78%; background: var(--mu); opacity: .5; border-radius: 2px; }
.m-btn { height: 14%; width: 42%; background: var(--pr); border-radius: var(--r); margin-top: 4%; }
.m-art { flex: 1; position: relative; background: linear-gradient(135deg, var(--pr), var(--ac)); overflow: hidden; }
.m-art i { position: absolute; border-radius: 50% 50% 8% 8%; background: rgba(255, 255, 255, .5); }
.m-art i:nth-child(1) { width: 26%; height: 62%; left: 14%; bottom: 0; }
.m-art i:nth-child(2) { width: 30%; height: 76%; left: 42%; bottom: 0; background: rgba(255, 255, 255, .72); }
.m-art i:nth-child(3) { width: 22%; height: 50%; left: 72%; bottom: 0; }
.m-row { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4%; padding: 3.5% 5%; background: var(--bg); }
.m-card { display: flex; flex-direction: column; gap: 6%; }
.m-img { flex: 1; background: var(--sf2); border-radius: calc(var(--r) / 2); border: 1px solid var(--ln); }
.m-t { height: 6%; width: 80%; background: var(--ink); opacity: .7; border-radius: 2px; }
.m-pr { height: 6%; width: 40%; background: var(--pr); border-radius: 2px; }
.mh-centered .m-top { justify-content: center; flex-wrap: wrap; }
.mh-centered .m-nav { flex: none; width: 50%; justify-content: center; }
.mh-centered .m-ico { display: none; }
.mh-mega .m-top, .mh-bold .m-top { background: var(--ink); }
.mh-mega .m-logo, .mh-bold .m-logo { background: var(--pr); }
.mh-mega .m-nav i, .mh-bold .m-nav i { background: var(--sf); }
.mh-mega .m-ico i, .mh-bold .m-ico i { border-color: var(--sf); }
.mh-split .m-nav { order: -1; }
.mh-minimal .m-ann { display: none; }
.mhero-fullbleed .m-copy { position: absolute; inset: 0; width: 100%; align-items: center; }
.mhero-fullbleed .m-copy i { background: #fff; }
.mhero-fullbleed .m-btn { background: var(--sf); }
.mhero-fullbleed .m-art { position: absolute; inset: 0; }
.mhero-editorial .m-hero { flex-direction: row-reverse; background: var(--sf); }
.mhero-editorial .m-art { flex: none; width: 46%; margin: 4%; border-radius: var(--r); }
.mhero-mosaic .m-art { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--sf); padding: 4px; }
.mhero-mosaic .m-art i { position: static; border-radius: calc(var(--r) / 2); width: auto; height: auto; background: linear-gradient(135deg, var(--pr), var(--ac)); }
.mhero-mosaic .m-art i:nth-child(1) { grid-row: span 2; }
.mhero-marquee .m-hero { flex-direction: column; background: var(--ink); }
.mhero-marquee .m-copy { width: 100%; padding: 5% 5% 2%; }
.mhero-marquee .m-copy i { background: var(--pr); }
.mhero-marquee .m-h1 { width: 100%; height: 20%; }
.mhero-marquee .m-art { height: 30%; flex: none; }
.mhero-slider .m-hero::after { content: ""; position: absolute; bottom: 6%; left: 50%; width: 22px; height: 4px; transform: translateX(-50%); border-radius: 99px; background: var(--sf); box-shadow: -10px 0 0 var(--mu), 10px 0 0 var(--mu); }
.mc-overlay .m-card { position: relative; }
.mc-overlay .m-t, .mc-overlay .m-pr { position: absolute; left: 8%; }
.mc-overlay .m-t { bottom: 18%; background: #fff; }
.mc-overlay .m-pr { bottom: 8%; }
.mc-framed .m-card { border: 1px solid var(--ink); padding: 4%; }
.mc-soft .m-img { border-radius: 30% 30% 12% 12%; border: 0; }
.mc-compact .m-row { grid-template-columns: repeat(5, 1fr); }
.mc-compact .m-row .m-card:nth-child(n+4) { display: flex; }
.mdark .m-row { background: var(--bg); }

/* ---------- templates ---------- */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.tpl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.tpl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tpl-card-img { display: block; padding: 10px 10px 0; }
.tpl-card-b { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tpl-card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tpl-card-h h3 { font-size: 1.02rem; }
.tpl-card-h h3 a { color: var(--ink); }
.tpl-card-f { margin-top: auto; display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--line-2); }
.used { color: var(--pr); font-weight: 700; }
.empty-filter { text-align: center; padding: 30px; }
.tpl-detail { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 22px; align-items: start; }
.tpl-shot { padding: 0; overflow: hidden; }
.tpl-shot .thumb { border-radius: 0; aspect-ratio: 16 / 10; }
.browser { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.browser i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser i:nth-child(1) { background: #ff6159; } .browser i:nth-child(2) { background: #ffbd2e; } .browser i:nth-child(3) { background: #28c941; }
.browser span { margin-left: 12px; flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 3px 12px; font-size: .78rem; color: var(--muted); }
.palette { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pal { display: flex; align-items: center; gap: 10px; }
.pal i { width: 34px; height: 34px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); flex: none; }
.pal span { display: flex; flex-direction: column; line-height: 1.2; }
.pal b { font-size: .82rem; }
.pal code { font-size: .76rem; color: var(--muted); }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 16px; margin: 0; font-size: .9rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.dl-sm { font-size: .84rem; gap: 5px 12px; }
.dl-2 { grid-template-columns: minmax(120px, auto) 1fr; }
.ticks { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 6px; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.steps-sm { margin: 0 0 8px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.steps-sm li::marker { color: var(--pr); font-weight: 700; }

/* ---------- create ---------- */
.create-page form { display: flex; flex-direction: column; gap: 22px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: var(--surface-2); padding: 6px; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 20px; }
.seg button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; text-align: left; font: inherit; color: var(--ink-2); }
.seg button .i { width: 24px; height: 24px; color: var(--muted); }
.seg button span { display: flex; flex-direction: column; }
.seg button b { font-size: .98rem; }
.seg button small { color: var(--muted); }
.seg button.on { background: var(--surface); box-shadow: var(--shadow); color: var(--ink); }
.seg button.on .i { color: var(--pr); }
.random-row { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: start; }
.quick-counts { display: flex; gap: 6px; margin-top: 12px; }
.random-opts { display: flex; flex-direction: column; gap: 14px; padding-top: 22px; }
.guarantee { display: flex; gap: 10px; align-items: flex-start; background: var(--ok-soft); color: var(--ink-2); padding: 12px 14px; border-radius: 12px; font-size: .9rem; }
.guarantee .i { color: var(--ok); margin-top: 2px; }
.draw { margin-top: 22px; border-top: 1px dashed var(--line); padding-top: 18px; }
.draw-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.draw-h .lbl { margin: 0; }
.draw-list { display: flex; flex-wrap: wrap; gap: 8px; min-height: 40px; align-items: center; margin-bottom: 8px; }
.draw-item { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-size: .86rem; font-weight: 600; animation: pop .3s ease both; }
.draw-item em { font-style: normal; display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: .74rem; }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.pick-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.pick-h .lbl { margin: 0; }
.pick-tools { display: flex; gap: 14px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.pick { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 8px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.pick:hover { border-color: color-mix(in srgb, var(--pr) 45%, var(--line)); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick-b { display: flex; flex-direction: column; padding: 0 4px 4px; gap: 2px; }
.pick-b b { font-size: .92rem; }
.pick-b small { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.pick-f { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.pick-f em { font-style: normal; font-size: .72rem; color: var(--pr); font-weight: 700; }
.pick-check { position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .9); border: 2px solid var(--line); display: grid; place-items: center; color: transparent; z-index: 3; transition: all .15s; }
.pick-check .i { width: 15px; height: 15px; stroke-width: 3; }
.pick:has(input:checked) { border-color: var(--pr); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pr) 14%, transparent); }
.pick:has(input:checked) .pick-check { background: var(--pr); border-color: var(--pr); color: #fff; }
.pick:has(input:focus-visible) { outline: 2px solid var(--pr); outline-offset: 2px; }
.actionbar { position: sticky; bottom: 14px; z-index: 10; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow-lg); }
.actionbar-sum { display: flex; align-items: center; gap: 12px; }
.actionbar-sum .big { font-size: 2.1rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; min-width: 40px; text-align: center; }
.actionbar-sum span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.actionbar-sum small { color: var(--muted); }
.actionbar-deploy { margin-left: auto; min-width: 220px; }
.actionbar-deploy .field { flex-direction: row; align-items: center; gap: 8px; white-space: nowrap; }
.actionbar-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- stores ---------- */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.store-card { padding: 10px; display: flex; flex-direction: column; gap: 0; }
.store-card-b { padding: 14px 8px 6px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.store-card-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.store-card-h h3 { font-size: 1.05rem; }
.store-card-h h3 a { color: var(--ink); }
.store-card .btn-row { margin-top: auto; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 16px; }
.filters select { width: auto; min-width: 200px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9px; color: var(--ink-2); font-size: .86rem; font-weight: 600; text-decoration: none !important; }
.tabs a em { font-style: normal; font-size: .74rem; background: var(--surface-2); padding: 0 7px; border-radius: 99px; color: var(--muted); }
.tabs a.on { background: var(--ink); color: var(--surface); }
.tabs a.on em { background: rgba(255, 255, 255, .2); color: inherit; }
.table-wrap { padding: 0; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--surface-2); }
.row-link { cursor: pointer; }
.cell-main { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none !important; }
.cell-main > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.cell-main small { font-size: .78rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 22px; align-items: start; }
.proj-hero { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 20px; align-items: center; }
.proj-hero .chips { margin-top: 12px; }
.secret { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.actions form { margin: 0; }
.actions .btn { width: 100%; }
.deploy-card .field { margin-bottom: 12px; }
.deploy-card .btn-block + p { margin-top: 10px; }
.danger-zone { margin-top: 14px; border: 1px solid color-mix(in srgb, var(--bad) 30%, var(--line)); border-radius: 12px; padding: 10px 14px; }
.danger-zone summary { cursor: pointer; display: flex; align-items: center; gap: 8px; color: var(--bad); font-weight: 600; font-size: .9rem; list-style: none; }
.danger-zone summary::-webkit-details-marker { display: none; }
.danger-zone form { margin-top: 8px; }
.danger-zone .check { font-size: .86rem; }

/* ---------- jobs ---------- */
.console { padding: 0; overflow: hidden; background: #0d0f1c; border-color: #22253d; }
.console-h { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #161829; color: #9a9dbb; font-size: .82rem; font-weight: 600; }
.console-h > i { width: 10px; height: 10px; border-radius: 50%; background: #3a3d58; }
.console-h > i:nth-child(1) { background: #ff6159; } .console-h > i:nth-child(2) { background: #ffbd2e; } .console-h > i:nth-child(3) { background: #28c941; }
.console-h > span { margin-left: 10px; }
.console-h .switch { margin: 0 0 0 auto; color: #9a9dbb; }
.console-h .switch > i { background: #3a3d58; }
.log { margin: 0; padding: 16px 18px; min-height: 360px; max-height: 68vh; overflow: auto; color: #d6d8ea; font: 400 .84rem/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; }
.log .l-step { color: #a99fff; font-weight: 700; }
.log .l-ok { color: #4ade80; }
.log .l-warn { color: #fbbf24; }
.log .l-bad { color: #ff7b7f; font-weight: 600; }
.job-done { display: flex; align-items: center; gap: 16px; border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); background: var(--ok-soft); }
.job-done > div { flex: 1; }
.job-done .kpi-ico { grid-row: auto; }

/* ---------- servers, users, settings ---------- */
.target-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.target { display: flex; flex-direction: column; gap: 14px; position: relative; }
.target .chip-star { position: absolute; top: 14px; right: 14px; margin: 0; }
.target.is-default .target-h { padding-right: 104px; }
.target-h > div { min-width: 0; }
.target-h .mono { overflow-wrap: anywhere; }
.target.is-default { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.target-h { display: flex; align-items: center; gap: 12px; }
.target-h .kpi-ico { grid-row: auto; }
.target-h h3 a { color: var(--ink); }
.target .btn-row { margin-top: auto; }
.tip { background: var(--surface-2); }
.pop { position: relative; display: inline-block; }
.pop summary { list-style: none; }
.pop summary::-webkit-details-marker { display: none; }
.pop-body { position: absolute; right: 0; top: calc(100% + 6px); width: 280px; z-index: 15; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 14px; text-align: left; }
.audit { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow: auto; }
.audit li { display: grid; grid-template-columns: 1fr; gap: 1px; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: .86rem; }
.audit li:first-child { border-top: 0; }
.help h2 { font-size: 1.35rem; margin-bottom: 14px; }
.help h3 { margin-bottom: 12px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding-left: 50px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps li p { color: var(--ink-2); margin-top: 2px; }

/* ---------- sign-in & error ---------- */
.login-page { background: var(--bg); }
.login { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); min-height: 100vh; }
.login-art { background: var(--side); color: #fff; position: relative; overflow: hidden; display: flex; }
.login-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 500px at 0% 0%, rgba(91, 76, 240, .55), transparent 60%), radial-gradient(700px 500px at 100% 100%, rgba(255, 79, 139, .4), transparent 60%); }
.login-art-in { position: relative; padding: 44px 52px; display: flex; flex-direction: column; gap: 20px; width: 100%; }
.side-brand.light { padding: 0; }
.login-art h1 { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin-top: 24px; }
.login-art p { color: #c7c9e2; max-width: 520px; font-size: 1.05rem; }
.login-points { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 560px; }
.login-points li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; }
.login-points .i { color: #b4abff; }
.login-mosaic { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; transform: perspective(900px) rotateX(8deg) rotate(-3deg); opacity: .92; }
.login-mosaic .thumb { border: 2px solid rgba(255, 255, 255, .25); }
.login-form { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; position: relative; }
.lang-float { position: absolute; top: 20px; right: 24px; }
.login-card { width: 100%; max-width: 400px; padding: 32px; }
.login-card h2 { font-size: 1.6rem; font-weight: 800; }
.login-card > p { margin: 6px 0 22px; }
.demo { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 8px; }
.login-foot { margin-top: 20px; }
.error-box { max-width: 480px; margin: 12vh auto; text-align: center; padding: 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.error-code { font-size: 4rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: 1fr 1fr; }
  .hero-create { grid-template-columns: 1fr; }
  .hero-mosaic { display: none; }
  .detail-grid, .tpl-detail { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  body.side-open .side { transform: none; }
  body.side-open .scrim { display: block; position: fixed; inset: 0; background: rgba(10, 10, 25, .45); z-index: 25; }
  .top .menu-btn { display: inline-grid; }
  .top { padding: 10px 16px; }
  .who { display: none; }
  .usermenu summary { padding: 3px; }
  .page { padding: 18px 16px 50px; }
  .flash { margin: 14px 16px 0; }
  .cols-2, .cols-3, .cols-wide { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .random-row { grid-template-columns: 1fr; gap: 10px; }
  .random-opts { padding-top: 0; }
  .actionbar-deploy { margin-left: 0; width: 100%; }
  .actionbar-btns { width: 100%; }
  .actionbar-btns .btn { flex: 1; }
  .tabs { margin-left: 0; }
}
@media (max-width: 640px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi { padding: 14px; column-gap: 10px; }
  .kpi-ico { width: 36px; height: 36px; }
  .kpi-v { font-size: 1.35rem; }
  .hero-create { padding: 24px 20px; }
  .hero-copy h2 { font-size: 1.5rem; }
  .quick { width: 100%; }
  .quick .btn { flex: 1; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .seg { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .proj-hero { grid-template-columns: 1fr; }
  .page-h h2 { font-size: 1.35rem; }
  .pill-live span { display: none; }
  .top h1 { font-size: 1rem; }
  .pick-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pick-b small { display: none; }
  .filters select, .search { min-width: 0; width: 100%; }
  .target-grid, .store-grid, .tpl-grid { grid-template-columns: 1fr; }
  .bars a { grid-template-columns: minmax(0, 110px) 1fr 24px; }
}
