/* Stills dashboard: the site's tokens, type and buttons (style.css), laid out flat.
   Radii: 16px for cards, 10px for every control (buttons, fields, chips, segments), round only for avatars. No shadows, no gradients. */

/* Inter 4.001 (The Inter Project Authors), SIL OFL 1.1 (Inter-OFL.txt), latin subset: the dashboard's text face. */
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
.dash { --blue: #0D0D12; --on-blue: #FFFFFF; --brand: linear-gradient(135deg, #FFFFFF, #DEDED7); --on-brand: #0D0D12; --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-card: 12px; --r-well: 18px; --r-ctl: 8px; --blue-soft: rgba(13, 13, 18, .06); --accent: var(--blue); --ok: #12805C; --warn: #B4400C;
  --shell: #F4F4F5; --panel: #FFFFFF; --paper: #F4F4F5; --well-hover: #EBEBEE; --hover: rgba(10, 10, 15, .06); --line: rgba(10, 10, 15, .09);
  --tile-edge: 0 1px 2px rgba(10, 10, 15, .05), 0 0 0 1px rgba(10, 10, 15, .04);
  background: var(--shell); color: var(--ink); }
/* Dark theme: neutral greys (no blue tint), the accent is white with ink on it, brand surfaces in the noir encre gradient;
   text accents are white. data-theme on <html> is set before first paint (dashboard.html). */
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] .dash {
  --shell: #000000; --panel: #09090B; --paper: #141416; --white: #1F1F23; --well-hover: #1C1C1F; --hover: rgba(255, 255, 255, .07);
  --ink: #F2F2F3; --grey: #A1A1A8; --grey-dark: #6C6C73; --line: rgba(255, 255, 255, .09); --tile-edge: 0 0 0 1px rgba(255, 255, 255, .05);
  --blue-soft: rgba(255, 255, 255, .08); --accent: #FFFFFF; --blue: #FFFFFF; --on-blue: #0D0D12; --brand: linear-gradient(135deg, #26262F, #050507); --on-brand: #FFFFFF; --ok: #3DD39B; --warn: #FF8F57;
}
html[data-theme="dark"] .dash .btn-primary { --sweep: #DEDED7; --sweep-ink: #0D0D12; }
.dash .h1 { font: 700 clamp(26px, 2.4vw, 32px)/1.1 var(--display); letter-spacing: -.025em; }
.dash .h3 { display: flex; align-items: center; gap: 10px; font: 700 17px/1.2 var(--display); letter-spacing: -.01em; }
.eyebrow, .label { font: 500 11px/1.3 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.muted { color: var(--grey); }
.small { font-size: 13px; line-height: 1.45; }
.sub { display: block; }
.warn { color: var(--warn); font-weight: 500; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Shell ---------- */
.app { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100svh; }
.side { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; gap: 22px; padding: 22px 12px 12px; }
.side-logo { display: inline-flex; align-items: center; gap: .28em; padding: 0 12px; font-size: 22px; color: var(--accent); }
.side-logo svg { width: 1.25em; height: auto; aspect-ratio: 494 / 382; }
.side-logo span { position: relative; top: .055em; font: 700 1em/1 var(--display); letter-spacing: -.04em; }
.side-nav { display: grid; gap: 2px; }
.side-nav a, .tabbar a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r-ctl); font-weight: 500; font-size: 14px; color: var(--grey); transition: background-color .2s, color .2s, box-shadow .2s; }
.side-nav .ico { width: 17px; height: 17px; }
.side-nav a:hover { color: var(--ink); background: var(--hover); }
.side-nav a.is-on { color: var(--ink); background: var(--panel); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(10, 10, 15, .04); }
.side-nav a.is-on .ico { color: var(--accent); }
.nav-n { margin-left: auto; font: 500 12px/1 var(--text); color: var(--accent); }
.side-foot { margin-top: auto; display: grid; gap: 10px; padding: 12px 4px 0; border-top: 1px solid var(--line); }
.side-reset, .side-out { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; font: 500 13px/1.4 var(--text); color: var(--grey); }
.side-reset { font-weight: 400; font-size: 12px; text-decoration: underline; text-underline-offset: 2px; }
.side-out:hover, .side-reset:hover { color: var(--ink); }

.role { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px; border-radius: var(--r-ctl); background: var(--hover); }
.role button { min-height: 28px; padding: 0 10px; border: 0; border-radius: 6px; background: none; font: 500 13px/1 var(--text); color: var(--grey); transition: background-color .2s, color .2s; }
.role button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(10, 10, 15, .05); }

.topbar, .tabbar { display: none; }
.view { min-width: 0; margin: 8px 8px 8px 0; min-height: calc(100svh - 16px); padding: 32px max(clamp(16px, 3vw, 40px), calc((100% - 1280px) / 2)) 64px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); outline: none; }
/* Page change: content rises once on the bell curve (no fade, no loop). */
@keyframes rise { from { transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .view.is-in > * { animation: none; } }

/* Login: the shell steps aside. */
body.is-login .side, body.is-login .topbar, body.is-login .tabbar { display: none !important; }
body.is-login .app { grid-template-columns: minmax(0, 1fr); }
body.is-login .view { display: grid; place-items: center; min-height: 100svh; margin: 0; padding: 24px 16px; border: 0; border-radius: 0; background: var(--shell); }
.login { width: min(100%, 440px); display: grid; gap: 18px; justify-items: start; padding: clamp(24px, 5vw, 40px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); }
.login-logo { display: inline-flex; align-items: center; gap: .28em; font-size: 26px; color: var(--accent); margin-bottom: 6px; }
.login-logo svg { width: 1.25em; height: auto; aspect-ratio: 494 / 382; }
.login-logo span { position: relative; top: .055em; font: 700 1em/1 var(--display); letter-spacing: -.04em; }
.login-lead { color: var(--grey); }
.login-why { display: grid; gap: 8px; font-size: 14px; }
.login-why li, .ticks li { display: flex; gap: 10px; align-items: flex-start; }
.login-why .ico, .ticks .ico { color: var(--accent); margin-top: 2px; }

/* ---------- Buttons: one family. 44px (36px small), 10px radius, the site's sweep on hover. ---------- */
.dash .btn { gap: 8px; min-height: 38px; padding: 0 14px; border-radius: var(--r-ctl); font: 500 14px/1 var(--text); white-space: nowrap; }
.dash .btn::before { border-radius: inherit; }
.dash .btn-primary { background: var(--blue); color: var(--on-blue); --sweep: #26262F; --sweep-ink: #FFFFFF; }
.dash .btn-secondary { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(10, 10, 15, .04); --sweep: var(--blue); --sweep-ink: var(--on-blue); }
.dash .btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn-wide { width: 100%; }
.dash .btn:disabled { opacity: .4; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--r-ctl); background: var(--panel); color: var(--grey); box-shadow: inset 0 0 0 1px var(--line); transition: color .2s, background-color .2s; }
.icon-btn .ico { width: 16px; height: 16px; }
.icon-btn:hover { color: var(--accent); background: var(--blue-soft); }
.icon-btn:disabled { opacity: .35; pointer-events: none; }
.more, .link-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 13px; color: var(--accent); }
.link-back { color: var(--grey); margin-bottom: 18px; font-size: 14px; transition: color .4s var(--ease-io); }
.link-back:hover { color: var(--accent); }

/* Segmented control (filters, tabs). */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-ctl); background: var(--hover); }
.seg :is(button, a) { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border: 0; border-radius: 6px; background: none; font: 500 13px/1 var(--text); color: var(--grey); transition: background-color .2s, color .2s; }
.seg :is(button, a):hover { color: var(--ink); }
.seg :is(button[aria-pressed="true"], a[aria-current="page"]) { background: var(--panel); color: var(--accent); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(10, 10, 15, .05); }
.seg-tabs { margin-bottom: 20px; }

/* ---------- Building blocks ---------- */
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.head .eyebrow { margin-bottom: 4px; font: 400 14px/1.3 var(--text); letter-spacing: 0; text-transform: none; }
/* Discord roles under the name, each with its server badge. */
.roles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.roles li { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px 0 5px; line-height: 1; border-radius: var(--r-ctl); background: var(--paper); font-weight: 500; font-size: 13px; }
.roles img { width: 22px; height: 22px; object-fit: contain; translate: 0 1px; } /* the badge face sits above its 3D base: nudge it so face and text share a centre */
.head-actions, .btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.head-order { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.head-order .svc { width: 48px; height: 48px; }
.head-order .svc .ico { width: 24px; height: 24px; }
.card { min-width: 0; background: var(--white); border: 6px solid var(--paper); border-radius: var(--r-well); padding: 16px 18px; box-shadow: inset 0 0 0 1px var(--line); }
.card > .h3 { margin-bottom: 14px; }
.card > .h3 + .muted { margin: -6px 0 14px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.block { margin-bottom: 32px; }
.stack { display: grid; gap: 16px; align-content: start; min-width: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; align-items: start; }
.empty { display: grid; justify-items: start; gap: 14px; padding: 24px; background: var(--paper); border-radius: var(--r-well); color: var(--grey); }
.hint { margin: -12px 0 18px; }
.foot-note { margin-top: 20px; }
.svc { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: var(--r-ctl); background: var(--blue-soft); color: var(--accent); }
.svcs { display: flex; gap: 4px; }
.svcs .svc, .kcard-top .svc, .vis-head .svc { width: 28px; height: 28px; }
.svcs .svc .ico, .kcard-top .svc .ico, .vis-head .svc .ico { width: 15px; height: 15px; }

/* Big numbers first. */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { display: grid; gap: 6px; align-content: start; padding: 14px 16px; background: var(--white); border: 6px solid var(--paper); border-radius: var(--r-well); box-shadow: inset 0 0 0 1px var(--line); transition: border-color .2s; }
a.kpi:hover { border-color: var(--well-hover); }
.kpi-l { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13px; color: var(--grey); }
.kpi-l .ico { width: 16px; height: 16px; color: var(--accent); }
.kpi strong { font: 700 clamp(28px, 2.6vw, 38px)/1 var(--display); letter-spacing: -.02em; }
.kpi-sub { font-size: 13px; font-weight: 500; color: var(--accent); }
.nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.nums div { display: grid; gap: 4px; }
.nums span { font-size: 13px; color: var(--grey); font-weight: 500; }
.nums strong { font: 700 26px/1.15 var(--display); letter-spacing: -.02em; } /* at /1 the glyphs spill out of the line and the widget grows a scrollbar */

/* Lists with an icon, text and an end. */
.alist { display: grid; grid-template-columns: minmax(0, 1fr); }
.alist li + li { border-top: 1px solid var(--line); }
.alist a { display: flex; align-items: center; gap: 12px; padding: 10px 2px; }
.alist a > span:not(.row-end):not(.svc) { display: grid; min-width: 0; flex: 1; }
.alist a strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .4s var(--ease-io); }
.alist a > .ico:first-child { color: var(--accent); }
.alist a:hover strong { color: var(--accent); }
.alist .go { color: var(--grey); }
.row-end { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; flex: none; }
.rows { display: grid; grid-template-columns: minmax(0, 1fr); }
.rows li { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 11px 0; }
.rows li + li { border-top: 1px solid var(--line); }
.rows li > span:first-child { display: grid; min-width: 0; flex: 1 1 150px; }
.rows .row-end { flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
.gain { font: 500 14px/1 var(--text); color: var(--accent); white-space: nowrap; }
.ticks { display: grid; gap: 8px; font-size: 14px; }
.ticks.is-next, .ticks.is-next .ico { color: var(--grey); }
.next-perks { margin: 18px 0 10px; }

/* Notifications. */
.nlist { display: grid; grid-template-columns: minmax(0, 1fr); }
.nlist li + li { border-top: 1px solid var(--line); }
.nlist a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 11px 2px; font-size: 14px; }
.nlist .ico { color: var(--grey); margin-top: 2px; }
.nlist time { font-size: 12px; color: var(--grey); white-space: nowrap; }
.nlist li.is-new a { font-weight: 500; }
.nlist li.is-new .ico { color: var(--accent); }
.nlist a:hover span { color: var(--accent); }
.prefs { display: grid; gap: 12px; margin-top: 14px; }

/* Switch (a checkbox drawn as a toggle). */
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.switch input { appearance: none; position: relative; width: 36px; height: 22px; margin: 0; flex: none; border-radius: 11px; background: var(--grey-dark); transition: background-color .4s var(--ease-io); }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); transition: transform .4s var(--ease-io); }
.switch input:checked { background: var(--blue); }
.switch input:checked::after { transform: translateX(14px); }

/* Progress meter. */
.meter { display: block; height: 8px; border-radius: 4px; background: var(--paper); overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--p); border-radius: inherit; background: var(--blue); }
.meter.on-blue { background: color-mix(in srgb, var(--on-brand) 20%, transparent); }
.meter.on-blue i { background: var(--on-brand); }

/* ---------- Client ---------- */
.order-card { display: grid; gap: 16px; padding: 16px 18px; background: var(--white); border: 6px solid var(--paper); border-radius: var(--r-well); box-shadow: inset 0 0 0 1px var(--line); transition: border-color .2s; }
.order-card:hover { border-color: var(--well-hover); }
.oc-head { display: flex; align-items: center; gap: 12px; }
.oc-title { display: grid; min-width: 0; flex: 1; }
.oc-title strong { font: 700 17px/1.2 var(--display); }
.oc-price { font: 700 18px/1 var(--display); white-space: nowrap; }
.oc-now, .now-text { font-weight: 500; font-size: 15px; }

