/* LAB — Layer Any Building · interface styles */
@font-face { font-family: 'Plex'; src: url('../fonts/plex-sans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex'; src: url('../fonts/plex-sans-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Plex'; src: url('../fonts/plex-sans-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Plex'; src: url('../fonts/plex-sans-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'PlexMono'; src: url('../fonts/plex-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --bg: #0E0F13; --bar: #111217; --s1: #15171C; --s2: #1C1F26; --line: #2A2E37; --line2: #1F2229;
  --text: #EDEEF0; --text2: #C9CDD4; --muted: #A3A9B4; --faint: #6F7682;
  --accent: #4FD1E3; --accent-ink: #06191C; --accent-hover: #7FDDEB;
  --good-bg: #123227; --good: #5BE39A; --warn-bg: #3A2A12; --warn: #F5B65A;
  --bad-bg: #3A1620; --bad: #FF8FA3; --info-bg: #132A33; --info: #7FDDEB;
  --c-base: #E63BE6; --c-border: #F04848; --c-pillar: #8B5CF6; --c-projection: #F2913D; --c-design: #F2D23D; --c-others: #34C76F;
  --r: 12px; --r-lg: 16px;
  --sans: 'Plex', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'PlexMono', ui-monospace, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F6F7F9; --bar: #FFFFFF; --s1: #FFFFFF; --s2: #EEF0F3; --line: #D9DDE3; --line2: #E6E9EE;
  --text: #15171C; --text2: #30343C; --muted: #5B626E; --faint: #8A909B;
  --accent: #0E8FA3; --accent-ink: #FFFFFF; --accent-hover: #0B7A8B;
  --good-bg: #E3F6EC; --good: #157A47; --warn-bg: #FDF1DD; --warn: #8A5A0A;
  --bad-bg: #FDE7EB; --bad: #B4233F; --info-bg: #E2F4F7; --info: #0B6E7D;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }

/* top bar */
.topbar { background: var(--bar); border-bottom: 1px solid var(--line2); position: sticky; top: 0; z-index: 20; }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-height: 44px; }
.brand:hover { color: var(--text); }
.brand b { font-size: 20px; letter-spacing: .04em; }
.brand span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.brand-lg b { font-size: 26px; } .brand-lg span { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 8px; color: var(--text2); text-decoration: none; font-size: 15px; }
.nav a[aria-current="page"] { background: var(--s2); color: var(--text); }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--s2); color: var(--text); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font: inherit; }
.menu { position: relative; }
.menu-list { position: absolute; right: 0; top: 48px; min-width: 220px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 6px; display: none; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.menu.open .menu-list { display: block; }
.menu-list a, .menu-list button { display: flex; width: 100%; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 8px; color: var(--text); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.menu-list a:hover, .menu-list button:hover { background: var(--s2); }
.menu-list .who { display: flex; gap: 12px; align-items: center; padding: 10px 12px 12px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line2); margin-bottom: 4px; line-height: 1.45; }
.menu-list .who strong { color: var(--text); font-weight: 600; }
.acct { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 4px 14px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--s2); color: var(--text); font: inherit; font-weight: 600; letter-spacing: .02em; cursor: pointer; transition: border-color .15s, background .15s; }
.acct:hover, .menu.open .acct { border-color: var(--accent); }
.acct:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.org { width: 34px; height: 34px; border-radius: 50%; background: #fff; object-fit: contain; box-shadow: 0 0 0 1px rgba(0,0,0,.10), 0 1px 3px rgba(0,0,0,.25); flex: none; }
.menu-list .who .org { width: 40px; height: 40px; }
.acct .chev { color: var(--muted); }
.org-badge { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid var(--line2); color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.org-badge img { width: 52px; height: auto; background: #fff; border-radius: 10px; padding: 6px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
@media (max-width: 560px) { .acct { padding: 4px; gap: 0; } .acct .acct-name, .acct .chev { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: var(--r); border: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { color: var(--text); border-color: var(--faint); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.btn-danger { color: var(--bad); border-color: var(--bad-bg); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn[hidden] { display: none; }                 /* v13.9: a hidden button stays hidden (the no-JS Upload buttons) */
.btn-block { width: 100%; }
.icon-btn { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--s1); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font: inherit; font-size: 18px; }

/* breadcrumb + page head */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); padding: 18px 0 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs [aria-current] { color: var(--text); font-weight: 500; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 8px 0 18px; }
.page-head h1 { font-size: 30px; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: var(--accent); text-transform: uppercase; }

/* cards, chips */
.card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--s1); border: 1px solid var(--line); font-size: 13px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: 0 0 auto; }
.status { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.status.good { background: var(--good-bg); color: var(--good); }
.status.warn { background: var(--warn-bg); color: var(--warn); }
.status.bad { background: var(--bad-bg); color: var(--bad); }
.status.info { background: var(--info-bg); color: var(--info); }
.status.neutral { background: var(--s2); color: var(--text2); }

/* alerts */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--s1); }
.alert .dot { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.alert.good .dot { background: var(--good-bg); color: var(--good); }
.alert.warn .dot { background: var(--warn-bg); color: var(--warn); }
.alert.bad .dot { background: var(--bad-bg); color: var(--bad); }
.alert.info .dot { background: var(--info-bg); color: var(--info); }
.alert strong { display: block; }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; color: var(--text2); }
.input { min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--s1); color: var(--text); font: inherit; width: 100%; }
.input:focus { border-color: var(--accent); outline: none; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; color: var(--text2); }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.search { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--s1); }
.search input { border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; width: 100%; min-width: 0; }

/* dashboard */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--text2); text-decoration: none; display: inline-flex; align-items: center; font-size: 14px; }
.tab[aria-current="page"] { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; padding-bottom: 56px; }
.pcard { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--s1); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.pcard:hover { color: var(--text); border-color: var(--faint); transform: translateY(-2px); }
.pcard .thumb { aspect-ratio: 16 / 9; background: var(--s2); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.pcard .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; padding: 32px; }
.empty img { width: 240px; border-radius: var(--r-lg); }

