/* =========================================================================
   Agentiva Dashboard — prototype styles
   Light theme. Agentiva brand: lime #d4f03c, ink #111210, paper #f7f7f3,
   Plus Jakarta Sans. Material: liquid glass lit from the top left.
   ========================================================================= */

/* Registered as non-inherited: changing them restyles one element, not
   everything inside it. */
@property --i { syntax: '<number>'; inherits: false; initial-value: 2; }
@property --title-fs { syntax: '<length>'; inherits: false; initial-value: 150px; }

:root {
  /* Brand */
  --lime: #d4f03c;
  --lime-deep: #b9d61f;
  --lime-soft: #e4f68a;
  --lime-mist: #f3fad2;
  --ink: #111210;
  --ink-2: #2a2b27;
  --graphite: #55574f;
  --muted: #6b6d65;
  --mist: #c9cbc3;
  --paper: #f7f7f3;
  --paper-2: #eeeee8;
  --white: #ffffff;

  /* Refraction tints. Only ever used inside glass edges and sheen. */
  --mint: #d3f1e4;
  --sky: #e1e8fb;

  /* Status. Reserved: always shown with an icon and a word. */
  --good: #2e7d3a;
  --warn: #9a6400;
  --bad: #c23b3b;

  /* Chart marks */
  --mark: var(--ink);
  --mark-quiet: #cfd1c9;
  --mark-surface: #ffffff;
  --grid: rgba(17, 18, 16, 0.08);

  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Radii step down with hierarchy */
  --r-frame: 40px;
  --r-panel: 30px;
  --r-tile: 26px;
  --r-inner: 16px;
  --r-chip: 10px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  /* Light comes from the top left, so shadows fall to the bottom right. */
  --cast-sm: 3px 5px 12px -6px rgba(17, 18, 16, 0.16);
  --cast-md: 8px 14px 26px -16px rgba(17, 18, 16, 0.26), 2px 4px 8px -5px rgba(17, 18, 16, 0.1);
  --cast-lg: 24px 44px 70px -36px rgba(17, 18, 16, 0.38), 6px 14px 28px -18px rgba(17, 18, 16, 0.16);
  --rim: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(17, 18, 16, 0.04);


  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(212, 240, 60, 0.6);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.i {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.i--sm { width: 16px; height: 16px; }
.i--lg { width: 24px; height: 24px; }

/* =========================================================================
   SCENE — the lit room behind everything
   ========================================================================= */

.scene {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(110% 80% at 8% -12%, #ffffff 0%, rgba(255, 255, 255, 0) 58%),
    radial-gradient(80% 60% at 100% 110%, #e7e8df 0%, rgba(231, 232, 223, 0) 62%),
    linear-gradient(180deg, #f8f8f4 0%, #efefe9 100%);
}

/* The brand's paper grid, laid down as a floor that runs away from you. */
.scene__floor {
  position: absolute; left: -60%; right: -60%; bottom: -8%; height: 70%; overflow: hidden;
  transform-origin: 50% 100%;
  transform: perspective(700px) rotateX(66deg);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 80%, transparent 100%);
}
.scene__grid {
  position: absolute; left: 0; right: 0; top: -720px; bottom: 0;
  background-image:
    linear-gradient(rgba(17, 18, 16, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 18, 16, 0.075) 1px, transparent 1px);
  background-size: 72px 72px;
}
/* The same grid, flat and faint, on the wall. */
.scene__wall {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(17, 18, 16, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 18, 16, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.5) 45%, transparent 62%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.5) 45%, transparent 62%);
}


/* Window light and the shadow of its frame, drifting slowly. */
.scene__light {
  position: absolute; inset: -12%;
  background:
    linear-gradient(115deg,
      rgba(255,255,255,0) 16%, rgba(255,255,255,.55) 22%, rgba(255,255,255,.9) 27%, rgba(255,255,255,.55) 32%, rgba(255,255,255,0) 38%,
      rgba(255,255,255,0) 40%, rgba(255,255,255,.4) 44%, rgba(255,255,255,.65) 46%, rgba(255,255,255,.4) 48%, rgba(255,255,255,0) 52%),
    linear-gradient(115deg,
      rgba(17,18,16,0) 50%, rgba(17,18,16,.03) 53%, rgba(17,18,16,.05) 55%, rgba(17,18,16,.03) 57%, rgba(17,18,16,0) 61%,
      rgba(17,18,16,0) 64%, rgba(17,18,16,.025) 67%, rgba(17,18,16,.04) 69%, rgba(17,18,16,.025) 71%, rgba(17,18,16,0) 75%);
  will-change: transform;
  animation: light-drift 36s ease-in-out infinite alternate;
}
@keyframes light-drift {
  from { transform: translate3d(-4%, -2%, 0); }
  to   { transform: translate3d(5%, 2%, 0); }
}

/* Brand lime glow bleeding in from the corners, as on agentiva.co.za */
.scene__glow {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 240, 60, 0.85) 0%, rgba(212, 240, 60, 0.5) 25%, rgba(212, 240, 60, 0.18) 50%, rgba(212, 240, 60, 0) 70%);
  will-change: transform;
}
.scene__glow--a { width: 58vmax; height: 58vmax; left: -26vmax; bottom: -30vmax; animation: glow-a 28s ease-in-out infinite alternate; }
.scene__glow--b { width: 40vmax; height: 40vmax; right: -18vmax; top: -20vmax; opacity: 0.6; animation: glow-b 34s ease-in-out infinite alternate; }
@keyframes glow-a { to { transform: translate3d(8vmax, -5vmax, 0) scale(1.08); } }
@keyframes glow-b { to { transform: translate3d(-6vmax, 6vmax, 0) scale(0.92); } }

/* Paper grain, so glass has something to sit on. */
.scene__grain {
  position: absolute; inset: 0; opacity: .3;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.07 0 0 0 0 0.07 0 0 0 0 0.06 0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}


/* =========================================================================
   HOUSE PLAN — draws itself on sign-in, then stays as a faint blueprint
   ========================================================================= */

.plan-drift { position: absolute; inset: 0; }
.plan {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.4s var(--ease-out);
}
.plan path, .plan circle {
  fill: none; stroke: var(--ink); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
}
.plan .g-wall path { stroke-width: 2.6; }
.plan .g-open path { stroke-width: 1.8; }
.plan .g-fit path, .plan .g-fit circle { stroke-width: 1.3; stroke: rgba(17, 18, 16, .75); }
.plan .g-grid path, .plan .g-grid circle,
.plan .g-dim path, .plan .g-dim circle,
.plan .g-block path { stroke-width: 1.1; stroke: rgba(17, 18, 16, .5); }

.plan text { fill: var(--ink); font-family: var(--font); opacity: 0; }
.plan-room { font-size: 19px; font-weight: 400; fill: rgba(17, 18, 16, .48); letter-spacing: .02em; }
.plan-dim { font-size: 18px; font-weight: 500; fill: rgba(17, 18, 16, .6); }
.plan-note { font-size: 17px; font-weight: 500; fill: rgba(17, 18, 16, .6); }
.plan-block { font-size: 27px; font-weight: 700; letter-spacing: -0.02em; }

