/* North Consent · app styles */
@font-face { font-family: 'Inter Display'; font-weight: 600; font-display: swap; src: url(fonts/inter-display-600.woff2) format('woff2'); }
@font-face { font-family: 'Inter Display'; font-weight: 700; font-display: swap; src: url(fonts/inter-display-700.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --ink: #0B1B2E; --ink-2: #13263D; --ink-3: #1E3450;
  --green: #2346D8; --green-d: #1D3BB8; --green-t: #E9EEFD; --red: #E0393E;
  --cream: #F3F5F9; --bg: #F4F6FA; --surface: #fff; --line: #E2E6EE; --line-2: #EDF0F5;
  --text: #0F1B2B; --muted: #5B6779; --faint: #94A0B2;
  --stage: #22262B; --stage-2: #1B1F23;
  --open: #E0393E; --ok: #15803D; --warn: #B45309; --bad: #B42318; --info: #2346D8; --ai: #7C3AED;
  --radius: 12px; --shadow: 0 1px 2px rgba(11,27,46,.05), 0 6px 20px rgba(11,27,46,.07);
  --display: 'Inter Display', Inter, system-ui, sans-serif;
  --note-w: 250px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--green-d); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.01em; margin: 0; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
code, kbd { background: #EDF0F5; padding: 1px 6px; border-radius: 5px; font-size: 12px; }
kbd { border: 1px solid #D5DBE5; border-bottom-width: 2px; font-family: inherit; }
.ic { flex: none; vertical-align: -3px; }
.muted { color: var(--muted); } .faint { color: rgba(255,255,255,.55); } .small { font-size: 12.5px; } .center { text-align: center; }
.hidden { display: none !important; } .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.late { color: var(--bad); font-weight: 600; }
.pad { padding: 8px 10px; } .pad-top { padding-top: 26px; }

/* ---------- Buttons & inputs ---------- */
button, .btn { font: inherit; cursor: pointer; border-radius: 10px; border: 1px solid transparent; padding: 9px 15px; background: none; color: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
button:disabled, button[data-disabled] { opacity: .5; cursor: not-allowed; }
.primary, a.primary { background: var(--ink); color: #fff; font-weight: 600; border-radius: 10px; padding: 9px 16px; display: inline-flex; align-items: center; gap: 7px; justify-content: center; }
.primary:hover:not(:disabled) { background: #000; text-decoration: none; }
.ghost, a.ghost { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 10px; padding: 8px 14px; display: inline-flex; align-items: center; gap: 7px; justify-content: center; }
.ghost:hover { background: #EEF1F6; text-decoration: none; }
.danger { background: #FDEDEA; color: var(--bad); border: 1px solid #F6CBC4; border-radius: 10px; }
.danger:hover { background: #FBDCD6; }
.big, a.big { padding: 13px 22px; font-size: 15.5px; border-radius: 12px; }
.block, a.block { display: flex; width: 100%; }
.small.primary, .small.ghost, .small.danger, button.small, a.small.ghost, a.small.primary { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.link { border: 0; padding: 0; color: var(--green-d); font-size: 12.5px; font-weight: 600; background: none; display: inline; }
.link:hover { text-decoration: underline; }
.danger-t { color: var(--bad) !important; }
.icon-btn { width: 30px; height: 30px; padding: 0; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; line-height: 1; flex: none; }
.icon-btn:hover { background: #EEF1F6; }
input, select, textarea { font: inherit; color: inherit; width: 100%; padding: 9px 11px; border: 1px solid #D3D9E3; border-radius: 10px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(35,70,216,.22); border-color: var(--green-d); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--green-d); }
textarea { resize: vertical; }
label, .lbl { display: block; font-weight: 600; font-size: 13px; }
label > input, label > select, label > textarea, label > .checklist, label > .pw { margin-top: 6px; font-weight: 400; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.check input { margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: 13px; margin-bottom: 8px; padding: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; }
.actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.actions.left { justify-content: flex-start; }
.alert { background: #FDEDEA; color: #8A2119; border: 1px solid #F6CBC4; padding: 10px 13px; border-radius: 10px; margin: 0; }
.alert a { color: inherit; font-weight: 700; text-decoration: underline; }
.notice { background: var(--green-t); color: #1B3A8F; border: 1px solid #C9D5F6; padding: 10px 13px; border-radius: 10px; margin: 0; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; font-size: 13px; background: #F6F8FB; min-width: 0; }
.pw { position: relative; display: block; }
.pw input { margin: 0; padding-right: 62px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); padding: 4px 9px; font-size: 12px; color: var(--green-d); font-weight: 600; }
.pw-meter { display: block; height: 4px; background: var(--line-2); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 100%; background: var(--bad); transform: scaleX(0); transform-origin: left; transition: transform .2s, background .2s; }
.pw-meter i[data-s="2"] { background: var(--warn); } .pw-meter i[data-s="3"], .pw-meter i[data-s="4"] { background: var(--ok); }

/* ---------- Avatars & pills ---------- */
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; flex: none; letter-spacing: .02em; }
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; }
.avatar.xs { width: 22px; height: 22px; font-size: 9.5px; }
.avatar.sys { background: #C5CCD8; }
.ai-av { background: var(--ai); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #EDF0F5; color: var(--muted); }
.pill.tiny { font-size: 11px; padding: 1px 8px; margin-left: auto; }
.tiny-i { font-size: 10.5px; padding: 0 7px; background: #FFF1D6; color: #7A5300; vertical-align: 1px; }
.s-in_review, .s-pending { background: #E7EEFB; color: var(--info); }
.s-approved { background: #DCF3E4; color: #166534; }
.s-approved_changes { background: #FFF2D2; color: #8A6200; }
.s-changes_requested { background: #FDE8E4; color: var(--bad); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.s-in_review { background: var(--info); } .dot.s-approved { background: var(--ok); }
.dot.s-approved_changes { background: var(--warn); } .dot.s-changes_requested { background: var(--bad); } .dot.hot { background: var(--open); }
.count { color: var(--muted); font-size: 12px; font-weight: 600; margin-left: auto; }
.count.hot { background: var(--open); color: #fff; border-radius: 999px; padding: 0 7px; }
.count.late-c { background: #FDE8E4; color: var(--bad); border-radius: 999px; padding: 0 7px; }
.role-owner { background: #13263D; color: #fff; } .role-admin { background: #E7EEFB; color: var(--info); }

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: #fff; font-family: var(--display); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand.dark { color: var(--ink); }
.brand-mark { display: inline-block; flex: none; color: inherit; line-height: 0; }
.brand-mark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.brand-mark.tile svg { width: 64%; height: 64%; }
.brand-mark.tile { display: inline-grid; place-items: center; border-radius: 28%; background: var(--ink); color: #fff; }
.ws-badge { display: inline-grid; place-items: center; border-radius: 28%; color: #fff; font-weight: 800; font-size: 11px; flex: none; font-family: var(--display); }
.ws-logo { border-radius: 28%; object-fit: cover; background: #fff; flex: none; }

/* ---------- Top bar ---------- */
.topbar { height: 58px; display: flex; align-items: center; gap: 14px; padding: 0 18px; background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 30; }
.ws-switch > summary { display: flex; align-items: center; gap: 9px; padding: 5px 9px; border-radius: 10px; background: rgba(255,255,255,.07); max-width: 230px; }
.ws-switch > summary:hover { background: rgba(255,255,255,.13); }
.ws-name { font-weight: 600; font-size: 14px; }
.mainnav { display: flex; gap: 2px; margin-left: 8px; }
.mainnav a { color: rgba(255,255,255,.72); padding: 8px 12px; border-radius: 9px; font-weight: 500; display: flex; align-items: center; gap: 7px; }
.mainnav a:hover { color: #fff; text-decoration: none; background: rgba(255,255,255,.08); }
.mainnav a.on { color: #fff; background: rgba(255,255,255,.14); }
.me { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-link { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: rgba(255,255,255,.8); position: relative; }
.icon-link:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.dot-count { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--open); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--ink); }
.invite-btn { background: var(--green); color: #fff; font-weight: 700; padding: 7px 13px; font-size: 13px; border-radius: 9px; margin-right: 4px; }
.invite-btn:hover { background: #3A5BE6; }
.me-sum { padding: 2px; border-radius: 50%; }

/* Menus */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 44px rgba(11,27,46,.2); padding: 6px; z-index: 60; display: flex; flex-direction: column; }
.ws-switch .menu-pop { left: 0; right: auto; min-width: 270px; }
.menu-pop.right { right: 0; }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 9px; text-align: left; width: 100%; padding: 8px 10px; border-radius: 8px; color: var(--text); font-size: 14px; border: 0; justify-content: flex-start; font-weight: 500; }
.menu-pop a:hover, .menu-pop button:hover { background: #EEF1F6; text-decoration: none; }
.menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: flex; flex-direction: column; }
.menu-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 6px 10px 4px; }
.menu-sep { height: 1px; background: var(--line); margin: 5px 4px; }
.ws-item .muted { margin-left: auto; }
.ws-item.on { background: var(--green-t); }
.danger-link { color: var(--bad) !important; }
.notif-pop { width: 360px; max-width: calc(100vw - 24px); padding: 0; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.notif-list { max-height: 420px; overflow: auto; padding: 4px; }
.notif-list .notif-item { align-items: flex-start; gap: 10px; padding: 10px; }
.notif-item .n-ic { width: 26px; height: 26px; border-radius: 50%; background: #EEF1F6; display: grid; place-items: center; flex: none; font-size: 12px; }
.notif-item > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif-item .n-text { font-size: 13px; line-height: 1.4; }
.notif-item.unread { background: #F1F4FE; }
.notif-item.unread .n-ic { background: var(--green); color: #fff; }

/* ---------- Dashboard ---------- */
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 58px); }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); padding: 16px 10px; display: flex; flex-direction: column; gap: 2px; }
.side-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 10px 8px; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.side-head .icon-btn { width: 24px; height: 24px; }
.side-link { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 9px; color: var(--text); font-weight: 500; }
.side-link .ic { color: var(--muted); }
.side-link:hover { background: #EEF1F6; text-decoration: none; }
.side-link.on { background: var(--green-t); color: #1B3A8F; font-weight: 600; }
.side-link.on .ic { color: var(--green-d); }
.side-arch summary { padding: 8px 10px; cursor: pointer; }
.content { padding: 28px 32px 70px; min-width: 0; }
.content.narrow { max-width: 1040px; margin: 0 auto; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; }
.head-actions { display: flex; gap: 8px; align-items: center; }
.head-actions .menu > summary { padding: 8px 12px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.hot-t { color: var(--open); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; color: var(--text); align-items: center; }
.stat:hover { text-decoration: none; border-color: #C9D1DD; }
.stat .dot { grid-row: span 2; width: 10px; height: 10px; }
.stat b { font-family: var(--display); font-size: 26px; line-height: 1.1; }
.stat span:last-child { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.stat.hot { background: #FFF6F2; border-color: #F8D5C6; }
.checklist-card { background: linear-gradient(120deg, #0B1B2E, #1B3A6B); color: #fff; border-radius: 16px; padding: 18px 20px; margin-bottom: 20px; }
.cl-head { display: flex; align-items: center; gap: 18px; }
.cl-head > div:first-child { flex: none; }
.cl-head .muted { color: rgba(255,255,255,.65); margin: 2px 0 0; }
.cl-bar { flex: 1; height: 6px; background: rgba(255,255,255,.14); border-radius: 3px; overflow: hidden; }
.cl-bar i { display: block; height: 100%; background: var(--green); border-radius: 3px; }
.checklist-card .icon-btn { background: transparent; border-color: rgba(255,255,255,.2); color: #fff; }
.cl-steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.cl-steps li { background: rgba(255,255,255,.07); border-radius: 12px; padding: 11px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.cl-steps li.done { opacity: .6; }
.cl-steps li.done .cl-label { text-decoration: line-through; }
.cl-check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); display: grid; place-items: center; }
.done .cl-check { background: var(--green); border-color: var(--green); color: #fff; }
.cl-steps .link { color: #9DB4FF; text-align: left; }
.toolbar { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.tb-right { display: flex; gap: 8px; align-items: center; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 500; }
.chip:hover { text-decoration: none; border-color: #C9D1DD; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.search { position: relative; }
.search .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 260px; padding-left: 34px; }
.sort { width: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: inherit; transition: box-shadow .18s, transform .18s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.thumb { position: relative; aspect-ratio: 4/3; background: repeating-conic-gradient(#EFEDE6 0% 25%, #F6F8FB 0% 50%) 50% / 18px 18px; display: grid; place-items: center; overflow: hidden; }
.thumb img, .thumb video, .thumb canvas { max-width: 100%; max-height: 100%; object-fit: contain; }
.kind-tag, .ver-tag { position: absolute; top: 9px; background: rgba(11,27,46,.78); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.kind-tag { left: 9px; } .ver-tag { right: 9px; }
.needs-you { position: absolute; bottom: 9px; left: 9px; background: var(--open); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 6px; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; }
.card-title { font-weight: 600; font-size: 14.5px; }
.card-meta { display: flex; align-items: center; gap: 10px; margin-top: 7px; flex-wrap: wrap; }
.meta-i { display: inline-flex; align-items: center; gap: 4px; }
.empty { text-align: center; padding: 56px 20px; background: var(--surface); border: 1px dashed #CDD4DF; border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty p { margin: 0 0 8px; }
.empty-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--green-t); color: var(--green-d); display: grid; place-items: center; margin-bottom: 6px; }
.empty.small { padding: 28px 14px; border: 0; background: none; font-size: 13px; color: var(--muted); }
.empty.small .empty-ic { width: 40px; height: 40px; font-size: 18px; border-radius: 12px; }

/* ---------- Modals ---------- */
.modal { border: 0; border-radius: 18px; padding: 0; width: min(640px, 94vw); box-shadow: 0 24px 70px rgba(0,0,0,.28); color: var(--text); }
.modal.small { width: min(460px, 94vw); }
.modal::backdrop { background: rgba(8,16,30,.5); backdrop-filter: blur(2px); }
.modal-body { padding: 24px; }
.modal-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.seg-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #EEF1F6; border-radius: 11px; padding: 4px; }
.seg-tabs button { padding: 8px; border-radius: 8px; font-weight: 600; color: var(--muted); }
.seg-tabs button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(11,27,46,.12); }
.drop { position: relative; border: 2px dashed #C9D1DD; border-radius: 14px; padding: 26px; text-align: center; cursor: pointer; background: #F8FAFC; font-weight: 400; }
.drop.over, .drop:hover { border-color: var(--green-d); background: #F1F4FE; }
.drop.has-file { border-style: solid; border-color: var(--ok); background: #EFF6F1; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-ic { display: block; color: var(--green-d); margin-bottom: 6px; }
.checklist { display: flex; flex-wrap: wrap; gap: 8px 16px; max-height: 150px; overflow: auto; padding: 10px; border: 1px solid #D3D9E3; border-radius: 10px; margin-top: 6px; }
.checklist.people { gap: 6px; }
.person { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 6px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; cursor: pointer; max-width: 220px; }
.person:has(input:checked) { border-color: var(--green-d); background: var(--green-t); }
.person input { margin: 0; }
.progress { height: 6px; background: #E5E9F0; border-radius: 3px; overflow: hidden; }
.progress div { height: 100%; width: 100%; background: var(--green-d); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.radio-card { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: 11px; border: 1px solid var(--line); cursor: pointer; font-weight: 600; }
.radio-card input { margin: 0; }
.radio-card:has(input:checked) { border-color: currentColor; box-shadow: 0 0 0 1px currentColor; }
.ir { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.ir.ok { border-color: #C9D5F6; background: #F3F6FE; } .ir.bad { border-color: #F6CBC4; background: #FEF5F3; }
.share-list { display: flex; flex-direction: column; gap: 10px; }
.share-row { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.share-row.fresh { border-color: var(--green-d); background: #F3F6FE; }

/* Toast */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 11px; opacity: 0; transition: .25s; z-index: 200; font-weight: 500; max-width: min(520px, 92vw); text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--bad); }

/* ---------- Admin pages ---------- */
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 20px; }
.box-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.box > p.muted { margin-top: 0; }
.danger-box { border-color: #F6CBC4; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 8px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table select { width: auto; padding: 5px 8px; }
.table input:not([type=checkbox]) { padding: 6px 8px; min-width: 70px; }
.person-cell { display: flex; align-items: center; gap: 10px; }
.row-actions { text-align: right; white-space: nowrap; }
.row-actions .link { margin-left: 12px; }
.role-help { margin-top: 12px; } .role-help summary { cursor: pointer; } .role-help ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.code { background: #0B1B2E; color: #D6E0F5; padding: 12px; border-radius: 10px; font-size: 12px; overflow: auto; max-height: 280px; }
.feed { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.feed li { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.feed li.feed-day { background: #F8FAFC; font-size: 12px; font-weight: 700; color: var(--muted); padding: 8px 16px; text-transform: uppercase; letter-spacing: .05em; }
.feed li:last-child { border: 0; }
.settings-layout .sidebar { position: sticky; top: 58px; height: calc(100vh - 58px); }
.logo-row { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.logo-row .stack { gap: 6px; }
.file-btn { cursor: pointer; }
.color-in { height: 42px; padding: 4px; }
.usage { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.usage > div { display: flex; flex-direction: column; gap: 4px; }
.usage b { font-size: 16px; }
.meter { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--green-d); }
.plan-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plan-mini { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.plan-mini.on { border-color: var(--green-d); background: #F3F6FE; box-shadow: 0 0 0 1px var(--green-d); }
.ws-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ws-list li { display: flex; align-items: center; gap: 10px; }
.ws-list li .link { margin-left: auto; }
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 20px; }
.help-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.help-card h2 { margin: 10px 0 6px; }
.help-card p { margin: 0 0 8px; }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; font-family: var(--display); }

/* ---------- Auth pages ---------- */
body.auth { background: var(--cream); min-height: 100vh; }
.auth-split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.auth-side { background: radial-gradient(900px 500px at 0% 0%, #1B3A6B 0%, var(--ink) 60%); color: #fff; padding: 36px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.auth-quote h2 { font-size: 38px; line-height: 1.1; letter-spacing: -.025em; font-weight: 800; margin-bottom: 16px; }
.auth-quote p { color: rgba(255,255,255,.72); font-size: 16px; max-width: 420px; }
.side-steps { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 14px; }
.side-steps li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.6); font-weight: 500; }
.side-steps li span { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3); display: grid; place-items: center; font-size: 13px; }
.side-steps li.on { color: #fff; } .side-steps li.on span { background: var(--green); border-color: var(--green); color: #fff; font-weight: 800; }
.auth-main { display: grid; place-items: center; padding: 32px 20px; }
.auth-center { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: min(420px, 100%); background: var(--surface); padding: 32px; border-radius: 20px; box-shadow: 0 1px 2px rgba(11,27,46,.04), 0 20px 50px rgba(11,27,46,.08); display: flex; flex-direction: column; gap: 16px; }
.auth-main .auth-card { box-shadow: none; background: transparent; padding: 0; }
.auth-card h1 { font-size: 28px; font-weight: 800; }
.auth-card > p.muted { margin: -8px 0 0; }
.wide-card { width: min(480px, 100%); }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--green-d); }
.signed-as { display: flex; gap: 12px; align-items: center; padding: 12px; background: #F4F6FA; border-radius: 12px; }
.auth-links { display: flex; justify-content: space-between; font-size: 13px; }
.join-ws { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.join-ws h2 { font-size: 28px; }
.join-ws.dark h1 { font-size: 26px; margin: 2px 0 6px; }

/* Onboarding */
.ob { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 0 16px 60px; }
.ob-head { width: 100%; max-width: 1040px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 22px 0; gap: 16px; }
.ob-head > :last-child { justify-self: end; }
.ob-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; }
.ob-steps li { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); font-weight: 600; padding: 6px 10px; border-radius: 999px; }
.ob-steps li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #E3E8EF; font-size: 11.5px; }
.ob-steps li.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(11,27,46,.08); }
.ob-steps li.on span { background: var(--ink); color: #fff; }
.ob-steps li.done span { background: var(--green); color: #fff; }
.ob-card { width: 100%; max-width: 680px; background: var(--surface); border-radius: 22px; padding: 38px; box-shadow: 0 20px 60px rgba(11,27,46,.08); margin-top: 18px; }
.ob-card h1 { font-size: 30px; font-weight: 800; line-height: 1.15; }
.lead-s { font-size: 15.5px; margin: 10px 0 24px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice-grid legend { grid-column: 1 / -1; }
.choice { border: 1.5px solid var(--line); border-radius: 14px; padding: 13px; cursor: pointer; display: flex; gap: 9px; align-items: flex-start; font-weight: 400; }
.choice input { margin-top: 3px; }
.choice span { display: flex; flex-direction: column; gap: 3px; }
.choice small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.choice:has(input:checked) { border-color: var(--green-d); background: #F3F6FE; }
.swatches { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.swatch { position: relative; display: block; }
.swatch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.swatch span { display: block; width: 32px; height: 32px; border-radius: 10px; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }
.swatch input:checked + span { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c); }
.swatch input:focus-visible + span { outline: 3px solid rgba(35,70,216,.4); }
.ws-preview { margin-left: auto; display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; background: var(--ink); color: #fff; border-radius: 12px; font-weight: 600; max-width: 240px; }
.ws-preview .ws-badge { width: 30px; height: 30px; font-size: 12px; }
.ob-two { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.ob-two h3 { display: flex; gap: 8px; align-items: center; }
.ob-link { background: #F6F8FB; border-radius: 16px; padding: 18px; }
.ob-foot { display: flex; justify-content: flex-end; margin-top: 24px; }
.invite-results { display: flex; flex-direction: column; gap: 4px; }
.ob-done { text-align: center; }
.ob-done .lead-s { max-width: 460px; margin-left: auto; margin-right: auto; }
.confetti { display: grid; place-items: center; margin-bottom: 18px; }
.confetti .brand-mark { box-shadow: 0 0 0 10px #E9EEFD, 0 0 0 20px #F4F6FE; }
.next-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: left; }
.next-card { border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 6px; color: var(--text); transition: border-color .15s, transform .15s; }
.next-card:hover { border-color: var(--green-d); text-decoration: none; transform: translateY(-2px); }
.next-card.featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.next-card.featured .muted { color: rgba(255,255,255,.65); }
.f-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--green-t); color: var(--green-d); margin-bottom: 4px; }
.next-card.featured .f-ic { background: var(--green); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .mainnav a span { display: none; }
  .cl-steps { grid-template-columns: repeat(3, 1fr); }
  .usage { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .layout > .sidebar { display: none; }
  .content { padding: 20px 16px 60px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .auth-split { grid-template-columns: 1fr; }
  .auth-side { padding: 22px; } .auth-quote { display: none; } .auth-side > p { display: none; }
  .hide-sm { display: none !important; }
  .help-grid, .ob-two, .next-cards, .choice-grid { grid-template-columns: 1fr; }
  .ob-head { grid-template-columns: auto 1fr; } .ob-steps { display: none; }
  .ob-card { padding: 24px; }
}
@media (max-width: 640px) {
  .row2, .row3, .plan-row, .usage { grid-template-columns: 1fr; }
  .cl-steps { grid-template-columns: 1fr 1fr; }
  .ws-switch .ws-name, .topbar .brand-name { display: none; }
  .topbar { gap: 8px; padding: 0 10px; }
  .invite-btn { padding: 7px 9px; }
  .search input { width: 100%; }
  .tb-right { width: 100%; } .tb-right .search { flex: 1; }
}

.plan-mini .plan-btn, .plan-mini .plan-cur { margin-top: 8px; align-self: flex-start; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }
.topbar { background: var(--ink) linear-gradient(90deg, rgba(35,70,216,.10), transparent 40%); box-shadow: inset 0 -1px 0 rgba(35,70,216,.25); }
.primary, a.primary { transition: background .15s, box-shadow .2s, transform .15s; }
.primary:hover, a.primary:hover { background: #000; box-shadow: 0 8px 20px -10px rgba(11,27,46,.6); text-decoration: none; }
.primary.big, a.primary.big { background: var(--green); color: #fff; box-shadow: 0 10px 26px -10px rgba(35,70,216,.6); }
.primary.big:hover, a.primary.big:hover { background: #3A5BE6; }
.auth-side { position: relative; overflow: hidden; isolation: isolate; --mx: 70%; --my: 30%; background:
  radial-gradient(700px 420px at 100% 0%, rgba(35,70,216,.22), transparent 60%),
  radial-gradient(600px 400px at 0% 100%, rgba(124,58,237,.14), transparent 60%),
  radial-gradient(900px 600px at 0% 0%, #1B3A6B, var(--ink) 62%); }
.auth-quote h2 { font-size: clamp(30px, 3vw, 44px); letter-spacing: -.035em; text-wrap: balance; }
.auth-quote h2 em { font-style: normal; color: #9DB4FF; }
body.auth { background: var(--cream); }
.auth-center { position: relative; isolation: isolate; }
.auth-card { border: 1px solid var(--line-2); }
.auth-main .auth-card { border: 0; }
/* Cards lift on hover */
.grid > .card, .next-card { transition: transform .2s, box-shadow .2s; }
.grid > .card:hover, .next-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(11,27,46,.3); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.auth-side { padding-bottom: 130px; }
.auth-side::after { height: 100px; opacity: .3; }
@media (max-width: 900px) { .auth-side { padding-bottom: 100px; } .auth-side::after { height: 70px; } }

/* 2.1: email confirmation screen */
.verify-card { text-align: center; }
.verify-card .brand { justify-content: center; }
.verify-ic { width: 72px; height: 72px; margin: 6px auto 0; border-radius: 22px; display: grid; place-items: center; background: var(--green-t); color: #1B3A8F; }
.verify-card .notice, .verify-card .alert { text-align: left; }
.verify-tips { text-align: left; margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.mail-log summary { cursor: pointer; }
.storage-in { display: flex; gap: 6px; align-items: center; }
.storage-in input { width: 90px; min-width: 0; }
.storage-in select { width: auto; }
/* 2.4: trial countdown */
.trial-bar { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 8px 16px; background: #E9EEFD; color: #1B3A8F; font-size: 14px; border-bottom: 1px solid #C9D5F6; text-align: center; }
.trial-bar a { font-weight: 700; color: #fff; background: #2346D8; padding: 4px 12px; border-radius: 8px; text-decoration: none; }
.trial-bar.soon { background: #FFF1E8; color: #9A3412; border-color: #FBD5BF; }
.trial-bar.ended { background: #F3F5F9; color: #475467; border-color: #E2E6EE; }
.plan-mini .plan-btn + .plan-cur, .plan-mini .plan-cur + .plan-btn { margin-top: 8px; }

/* ===== North Consent components ===== */
:root { --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; }
.content.wide { max-width: 1240px; margin: 0 auto; width: 100%; }
.nowrap { white-space: nowrap; }
.mono, textarea.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.ok-t { color: var(--ok) !important; } .bad-t { color: var(--bad) !important; } .warn-t { color: var(--warn) !important; }
.pad-t { padding-top: 12px; }
.topbar { background: var(--ink) linear-gradient(90deg, rgba(224,57,62,.10), transparent 35%); box-shadow: inset 0 -1px 0 rgba(255,255,255,.08); }
.brand .brand-mark { color: #fff; }
.brand.dark .brand-mark { color: var(--ink); }
.auth-side { background: radial-gradient(700px 420px at 100% 0%, rgba(224,57,62,.18), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(35,70,216,.28), transparent 60%), radial-gradient(900px 600px at 0% 0%, #1B3A6B, var(--ink) 62%) !important; }
.auth-quote h2 em { color: #FF9EA1; }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.kpi > span:first-child { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi b { font-family: var(--display); font-size: 27px; line-height: 1.1; letter-spacing: -.02em; }
.kpi b small { font-size: 14px; color: var(--muted); font-weight: 600; }
.kpi .meter { margin-top: 6px; }
.delta { font-style: normal; font-size: 12px; color: var(--muted); }
.delta.up { color: var(--ok); } .delta.down { color: var(--bad); }

/* Site cards */
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.site-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 14px; color: var(--text); transition: box-shadow .18s, transform .18s, border-color .18s; text-align: left; }
.site-card:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-2px); border-color: #CDD4DF; }
.site-card.add { border-style: dashed; align-items: center; justify-content: center; gap: 6px; min-height: 190px; color: var(--muted); background: transparent; font: inherit; cursor: pointer; }
.site-card.add strong { color: var(--text); }
.sc-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.sc-head > div { display: flex; flex-direction: column; }
.favi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--green-t); color: var(--green-d); font-weight: 800; font-family: var(--display); flex: none; }
.favi.lg { width: 42px; height: 42px; font-size: 17px; }
.sc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.sc-stats div { display: flex; flex-direction: column; }
.sc-stats b { font-family: var(--display); font-size: 18px; }
.sc-stats span { color: var(--muted); font-size: 11.5px; }
.sc-note { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.sc-note.warn { color: var(--warn); } .sc-note.ok { color: var(--ok); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px 3px 8px; border-radius: 999px; white-space: nowrap; background: #EEF1F6; color: var(--muted); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.st-on { background: #DCF3E4; color: #166534; }
.status.st-warn { background: #FEF3C7; color: #92400E; }
.status.st-off { background: #FDECEC; color: #9F1C1C; }
.big-empty { padding: 60px 24px; }
.big-empty p { max-width: 520px; }
.how3 { list-style: none; display: flex; gap: 22px; padding: 0; margin: 22px 0 0; flex-wrap: wrap; justify-content: center; color: var(--muted); font-size: 13.5px; }
.how3 b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11.5px; margin-right: 7px; }

/* Site page shell */
.site-page .layout, .settings-layout { background: linear-gradient(to right, var(--surface) 250px, transparent 250px); }
.site-page .sidebar { position: sticky; top: 58px; height: calc(100vh - 58px); overflow: auto; }
@media (max-width: 960px) { .site-page .layout, .settings-layout { background: none; } }
.side-link.back { color: var(--muted); margin-bottom: 8px; }
.site-id { display: flex; gap: 10px; align-items: center; padding: 8px 10px 4px; }
.site-id > div { display: flex; flex-direction: column; min-width: 0; }
.site-id a.muted { display: inline-flex; gap: 4px; align-items: center; }
.side-status { margin: 4px 10px 12px; align-self: flex-start; }
.side-tabs { display: flex; flex-direction: column; gap: 2px; }
.mobile-tabs { display: none; margin-bottom: 14px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two-col.wide-left { grid-template-columns: 1.2fr 1fr; align-items: start; }
.two-col > .box { margin-bottom: 20px; }
.box.flush { padding: 6px 8px; }
.toolbar .search input { width: 240px; }

/* Charts */
.viz .box-head { flex-wrap: wrap; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i, .tip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line-2); stroke-width: 1; }
.chart .base { stroke: #C9D1DD; stroke-width: 1; }
.chart .ax { font-size: 11px; fill: var(--muted); font-family: Inter, system-ui, sans-serif; }
.chart .hit { fill: transparent; }
.chart .col.on .hit { fill: rgba(11,27,46,.04); }
.tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(11,27,46,.16); border-radius: 10px; padding: 9px 11px; font-size: 12.5px; display: flex; flex-direction: column; gap: 3px; min-width: 170px; z-index: 5; }
.tip span { display: flex; align-items: center; gap: 6px; }
.tip span b { margin-left: auto; }
.table-view { margin-top: 10px; } .table-view summary { cursor: pointer; }
.table.small td, .table.small th { font-size: 12.5px; padding: 7px 8px; }
.hbars { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 10px; }
.hbar { display: grid; grid-template-columns: 150px 1fr 54px; gap: 12px; align-items: center; font-size: 13px; }
.hb-t { height: 10px; background: var(--line-2); border-radius: 5px; overflow: hidden; }
.hb-t i { display: block; height: 100%; background: var(--s1); border-radius: 0 5px 5px 0; }
.hbar b { text-align: right; font-variant-numeric: tabular-nums; }

/* Segmented buttons and toggles */
.seg { display: inline-flex; background: #EEF1F6; border-radius: 10px; padding: 3px; gap: 2px; align-items: center; flex-wrap: wrap; }
.seg button, .seg a { padding: 5px 11px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); border: 0; }
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(11,27,46,.12); }
.seg a.ghost { background: transparent; border: 0; }
.seg .muted { padding: 0 6px; }
.toggles { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.tg { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-weight: 400; cursor: pointer; }
.tg:last-child { border-bottom: 0; }
.tg > input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.tg > span { display: flex; flex-direction: column; gap: 2px; }
.tg b { font-weight: 600; font-size: 14px; }
.tg small { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.tg select { width: auto; display: inline-block; padding: 3px 8px; font-size: 12.5px; margin-left: 4px; }

/* Banner editor */
.editor-content { padding-right: 24px; }
.editor { display: grid; grid-template-columns: minmax(380px, 1fr) minmax(420px, 1.05fr); gap: 22px; align-items: start; }
.editor-form .box { margin-bottom: 0; }
.preview-col { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 10px; }
.preview-bar { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.region-seg { align-self: flex-start; }
.device { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); margin: 0 auto; width: 100%; transition: width .25s; }
.device.mobile { width: 390px; max-width: 100%; border-radius: 28px; border-width: 8px; border-color: var(--ink); }
.device-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #F4F6FA; border-bottom: 1px solid var(--line); }
.device-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D5DBE5; }
.device-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); background: #fff; padding: 2px 10px; border-radius: 6px; flex: 1; }
.device.mobile .device-bar { display: none; }
.device iframe { width: 100%; height: min(640px, calc(100vh - 230px)); border: 0; display: block; }
.device.mobile iframe { height: min(700px, calc(100vh - 210px)); }
.layout-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.lp { display: flex; flex-direction: column; gap: 6px; align-items: center; font-weight: 500; cursor: pointer; }
.lp input { position: absolute; opacity: 0; pointer-events: none; }
.lp small { font-size: 12px; color: var(--muted); text-align: center; }
.lp-art { width: 100%; aspect-ratio: 4/3; border: 2px solid var(--line); border-radius: 10px; background: #F6F8FB; position: relative; transition: border-color .15s; }
.lp-art i { position: absolute; background: var(--ink); border-radius: 3px; opacity: .85; }
.lp-box-left i { left: 8%; bottom: 10%; width: 42%; height: 34%; }
.lp-box-right i { right: 8%; bottom: 10%; width: 42%; height: 34%; }
.lp-bar i { left: 6%; right: 6%; bottom: 8%; height: 18%; }
.lp-popup i { left: 25%; right: 25%; top: 28%; height: 44%; box-shadow: 0 0 0 999px rgba(11,27,46,.08); }
.lp input:checked + .lp-art { border-color: var(--green); box-shadow: 0 0 0 3px rgba(35,70,216,.18); }
.lp input:focus-visible + .lp-art { outline: 3px solid rgba(35,70,216,.4); }
.color-field { display: flex; gap: 6px; margin-top: 6px; }
.color-field input[type=color] { width: 44px; height: 40px; padding: 3px; flex: none; cursor: pointer; }
.color-field .hex { font-family: ui-monospace, Menlo, monospace; font-size: 13px; text-transform: uppercase; }
.swatches.tight { gap: 8px; margin-top: 10px; }
.sw { width: 26px; height: 26px; border-radius: 8px; background: var(--c); padding: 0; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.sw:hover { transform: scale(1.08); }
.contrast-note { margin: 10px 0 12px; }
.cat-pick { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 4px 0 14px; }
.cat-pick legend { width: 100%; }
.text-pane details { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.text-pane summary { cursor: pointer; font-weight: 600; }
.save-state { min-width: 110px; text-align: right; }

/* Cookies */
.scan-box.busy { opacity: .6; pointer-events: none; }
.scan-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 10px; }
.scan-sum div { display: flex; flex-direction: column; }
.scan-sum b { font-family: var(--display); font-size: 24px; }
.scan-sum span { color: var(--muted); font-size: 12.5px; }
.scan-empty { display: flex; gap: 14px; align-items: center; color: var(--muted); }
.scan-empty strong { color: var(--text); }
.scan-empty p { margin: 2px 0 0; }
.tracker-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cat-analytics { background: #E6F0FB; color: #1D4F91; } .cat-marketing { background: #FDECE4; color: #9A3412; } .cat-preferences { background: #E3F6EE; color: #0F6B4B; } .cat-necessary { background: #EEF1F6; color: #475467; }
.cookie-table tr.needs td { background: #FFFBEB; }
.cookie-table select { width: auto; font-size: 12.5px; padding: 4px 6px; }
.cookie-table .purpose { max-width: 320px; }
.row-inline { display: grid; grid-template-columns: 1fr 200px; gap: 8px; margin-bottom: 8px; }

/* Install */
.snippet { display: flex; gap: 10px; align-items: center; background: var(--ink); color: #D6E0F5; padding: 12px 12px 12px 16px; border-radius: 12px; }
.snippet code { background: none; color: inherit; font-size: 13px; flex: 1; overflow-x: auto; white-space: nowrap; padding: 0; }
.snippet .ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
.guide-tabs { grid-template-columns: repeat(5, 1fr); margin-bottom: 14px; }
.guide-tabs button { font-size: 12.5px; padding: 8px 6px; }
.guide ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.code { white-space: pre; }

/* Logs */
.a-acc { background: #E6F0FB; color: #1D4F91; } .a-rej { background: #FDECE4; color: #9A3412; } .a-cus { background: #E3F6EE; color: #0F6B4B; }
code.cid { font-size: 11.5px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 10px 8px 4px; }
.pager .muted { margin-right: auto; }
.disabled-like { opacity: .55; cursor: not-allowed; }

/* Policy */
.policy-preview { max-height: 520px; overflow: auto; border: 1px solid var(--line-2); border-radius: 12px; padding: 4px 22px 18px; font-size: 14px; line-height: 1.65; }
.policy-preview h2 { font-size: 17px; margin: 18px 0 6px; } .policy-preview h3 { font-size: 14.5px; margin: 14px 0 4px; }
.policy-preview table { width: 100%; border-collapse: collapse; font-size: 12.5px; } .policy-preview th, .policy-preview td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.policy-preview .ncp-date, .policy-preview .ncp-none { color: var(--muted); }
.faq { border-top: 1px solid var(--line-2); padding: 12px 0; } .faq summary { cursor: pointer; font-weight: 600; } .faq p { margin: 8px 0 0; color: var(--muted); }

/* Landing (only when no marketing site is set) */
body.landing { background: var(--cream); }
.l-nav { display: flex; align-items: center; gap: 30px; max-width: 1180px; margin: 0 auto; padding: 22px 24px; }
.l-nav nav { display: flex; gap: 22px; } .l-nav nav a { color: var(--text); font-weight: 500; }
.l-nav-cta { margin-left: auto; display: flex; gap: 8px; }
.l-hero { max-width: 1180px; margin: 0 auto; padding: 40px 24px 60px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.l-hero h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; letter-spacing: -.035em; margin: 14px 0 16px; text-wrap: balance; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 0 24px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.l-mock { position: relative; }
.lm-site { background: #fff; border-radius: 16px; box-shadow: 0 30px 70px -30px rgba(11,27,46,.45); border: 1px solid var(--line); overflow: hidden; position: relative; min-height: 340px; }
.lm-bar { display: flex; gap: 6px; align-items: center; padding: 10px 12px; background: #F4F6FA; border-bottom: 1px solid var(--line); }
.lm-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D5DBE5; } .lm-bar span { margin-left: 8px; font-size: 12px; color: var(--muted); }
.lm-body { padding: 26px; } .lm-body b { display: block; height: 22px; width: 70%; background: #E3E8EF; border-radius: 6px; margin-bottom: 14px; }
.lm-body p { height: 10px; background: #EEF1F6; border-radius: 5px; margin: 9px 0; } .lm-body p.s { width: 60%; }
.lm-banner { position: absolute; left: 16px; bottom: 16px; width: 330px; max-width: calc(100% - 32px); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: 0 16px 40px rgba(11,27,46,.18); font-size: 12.5px; color: var(--muted); }
.lm-h { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); font-size: 14px; margin-bottom: 6px; }
.lm-ic { width: 28px; height: 28px; border-radius: 8px; background: var(--green); color: #fff; display: grid; place-items: center; }
.lm-banner p { margin: 0 0 12px; }
.lm-btns { display: flex; gap: 6px; flex-wrap: wrap; } .lm-btns span { flex: 1; text-align: center; padding: 8px 6px; border-radius: 9px; border: 1.5px solid var(--line); font-weight: 600; color: var(--text); font-size: 12px; }
.lm-btns span:first-child { flex-basis: 100%; } .lm-btns span.p { background: var(--green); border-color: var(--green); color: #fff; }
.lm-card { position: absolute; right: -10px; top: 40px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: 0 16px 40px rgba(11,27,46,.16); display: flex; flex-direction: column; gap: 4px; width: 200px; }
.lm-card b { font-family: var(--display); font-size: 30px; }
.lm-bars { display: flex; align-items: flex-end; gap: 5px; height: 48px; } .lm-bars i { flex: 1; background: var(--s1); border-radius: 3px 3px 0 0; }
.l-sec { max-width: 1180px; margin: 0 auto; padding: 50px 24px; }
.l-sec > h2 { font-size: 32px; letter-spacing: -.025em; margin-bottom: 24px; text-align: center; }
.steps3, .features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps3 > div, .feature { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.steps3 h3, .feature h3 { margin: 12px 0 6px; } .steps3 p, .feature p { margin: 0; color: var(--muted); }
.feature .f-ic { margin: 0; }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.price-card.featured { border-color: var(--green); box-shadow: 0 0 0 1px var(--green), 0 24px 50px -24px rgba(35,70,216,.45); }
.price b { font-family: var(--display); font-size: 38px; } .price span { color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.price-card li { display: flex; gap: 8px; align-items: center; } .price-card li .ic { color: var(--ok); } .price-card li.off { color: var(--faint); } .price-card li.off .ic { color: var(--faint); }
.l-foot { max-width: 1180px; margin: 0 auto; padding: 30px 24px 50px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.l-foot > span:first-child { display: flex; gap: 8px; align-items: center; font-weight: 700; }

@media (max-width: 1180px) {
  .editor { grid-template-columns: 1fr; }
  .preview-col { position: static; order: -1; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .two-col, .two-col.wide-left { grid-template-columns: 1fr; }
  .mobile-tabs { display: block; }
  .l-hero, .steps3, .features, .pricing { grid-template-columns: 1fr; }
  .l-nav nav { display: none; }
  .lm-card { display: none; }
  .guide-tabs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .kpis, .scan-sum { grid-template-columns: 1fr 1fr; }
  .layout-pick { grid-template-columns: repeat(2, 1fr); }
  .hbar { grid-template-columns: 100px 1fr 46px; }
  .row-inline { grid-template-columns: 1fr; }
  .snippet { flex-direction: column; align-items: stretch; }
  .toolbar .search input { width: 100%; }
  .site-grid { grid-template-columns: 1fr; }
}
