/* PaintROOM — account. Plain CSS, no framework, no build step.
   Layering is done with z-index only: the scene paints at the bottom, the
   workspace floats above it. No backdrop-filter, so nothing can silently
   fail the way it did in the React build. */

:root {
  --bg: #eef0f4;
  --ink: #1a1d23;
  --dim: #5b6472;
  --faint: #8b95a3;
  --line: rgb(0 0 0 / 0.08);
  --card: 255 255 255;
  --card-a: 0.72;
  --lo: #ffffff;
  --hi: #c8ccd4;
  --accent: #ff6b00;
  --r: 18px;
  --ease: cubic-bezier(.2,0,0,1);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0a0f18;
  --ink: #e8edf4;
  --dim: #9aa7b8;
  --faint: #6b7889;
  --line: rgb(255 255 255 / 0.08);
  --card: 18 24 34;
  --card-a: 0.72;
  --lo: #1a2230;
  --hi: #05080d;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Scene ─────────────────────────────────────────────────────────────── */

.scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  color: #22303f;
  pointer-events: none;
}

[data-theme="dark"] .scene { color: #b9d4f0; }

.sky-a { stop-color: #f2f5f9; }
.sky-b { stop-color: #e6eaf1; }
[data-theme="dark"] .sky-a { stop-color: #0b1524; }
[data-theme="dark"] .sky-b { stop-color: #060d18; }

.sun { transform-origin: 1180px 150px; animation: sun 18s ease-in-out infinite; }
@keyframes sun { 50% { transform: scale(1.12); } }

.city { animation: city 60s ease-in-out infinite; }
@keyframes city { 50% { transform: translateX(-26px); } }

.win { animation: win 7s ease-in-out infinite; }
.w1 { animation-duration: 6s; }
.w2 { animation-duration: 9s; animation-delay: 2.5s; }
.w3 { animation-duration: 11s; animation-delay: 5s; }
@keyframes win { 0%,45%,100% { opacity: .2 } 55%,85% { opacity: .85 } }

.scaffold { stroke-opacity: .28; transform-origin: 50% 100%; animation: sway 24s ease-in-out infinite; }
@keyframes sway { 50% { transform: rotate(.25deg); } }

.roller { animation: roll 26s linear infinite; }
@keyframes roll {
  0% { transform: translate(0,0); opacity: 0 }
  6%,94% { opacity: 1 }
  100% { transform: translate(1640px,120px); opacity: 0 }
}

.tool { animation: rise linear infinite; opacity: .42; }
.t1 { --x: 180px;  animation-duration: 34s; animation-delay: -2s }
.t2 { --x: 620px;  animation-duration: 44s; animation-delay: -14s }
.t3 { --x: 980px;  animation-duration: 38s; animation-delay: -26s }
.t4 { --x: 1300px; animation-duration: 50s; animation-delay: -8s }

@keyframes rise {
  0%   { transform: translate(var(--x), 940px) rotate(0) }
  100% { transform: translate(calc(var(--x) + 60px), -80px) rotate(220deg) }
}

.drop { animation: fall linear infinite; opacity: .5; }
.d1 { animation-duration: 9s }
.d2 { animation-duration: 13s; animation-delay: -4s }
.d3 { animation-duration: 11s; animation-delay: -7s }
@keyframes fall {
  0% { transform: translateY(-40px); opacity: 0 }
  10%,90% { opacity: .5 }
  100% { transform: translateY(960px); opacity: 0 }
}

/* ── Shell ─────────────────────────────────────────────────────────────── */

.wrap {
  position: relative;
  z-index: 1;
  width: min(85%, 1500px);
  margin-inline: auto;
  padding-bottom: 72px;
}

@media (max-width: 1200px) { .wrap { width: 100%; padding-inline: 14px; } }

.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 64px;
  font-size: 14px;
}

.brand { color: var(--accent); font-weight: 700; text-decoration: none; }
.brand b { font-weight: 800; }
.sep { color: var(--faint); }
.crumb { color: var(--dim); }
.tools-right { margin-left: auto; display: flex; gap: 8px; }

.layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }

/* ── Neumorphic surfaces ───────────────────────────────────────────────── */

.card, .nav-i, .icon-btn, .chip, .avatar {
  background: rgb(var(--card) / var(--card-a));
  border: 0;
  border-radius: var(--r);
  box-shadow: 5px 5px 12px var(--hi), -5px -5px 12px var(--lo);
}

.card { padding: 20px; }

.icon-btn {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 11px;
  color: var(--dim);
  cursor: pointer;
  transition: box-shadow .18s var(--ease), color .18s var(--ease);
}

.icon-btn:hover { color: var(--ink); }
.icon-btn:active { box-shadow: inset 3px 3px 7px var(--hi), inset -3px -3px 7px var(--lo); }

/* ── Rail ──────────────────────────────────────────────────────────────── */

.rail { display: grid; gap: 8px; }

.me { display: flex; align-items: center; gap: 11px; padding: 4px 2px 2px; }

.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; color: var(--accent);
  flex-shrink: 0;
}

.me-txt { min-width: 0; }
.me-name { margin: 0; font-weight: 650; font-size: 14px; }
.me-mail { margin: 2px 0 0; font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.badge {
  justify-self: start;
  font-size: 11px; font-weight: 700;
  color: var(--accent);
  background: rgb(255 107 0 / .12);
  padding: 4px 10px;
  border-radius: 8px;
  margin: 2px 0 12px;
}

.nav { display: grid; gap: 6px; }

.nav-i {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px;
  border-radius: 13px;
  color: var(--dim);
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: box-shadow .2s var(--ease), color .2s var(--ease);
}

.nav-i:hover { color: var(--ink); }

/* Keep every nav item clipped to its own rounded box so neither the accent
   bar nor a hover shadow can spill past the corner. */
.nav-i { position: relative; overflow: hidden; isolation: isolate; }

.nav-i.is-on {
  color: var(--ink);
  font-weight: 650;
  box-shadow: inset 4px 4px 9px var(--hi), inset -4px -4px 9px var(--lo);
}

.nav-i.is-on::before {
  content: '';
  width: 3px; height: 18px;
  border-radius: 99px;
  background: var(--accent);
  margin-left: -6px;
  flex-shrink: 0;
}

/* ── Main ──────────────────────────────────────────────────────────────── */

.h1 { margin: 6px 0 20px; font-size: 26px; letter-spacing: -.02em; }

.cols { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 20px; align-items: start; }
@media (max-width: 1280px) { .cols { grid-template-columns: 1fr; } }

.col-a { display: grid; gap: 16px; }
.col-b { display: grid; gap: 16px; }

.eyebrow { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.big { margin: 0; font-size: 34px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.muted { margin: 6px 0 0; font-size: 12px; color: var(--dim); }

.hero-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

.chip { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; flex-shrink: 0; }
.chip.sm { width: 42px; height: 42px; border-radius: 13px; }

.track {
  height: 9px; margin: 18px 0;
  border-radius: 99px;
  box-shadow: inset 3px 3px 7px var(--hi), inset -3px -3px 7px var(--lo);
  overflow: hidden;
}

.fill { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #ff8f3d); transition: width .5s var(--ease); }

.cta {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff; font-size: 15px; font-weight: 650;
  text-decoration: none;
  box-shadow: 0 8px 20px -8px rgb(255 107 0 / .55);
  transition: transform .18s var(--ease), filter .18s var(--ease);
}

.cta:hover { filter: brightness(1.07); transform: translateY(-1px); }
.cta:active { transform: translateY(0) scale(.99); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }

.tile {
  display: grid; gap: 12px;
  padding: 18px;
  border-radius: var(--r);
  background: rgb(var(--card) / var(--card-a));
  box-shadow: 5px 5px 12px var(--hi), -5px -5px 12px var(--lo);
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}

.tile:hover { transform: translateY(-2px); box-shadow: 7px 7px 16px var(--hi), -7px -7px 16px var(--lo); }
.tile:active { transform: none; box-shadow: inset 4px 4px 9px var(--hi), inset -4px -4px 9px var(--lo); }

.tile span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; box-shadow: inset 3px 3px 7px var(--hi), inset -3px -3px 7px var(--lo); }
.tile b { font-size: 14px; font-weight: 650; }

.ref { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--ink); transition: transform .2s var(--ease); }
.ref:hover { transform: translateY(-2px); }
.ref-txt { flex: 1; min-width: 0; }
.ref-txt b { display: block; font-size: 14px; }
.ref-txt i { display: block; font-style: normal; font-size: 12px; color: var(--dim); margin-top: 2px; }
.chev { color: var(--faint); flex-shrink: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

@media (prefers-reduced-motion: reduce) {
  .scene * { animation: none !important; }
  .cta, .tile, .nav-i, .ref { transition: none; }
}


/* Scene stays behind the content, and its brightest marks are dimmed where
   they would otherwise read as a UI glitch next to the rail. */
.scene { opacity: .85; }
.win { mix-blend-mode: screen; }