/* stepper */
.stepper { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.stepper a, .stepper span.step { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; border-radius: var(--r); border: 1px solid var(--line2); color: var(--text); text-decoration: none; }
.stepper .num { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; background: var(--s2); color: var(--muted); }
.stepper .lbl { display: flex; flex-direction: column; line-height: 1.2; }
.stepper .lbl small { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.stepper .lbl b { font-size: 14px; font-weight: 500; }
.stepper .done .num { background: var(--good-bg); color: var(--good); }
.stepper .current { border-color: var(--accent); background: var(--s1); }
.stepper .current .num { background: var(--accent); color: var(--accent-ink); }
.stepper .locked { opacity: .5; }

/* step layouts */
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-bottom: 48px; }
.split > .main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split > .side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 260px; border: 2px dashed var(--line); border-radius: var(--r-lg); background: var(--s1); text-align: center; padding: 24px; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .big { font-size: 17px; font-weight: 500; }
.preview { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--s2); }
.preview img { display: block; width: 100%; height: auto; }
.prompt { margin: 0; max-height: 460px; overflow: auto; white-space: pre-wrap; background: var(--s1); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--text2); }
.progress { height: 8px; border-radius: 999px; background: var(--s2); overflow: hidden; }
.progress > div { height: 100%; background: var(--accent); transition: width .4s; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: center; }
.checklist .i { width: 22px; text-align: center; }
.checklist .done .i { color: var(--good); }
.checklist .now .i { color: var(--accent); }
.checklist .todo { color: var(--faint); }

