/* Netvise — design tokens and components, from "App Revenue Platform – UI Design". */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20C0, U+A720-A7FF; }

:root {
  color-scheme: light;
  --bg: #F7F7F5; --panel: #FFFFFF; --side: #FBFBFA; --line: #E7E6E2; --line2: #F0EFEC; --line3: #CFCEC8;
  --fg: #16161A; --fg2: #55555E; --fg3: #6E6E77; --hover: #F2F1EE; --sub: #F5F4F1;
  --acc: #4453DB; --accSoft: #EEF0FD; --accFg: #2E3BB8;
  --pos: #1A7F4B; --posSoft: #E6F4EC; --neg: #B93A2C; --negSoft: #FBEAE8; --warn: #8A5300; --warnSoft: #FDF1DC;
  --s1: #4453DB; --s2: #17A38F; --s3: #E3A13A; --s4: #A060E0; --s5: #A3A3AB; --s6: #B45309; --inv: #FFFFFF; --grid: #EFEEEA;
  --costc: #C2410C;
  --shadow: 0 8px 28px rgba(22, 22, 26, 0.12), 0 1px 3px rgba(22, 22, 26, 0.08);
  --sans: "Geist", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0E0F12; --panel: #16171B; --side: #121316; --line: #25262C; --line2: #1D1E23; --line3: #3C3D45;
    --fg: #EDEDF0; --fg2: #A6A6B0; --fg3: #8E8E98; --hover: #1D1E24; --sub: #1B1C21;
    --acc: #7C88FF; --accSoft: #1F2340; --accFg: #AAB2FF;
    --pos: #4CC38A; --posSoft: #132A1F; --neg: #F07A6B; --negSoft: #35191A; --warn: #E8B458; --warnSoft: #2E2412;
    --s1: #7C88FF; --s2: #34C3AE; --s3: #F0B650; --s4: #B886F2; --s5: #70707A; --s6: #D9772E; --inv: #0E0F12; --grid: #212228;
    --costc: #F08A5D; --shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.4);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E0F12; --panel: #16171B; --side: #121316; --line: #25262C; --line2: #1D1E23; --line3: #3C3D45;
  --fg: #EDEDF0; --fg2: #A6A6B0; --fg3: #8E8E98; --hover: #1D1E24; --sub: #1B1C21;
  --acc: #7C88FF; --accSoft: #1F2340; --accFg: #AAB2FF;
  --pos: #4CC38A; --posSoft: #132A1F; --neg: #F07A6B; --negSoft: #35191A; --warn: #E8B458; --warnSoft: #2E2412;
  --s1: #7C88FF; --s2: #34C3AE; --s3: #F0B650; --s4: #B886F2; --s5: #70707A; --s6: #D9772E; --inv: #0E0F12; --grid: #212228;
  --costc: #F08A5D; --shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--fg); font: 13.5px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
h2 { margin: 0; font-size: 15px; font-weight: 600; }
h3 { margin: 0; font-size: 13.5px; font-weight: 600; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.mono { font-family: var(--mono); }
.num, .tab { font-variant-numeric: tabular-nums; }
.muted { color: var(--fg2); }
.faint { color: var(--fg3); }
.sm { font-size: 12.5px; }
.xs { font-size: 11.5px; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.row { display: flex; align-items: center; gap: 10px; }
.col { display: flex; flex-direction: column; gap: 6px; }
.grow { flex: 1 1 auto; min-width: 0; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv:hover { background: var(--hover); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- app shell ---------- */
.app { display: flex; min-height: 100vh; }
.side { width: 232px; flex-shrink: 0; background: var(--side); border-right: 1px solid var(--line); display: flex;
  flex-direction: column; gap: 18px; padding: 14px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brandrow { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.navlist { display: flex; flex-direction: column; gap: 1px; }
.navlink { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 7px; font-size: 13.5px;
  text-decoration: none; color: var(--fg2); border: 0; background: transparent; cursor: pointer; width: 100%; text-align: left; }
.navlink:hover { background: var(--hover); color: var(--fg); }
.navlink.on { background: var(--hover); color: var(--fg); font-weight: 600; }
.navlink .count { margin-left: auto; font-size: 11px; font-weight: 500; padding: 1px 7px; border-radius: 999px; background: var(--accSoft); color: var(--accFg); }
.side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 1px; }
.wscard { margin-top: 10px; display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--panel); color: var(--fg); cursor: pointer; text-align: left; }
.wslogo { width: 28px; height: 28px; flex-shrink: 0; border-radius: 7px; background: var(--fg); color: var(--inv); font-size: 12px;
  font-weight: 600; display: flex; align-items: center; justify-content: center; }
.meline { display: flex; align-items: center; gap: 10px; padding: 10px 8px 2px; }
.avatar { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--accSoft); color: var(--accFg);
  font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.avatar.lg { width: 32px; height: 32px; font-size: 12px; }
.app.collapsed .side { width: 64px; padding: 14px 10px; }
.app.collapsed .side .lbl, .app.collapsed .side .count, .app.collapsed .wscard .lbl, .app.collapsed .meline .lbl,
.app.collapsed .brand .lbl, .app.collapsed .wscard svg { display: none; }
.app.collapsed .side .brandrow { flex-direction: column; gap: 8px; }
.app.collapsed .navlink { justify-content: center; padding: 0; }
.app.collapsed .wscard { justify-content: center; padding: 6px; }
.app.collapsed .meline { justify-content: center; padding: 10px 0 2px; }

.maincol { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 56px; flex-shrink: 0; border-bottom: 1px solid var(--line); background: var(--panel); display: flex;
  align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px; position: sticky; top: 0; z-index: 20; }
.search { display: flex; align-items: center; gap: 10px; width: 460px; max-width: 100%; height: 36px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg); color: var(--fg3); cursor: text; }
.search input { flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: transparent; font-size: 13px; color: var(--fg); }
kbd, .kbd { font-family: var(--mono); font-size: 11px; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line); color: var(--fg3); background: var(--panel); }
.topright { display: flex; align-items: center; gap: 12px; }
.syncstat { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--fg2); white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pos); flex-shrink: 0; }
.dot.warn { background: var(--s3); } .dot.neg { background: var(--neg); } .dot.idle { background: var(--line3); }
.dot.spin { background: var(--acc); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.iconbtn { position: relative; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel);
  color: var(--fg2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.iconbtn:hover { background: var(--hover); color: var(--fg); }
.iconbtn .badge-dot { position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.iconbtn.bare { border-color: transparent; background: transparent; width: 30px; height: 30px; color: var(--fg3); }
.menu-btn { display: none; }

.filterbar { display: flex; align-items: center; gap: 8px; padding: 12px 28px; border-bottom: 1px solid var(--line); background: var(--panel); flex-wrap: wrap; }
.fbtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel); color: var(--fg); font-size: 13px; cursor: pointer; white-space: nowrap; text-decoration: none; }
.fbtn:hover { background: var(--hover); }
.fbtn .k { color: var(--fg3); }
.fbtn .v { font-weight: 500; }
.fbtn.set { border-color: var(--accSoft); background: var(--accSoft); color: var(--accFg); }
.fbtn.set .k { color: var(--accFg); opacity: 0.75; }
.fsep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.fbtn .dates { color: var(--fg3); font-family: var(--mono); font-size: 12px; }

.content { flex: 1 1 auto; padding: 24px 28px 40px; display: flex; flex-direction: column; gap: 20px; min-width: 0; transition: opacity .15s; }
.content.loading { opacity: 0.55; pointer-events: none; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.pagehead .col { gap: 6px; }
.crumbs { font-size: 12.5px; color: var(--fg3); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--fg); text-decoration: underline; }
.pagehead p { font-size: 13px; color: var(--fg2); }

/* ---------- surfaces ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card.tight { padding: 16px; gap: 12px; }
.card.flush { padding: 0; gap: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.card-head .col { gap: 4px; }
.card-head p { font-size: 12.5px; color: var(--fg2); }
.card-head a.more, .link { font-size: 12.5px; color: var(--acc); text-decoration: none; font-weight: 500; cursor: pointer; background: none; border: 0; padding: 0; }
.card-head a.more:hover, .link:hover { text-decoration: underline; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.g-main { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.g-side { grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr); }
.g-profile { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); align-items: start; }

.kpi { text-decoration: none; color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
a.kpi:hover { border-color: var(--line3); }
.kpi .lbl { font-size: 12.5px; color: var(--fg2); display: flex; align-items: center; gap: 6px; }
.kpi .val { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi .body { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.kpi .meta { display: flex; align-items: center; gap: 6px; font-size: 12px; flex-wrap: wrap; }
.infoi { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line3); font-size: 9px; display: inline-flex;
  align-items: center; justify-content: center; color: var(--fg3); cursor: help; flex-shrink: 0; font-style: normal; }
.delta { padding: 1px 6px; border-radius: 5px; font-weight: 500; font-size: 12px; white-space: nowrap; }
.delta.up { background: var(--posSoft); color: var(--pos); } .delta.down { background: var(--negSoft); color: var(--neg); }
.delta.flat { background: var(--sub); color: var(--fg2); }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill.warn { color: var(--warn); background: var(--warnSoft); } .pill.pos { color: var(--pos); background: var(--posSoft); }
.pill.neg { color: var(--neg); background: var(--negSoft); } .pill.acc { color: var(--accFg); background: var(--accSoft); }
.pill.muted { color: var(--fg2); background: var(--sub); }
.pill.sm { font-size: 11px; padding: 2px 8px; }
.pill .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sq { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; display: inline-block; }
.abbr { width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px; background: var(--sub); color: var(--fg2); font-size: 11px;
  font-weight: 600; display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); }
.abbr.app { background: var(--accSoft); color: var(--accFg); font-family: var(--sans); }
.abbr.sm { width: 26px; height: 26px; font-size: 10px; border-radius: 6px; }

/* ---------- buttons, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel); color: var(--fg); font-size: 13px; font-weight: 500; cursor: pointer;
  text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--fg); color: var(--inv); border-color: var(--fg); }
.btn.primary:hover { opacity: 0.88; }
.btn.danger { color: var(--neg); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn.lg { height: 40px; padding: 0 18px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }
.btn .spinner { width: 14px; height: 14px; border-width: 2px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--sub); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; color: var(--fg2); font-size: 12.5px; padding: 5px 12px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--panel); color: var(--fg); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.legendbtn { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--panel); color: var(--fg); font-size: 12.5px; cursor: pointer; }
.legendbtn[aria-pressed="false"] { opacity: 0.4; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > .flabel { font-size: 12.5px; font-weight: 500; display: flex; justify-content: space-between; gap: 8px; }
.field > .flabel .opt { color: var(--fg3); font-weight: 400; }
.field .hint { font-size: 12px; color: var(--fg3); }
.input, .select, textarea.input { height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel);
  color: var(--fg); font-size: 13px; width: 100%; outline: none; }
textarea.input { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; font-family: var(--mono); font-size: 12px; }
.input:focus, .select:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--accSoft); }
.input.mono { font-family: var(--mono); font-size: 12.5px; }
.select { appearance: none; padding-right: 30px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%236E6E77' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--acc); }
.toggle { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--line3); border: 0; cursor: pointer; flex-shrink: 0; transition: background .15s; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.toggle[aria-checked="true"] { background: var(--acc); }
.toggle[aria-checked="true"]::after { left: 16px; }
.dropzone { border: 1px dashed var(--line3); border-radius: 10px; background: var(--sub); padding: 14px 16px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; }
.dropzone.over { border-color: var(--acc); background: var(--accSoft); }
.strength { display: flex; gap: 4px; } .strength span { flex: 1; height: 3px; border-radius: 2px; background: var(--line2); }
.strength span.on { background: var(--pos); } .strength.weak span.on { background: var(--neg); } .strength.ok span.on { background: var(--s3); }

/* ---------- tables and bars ---------- */
.tablewrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { font-weight: 500; font-size: 12px; color: var(--fg2); padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.t td { padding: 11px 12px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t .r, table.t th.r { text-align: right; font-variant-numeric: tabular-nums; }
table.t tbody tr.hover:hover, table.t tbody tr.click:hover { background: var(--hover); cursor: pointer; }
table.t tr.sel { background: var(--accSoft); }
table.t tr.total td { font-weight: 600; background: var(--sub); border-top: 1px solid var(--line); }
table.t th button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding: 0; }
table.t td .sub { font-family: var(--mono); font-size: 11.5px; color: var(--fg3); }
.bar { height: 6px; border-radius: 3px; background: var(--line2); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 3px; background: var(--acc); }
.bar.thin { height: 4px; }
.bar.thick { height: 8px; }
.barrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; }
.barrow .bar { grid-column: 1 / -1; }
.listrow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line2); font-size: 13px; }
.listrow:last-child { border-bottom: 0; }
.cc { font-family: var(--mono); font-size: 11px; color: var(--fg3); width: 22px; flex-shrink: 0; }
.mix { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; background: var(--panel); min-width: 80px; }
.mix span { display: block; height: 100%; }