/* Tracker: numbered dots joined by a line. */
.track { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.track li { position: relative; display: grid; justify-items: center; align-content: start; gap: 8px; text-align: center; font-size: 12px; font-weight: 500; color: var(--grey); }
.track li::before { content: ""; position: absolute; top: 13px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.track li:first-child::before { display: none; }
.track li:is(.done, .now)::before { background: var(--blue); }
.track i { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 2px var(--line); font: 500 12px/1 var(--text); font-style: normal; }
.track i .ico { width: 14px; height: 14px; stroke-width: 2.4; }
.track .done i { background: var(--blue); color: var(--on-blue); box-shadow: none; }
.track .now i { color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.track .now { color: var(--ink); }
.track span { max-width: 100%; overflow-wrap: anywhere; }
.track.is-off { opacity: .5; }
.now { display: grid; gap: 20px; margin-bottom: 16px; }
.now-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Loyalty hero: flat blue, the tier art was drawn for it. */
.loyal { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 20px 40px; align-items: center; padding: 24px 28px; margin-bottom: 16px; border-radius: var(--r-card); background: var(--brand); color: var(--on-brand); }
.loyal .eyebrow { color: color-mix(in srgb, var(--on-brand) 70%, transparent); }
.loyal-tier { display: flex; align-items: center; gap: 14px; }
.loyal-name { font: 700 30px/1 var(--display); letter-spacing: -.02em; margin-top: 4px; }
.loyal-bal { display: grid; }
.loyal-bal strong { font: 700 clamp(40px, 4vw, 56px)/1 var(--display); letter-spacing: -.03em; }
.loyal-bal span { font-weight: 500; font-size: 14px; color: color-mix(in srgb, var(--on-brand) 70%, transparent); }
.loyal-next { display: grid; gap: 8px; font-weight: 500; }
.loyal-next .small { font-weight: 400; color: color-mix(in srgb, var(--on-brand) 70%, transparent); }
.tier-img { width: 72px; height: 72px; object-fit: contain; flex: none; }
.ladder { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--on-brand) 20%, transparent); }
.ladder li { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: var(--r-ctl); text-align: center; font-size: 12px; color: color-mix(in srgb, var(--on-brand) 70%, transparent); }
.ladder .tier-img { width: 44px; height: 44px; opacity: .45; margin-bottom: 4px; }
.ladder strong { font-size: 14px; color: var(--on-brand); }
.ladder .is-past .tier-img { opacity: .8; }
.ladder .is-on { background: color-mix(in srgb, var(--on-brand) 10%, transparent); }
.ladder .is-on .tier-img { opacity: 1; }

/* ---------- Tables ---------- */
.table-card { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { padding: 10px 16px; text-align: left; font: 500 12px/1.3 var(--text); color: var(--grey); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--paper); }
.num-cell { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos { color: var(--ok); font-weight: 500; }
.neg { color: var(--grey); font-weight: 500; }
.row-link { display: grid; }
.row-link:hover strong { color: var(--accent); }
.sort { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.sort[aria-sort$="ending"] { color: var(--accent); }
.sort .ico { width: 13px; height: 13px; }

/* Toolbar: search and filters. */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-bottom: 18px; }
.toolbar select, .field :is(input, select, textarea), .member-top select, .notes, .search input {
  min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel); font: 400 14px/1.4 var(--text); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.search { position: relative; flex: 1 1 240px; display: flex; align-items: center; }
.search .ico { position: absolute; left: 12px; color: var(--grey); pointer-events: none; }
.search input { width: 100%; padding-left: 40px; }
:is(.toolbar, .field, .member-top) :is(input, select, textarea):focus, .notes:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--blue-soft); }

/* Forms. */
.field { display: grid; gap: 6px; min-width: 0; margin: 0 0 14px; padding: 0; border: 0; }
.field > span, .field > legend { padding: 0; font-weight: 500; font-size: 13px; color: var(--grey); }
.field > legend { margin-bottom: 6px; }
.field input, .field select { width: 100%; }
.field textarea { width: 100%; padding: 10px 12px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: var(--r-ctl); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; font-size: 13px; color: var(--grey); transition: background-color .2s, color .2s, box-shadow .2s; }
.chip input:checked + span { background: var(--blue-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-narrow { max-width: 760px; }
.price-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; padding-top: 16px; border-top: 1px solid var(--line); }
.price-form .field { margin: 0; flex: 0 1 200px; }

/* Order page facts and history. */
.events { display: grid; }
/* Ticket chat: the Discord thread, row by row (avatar, name, time, text). Staff names in blue, like a role colour. */
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.card > .chat-head .h3 { margin: 0; }
.chat-log { display: grid; gap: 16px; max-height: 440px; overflow-y: auto; overscroll-behavior: contain; margin-top: 14px; padding: 16px 0; border-block: 1px solid var(--line); }
.chat-log li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.chat-log .av { width: 34px; height: 34px; font-size: 14px; box-shadow: none; background: var(--paper); color: var(--ink); }
.chat-log .is-staff .av { background: var(--blue); color: var(--on-blue); }
.chat-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 12px; color: var(--grey); }
.chat-meta strong { font-size: 14px; color: var(--ink); }
.is-staff .chat-meta strong { color: var(--accent); }
.chat-text { margin-top: 2px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding-top: 14px; }
.chat-form textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 160px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--white); font: 400 14px/1.4 var(--text); color: var(--ink); resize: vertical; }
.events li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 14px; }
.events li + li { border-top: 1px solid var(--line); }
.events time { color: var(--grey); white-space: nowrap; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 0 0 16px; font-size: 14px; }
.facts dt { color: var(--grey); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.avatars { display: inline-flex; }
.av { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--blue-soft); color: var(--accent); font: 500 12px/1 var(--text); box-shadow: 0 0 0 2px var(--white); }
.av + .av { margin-left: -6px; }
.av-l { width: 44px; height: 44px; font-size: 18px; }

/* ---------- Boards ---------- */
.board { display: grid; grid-template-columns: repeat(var(--n), minmax(150px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.col { display: flex; flex-direction: column; min-width: 0; border-radius: var(--r-ctl); background: var(--paper); transition: box-shadow .3s var(--ease-io); }
.col.is-over { box-shadow: inset 0 0 0 2px var(--accent); }
.col-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px 6px; }
.col-head h3 { font: 500 13px/1.2 var(--text); }
.col-body { display: grid; gap: 8px; align-content: start; padding: 4px 8px 8px; min-height: 64px; }
.col-empty { padding: 10px 4px; font-size: 13px; color: var(--grey-dark); }
.kcard { display: grid; gap: 4px; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 1px 2px rgba(10, 10, 15, .04); touch-action: pan-y; -webkit-user-select: none; user-select: none; transition: border-color .3s var(--ease-io); }
.kcard:hover { border-color: var(--accent); }
.kcard strong { font-size: 14px; line-height: 1.3; }
.kcard-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.kcard-ref { font-size: 12px; font-weight: 500; color: var(--grey); }
.kcard-step { justify-self: start; font-size: 12px; font-weight: 500; color: var(--accent); }
.kcard-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.kcard-tags > span { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border-radius: 6px; font: 500 11px/1 var(--text); }
.kcard-sub { background: var(--paper); color: var(--grey); box-shadow: inset 0 0 0 1px var(--line); }
.kcard-tags .kcard-step { background: var(--blue-soft); }
.kcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.kcard.is-source { opacity: .35; }
.kcard.is-lifted { border-color: var(--accent); }
.kcard.is-ghost { position: fixed; z-index: 50; pointer-events: none; border-color: var(--accent); box-shadow: 0 12px 30px rgba(10, 10, 15, .16); } /* the one shadow: something held in the hand */
body.is-dragging, body.is-dragging * { cursor: var(--cur-grab) !important; -webkit-user-select: none; user-select: none; }
.lane { margin-bottom: 16px; background: var(--white); border: 6px solid var(--paper); border-radius: var(--r-well); box-shadow: inset 0 0 0 1px var(--line); } /* white tile in its grey well: the grey columns only read on white */
.lane { padding: 0; }
.lane-head button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 18px; border: 0; background: none; color: inherit; text-align: left; cursor: var(--cur-pointer); }
.lane-head .h3 { font: 700 18px/1.2 var(--display); }
.lane-chev { margin-left: auto; color: var(--grey); rotate: 180deg; transition: rotate .45s var(--ease-io), color .3s var(--ease-io); }
.lane-head button:hover .lane-chev { color: var(--ink); }
.lane.is-open .lane-chev { rotate: 0deg; }
.lane-head button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--r-card); }
/* Fold: grid rows 0fr to 1fr animates the real height; the content fades a beat behind. */
.lane-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-io); }
.lane.is-open .lane-body { grid-template-rows: 1fr; }
.lane-in { min-height: 0; overflow: hidden; }
.lane-in > .board { padding: 0 18px 16px; opacity: 0; translate: 0 -6px; transition: opacity .3s var(--ease-io), translate .45s var(--ease-io); }
.lane.is-open .lane-in > .board { opacity: 1; translate: none; transition-delay: .08s; }
.lane:not(.is-open) { margin-bottom: 8px; }

/* ---------- Widget grid: 6 columns, rows of 150px; each widget spans --w columns and --h rows ---------- */
.wgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 150px; grid-auto-flow: dense; gap: 16px; }
.widget { grid-column: span var(--w); grid-row: span var(--h); display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 6px; background: var(--paper); border-radius: var(--r-well); }
.w-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 40px; padding: 2px 6px 4px 10px; }
.w-head h2 { display: flex; align-items: center; gap: 8px; min-width: 0; font: 500 13px/1.2 var(--text); color: var(--grey); }
.w-head h2 .ico { width: 16px; height: 16px; color: var(--accent); }
.w-tools { display: flex; gap: 4px; flex: none; }
.w-body { flex: 1; min-height: 0; overflow: auto; padding: 16px; background: var(--white); border-radius: var(--r-card); box-shadow: var(--tile-edge); }
.wgrid.is-edit .w-body { pointer-events: none; opacity: .6; transition: opacity .2s; }
.widget.is-moving { background: var(--blue-soft); }
.w-handle { cursor: var(--cur-grab); touch-action: none; }
.edit-hint { margin: -14px 0 16px; }
.wlib { margin-bottom: 16px; }
.wlib-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0 24px; }
.wlib-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.wlib-list li > .ico { color: var(--accent); }
.wlib-list li > span { display: grid; flex: 1; min-width: 0; }
.widget .board { height: 100%; }
.widget .col-body { overflow: auto; }
.notes { display: block; width: 100%; height: 100%; min-height: 100px; padding: 10px 12px; resize: none; }
.level { display: grid; gap: 8px; }
.level-n { font: 700 20px/1.1 var(--display); }
.hbars { display: grid; gap: 10px; }
.hbars li { display: grid; grid-template-columns: minmax(70px, 1fr) minmax(0, 2fr) auto; align-items: center; gap: 10px; font-size: 13px; }
.hbars li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.hbars b { font-size: 13px; white-space: nowrap; }
.vbars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; height: 100%; min-height: 120px; }
.vbars div { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 6px; min-height: 0; text-align: center; }
.vbars b { font-size: 11px; color: var(--grey); white-space: nowrap; overflow: hidden; }
.vbars i { align-self: end; height: var(--p); min-height: 3px; border-radius: 6px 6px 2px 2px; background: var(--blue); }
.vbars span { font-size: 12px; color: var(--grey); font-weight: 500; }

/* ---------- Manager: team, site ---------- */
.member { display: grid; gap: 16px; container-type: inline-size; }
@container (max-width: 380px) { .member-top { grid-template-columns: auto minmax(0, 1fr); } .member-top > label { grid-column: 1 / -1; } } /* narrow card: the role picker drops under the name instead of squeezing it */
.member-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.member-top select { min-height: 36px; }
.member-load { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.member-del { justify-self: start; }
.member .field { margin: 0; }
.note-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 16px; background: var(--white); border: 1px dashed var(--line); border-radius: var(--r-card); }
.site-pro { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 16px; align-items: start; }
.pro-list { display: grid; gap: 12px; padding: 10px; }
.pro-list ul { display: grid; gap: 2px; max-height: 60vh; overflow: auto; }
.pro-list li button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 0; border-radius: var(--r-ctl); background: none; text-align: left; font: inherit; color: inherit; transition: background-color .4s var(--ease-io); }
.pro-list li button:hover { background: var(--paper); }
.pro-list li button[aria-pressed="true"] { background: var(--blue-soft); }
.pro-list li button > span:last-child { display: grid; min-width: 0; font-size: 14px; }
.pro-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-thumb { display: grid; place-items: center; width: 48px; height: 48px; flex: none; overflow: hidden; border-radius: 8px; background: var(--brand); color: var(--on-brand); }
.pro-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pro-thumb svg { width: 18px; height: auto; aspect-ratio: 208 / 206; }
.pro-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pro-tools { display: flex; gap: 4px; }
.drop { position: relative; display: grid; place-items: center; align-content: center; gap: 6px; min-height: 160px; overflow: hidden; border: 1px dashed var(--grey-dark); border-radius: var(--r-ctl); background: var(--paper); color: var(--grey); font-size: 13px; font-weight: 500; text-align: center; transition: border-color .4s var(--ease-io), color .4s var(--ease-io); }
.drop:hover { border-color: var(--accent); color: var(--accent); }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: var(--cur-pointer); }
.drop-s { min-height: 0; height: 100%; }
.drop-photo { width: 96px; min-height: 0; aspect-ratio: 1; border-radius: 50%; }
.tile-preview { position: relative; display: grid; align-content: end; min-height: 160px; padding: 14px; overflow: hidden; border-radius: var(--r-ctl); background: var(--brand); color: var(--on-brand); }
.tile-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-preview:has(img) { background: var(--ink); color: #fff; }
.tile-preview:has(img)::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(10, 10, 15, .28); } /* same veil as the site tiles */
.tile-preview > span { z-index: 2; }
.tile-preview svg { position: absolute; top: 50%; left: 50%; width: 40px; height: auto; aspect-ratio: 208 / 206; translate: -50% -50%; color: var(--on-brand); }
.tile-preview > span { position: relative; display: grid; font-size: 13px; }
.tile-preview strong { font: 700 16px/1.2 var(--display); }
.vis-group + .vis-group { margin-top: 14px; }
.vis-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; }
.vis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.vis-grid li { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-ctl); background: var(--paper); }
.vis-grid img { width: 100%; height: 100%; object-fit: cover; }
.vis-file { display: grid; place-items: center; height: 100%; padding: 6px; font-size: 11px; text-align: center; overflow-wrap: anywhere; color: var(--grey); }
.vis-grid .icon-btn { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; }
.person { display: grid; gap: 10px; justify-items: start; }
.person .field { width: 100%; margin: 0; }
.add-card { display: grid; place-items: center; align-content: center; gap: 8px; min-height: 200px; border-style: dashed; font: 500 14px/1 var(--text); color: var(--grey); transition: color .4s var(--ease-io), border-color .4s var(--ease-io); }
.add-card:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: min(92vw, 460px); padding: 12px 18px; border-radius: var(--r-ctl); background: var(--ink); color: var(--white); font-weight: 500; font-size: 14px; translate: -50% 18px; scale: .94; opacity: 0; filter: blur(6px); visibility: hidden; transition: translate .4s var(--ease-io), scale .4s var(--ease-io), opacity .3s var(--ease-io), filter .3s var(--ease-io), visibility 0s .4s; } /* hidden once away: on mobile it rests above the tab bar, so sliding alone left it on the bar */
.toast.is-on { translate: -50% 0; scale: 1; opacity: 1; filter: none; visibility: visible; transition: translate .5s var(--ease-out), scale .5s var(--ease-out), opacity .3s var(--ease-io), filter .3s var(--ease-io); } /* rises in with fade, blur and scale */