/* review workspace */
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.zoom { display: flex; gap: 6px; align-items: center; }
.zoom output { min-width: 58px; text-align: center; font-family: var(--mono); font-size: 13px; color: var(--text2); }
.compare { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text2); }
.compare input { width: 200px; accent-color: var(--accent); }
.viewport { border-radius: 14px; border: 1px solid var(--line); background: #0A0B0E; overflow: auto; max-height: 72vh; touch-action: pan-x pan-y pinch-zoom; cursor: grab; }
.viewport.dragging { cursor: grabbing; }
.stage { position: relative; width: 100%; margin: 0 auto; }
.stage img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.stage .ov { position: absolute; inset: 0; }
.stage .ov img { position: absolute; inset: 0; width: 100%; height: 100%; }
.panel { background: var(--s1); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.lrow { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--line2); }
.lrow:last-child { border-bottom: 0; }
.lrow .eye { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--s2); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lrow .eye[aria-pressed="false"] { background: transparent; color: var(--faint); }
.lrow .nm { flex: 1; font-size: 14px; font-weight: 500; }
.lrow .pc { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.lrow.off .nm { color: var(--faint); }
.keys { font-size: 12px; color: var(--muted); }
kbd { font-family: var(--mono); font-size: 11px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--s2); }

/* tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
th, td { padding: 12px 16px; text-align: left; border-top: 1px solid var(--line); vertical-align: middle; }
thead th { border-top: 0; background: var(--s1); font-size: 13px; color: var(--muted); font-weight: 600; }

/* landing */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 56px 0 40px; }
.hero .txt { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.05; letter-spacing: -.02em; }
.hero .lead { font-size: 19px; color: var(--text2); max-width: 540px; }
.hero .vis { flex: 1 1 480px; min-width: 0; position: relative; }
.hero .vis .main { border-radius: 20px; border: 1px solid var(--line); display: block; width: 100%; }
.section { padding: 64px 0; }
.section h2 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.01em; }
.cards5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.cards5 .card { display: flex; flex-direction: column; gap: 8px; }
.cards5 .n { font-family: var(--mono); color: var(--accent); }
.lgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.lcard { display: flex; gap: 16px; align-items: flex-start; }
.lcard .big-sw { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.facts > div { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--s1); }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 12px 16px; font-size: 14px; color: var(--muted); }
.ba { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.ba img { display: block; width: 100%; height: auto; }
.ba .ov { position: absolute; inset: 0; }
.ba .ov img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba-range { width: 100%; accent-color: var(--accent); margin-top: 12px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 40px; }
.footer { border-top: 1px solid var(--line2); margin-top: 32px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 26px; padding-bottom: 26px; font-size: 14px; color: var(--muted); }
.footer a { color: var(--muted); }

/* login */
.auth { display: flex; flex-wrap: wrap; min-height: calc(100vh - 1px); }
.auth .art { flex: 1 1 480px; min-height: 280px; position: relative; overflow: hidden; background: var(--s1); }
.auth .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth .art .cap .brand img { position: static; width: 48px; height: 48px; }
.auth .art .cap .brand { color: #EDEEF0; }
.auth .art .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px; background: linear-gradient(0deg, rgba(14,15,19,.95), rgba(14,15,19,0)); color: #EDEEF0; }
.auth .form { flex: 1 1 420px; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 18px; }

/* help */
.help { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-bottom: 64px; }
.help nav { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 84px; }
.help nav a { display: flex; align-items: center; min-height: 42px; padding: 0 12px; border-radius: 8px; color: var(--text2); text-decoration: none; }
.help nav a:hover { background: var(--s2); color: var(--text); }
.help article { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 36px; color: var(--text2); }
.help article h2 { color: var(--text); font-size: 24px; margin-bottom: 10px; }
.help article section > * + * { margin-top: 10px; }
details { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; }
summary { cursor: pointer; font-weight: 600; color: var(--text); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--s2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 12px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.35); z-index: 50; }

.touch-only { display: none; }
.menu-list .m-only { display: none; }
@media (max-width: 560px) { .menu-list .m-only { display: flex; } }
@media (hover: none) and (pointer: coarse) { .touch-only { display: block; } .desk-only { display: none; } }
@media (max-width: 900px) {
  .stepper { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .wrap, .wrap-narrow { padding: 0 14px; }
  .stepper { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .stepper a, .stepper span.step { justify-content: center; padding: 6px; min-height: 44px; }
  .stepper .lbl { display: none; }
  .page-head h1 { font-size: 24px; }
  .brand span { display: none; }
  .btn-new { width: 46px; padding: 0; }
  .app-nav { display: none; }
  .topbar .wrap { flex-wrap: nowrap; }
  .btn-new .txt { display: none; }
  .topbar .nav a { padding: 0 10px; }
  .compare input { width: 140px; }
  .cta { padding: 24px; }
  .empty { padding: 20px; }
  .sticky-action { position: sticky; bottom: 0; padding: 12px 0; background: var(--bg); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- review: Outline / Colour ---------- */
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--s2); border: 1px solid var(--line); }
.seg button { border: 0; background: none; color: var(--text2); font: inherit; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 7px; cursor: pointer; }
.seg button.on { background: var(--s1); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.stage .ol svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ol .lg { fill: rgba(47,107,255,0); stroke: #2F6BFF; stroke-width: 1.6px; vector-effect: non-scaling-stroke; stroke-linejoin: round; fill-rule: evenodd; cursor: pointer; transition: fill .18s, stroke-width .18s; }
.ol .lg.flow { stroke-dasharray: 9 5; animation: olflow 1.4s linear infinite; }
.ol .glow { fill: none; stroke: rgba(47,107,255,.35); stroke-width: 5px; vector-effect: non-scaling-stroke; stroke-linejoin: round; pointer-events: none; }
.ol .lg.hot { fill: rgba(47,107,255,.16); stroke: #1F4FFF; stroke-width: 2.4px; }
.ol .glow.hot { stroke: rgba(47,107,255,.55); stroke-width: 8px; }
.ol .off { display: none; }
@keyframes olflow { to { stroke-dashoffset: -28; } }
@media (prefers-reduced-motion: reduce) { .ol .lg.flow { animation: none; stroke-dasharray: none; } }
.ol-tip { position: absolute; left: 12px; top: 12px; z-index: 3; pointer-events: none; padding: 6px 10px; border-radius: 8px; background: rgba(14,15,19,.86); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em; display: flex; gap: 8px; align-items: center; }
.ol-tip .sw { width: 10px; height: 10px; border-radius: 3px; }
.lrow.hot { background: var(--s2); }

/* ---------- dashboard multi-select ---------- */
.pcard { position: relative; }
.pick { position: absolute; top: 10px; left: 10px; z-index: 2; display: none; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick .box { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: rgba(14,15,19,.72); border: 2px solid rgba(255,255,255,.85); color: transparent; box-shadow: 0 1px 4px rgba(0,0,0,.35); transition: background .12s, color .12s; }
.selecting .pick { display: block; }
.selecting .pcard { cursor: pointer; }
.pcard.sel { outline: 2px solid var(--accent); outline-offset: 2px; }
.pcard.sel .pick .box { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.bulkbar { position: sticky; bottom: 16px; z-index: 20; margin: 18px 0 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--s1); border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(0,0,0,.35); }
.bulkbar .count { font-size: 14px; color: var(--text2); padding: 0 6px; }
.bulkbar .grow { flex: 1; }
.bulkbar .btn svg { margin-right: 6px; }
.bulkbar button[disabled] { opacity: .45; cursor: not-allowed; }
[data-select-mode] svg { margin-right: 6px; }
[data-select-mode][aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
@media (max-width: 560px) { .bulkbar .txt { display: none; } .bulkbar .btn svg { margin-right: 0; } .bulkbar { bottom: 10px; } }
.ol-tip[hidden] { display: none; }