/* The drawing. Every line carries pathLength="1", so one pair of dash
   values works for all of them, whatever their real length. */
.scene.is-intro .plan { opacity: .6; }
.scene.is-intro .plan path,
.scene.is-intro .plan circle {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw-line 1.1s ease-out both;
}
.scene.is-intro .g-grid path, .scene.is-intro .g-grid circle { animation-duration: .8s; animation-delay: .1s; }
.scene.is-intro .g-wall path { animation-duration: 1.2s; animation-delay: .9s; }
.scene.is-intro .g-wall path:nth-child(1) { animation-delay: .35s; }
.scene.is-intro .g-wall path:nth-child(2) { animation-delay: .55s; }
.scene.is-intro .g-open path { animation-duration: .8s; animation-delay: 1.65s; }
.scene.is-intro .g-fit path, .scene.is-intro .g-fit circle { animation-duration: .9s; animation-delay: 2.05s; }
.scene.is-intro .g-dim path, .scene.is-intro .g-dim circle { animation-duration: .8s; animation-delay: 2.5s; }
.scene.is-intro .g-block path { animation-duration: .6s; animation-delay: 2.75s; }
.scene.is-intro .plan text { animation: fade-in .7s var(--ease-out) forwards; animation-delay: 2.7s; }
.scene.is-intro .plan-room { animation-delay: 2.45s; }
.scene.is-intro .plan-block { animation-delay: 2.95s; }

@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }

/* Once drawn it stays behind the dashboard, barely there. */
.scene.is-drawn .plan { opacity: .11; }
.scene.is-drawn .plan text { opacity: 1; }
.scene.is-rushing .plan-drift { animation: plan-recede 1.8s var(--ease-out); }
@keyframes plan-recede { from { scale: 1; } to { scale: 1.12; } }

/* =========================================================================
   GLASS MATERIALS
   ========================================================================= */

.glass {
  position: relative;
  background: linear-gradient(150deg, rgba(255,255,255,.62), rgba(255,255,255,.32));
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: var(--rim), var(--cast-lg);
}
/* Iridescent rim: lime → mint → sky, drawn as a masked border. */
.iris::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from 210deg, rgba(212,240,60,.95), rgba(211,241,228,.9) 22%, rgba(255,255,255,.95) 40%, rgba(225,232,251,.9) 58%, rgba(255,255,255,.4) 75%, rgba(212,240,60,.95));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: .85;
}

/* =========================================================================
   KIT — buttons, fields, switches, tabs, chips
   ========================================================================= */

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; border: 0;
  font-size: 14px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap; text-decoration: none;
  transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-out), background-color .2s;
}
.btn:active:not(:disabled) { transform: translateY(1px) scale(.98); }
.btn:disabled { opacity: .5; }

.btn--ink { background: var(--ink); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), var(--cast-md); }
.btn--ink:hover:not(:disabled) { background: #000; transform: translateY(-1px); }
.btn--ink .i { color: var(--lime); }

/* Lime gel, from the Liquid Glass Kit */
.btn--gel {
  color: var(--ink);
  background: linear-gradient(180deg, #eefaa6 0%, #dcf35a 42%, #cbe834 100%);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.95),
    inset 0 -6px 12px rgba(150,176,10,.35),
    inset 0 0 0 1px rgba(255,255,255,.35),
    12px 18px 30px -14px rgba(160,190,20,.75),
    2px 4px 8px -4px rgba(17,18,16,.18);
}
.btn--gel::after {
  content: ''; position: absolute; left: 14%; right: 14%; top: 3px; height: 38%; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,0)); pointer-events: none;
}
.btn--gel:hover:not(:disabled) { transform: translateY(-1px); }

.btn--glass {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.7));
  box-shadow: var(--rim), inset 0 0 0 1px rgba(17,18,16,.05), var(--cast-md);
}
.btn--glass:hover:not(:disabled) { background: #fff; transform: translateY(-1px); }

.btn--sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn--block { width: 100%; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; flex: none;
  color: var(--ink); background: linear-gradient(180deg, #fff, rgba(255,255,255,.78));
  box-shadow: var(--rim), inset 0 0 0 1px rgba(17,18,16,.05), var(--cast-md);
  transition: transform .35s var(--ease-spring);
  text-decoration: none;
}
.icon-btn:hover { transform: translateY(-1px); }
.icon-btn--ink { background: var(--ink); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), var(--cast-md); }
.icon-btn--sm { width: 34px; height: 34px; }
.icon-btn--sm .i { width: 17px; height: 17px; }
.icon-btn .badge {
  position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: var(--lime); color: var(--ink); box-shadow: 0 0 0 2px #fff;
}

/* Clear refractive lens (kit) */
.lens {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; flex: none;
  color: var(--ink);
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95) 0 10%, rgba(255,255,255,.2) 38%, rgba(255,255,255,.05) 62%, rgba(255,255,255,.55) 100%);
  box-shadow: inset -4px -6px 10px rgba(17,18,16,.06), inset 3px 4px 8px rgba(255,255,255,.9), var(--cast-sm);
  text-decoration: none;
}
.lens::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; padding: 2px;
  background: conic-gradient(from 140deg, var(--lime), var(--mint), #fff, var(--sky), var(--lime));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.lens:hover { transform: translateY(-1px); }

/* Search pill with a round action (kit) */
.search {
  display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 5px 0 16px; border-radius: 999px;
  background: linear-gradient(180deg, #fff, rgba(255,255,255,.82));
  box-shadow: var(--rim), inset 0 0 0 1px rgba(17,18,16,.05), var(--cast-md);
  min-width: 0;
}
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 14px; }
.search input::placeholder { color: var(--muted); }
.search:focus-within { box-shadow: var(--rim), inset 0 0 0 1.5px var(--ink), 0 0 0 5px rgba(212,240,60,.55), var(--cast-md); }
.search .i { color: var(--muted); }

/* Glass text field, with a valid state (kit) */
.field { display: grid; gap: 6px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--graphite); }
.field__box {
  position: relative; display: flex; align-items: center; height: 50px; padding: 0 14px 0 16px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.72));
  box-shadow: var(--rim), inset 0 0 0 1px rgba(17,18,16,.07), var(--cast-sm);
  transition: box-shadow .2s;
}
.field__box:focus-within { box-shadow: var(--rim), inset 0 0 0 1.5px var(--ink), 0 0 0 5px rgba(212,240,60,.55); }
.field__box input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: 15px; }
.field__box input::placeholder { color: var(--muted); }
.field__ok { color: var(--good); opacity: 0; transform: scale(.6); transition: opacity .25s, transform .35s var(--ease-spring); }
.field__box.is-valid .field__ok { opacity: 1; transform: scale(1); }
.field__hint { font-size: 12.5px; color: var(--muted); }