/* ---------- charts ---------- */
.chart { position: relative; width: 100%; }
.chart svg { display: block; overflow: visible; }
.chart .gridl { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart .axisl { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.chart .tick { fill: var(--fg3); font-size: 11px; font-variant-numeric: tabular-nums; font-family: var(--sans); }
.chart .hit { fill: transparent; cursor: crosshair; outline: none; }
.chart .cross { stroke: var(--line3); stroke-width: 1; }
.chart .hl { fill: var(--fg); opacity: 0.05; }
.spark { display: block; flex-shrink: 0; }
.tip { position: fixed; z-index: 80; pointer-events: none; min-width: 180px; max-width: 320px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: var(--shadow); padding: 10px 12px; font-size: 12.5px; }
.tip .tt { font-weight: 600; margin-bottom: 6px; }
.tip .tr { display: flex; align-items: center; gap: 8px; line-height: 1.8; }
.tip .tr .v { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 500; padding-left: 14px; }
.tip .sep { border-top: 1px solid var(--line); margin: 5px 0; }
.tip.text { max-width: 260px; background: var(--fg); color: var(--inv); border-color: var(--fg); font-size: 12px; line-height: 1.45; }

/* tile map and matrix */
.tilemap { display: grid; gap: 4px; }
.tile { aspect-ratio: 1.25; border-radius: 5px; font-family: var(--mono); font-size: 10.5px; display: flex; align-items: center; justify-content: center;
  border: 1px solid transparent; cursor: pointer; color: var(--fg2); background: var(--sub); outline: none; }
.tile:hover, .tile:focus-visible { border-color: var(--fg3); }
.tile.sel { border: 2px solid var(--fg); }
.tile.dark { color: #fff; }
.scale { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg3); }
.scale span.sw { width: 18px; height: 8px; border-radius: 2px; }
table.matrix td.cell { text-align: right; font-variant-numeric: tabular-nums; border: 2px solid var(--panel); border-radius: 6px; padding: 12px 10px; }

/* ---------- overlays ---------- */
.pop { position: fixed; z-index: 60; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  min-width: 200px; max-height: 75vh; overflow: auto; }
.menu { padding: 6px; display: flex; flex-direction: column; gap: 1px; }
.menu button, .menu a { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 10px;
  border-radius: 7px; cursor: pointer; font-size: 13px; text-decoration: none; color: var(--fg); }
.menu button:hover, .menu a:hover, .menu .act { background: var(--hover); }
.menu .chk { margin-left: auto; font-weight: 700; }
.menu .sep { height: 1px; background: var(--line); margin: 4px 0; }
.menu .mhead { font-size: 11.5px; color: var(--fg3); padding: 6px 10px 4px; }
.menu-search { padding: 8px; border-bottom: 1px solid var(--line); }
.backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(14, 15, 18, 0.35); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px; overflow-y: auto; }
.modal { width: min(560px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.modal.wide { width: min(880px, 100%); }
.modal-head { padding: 18px 20px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.toasts { position: fixed; z-index: 90; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--fg); color: var(--inv); border-radius: 9px; padding: 10px 14px; font-size: 13px; box-shadow: var(--shadow); max-width: 90vw; }
.toast .ic { width: 18px; height: 18px; border-radius: 50%; background: var(--pos); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.toast.err .ic { background: var(--neg); }
.toast button { background: none; border: 0; color: var(--inv); text-decoration: underline; cursor: pointer; font-weight: 600; }

/* date picker */
.dp { display: flex; }
.dp-presets { width: 170px; border-right: 1px solid var(--line); padding: 6px; display: flex; flex-direction: column; gap: 1px; }
.dp-presets button { text-align: left; border: 0; background: transparent; padding: 7px 10px; border-radius: 7px; cursor: pointer; font-size: 13px; }
.dp-presets button:hover { background: var(--hover); }
.dp-presets button[aria-pressed="true"] { background: var(--hover); font-weight: 600; }
.dp-main { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.dp-cals { display: flex; gap: 20px; }
.cal { width: 224px; }
.cal .mh { text-align: center; font-weight: 600; font-size: 13px; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; }
.cal .dow, .cal .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal .dow span { text-align: center; font-size: 11px; color: var(--fg3); padding: 4px 0; }
.cal .days button { height: 28px; border: 0; background: transparent; border-radius: 6px; font-size: 12.5px; cursor: pointer; font-variant-numeric: tabular-nums; }
.cal .days button:hover { background: var(--hover); }
.cal .days button.in { background: var(--accSoft); color: var(--accFg); border-radius: 0; }
.cal .days button.edge { background: var(--fg); color: var(--inv); border-radius: 6px; font-weight: 600; }
.cal .days button.future { color: var(--line3); }
.dp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 12px 16px; flex-wrap: wrap; }

/* search palette & notifications */
.palette { width: min(640px, 100%); }
.palette .phead { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.palette .phead input { flex: 1; border: 0; outline: none; background: transparent; font-size: 14px; font-family: var(--mono); }
.palette .sect { padding: 8px 8px 4px; }
.palette .sect h4 { margin: 0; font-size: 11.5px; font-weight: 500; color: var(--fg3); padding: 4px 8px; }
.palette .item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 7px; cursor: pointer; text-decoration: none; }
.palette .item.act { background: var(--hover); }
.palette .pfoot { display: flex; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--fg3); }
.notif { display: flex; gap: 10px; padding: 10px 12px; border-radius: 8px; text-decoration: none; cursor: pointer; }
.notif:hover { background: var(--hover); }
.notif .nic { width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12px; font-weight: 700; }
.notif .unread { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); margin-top: 6px; flex-shrink: 0; }

/* states */
.sk { background: linear-gradient(90deg, var(--line2) 25%, var(--hover) 50%, var(--line2) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 6px; }
@keyframes sk { to { background-position: -200% 0; } }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 36px 20px; }
.empty .eic { width: 40px; height: 40px; border-radius: 10px; background: var(--sub); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--fg2); }
.banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; font-size: 13px; }
.banner.warn { background: var(--warnSoft); color: var(--warn); }
.banner.info { background: var(--accSoft); color: var(--accFg); }
.banner.neg { background: var(--negSoft); color: var(--neg); }
.banner.pos { background: var(--posSoft); color: var(--pos); }
.banner .grow { color: inherit; }
.banner a, .banner button.link { color: inherit; font-weight: 600; text-decoration: underline; }
.errorbox { display: flex; gap: 12px; align-items: flex-start; }
.errorbox .eic { width: 28px; height: 28px; border-radius: 7px; background: var(--negSoft); color: var(--neg); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line2); border-top-color: var(--acc); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; flex-shrink: 0; }
.spinner.lg { width: 26px; height: 26px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.stepcheck { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600;
  border: 1px solid var(--line3); color: var(--fg3); flex-shrink: 0; }
.stepcheck.done { background: var(--posSoft); color: var(--pos); border-color: var(--posSoft); }
.stepcheck.on { background: var(--fg); color: var(--inv); border-color: var(--fg); }

/* ---------- auth & onboarding ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); min-height: 100vh; }
.split .left { background: var(--bg); padding: 40px 80px; display: flex; flex-direction: column; }
.split .right { background: var(--panel); border-left: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.hero { font-size: 44px; line-height: 1.12; font-weight: 600; letter-spacing: -0.03em; margin: 0; }
.authform { width: min(420px, 100%); display: flex; flex-direction: column; gap: 14px; }
.or { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--fg3); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.wiz-top { height: 56px; border-bottom: 1px solid var(--line); background: var(--panel); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; }
.wiz { display: flex; min-height: calc(100vh - 56px); }
.wiz-rail { width: 280px; flex-shrink: 0; background: var(--side); border-right: 1px solid var(--line); padding: 20px 16px; display: flex; flex-direction: column; }
.railstep { display: flex; gap: 12px; padding: 10px; border-radius: 8px; text-decoration: none; }
.railstep.on { background: var(--panel); border: 1px solid var(--line); }
.railstep .t { font-size: 13.5px; font-weight: 500; }
.railstep .s { font-size: 12px; color: var(--fg3); }
.wiz-main { flex: 1; padding: 32px 48px 48px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 14px; cursor: pointer; text-align: left; }
.plan.on { border: 2px solid var(--fg); padding: 21px; }
.plan .price { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.feat { display: flex; gap: 8px; font-size: 13px; } .feat::before { content: "✓"; color: var(--pos); font-weight: 700; }
.task { display: flex; gap: 12px; padding: 12px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; text-align: left; background: transparent; width: 100%; }
.task.on { border-color: var(--fg); background: var(--panel); }
.srcitem { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; background: transparent; width: 100%; text-align: left; }
.srcitem.on { border-color: var(--fg); background: var(--panel); }
.steps-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.steps-h .st { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; color: var(--fg2); }
.steps-h .st.on { background: var(--fg); color: var(--inv); font-weight: 600; }
.steps-h .st.done { background: var(--posSoft); color: var(--pos); }

/* ---------- shared: nav headings, tabs, chips, progress, code ---------- */
.navhead { font-size: 11px; font-weight: 500; color: var(--fg3); padding: 14px 10px 4px; }
.app.collapsed .navhead { height: 1px; padding: 0; margin: 8px 10px; background: var(--line); }
.tabsrow { gap: 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabsrow a { padding: 8px 12px; text-decoration: none; font-size: 13px; color: var(--fg2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabsrow a:hover { color: var(--fg); }
.tabsrow a.on { color: var(--fg); font-weight: 600; border-bottom-color: var(--fg); }
.tabsrow button { font: inherit; padding: 8px 12px; font-size: 13px; color: var(--fg2); background: none; border: 0; border-bottom: 2px solid transparent;
  margin-bottom: -1px; cursor: pointer; }
.tabsrow button:hover { color: var(--fg); }
.tabsrow button.on { color: var(--fg); font-weight: 600; border-bottom-color: var(--fg); }
/* label / value facts (Market app profile) */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 24px; margin: 0; }
.facts dt { font-size: 12.5px; font-weight: 600; color: var(--fg); margin: 0 0 4px; }
.facts dd { margin: 0; font-size: 13px; color: var(--fg2); overflow-wrap: anywhere; }
.stars { display: grid; grid-template-columns: 34px minmax(0, 1fr) 64px; gap: 8px 10px; align-items: center; font-size: 12px; }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.tchip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 2px 8px 2px 6px; border-radius: 999px; background: var(--sub);
  border: 1px solid var(--line); color: var(--fg); white-space: nowrap; }
.progress { height: 6px; border-radius: 3px; background: var(--line2); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 3px; background: var(--acc); transition: width .3s; }
.codebox { position: relative; margin: 0; font: 11.5px/1.6 var(--mono); background: var(--sub); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
  white-space: pre; overflow: auto; max-height: 440px; color: var(--fg); }
.codebox .copy { position: sticky; float: right; top: 0; }
.steps-n { counter-reset: st; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps-n li { counter-increment: st; display: flex; gap: 10px; font-size: 13px; color: var(--fg2); }
.steps-n li::before { content: counter(st); width: 22px; height: 22px; border-radius: 50%; background: var(--sub); border: 1px solid var(--line); color: var(--fg);
  font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.steps-n li b { color: var(--fg); font-weight: 600; }

/* ---------- ad placements ---------- */
.scancard { text-decoration: none; color: var(--fg); }
.scancard:hover { border-color: var(--line3); }
.scanthumb { position: relative; height: 188px; background: var(--sub); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); overflow: hidden; color: var(--fg3); }
.scanthumb img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.tcode { position: absolute; right: 8px; bottom: 8px; background: rgba(14, 15, 18, 0.74); color: #fff; font: 500 11px var(--mono); padding: 2px 6px; border-radius: 5px; }
.ed { display: grid; grid-template-columns: 168px minmax(0, 1fr) 276px; height: calc(100vh - 212px); min-height: 560px; border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; background: var(--panel); }
.ed-strip { border-right: 1px solid var(--line); overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 4px; background: var(--side); }
.ed-fr { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 4px; border-radius: 8px; border: 2px solid transparent; background: transparent;
  cursor: pointer; text-align: left; color: var(--fg2); flex-shrink: 0; }
.ed-fr:hover { background: var(--hover); }
.ed-fr.on { border-color: var(--acc); background: var(--panel); color: var(--fg); }
.ed-fr img { width: 100%; height: 92px; object-fit: contain; background: var(--sub); border-radius: 4px; display: block; }
.ed-frmeta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-family: var(--mono); }
.ed-badge { font: 600 10.5px var(--sans); min-width: 18px; height: 17px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; color: #fff; }
.ed-badge.ok { background: var(--posSoft); color: var(--pos); }
.ed-badge.auto, .bd-badge.auto { background: var(--panel); border: 1.5px dashed currentColor; }
/* grid of frames (Monetization Crack) */
.bd { display: flex; flex-direction: column; height: calc(100vh - 230px); min-height: 520px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.bd-stage { flex: 1 1 auto; cursor: default; }
.bd-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.bd-head { position: absolute; left: 0; display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.bd-head b { font-size: 22px; letter-spacing: -0.01em; }
.bd-head span { font-size: 13px; color: var(--fg3); }
.bd-tile { position: absolute; cursor: pointer; }
.bd-lbl { height: 20px; display: flex; align-items: center; justify-content: space-between; gap: 4px; font-size: 11px; color: var(--fg2); padding: 0 1px; }
.bd-img { position: relative; overflow: hidden; border-radius: 3px; background: var(--panel); box-shadow: 0 0 0 1px var(--line), 0 1px 3px rgba(0, 0, 0, 0.1); }
.bd-img img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.bd-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bd-tile:hover .bd-img { box-shadow: 0 0 0 2px var(--line3); }
.bd-tile.sel .bd-img { box-shadow: 0 0 0 3px var(--acc); }
.bd-tile.sel .bd-lbl { color: var(--acc); font-weight: 600; }
.bd-badge { font: 600 10px var(--sans); min-width: 16px; height: 15px; border-radius: 8px; padding: 0 4px; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.bd-ok { color: var(--pos); font-weight: 700; }
.ed-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ed-bar { display: flex; align-items: center; gap: 4px; padding: 7px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; min-height: 48px; }
.ed-bar .vsep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.toolbtn { height: 32px; min-width: 32px; padding: 0 7px; border-radius: 7px; border: 1px solid transparent; background: transparent; color: var(--fg2); display: inline-flex;
  align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-size: 12.5px; white-space: nowrap; }
.toolbtn:hover { background: var(--hover); color: var(--fg); }
.toolbtn[aria-pressed="true"] { background: var(--fg); color: var(--inv); }
.toolbtn:disabled { opacity: 0.35; cursor: default; background: transparent; }
.ed-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; outline: none; touch-action: none; cursor: default;
  background-color: var(--sub); background-image: radial-gradient(var(--line3) 1px, transparent 1.2px); background-size: 18px 18px; }
.ed-stage.tool-box, .ed-stage.tool-arrow { cursor: crosshair; }
.ed-stage.grab { cursor: grab; } .ed-stage.panning { cursor: grabbing; }
.ed-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.14); background: #000; }
.ed-img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.ed-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ed-svg .mk { cursor: move; }
.ed-stage.tool-box .ed-svg .mk, .ed-stage.tool-arrow .ed-svg .mk, .ed-stage.grab .ed-svg .mk { pointer-events: none; }
.ed-svg text { font-family: var(--sans); font-weight: 600; pointer-events: none; }
.ed-empty { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: var(--fg); color: var(--inv); font-size: 12px; padding: 6px 12px;
  border-radius: 999px; pointer-events: none; white-space: nowrap; opacity: 0.9; }
.ed-tlwrap { border-top: 1px solid var(--line); padding: 8px 12px 6px; display: flex; flex-direction: column; gap: 4px; }
.ed-tl { width: 100%; height: 26px; display: block; cursor: pointer; border-radius: 4px; }
.ed-props { border-left: 1px solid var(--line); overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.ed-props .sect { display: flex; flex-direction: column; gap: 8px; }
.ed-props .sect > .t { font-size: 11.5px; font-weight: 500; color: var(--fg3); }
.typebtn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border-radius: 7px; border: 1px solid transparent; background: transparent;
  cursor: pointer; font-size: 13px; text-align: left; color: var(--fg); }
.typebtn:hover { background: var(--hover); }
.typebtn[aria-pressed="true"] { border-color: var(--line3); background: var(--sub); font-weight: 600; }
.typebtn kbd { margin-left: auto; font-size: 10px; padding: 1px 5px; }
.mkrow { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border-radius: 7px; border: 1px solid var(--line); background: var(--panel);
  cursor: pointer; font-size: 12.5px; text-align: left; color: var(--fg); }
.mkrow:hover { background: var(--hover); }
.moments { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.moment { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--fg); }
.moment img { width: 100%; height: 210px; object-fit: contain; background: var(--sub); border-radius: 8px; border: 1px solid var(--line); display: block; }
.moment:hover img { border-color: var(--line3); }
.placemap { display: flex; justify-content: center; align-items: center; padding: 8px; background: var(--sub); border-radius: 10px; }
.tcards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.tcard { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel);
  color: var(--fg); text-align: left; cursor: pointer; border-top: 3px solid var(--c, var(--fg)); }
.tcard:hover { border-color: var(--line3); border-top-color: var(--c, var(--fg)); }
.tcard[aria-selected="true"] { box-shadow: 0 0 0 2px var(--c, var(--fg)); }
.tcard .n { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
@media (max-width: 1100px) { .tcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- push notifications ---------- */
.phone { width: 280px; max-width: 100%; border-radius: 30px; padding: 10px; background: #0E0F12; box-shadow: var(--shadow); flex-shrink: 0; }
.phone .scr { border-radius: 22px; background: linear-gradient(165deg, #56628A, #232A40 70%); padding: 38px 10px 90px; display: flex; flex-direction: column; gap: 8px; min-height: 420px; }
.phone .clock { text-align: center; color: #fff; font-size: 40px; font-weight: 300; letter-spacing: -0.02em; margin-bottom: 18px; }
.phone .clock small { display: block; font-size: 12px; font-weight: 500; opacity: 0.8; letter-spacing: 0; }
.pn { background: rgba(250, 250, 252, 0.94); color: #16161A; border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.pn .h { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #55555E; }
.pn .ic { width: 16px; height: 16px; border-radius: 4px; background: #4453DB; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; }
.pn b { font-size: 13px; }
.pn img { width: 100%; max-height: 120px; object-fit: cover; border-radius: 8px; margin-top: 4px; }
.gstep { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.gstep[open] { border-color: var(--line3); }
.gstep > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.gstep > summary::-webkit-details-marker { display: none; }
.gstep > summary > .ic { color: var(--fg3); transition: transform .15s; }
.gstep[open] > summary > .ic { transform: rotate(180deg); }
.gstep .stepcheck { cursor: pointer; background: var(--panel); }
.gstep .stepcheck.done { background: var(--posSoft); }
.gbody { padding: 0 14px 16px 46px; display: flex; flex-direction: column; gap: 12px; }
.flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.flow-box { padding: 10px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--sub); font-size: 13px; font-weight: 500; }
.flow-arrow { color: var(--fg3); font-size: 16px; }
.issue { display: flex; gap: 8px; font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid var(--line2); }
.issue:last-child { border-bottom: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) { .g5, .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .search { width: 340px; } }
@media (max-width: 1100px) {
  .g4, .g5, .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main, .g-side, .g-profile, .g3 { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); } .split .left { display: none; }
  .ed { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(460px, 1fr) auto; height: auto; }
  .ed-strip { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .ed-fr { width: 104px; } .ed-fr img { height: 64px; }
  .ed-props { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .side { position: fixed; z-index: 50; left: 0; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  .app.drawer .side { transform: none; }
  .menu-btn { display: inline-flex; }
  .topbar, .filterbar { padding-left: 16px; padding-right: 16px; }
  .content { padding: 18px 16px 32px; }
  .syncstat { display: none; }
  .search { width: auto; flex: 1; min-width: 0; } .search kbd { display: none; }
  .g2 { grid-template-columns: minmax(0, 1fr); }
  .wiz-rail { display: none; } .wiz-main { padding: 20px 16px 40px; }
  .dp { flex-direction: column; } .dp-presets { width: auto; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .dp-cals .cal:nth-child(2) { display: none; }
}
@media (max-width: 520px) {
  .g4, .g5, .g6 { grid-template-columns: minmax(0, 1fr); }
  .kpi .val { font-size: 21px; }
  .hero { font-size: 32px; }
}