/* ---------- Tablet ---------- */
@media (max-width: 1180px) {
  .split, .site-pro, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .loyal { grid-template-columns: auto minmax(0, 1fr); }
  .loyal-next { grid-column: 1 / -1; }
  .kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .widget { grid-column: span 1; }
  .widget:is([data-w="4"], [data-w="6"]) { grid-column: span 2; }
  .pro-list ul { max-height: 280px; }
}
@media (max-width: 1024px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .topbar { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: max(10px, env(safe-area-inset-top)) 16px 10px; background: var(--panel); border-bottom: 1px solid var(--line); }
  .topbar .side-logo { padding: 0; font-size: 20px; }
  .topbar-right { display: flex; gap: 8px; align-items: center; }
  .tabbar { position: fixed; inset: auto 0 0; z-index: 20; display: flex; padding: 6px 4px max(6px, env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line); }
  .tabbar a { position: relative; flex: 1 1 0; min-width: 0; flex-direction: column; gap: 4px; padding: 6px 0; font-size: 10.5px; text-align: center; }
  .tabbar a span { max-width: 100%; line-height: 1.15; hyphens: auto; } /* long labels (FR) go on two lines instead of being cut */
  .tabbar a.is-on { color: var(--accent); }
  .tabbar .nav-n { position: absolute; top: 2px; left: calc(50% + 10px); margin: 0; font-size: 11px; }
  .dash { background: var(--panel); }
  .view { margin: 0; min-height: 0; padding: 24px 16px 110px; border: 0; border-radius: 0; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .topbar .side-logo span { display: none; }
  .topbar-right .role button { padding: 0 8px; font-size: 12px; }
  .head { margin-bottom: 20px; }
  .head-actions { width: 100%; }
  .head-actions .btn { flex: 1 1 auto; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpis > :first-child:nth-last-child(3) { grid-column: 1 / -1; }
  .kpi { padding: 14px 16px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .loyal { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 16px; }
  .ladder { gap: 2px; }
  .ladder li { padding: 8px 2px; font-size: 10px; }
  .ladder strong { font-size: 11px; }
  .ladder .tier-img { width: 32px; height: 32px; }
  .wgrid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .widget, .widget:is([data-w="4"], [data-w="6"]) { grid-column: auto; grid-row: auto; }
  .w-body { overflow: visible; } /* one column, natural height: no small inner scrollbars on a phone */
  .widget .board { height: auto; }
  .w-head { flex-wrap: wrap; }
  .vbars { height: 160px; }
  .hide-s { display: none; }
  .table th, .table td { padding: 10px 12px; }
  .track li { font-size: 10px; }
  .track span { display: none; }
  .track .now span { display: block; }
  .now-row .btn, .btn-row, .btn-row .btn { flex: 1 1 auto; }
  .price-form .field { flex: 1 1 100%; }
  .price-form .btn { flex: 1 1 auto; }
  .toolbar > label:not(.search):not(.switch) { flex: 1 1 calc(50% - 5px); }
  .toolbar select { width: 100%; }
  .member-top { grid-template-columns: auto minmax(0, 1fr); }
  .member-top > label { grid-column: 1 / -1; }
  .nlist a { grid-template-columns: auto minmax(0, 1fr); }
  .nlist time { grid-column: 2; }
}

/* Service colours: Stills' exact codes, never mixed or shaded. The tile is the colour itself, the icon is ink on it
   (4.7:1 or more on each), the same in both themes. */
[data-svc="design"], [data-svc="video"] { --svc-from: #F7A06A; --svc: #F27B36; } [data-svc="web"] { --svc-from: #A0D4FF; --svc: #5AB2FF; } [data-svc="dev"], [data-svc="config"] { --svc-from: #8F8FFF; --svc: #5B5BF0; }
[data-svc="build"], [data-svc="builds"], [data-svc="3d"] { --svc-from: #5EE0B0; --svc: #10B981; } [data-svc="management"] { --svc-from: #FFB3E6; --svc: #FF6FD8; }
.svc[data-svc] { color: #0A0A0F; background: linear-gradient(135deg, var(--svc-from), var(--svc)); }

/* Live mode (Discord session): no demo switches. */
.is-live .role:has([data-role]), .is-live [data-t="demoView"], .is-live .side-reset { display: none; }

/* Team page in live mode: the access level read from Discord, not editable here. */
.member-top .tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: var(--r-ctl); background: var(--blue-soft); color: var(--accent); font: 500 12px/1 var(--text); white-space: nowrap; }

/* Discord avatars: same round shape as the initials, the photo fills it. */
img.av { object-fit: cover; padding: 0; background: var(--paper); }
.head-me { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 18px; }
.head-me .head-actions { align-self: end; }
.av-me { width: 64px; height: 64px; font-size: 26px; box-shadow: none; }
@media (max-width: 640px) { .head-me { grid-template-columns: auto minmax(0, 1fr); } .head-me .head-actions { grid-column: 1 / -1; } .av-me { width: 52px; height: 52px; } }

/* The bot-down page reuses the login card; it never shows the demo switches. */
.is-login .role:has([data-role]), .is-login [data-t="demoView"], .is-login .side-reset { display: none; }

/* Thin scrollbars in the page colours: the native grey bar with arrows looked broken, above all in dark mode. */
.dash, .dash * { scrollbar-width: thin; scrollbar-color: var(--grey-dark) transparent; }

/* Press: everything clickable gives a little under the finger, and springs back on release. */
.dash :is(.icon-btn, .seg button, .role button, .chip span, .kcard, .order-card) { transition-property: scale, background-color, color, border-color, box-shadow; transition-duration: .25s; transition-timing-function: var(--ease-out); }
.dash :is(.icon-btn, .seg button, .role button):active { scale: .96; } /* not .btn: scaling it shows its colour sweep as a thin outline */
.dash :is(.chip:active span, .kcard:active:not(.is-source), .order-card:active) { scale: .98; }
@media (prefers-reduced-motion: reduce) { .lane-body, .lane-in > .board, .lane-chev, .toast, .toast.is-on { transition: none; } .dash :is(.icon-btn, .seg button, .role button, .chip span, .kcard, .order-card):active { scale: none; } }

/* Chat: tools (files, emoji), pending files, and pictures / files / links inside messages. */
.chat-form { flex-wrap: wrap; border-radius: var(--r-ctl); transition: box-shadow .3s var(--ease-io); }
.chat-form.is-drop { box-shadow: 0 0 0 2px var(--accent); }
.chat-tools { position: relative; display: flex; gap: 6px; align-self: center; }
.chat-tools label.icon-btn { cursor: var(--cur-pointer); }
.chat-tools label.icon-btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.emoji-pop { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 30; display: grid; grid-template-columns: repeat(8, 34px); gap: 2px; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-ctl); box-shadow: 0 12px 30px rgba(10, 10, 15, .16); transform-origin: bottom left; animation: pop-in .22s var(--ease-out); }
.emoji-pop[hidden] { display: none; }
.emoji-pop button { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: none; font-size: 20px; line-height: 1; cursor: var(--cur-pointer); }
.emoji-pop button:hover { background: var(--paper); }
@keyframes pop-in { from { opacity: 0; scale: .92; translate: 0 4px; } }
.chat-files { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.chat-files li { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; max-width: 100%; padding: 0 4px 0 10px; border-radius: 8px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 500; }
.chat-files li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-files li .ico { width: 14px; height: 14px; color: var(--grey); flex: none; }
.chat-files li em { padding-right: 6px; font-style: normal; font-weight: 400; color: var(--grey); }
.chat-files li.is-busy { opacity: .7; }
.chat-files button { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--grey); cursor: var(--cur-pointer); }
.chat-files button:hover { color: var(--ink); background: var(--white); }
.chat-img { display: block; width: fit-content; margin: 6px 0 2px; }
.chat-img img { display: block; max-width: min(100%, 320px); max-height: 240px; border-radius: var(--r-ctl); border: 1px solid var(--line); object-fit: cover; }
.chat-file { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0; padding: 6px 10px; border-radius: 8px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 500; }
.chat-file .ico { width: 14px; height: 14px; }
.chat-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .emoji-pop { animation: none; } }

/* Messages page: the chat rows as a searchable list, each one opening its order. */
.chat-head-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.log-list { padding: 4px 0; }
.log-list li + li { border-top: 1px solid var(--line); }
.log-list a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 20px; transition: background-color .3s var(--ease-io); }
.log-list a:hover { background: var(--paper); }
.log-list .av { width: 34px; height: 34px; font-size: 14px; box-shadow: none; }
.log-list .chat-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.log-list mark { --m: color-mix(in srgb, var(--accent) 24%, transparent); background: var(--m); color: var(--ink); border-radius: 3px; box-shadow: 0 0 0 2px var(--m); }

/* Client account (manager): the latest messages, compact. */
.log-mini a { padding: 10px 0; grid-template-columns: minmax(0, 1fr); }
.log-mini a:hover { background: none; }
.log-mini a:hover .chat-text { color: var(--accent); }
.log-mini .chat-text { -webkit-line-clamp: 2; }

/* Order history: the message that matched the search, under the order. */
.hist-hit { display: flex; gap: 6px; align-items: flex-start; max-width: 520px; margin-top: 6px; font-size: 13px; color: var(--grey); }
.hist-hit .ico { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.hist-hit span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hist-hit b { color: var(--ink); }
.table mark { --m: color-mix(in srgb, var(--accent) 24%, transparent); background: var(--m); color: var(--ink); border-radius: 3px; box-shadow: 0 0 0 2px var(--m); }
.brief-text { font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.file-list { display: grid; gap: 6px; }
.file-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.file-list .chat-file { min-width: 0; margin: 0; }
.file-list .chat-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Website > Services: one card per service. */
.svc-edit { display: grid; gap: 12px; align-content: start; }
.svc-edit .vis-head { margin: 0; }

/* Website > Projects: a YouTube visual shows its thumbnail with a play mark; the link field sits under the visuals. */
.vis-grid li .vis-yt { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(10, 10, 15, .7); color: #fff; pointer-events: none; }
.vis-grid li .vis-yt .ico { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.yt-field { margin-top: 8px; }

/* Website > Projects: icon and description side by side. */
.pro-about { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; align-items: start; }
.drop-icon { min-height: 0; aspect-ratio: 1; border-radius: 28%; }
.drop-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pro-desc { display: grid; gap: 12px; }
.pro-desc textarea { width: 100%; resize: vertical; }
@media (max-width: 640px) { .pro-about { grid-template-columns: 1fr; } .drop-icon { width: 120px; } }

/* Until the session is known, the sidebar stays empty (no flash of the demo controls). */
.is-booting :is(.side-nav, .side-foot) { visibility: hidden; }

/* Website > Projects: icon and cover side by side, same height; the YouTube box is a plain input under the visuals. */
.drop-cover { min-height: 0; height: 140px; }
.drop-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vis-group .yt-field { width: 100%; }

/* Sidebar foot: language, theme, sounds and log out as plain icons in one row. */
.side-icons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.side-icons :is(button, a) { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0; justify-content: center; border: 0; border-radius: var(--r-ctl); background: none; color: var(--grey); font: 500 12px/1 var(--text); transition: color .2s, background-color .2s; }
.side-icons :is(button, a):hover { color: var(--ink); background: var(--hover); }
.side-icons .ico { width: 18px; height: 18px; }
[data-sound-toggle][aria-pressed="false"] .ico-on, [data-sound-toggle]:not([aria-pressed="false"]) .ico-off { display: none; }
[data-theme="dark"] [data-theme-toggle] .ico-moon, :root:not([data-theme="dark"]) [data-theme-toggle] .ico-sun { display: none; }

/* ---------- Widget grid (12 columns, placed by JS): --left/--top/--wd/--ht are set per widget ---------- */
.wgrid, .wgrid.is-edit { position: relative; display: block; min-height: 120px; transition: height .45s var(--ease-smooth); }
.wgrid .widget { position: absolute; left: 0; top: 0; width: var(--wd, 100%); height: var(--ht, auto); transform: translate(var(--left, 0), var(--top, 0));
  transition: transform .45s var(--ease-smooth), width .45s var(--ease-smooth), height .45s var(--ease-smooth), opacity .25s var(--ease-smooth), scale .25s var(--ease-smooth), translate .45s var(--ease-smooth), box-shadow .3s var(--ease-smooth), border-color .3s var(--ease-smooth); }
.wgrid.is-static, .wgrid.is-static .widget { transition: none; }
.wgrid .widget.is-moving { z-index: 5; transition: box-shadow .3s var(--ease-smooth); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .35); border-style: solid; }
.wgrid .widget.is-entering { opacity: 0; translate: 0 12px; }
.wgrid .widget.is-leaving { opacity: 0; scale: .97; }
.wgrid-cells { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 40px; gap: 16px; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-smooth); }
.wgrid-cells span { border-radius: var(--r-card); background: var(--hover); opacity: .55; }
.wgrid.is-edit .wgrid-cells { opacity: 1; }
.wph { position: absolute; left: 0; top: 0; border-radius: var(--r-well); background: var(--blue-soft); border: 2px dashed var(--accent); opacity: 0; pointer-events: none; transition: transform .2s var(--ease-smooth), width .2s var(--ease-smooth), height .2s var(--ease-smooth), opacity .2s; }
.wph.is-on { opacity: 1; }
.wgrid.is-edit .w-head { cursor: var(--cur-grab, grab); -webkit-user-select: none; user-select: none; touch-action: none; }
.w-resize { position: absolute; right: 6px; bottom: 6px; width: 18px; height: 18px; cursor: nwse-resize; touch-action: none; }
.w-resize::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 9px; height: 9px; border-right: 2px solid var(--grey); border-bottom: 2px solid var(--grey); border-bottom-right-radius: 4px; transition: border-color .2s; }
.w-resize:hover::after { border-color: var(--accent); }
.wgrid .widget .board { height: 100%; }
@media (max-width: 760px) { .head [data-action="edit"] { display: none; } }
@media (prefers-reduced-motion: reduce) { .wgrid, .wgrid .widget, .wph { transition: none; } }

/* Website > Team: picture and name from Discord, then the switch */
.person-top { display: flex; align-items: center; gap: 10px; }
.person-top .switch { margin-left: auto; }

/* le lab. look: the login card in its well; the dashed "add" card stays a plain dashed box. */
.login { border: 6px solid var(--paper); border-radius: var(--r-well); box-shadow: inset 0 0 0 1px var(--line); }
.card.add-card { border: 1.5px dashed var(--grey-dark); box-shadow: none; background: none; }
.card.add-card:hover { border-color: var(--accent); }
.app-msg { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pay-big { font: 700 24px/1.1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pay-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; align-items: end; }
.pay-form .btn { grid-column: 1 / -1; justify-self: start; }
.fin-card .rows li > :nth-child(2) { margin-left: auto; font-variant-numeric: tabular-nums; }
.split-amt input { width: 96px; height: 32px; text-align: right; }
/* Services page: list on the left, the selected service on the right (like le lab), then a Discord preview. */
.cat-layout { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: 16px; align-items: start; }
.cat-list { position: sticky; top: 16px; padding: 6px; border-radius: var(--r-well); background: var(--paper); }
.cat-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cat-list-foot { margin-top: 6px !important; padding-top: 6px !important; border-top: 1px solid var(--line); }
.cat-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: var(--r-ctl); background: none; color: var(--ink); font: 500 14px var(--text); text-align: left; cursor: var(--cur-pointer); transition: background-color .2s; }
.cat-item:hover { background: var(--hover); }
.cat-item.is-on { background: var(--panel); box-shadow: var(--tile-edge); }
.cat-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-led { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #E5484D; }
.cat-led.is-open { background: #30A46C; }
.cat-edit { display: grid; gap: 16px; min-width: 0; }
.cat-card { display: grid; gap: 14px; }
.cat-top, .cat-line { display: flex; align-items: center; gap: 12px; }
.cat-line strong { flex: 1; }
.cat-title { flex: 1; margin: 0; }
.cat-title input { height: 44px; font: 700 20px var(--display); letter-spacing: -.01em; }
.cat-meta { display: flex; align-items: flex-end; gap: 12px; }
.cat-meta .field { flex: 1; max-width: 320px; margin: 0; }
.cat-tools { display: flex; gap: 2px; margin-left: auto; }
.cat-subs { list-style: none; margin: 0; padding: 0; display: grid; }
.cat-sub { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.cat-sub:first-child { border-top: 0; }
.cat-sub.is-closed .cat-inline input { color: var(--grey); }
.cat-sub .cat-tools { opacity: 0; transition: opacity .2s; }
.cat-sub:hover .cat-tools, .cat-sub:focus-within .cat-tools { opacity: 1; }
.cat-inline { flex: 1; min-width: 0; }
.cat-inline input { width: 100%; height: 30px; padding: 0 8px; border: 1px solid transparent; border-radius: var(--r-ctl); background: none; color: var(--ink); font: 500 14px var(--text); }
.cat-inline input:hover { border-color: var(--line); }
.cat-inline input:focus { border-color: var(--accent); background: var(--panel); outline: none; }
.cat-add { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 0; border-radius: var(--r-ctl); background: none; color: var(--accent); font: 500 13px var(--text); cursor: var(--cur-pointer); }
.cat-add:hover { background: var(--hover); }
.cat-add .ico { width: 14px; height: 14px; }
.switch.is-avail input:checked { background: #30A46C; }
/* Discord look, always dark like the app itself. */
.dc-msg { display: grid; gap: 6px; padding: 14px 16px; border-radius: var(--r-card); border-left: 4px solid #0D0D12; background: #2B2D31; color: #DBDEE1; font: 400 14px/1.4 "gg sans", var(--text); }
.dc-msg p { margin: 0; }
.dc-title { font-weight: 500; color: #F2F3F5; }
.dc-sub, .dc-eph { font-size: 12px; color: #949BA4; }
.dc-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.dc-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 8px; background: #4E5058; color: #FFF; font-weight: 500; font-size: 14px; }
.dc-dot { width: 8px; height: 8px; border-radius: 50%; background: #23A55A; }
.dc-dot.is-off { background: #F23F43; }
@media (max-width: 900px) { .cat-layout { grid-template-columns: 1fr; } .cat-list { position: static; } .cat-sub .cat-tools { opacity: 1; } .cat-meta { flex-wrap: wrap; } }
.switch.is-avail input::after { background: #FFF; }
.cat-inline { display: grid; gap: 0; }
.cat-inline code { padding: 0 9px; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-card .h3 { margin: 0; }
.cat-grip { flex: none; display: grid; place-items: center; width: 18px; color: var(--grey); opacity: .5; cursor: var(--cur-grab); }
.cat-grip .ico { width: 16px; height: 16px; }
.cat-sub:hover .cat-grip { opacity: 1; }
.is-dragged { opacity: .4; }
.is-drop-target { box-shadow: inset 0 2px 0 var(--accent); }
.cat-line .field { width: 200px; margin: 0; }
.cat-line-name { flex: 1; display: grid; }
.cat-meta select, .cat-line select { width: 100%; }
#cat-status { align-self: center; }
@media (hover: hover) and (pointer: fine) { .cat-sub .cat-tools [data-action=cat-move] { display: none; } }
@media (max-width: 600px) { .cat-line { flex-wrap: wrap; } .cat-line .field { width: 100%; order: 3; } .cat-grip { display: none; } }
/* Dropdowns drawn like the rest of the dashboard (the native select stays hidden underneath). */
.dd-native { display: none !important; }
.dd { position: relative; min-width: 0; }
.dd-btn { width: 100%; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel); color: var(--ink); font: 500 14px var(--text); text-align: left; cursor: var(--cur-pointer); transition: border-color .2s, box-shadow .2s; }
.dd-btn:hover { border-color: color-mix(in srgb, var(--ink) 22%, transparent); }
.dd.is-open .dd-btn, .dd-btn:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); outline: none; }
.dd-btn:disabled { opacity: .5; }
.dd-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-btn .ico { flex: none; width: 16px; height: 16px; color: var(--grey); transition: transform .25s var(--ease-io); }
.dd.is-open .dd-btn .ico { transform: rotate(180deg); }
.dd-menu { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; min-width: 100%; width: max-content; max-width: min(320px, 90vw); max-height: 280px; overflow-y: auto; display: grid; gap: 1px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: 0 12px 32px rgba(10, 10, 15, .14), 0 2px 6px rgba(10, 10, 15, .06); animation: dd-in .16s var(--ease-io); }
.dd.dd-up .dd-menu { top: auto; bottom: calc(100% + 6px); }
@keyframes dd-in { from { opacity: 0; transform: translateY(-4px); } }
.dd-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 500 14px var(--text); text-align: left; white-space: nowrap; cursor: var(--cur-pointer); }
.dd-opt:hover, .dd-opt:focus-visible { background: var(--hover); outline: none; }
.dd-opt[aria-selected=true] { color: var(--accent); }
.dd-opt .ico { width: 16px; height: 16px; }
.dd-extra { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; color: var(--grey); }
.cat-switch-gap { flex: none; width: 36px; }
.cat-pick { width: 190px; flex: none; margin: 0; }
.cat-list-head { margin-bottom: 6px !important; padding-bottom: 6px !important; border-bottom: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .dd-menu { animation: none; } }
@media (max-width: 700px) { .cat-pick { width: 100%; order: 4; } .cat-sub { flex-wrap: wrap; } }
.head-actions .dd-btn { height: 32px; font-size: 13px; }
.dd.is-open { z-index: 60; }
:is(.cat-sub, .cat-line, .cat-meta, .card, .head-actions):has(.dd.is-open) { position: relative; z-index: 60; }
/* Cursors: the grab hand only on the handle, plain arrow on text that does nothing, "not allowed" on a disabled menu. */
.cat-inline code, .cat-line-name, .dc-msg, .cat-card .h3 { cursor: var(--cur-default); }
.cat-grip { cursor: var(--cur-grab); }
.dd-btn:disabled { cursor: url("../cursors/not-allowed.png") 16 16, not-allowed; }
.dd-menu[hidden] { display: none; } /* display: grid above would otherwise beat [hidden] and leave an empty box */
.dc-bare { padding: 10px 12px; }
.dc-bare .dc-row { margin-top: 0; }
/* Ticket channel preview: the banner image, then the container, like on Discord. */
.dc-wrap { display: grid; gap: 8px; padding: 12px; border-radius: var(--r-card); background: #313338; }
.dc-banner { display: grid; place-items: center; min-height: 92px; border-radius: 8px; background: linear-gradient(135deg, #FFFFFF, #DEDED7); color: #0D0D12; font: 700 clamp(20px, 3vw, 30px)/1 var(--display); letter-spacing: -.02em; }
.dc-banner span { display: inline-block; margin: 0 .1em; padding: .08em .22em .12em; border-radius: .18em; background: #0D0D12; color: #FFF; }
.dc-box { border-left: 0; border: 1px solid #3F4147; border-radius: 8px; }
.dc-box .dc-title { font-size: 16px; }
.dc-box .dc-sub { margin-top: 8px; }
.dc-banner { display: block; padding: 30px 12px; text-align: center; white-space: nowrap; }
.cat-img { display: grid; gap: 10px; }
.cat-img > img, .dc-img { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 8px; }
.cat-img .dc-banner { padding: 22px 12px; font-size: 22px; }
.cat-img-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-img-tools .btn .ico { width: 16px; height: 16px; }
/* Bot page: tabs and publish state above the editors. */
.bot-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: -8px 0 18px; }
.bot-state { display: inline-flex; align-items: center; gap: 8px; font: 500 13px var(--text); }
.bot-state > i { width: 8px; height: 8px; border-radius: 50%; background: #30A46C; }
.bot-state.is-dirty > i { background: #F5A524; }
.bot-state .muted { margin-left: 4px; }
.bm-vars { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: -6px; }
.chip-btn { height: 26px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink); font: 500 12px ui-monospace, monospace; cursor: var(--cur-pointer); }
.chip-btn:hover { border-color: var(--accent); color: var(--accent); }
.bm-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.bm-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 4px 0 10px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel); }
.bm-btn input { width: 150px; height: 34px; border: 0; background: none; color: var(--ink); font: 500 14px var(--text); outline: none; }
.bm-btn .dc-emoji, .bm-btn .dc-dot { flex: none; }
.dc-emoji { width: 18px; height: 18px; vertical-align: -3px; object-fit: contain; }
.dc-file { display: flex; align-items: center; gap: 8px; padding: 26px 14px; border-radius: 8px; background: #2B2D31; color: #949BA4; font: 500 13px var(--text); }
.dc-file .ico { width: 18px; height: 18px; }
.dc-h1 { font-size: 22px; font-weight: 500; color: #F2F3F5; }
.dc-h2 { font-size: 18px; font-weight: 500; color: #F2F3F5; }
.dc-h3 { font-size: 16px; font-weight: 500; color: #F2F3F5; }
.dc-small { font-size: 12px; color: #949BA4; }
.dc-gap { height: 6px; }
.dc-chan { padding: 0 3px; border-radius: 3px; background: rgba(88, 101, 242, .3); color: #C9CDFB; }
.dc-var { padding: 0 4px; border-radius: 4px; background: rgba(244, 244, 241, .18); color: #FFF; font: 500 12px ui-monospace, monospace; }
.dc-wrap > .dc-row { margin-top: 0; }
/* Bot page, v2: list · editor · preview, a sticky bar with the publish button. */
.bot-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: -8px 0 18px; padding: 10px 0; background: var(--panel); border-bottom: 1px solid var(--line); }
.bot-bar-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bot-state { padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, #30A46C 12%, transparent); }
.bot-state.is-dirty { background: color-mix(in srgb, #F5A524 16%, transparent); }
.bm-layout { display: grid; grid-template-columns: minmax(170px, 210px) minmax(0, 1fr) minmax(280px, 380px); gap: 16px; align-items: start; }
.bm-layout > .cat-list { position: sticky; top: 72px; }
.bm-editor { display: grid; gap: 14px; min-width: 0; }
.bm-side { position: sticky; top: 72px; display: grid; gap: 8px; min-width: 0; }
.bm-side-label { margin: 0; font: 500 12px var(--text); color: var(--grey); }
.bm-blk { display: grid; gap: 12px; transition: box-shadow .4s; }
.bm-blk.is-flash { animation: bm-flash 1.2s var(--ease-io); }
@keyframes bm-flash { 0%, 40% { box-shadow: inset 0 0 0 2px var(--accent); } }
.bm-blk-title { margin: 0; font: 500 13px var(--text); color: var(--grey); letter-spacing: 0; }
.bm-blk textarea { width: 100%; resize: vertical; font: 400 14px/1.5 var(--text); }
.bm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: -4px; }
.bm-tool { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--ink); font: 500 13px var(--text); cursor: var(--cur-pointer); transition: background-color .15s, border-color .15s; }
.bm-tool:hover { background: var(--hover); border-color: color-mix(in srgb, var(--ink) 18%, transparent); }
.bm-tool-italic { font-style: italic; font-family: Georgia, serif; }
.bm-tool-small { font: 600 11px ui-monospace, monospace; color: var(--grey); }
.bm-tool .ico { width: 16px; height: 16px; }
.bm-sep { width: 1px; height: 20px; margin: 0 4px; background: var(--line); }
.bm-btns { display: grid; gap: 8px; }
.bm-btn { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 4px 6px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel); }
.bm-btn > input { flex: 1; min-width: 0; height: 32px; padding: 0 6px; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--ink); font: 500 14px var(--text); }
.bm-btn > input:focus { border-color: var(--accent); outline: none; }
.bm-btn > .bm-link { flex: 1.3; font: 400 13px ui-monospace, monospace; color: var(--grey); }
.bm-emo { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 1px dashed var(--line); border-radius: 7px; background: none; color: var(--grey); cursor: var(--cur-pointer); }
.bm-emo:hover { border-style: solid; border-color: var(--accent); }
.bm-emo.is-auto { border: 0; cursor: help; }
.bm-emo .dc-emoji { width: 20px; height: 20px; }
.bm-emo .ico { width: 16px; height: 16px; }
.cat-item-add { margin-top: 6px; color: var(--accent); }
.cat-item-add .ico { width: 14px; height: 14px; }
.bm-preview .dc-blk { border-radius: 6px; transition: box-shadow .2s; }
.bm-preview [data-jump] { cursor: var(--cur-pointer); }
.bm-preview [data-jump]:hover, .bm-preview .is-hot { box-shadow: 0 0 0 2px rgba(140, 128, 255, .55); }
.emo-pop { position: fixed; z-index: 90; width: min(300px, calc(100vw - 16px)); max-height: 260px; overflow-y: auto; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: 0 14px 36px rgba(10, 10, 15, .18); animation: dd-in .16s var(--ease-io); }
.emo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 4px; }
.emo-opt { display: grid; place-items: center; height: 36px; border: 0; border-radius: 8px; background: none; cursor: var(--cur-pointer); }
.emo-opt:hover, .emo-opt:focus-visible { background: var(--hover); outline: none; }
.emo-opt .dc-emoji { width: 24px; height: 24px; }
.emo-none .ico { width: 16px; height: 16px; color: var(--grey); }
@media (max-width: 1280px) { .bm-layout { grid-template-columns: minmax(170px, 210px) minmax(0, 1fr); } .bm-side { grid-column: 2; position: static; } }
@media (max-width: 900px) { .bm-layout { grid-template-columns: 1fr; } .bm-side { grid-column: auto; } .bm-layout > .cat-list { position: static; } .bot-bar { position: static; } }
.bm-blk > textarea { min-height: 38px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.bm-blk > textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--blue-soft); }
.bm-blk .field { margin: 0; }
/* Lists: an item never grows wider than its column; long names wrap instead of spilling out. */
.cat-list ul { grid-template-columns: minmax(0, 1fr); }
.cat-list li { min-width: 0; }
.cat-item { min-width: 0; }
.cat-name { white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
.bm-blk, .bm-btns { min-width: 0; }
.bm-btn > input { width: 0; min-width: 0; }
@media (max-width: 600px) { .bm-btn { flex-wrap: wrap; } .bm-btn > .bm-link { flex: 1 1 100%; width: 100%; } }
.bm-btn { height: auto; } /* an older rule fixed 38px: the link field could not wrap below */
/* Mobile tab bar: with more than 6 sections it scrolls sideways instead of squeezing labels into each other. */
@media (max-width: 1024px) {
  .tabbar { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .tabbar::-webkit-scrollbar { display: none; }
  .tabbar a { flex: 1 0 64px; }
}
.view.is-still > * { animation: none; } /* only the entrance; menus and highlights inside keep theirs */
.cat-group { padding: 8px 10px 4px; font: 500 12px var(--text); color: var(--grey); }
.cat-sub-item { padding-left: 22px; }
.cat-group-sep { height: 1px; margin: 6px 4px; background: var(--line); }
/* Embeds tab. */
.emb-head { gap: 14px; }
.emb-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; }
.emb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.emb-state { flex: 1 1 100%; font-size: 13px; color: var(--grey); }
.emb-state.is-sent { color: var(--ink); }
.emb-state b { color: #B76E00; font-weight: 500; }
.emb-blk-head { display: flex; align-items: center; gap: 8px; }
.emb-blk-head .bm-blk-title { flex: 1; }
.emb-add { display: flex; gap: 8px; flex-wrap: wrap; }
.bm-btn .icon-btn { flex: none; }
@media (max-width: 700px) { .emb-row { grid-template-columns: 1fr; } }
/* ---------- Embed editor ---------- */
.emb-tree { display: grid; gap: 10px; }
.emb-empty { margin: 0; padding: 18px; border: 1.5px dashed var(--line); border-radius: var(--r-card); text-align: center; }
.emb-node { position: relative; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); box-shadow: 0 1px 2px rgba(10, 10, 15, .04); transition: box-shadow .4s; }
.emb-node.is-flash { animation: bm-flash 1.2s var(--ease-io); }
.emb-node-head { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 8px 6px 6px; }
.emb-node-head strong { font: 500 14px var(--text); }
.emb-node-sum { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; color: var(--grey); }
.emb-node-ico { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--blue-soft); color: var(--accent); }
.emb-node-ico .ico { width: 16px; height: 16px; }
.emb-node-tools { display: flex; gap: 2px; opacity: .55; transition: opacity .15s; }
.emb-node-head:hover .emb-node-tools, .emb-node-head:focus-within .emb-node-tools { opacity: 1; }
.emb-fold { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 7px; background: none; color: var(--grey); cursor: var(--cur-pointer); }
.emb-fold:hover { background: var(--hover); }
.emb-fold .ico { width: 16px; height: 16px; transition: transform .2s var(--ease-io); }
.emb-node.is-folded .emb-fold .ico { transform: rotate(-90deg); }
.emb-node-body { display: grid; gap: 10px; padding: 4px 14px 14px; }
.emb-node-body textarea, .emb-node-body input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]) { width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel); color: var(--ink); font: 400 14px/1.5 var(--text); transition: border-color .15s, box-shadow .15s; }
.emb-node-body textarea { resize: vertical; }
.emb-node-body :is(textarea, input):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--blue-soft); }
.emb-node-body input.emb-url:not(:placeholder-shown):invalid { border-color: #E5484D; }
.emb-node.emb-container { border-left: 3px solid var(--accent); }
.emb-children { display: grid; gap: 8px; padding: 10px; border-radius: var(--r-ctl); background: var(--paper); }
.emb-node.is-child { box-shadow: none; }
.emb-texttools { margin-bottom: -2px; }
.emb-texttools .bm-tool { min-width: 28px; height: 28px; font-size: 12px; }
.bm-tool-u { text-decoration: underline; }
.bm-tool-s { text-decoration: line-through; }
.emb-sub { display: grid; gap: 6px; }
.emb-sub-row { display: flex; gap: 6px; align-items: flex-start; }
.emb-acc { display: grid; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.emb-acc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.emb-btns { display: grid; gap: 8px; }
.emb-btn { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1.4fr) auto auto; align-items: center; gap: 6px; }
.emb-btn > input { min-width: 0; }
.emb-check { display: inline-flex; align-items: center; gap: 6px; font: 500 13px var(--text); color: var(--grey); white-space: nowrap; cursor: var(--cur-pointer); }
.emb-check input { accent-color: var(--accent); width: 15px; height: 15px; }
.emb-thumb { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: start; }
.emb-thumb > img, .emb-thumb > .dc-ph { width: 88px; height: 88px; border-radius: 10px; object-fit: cover; }
.emb-thumb-f { display: grid; gap: 8px; }
.emb-urlrow { display: flex; gap: 6px; }
.emb-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.emb-gal-i { display: grid; gap: 6px; align-content: start; }
.emb-gal-img { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--paper); }
.emb-gal-img img { width: 100%; height: 100%; object-fit: cover; }
.emb-gal-img .icon-btn { position: absolute; top: 6px; right: 6px; background: var(--panel); }
.emb-gal-add { display: flex; flex-wrap: wrap; gap: 8px; align-content: center; justify-content: center; min-height: 100px; border: 1.5px dashed var(--line); border-radius: 10px; }
.dc-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--grey); background: var(--paper); }
.dc-ph .ico { width: 22px; height: 22px; }
.emb-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.emb-swatch { width: 24px; height: 24px; border: 2px solid var(--panel); border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px var(--line); cursor: var(--cur-pointer); }
.emb-swatch.is-on { box-shadow: 0 0 0 2px var(--accent); }
.emb-swatch.is-none { background: linear-gradient(135deg, transparent 45%, #E5484D 45%, #E5484D 55%, transparent 55%), var(--panel); }
.emb-hex { display: inline-flex; align-items: center; gap: 6px; }
.emb-hex input[type=color] { width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: var(--cur-pointer); }
.emb-hex input:not([type=color]) { width: 92px !important; font-family: ui-monospace, monospace !important; }
.emb-addbtn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; border: 1.5px dashed var(--line); border-radius: var(--r-card); background: none; color: var(--accent); font: 500 14px var(--text); cursor: var(--cur-pointer); transition: background-color .15s, border-color .15s; }
.emb-addbtn:hover { background: var(--blue-soft); border-color: var(--accent); }
.emb-addbtn.is-inner { min-height: 38px; background: var(--panel); }
.emb-addbtn .ico { width: 16px; height: 16px; }
.emb-hist { display: inline-flex; gap: 2px; }
.emb-redo .ico { transform: scaleX(-1); }
.emb-count { font: 600 12px ui-monospace, monospace; color: var(--grey); padding: 4px 8px; border-radius: 6px; background: var(--paper); }
.emb-count.is-over { color: #E5484D; background: color-mix(in srgb, #E5484D 12%, transparent); }
.emb-menu { display: grid; gap: 2px; }
.emb-menu-pop { width: min(340px, calc(100vw - 16px)); max-height: 380px; }
.emb-menu-i { display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: 8px; background: none; color: var(--ink); text-align: left; font: 500 14px var(--text); cursor: var(--cur-pointer); }
.emb-menu-i > span:last-child { display: grid; gap: 2px; }
.emb-menu-i:hover, .emb-menu-i:focus-visible { background: var(--hover); outline: none; }
.emb-menu-t { margin: 8px 8px 2px; font: 500 11px var(--text); color: var(--grey); text-transform: uppercase; letter-spacing: .04em; }
.emb-dot { width: 10px; height: 10px; border-radius: 50%; }
.emb-time-pop { width: min(320px, calc(100vw - 16px)); }
.emb-time { display: grid; gap: 10px; padding: 6px; }
.emb-time input[type=datetime-local] { width: 100%; min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel); color: var(--ink); font: 400 14px var(--text); }
.emb-time-styles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.emb-time .btn { justify-self: end; }
.emb-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.emb-tpl { display: grid; gap: 4px; align-content: start; padding: 8px 8px 12px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); text-align: left; cursor: var(--cur-pointer); transition: border-color .15s, box-shadow .15s; }
.emb-tpl:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(10, 10, 15, .08); }
.emb-tpl strong { padding: 0 4px; font: 500 14px var(--text); }
.emb-tpl .muted { padding: 0 4px; }
.emb-tpl-prev { display: block; height: 150px; overflow: hidden; border-radius: 8px; background: #313338; pointer-events: none; }
.emb-tpl-prev .dc-message { transform: scale(.62); transform-origin: top left; width: 161%; padding: 10px; }
.emb-tpl-blank { display: grid; place-items: center; height: 100%; color: #949BA4; }
.emb-tpl-blank .ico { width: 28px; height: 28px; }
@media (max-width: 700px) { .emb-btn { grid-template-columns: 34px minmax(0, 1fr) auto; } .emb-btn .emb-url { grid-column: 1 / -1; } .emb-thumb { grid-template-columns: 1fr; } }

/* ---------- Discord look (always dark, like the app) ---------- */
.dc-message { display: flex; gap: 12px; padding: 4px 2px; color: #DBDEE1; font: 400 15px/1.375 "gg sans", var(--text); }
.dc-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #0D0D12; padding: 7px; }
.dc-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.dc-author { margin: 0; font-weight: 500; color: #F2F3F5; display: flex; align-items: center; gap: 6px; }
.dc-bot { padding: 1px 5px; border-radius: 4px; background: #5865F2; color: #FFF; font-size: 10px; font-weight: 500; }
.dc-time { font-size: 12px; font-weight: 400; color: #949BA4; }
.dc-comps { display: grid; gap: 8px; }
.dc-cont { display: grid; gap: 8px; padding: 14px 16px; border-radius: 8px; background: #2B2D31; border: 1px solid #3F4147; border-left: 4px solid var(--acc); }
.dc-cont.no-acc { border-left-width: 1px; }
.dc-cont.is-spoiler { filter: blur(6px); }
.dc-md { min-width: 0; overflow-wrap: anywhere; }
.dc-md p { margin: 0; }
.dc-h1 { font-size: 24px; font-weight: 500; color: #F2F3F5; line-height: 1.25; }
.dc-list { margin: 2px 0; padding-left: 22px; }
.dc-quote { margin: 2px 0; padding-left: 10px; border-left: 4px solid #4E5058; }
.dc-code { margin: 4px 0; padding: 8px 10px; border-radius: 6px; background: #1E1F22; color: #DBDEE1; font: 13px/1.45 ui-monospace, monospace; white-space: pre-wrap; }
.dc-icode { padding: 1px 4px; border-radius: 4px; background: #1E1F22; font: 85% ui-monospace, monospace; }
.dc-spoiler { padding: 0 2px; border-radius: 3px; background: #1E1F22; color: transparent; transition: color .2s; }
.dc-spoiler:hover { color: #DBDEE1; background: rgba(255, 255, 255, .08); }
.dc-link { color: #00A8FC; }
.dc-mention { padding: 0 2px; border-radius: 3px; background: rgba(88, 101, 242, .3); color: #C9CDFB; font-weight: 500; }
.dc-date { padding: 0 2px; border-radius: 3px; background: rgba(255, 255, 255, .06); }
.dc-sec { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.dc-sec > .dc-md { flex: 1; }
.dc-sec-acc { flex: none; }
.dc-thumb { display: block; width: 85px; height: 85px; border-radius: 8px; object-fit: cover; }
.dc-thumb.is-spoiler, .dc-gal-i.is-spoiler img { filter: blur(14px); }
.dc-gal { display: grid; gap: 4px; border-radius: 8px; overflow: hidden; }
.dc-gal-1 { grid-template-columns: 1fr; }
.dc-gal-2, .dc-gal-4 { grid-template-columns: 1fr 1fr; }
.dc-gal-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.dc-gal-3 .dc-gal-i:first-child { grid-row: span 2; }
.dc-gal-5 { grid-template-columns: repeat(3, 1fr); }
.dc-gal-i { min-height: 70px; aspect-ratio: 16 / 9; overflow: hidden; background: #1E1F22; }
.dc-gal-1 .dc-gal-i { aspect-ratio: auto; max-height: 300px; }
.dc-gal-i img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dc-gal-i.dc-ph { color: #949BA4; background: #1E1F22; }
.dc-sep { height: 1px; margin: 4px 0; background: #3F4147; }
.dc-sep.is-large { margin: 12px 0; }
.dc-sep.is-blank { background: none; }
.dc-btn.is-disabled { opacity: .5; }
.dc-ext { width: 14px; height: 14px; margin-left: 2px; fill: none; stroke: currentColor; stroke-width: 2; opacity: .8; }
.dc-empty { min-height: 18px; border: 1px dashed #4E5058; border-radius: 6px; }
.bm-preview [data-jumpnode] { cursor: var(--cur-pointer); border-radius: 6px; transition: box-shadow .2s; }
.bm-preview [data-jumpnode]:hover { box-shadow: 0 0 0 2px rgba(140, 128, 255, .45); }
.bm-layout.emb-layout-pick { grid-template-columns: minmax(170px, 210px) minmax(0, 1fr); }
.dc-message .dc-ph { background: #1E1F22; color: #949BA4; }
.dc-thumb.dc-ph { display: grid; }

/* ---------- le lab. look: one text face, light weights, black primary, neutral icons. Batica stays for the logo only. ---------- */
.dash .h1 { font: 400 30px/1.15 var(--text); letter-spacing: -.025em; }
.dash .h3, .lane-head .h3 { font: 500 15px/1.3 var(--text); letter-spacing: -.01em; }
.eyebrow, .label { font: 400 13px/1.3 var(--text); letter-spacing: 0; text-transform: none; color: var(--grey); }
.kpi strong, .nums strong, .pay-big, .loyal-bal strong { font: 400 28px/1.1 var(--text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.loyal-bal strong { font-size: 40px; }
.loyal-name, .level-n { font: 400 22px/1.15 var(--text); letter-spacing: -.02em; }
.oc-title strong, .tile-preview strong { font: 500 15px/1.3 var(--text); }
.oc-price { font: 400 16px/1 var(--text); font-variant-numeric: tabular-nums; }
.cat-title input { font: 400 20px var(--text); }
.kpi-sub, .nav-n, .more, .link-back, .side-out, .member-top .tag { font-weight: 500; }
.kpi-l .ico { color: var(--grey); }
.dash .btn { min-height: 36px; font-weight: 400; }
.dash .btn-sm { min-height: 30px; }
.dash :is(.btn-primary, .btn-secondary) { background-image: none !important; transition: background-color .15s, color .15s, box-shadow .15s !important; }
.dash .btn-primary { background: #18181B !important; color: #fff !important; }
.dash .btn-primary:hover { background: #3F3F46 !important; }
.dash .btn-secondary:hover { background: var(--paper) !important; color: var(--ink) !important; }
html[data-theme="dark"] .dash .btn-primary { background: #F4F4F5 !important; color: #09090B !important; }
html[data-theme="dark"] .dash .btn-primary:hover { background: #D4D4D8 !important; }
.svc, .svc[data-svc] { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.icon-btn:hover { color: var(--ink); background: var(--paper); }
.side-nav a.is-on .ico { color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--panel); box-shadow: none; }
:where(.dash) :is(strong, b, th) { font-weight: 500; }
.side-nav a, .tabbar a, .role button { font-weight: 400; }

/* Flat blocks: one hairline, no grey ring around white tiles. */
.card, .kpi, .order-card, .login { border: 1px solid var(--line); box-shadow: none; border-radius: var(--r-card); }
a.kpi:hover, .order-card:hover { border-color: rgba(10, 10, 15, .18); }
html[data-theme="dark"] :is(a.kpi, .order-card):hover { border-color: rgba(255, 255, 255, .2); }
.widget { padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); }
.w-head { padding: 8px 8px 0 16px; }
.w-body { padding: 8px 16px 16px; background: none; border-radius: 0; box-shadow: none; }
.lane, .lane:not(.is-open) { margin-bottom: 4px; background: none; border: 0; border-radius: 0; box-shadow: none; }
.lane + .lane { border-top: 1px solid var(--line); }
.lane-head button { padding: 14px 2px; }
.lane-in > .board { padding: 0 0 16px; }
.lane-head .svc { width: 28px; height: 28px; }

/* Mini cards: number and a bare service icon, title, client, then a foot that never wraps. */
.board { grid-template-columns: repeat(var(--n), minmax(160px, 1fr)); }
.kcard { gap: 2px; padding: 10px 12px; border-radius: 10px; box-shadow: none; }
.kcard:hover, .kcard.is-lifted, .kcard.is-ghost { border-color: rgba(10, 10, 15, .22); }
html[data-theme="dark"] :is(.kcard:hover, .kcard.is-lifted, .kcard.is-ghost) { border-color: rgba(255, 255, 255, .25); }
.kcard-top { margin-bottom: 2px; }
.kcard-top .svc { width: auto; height: auto; background: none; box-shadow: none; color: var(--grey); }
.kcard-top .svc .ico { width: 15px; height: 15px; }
.kcard strong { font-size: 14px; }
.kcard > .small { font-size: 12px; }
.kcard-foot { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.kcard-foot > * { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.kcard-foot > :last-child { flex: none; }
.kcard-foot .warn { font-weight: 400; }

/* Sidebar sections. */
.nav-sec { padding: 16px 12px 4px; font-size: 12px; color: var(--grey); }

/* Order page at a glance: steps and actions in one band, then chat | brief, details, history | team, price, payment. */
.now-band { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; margin-bottom: 16px; }
.now-band .track { min-width: 0; }
.order-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.order-grid .card > .h3 { margin-bottom: 10px; }
.order-grid .chat-log { max-height: min(56vh, 520px); }
.order-grid .facts { gap: 6px 12px; font-size: 13px; }
.order-grid .price-form { padding: 0; border: 0; flex-wrap: nowrap; }
.order-grid .price-form .field { flex: 1 1 auto; min-width: 0; }
.head-order { margin-bottom: 16px; }
@media (max-width: 1280px) {
  .order-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .order-grid > :first-child { grid-row: span 2; }
}
@media (max-width: 1100px) { .now-band { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .order-grid { grid-template-columns: minmax(0, 1fr); } .order-grid > :first-child { grid-row: auto; } }

/* Assigned people: Discord avatars only; click one to remove it, + to add someone from the team. */
.assign-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.assign-av, .assign-plus { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: var(--cur-pointer); }
.assign-av .av { width: 36px; height: 36px; font-size: 14px; box-shadow: none; transition: opacity .15s; }
.assign-av:hover .av { opacity: .55; }
.assign-plus { border: 1px dashed var(--grey); color: var(--grey); transition: color .15s, border-color .15s; }
.assign-plus:hover, .assign-plus[aria-expanded="true"] { color: var(--ink); border-color: var(--ink); }
.assign-plus .ico { width: 16px; height: 16px; }
.assign-add { position: relative; }
.assign-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; display: grid; min-width: 200px; max-height: 280px; overflow-y: auto; padding: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(10, 10, 15, .12); }
.assign-menu[hidden] { display: none; }
.assign-menu button { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: 400 14px/1.2 var(--text); text-align: left; cursor: var(--cur-pointer); }
.assign-menu button:hover { background: var(--hover); }
.assign-menu .av { box-shadow: none; }
.assign-menu small { margin-left: auto; font-size: 12px; color: var(--grey); }

/* Steps: one segmented bar, the label under each segment. Done = ink, current = blue, to come = grey. */
.track { gap: 6px; }
.track li { justify-items: start; gap: 8px; text-align: left; font-size: 13px; font-weight: 400; color: var(--grey); }
.track li::before { position: static; display: block; width: 100%; height: 6px; border-radius: 3px; background: var(--line); }
.track li:first-child::before { display: block; }
.track li.done::before { background: var(--ink); }
.track li.now::before { background: var(--blue); }
.track li.now { color: var(--ink); font-weight: 500; }
.track li.done { color: var(--ink); }
.track i { display: none; }

/* Order page: steps band, then the main column (quote, brief, chat) and one sidebar for every small block. */
.order-grid { grid-template-columns: minmax(0, 1fr) 340px; }
.order-grid > :first-child { grid-row: auto; }
@media (max-width: 1280px) { .order-grid { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 960px) { .order-grid { grid-template-columns: minmax(0, 1fr); } }
.now-band { gap: 32px; padding: 20px 22px; }
.order-side .card { padding: 14px 16px; }
.order-side .h3 { font-size: 14px; }
.order-side .fin-card .rows li { font-size: 13px; }

/* Brief written in Discord markdown, shown in the dashboard's own colours. */
.brief-md { font-size: 14px; line-height: 1.55; color: var(--ink); }
.brief-md :is(.dc-h1, .dc-h2, .dc-h3) { color: var(--ink); margin: 6px 0 2px; }
.brief-md .dc-small { color: var(--grey); }
.brief-md .dc-quote { border-left-color: var(--line); color: var(--grey); }
.brief-md :is(.dc-code, .dc-icode, .dc-spoiler) { background: var(--paper); color: var(--ink); }
.brief-md .dc-spoiler { color: transparent; }
.brief-md .dc-spoiler:hover { color: var(--ink); }
.brief-md .dc-link, .dc-md a.dc-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.brief-md .dc-mention { background: var(--blue-soft); color: var(--accent); }

/* Assign menu: several people in a row, a tick on who is in. */
.assign-menu button[aria-checked="true"] { background: var(--paper); }
.assign-check { display: inline-grid; place-items: center; width: 16px; margin-left: auto; font-style: normal; }
.assign-menu small + .assign-check { margin-left: 8px; }
.assign-check .ico { width: 14px; height: 14px; }

/* Quote. */
.quote-sum { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.quote-ed { display: grid; gap: 14px; }
.quote-ed .card-head { margin: 0; }
.quote-lines { width: 100%; border-collapse: collapse; font-size: 13px; }
.quote-lines th { padding: 0 6px 6px; text-align: left; font-weight: 400; color: var(--grey); }
.quote-lines td { padding: 4px 6px; border-top: 1px solid var(--line); }
.quote-lines th:nth-child(n+2):not(:last-child), .quote-lines td:nth-child(n+2):not(:last-child) { width: 1%; white-space: nowrap; text-align: right; }
.quote-lines input { width: 100%; min-width: 64px; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--white); color: var(--ink); font: 400 13px var(--text); }
.quote-lines td:first-child input { min-width: 160px; }
.quote-lines input[type="number"] { width: 90px; text-align: right; }
.quote-sub { font-variant-numeric: tabular-nums; }
.quote-ed > .btn { justify-self: start; }
.quote-foot { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 12px; }
.quote-foot textarea { min-height: 72px; }
.quote-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .quote-foot { grid-template-columns: minmax(0, 1fr); } .quote-lines { display: block; overflow-x: auto; } }
.brief-md ul.dc-list { list-style: disc; } .brief-md ol.dc-list { list-style: decimal; }

/* Order page, quieter: title and actions on one line, the steps bar full width, one sidebar panel split by hairlines. */
.order-head { align-items: flex-end; margin-bottom: 20px; }
.order-head .icon-btn { width: 36px; height: 36px; }
.order-steps { margin-bottom: 28px; }
.order-steps .track { gap: 4px; }
.order-steps .track li::before { height: 4px; border-radius: 2px; }
.order-side { gap: 0; align-self: start; padding: 0 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); }
.order-side > .card { margin: 0; padding: 16px 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.order-side > .card + .card { border-top: 1px solid var(--line); }
.order-side .h3 { margin-bottom: 10px; font: 400 13px/1.3 var(--text); color: var(--grey); }
.order-side .h3 .ico { display: none; }
.order-side .quote-sum { margin-top: 10px; padding-top: 0; border: 0; }
.order-side .facts dd code { display: block; font-size: 11px; color: var(--grey); }
.order-side .facts { margin-bottom: 12px; }
.order-side .events li { font-size: 13px; }
.order-grid > .stack > .card .h3 { font-size: 14px; }
.brief-md .dc-h1 { font-size: 18px; }
.brief-md .dc-h2 { font-size: 16px; }
.brief-md .dc-h3 { font-size: 15px; }
.brief-md :is(.dc-h1, .dc-h2, .dc-h3) { margin: 12px 0 4px; }
.chat-log:has(> li.muted:only-child) { padding: 10px 0; }

/* Mini motion: a press on every control, the quote and the assign menu ease in once when opened. */
.dash :is(.btn, .icon-btn, .assign-av, .assign-plus, .assign-menu button, .side-nav a, .chip span) { transition-property: scale, background-color, color, border-color, box-shadow, opacity; transition-duration: .16s; transition-timing-function: var(--ease-out, cubic-bezier(.23, 1, .32, 1)); }
.dash :is(.btn, .icon-btn, .assign-av, .assign-plus):active:not(:disabled) { scale: .96; }
.dash .assign-menu button:active { scale: .98; }
@keyframes q-in { from { opacity: 0; translate: 0 -8px; scale: .99; } }
@keyframes menu-in { from { opacity: 0; translate: 0 -4px; scale: .97; } }
.quote-ed.is-entering { animation: q-in .32s cubic-bezier(.23, 1, .32, 1); }
.assign-menu.is-entering { transform-origin: top left; animation: menu-in .18s cubic-bezier(.23, 1, .32, 1); }
@media (prefers-reduced-motion: reduce) { .quote-ed.is-entering, .assign-menu.is-entering { animation: none; } .dash :is(.btn, .icon-btn, .assign-av, .assign-plus, .assign-menu button):active { scale: none; } }

.kcard-top .svc[data-svc] { background: none; color: color-mix(in srgb, var(--svc) 70%, #0A0A0F); }
html[data-theme="dark"] .kcard-top .svc[data-svc] { color: var(--svc); }

/* Mini cards tinted by state: a coloured edge and a faint wash. */
.kcard { --st: transparent; position: relative; overflow: hidden; background: color-mix(in srgb, var(--st) 5%, var(--white)); }
.kcard::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--st); }
.kcard[data-state="live"] { --st: var(--accent); }
.kcard[data-state="alone"] { --st: #F27B36; }
.kcard[data-state="price"] { --st: #E5A50A; }
.kcard[data-state="done"] { --st: #12A06E; }
.kcard[data-state="closed"] { --st: #A1A1AA; opacity: .75; }
html[data-theme="dark"] .kcard[data-state="live"] { --st: #6D62FF; }

/* Quote options and discount. */
.quote-lines tr.is-opt td:not(:nth-last-child(-n+2)) { opacity: .55; }
.quote-lines tr.is-opt .quote-sub { font-style: italic; }
.quote-opt { text-align: center !important; }
.quote-opt .switch span { padding: 0; }
.quote-disc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.quote-disc-val { display: flex; gap: 6px; align-items: center; }
.quote-disc-val input { width: 100px; }
.quote-disc-val .seg button { min-width: 34px; }
.quote-calc { display: grid; gap: 2px; }
.quote-lines { display: block; overflow-x: auto; }
.quote-lines input[type="number"] { width: 72px; }
.quote-lines td:first-child input { min-width: 130px; }
.quote-chk { width: 16px; height: 16px; accent-color: var(--ink); cursor: var(--cur-pointer); }
@media (max-width: 1100px) { .quote-disc { grid-template-columns: minmax(0, 1fr); } }
.quote-lines input.quote-chk { width: 16px; min-width: 0; height: 16px; padding: 0; }

/* Buttons and figures after transitions.dev / bencho.dev: pills, hairline layered shadows, tight semibold figures. */
.dash { --btn-edge: 0 1px 3px rgba(0, 0, 0, .04), inset 0 -1px 0 rgba(0, 0, 0, .08), inset 0 0 0 1px rgba(0, 0, 0, .08); }
html[data-theme="dark"] .dash { --btn-edge: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(255, 255, 255, .09); }
.dash .btn { min-height: 36px; padding: 0 16px; border-radius: 999px; font: 500 13px/1 var(--text); letter-spacing: -.005em; }
.dash .btn-sm { min-height: 30px; padding: 0 12px; font-size: 12.5px; }
.dash .btn-primary { background: #17181A !important; color: #fff !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 1px 2px rgba(0, 0, 0, .12); }
.dash .btn-primary:hover { background: #2A2B2F !important; }
html[data-theme="dark"] .dash .btn-primary { background: #F4F4F5 !important; color: #0B0B0C !important; box-shadow: none; }
html[data-theme="dark"] .dash .btn-primary:hover { background: #FFFFFF !important; }
.dash .btn-secondary { background: var(--white) !important; color: var(--ink) !important; box-shadow: var(--btn-edge); }
.dash .btn-secondary:hover { background: color-mix(in srgb, var(--ink) 4%, var(--white)) !important; }
.dash .icon-btn { border-radius: 999px; background: var(--white); box-shadow: var(--btn-edge); }
.dash .icon-btn:hover { background: color-mix(in srgb, var(--ink) 5%, var(--white)); color: var(--ink); }
.dash .btn:disabled, .dash .icon-btn:disabled { opacity: .45; }
.seg { padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.seg :is(button, a) { min-height: 28px; border-radius: 999px; }
.seg :is(button[aria-pressed="true"], a[aria-current="page"]) { background: var(--white); color: var(--ink); box-shadow: var(--btn-edge); }
.pay-big { font: 600 28px/1.05 var(--text) !important; letter-spacing: -.035em !important; font-variant-numeric: tabular-nums; }
.pay-big .cur { margin-left: .12em; font-size: .55em; font-weight: 500; letter-spacing: 0; color: var(--grey); }
.quote-calc .pay-big { font-size: 34px !important; }

/* Quote fixes: nothing clipped on focus, every control 36px, labels aligned. */
.quote-lines { padding: 3px; margin: -3px; }
.quote-lines input { height: 36px; border-radius: 10px; }
.quote-lines input:focus { outline: none; border-color: color-mix(in srgb, var(--ink) 45%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 8%, transparent); }
.quote-lines th { font-size: 12px; white-space: nowrap; }
.quote-lines td { vertical-align: middle; }
.quote-ed .field { margin: 0; }
.quote-ed .field :is(input, textarea) { border-radius: 10px; }
.quote-ed .field input { height: 36px; min-height: 36px; }
.quote-foot { align-items: start; }
.quote-days input { height: 36px; }
.quote-disc-val .seg { flex: none; }
.quote-disc-val .seg button { min-height: 30px; min-width: 36px; justify-content: center; }
.quote-bar { align-items: flex-end; }
.pay-big .grp { display: inline-block; width: .22em; }

/* Test orders. */
.tag-test { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px; background: color-mix(in srgb, #7B6AE7 16%, var(--white)); color: #5B4BD0; font: 500 11px/1 var(--text); letter-spacing: .01em; }
html[data-theme="dark"] .tag-test { color: #B4AAFF; }
.eyebrow .tag-test { vertical-align: 1px; margin-right: 4px; }
.kcard[data-state="test"] { --st: #7B6AE7; }
.test-menu { left: auto; right: 0; }
.test-menu .svc { width: 24px; height: 24px; }
.test-menu .svc .ico { width: 13px; height: 13px; }
.test-menu.is-entering { transform-origin: top right; }

/* Test orders. */
.tag-test { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px; background: color-mix(in srgb, #7B6AE7 16%, var(--white)); color: #5B4BD0; font: 500 11px/1 var(--text); letter-spacing: .01em; }
html[data-theme="dark"] .tag-test { color: #B4AAFF; }
.eyebrow .tag-test { vertical-align: 1px; margin-right: 4px; }
.kcard[data-state="test"] { --st: #7B6AE7; }
.test-menu { left: auto; right: 0; }
.test-menu .svc { width: 24px; height: 24px; }
.test-menu .svc .ico { width: 13px; height: 13px; }
.test-menu.is-entering { transform-origin: top right; }
.head:has(.test-add) { position: relative; z-index: 40; }
.chat-text.dc-md { white-space: normal; } .chat-text .dc-h2 { font-size: 18px; margin: 4px 0 2px; } .chat-text .dc-list { margin: 2px 0; }
.chat-text li { display: list-item; grid-template-columns: none; gap: 0; }
.q-st { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px; font: 500 11px/1 var(--text); background: var(--paper); color: var(--grey); } .q-accepted { background: #E7F6EF; color: #0C6B47; } .q-refused { background: #FDECEC; color: #A12020; } .q-sent { background: var(--blue-soft); color: var(--accent); }

/* ---------- 2026-11-22: lab-like customisation, history, team, clients ---------- */
/* Edit mode: content dims, the whole card moves, name in a pill, round minus to remove. */
.wgrid.is-edit .w-body { opacity: .4; transition: opacity .2s; }
.wgrid.is-edit .w-head h2 { visibility: hidden; } /* the pill takes its place */
.wgrid.is-edit .widget { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent); }
.w-cover { position: absolute; inset: 0; z-index: 2; padding: 0; border: 0; border-radius: inherit; background: none; cursor: grab; touch-action: none; }
.w-cover:active { cursor: grabbing; }
.w-cover:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.w-pill, .w-del { position: absolute; top: 8px; z-index: 3; height: 28px; border-radius: 999px; background: var(--white); box-shadow: 0 1px 3px rgba(10, 10, 15, .12), 0 0 0 1px rgba(10, 10, 15, .05); }
.w-pill { left: 8px; display: inline-flex; align-items: center; padding: 0 11px; font: 500 12px/1 var(--text); color: var(--ink); pointer-events: none; }
.w-del { right: 8px; display: grid; place-items: center; width: 28px; padding: 0; border: 0; color: var(--grey); cursor: pointer; transition: background-color .15s, color .15s, scale .15s; }
.w-del svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.w-del:hover { background: #FDECEC; color: #C0262D; }
.w-del:active { scale: .92; }
.w-resize { z-index: 3; }
/* The gallery: a dialog with a real preview of each widget. */
.wg-back { position: fixed; inset: 0; z-index: 900; background: rgba(10, 10, 15, .4); animation: wg-fade .2s both; }
.wg { position: fixed; z-index: 901; inset: 50% auto auto 50%; translate: -50% -50%; display: flex; flex-direction: column; width: min(1040px, calc(100vw - 32px)); height: min(720px, calc(100dvh - 32px)); border-radius: 18px; background: var(--white); box-shadow: 0 24px 64px -16px rgba(10, 10, 15, .35); overflow: hidden; animation: wg-in .28s var(--ease-smooth) both; }
.wg-head { display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--line); flex: none; }
.wg-head .icon-btn { margin-left: auto; }
.wg-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; align-content: start; padding: 20px; }
.wg-item { display: grid; gap: 8px; padding: 8px; border-radius: 14px; background: var(--paper); }
.wg-prev { height: 176px; overflow: hidden; padding: 12px; border-radius: 10px; background: var(--white); box-shadow: 0 0 0 1px var(--line); pointer-events: none; user-select: none; }
.wg-prev .w-body { zoom: .8; }
.wg-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; padding: 0 4px 0 6px; font: 500 14px/1.2 var(--text); }
@keyframes wg-fade { from { opacity: 0; } }
@keyframes wg-in { from { opacity: 0; scale: .97; } }
@media (prefers-reduced-motion: reduce) { .wg, .wg-back { animation: none; } }

/* History: big search, pill filters with counts, rows by month. */
.hist-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 22px; }
.hist-bar .search input { height: 44px; border-radius: 999px; font-size: 15px; }
.hist-bar .seg { padding: 4px; }
.hist-bar .seg button { min-height: 36px; gap: 8px; padding: 0 14px; font-size: 14px; }
.seg button b { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--grey); }
.hist-group { margin-bottom: 26px; }
.hist-month { margin: 0 0 8px 4px; font: 500 13px/1.3 var(--text); color: var(--grey); }
.hist-month::first-letter { text-transform: uppercase; }
.hist-list { display: grid; padding: 6px; border-radius: var(--r-card); background: var(--white); border: 1px solid var(--line); }
.hist-list li + li { border-top: 1px solid var(--line); }
.hist-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto 90px auto; align-items: center; gap: 16px; min-height: 64px; padding: 10px 12px; border-radius: 10px; color: inherit; text-decoration: none; transition: background-color .15s; }
.hist-row:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.hist-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.hist-main { display: grid; gap: 3px; min-width: 0; }
.hist-main > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-main strong { font-weight: 500; }
.hist-row .hist-hit { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--grey); }
.hist-row .hist-hit .ico { width: 14px; height: 14px; flex: none; }
.hist-st { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font: 500 12px/1 var(--text); white-space: nowrap; background: color-mix(in srgb, var(--accent) 10%, var(--white)); color: var(--accent); }
.hist-st[data-st="done"] { background: color-mix(in srgb, #12805C 12%, var(--white)); color: #12805C; }
.hist-st[data-st="closed"] { background: var(--paper); color: var(--grey); }
.hist-meta { display: flex; gap: 14px; font-size: 13px; color: var(--grey); white-space: nowrap; }
.hist-meta span { display: inline-flex; align-items: center; gap: 5px; }
.hist-meta .ico { width: 14px; height: 14px; }
.hist-price { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.hist-row > .go { width: 16px; height: 16px; color: var(--grey); transition: translate .2s var(--ease-smooth); }
.hist-row:hover > .go { translate: 3px 0; color: var(--ink); }
.hist-row .av { width: 36px; height: 36px; box-shadow: none; }
.hist-list:has(.av) .hist-row { grid-template-columns: auto minmax(0, 1fr) auto auto; }
@media (max-width: 760px) {
  .hist-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
  .hist-meta, .hist-price, .hist-row > .go { display: none; }
  .hist-bar .seg { width: 100%; } .hist-bar .seg button { flex: 1; justify-content: center; }
}

/* Team: one simple card per person, services as colour icons to switch on and off. */
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.tm-card { display: grid; gap: 14px; align-content: start; padding: 18px; border-radius: var(--r-card); background: var(--white); border: 1px solid var(--line); }
.tm-top { display: flex; align-items: center; gap: 12px; }
.tm-id { display: grid; gap: 2px; min-width: 0; flex: 1; }
.tm-id strong { font-weight: 500; font-size: 16px; }
.tm-del { opacity: 0; transition: opacity .15s; }
.tm-card:is(:hover, :focus-within) .tm-del { opacity: 1; }
.tm-stats { display: flex; gap: 18px; font-size: 13px; color: var(--grey); }
.tm-stats b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.tm-svcs { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-svc { cursor: pointer; border-radius: var(--r-ctl); }
.tm-svc .svc { width: 34px; height: 34px; transition: filter .2s, opacity .2s, scale .15s; }
.tm-svc:has(input:not(:checked)) .svc { filter: grayscale(1); opacity: .35; }
.tm-svc:hover .svc { opacity: 1; }
.tm-svc:active .svc { scale: .92; }
.tm-svc:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.tm-add { border-style: dashed; background: transparent; }
.tm-add .h3 { font-size: 15px; }

/* Clients: a directory, cut by first letter when sorted by name. */
.cl-group { margin-bottom: 22px; }
.cl-letter { margin: 0 0 8px 4px; font: 500 13px/1 var(--text); color: var(--grey); }
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.cl-card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 10px; align-items: center; padding: 14px; border-radius: var(--r-card); background: var(--white); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, translate .2s var(--ease-smooth); }
.cl-card:hover { border-color: color-mix(in srgb, var(--ink) 20%, transparent); box-shadow: 0 6px 18px -10px rgba(10, 10, 15, .25); translate: 0 -1px; }
.cl-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cl-id { display: grid; gap: 4px; min-width: 0; }
.cl-id strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-tier { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--grey); }
.cl-tier img { width: 16px; height: 16px; }
.cl-nums { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--grey); }
.cl-nums b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.cl-live { color: var(--accent); }

/* Recruitment: one card per Apply ticket, answered from the card. */
.ap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 16px; margin-bottom: 26px; align-items: start; }
.ap-card { display: grid; gap: 14px; padding: 18px; border-radius: var(--r-card); background: var(--white); border: 1px solid var(--line); }
.ap-top { display: flex; align-items: center; gap: 12px; }
.ap-top .tm-id strong { font-weight: 500; font-size: 16px; }
.ap-card .facts { margin: 0; }
.ap-last { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; background: var(--paper); }
.ap-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-form { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); animation: wg-in .22s var(--ease-smooth) both; }
.ap-when { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ap-form .btn-row { display: flex; justify-content: flex-end; gap: 8px; }
/* The three answers in colour: interview green, question blue, decline red (tinted at rest, solid when open). */
.ap-acts .btn[data-v] { --c: var(--accent); background: color-mix(in srgb, var(--c) 10%, var(--white)) !important; color: color-mix(in srgb, var(--c) 85%, #0A0A0F) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent) !important; }
.ap-acts .btn[data-v="interview"] { --c: #12805C; }
.ap-acts .btn[data-v="refuse"] { --c: #C0262D; }
.ap-acts .btn[data-v]:hover { background: color-mix(in srgb, var(--c) 16%, var(--white)) !important; }
.ap-acts .btn[data-v][aria-expanded="true"] { background: var(--c) !important; color: #fff !important; box-shadow: none !important; }
html[data-theme="dark"] .ap-acts .btn[data-v]:not([aria-expanded="true"]) { color: color-mix(in srgb, var(--c) 60%, #fff) !important; }

/* Order document (script, voice-over, brief): one Markdown file, dropped or picked. */
.doc-card { transition: box-shadow .15s; }
.doc-card.is-over { box-shadow: 0 0 0 2px var(--accent); }
.doc-card .card-head { flex-wrap: wrap; gap: 8px 12px; }
.doc-card .btn-row { align-items: center; flex-wrap: wrap; }
.doc-name { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-add { width: 100%; min-height: 88px; justify-content: center; border-style: dashed; }
.doc-md { margin-top: 4px; }
/* Document Markdown: readable on the card, ## and ### fold. */
.md { font-size: 15px; line-height: 1.6; color: var(--ink); }
.md > * + *, .md-body > * + * { margin-top: 10px; }
.md p, .md ul, .md ol { margin: 0; }
.md :is(h2, h3, h4, h5, h6) { margin: 0; font-weight: 600; line-height: 1.3; color: var(--ink); letter-spacing: -.01em; }
.md .md-h1 { font-size: 22px; }
.md .md-h2 { font-size: 18px; }
.md .md-h3 { font-size: 15px; }
.md ul { padding-left: 22px; list-style: disc; }
.md ol { padding-left: 22px; list-style: decimal; }
.md li + li { margin-top: 4px; }
.md li::marker { color: var(--grey); }
.md a { color: var(--accent); }
.md hr { margin: 20px 0; border: 0; border-top: 1px solid var(--line); }
.md blockquote { margin: 0; padding: 10px 14px; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; background: color-mix(in srgb, var(--accent) 6%, transparent); }
.md blockquote p + p { margin-top: 6px; }
.md code { padding: 1px 6px; border-radius: 5px; background: var(--paper); font: 13px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.md pre { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--paper); overflow-x: auto; }
.md pre code { padding: 0; background: none; }
.md-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.md table { width: 100%; border-collapse: collapse; font-size: 14px; }
.md :is(th, td) { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.md tr:last-child td { border-bottom: 0; }
.md th { background: var(--paper); font-weight: 600; white-space: nowrap; }
.md td:first-child { color: var(--grey); font-variant-numeric: tabular-nums; }
/* Foldable order cards: the title is the toggle, the rest hides. */
.fold-btn { display: inline-flex; align-items: center; gap: inherit; margin: -4px -6px; padding: 4px 6px; border: 0; border-radius: 8px; background: none; font: inherit; color: inherit; cursor: pointer; }
.fold-btn:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.fold-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fold-chev { width: 16px; height: 16px; margin-left: 2px; fill: none; stroke: var(--grey); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: rotate .2s var(--ease-smooth); }
.is-folded .fold-chev { rotate: -90deg; }
.card.is-folded > :not(:first-child), .card.is-folded :is(.btn-row, .chat-head-actions) { display: none; }
.card.is-folded > :first-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.doc-form { display: grid; gap: 10px; margin-top: 4px; }
.doc-form textarea { width: 100%; min-height: 60vh; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: 13px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; resize: vertical; tab-size: 2; }
.doc-form textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.doc-form .btn-row { justify-content: flex-end; }

/* Client profile: loyalty points and private message. */
.client-tools { margin-bottom: 24px; }
.pts-form, .dm-form { display: grid; gap: 12px; }
.pts-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; }
.pts-form textarea, .dm-form textarea { width: 100%; resize: vertical; }
.pts-form .btn-row, .dm-form .btn-row { justify-content: flex-end; }
.pts-log { display: grid; margin-top: 16px; border-top: 1px solid var(--line); }
.pts-log li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 40px; border-bottom: 1px solid var(--line); }
.pts-log li:last-child { border-bottom: 0; }
.pts-log b { font-weight: 600; font-variant-numeric: tabular-nums; }
.pts-log .is-up { color: #12805C; }
.pts-log .is-down { color: #C0262D; }
.pts-log .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Right-click menu. */
.ctx { position: fixed; z-index: 1000; display: grid; min-width: 232px; max-width: 300px; max-height: calc(100dvh - 16px); overflow-y: auto; padding: 5px; border-radius: 12px; background: var(--white); box-shadow: 0 12px 32px -8px rgba(10, 10, 15, .3), 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent); animation: ctx-in .14s var(--ease-smooth) both; }
.ctx hr { margin: 4px 6px; border: 0; border-top: 1px solid var(--line); }
.ctx-i { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none; font: 400 14px/1.2 var(--text); color: var(--ink); text-align: left; cursor: pointer; }
.ctx-i span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx-i .ico { width: 16px; height: 16px; flex: none; color: var(--grey); }
.ctx-i:is(:hover, :focus-visible):not(:disabled) { background: color-mix(in srgb, var(--ink) 7%, transparent); outline: none; }
.ctx-i:disabled { opacity: .4; cursor: default; }
.ctx-i.is-danger, .ctx-i.is-danger .ico { color: #C0262D; }
.ctx-i.is-danger:is(:hover, :focus-visible):not(:disabled) { background: color-mix(in srgb, #C0262D 10%, transparent); }
.ctx-i[aria-checked="true"] .ico { color: var(--accent); }
.ctx-more { margin-left: auto; }
.ctx-back { color: var(--grey); }
@keyframes ctx-in { from { opacity: 0; scale: .97; } }
@media (prefers-reduced-motion: reduce) { .ctx { animation: none; } }

/* ---------- 2026-11-25: phone fixes ---------- */
@media (max-width: 900px) {
  .topbar-right { min-width: 0; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .topbar-right::-webkit-scrollbar { display: none; }
  .topbar-right > * { flex: none; }
  .seg-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg-tabs::-webkit-scrollbar { display: none; }
  .seg-tabs > * { flex: none; }
}
@media (max-width: 560px) {
  .topbar-right { gap: 6px; }
  .topbar-right .icon-btn { width: 36px; height: 36px; }
  .chat-form textarea { order: -1; flex: 1 1 100%; }
  .chat-form .chat-tools { margin-right: auto; }
  .chat-head { flex-wrap: wrap; gap: 8px; }
  .doc-card .card-head .btn-row { width: 100%; }
  .doc-name { max-width: 100%; flex-basis: 100%; }
  .pts-row { grid-template-columns: 1fr; }
  .ctx { min-width: min(260px, calc(100vw - 16px)); }
  .ctx-i { min-height: 42px; }
}

/* Clients: add by Discord ID; orders made outside Discord. */
.cl-add { display: flex; gap: 8px; }
.cl-add input { width: 200px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--white); color: var(--ink); font: 400 14px/1 var(--text); }
.past-card { margin-bottom: 24px; }
.past-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 120px 150px; gap: 10px; align-items: end; }
.past-form .past-credit { grid-column: 1 / 3; }
.past-form .btn-row { grid-column: 3 / -1; justify-content: flex-end; }
.past-list { display: grid; margin-top: 16px; border-top: 1px solid var(--line); }
.past-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--line); }
.past-list li:last-child { border-bottom: 0; }
.past-main { display: grid; gap: 2px; min-width: 0; }
.past-main strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.past-list b { font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .past-form { grid-template-columns: 1fr 1fr; }
  .past-form .past-what { grid-column: 1 / -1; }
  .past-form .past-credit, .past-form .btn-row { grid-column: 1 / -1; }
  .cl-add { width: 100%; } .cl-add input { flex: 1; width: auto; min-width: 0; }
}

/* ---------- 2026-11-25: le lab line (full page, flat cards, simple reading) ---------- */
.view { padding: 28px clamp(16px, 2.5vw, 36px) 32px; }
.head { margin-bottom: 22px; }

/* Tout voir: one board for the whole studio, filling the page; each column scrolls on its own. */
.fill { display: flex; flex-direction: column; height: calc(100svh - 78px); }
.fill > .board { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); grid-template-columns: repeat(var(--n), minmax(160px, 1fr)); gap: 10px; padding-bottom: 6px; }
.fill .col { min-height: 0; border-radius: var(--r-well); }
.fill .col-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 2px 8px 10px; }
.col-head { justify-content: flex-start; padding: 12px 14px 8px; }
.col-head h3 { font: 600 14px/1.2 var(--text); }

/* Order card: title, client, chips, then ref · age and people. Neutral by default; tinted frame only when something needs doing. */
.kcard { gap: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 0 1px 2px rgba(10, 10, 15, .04); transition: translate .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .2s; }
.kcard::before { content: none; }
.kcard:hover { translate: 0 -1px; border-color: var(--line); box-shadow: 0 8px 18px -10px rgba(10, 10, 15, .25); }
.kcard:is([data-state="alone"], [data-state="price"], [data-state="test"]) { background: color-mix(in srgb, var(--st) 6%, var(--white)); border-color: color-mix(in srgb, var(--st) 35%, transparent); }
.kcard strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 14.5px; font-weight: 500; line-height: 1.35; }
.kcard-who { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--grey); }
.kcard-tags { gap: 4px; margin-top: 10px; }
.kcard-tags > span { min-height: 22px; padding: 0 7px; border-radius: 6px; font: 500 11.5px/1 var(--text); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--grey); }
.kchip { gap: 6px; color: var(--ink) !important; }
.kchip i { width: 7px; height: 7px; border-radius: 50%; background: var(--svc); }
.kcard-foot { margin-top: 10px; padding-top: 0; border-top: 0; }
.kcard-ref { font-weight: 400; }

/* Team: the whole card opens the member's account. */
.tm-card { position: relative; transition: border-color .2s, box-shadow .3s var(--ease-out); }
.tm-card[data-member]:hover { border-color: color-mix(in srgb, var(--ink) 20%, transparent); box-shadow: 0 8px 18px -10px rgba(10, 10, 15, .25); }
.tm-link { color: inherit; text-decoration: none; }
.tm-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tm-link:focus-visible { outline: none; }
.tm-card:has(.tm-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.tm-card :is(button, label, select, input) { position: relative; z-index: 1; }

/* Clients: one line per client, no money. */
.cl-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 8px; }
.cl-card { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 0; padding: 12px 14px; }
.cl-n { display: grid; justify-items: end; gap: 3px; font-size: 12.5px; color: var(--grey); white-space: nowrap; }
.cl-n b { font-weight: 500; color: var(--ink); }
.cl-live { font-weight: 500; }

/* Client profile: what the client is on the left, what the manager does on the right. */
.cp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 16px; align-items: start; }
.cp-main, .cp-side { display: grid; gap: 16px; min-width: 0; }
.cp-side .card, .cp-side .past-card { margin: 0; }
.cp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: var(--r-well); background: var(--paper); }
.cp-stats > div { display: grid; gap: 6px; align-content: start; padding: 12px 14px; border-radius: 12px; background: var(--white); box-shadow: var(--tile-edge); }
.cp-stats span { font-size: 12.5px; font-weight: 500; color: var(--grey); }
.cp-stats strong { display: flex; align-items: center; gap: 8px; font: 700 22px/1.1 var(--display); letter-spacing: -.02em; }
.cp-stats strong img { width: 22px; height: 22px; object-fit: contain; }
.cp-stats em { font-style: normal; font-size: 12px; color: var(--grey); }
.cp-sub { margin: 14px 0 0; font-size: 12.5px; font-weight: 500; color: var(--grey); }
.cp-sub:first-child { margin-top: 0; }
.cp-side .pts-row { grid-template-columns: 96px minmax(0, 1fr); }
.pts-form:not(:has([name="notify"]:checked)) .field:has(textarea) { display: none; }
.cp-side .past-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cp-side .past-form :is(.past-what, .past-credit, .btn-row) { grid-column: 1 / -1; }

@media (max-width: 1180px) { .cp { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1024px) {
  .fill { height: auto; }
  .fill > .board { grid-template-rows: auto; }
  .fill .col-body { overflow: visible; }
}
@media (max-width: 640px) { .cp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Order side panel, le lab style: grouped blocks with a small caps title; properties read label | value. */
.order-side { display: grid; gap: 0; padding: 2px 18px; }
.os-block { padding: 16px 0; }
.order-side > * + * { border-top: 1px solid var(--line); }
.os-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.os-head h2 { flex: 1; font: 600 11px/1.2 var(--text); letter-spacing: .07em; text-transform: uppercase; color: var(--grey); }
.os-select { height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink); font: 500 12px var(--text); }
.props { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px 12px; align-items: center; margin: 0; font-size: 13.5px; }
.props dt { color: var(--grey); }
.props dd { min-width: 0; margin: 0; }
.props .price-form { display: flex; flex-wrap: nowrap; gap: 6px; padding: 0; border: 0; }
.props .price-form .field { flex: 1; min-width: 0; margin: 0; }
.props .price-form input { height: 32px; }
.props .price-form .btn { flex: none; width: 32px; height: 32px; padding: 0; justify-content: center; }
.os-rows { display: grid; margin-top: 10px; }
.os-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 38px; font-size: 13px; }
.os-rows li + li { border-top: 1px solid var(--line); }
.os-rows li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.os-rows b { font-weight: 500; font-variant-numeric: tabular-nums; }
.os-rows .split-amt input { width: 76px; height: 30px; }
.os-rows .btn-sm { height: 30px; }
.os-total { font-weight: 600; }
.os-pill { padding: 3px 8px; border-radius: 999px; background: var(--paper); font-size: 11.5px; font-weight: 500; color: var(--grey); }
.os-pill.is-ok { background: color-mix(in srgb, #12805C 12%, transparent); color: var(--ok); }
.os-sub { margin-top: 14px; font-size: 12px; font-weight: 500; color: var(--grey); }
.os-more { margin-top: 12px; }
.os-more summary { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--r-ctl); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 500; list-style: none; cursor: pointer; }
.os-more summary .ico { width: 15px; height: 15px; }
.os-more[open] summary { margin-bottom: 12px; }
:is(.os-more, .os-fold) summary::-webkit-details-marker { display: none; }
.os-fold summary { margin: 0; list-style: none; cursor: pointer; }
.os-fold[open] summary { margin-bottom: 10px; }
.os-chev { width: 16px; height: 16px; color: var(--grey); transition: rotate .3s var(--ease-out); }
.os-fold[open] .os-chev { rotate: 180deg; }
.order-side .quote-sum { margin: 0; padding: 0; border: 0; }
.os-foot { padding: 12px 0 14px; }
.os-danger { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: 500 13px var(--text); color: var(--grey); cursor: pointer; }
.os-danger .ico { width: 15px; height: 15px; }
.os-danger:hover { color: #C0262D; }

/* Sidebar, le lab style: small caps section titles; an open page shows its sub-pages on a guide line. */
.nav-sec { padding: 18px 12px 6px; font: 700 11px/1.2 var(--text); letter-spacing: .07em; text-transform: uppercase; color: var(--grey); }
.nav-sub { display: grid; gap: 1px; margin: 2px 0 6px 20px; padding-left: 10px; border-left: 1px solid var(--line); }
.side-nav .nav-sub a { padding: 6px 10px; font-size: 13px; }
.side-nav .nav-sub a.is-on { box-shadow: none; background: var(--hover); }
.nav-kids { margin-top: 2px; }
.side-nav .nav-kids a { gap: 9px; }
.side-nav .nav-kids .ico { width: 15px; height: 15px; }

/* Manager preview of a client's or member's space. */
.pv-bar { position: sticky; top: 0; z-index: 70; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 6px 16px; background: var(--blue); color: var(--on-blue); font: 500 13px/1.3 var(--text); }
.pv-bar .ico { width: 16px; height: 16px; }
.pv-bar button { height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--on-blue); color: var(--blue); font: 600 12px var(--text); cursor: pointer; }
.is-preview .side, .is-preview .side-nav { top: 40px; }
.is-preview .side { height: calc(100svh - 40px); }
.is-preview .view { min-height: calc(100svh - 56px); }

/* Client order page: who works on the order. */
.rows li > span.who { display: flex; flex-direction: row; align-items: center; gap: 10px; }
.who .av { width: 28px; height: 28px; font-size: 12px; }

/* Invites page: one row per link, the joins of the last 30 days as a thin line in the accent. */
.inv-seg { margin-bottom: 16px; }
.inv-card { padding: 0; overflow-x: auto; }
.inv-card td:first-child, .inv-link { white-space: nowrap; }
.inv-link .icon-btn { margin-left: 4px; vertical-align: middle; }
.inv-act { text-align: right; white-space: nowrap; }
.inv-spark { display: block; color: var(--accent); }
.inv-spark polyline { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.inv-name { display: flex; gap: 6px; align-items: center; }
.inv-name input { min-width: 160px; }