/* Switch (kit capsule toggle) */
.switch {
  position: relative; flex: none; width: 58px; height: 34px; border-radius: 999px; border: 0; padding: 0;
  background: linear-gradient(180deg, rgba(17,18,16,.08), rgba(17,18,16,.03));
  box-shadow: inset 0 1px 3px rgba(17,18,16,.14), inset 0 0 0 1px rgba(255,255,255,.6);
  transition: background .3s;
}
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 40%, #f1f1ec 100%);
  box-shadow: 0 0 0 1px rgba(17,18,16,.06), 3px 5px 10px -3px rgba(17,18,16,.35);
  transition: transform .45s var(--ease-spring);
}
.switch[aria-checked="true"] { background: linear-gradient(180deg, #e3f77a, #cbe834); box-shadow: inset 0 1px 2px rgba(120,140,0,.35), inset 0 0 0 1px rgba(255,255,255,.5); }
.switch[aria-checked="true"]::after { transform: translateX(24px); }
.switch:disabled, .switch[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.switch--sm { width: 46px; height: 26px; }
.switch--sm::after { width: 20px; height: 20px; }
.switch--sm[aria-checked="true"]::after { transform: translateX(20px); }

/* Check chip (kit) */
.check-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 8px; border-radius: 999px; border: 0;
  font-size: 13px; font-weight: 500;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.7));
  box-shadow: var(--rim), inset 0 0 0 1px rgba(17,18,16,.06), var(--cast-sm);
}
.check-chip__box {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px;
  box-shadow: inset 0 0 0 1.5px rgba(17,18,16,.25); color: transparent; transition: background .2s, color .2s;
}
.check-chip__box .i { width: 14px; height: 14px; stroke-width: 2.4; }
.check-chip[aria-pressed="true"] .check-chip__box { background: var(--ink); color: var(--lime); box-shadow: none; }
.check-chip:disabled, .check-chip[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

/* Tabs with a sliding lime underline (kit) */
.tabs {
  position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(17,18,16,.05), rgba(17,18,16,.02));
  box-shadow: inset 0 1px 2px rgba(17,18,16,.08), inset 0 0 0 1px rgba(255,255,255,.7);
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px;
  background: linear-gradient(180deg, #fff, #f6f6f2);
  box-shadow: var(--rim), inset 0 0 0 1px rgba(17,18,16,.05), var(--cast-sm);
  transition: transform .5s var(--ease-spring), width .5s var(--ease-spring);
}
.tabs__thumb::after {
  content: ''; position: absolute; left: 22%; right: 22%; bottom: 3px; height: 3px; border-radius: 3px; background: var(--lime-deep);
}
.tabs button {
  position: relative; z-index: 1; height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent;
  font-size: 13px; font-weight: 500; color: var(--graphite); white-space: nowrap;
}
.tabs button[aria-selected="true"] { color: var(--ink); font-weight: 600; }

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap; vertical-align: middle;
  background: rgba(17,18,16,.05); color: var(--graphite);
}
.chip .i { width: 14px; height: 14px; stroke-width: 2; }
.chip--good { background: rgba(46,125,58,.1); color: var(--good); }
.chip--warning { background: rgba(154,100,0,.1); color: var(--warn); }
.chip--critical { background: rgba(194,59,59,.1); color: var(--bad); }
.chip--tbd { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip--proposed { background: var(--lime-soft); color: var(--ink); }
.chip--sample { background: rgba(255,255,255,.8); color: var(--graphite); box-shadow: inset 0 0 0 1px rgba(17,18,16,.08); }
.chip--view { background: rgba(17,18,16,.06); color: var(--ink); }
.on-ink .chip { background: rgba(255,255,255,.1); color: #e9eae4; }
.on-ink .chip--tbd { background: transparent; color: var(--lime); box-shadow: inset 0 0 0 1.5px var(--lime); }
.on-ink .chip--critical { background: rgba(255,120,120,.16); color: #ffb3b3; }
.on-ink .chip--warning { background: rgba(255,196,90,.15); color: #ffd28a; }
.on-ink .chip--good { background: rgba(140,220,150,.14); color: #a9e6b1; }

/* Avatars: initials only, no photos */
.avatar {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: none;
  font-size: 11.5px; font-weight: 700; letter-spacing: .01em; color: var(--ink);
  background: linear-gradient(160deg, #fff, #e9eae3); box-shadow: 0 0 0 2px #fff, 2px 3px 6px -3px rgba(17,18,16,.3);
}
.avatar--lime { background: linear-gradient(160deg, #eefaa6, #d4f03c); }
.avatar--ink { background: linear-gradient(160deg, #3a3c36, #111210); color: #fff; }
.avatar--lg { width: 44px; height: 44px; font-size: 14px; }
.avatars { display: inline-flex; }
.avatars .avatar + .avatar { margin-left: -9px; }
.avatar--more { background: var(--ink); color: var(--lime); }
.on-ink .avatar { box-shadow: 0 0 0 2px var(--ink); }

/* =========================================================================
   SIGN-IN
   ========================================================================= */

.signin {
  position: relative; z-index: 2; min-height: 100vh; display: grid; place-items: center;
  padding: 32px 16px 48px; perspective: 1400px;
}
.signin__drift, .hero-drift { pointer-events: none; }
.signin__drift { position: absolute; inset: 0; }
.hero-drift { position: relative; z-index: 0; }
.signin__word {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -96%);
  font-weight: 200; font-size: clamp(64px, 15vw, 240px); letter-spacing: -0.06em; line-height: .9;
  white-space: nowrap; color: var(--ink); user-select: none;
}
.signin__card {
  position: relative; width: min(440px, 100%); border-radius: 36px; padding: 30px;
  display: grid; gap: 18px; margin-top: 12vh;
  animation: card-arrive 1.1s var(--ease-out) both;
}
@keyframes card-arrive {
  from { opacity: 0; transform: translate3d(0, 40px, -300px) rotateX(14deg); }
}
.signin__brand { display: flex; align-items: center; gap: 12px; }
.signin__brand h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.signin__brand p { font-size: 14px; color: var(--muted); }
.signin__form { display: grid; gap: 14px; }
.signin__preview { display: grid; gap: 8px; }
.signin__preview > #preview-label { font-size: 13px; font-weight: 600; color: var(--graphite); }
.signin__preview .tabs { width: 100%; }
.signin__preview .tabs button { flex: 1; padding: 0 8px; }
.signin__note { font-size: 12.5px; color: var(--muted); text-align: center; }
.theme-fab { position: fixed; top: 16px; right: 16px; z-index: 6; }
.signin.is-leaving .theme-fab { opacity: 0; pointer-events: none; }
.signin__skip {
  position: fixed; left: 50%; bottom: 26px; translate: -50% 0; z-index: 4;
  font-size: 12.5px; color: var(--muted); opacity: 0; pointer-events: none;
  transition: opacity .8s var(--ease-out);
}
.signin.is-leaving .signin__skip { opacity: 1; transition-delay: .6s; }
.signin.is-parting .signin__skip { opacity: 0; transition-delay: 0s; }
.signin__error {
  display: flex; align-items: flex-start; gap: 8px; padding: 10px 14px; border-radius: 16px;
  font-size: 13px; font-weight: 500; color: var(--bad); background: rgba(194,59,59,.08); box-shadow: inset 0 0 0 1px rgba(194,59,59,.15);
}
.signin__error::before { content: '!'; display: grid; place-items: center; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; font-size: 12px; font-weight: 800; color: #fff; background: var(--bad); }
.field__box.is-wrong { box-shadow: var(--rim), inset 0 0 0 1.5px var(--bad), var(--cast-sm); }

.signin.is-leaving { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.signin.is-leaving .signin__card { animation: card-leave .6s var(--ease-out) forwards; }
.signin.is-leaving .signin__word { animation: word-hold 3.4s var(--ease-out) forwards; }
.signin.is-parting .signin__word { animation: word-leave .8s var(--ease-out) forwards; }
@keyframes word-hold { from { transform: translate(-50%, -96%) scale(1); } to { transform: translate(-50%, -96%) scale(1.06); } }
@keyframes word-hold-sm {
  from { transform: translateX(-50%) translateY(0) scale(1); }
  to { transform: translateX(-50%) translateY(calc(50vh - 88px)) scale(1.04); }
}
@keyframes word-leave-sm {
  from { opacity: 1; transform: translateX(-50%) translateY(calc(50vh - 88px)) scale(1.04); }
  to { opacity: 0; transform: translateX(-50%) translateY(calc(50vh - 88px)) scale(1.3); }
}
@keyframes card-leave { to { opacity: 0; transform: translate3d(0, -20px, -500px) scale(.92); } }
@keyframes word-leave { to { opacity: 0; transform: translate(-50%, -96%) scale(1.25); } }

.mark {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: linear-gradient(180deg, #eefaa6, #d4f03c 55%, #c3e22a);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.9), inset 0 -4px 8px rgba(150,176,10,.35), 6px 10px 18px -10px rgba(140,170,10,.8);
}
.mark svg { width: 56%; height: auto; fill: var(--ink); margin-top: -2px; }
.mark--sm { width: 38px; height: 38px; }

/* =========================================================================
   APP — stage, title, frame
   ========================================================================= */

.app { position: relative; z-index: 1; }

.stage {
  position: relative; min-height: 100vh; padding: 20px 28px 116px;
  perspective: 1800px; perspective-origin: 50% 20%;
}

.hero-title {
  position: relative; z-index: 0; margin: 0 auto; max-width: 1480px; text-align: center;
  font-weight: 200; font-size: var(--title-fs); line-height: .98; letter-spacing: -0.058em;
  white-space: nowrap; color: var(--ink); user-select: none;
}
.hero-title span { display: inline-block; white-space: pre; }
.is-retitling .hero-title span { animation: letter-in .8s var(--ease-out) both; animation-delay: calc(var(--d) * 26ms); }
@keyframes letter-in { from { opacity: 0; transform: translate3d(0, .35em, 0) scale(.9); } }

.frame {
  position: relative; z-index: 1; max-width: 1480px; margin: calc(var(--title-fs) * -0.13) auto 0;
  border-radius: var(--r-frame); padding: 14px;
  display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: 14px;
  transform-origin: 50% 0%;
}

/* ---------- sidebar (reference 3) ---------- */
.side {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 12px 14px;
  border-radius: var(--r-panel);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.66));
  box-shadow: var(--rim), inset 0 0 0 1px rgba(17,18,16,.04), var(--cast-md);
}
.side__brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 18px; }
.side__name strong { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.side__name span { display: block; font-size: 12px; color: var(--muted); }
.side__label { padding: 10px 12px 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.nav { display: grid; gap: 2px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--graphite); text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav a:hover { background: rgba(17,18,16,.045); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), var(--cast-md); }
.nav a[aria-current="page"] .i { color: var(--lime); }
.nav a .nav__tag { margin-left: auto; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; box-shadow: inset 0 0 0 1.2px currentColor; }
.nav a .nav__tag--proposed { box-shadow: none; background: var(--lime-soft); color: var(--ink); }
.side__foot { margin-top: auto; padding-top: 18px; display: grid; gap: 12px; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 22px; background: rgba(17,18,16,.035); }
.me__text { min-width: 0; }
.me__text strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.me__text span { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 110px; }
.me .icon-btn { margin-left: auto; }

/* ---------- main column ---------- */
.main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }

.topbar { display: flex; align-items: center; gap: 10px; padding: 6px 4px 4px 10px; flex-wrap: wrap; }
.topbar__title { min-width: 0; margin-right: auto; }
.topbar__title h2 { font-size: 30px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.15; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar__title p { font-size: 13.5px; color: var(--muted); }
.topbar .search { width: 300px; }

.topbar [data-signout] { display: none; }

.clock {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, rgba(255,255,255,.8));
  box-shadow: var(--rim), inset 0 0 0 1px rgba(17,18,16,.05), var(--cast-md);
}
.clock span { color: var(--muted); font-weight: 500; }

.summary { font-size: 15px; color: var(--graphite); max-width: 70ch; padding: 0 10px; }

/* =========================================================================
   BENTO + TILES
   ========================================================================= */

.content { position: relative; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; grid-auto-flow: row dense; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: 1 / -1; }
.rows-2 { grid-row: span 2; }

.tile {
  position: relative; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 20px;
  border-radius: var(--r-tile);
  background: linear-gradient(160deg, rgba(255,255,255,.9), rgba(255,255,255,.62));
  box-shadow: var(--rim), inset 0 0 0 1px rgba(17,18,16,.035), var(--cast-md);
}
.tile__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tile__title { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tile__sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.tile__actions { display: flex; gap: 6px; flex: none; }
.tile__body { display: flex; flex-direction: column; gap: 14px; flex: 1; min-height: 0; }
.tile__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Clear glass: the frame's frost shows through */
.tile--clear {
  background: linear-gradient(160deg, rgba(255,255,255,.55), rgba(255,255,255,.2));
  box-shadow: var(--rim), inset 0 0 0 1px rgba(255,255,255,.6), var(--cast-md);
}

/* Ink: the dark contrast panel from reference 3 */
.tile--ink {
  color: #f4f5f0; overflow: hidden;
  background: radial-gradient(130% 90% at 15% 0%, #33352f 0%, #161714 45%, #0d0e0c 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.04), var(--cast-lg);
  --mark: var(--lime);
  --mark-quiet: #4a4c45;
  --mark-surface: #151613;
  --grid: rgba(255,255,255,.1);
}
.tile--ink .tile__sub, .tile--ink .muted { color: #a7a99f; }
.tile--ink .icon-btn { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.14); }
.tile--ink .mini-btn { color: #d9dad3; background: rgba(255,255,255,.08); }

/* Lime gel card (kit "Invite member") */
.tile--gel {
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 45%),
    linear-gradient(140deg, #f5fbd6 0%, #e8f79a 28%, #d4f03c 55%, #d6f1d9 82%, #e1e8fb 100%);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.95), inset 0 -10px 30px rgba(150,176,10,.18), inset 0 0 0 1px rgba(255,255,255,.5),
    18px 30px 50px -26px rgba(150,180,20,.6), var(--cast-md);
}
.tile--gel .tile__sub { color: #45473f; }
.tile--gel .tile__body { justify-content: center; }

.muted { color: var(--muted); }

.mini-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--graphite); background: rgba(17,18,16,.05); text-decoration: none; white-space: nowrap;
}
.mini-btn:hover { color: var(--ink); background: rgba(17,18,16,.09); }
.mini-btn .i { width: 15px; height: 15px; }

/* Swap between pages */
.is-swapping .tile { animation: tile-swap .6s var(--ease-out) both; animation-delay: calc((var(--i, 2) - 2) * 60ms); }
@keyframes tile-swap { from { opacity: 0; transform: translate3d(0, 16px, 0) scale(.97); } }

/* =========================================================================
   ENTRANCE — the dashboard comes toward you
   ========================================================================= */

.is-entering .frame { animation: approach 1.6s var(--ease-out) both; }
.is-preparing .stage, .is-preparing .dock { opacity: 0; }
/* New page content waits one frame for its rows to be measured. */
.is-holding .content .tile { opacity: 0; }
.is-entering .tile, .is-entering .side, .is-entering .topbar { animation: rise-from-depth 1s var(--ease-out) both; animation-delay: calc(260ms + var(--i, 0) * 80ms); }
.is-entering .side { --i: 0; }
.is-entering .topbar { --i: 1; }
.is-entering .hero-title { animation: title-in 1.3s var(--ease-out) both; animation-delay: 200ms; }
.is-entering .dock { animation: dock-in .9s var(--ease-spring) both; animation-delay: 1.3s; }

@keyframes approach {
  0%   { opacity: 0; transform: translate3d(0, 10vh, -1600px) rotateX(28deg); }
  35%  { opacity: 1; }
  78%  { transform: translate3d(0, -4px, 30px) rotateX(-1.5deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes rise-from-depth {
  from { opacity: 0; transform: translate3d(0, 28px, 0) scale(.94); }
}
@keyframes title-in {
  from { opacity: 0; transform: translate3d(0, .3em, 0) scale(.8); }
}
@keyframes dock-in {
  from { opacity: 0; transform: translate(-50%, 80px) scale(.9); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* The room rushes a little as the frame arrives */
.scene.is-rushing .scene__grid { animation: floor-rush 1.8s var(--ease-out); }
@keyframes floor-rush { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 720px, 0); } }

.is-leaving .frame { animation: depart .8s cubic-bezier(.7, 0, .84, 0) forwards; }
.is-leaving .hero-title, .is-leaving .dock { animation: fade-out .5s forwards; }
@keyframes depart { to { opacity: 0; transform: translate3d(0, 8vh, -1400px) rotateX(24deg); } }
@keyframes fade-out { to { opacity: 0; } }

/* =========================================================================
   DOCK — the dashboards (reference 2)
   ========================================================================= */

.dock {
  position: fixed; left: 50%; bottom: 18px; z-index: 30; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 999px;
  max-width: calc(100vw - 24px);
}
.dock__track { position: relative; display: flex; overflow-x: auto; scrollbar-width: none; border-radius: 999px; }
.dock__track::-webkit-scrollbar { display: none; }
.dock__thumb {
  position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 999px;
  background: linear-gradient(180deg, #eefaa6 0%, #dcf35a 45%, #cbe834 100%);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.95), inset 0 -5px 10px rgba(150,176,10,.3), 6px 10px 20px -10px rgba(150,180,20,.8);
  transition: transform .6s var(--ease-spring), width .6s var(--ease-spring);
}
.dock__track a {
  position: relative; z-index: 1; display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--graphite); text-decoration: none; white-space: nowrap;
}
.dock__track a:hover { color: var(--ink); }
.dock__track a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.dock__short { display: none; }

/* Scene controls live at the end of the dock */
.dock__scene { display: flex; gap: 6px; padding-left: 8px; margin-left: 2px; box-shadow: inset 1px 0 0 rgba(17,18,16,.1); }
.dock__scene .lens { width: 40px; height: 40px; }
.dock__scene .lens[aria-pressed="true"] { background: var(--ink); color: var(--lime); }

/* =========================================================================
   WIDGETS
   ========================================================================= */

/* Push/Pull tree */
.tree { position: relative; flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; gap: 34px 18px; align-content: center; padding: 10px 0 4px; min-height: 300px; }
.tree__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tree__svg path { fill: none; stroke: rgba(17,18,16,.22); stroke-width: 1.5; }
.tree__dot { position: absolute; left: 0; top: 0; z-index: 0; width: 9px; height: 9px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: var(--lime-deep); box-shadow: 0 0 0 2px #fff; will-change: transform, opacity; }
.node {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 22px; text-decoration: none;
  background: linear-gradient(170deg, #fff, rgba(255,255,255,.78));
  box-shadow: var(--rim), inset 0 0 0 1px rgba(17,18,16,.05), 8px 14px 26px -14px rgba(17,18,16,.35);
  transition: transform .4s var(--ease-spring);
}
.node:hover { transform: translateY(-2px); }
.node__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(17,18,16,.05); flex: none; }
.node__text strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.node__meta { display: block; font-size: 12.5px; color: var(--muted); }
.node--admin { grid-column: 1 / -1; justify-self: center; min-width: 58%; background: radial-gradient(130% 120% at 20% 0%, #3a3c36, #111210 60%); color: #fff; }
.node--admin .node__meta { color: #b5b7ad; }
.node--admin .node__icon { background: var(--lime); color: var(--ink); box-shadow: 0 0 0 5px rgba(212,240,60,.2); }
.tree__legend { display: flex; gap: 8px; flex-wrap: wrap; }

/* Level meters (Users) */
.levels { display: grid; gap: 12px; }
.level { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: baseline; }
.level strong { font-size: 13.5px; font-weight: 500; }
.level b { font-size: 14px; font-weight: 700; }
.meter { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: rgba(17,18,16,.07); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 999px; background: var(--ink); transform-origin: left; }
.meter--lime > i { background: var(--lime-deep); }
.tile--ink .meter { background: rgba(255,255,255,.1); }
.tile--ink .meter > i { background: var(--lime); }

/* Figures */
.figure { display: flex; align-items: flex-end; gap: 14px; }
.sec .figure { align-items: center; }
.figure__value { font-size: 64px; font-weight: 600; letter-spacing: -0.05em; line-height: .9; }
.figure__label { font-size: 14px; font-weight: 500; line-height: 1.3; padding-bottom: 6px; }
.stat__value { font-size: 30px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.stat__label { font-size: 13px; font-weight: 500; color: var(--graphite); }
.stat__note { font-size: 12.5px; color: var(--muted); }

.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-strip > div { padding: 4px 20px; display: grid; gap: 4px; }
.stat-strip > div + div { box-shadow: inset 1px 0 0 rgba(17,18,16,.08); }
.stat-strip > div:first-child { padding-left: 4px; }

/* Event list */
.events { display: grid; gap: 4px; list-style: none; padding: 0; margin: 0; }
.events li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 10px 4px; }
.events li + li { box-shadow: inset 0 1px 0 var(--grid); }
.events strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.events .ev-detail { display: block; font-size: 12.5px; color: var(--muted); }
.events time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.sev { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.sev .i { width: 16px; height: 16px; stroke-width: 2; }
.sev--critical { background: rgba(194,59,59,.12); color: var(--bad); }
.sev--warning { background: rgba(154,100,0,.12); color: var(--warn); }
.sev--good { background: rgba(46,125,58,.12); color: var(--good); }
.on-ink .sev--critical { background: rgba(255,120,120,.16); color: #ffb3b3; }
.on-ink .sev--warning { background: rgba(255,196,90,.16); color: #ffd28a; }
.on-ink .sev--good { background: rgba(140,220,150,.16); color: #a9e6b1; }
.on-ink .events .ev-detail, .on-ink .events time { color: #a7a99f; }

/* Security ink tile */
.sec { position: relative; display: grid; gap: 16px; flex: 1; }
.sec__rows { display: grid; gap: 8px; }
.sec__rows > div { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.sec__rows b { margin-left: auto; font-weight: 700; }

/* Services */
.services { display: grid; gap: 8px; }
.service { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 10px 10px 8px; border-radius: 20px; background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(17,18,16,.04); }
.service__mono { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; font-size: 12px; font-weight: 800; color: var(--ink); background: linear-gradient(160deg, #fff, #ecede6); box-shadow: var(--rim), inset 0 0 0 1px rgba(17,18,16,.06), var(--cast-sm); }
.service__text { min-width: 0; }
.service__text strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; }
.service__job { display: block; font-size: 12.5px; color: var(--muted); }
.service__right { display: flex; align-items: center; gap: 10px; }
.services--grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.services--grid .service { grid-template-columns: auto 1fr; padding: 16px; align-items: start; border-radius: 24px; background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(255,255,255,.66)); box-shadow: var(--rim), inset 0 0 0 1px rgba(17,18,16,.04), var(--cast-md); }
.services--grid .service__right { grid-column: 1 / -1; justify-content: space-between; padding-top: 10px; box-shadow: inset 0 1px 0 var(--grid); }

/* Project list */
.plist { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.plist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 10px 12px; border-radius: 18px; background: rgba(255,255,255,.5); }
.plist__text { min-width: 0; }
.plist__text strong { display: block; font-size: 14px; font-weight: 600; }
.plist__client { display: block; font-size: 12.5px; color: var(--muted); }
.plist .meter { height: 6px; grid-column: 1; }
.plist__pct { font-size: 12.5px; font-weight: 700; text-align: right; }

/* Gantt (reference 3) */
.gantt { --label-w: 120px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gantt__row { display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr); align-items: center; gap: 12px; min-height: 40px; }
.gantt__label { font-size: 13px; font-weight: 500; color: var(--graphite); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt__track { position: relative; height: 40px; }
.gantt__track::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--grid); }
.gantt__bar {
  position: absolute; top: 3px; bottom: 3px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 4px 0 14px; border-radius: 999px; border: 0; min-width: 44px;
  font-size: 12px; font-weight: 600; color: #fff; background: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 6px 10px 18px -10px rgba(17,18,16,.55);
  overflow: hidden;
}
.gantt__bar .gb-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt__bar .avatars { flex: none; }
.gantt__bar .avatars .avatar { width: 26px; height: 26px; font-size: 10.5px; box-shadow: 0 0 0 2px var(--ink); }
.gantt__bar .avatars .avatar + .avatar { margin-left: -5px; }
.gantt__bar--hot { color: var(--ink); background: linear-gradient(180deg, #eefaa6, #d4f03c 55%, #c6e42e); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.9), 6px 10px 18px -10px rgba(150,180,20,.9); }
.gantt__bar--hot .avatars .avatar { box-shadow: 0 0 0 2px #d4f03c; }
.gantt__axis { display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr); gap: 12px; }
.gantt__ticks { position: relative; height: 18px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gantt__ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.gantt__ticks span:first-child { transform: none; }
.gantt__ticks span:last-child { transform: translateX(-100%); }
.gantt__body { position: relative; display: grid; gap: 6px; flex: 1; align-content: space-evenly; }
.gantt__overlay { position: absolute; top: 0; bottom: 0; left: calc(var(--label-w) + 12px); right: 0; pointer-events: none; }
.gantt__overlay i { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--grid); }
.gantt__ticks--centered span, .gantt__ticks--centered span:first-child, .gantt__ticks--centered span:last-child { transform: translateX(-50%); }
.gantt__now { position: absolute; top: -8px; bottom: -4px; width: 0; border-left: 1.5px solid var(--ink); z-index: 2; pointer-events: none; }
.gantt__now::before { content: ''; position: absolute; top: -5px; left: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px var(--ink); }

/* Charts */
.viz { position: relative; display: grid; }
.viz__table { display: none; }
.viz[data-view="table"] .viz__chart { display: none; }
.viz[data-view="table"] .viz__table { display: block; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font); font-size: 11px; fill: var(--muted); }
.tile--ink .chart text { fill: #a7a99f; }
.chart .label-strong { font-size: 12px; font-weight: 700; fill: var(--ink); }
.tile--ink .chart .label-strong { fill: #fff; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: var(--grid); stroke-width: 1; }
.chart .bar { fill: var(--mark-quiet); transition: opacity .2s; }
.chart .bar--on { fill: var(--mark); }
.chart .hit { fill: transparent; }
.chart .hit:hover + .bar, .chart .hit:focus + .bar { opacity: .75; }
.chart .hit:focus { outline: none; }
.chart .hit:focus-visible { stroke: var(--ink); stroke-width: 1.5; }
.chart .dot { fill: var(--mark); stroke: var(--mark-surface); stroke-width: 2; }
.chart .line { fill: none; stroke: var(--mark); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--mark); opacity: .1; }
.chart .cross { stroke: var(--ink); stroke-width: 1; opacity: 0; }
.tile--ink .chart .cross { stroke: #fff; }
.chart.is-hover .cross, .chart.is-hover .cross-dot { opacity: 1; }
.chart .cross-dot { opacity: 0; }

.ring { position: relative; display: grid; place-items: center; width: var(--size, 150px); max-width: 100%; }
.ring svg { width: 100%; height: auto; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: rgba(17,18,16,.08); }
.ring__fill { fill: none; stroke: var(--ink); stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease-out); }
.ring--lime .ring__track { stroke: rgba(17,18,16,.1); }
.ring--lime .ring__fill { stroke: var(--ink); }
.ring__value { position: absolute; text-align: center; }
.ring__value b { display: block; font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.ring__value span { display: block; font-size: 12px; color: var(--graphite); margin-top: 4px; }
.tile--ink .ring__track { stroke: rgba(255,255,255,.12); }
.tile--ink .ring__fill { stroke: var(--lime); }
.tile--ink .ring__value span { color: #a7a99f; }

table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 8px 10px; }
table.data td { padding: 10px; box-shadow: inset 0 1px 0 var(--grid); vertical-align: middle; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tile--ink table.data th { color: #a7a99f; }

.table-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
.people { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 13.5px; min-width: 720px; }
.people th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 12px 2px; white-space: nowrap; }
.people td { padding: 10px 12px; background: rgba(255,255,255,.62); vertical-align: middle; }
.people td:first-child { border-radius: 18px 0 0 18px; }
.people td:last-child { border-radius: 0 18px 18px 0; }
.people .who { display: flex; align-items: center; gap: 10px; }
.people .who strong { display: block; font-weight: 600; }
.people .who__d { display: block; font-size: 12px; color: var(--muted); }
.people tr.is-self td { background: rgba(212,240,60,.22); }
.people .center { text-align: center; }
.people .lockhint { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--graphite); }

/* Charts drawn at their real width */
.chart-host { position: relative; }
.chart-host--sm .chart text { font-size: 10.5px; }

/* Rules list (Push/Pull) */
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; }
.rules li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.45; }
.rules .i { color: var(--lime); margin-top: 1px; }


.progress-cell { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.progress-cell .meter { flex: 1; height: 6px; }
.progress-cell b { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.access-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.who .file-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--lime); flex: none; }
.who .file-ic .i { width: 16px; height: 16px; }
.client-card header > div { display: grid; gap: 6px; justify-items: start; }

/* Scope cards */
.scope { display: flex; flex-wrap: wrap; gap: 8px; }
.scope .check-chip { cursor: default; }

/* TBD panels */
.tbd { display: grid; gap: 14px; flex: 1; align-content: start; }
.tbd p { font-size: 13.5px; }
.tbd__list { display: flex; flex-wrap: wrap; gap: 6px; }
.tbd__list span { font-size: 12px; padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px currentColor; opacity: .75; }
.tbd-hero { display: grid; gap: 8px; max-width: 70ch; padding: 10px 0; }
.tbd-hero h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.tbd-hero p { color: #c7c9bf; max-width: 52ch; margin-top: 8px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 0 0 18px; }
.timeline li::before { content: ''; position: absolute; left: 103px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--ink); }
.timeline li::after { content: ''; position: absolute; left: 107.5px; top: 20px; bottom: 2px; width: 1px; background: var(--grid); }
.timeline li:last-child::after { display: none; }
.timeline li:first-child::before { background: var(--lime); }
.timeline time { font-size: 12.5px; color: var(--muted); text-align: right; padding-right: 22px; }
.timeline strong { display: block; font-size: 14px; font-weight: 600; padding-left: 16px; }
.timeline .tl-d { display: block; font-size: 12.5px; color: var(--muted); padding-left: 16px; }

/* Files (reference 3) */
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.files li { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(17,18,16,.06); }
.files .file-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--lime); flex: none; }
.files .file-ic .i { width: 17px; height: 17px; }
.files strong { font-size: 13.5px; font-weight: 600; display: block; line-height: 1.2; }
.files .file-kind { font-size: 12px; color: var(--muted); display: block; }
.files .when { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }

/* Teams (ink) */
.teams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; flex: 1; }
.teams > div { padding: 4px 20px; display: flex; flex-direction: column; gap: 12px; }
.teams > div + div { box-shadow: inset 1px 0 0 rgba(255,255,255,.1); }
.teams > div:first-child { padding-left: 0; }
.teams h4 { font-size: 16px; font-weight: 600; }
.teams .row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #a7a99f; }
.ink-sheen { position: absolute; right: -60px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(212,240,60,.16), rgba(212,240,60,0) 65%); filter: blur(24px); }

/* Clients */
.clients { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.client-card { display: grid; gap: 14px; padding: 18px; border-radius: 24px; background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(255,255,255,.66)); box-shadow: var(--rim), inset 0 0 0 1px rgba(17,18,16,.04), var(--cast-md); }
.client-card header { display: flex; align-items: center; gap: 12px; }
.client-card strong { font-size: 15px; font-weight: 600; display: block; line-height: 1.25; }
.client-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0; }
.client-card dt { font-size: 12px; color: var(--muted); }
.client-card dd { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.client-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.client-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: rgba(255,255,255,.55); font-size: 13.5px; }
.client-list li b { font-weight: 600; }
.client-list .chip { margin-left: auto; }

/* Review queue */
.queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.queue li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 20px; background: rgba(255,255,255,.62); box-shadow: inset 0 0 0 1px rgba(17,18,16,.04); }
.queue strong { display: block; font-size: 14px; font-weight: 600; }
.queue .q-d { display: block; font-size: 12.5px; color: var(--muted); }

/* Gel invite card */
.invite { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.invite h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.invite p { font-size: 13.5px; color: #3c3e37; }
.invite .btn { margin-top: auto; align-self: flex-start; }

/* Ring beside a short list of stages (client home, review) */
.progress-pair { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.steps li { display: flex; align-items: center; gap: 10px; }
.steps .dotmark { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ink); flex: none; }
.steps .dotmark--done { background: var(--ink); }
.steps .dotmark--now { background: var(--lime); }

/* Notice for proposed / view-only / TBD pages */
.notice { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 20px; font-size: 13.5px; background: rgba(255,255,255,.66); box-shadow: inset 0 0 0 1px rgba(17,18,16,.06); }
.notice .i { flex: none; }
.notice--proposed { background: linear-gradient(90deg, rgba(228,246,138,.8), rgba(243,250,210,.7)); }

/* =========================================================================
   TOOLTIP, TOASTS, DIALOG
   ========================================================================= */

.tip {
  position: fixed; z-index: 100; pointer-events: none; min-width: 90px; padding: 8px 12px; border-radius: 14px;
  background: rgba(17,18,16,.92); color: #fff; box-shadow: 0 12px 30px -12px rgba(0,0,0,.5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transform: translate(-50%, calc(-100% - 12px)) scale(.96); transition: opacity .12s, transform .12s;
}
.tip.is-on { opacity: 1; transform: translate(-50%, calc(-100% - 14px)); }
.tip b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.tip span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #c9cbc3; }
.tip span::before { content: ''; width: 12px; height: 2px; border-radius: 2px; background: var(--lime); }

.toasts { position: fixed; top: 18px; right: 18px; z-index: 90; display: grid; gap: 10px; width: min(380px, calc(100vw - 36px)); }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  animation: toast-in .55s var(--ease-spring) both;
}
.toast__ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--lime); flex: none; }
.toast__ic .i { width: 16px; height: 16px; stroke-width: 2.4; }
.toast.is-out { animation: toast-out .35s var(--ease-out) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translate3d(40px, -10px, 0) scale(.9); } }
@keyframes toast-out { to { opacity: 0; transform: translate3d(30px, 0, 0) scale(.95); } }

dialog.sheet {
  border: 0; padding: 0; background: transparent; color: var(--ink); max-width: min(520px, calc(100vw - 24px)); width: 100%;
  overflow: visible;
}
dialog.sheet::backdrop { background: rgba(238,238,232,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.sheet[open] .sheet__card { animation: sheet-in .6s var(--ease-out) both; }
@keyframes sheet-in { from { opacity: 0; transform: translate3d(0, 30px, -200px) rotateX(10deg); } }
.sheet__card { border-radius: 34px; padding: 26px; display: grid; gap: 18px; background: linear-gradient(150deg, rgba(255,255,255,.94), rgba(255,255,255,.78)); }
.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet__head h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.sheet__head p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.sheet fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.sheet legend { font-size: 13px; font-weight: 600; color: var(--graphite); margin-bottom: 8px; padding: 0; }
.sheet__choices { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet__actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* Fingers need a bigger target than a mouse pointer. */
@media (pointer: coarse) {
  .switch--sm { width: 58px; height: 34px; }
  .switch--sm::after { width: 28px; height: 28px; }
  .switch--sm[aria-checked="true"]::after { transform: translateX(24px); }
  .icon-btn--sm { width: 40px; height: 40px; }
  .mini-btn { height: 38px; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

@media (max-width: 1280px) {
  .span-3, .span-4 { grid-column: span 6; }
  .span-5, .span-7, .span-8 { grid-column: span 12; }
  .rows-2 { grid-row: auto; }
  .topbar .search { width: 240px; }
}

@media (max-width: 1080px) {
  .frame { grid-template-columns: minmax(0, 1fr); }
  .topbar [data-signout] { display: inline-grid; }
  .chart-host--sm .chart text { font-size: 11px; }
  /* The section row scrolls sideways; the fade says so. */
  .side { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent); }
  .side__foot { display: none; }
  .side { flex-direction: row; align-items: center; gap: 10px; padding: 10px; overflow-x: auto; scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  .side__brand { padding: 0 8px 0 2px; flex: none; }
  .side__name { display: none; }
  .side__label { display: none; }
  .nav { display: flex; gap: 4px; }
  .nav a { white-space: nowrap; min-height: 40px; }
  .nav a .nav__tag { margin-left: 4px; }
  .side__foot { margin: 0 0 0 auto; padding: 0; flex: none; }
  .me { padding: 4px; background: none; }
  .me__text { display: none; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .stat-strip > div:nth-child(3) { box-shadow: none; padding-left: 4px; }
  .teams { grid-template-columns: 1fr; gap: 18px; }
  .teams > div { padding: 0; }
  .teams > div + div { box-shadow: none; }
}

@media (max-width: 760px) {
  body { font-size: 14.5px; }

  /* Tables become cards: every value keeps its own label. */
  .table-wrap { overflow: visible; margin: 0; padding: 0; }
  .people { display: block; min-width: 0; border-spacing: 0; }
  .people thead { display: none; }
  .people tbody, .people tr { display: block; }
  .people tr { padding: 12px 14px; margin-bottom: 8px; border-radius: 20px; background: rgba(255,255,255,.66); box-shadow: inset 0 0 0 1px rgba(17,18,16,.05); }
  .people tr.is-self { background: rgba(212,240,60,.22); }
  .people td { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 0; background: none; border-radius: 0; text-align: left; }
  .people td + td { box-shadow: inset 0 1px 0 var(--grid); }
  .people td::before { content: attr(data-label); flex: none; font-size: 12.5px; font-weight: 600; color: var(--muted); }
  .people td:first-child { padding-top: 0; }
  .people td:first-child::before { display: none; }
  .people .who__d { white-space: normal; }
  .progress-cell { flex: 1; min-width: 0; max-width: 62%; }

  /* Touch-size the switches by width too, in case the device doesn't
     report a coarse pointer. */
  .switch--sm { width: 58px; height: 34px; }
  .switch--sm::after { width: 28px; height: 28px; }
  .switch--sm[aria-checked="true"]::after { transform: translateX(24px); }
  .stage { padding: 12px 16px 104px; }
  .frame { padding: 8px; border-radius: 30px; gap: 10px; }
  .bento { gap: 10px; }
  .bento > * { grid-column: 1 / -1 !important; }
  .tile { padding: 16px; border-radius: 22px; }
  .topbar { padding: 4px 2px; }
  .topbar__title h2 { font-size: 24px; }
  .topbar .search { order: 3; width: 100%; }
  .clock { display: none; }
  .figure__value { font-size: 52px; }
  .tree { gap: 26px 10px; min-height: 0; }
  .node { padding: 10px; gap: 8px; border-radius: 18px; }
  .node__icon { width: 30px; height: 30px; }
  .node--admin { min-width: 70%; }
  .gantt { --label-w: 74px; }
  .gantt__bar .gb-text { display: none; }
  .gantt__bar { justify-content: center; padding: 0 4px; }
  .stat-strip > div { padding: 4px 12px; }
  .progress-pair { grid-template-columns: 110px 1fr; gap: 14px; }
  .tbd-hero { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 72px 1fr; }
  .timeline li::before { left: 79px; }
  .timeline li::after { left: 83.5px; }
  .dock { bottom: 12px; gap: 4px; }
  .dock__scene { display: none; }
  .dock__track a { padding: 0 13px; font-size: 13px; }
  .dock__long { display: none; }
  .dock__short { display: inline; }
  .signin__card { padding: 22px; border-radius: 30px; }
  .signin__word { top: 28px; transform: translateX(-50%); font-size: 62px; }
  .signin__card { margin-top: 96px; }
  /* On a phone the plan is drawn bigger, and the name travels down into the
     middle of it while it draws. */
  .plan { transform: scale(1.5); }
  .signin.is-leaving .signin__word { animation: word-hold-sm 3.4s var(--ease-out) forwards; }
  .signin.is-parting .signin__word { animation: word-leave-sm .8s var(--ease-out) forwards; }
  .events li { grid-template-columns: auto 1fr; }
  .events time { grid-column: 2; }
}

/* =========================================================================
   MOTION PREFERENCES
   ========================================================================= */

.motion-off *, .motion-off *::before, .motion-off *::after { animation: none !important; transition-duration: .01ms !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

@media (forced-colors: active) {
  .tile, .glass, .node, .btn { border: 1px solid CanvasText; }
}
