/* ==========================================================================
   پنل تحویل کار — Aurora
   Layout: floating glass shell (sidebar on the right) over a slow-moving aurora;
   violet is the action colour, mint means "done", amber "waiting", rose "fix".
   ========================================================================== */

@font-face {
  font-family: "IRANYekanX";
  src: url("../fonts/IRANYekanXVF.woff2") format("woff2-variations"),
       url("../fonts/IRANYekanXVF.woff2") format("woff2"),
       url("../fonts/IRANYekanXVF.woff") format("woff");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* ---------- palette ----------
   Fabric navy + white. Navy carries structure and actions; sage means done,
   ochre waiting, rose "needs a fix", champagne gold is the one warm highlight. */
:root {
  --navy: #262A42;
  --navy-2: #343957;
  --navy-3: #4A5075;
  --navy-deep: #171A2B;
  --steel: #4F78B0;
  --gold: #C2A26B;
  --teal: #2F8F7A;
  --ochre: #C8892E;
  --rose: #C24D63;
  /* legacy names used across components */
  --violet: var(--navy-3);
  --iris: var(--navy);
  --orchid: var(--steel);
  --mint: var(--teal);
  --amber: var(--ochre);
  --sky: var(--steel);

  --grad-brand: linear-gradient(135deg, #171A2B 0%, #262A42 50%, #3B405B 100%);
  --grad-aurora: linear-gradient(90deg, #262A42, #4F78B0 55%, #C2A26B);
  --grad-hero: linear-gradient(120deg, #15182A 0%, #262A42 26%, #3D4361 44%, #262A42 60%, #30355A 78%, #171A2B 100%);

  --r-shell: 30px;
  --r-card: 24px;
  --r-tile: 18px;
  --r-ctl: 13px;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --sidebar: 256px;
  color-scheme: light;

  --bg: #F3F4F8;
  --bg-2: #FAFAFC;
  --surface: rgba(255, 255, 255, .74);
  --surface-2: #FFFFFF;
  --surface-3: #F1F2F7;
  --solid: #FFFFFF;
  --edge: rgba(38, 42, 66, .08);
  --edge-2: rgba(38, 42, 66, .15);
  --edge-hi: rgba(255, 255, 255, .95);
  --ink: #171A2B;
  --ink-2: #3C4160;
  --muted: #6E7393;
  --faint: #A3A7BF;
  --accent: #262A42;
  --accent-ink: #262A42;
  --accent-soft: #E9EAF2;
  --pos: #2F8F7A;  --pos-soft: #E2F2EE;  --pos-ink: #1F6B5A;
  --warn: #C8892E; --warn-soft: #FBF0DF; --warn-ink: #8A5A12;
  --neg: #C24D63;  --neg-soft: #FAE5E9;  --neg-ink: #9A2E44;
  --input: #FFFFFF;
  --check-a: #F4F5F9;
  --check-b: #E9EAF2;
  --shadow: 0 18px 40px -26px rgba(23, 26, 43, .38), 0 2px 6px -2px rgba(23, 26, 43, .06);
  --shadow-pop: 0 40px 90px -30px rgba(23, 26, 43, .45), 0 8px 24px -8px rgba(23, 26, 43, .15);
  --ring: 0 0 0 3px rgba(38, 42, 66, .22);
  --blob-a: rgba(38, 42, 66, .14);
  --blob-b: rgba(79, 120, 176, .13);
  --blob-c: rgba(194, 162, 107, .18);
  --grid-line: rgba(38, 42, 66, .045);
  --glass-blur: blur(20px) saturate(140%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "IRANYekanX", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .3s;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--accent-ink); text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
[dir="ltr"] { direction: ltr; unicode-bidi: isolate; }
.ic { width: 18px; height: 18px; flex: none; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { padding: 40px; text-align: center; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 10px; }
::selection { background: rgba(38, 42, 66, .4); }

/* ==========================================================================
   Living background
   ========================================================================== */

.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i {
  position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform;
}
.aurora i:nth-child(1) { width: 60vw; height: 60vw; top: -22vw; right: -14vw; background: radial-gradient(circle, var(--blob-a), transparent 68%); animation: driftA 26s var(--ease) infinite alternate; }
.aurora i:nth-child(2) { width: 46vw; height: 46vw; top: 30vh; right: 30vw; background: radial-gradient(circle, var(--blob-b), transparent 68%); animation: driftB 32s var(--ease) infinite alternate; }
.aurora i:nth-child(3) { width: 58vw; height: 58vw; bottom: -26vw; left: -16vw; background: radial-gradient(circle, var(--blob-c), transparent 68%); animation: driftC 28s var(--ease) infinite alternate; }
.aurora::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 70%);
}
.aurora::after {
  content: ""; position: absolute; inset: 0; opacity: .22; mix-blend-mode: overlay;
  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'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.35'/></svg>");
}
.cursor-glow {
  position: fixed; z-index: -1; width: 520px; height: 520px; left: 0; top: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(79, 120, 176, .10), transparent 62%);
  transform: translate3d(calc(var(--cx, -999px) - 260px), calc(var(--cy, -999px) - 260px), 0);
  transition: opacity .4s;
}

@keyframes driftA { to { transform: translate3d(-12vw, 10vh, 0) scale(1.15); } }
@keyframes driftB { to { transform: translate3d(14vw, -12vh, 0) scale(.85); } }
@keyframes driftC { to { transform: translate3d(10vw, -8vh, 0) scale(1.2); } }

/* ---------- boot ---------- */
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot-mark { width: 58px; height: 58px; border-radius: 18px; background: url("../img/favicon.svg") center / cover; animation: breathe 1.2s var(--ease) infinite alternate; box-shadow: 0 16px 40px -12px rgba(23, 26, 43, .6); }
@keyframes breathe { from { transform: scale(.88) rotate(-6deg); opacity: .6; } to { transform: scale(1) rotate(0); opacity: 1; } }

/* ==========================================================================
   Motion primitives
   ========================================================================== */

.rise { animation: rise .75s var(--out) backwards; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinAng { to { --ang: 360deg; } }
@keyframes shimmer { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
@keyframes sweep { 0%, 60% { transform: translateX(120%) skewX(-18deg); } 100% { transform: translateX(-220%) skewX(-18deg); } }
@keyframes floaty { from { translate: 0 0; } to { translate: 0 -10px; } }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes glowPulse { 0%, 100% { filter: drop-shadow(0 0 0 rgba(38, 42, 66, 0)); } 50% { filter: drop-shadow(0 0 10px rgba(38, 42, 66, .9)); } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes tickOn { from { opacity: .12; } to { opacity: 1; } }
@keyframes knob { from { transform: rotate(0deg); } to { transform: rotate(var(--deg)); } }
@keyframes march { to { stroke-dashoffset: -40; } }
@keyframes gradShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: var(--len, 300); } to { stroke-dashoffset: 0; } }
@keyframes clipIn { from { clip-path: inset(0 0 100% 0 round 12px); } to { clip-path: inset(0 0 0 0 round 12px); } }
@keyframes toastLife { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.ripple { position: absolute; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: currentColor; opacity: .22; pointer-events: none; animation: ripple .6s var(--out) forwards; }

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ==========================================================================
   Controls
   ========================================================================== */

.btn {
  --bg: var(--surface-2);
  --fg: var(--ink);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 16px;
  border: 1px solid var(--edge);
  border-radius: var(--r-ctl);
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 15px; white-space: nowrap;
  cursor: pointer;
  transition: background .25s var(--ease), transform .2s var(--spring), box-shadow .3s var(--ease), border-color .25s, color .2s;
}
.btn:hover { background: var(--surface-3); border-color: var(--edge-2); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn .ic { transition: transform .35s var(--spring); }
.btn:hover .ic { transform: scale(1.12) rotate(-6deg); }
.btn.primary {
  --fg: #fff;
  background: linear-gradient(120deg, #171A2B, #262A42, #3D4361, #262A42, #171A2B);
  background-size: 300% 100%;
  border-color: transparent;
  box-shadow: 0 12px 30px -12px rgba(38, 42, 66, .9), inset 0 1px 0 rgba(255, 255, 255, .25);
  animation: gradShift 8s ease infinite;
}
.btn.primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 236, 200, .35) 50%, transparent 70%);
  transform: translateX(120%) skewX(-18deg);
}
.btn.primary:hover { box-shadow: 0 16px 34px -12px rgba(23, 26, 43, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.primary:hover::after { animation: sweep 1.1s var(--ease); }
.btn.mint { --bg: var(--pos); --fg: #FFFFFF; border-color: transparent; box-shadow: 0 12px 26px -14px var(--pos); }
.btn.mint:hover { background: var(--pos); filter: brightness(1.08); }
.btn.coral { --bg: var(--neg-soft); --fg: var(--neg-ink); border-color: transparent; }
.btn.coral:hover { background: var(--neg-soft); filter: brightness(1.15); }
.btn.ghost { --bg: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 14px; border-radius: 11px; }
.btn.icon { width: 42px; padding: 0; }
.btn.icon.sm { width: 34px; }
.btn.block { width: 100%; }
.btn .spinner { width: 16px; height: 16px; }

.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid currentColor; border-inline-end-color: transparent; animation: spin .7s linear infinite; }

.field { display: grid; gap: 7px; }
.field > span { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 13px; font-weight: 500; }
.field .err { color: var(--neg-ink); font-size: 13.5px; animation: rise .4s var(--out); }
.input, .textarea, .select {
  width: 100%; height: 46px; padding: 0 14px;
  border-radius: var(--r-ctl);
  border: 1px solid var(--edge-2);
  background: var(--input);
  transition: border-color .2s, box-shadow .3s var(--ease), background .2s;
}
.select { appearance: none; -webkit-appearance: none; padding-inline-end: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%23918CB8' stroke-width='1.8' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: left 14px center; }
.select option { background: var(--solid); color: var(--ink); }
.textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.85; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .textarea:hover, .select:hover { border-color: rgba(38, 42, 66, .45); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring), 0 0 30px -8px rgba(38, 42, 66, .6); }
.input.ltr { direction: ltr; text-align: left; }
.input-wrap { position: relative; }
.input-wrap > .ic { position: absolute; top: 50%; inset-inline-start: 14px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-wrap .input { padding-inline-start: 42px; }
.input-wrap .suffix { position: absolute; top: 50%; inset-inline-end: 6px; transform: translateY(-50%); }
.input-wrap .suffix:hover { transform: translateY(-50%); }
.field.invalid .input, .field.invalid .textarea { border-color: var(--neg); }

.seg { position: relative; display: inline-flex; padding: 4px; gap: 2px; border-radius: 15px; background: var(--surface); border: 1px solid var(--edge); }
.seg button {
  position: relative; z-index: 1; height: 34px; padding: 0 14px; border: 0; border-radius: 11px;
  background: transparent; color: var(--muted); font-weight: 700; font-size: 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; transition: color .25s;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { color: #fff; background: var(--grad-brand); box-shadow: 0 8px 18px -8px rgba(23, 26, 43, .6); }

.swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.swatches button { width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); transition: transform .3s var(--spring); }
.swatches button:hover { transform: scale(1.12); }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--c), 0 0 18px var(--c); transform: scale(1.08); }

/* ==========================================================================
   Pills, avatars, badges
   ========================================================================== */

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 11px; border-radius: 999px;
  font-size: 13px; font-weight: 700; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.pending { background: var(--warn-soft); color: var(--warn-ink); }
.pill.pending::before { animation: pulseDot 1.8s infinite; }
.pill.approved { background: var(--pos-soft); color: var(--pos-ink); }
.pill.revision { background: var(--neg-soft); color: var(--neg-ink); }
.pill.draft { background: var(--surface-2); color: var(--muted); }
.pill.plain::before { display: none; }

.av {
  --c: var(--violet);
  position: relative;
  width: 34px; height: 34px; flex: none;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 70%, #000));
  color: #fff; font-weight: 800; font-size: 14px; line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 16px -6px color-mix(in srgb, var(--c) 80%, transparent);
}
.av.xs { width: 22px; height: 22px; font-size: 11.5px; }
.av.sm { width: 28px; height: 28px; font-size: 13px; }
.av.lg { width: 52px; height: 52px; font-size: 18px; }
.av.xl { width: 78px; height: 78px; font-size: 26px; }
.av.off { filter: grayscale(1); opacity: .5; }
/* story ring: sent work today */
.av.ring::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; z-index: -1;
  background: conic-gradient(from var(--ang), #262A42, #4F78B0, #C2A26B, #262A42);
  animation: spinAng 3s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
}
.av.ring { isolation: isolate; }

.who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.who b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .03em;
  background: rgba(23, 26, 43, .7); color: #fff; direction: ltr;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .12);
}
.tag.psd { background: linear-gradient(135deg, rgba(79, 120, 176, .85), rgba(38, 42, 66, .85)); }
.badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  display: inline-grid; place-items: center;
  font-size: 13px; font-weight: 800; background: var(--neg); color: #fff;
  box-shadow: 0 0 0 0 var(--neg); animation: pulseDot 2s infinite;
}
.proj-chip {
  --pc: var(--violet);
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  height: 24px; padding: 0 9px 0 10px; border-radius: 8px;
  font-size: 13px; font-weight: 700; color: var(--ink-2);
  background: color-mix(in srgb, var(--pc) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--pc) 30%, transparent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.proj-chip::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--pc); flex: none; }
.proj-chip b { font-weight: 800; color: var(--ink); direction: ltr; }
a.proj-chip:hover { background: color-mix(in srgb, var(--pc) 24%, transparent); }

.live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--pos-ink); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--pos); color: var(--pos); animation: pulseDot 1.6s infinite; }

/* ==========================================================================
   Auth screens
   ========================================================================== */

.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; position: relative; }
.auth-card {
  position: relative;
  width: min(440px, 100%);
  padding: 36px 32px 30px;
  border-radius: 30px;
  background: var(--surface-2);
  border: 1px solid var(--edge-hi);
  box-shadow: var(--shadow-pop);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  animation: rise .9s var(--out) both;
}
.auth-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 60%, #262A42, #4F78B0, #C2A26B, transparent 90%);
  animation: spinAng 6s linear infinite;
  -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);
}
.auth-card.wide { width: min(520px, 100%); }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.auth-brand .logo { width: 48px; height: 48px; }
.auth-brand > div > b { display: block; font-size: 17px; }
.auth-brand > div > span { font-size: 13.5px; color: var(--muted); }
.auth h1 { font-size: 26px; margin-bottom: 6px; }
.auth .lead { color: var(--muted); margin-bottom: 24px; }
.auth form { display: grid; gap: 16px; }
.auth .foot { margin-top: 18px; font-size: 13.5px; color: var(--muted); text-align: center; }
.auth .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-shapes span { position: absolute; border-radius: 28px; pointer-events: none; border: 1px solid var(--edge-2); background: var(--surface); backdrop-filter: blur(6px); animation: floaty 5s ease-in-out infinite alternate; }
.form-error { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 12px; background: var(--neg-soft); color: var(--neg-ink); font-size: 14px; animation: rise .4s var(--out); }

.logo {
  width: 42px; height: 42px; flex: none; border-radius: 14px;
  background: url("../img/favicon.svg") center / cover;
  box-shadow: 0 10px 26px -8px rgba(38, 42, 66, .9);
  transition: transform .5s var(--spring);
}
.brand:hover .logo { transform: rotate(-12deg) scale(1.06); }

/* ==========================================================================
   Shell
   ========================================================================== */

.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); gap: 16px; min-height: 100vh; padding: 16px; }
.sidebar {
  position: sticky; top: 16px; height: calc(100vh - 32px);
  display: flex; flex-direction: column;
  padding: 20px 14px 14px;
  border-radius: var(--r-shell);
  background: var(--surface);
  border: 1px solid var(--edge-hi);
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  overflow-y: auto;
  animation: rise .8s var(--out) both;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 6px 20px; }
.brand > div { min-width: 0; }
.brand > div > b { display: block; font-size: 15px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand > div > span { display: block; font-size: 13px; color: var(--muted); }
.sidebar .cta { margin: 0 2px 18px; height: 46px; }
.nav { position: relative; display: grid; gap: 3px; }
.nav-indicator {
  position: absolute; inset-inline: 0; top: 0; height: 44px; border-radius: 14px; pointer-events: none;
  background: var(--grad-brand);
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 14px 28px -14px rgba(23, 26, 43, .9);
  transition: transform .55s var(--spring), height .4s var(--out), opacity .3s;
  opacity: 0;
}
.nav-indicator::before { content: ""; position: absolute; inset-inline-start: 8px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(194, 162, 107, .9); }
.nav a {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 11px;
  height: 44px; padding: 0 13px;
  border-radius: 14px;
  color: var(--ink-2); font-weight: 600;
  transition: color .25s;
}
.nav a .ic { color: var(--muted); transition: color .25s, transform .4s var(--spring); }
.nav a:hover { color: var(--ink); }
.nav a:hover .ic { transform: translateX(-3px) scale(1.12); color: var(--steel); }
.nav a[aria-current="page"]:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; font-weight: 800; }
.nav a[aria-current="page"] .ic { color: var(--gold); }
.nav a .badge { margin-inline-start: auto; }
.side-foot { margin-top: auto; padding-top: 14px; }
.me { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--edge); }
.me > a { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; color: inherit; border-radius: 10px; }
.me > a > div { min-width: 0; }
.me > a > div > b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me > a > div > span { display: block; font-size: 13px; color: var(--muted); }

.main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.topbar {
  position: relative; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  min-height: 68px; padding: 10px 12px; padding-inline-start: 24px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--edge-hi);
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  animation: rise .7s var(--out) both;
}
.topbar h1 { font-size: 20px; }
.topbar h1 .grad { background: linear-gradient(90deg, #171A2B, #4F78B0, #171A2B); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradShift 6s ease infinite; }
.topbar .sub { font-size: 13.5px; color: var(--muted); }
.topbar .grow { flex: 1; min-width: 0; }
.topbar .search { width: min(320px, 32vw); }
.topbar .search .input { height: 44px; }
.menu-btn { display: none; }
.theme-btn .ic { transition: transform .6s var(--spring); }
.theme-btn:hover .ic { transform: rotate(40deg) scale(1.15); }

#view { min-width: 0; }
.view { display: flex; flex-direction: column; gap: 16px; }

/* ==========================================================================
   Cards & grid
   ========================================================================== */

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s5 { grid-column: span 5; }
.s6 { grid-column: span 6; } .s7 { grid-column: span 7; } .s8 { grid-column: span 8; } .s12 { grid-column: span 12; }

.card {
  position: relative;
  padding: 22px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--edge-hi);
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  min-width: 0;
  transition: border-color .3s, transform .4s var(--out), box-shadow .4s;
}
/* spotlight that follows the pointer */
/* no pointer spotlight: hover is a lift and a soft coloured shadow */
.hero-tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; }
.hero-tile:hover::after { opacity: 1; }
.card:hover { border-color: var(--edge-2); }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; min-height: 30px; position: relative; z-index: 1; }
.card-h h2, .card-h h3 { font-size: 15.5px; font-weight: 800; }
.card-h > .ic { color: var(--accent-ink); }
.card-h .act { margin-inline-start: auto; display: flex; gap: 6px; align-items: center; }
.card-h .hint { font-size: 13.5px; color: var(--muted); }

.stat { display: flex; flex-direction: column; position: relative; z-index: 1; }
.stat .big { font-size: 48px; font-weight: 250; line-height: 1.15; letter-spacing: -.02em; }
.stat .big small { font-size: 15px; font-weight: 600; color: var(--muted); margin-inline-start: 6px; letter-spacing: 0; }
.stat .cap { color: var(--muted); font-size: 13.5px; }
.delta { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.delta.up { color: var(--pos-ink); background: var(--pos-soft); }
.delta.down { color: var(--neg-ink); background: var(--neg-soft); }
.delta .ic { width: 14px; height: 14px; }

/* ---------- ticker ---------- */
.ticker {
  position: relative; overflow: hidden; height: 46px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--edge);
  display: flex; align-items: center;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; gap: 34px; width: max-content; animation: ticker var(--dur, 40s) linear infinite; padding-inline: 17px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.ticker-item time { color: var(--accent-ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.ticker-item b { color: var(--ink); }
.ticker-item .sep { color: var(--faint); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 26px;
  border-radius: var(--r-card);
  color: #fff;
  background: var(--grad-hero);
  background-size: 180% 180%;
  animation: gradShift 14s ease infinite;
  box-shadow: 0 34px 70px -34px rgba(38, 42, 66, .9), inset 0 1px 0 rgba(255, 255, 255, .2);
  min-height: 310px;
  display: flex; flex-direction: column;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 0% 100%, rgba(194, 162, 107, .32), transparent 60%),
    radial-gradient(50% 60% at 100% 0%, rgba(255, 255, 255, .14), transparent 60%),
    radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.3px) 0 0 / 15px 15px;
  mask-image: linear-gradient(90deg, #000 20%, rgba(0, 0, 0, .6));
}
.hero::after {
  content: ""; position: absolute; top: -50%; bottom: -50%; width: 30%; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent);
  animation: sweep 7s var(--ease) infinite;
}
.hero > * { position: relative; }
.hero .eyebrow { font-size: 14px; color: rgba(255, 255, 255, .75); font-weight: 600; }
.hero .figure { font-size: 72px; font-weight: 200; line-height: 1.02; letter-spacing: -.03em; text-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.hero .figure small { color: var(--gold) !important; font-size: 20px; font-weight: 600; color: rgba(255, 255, 255, .72); margin-inline-start: 10px; letter-spacing: 0; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hero .chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
  font-size: 13.5px; font-weight: 600; color: #fff;
  backdrop-filter: blur(8px);
}
.hero .chip .ic { width: 15px; height: 15px; }
.hero-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: auto; padding-top: 22px; }
.hero-tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 94px; padding: 14px;
  border-radius: var(--r-tile);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff; font-weight: 700; font-size: 15px;
  cursor: pointer; text-align: start;
  backdrop-filter: blur(12px);
  transition: background .3s, transform .45s var(--spring), box-shadow .4s;
}
.hero-tile:hover { background: rgba(255, 255, 255, .2); transform: translateY(-4px); box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .55); }
.hero-tile .ic { width: 21px; height: 21px; transition: transform .45s var(--spring); }
.hero-tile:hover .ic { transform: scale(1.18) rotate(-8deg); }
.hero-tile.solid { background: #fff; color: #171A2B; border-color: #fff; }
.hero-tile.solid .ic { color: #262A42; }
.hero-tile .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0; }
.hero-tile .badge { background: #fff; color: #9A2E44; animation: none; }
.hero-tile.solid .badge { background: var(--neg); color: #fff; }
.hero-tile::after { background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .25), transparent 50%); }

/* the wall of today's thumbnails inside the admin hero */
.wall { position: absolute; inset-block: 18px 134px; inset-inline-end: 22px; width: 46%; perspective: 900px; }
.wall .print {
  position: absolute; width: 46%; aspect-ratio: 4 / 3;
  border-radius: 14px; overflow: hidden; background: #fff; border: 3px solid #fff;
  box-shadow: 0 22px 40px -14px rgba(15, 17, 30, .75);
  animation: floaty 3.6s ease-in-out infinite alternate;
  transition: rotate .7s var(--spring), transform .7s var(--spring), box-shadow .5s;
}
.wall .print img { width: 100%; height: 100%; object-fit: cover; }
.wall .print .ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #E9EAF2, #F3EBDC); color: #262A42; font-weight: 900; direction: ltr; }
.wall .print:nth-child(1) { inset-inline-end: 4%; top: 2%; rotate: -7deg; z-index: 3; animation-delay: -.4s; }
.wall .print:nth-child(2) { inset-inline-end: 34%; top: 14%; rotate: 5deg; z-index: 2; animation-delay: -1.6s; }
.wall .print:nth-child(3) { inset-inline-end: 16%; top: 40%; rotate: -2deg; z-index: 4; animation-delay: -2.4s; }
.wall .print:nth-child(4) { inset-inline-end: 50%; top: 44%; rotate: 8deg; z-index: 1; animation-delay: -.9s; }
.hero:hover .wall .print:nth-child(1) { rotate: -13deg; transform: translate(-10px, -8px); }
.hero:hover .wall .print:nth-child(2) { rotate: 11deg; transform: translate(-14px, -6px); }
.hero:hover .wall .print:nth-child(3) { rotate: -5deg; transform: translate(6px, 10px) scale(1.04); }
.hero:hover .wall .print:nth-child(4) { rotate: 15deg; transform: translate(-8px, 12px); }

.orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 32% 28%, #fff 0%, rgba(205, 210, 230, .9) 18%, rgba(74, 80, 117, .85) 52%, rgba(23, 26, 43, .95) 100%);
  box-shadow: inset -8px -10px 24px rgba(15, 17, 30, .55), 0 24px 44px -14px rgba(15, 17, 30, .7);
  animation: floaty 4.5s ease-in-out infinite alternate;
}
.orb.mint { background: radial-gradient(circle at 32% 28%, #fff 0%, #F3E6CC 20%, #C2A26B 58%, #8C6E3C 100%); animation-duration: 3.4s; animation-delay: -1s; }

/* ---------- employee hero = drop zone ---------- */
.drop {
  position: relative;
  margin-top: 16px; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 150px; border-radius: var(--r-tile);
  background: rgba(255, 255, 255, .07);
  text-align: center; cursor: pointer;
  transition: background .3s, transform .4s var(--spring);
}
.drop .ants, .bigdrop .ants { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.drop .ants rect, .bigdrop .ants rect { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 1.6; stroke-dasharray: 10 10; animation: march 1.6s linear infinite; }
.drop:hover { background: rgba(255, 255, 255, .12); }
.drop .ring {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #262A42;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .5), 0 14px 28px -10px rgba(15, 17, 30, .7);
  animation: pulseRing 2.4s infinite;
}
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .45), 0 14px 28px -10px rgba(15, 17, 30, .7); } 70% { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0), 0 14px 28px -10px rgba(15, 17, 30, .7); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 14px 28px -10px rgba(15, 17, 30, .7); } }
.drop .ring .ic { width: 25px; height: 25px; animation: floaty 1.4s ease-in-out infinite alternate; }
.drop b { font-size: 16.5px; }
.drop span { font-size: 13.5px; color: rgba(255, 255, 255, .75); }
.drag-on .drop, .drop.over { background: rgba(255, 255, 255, .22); transform: scale(1.02); }
.drop.over .ants rect, .bigdrop.over .ants rect { stroke: #fff; stroke-width: 2.4; }

/* ---------- gauge ---------- */
.gauge { position: relative; width: 100%; max-width: 340px; margin: 6px auto 0; z-index: 1; }
.gauge svg { width: 100%; height: auto; display: block; overflow: visible; }
.gauge .tk { opacity: .12; }
.gauge .tk.on { animation: tickOn .45s var(--out) both; animation-delay: calc(200ms + var(--i) * 22ms); }
.gauge .knob { transform-origin: 160px 160px; animation: knob 1.5s var(--out) .2s both; }
.gauge .knob circle { filter: drop-shadow(0 0 8px var(--pos)); }
.gauge .center { position: absolute; inset-inline: 0; bottom: 4px; text-align: center; }
.gauge .center .v { font-size: 56px; font-weight: 250; line-height: 1; }
.gauge .center .v small { font-size: 17px; color: var(--muted); font-weight: 600; margin-inline-start: 4px; }
.gauge .center .l { margin-top: 6px; font-size: 13.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.gauge .center .l .ic { width: 15px; height: 15px; color: var(--pos); }

/* ---------- bar chart ---------- */
.bars { position: relative; z-index: 1; }
.bars svg { width: 100%; height: 132px; display: block; overflow: visible; }
.bars .axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.bars rect { transform-box: fill-box; transform-origin: 50% 100%; animation: grow .9s var(--spring) both; animation-delay: calc(150ms + var(--i) * 40ms); transition: opacity .2s; }
.bars rect.zero { fill: var(--edge-2); }
.bars rect.hot { animation: grow .9s var(--spring) both, glowPulse 2.4s ease-in-out 1.2s infinite; animation-delay: calc(150ms + var(--i) * 40ms), 1.2s; }
.bars rect:hover { opacity: .7; }
.bars rect.cold { fill: #C9CCE0; }

/* ==========================================================================
   Lists
   ========================================================================== */

.list { display: grid; gap: 4px; position: relative; z-index: 1; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 15px; min-width: 0; transition: background .25s, transform .35s var(--spring); }
a.row, button.row { color: inherit; cursor: pointer; border: 0; background: transparent; text-align: start; width: 100%; }
a.row:hover, button.row:hover { background: var(--surface-2); transform: translateX(-4px); }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .s { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .end { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.row .mini { width: 54px; height: 42px; border-radius: 11px; flex: none; overflow: hidden; background: var(--accent-soft); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .6); }
.row .mini img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--out); }
.row:hover .mini img { transform: scale(1.12); }
.rank { width: 24px; text-align: center; color: var(--faint); font-weight: 900; font-size: 15px; }
.rank.r1 { color: #C2A26B; text-shadow: 0 0 12px rgba(194, 162, 107, .7); }
.meter { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--grad-aurora); background-size: 200% 100%; transform-origin: right; animation: meterIn 1.2s var(--out) both, gradShift 4s ease infinite; animation-delay: calc(300ms + var(--i, 0) * 80ms), 0s; }
@keyframes meterIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.note-box { padding: 10px 12px; border-radius: 12px; background: var(--neg-soft); color: var(--neg-ink); font-size: 14px; line-height: 1.85; }

.empty { display: grid; justify-items: center; gap: 10px; padding: 34px 16px; text-align: center; color: var(--muted); position: relative; z-index: 1; }
.empty > .ic { width: 34px; height: 34px; color: var(--steel); animation: floaty 2.2s ease-in-out infinite alternate; }
.empty b { color: var(--ink); font-size: 15px; }
.empty p { max-width: 380px; font-size: 14px; }

.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 14px; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent); animation: shimmer 1.3s infinite; }

/* ==========================================================================
   Work cards
   ========================================================================== */

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; position: relative; z-index: 2; }
.toolbar .grow { flex: 1; }
.toolbar .select { width: auto; height: 42px; min-width: 160px; }
.toolbar .chip-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--edge-2); background: var(--surface);
  font-weight: 700; font-size: 14px; cursor: pointer; color: var(--ink-2);
  transition: all .3s var(--spring);
}
.toolbar .chip-btn:hover { background: var(--surface-2); color: var(--ink); transform: translateY(-1px); }
.toolbar .chip-btn.on { border-color: var(--navy); color: #fff; background: var(--navy); box-shadow: 0 8px 18px -10px rgba(23, 26, 43, .8); }

.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 16px; position: relative; z-index: 1; }
.works.compact { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
.work {
  position: relative;
  display: flex; flex-direction: column;
  padding: 8px 8px 12px;
  border-radius: 22px;
  background: var(--surface-2);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow);
  cursor: pointer; text-align: start; color: inherit;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
  transition: transform .5s var(--out), box-shadow .4s, border-color .3s;
  min-width: 0;
}
.work:hover { --ty: -5px; border-color: rgba(38, 42, 66, .5); box-shadow: 0 30px 50px -26px rgba(38, 42, 66, .7), 0 0 0 1px rgba(38, 42, 66, .2); }
.thumb {
  position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden;
  background-color: var(--check-a);
  background-image: linear-gradient(45deg, var(--check-b) 25%, transparent 25%), linear-gradient(-45deg, var(--check-b) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--check-b) 75%), linear-gradient(-45deg, transparent 75%, var(--check-b) 75%);
  background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--out), filter .5s; animation: clipIn .8s var(--out) both; animation-delay: calc(100ms + var(--i, 0) * 55ms); }
.work:hover .thumb img { transform: scale(1.07); }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15, 17, 30, .45)); opacity: 0; transition: opacity .4s; }
.work:hover .thumb::after { opacity: 1; }
.thumb .tags { position: absolute; top: 8px; inset-inline-end: 8px; display: flex; gap: 4px; z-index: 1; }
.thumb .count { position: absolute; bottom: 8px; inset-inline-start: 8px; z-index: 1; }
.thumb .count .tag { background: rgba(255, 255, 255, .92); color: #171A2B; }
.thumb .noprev { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 4px; color: var(--accent-ink); font-weight: 900; font-size: 22px; direction: ltr; background: linear-gradient(140deg, var(--accent-soft), var(--pos-soft)); }
.thumb .noprev small { font-size: 12.5px; color: var(--muted); font-weight: 600; direction: rtl; }
.work .meta { padding: 10px 6px 0; display: grid; gap: 8px; }
.work .title { font-weight: 800; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work .line { display: flex; align-items: center; gap: 8px; justify-content: space-between; min-width: 0; }
.work .when { font-size: 13px; color: var(--muted); white-space: nowrap; }
.work .who b { font-size: 13.5px; }
.by { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); min-width: 0; }
.by > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.by .ic { width: 14px; height: 14px; flex: none; }
.by b { font-weight: 800; color: var(--ink-2); }
.by.approved .ic { color: var(--pos); }
.by.revision .ic { color: var(--neg); }
.by .t { color: var(--muted); font-weight: 500; }
.work .by { padding-top: 8px; border-top: 1px dashed var(--edge-2); }
.side-h .by { margin-bottom: 10px; padding: 8px 12px; border-radius: 12px; background: var(--pos-soft); font-size: 13.5px; width: fit-content; max-width: 100%; }
.side-h .by.revision { background: var(--neg-soft); }
.pager { display: flex; justify-content: center; gap: 8px; padding: 12px 0 4px; }

/* ==========================================================================
   Projects
   ========================================================================== */

.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; position: relative; z-index: 1; }
.projects.compact { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.proj {
  --pc: var(--violet);
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  border-radius: 24px; overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow);
  color: inherit;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
  transition: transform .5s var(--out), box-shadow .45s, border-color .3s;
}
.proj::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 3; opacity: 0;
  background: conic-gradient(from var(--ang), transparent 0 55%, var(--pc), #fff 75%, var(--pc), transparent 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);
  transition: opacity .4s;
}
.proj:hover { --ty: -6px; box-shadow: 0 34px 60px -30px color-mix(in srgb, var(--pc) 80%, transparent); }
.proj:hover::before { opacity: 1; animation: spinAng 3s linear infinite; }
.proj-cover {
  position: relative; height: 168px; overflow: hidden;
  background:
    radial-gradient(70% 90% at 80% 10%, color-mix(in srgb, var(--pc) 55%, transparent), transparent 70%),
    radial-gradient(60% 80% at 0% 100%, color-mix(in srgb, var(--pc) 30%, transparent), transparent 70%),
    linear-gradient(160deg, color-mix(in srgb, var(--pc) 22%, var(--bg-2)), var(--bg-2));
}
.proj-cover .p {
  position: absolute; top: 50%; left: 50%; width: 46%; aspect-ratio: 4 / 3;
  border-radius: 10px; overflow: hidden; border: 3px solid rgba(255, 255, 255, .95); background: #fff;
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .7);
  transition: transform .7s var(--spring);
}
.proj-cover .p img { width: 100%; height: 100%; object-fit: cover; }
.proj-cover .p:nth-child(1) { transform: translate(-50%, -50%) rotate(-3deg); z-index: 3; }
.proj-cover .p:nth-child(2) { transform: translate(-95%, -46%) rotate(-12deg) scale(.86); z-index: 2; }
.proj-cover .p:nth-child(3) { transform: translate(-5%, -44%) rotate(11deg) scale(.86); z-index: 1; }
.proj:hover .proj-cover .p:nth-child(1) { transform: translate(-50%, -56%) rotate(0deg) scale(1.06); }
.proj:hover .proj-cover .p:nth-child(2) { transform: translate(-112%, -44%) rotate(-18deg) scale(.88); }
.proj:hover .proj-cover .p:nth-child(3) { transform: translate(12%, -42%) rotate(17deg) scale(.88); }
.proj-cover .code-big {
  position: absolute; inset: 0; display: grid; place-items: center; direction: ltr;
  font-size: 46px; font-weight: 1000; letter-spacing: .04em;
  color: color-mix(in srgb, var(--pc) 80%, #262A42); opacity: .85;
}
.proj-cover .tags { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 4; display: flex; gap: 6px; }
.proj-body { display: grid; gap: 10px; padding: 14px 16px 16px; }
.proj-top { display: flex; align-items: center; gap: 8px; justify-content: space-between; min-width: 0; }
.proj-name { font-size: 16.5px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-code { direction: ltr; font-size: 13px; font-weight: 900; letter-spacing: .06em; padding: 3px 8px; border-radius: 7px; color: #fff; background: var(--pc); flex: none; }
.proj-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.proj-stats b { color: var(--ink); font-weight: 800; }
.statusbar { display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: var(--surface-3); gap: 2px; }
.statusbar i { display: block; height: 100%; transform-origin: right; animation: meterIn 1s var(--out) both; animation-delay: .3s; }
.statusbar .a { background: var(--pos); }
.statusbar .p { background: var(--warn); }
.statusbar .r { background: var(--neg); }
.proj.new-card {
  display: grid; place-items: center; align-content: center; gap: 12px; min-height: 290px;
  border: 1.5px dashed var(--edge-2); background: transparent; box-shadow: none; cursor: pointer; color: var(--muted); font-weight: 700;
}
.proj.new-card .ring { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); transition: transform .5s var(--spring); }
.proj.new-card:hover { color: var(--ink); border-color: var(--accent); }
.proj.new-card:hover .ring { transform: rotate(90deg) scale(1.1); }

/* project page */
.phero {
  --pc: var(--violet);
  position: relative; overflow: hidden; isolation: isolate;
  padding: 28px; border-radius: var(--r-card); color: #fff;
  background: linear-gradient(125deg, #171A2B 0%, #262A42 40%, color-mix(in srgb, var(--pc) 55%, #262A42) 100%);
  box-shadow: 0 34px 70px -34px color-mix(in srgb, var(--pc) 90%, transparent);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; min-height: 300px;
}
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.3px) 0 0 / 15px 15px; mask-image: linear-gradient(90deg, #000, transparent 70%); }
.phero::after { content: ""; position: absolute; top: -50%; bottom: -50%; width: 30%; z-index: -1; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent); animation: sweep 8s var(--ease) infinite; }
.phero .code { display: inline-flex; direction: ltr; font-size: 14px; font-weight: 900; letter-spacing: .08em; padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .25); }
.phero h2 { font-size: 40px; font-weight: 900; margin: 12px 0 6px; letter-spacing: -.02em; }
.phero p.desc { color: rgba(255, 255, 255, .8); max-width: 520px; }
.phero .who b, .phero .who span { color: #fff; }
.phero .nums { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 18px; }
.phero .nums div { display: grid; }
.phero .nums b { font-size: 34px; font-weight: 250; line-height: 1.1; }
.phero .nums div > span { font-size: 13px; color: rgba(255, 255, 255, .7); }
.phero .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.phero .acts .btn { --bg: rgba(255, 255, 255, .14); --fg: #fff; border-color: rgba(255, 255, 255, .25); }
.phero .acts .btn:hover { background: rgba(255, 255, 255, .24); }
.phero .acts .btn.light { --bg: #fff; --fg: #171A2B; }
.phero .collage { position: relative; min-height: 240px; perspective: 900px; }
.phero .collage .p { position: absolute; width: 52%; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 3px solid #fff; background: #fff; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .7); animation: floaty 4s ease-in-out infinite alternate; }
.phero .collage .p img { width: 100%; height: 100%; object-fit: cover; }
.phero .collage .p:nth-child(1) { top: 2%; inset-inline-end: 4%; rotate: -6deg; z-index: 5; }
.phero .collage .p:nth-child(2) { top: 16%; inset-inline-end: 40%; rotate: 7deg; z-index: 4; animation-delay: -1.3s; }
.phero .collage .p:nth-child(3) { top: 46%; inset-inline-end: 14%; rotate: -2deg; z-index: 6; animation-delay: -2.1s; }
.phero .collage .p:nth-child(4) { top: 50%; inset-inline-end: 50%; rotate: 9deg; z-index: 3; animation-delay: -.7s; }
.phero .collage .p:nth-child(5) { top: 0; inset-inline-end: 62%; rotate: -10deg; z-index: 2; width: 40%; animation-delay: -2.8s; }
.phero .collage .p:nth-child(6) { top: 64%; inset-inline-end: -2%; rotate: 12deg; z-index: 1; width: 38%; animation-delay: -1.9s; }

.timeline { position: relative; display: grid; gap: 20px; padding-inline-start: 26px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 7px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--pc, var(--violet)), transparent); opacity: .6; }
.tl-day { position: relative; display: grid; gap: 12px; }
.tl-day::before { content: ""; position: absolute; inset-inline-start: -25px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--pc, var(--navy)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc, var(--navy)) 18%, transparent); }
.tl-head { display: flex; align-items: baseline; gap: 10px; }
.tl-head b { font-size: 15px; }
.tl-head span { font-size: 13.5px; color: var(--muted); }

/* ==========================================================================
   Modal / lightbox
   ========================================================================== */

.overlay {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center; padding: 16px;
  background: rgba(15, 17, 30, .55);
  backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%);
  animation: fadeIn .25s var(--ease);
}
.overlay { background: rgba(23, 26, 43, .35); }
.modal {
  position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  padding: 26px; border-radius: 28px;
  background: var(--solid); border: 1px solid var(--edge-2);
  box-shadow: var(--shadow-pop);
  animation: modalIn .5s var(--spring) both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }
.modal h2 { font-size: 20px; margin-bottom: 4px; }
.modal .lead { color: var(--muted); margin-bottom: 18px; font-size: 14.5px; }
.modal form { display: grid; gap: 14px; }
.modal form.composer { display: flex; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; flex-wrap: wrap; }
.modal .x { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 3; }

.modal.sheet { width: min(1240px, 100%); padding: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(350px, 1fr); grid-template-rows: minmax(0, 1fr); height: min(900px, calc(100vh - 32px)); max-height: calc(100vh - 32px); }
.viewer { position: relative; display: flex; flex-direction: column; min-height: 0; background: var(--bg-2); }
.viewer .stage {
  position: relative; flex: 1; min-height: 340px; display: grid; place-items: center; padding: 22px; overflow: hidden;
  background-color: var(--check-a);
  background-image: linear-gradient(45deg, var(--check-b) 25%, transparent 25%), linear-gradient(-45deg, var(--check-b) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--check-b) 75%), linear-gradient(-45deg, transparent 75%, var(--check-b) 75%);
  background-size: 22px 22px; background-position: 0 0, 0 11px, 11px -11px, -11px 0;
}
.viewer .stage { min-height: 300px; }
.viewer .stage .stage-content { position: absolute; inset: 22px 78px; display: grid; place-items: center; }
.viewer .stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .8); cursor: zoom-in; animation: stageIn .55s var(--out) both; }
@keyframes stageIn { from { opacity: 0; transform: scale(.94); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
.viewer .stage .noprev { display: grid; justify-items: center; gap: 10px; text-align: center; color: var(--muted); max-width: 320px; }
.viewer .stage .noprev .big { font-size: 42px; font-weight: 1000; color: var(--accent-ink); direction: ltr; }
.viewer .stage-tools { position: absolute; top: 14px; inset-inline-start: 14px; display: flex; gap: 6px; z-index: 2; }
.viewer .stage-tools .btn { background: rgba(255, 255, 255, .92); }
/* step through the files one by one */
.stage .nav { position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .94); color: var(--navy); box-shadow: 0 14px 30px -12px rgba(23, 26, 43, .55); transition: transform .35s var(--spring), opacity .2s, background .2s; }
.stage .nav .ic { width: 22px; height: 22px; }
.stage .nav:hover { transform: scale(1.08); background: #fff; }
.stage .nav:active { transform: scale(.94); }
.stage .nav[disabled] { opacity: 0; pointer-events: none; }
.stage .nav.prev { inset-inline-start: 16px; }
.stage .nav.next { inset-inline-end: 16px; }
.stage .nav.next:not([disabled]) { background: var(--navy); color: #fff; }
.viewer-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border-top: 1px solid var(--edge); min-height: 58px; }
.viewer-bar .pos { flex: none; font-weight: 900; font-size: 14px; padding: 5px 11px; border-radius: 999px; background: var(--navy); color: #fff; font-variant-numeric: tabular-nums; }
.viewer-bar .cur { flex: 1; min-width: 0; display: grid; gap: 1px; }
.viewer-bar .cur .n { font-weight: 800; font-size: 14px; direction: ltr; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-bar .cur .m { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-bar .seen { flex: none; display: grid; gap: 4px; justify-items: end; font-size: 13px; color: var(--muted); }
.viewer-bar .seen .bar { width: 96px; height: 5px; border-radius: 9px; background: var(--edge); overflow: hidden; }
.viewer-bar .seen .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--steel), var(--pos)); transition: width .5s var(--out); }
.viewer-bar .quick { flex: none; animation: rise .5s var(--out) both; }
.viewer-bar .quick.done { pointer-events: none; }
.strip button .seen-dot { position: absolute; top: 4px; inset-inline-start: 4px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: var(--pos); color: #fff; box-shadow: 0 0 0 2px var(--surface); animation: dotIn .4s var(--spring) both; }
.strip button .seen-dot .ic { width: 11px; height: 11px; stroke-width: 3; }
.strip button .kind { position: absolute; bottom: 3px; inset-inline-end: 3px; padding: 0 5px; border-radius: 6px; font-size: 11px; font-weight: 900; line-height: 16px; direction: ltr; background: rgba(23, 26, 43, .82); color: #DCE4F5; }
.strip button .no { position: absolute; bottom: 3px; inset-inline-start: 4px; font-size: 11.5px; font-weight: 900; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.file-row.on { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.file-row .ext { position: relative; }
.file-row .ext .seen-dot { position: absolute; top: -4px; inset-inline-start: -4px; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; background: var(--pos); color: #fff; box-shadow: 0 0 0 2px var(--surface); }
.file-row .ext .seen-dot .ic { width: 10px; height: 10px; stroke-width: 3; }
.review-box .hint { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); padding: 8px 12px; border-radius: 12px; background: var(--warn-soft); }
.review-box .hint.ok { background: var(--pos-soft); }
.review-box .hint .ic { width: 16px; height: 16px; flex: none; }
.review-box .hint button { margin-inline-start: auto; }
@keyframes dotIn { from { transform: scale(0); } to { transform: none; } }
.strip { display: flex; gap: 8px; padding: 12px; overflow-x: auto; background: var(--surface); border-top: 1px solid var(--edge); }
.strip button { flex: none; width: 78px; height: 60px; padding: 0; border-radius: 11px; overflow: hidden; border: 2px solid transparent; background: var(--surface-2); cursor: pointer; position: relative; transition: transform .35s var(--spring), border-color .2s; }
.strip button:hover { transform: translateY(-3px); }
.strip button img { width: 100%; height: 100%; object-fit: cover; }
.strip button[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 18px -4px var(--accent); }
.strip button .ext { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 900; color: var(--accent-ink); direction: ltr; }

.side { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.side > * { animation: rise .6s var(--out) both; }
.side.still > * { animation: none; }
.side > *:nth-child(2) { animation-delay: .05s; } .side > *:nth-child(3) { animation-delay: .1s; } .side > *:nth-child(4) { animation-delay: .15s; } .side > *:nth-child(5) { animation-delay: .2s; } .side > *:nth-child(6) { animation-delay: .25s; }
.side-h { padding: 24px 24px 16px; border-bottom: 1px solid var(--edge); }
.side-h h2 { font-size: 21px; margin: 10px 0 8px; padding-inline-end: 40px; }
.side-h .facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--muted); }
.side-h .facts span { display: inline-flex; align-items: center; gap: 5px; }
.side-h .facts .ic { width: 14px; height: 14px; }
.side-sec { padding: 16px 24px; border-bottom: 1px solid var(--edge); }
.side-sec h3 { font-size: 14.5px; margin-bottom: 10px; color: var(--ink-2); }
.side-sec .desc { white-space: pre-wrap; color: var(--ink-2); line-height: 1.9; }
.files { display: grid; gap: 6px; }
.file-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--edge); transition: border-color .25s, transform .35s var(--spring); }
.file-row:hover { border-color: var(--edge-2); transform: translateX(-3px); }
.file-row .ext { width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center; font-size: 12.5px; font-weight: 900; direction: ltr; background: var(--accent-soft); color: var(--accent-ink); }
.file-row .ext.psd { background: linear-gradient(135deg, #1B2340, #262A42); color: #C9D6EE; box-shadow: inset 0 0 0 1px rgba(185, 200, 230, .25); }
.file-row .grow { flex: 1; min-width: 0; }
.file-row .n { font-weight: 700; font-size: 14px; direction: ltr; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-row .m { font-size: 13px; color: var(--muted); }
.review-box { display: grid; gap: 10px; }
.review-box .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.thread { display: grid; gap: 12px; }
.msg { display: flex; gap: 10px; align-items: flex-start; animation: rise .5s var(--out) both; }
.msg .bubble { flex: 1; min-width: 0; padding: 10px 13px; border-radius: 15px; background: var(--surface-2); border: 1px solid var(--edge); }
.msg .bubble .h { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 2px; flex-wrap: wrap; }
.msg .bubble .h b { color: var(--ink); font-size: 13.5px; }
.msg .bubble p { white-space: pre-wrap; line-height: 1.85; }
.msg.event { align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.msg.event .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.msg.event .dot .ic { width: 15px; height: 15px; }
.msg.event.approved .dot { background: var(--pos-soft); color: var(--pos-ink); box-shadow: 0 0 16px -4px var(--pos); }
.msg.event.revision .dot { background: var(--neg-soft); color: var(--neg-ink); }
.msg.event.resubmitted .dot, .msg.event.reopened .dot { background: var(--accent-soft); color: var(--accent-ink); }
.msg.event .bubble { background: transparent; border: 0; padding: 0; }
.msg.event.revision .bubble p, .msg.event.approved .bubble p, .msg.event.resubmitted .bubble p { margin-top: 6px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); font-size: 14.5px; background: var(--surface-2); border: 1px solid var(--edge); }
form.composer { display: flex; gap: 8px; align-items: flex-end; }
.composer .textarea { min-height: 46px; height: 46px; }

.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(15, 17, 30, .94); display: grid; place-items: center; overflow: auto; cursor: zoom-out; animation: fadeIn .25s var(--ease); }
.lightbox img { max-width: 96vw; max-height: 94vh; object-fit: contain; animation: stageIn .6s var(--out) both; }
.lightbox.full { place-items: start; }
.lightbox.full img { max-width: none; max-height: none; }
.lightbox .x { position: fixed; top: 14px; inset-inline-end: 14px; z-index: 2; }
.lightbox .lb-body { display: contents; }
.lightbox .nav { position: fixed; top: 50%; z-index: 2; width: 54px; height: 54px; margin-top: -27px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(8px); transition: background .2s, transform .3s var(--spring); }
.lightbox .nav:hover { background: rgba(255, 255, 255, .26); transform: scale(1.06); }
.lightbox .nav .ic { width: 24px; height: 24px; }
.lightbox .nav[disabled] { opacity: 0; pointer-events: none; }
.lightbox .nav.prev { inset-inline-start: 16px; }
.lightbox .nav.next { inset-inline-end: 16px; }
.lightbox .cap { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 8px 14px; border-radius: 999px; background: rgba(23, 26, 43, .8); color: #fff; font-size: 14px; backdrop-filter: blur(8px); }
.lightbox .cap b { font-variant-numeric: tabular-nums; }
.lightbox .cap span { direction: ltr; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #C9D2EA; }
.lightbox .noprev { display: grid; justify-items: center; gap: 12px; color: #C9D2EA; text-align: center; cursor: default; }
.lightbox .noprev .big { font-size: 54px; font-weight: 1000; color: #fff; direction: ltr; }

/* ---------- toast ---------- */
.toasts { position: fixed; z-index: 90; bottom: 18px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); }
.toast {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-radius: 18px;
  background: var(--navy); color: #fff; border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8); font-size: 14.5px;
  animation: toastIn .55s var(--spring) both;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(24px) scale(.9); } to { opacity: 1; transform: none; } }
.toast::after { content: ""; position: absolute; bottom: 0; right: 0; left: 0; height: 2px; background: var(--grad-aurora); transform-origin: right; animation: toastLife 3.6s linear forwards; }
.toast .ic { color: #9FD6C8; }
.toast.err .ic { color: #F0A7B5; }

/* ---------- floating upload tray ---------- */
.tray { position: fixed; z-index: 60; bottom: 18px; left: 18px; width: min(360px, calc(100vw - 36px)); padding: 16px; border-radius: 22px; background: var(--solid); border: 1px solid var(--edge-2); box-shadow: var(--shadow-pop); animation: modalIn .5s var(--spring) both; }
.tray .h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 800; font-size: 14.5px; }
.tray .h .grow { flex: 1; }
.tray .job + .job { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--edge); }
.tray .job .t { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray .job .s { font-size: 13px; color: var(--muted); margin-top: 2px; }
.progress { position: relative; height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 8px; }
.progress i { position: relative; display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad-aurora); background-size: 200% 100%; animation: gradShift 2s linear infinite; transition: width .3s linear; box-shadow: 0 0 12px rgba(38, 42, 66, .8); }
.progress.ok i { background: var(--pos); box-shadow: 0 0 12px var(--pos); animation: none; }
.progress.wait i { background: repeating-linear-gradient(-45deg, rgba(38, 42, 66, .7) 0 8px, rgba(38, 42, 66, .35) 8px 16px); background-size: 22px 22px; animation: stripes .8s linear infinite; }
@keyframes stripes { to { background-position: 22px 0; } }

/* ==========================================================================
   Upload composer
   ========================================================================== */

.composer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.bigdrop {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; justify-items: center; gap: 10px;
  padding: 40px 20px; border-radius: var(--r-card);
  text-align: center; color: #fff; cursor: pointer;
  background: var(--grad-hero); background-size: 180% 180%; animation: gradShift 12s ease infinite;
  box-shadow: 0 30px 60px -30px rgba(38, 42, 66, .9);
  transition: transform .45s var(--spring);
}
.bigdrop::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 0% 100%, rgba(194, 162, 107, .32), transparent 60%); }
.bigdrop .ants { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
.bigdrop:hover { transform: translateY(-2px); }
.bigdrop.over, .drag-on .bigdrop { transform: scale(1.015); }
.bigdrop .ring { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #262A42; animation: pulseRing 2.4s infinite; }
.bigdrop .ring .ic { width: 27px; height: 27px; animation: floaty 1.4s ease-in-out infinite alternate; }
.bigdrop b { font-size: 19px; }
.bigdrop span { font-size: 14px; color: rgba(255, 255, 255, .78); }
.bigdrop .types { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.bigdrop .types .tag { background: rgba(255, 255, 255, .16); }
.bigdrop.compact { padding: 24px 20px; grid-auto-flow: column; align-items: center; justify-content: center; gap: 16px; text-align: start; }
.bigdrop.compact .ring { width: 48px; height: 48px; }
.bigdrop.compact b { font-size: 15px; }

.picker { display: flex; flex-wrap: wrap; gap: 8px; }
.picker label { position: relative; cursor: pointer; }
.picker input { position: absolute; opacity: 0; pointer-events: none; }
.picker .opt {
  --pc: var(--violet);
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--edge-2); background: var(--surface);
  font-weight: 700; font-size: 14px; color: var(--ink-2);
  transition: all .35s var(--spring);
}
.picker .opt::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--pc); }
.picker .opt code { font-family: inherit; direction: ltr; font-size: 12.5px; font-weight: 900; color: var(--muted); }
.picker label:hover .opt { transform: translateY(-2px); color: var(--ink); }
.picker input:checked + .opt { color: #fff; border-color: var(--pc); background: var(--pc); box-shadow: 0 10px 22px -12px var(--pc); }
.picker input:checked + .opt::before { background: #fff; box-shadow: none; }
.picker input:checked + .opt code { color: rgba(255, 255, 255, .75); }
.picker input:focus-visible + .opt { box-shadow: var(--ring); }
.picker .add { border-style: dashed; color: var(--accent-ink); cursor: pointer; }
.picker .add::before { display: none; }

.queue { display: grid; gap: 8px; margin-top: 16px; }
.pick-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pick-row [data-qcount] { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.pick-row [data-clear] { margin-inline-start: auto; }
.queue:has(.qitem:nth-child(9)) { max-height: 560px; overflow-y: auto; padding-inline-end: 4px; }
.qitem { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--edge); }
.qitem .pv { width: 78px; height: 60px; border-radius: 11px; overflow: hidden; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 900; font-size: 13px; direction: ltr; }
.qitem .pv img { width: 100%; height: 100%; object-fit: cover; animation: stageIn .6s var(--out) both; }
.qitem .pv .spinner { width: 18px; height: 18px; color: var(--accent-ink); }
.qitem .n { font-weight: 700; font-size: 14px; direction: ltr; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qitem .m { font-size: 13px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.qitem .m .ok { color: var(--pos-ink); font-weight: 700; }
.qitem .m .bad { color: var(--neg-ink); }
.qitem .progress { margin-top: 6px; }

.sticky-side { position: sticky; top: 16px; display: grid; gap: 16px; }
.sum { display: grid; gap: 8px; font-size: 14px; }
.sum div { display: flex; justify-content: space-between; color: var(--ink-2); }
.sum div b { font-weight: 800; color: var(--ink); }
.tip { display: flex; gap: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.85; position: relative; z-index: 1; }
.tip > .ic { color: var(--accent-ink); margin-top: 3px; }

.success { position: relative; display: grid; justify-items: center; gap: 12px; padding: 40px 20px; text-align: center; }
.success .check { width: 84px; height: 84px; }
.success .check circle { fill: var(--pos-soft); stroke: var(--pos); stroke-width: 3; stroke-dasharray: 260; animation: draw .8s var(--out) both; --len: 260; }
.success .check path { fill: none; stroke: var(--pos); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; animation: draw .5s var(--out) .55s both; --len: 60; }
.success b { font-size: 22px; }
canvas.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 99; }

/* ==========================================================================
   Daily report
   ========================================================================== */

.daystrip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; position: relative; z-index: 1; }
.day { flex: none; scroll-snap-align: start; width: 64px; padding: 10px 0 8px; border-radius: 17px; display: grid; justify-items: center; gap: 2px; border: 1px solid var(--edge); background: var(--surface); cursor: pointer; color: var(--ink-2); transition: background .25s, transform .4s var(--spring), border-color .25s; }
.day:hover { background: var(--surface-2); transform: translateY(-3px); border-color: var(--edge-2); }
.day .wd { font-size: 13px; color: var(--muted); }
.day .dn { font-size: 21px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.day .dots { height: 6px; display: flex; gap: 3px; }
.day .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); opacity: .55; }
.day.fri .wd { color: var(--neg-ink); }
.day[aria-current="date"] { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: 0 14px 30px -12px rgba(38, 42, 66, 1); transform: translateY(-3px); }
.day[aria-current="date"] .wd, .day[aria-current="date"] .dn { color: #fff; }
.day[aria-current="date"] .dots i { background: var(--mint); opacity: 1; }

.person { padding: 20px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
.person-h { display: grid; gap: 10px; justify-items: start; padding: 6px 4px; position: sticky; top: 16px; z-index: 1; }
.person-h .name > b { display: block; font-size: 16px; color: var(--ink); }
.person-h .name > span { font-size: 13.5px; color: var(--muted); }
.person-h .count { font-size: 40px; font-weight: 250; line-height: 1.1; }
.person-h .count small { font-size: 15px; color: var(--muted); font-weight: 600; margin-inline-start: 6px; }
.person-h .facts { display: grid; gap: 2px; font-size: 13.5px; color: var(--muted); }

/* ==========================================================================
   Team
   ========================================================================== */

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 16px; }
.member { display: grid; gap: 14px; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--out), border-color .3s; }
.member-h { display: flex; gap: 12px; align-items: center; position: relative; z-index: 1; }
.member-h .grow { flex: 1; min-width: 0; }
.member-h .grow > b { display: block; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.member-h .grow > span { display: block; font-size: 13.5px; color: var(--muted); }
.member-h .grow > .user { direction: ltr; text-align: right; font-size: 13px; color: var(--faint); }
.member .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: relative; z-index: 1; }
.member .nums div { padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--edge); }
.member .nums b { display: block; font-size: 22px; font-weight: 300; line-height: 1.3; }
.member .nums div > span { font-size: 13px; color: var(--muted); }
.member .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); position: relative; z-index: 1; }
.member.off { opacity: .55; }

.profile-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; position: relative; z-index: 1; }
.profile-hero .grow { flex: 1; min-width: 200px; }
.profile-hero h2 { font-size: 26px; }

.heat { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 4px; position: relative; z-index: 1; }
.heat i { aspect-ratio: 1; border-radius: 5px; background: var(--surface-2); animation: pop .5s var(--spring) both; animation-delay: calc(var(--i, 0) * 18ms); }
.heat i.l1 { background: #C9CCE0; } .heat i.l2 { background: #8E93B4; } .heat i.l3 { background: #4A5075; } .heat i.l4 { background: #262A42; box-shadow: 0 0 0 2px rgba(194, 162, 107, .55); }

.cred { display: grid; gap: 6px; padding: 14px; border-radius: 15px; background: var(--accent-soft); border: 1px dashed rgba(38, 42, 66, .5); }
.cred div { display: flex; justify-content: space-between; gap: 10px; }
.cred code { direction: ltr; font-family: inherit; font-weight: 800; }

/* ==========================================================================
   Calendar popover
   ========================================================================== */

.pop { position: absolute; z-index: 40; width: 300px; padding: 14px; border-radius: 22px; background: var(--solid); border: 1px solid var(--edge-2); box-shadow: var(--shadow-pop); animation: modalIn .4s var(--spring) both; }
.cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-h b { font-size: 15px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.cal .wd { font-size: 12.5px; color: var(--muted); padding: 4px 0; }
.cal button { height: 36px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font-size: 14px; position: relative; transition: background .2s, transform .3s var(--spring); }
.cal button:hover { background: var(--accent-soft); transform: scale(1.08); }
.cal button.today { color: var(--accent-ink); font-weight: 900; }
.cal button[aria-pressed="true"] { background: var(--grad-brand); color: #fff; }
.cal button:disabled { color: var(--faint); cursor: default; background: transparent; transform: none; }
.cal button.has::after { content: ""; position: absolute; bottom: 4px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--mint); }


/* ==========================================================================
   v1.2 — livelier navy: dark sidebar, tinted cards, schedules & per-image review
   ========================================================================== */

:root {
  --blob-a: rgba(79, 120, 176, .18);
  --blob-b: rgba(47, 143, 122, .12);
  --blob-c: rgba(194, 162, 107, .24);
}
.cursor-glow { display: none !important; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.modal.wide { width: min(620px, 100%); }

/* ---------- navy sidebar ---------- */
.sidebar {
  background: linear-gradient(185deg, #1A1D30 0%, #262A42 48%, #2F3555 100%);
  border: 1px solid rgba(255, 255, 255, .06);
  color: #E8EAF4;
  box-shadow: 0 30px 60px -28px rgba(23, 26, 43, .75);
  isolation: isolate;
}
.sidebar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(80% 40% at 100% 0%, rgba(194, 162, 107, .22), transparent 70%),
    radial-gradient(70% 35% at 0% 100%, rgba(79, 120, 176, .28), transparent 70%);
}
.sidebar .brand > div > b { color: #fff; }
.sidebar .brand > div > span { color: rgba(232, 234, 244, .6); }
.sidebar .logo { box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .12); }
.sidebar .btn.primary.cta {
  --fg: #171A2B;
  background: linear-gradient(120deg, #E4CC97, #C9A86B 45%, #E4CC97 90%);
  background-size: 220% 100%;
  box-shadow: 0 14px 30px -14px rgba(194, 162, 107, .9), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.sidebar .nav a { color: rgba(232, 234, 244, .78); font-size: 15px; }
.sidebar .nav a .ic { color: rgba(232, 234, 244, .5); }
.sidebar .nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.sidebar .nav a:hover .ic { color: #E4CC97; }
.sidebar .nav a[aria-current="page"], .sidebar .nav a[aria-current="page"]:hover { color: #171A2B; background: transparent; }
.sidebar .nav a[aria-current="page"] .ic { color: #4F78B0; }
.sidebar .nav-indicator { background: #fff; border: 0; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .55); }
.sidebar .nav-indicator::before { background: #C2A26B; box-shadow: 0 0 10px rgba(194, 162, 107, .9); }
.sidebar .me { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .08); }
.sidebar .me b { color: #fff; }
.sidebar .me span { color: rgba(232, 234, 244, .6) !important; }
.sidebar .me .btn { --fg: #fff; color: #fff; }
.sidebar .me .btn:hover { background: rgba(255, 255, 255, .1); }
@media (max-width: 900px) { .shell .sidebar { background: linear-gradient(185deg, #1A1D30 0%, #262A42 48%, #2F3555 100%); } }

/* ---------- topbar & cards ---------- */
.topbar { background: rgba(255, 255, 255, .85); }
.topbar h1 { font-size: 22px; }
.card { background: rgba(255, 255, 255, .88); }
.card[class*=" t-"], .card[class^="t-"] { --tint: var(--navy); --tint-soft: #E9EAF2; }
.card.t-navy { --tint: #262A42; --tint-soft: #E6E8F2; }
.card.t-steel { --tint: #4F78B0; --tint-soft: #E4EDF8; }
.card.t-teal { --tint: #2F8F7A; --tint-soft: #DFF1EC; }
.card.t-gold { --tint: #A9854A; --tint-soft: #F5ECDB; }
.card.t-rose { --tint: #C24D63; --tint-soft: #FAE3E8; }
.card.t-ochre { --tint: #C8892E; --tint-soft: #FBEEDB; }
.card.t-violet { --tint: #6B5B95; --tint-soft: #ECE8F5; }
.card[class*=" t-"]::before {
  content: ""; position: absolute; top: -1px; inset-inline: 26px; height: 3px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--tint), color-mix(in srgb, var(--tint) 40%, #fff));
}
.card[class*=" t-"] > .card-h > .ic {
  width: 38px; height: 38px; padding: 9px; border-radius: 13px; box-sizing: border-box;
  background: var(--tint-soft); color: var(--tint);
}
.card-h h2, .card-h h3 { font-size: 17px; }
.work:hover { border-color: rgba(79, 120, 176, .45); box-shadow: 0 26px 46px -26px rgba(79, 120, 176, .55), 0 0 0 1px rgba(79, 120, 176, .18); }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpis.s12 { grid-column: span 12; }
.kpi {
  --t: #262A42; --ts: #E9EAF2;
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 12px;
  padding: 18px 18px 16px; border-radius: 22px; color: var(--ink);
  background: linear-gradient(145deg, #fff 0%, var(--ts) 140%);
  border: 1px solid color-mix(in srgb, var(--t) 14%, transparent);
  box-shadow: 0 18px 36px -26px color-mix(in srgb, var(--t) 70%, transparent);
  transition: transform .45s var(--spring), box-shadow .4s;
  animation: rise .7s var(--out) backwards;
}
.kpi::after { content: ""; position: absolute; z-index: -1; width: 140px; height: 140px; border-radius: 50%; inset-inline-end: -40px; top: -50px; background: radial-gradient(circle, color-mix(in srgb, var(--t) 22%, transparent), transparent 70%); }
a.kpi:hover, .kpi:hover { transform: translateY(-4px); box-shadow: 0 26px 44px -24px color-mix(in srgb, var(--t) 80%, transparent); }
.kpi.navy { --t: #262A42; --ts: #DDE0EE; }
.kpi.steel { --t: #4F78B0; --ts: #D9E6F7; }
.kpi.teal { --t: #2F8F7A; --ts: #D3EDE6; }
.kpi.gold { --t: #A9854A; --ts: #F1E4C9; }
.kpi.rose { --t: #C24D63; --ts: #F8D9E0; }
.kpi.ochre { --t: #C8892E; --ts: #F8E5C6; }
.kpi-ic { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, color-mix(in srgb, var(--t) 70%, #fff), var(--t)); box-shadow: 0 10px 20px -10px var(--t); }
.kpi-ic .ic { width: 22px; height: 22px; }
.kpi-l { font-size: 14px; font-weight: 700; color: var(--ink-2); align-self: end; }
.kpi-v { font-size: 34px; font-weight: 300; line-height: 1.15; color: var(--t); letter-spacing: -.01em; }
.kpi-v small { font-size: 15px; font-weight: 600; color: var(--muted); }
.kpi-s { grid-column: 1 / -1; margin-top: 8px; font-size: 13px; color: var(--muted); }

.mini-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; position: relative; z-index: 1; }
.mk { display: grid; gap: 2px; padding: 11px 12px; border-radius: 15px; border: 0; cursor: pointer; text-align: start; font: inherit; color: var(--ink); transition: transform .35s var(--spring); }
.mk:hover { transform: translateY(-3px); }
.mk > span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.mk b { font-size: 24px; font-weight: 400; line-height: 1.2; }
.mk.rose { background: #FAE3E8; } .mk.rose b { color: #A93A51; }
.mk.teal { background: #DFF1EC; } .mk.teal b { color: #1F6B5A; }
.mk.ochre { background: #FBEEDB; } .mk.ochre b { color: #8A5A12; }

/* ---------- schedule chips, rings, bars ---------- */
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sch { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.sch .ic { width: 15px; height: 15px; }
.sch b { font-weight: 900; font-variant-numeric: tabular-nums; }
.sch.behind { background: #FAE3E8; color: #A93A51; }
.sch.ahead { background: #DFF1EC; color: #1F6B5A; }
.sch.rejected { background: #FBEEDB; color: #8A5A12; }
.sch.fixing { background: #E4EDF8; color: #34588A; }
.sch.even { background: #EEF0F6; color: var(--ink-2); }

.qring { --s: 64px; position: relative; width: var(--s); height: var(--s); flex: none; display: inline-grid; place-items: center; }
.qring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.qring circle { fill: none; stroke-width: 6; }
.qring .bg { stroke: #E6E8F1; }
.qring .fg { stroke: #4F78B0; stroke-linecap: round; stroke-dashoffset: var(--off); animation: ringIn 1.3s var(--out) both; }
@keyframes ringIn { from { stroke-dashoffset: var(--len); } }
.qring.full .fg { stroke: #2F8F7A; }
.qring > span { position: relative; display: grid; justify-items: center; line-height: 1.05; }
.qring b { font-size: calc(var(--s) * .3); font-weight: 800; }
.qring small { font-size: max(11px, calc(var(--s) * .14)); color: var(--muted); font-weight: 600; }

.pbar { position: relative; height: 10px; border-radius: 99px; background: #E9EBF3; overflow: visible; }
.pbar .done { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: inherit; background: linear-gradient(90deg, #2F8F7A, #4F78B0); transform-origin: right; animation: meterIn 1.2s var(--out) both; }
.pbar .due { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-inline-start: -1px; border-radius: 3px; background: #C24D63; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9); }

.proj-plan { display: grid; gap: 7px; }
.pp-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; }
.pp-state { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 12.5px; font-weight: 800; background: #EEF0F6; color: var(--ink-2); }
.pp-state.active { background: #E4EDF8; color: #34588A; }
.pp-state.scheduled { background: #F5ECDB; color: #7E5F2B; }
.pp-state.overdue { background: #FAE3E8; color: #A93A51; }
.pp-state.done { background: #DFF1EC; color: #1F6B5A; }
.pp-state.on-dark { background: rgba(255, 255, 255, .18); color: #fff; border: 1px solid rgba(255, 255, 255, .25); height: 28px; }
.pp-meta { font-size: 13px; color: var(--muted); }

/* ---------- project form: schedule ---------- */
.planbox { margin: 0; padding: 14px 16px 16px; border-radius: 18px; border: 1px solid #DCE3F0; background: linear-gradient(160deg, #F7F9FD, #EEF3FA); display: grid; gap: 12px; min-width: 0; }
.planbox legend { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; font-weight: 800; color: #34588A; font-size: 14px; }
.planbox legend .ic { width: 17px; height: 17px; }
.planbox[disabled] { opacity: .75; }
.start-seg { flex-wrap: wrap; background: #fff; }
.start-seg button { height: 36px; }
.plan-sum { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px dashed #BFCDE3; min-height: 54px; }
.plan-sum > .muted { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.ps-big { display: grid; justify-items: center; padding-inline-end: 14px; border-inline-end: 1px solid #E1E6F0; }
.ps-big b { font-size: 34px; font-weight: 300; line-height: 1.1; color: #34588A; }
.ps-big span { font-size: 12.5px; color: var(--muted); }
.ps-dates { display: grid; gap: 4px; }
.ps-dates div { display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.ps-dates span { width: 44px; color: var(--muted); font-size: 13px; }
.ps-note { grid-column: 1 / -1; display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: #1F6B5A; }
.ps-note .ic { width: 16px; height: 16px; margin-top: 3px; }

/* ---------- day calendar ---------- */
.dcal { position: relative; z-index: 1; }
.dhead, .dgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dhead span { text-align: center; font-size: 13px; font-weight: 800; color: var(--muted); padding-bottom: 6px; }
.dhead span:last-child { color: #C24D63; }
.dc {
  position: relative; min-height: 64px; padding: 7px 8px; border-radius: 14px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: #F2F4F9; border: 1px solid transparent; color: var(--ink-2);
  animation: pop .45s var(--spring) both; animation-delay: calc(var(--i, 0) * 12ms);
  transition: transform .3s var(--spring);
}
.dc:not(.pad):hover { transform: translateY(-2px); z-index: 2; }
.dc.pad { background: transparent; animation: none; }
.dc .dn { font-size: 12.5px; font-weight: 700; color: var(--muted); display: flex; gap: 4px; align-items: baseline; }
.dc .dn em { font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--steel); }
.dc .dv { font-size: 18px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dc .dv small { font-size: 12.5px; font-weight: 600; opacity: .75; }
.dc .flag { position: absolute; top: 6px; inset-inline-end: 6px; width: 20px; height: 20px; border-radius: 7px; display: grid; place-items: center; background: #C2A26B; color: #fff; box-shadow: 0 4px 10px -4px rgba(169, 133, 74, .9); }
.dc .flag .ic { width: 12px; height: 12px; }
.dc.met { background: linear-gradient(150deg, #3BA58C, #2F8F7A); color: #fff; box-shadow: 0 10px 20px -14px #2F8F7A; }
.dc.met .dn { color: rgba(255, 255, 255, .8); }
.dc.partial { background: #FBEEDB; color: #8A5A12; border-color: #F1D7AE; }
.dc.missed { background: #FAE3E8; color: #A93A51; border-color: #F2C5CF; }
.dc.missed .dv:empty::before { content: "0"; }
.dc.extra { background: #E4EDF8; color: #34588A; border-color: #C9D9EF; }
.dc.idle { background: #F4F5F9; }
.dc.off { background: repeating-linear-gradient(135deg, #F1F2F6 0 6px, #E8EAF1 6px 12px); color: var(--faint); }
.dc.today { background: #fff; border: 2px solid #262A42; box-shadow: 0 0 0 4px rgba(38, 42, 66, .1); color: #171A2B; }
.dc.future { background: #fff; border: 1px dashed #CDD3E2; color: var(--faint); }
.dlegend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.dlegend span { display: inline-flex; align-items: center; gap: 6px; }
.dlegend .dc { display: inline-block; min-height: 0; width: 14px; height: 14px; padding: 0; border-radius: 5px; animation: none; }
.dlegend .ic { width: 15px; height: 15px; color: #A9854A; }

/* ---------- admin board ---------- */
.board { display: grid; gap: 8px; position: relative; z-index: 1; }
.brow { display: grid; grid-template-columns: minmax(170px, 1.2fr) 64px minmax(0, 2fr) minmax(0, 1.4fr); align-items: center; gap: 14px; padding: 10px 14px; border-radius: 18px; background: #F7F8FB; border: 1px solid var(--edge); transition: transform .35s var(--spring), box-shadow .3s; }
.brow:hover { transform: translateX(-3px); box-shadow: 0 14px 30px -22px rgba(38, 42, 66, .5); }
.brow.is-behind { background: linear-gradient(90deg, #FDF2F4, #F7F8FB 60%); }
.brow.is-ahead { background: linear-gradient(90deg, #EEF8F5, #F7F8FB 60%); }
.brow .who > span { display: grid; min-width: 0; }
.brow .who b { color: var(--ink); }
.brow .who small { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.b-none { font-size: 12.5px; text-align: center; display: block; }
.b-proj { display: flex; flex-wrap: wrap; gap: 6px; }
.pmini { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 10px; background: color-mix(in srgb, var(--pc) 10%, #fff); border: 1px solid color-mix(in srgb, var(--pc) 28%, transparent); color: var(--ink); font-size: 13px; }
.pmini .pm-n { font-weight: 800; direction: ltr; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pmini .pm-v { font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.b-chips { justify-content: flex-end; }
.pbits { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.pbit { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 8px; font-size: 12.5px; background: color-mix(in srgb, var(--pc) 12%, #fff); border: 1px solid color-mix(in srgb, var(--pc) 26%, transparent); }
.pbit .pb-n { color: var(--ink-2); font-weight: 800; direction: ltr; }
.big-n { font-size: 28px; font-weight: 300; display: inline-flex; align-items: baseline; gap: 4px; }
.big-n small { font-size: 13px; color: var(--muted); font-weight: 600; }
.big-n.rose { color: #A93A51; } .big-n.teal { color: #1F6B5A; }

/* ---------- employee: today ---------- */
.today-big { display: flex; align-items: center; gap: 20px; position: relative; z-index: 1; }
.today-big .qring b { font-size: 40px; font-weight: 300; }
.tb-side { flex: 1; display: grid; gap: 10px; min-width: 0; }
.tb-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; color: var(--ink); padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--pc) 8%, #fff); border: 1px solid color-mix(in srgb, var(--pc) 22%, transparent); transition: transform .3s var(--spring); }
.tb-row:hover { transform: translateX(-3px); }
.tb-row .n { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-row .v { font-size: 13.5px; color: var(--ink-2); font-weight: 700; }
.tb-row .bar { grid-column: 1 / -1; height: 6px; border-radius: 9px; background: rgba(38, 42, 66, .08); overflow: hidden; }
.tb-row .bar i { display: block; height: 100%; border-radius: inherit; background: var(--pc); transform-origin: right; animation: meterIn 1s var(--out) both; }

/* ---------- unapproved images ---------- */
.fixlist { display: grid; gap: 10px; position: relative; z-index: 1; }
.fixrow { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border-radius: 18px; background: #fff; border: 1px solid #F2C5CF; box-shadow: 0 14px 30px -26px rgba(194, 77, 99, .8); }
.fx-thumb { width: 92px; height: 70px; border-radius: 13px; overflow: hidden; border: 0; padding: 0; cursor: pointer; background: #F2F4F9; display: grid; place-items: center; font-weight: 900; color: var(--ink-2); direction: ltr; }
.fx-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fx-body { display: grid; gap: 4px; min-width: 0; }
.fx-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.fx-top > b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.fx-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.fx-note { display: flex; gap: 6px; align-items: flex-start; padding: 7px 10px; border-radius: 11px; background: #FAE3E8; color: #8E2E42; font-size: 13.5px; }
.fx-note .ic { width: 16px; height: 16px; margin-top: 3px; flex: none; }
.fx-act { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }

/* ---------- team cards & project page ---------- */
.m-sched { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: #F7F8FB; border: 1px solid var(--edge); position: relative; z-index: 1; min-height: 76px; }
.m-noq { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.m-noq .ic { width: 16px; height: 16px; }
.plan-strip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); font-size: 14px; font-weight: 600; }
.plan-strip .ic { width: 17px; height: 17px; color: #E4CC97; }
.plan-strip .dim { opacity: .7; font-weight: 500; }
.bigprog { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; position: relative; z-index: 1; }
.bp-num { display: grid; justify-items: center; }
.bp-num b { font-size: 52px; font-weight: 250; line-height: 1; color: #34588A; }
.bp-num span { font-size: 13px; color: var(--muted); }
.bp-bar .pbar { height: 14px; }
.bp-axis { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.statlist { display: grid; gap: 8px; position: relative; z-index: 1; }
.statlist > div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 13px; background: #F7F8FB; font-weight: 600; }
.statlist b { margin-inline-start: auto; font-size: 20px; font-weight: 400; }
.statlist .dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.a { background: var(--pos); } .dot.p { background: var(--warn); } .dot.r { background: var(--neg); } .dot.f { background: var(--steel); }

/* ---------- per-image review in the work viewer ---------- */
.rv { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.rv .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.rv.ok { background: #DFF1EC; color: #1F6B5A; }
.rv.no { background: #FAE3E8; color: #A93A51; }
.rv.wait { background: #FBEEDB; color: #8A5A12; }
.rv.old { background: #EEF0F6; color: var(--muted); }
.rv.fix { background: #E4EDF8; color: #34588A; }
.rv-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-inline-start: auto; }
.rv-acts .btn.sm { height: 36px; }
.rv-acts .quick { background: #fff; border-color: #BFE3D8; color: #1F6B5A; }
.rej-box { display: flex; align-items: center; gap: 6px; flex: 1 1 340px; margin-inline-start: auto; }
.rej-box .input { height: 38px; flex: 1; min-width: 140px; }
.rv-note { display: flex; gap: 6px; align-items: flex-start; margin-top: 4px; font-size: 13px; color: #8E2E42; }
.rv-note .ic { width: 15px; height: 15px; margin-top: 3px; flex: none; }
.viewer-bar { flex-wrap: wrap; }
.rv-sum { display: flex; gap: 6px; flex-wrap: wrap; }
.rv-sum span { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 10px; font-size: 13.5px; font-weight: 800; }
.rv-sum .ic { width: 15px; height: 15px; }
.rv-sum .ok { background: #DFF1EC; color: #1F6B5A; }
.rv-sum .no { background: #FAE3E8; color: #A93A51; }
.rv-sum .wait { background: #FBEEDB; color: #8A5A12; }
.seen-dot.ok { background: var(--pos); }
.seen-dot.no { background: var(--neg); }
.seen-dot.seen { background: #8E9AB8; }
.strip button.old { opacity: .5; }
.strip button.old:hover { opacity: .85; }
.file-row.old { opacity: .62; }
.file-row.bad { border-color: #F2C5CF; background: #FFF8F9; }
.tags-line { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 3px; }
.tags-line:empty { display: none; }
.stage-content.kept img { animation: none; }

@media (max-width: 1280px) {
  .brow { grid-template-columns: minmax(150px, 1fr) 56px minmax(0, 1.6fr); }
  .b-chips { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .kpis { gap: 10px; }
  .kpi { padding: 14px; border-radius: 18px; }
  .kpi-v { font-size: 28px; }
  .kpi-ic { width: 38px; height: 38px; }
  .row2 { grid-template-columns: 1fr; }
  .brow { grid-template-columns: 1fr auto; }
  .b-proj, .b-chips { grid-column: 1 / -1; }
  .today-big { flex-direction: column; align-items: stretch; }
  .today-big .qring { align-self: center; }
  .fixrow { grid-template-columns: 72px minmax(0, 1fr); }
  .fx-thumb { width: 72px; height: 56px; }
  .fx-act { grid-column: 1 / -1; flex-direction: row; }
  .dhead, .dgrid { gap: 3px; }
  .dc { min-height: 50px; padding: 5px; border-radius: 10px; }
  .dc .dv { font-size: 14px; }
  .dc .dn em { display: none; }
  .dc .flag { width: 16px; height: 16px; top: 3px; inset-inline-end: 3px; }
  .bigprog { grid-template-columns: 1fr; }
  .mini-kpis { grid-template-columns: 1fr 1fr 1fr; }
  .mk b { font-size: 20px; }
  .rej-box { flex-wrap: wrap; }
}


/* ---------- PSD requirement & finishing a project ---------- */
.pp-psd { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: #8A5A12; }
.pp-psd .ic { width: 14px; height: 14px; }
.pp-psd.ok { color: #1F6B5A; }
.pp-state.finished { background: #262A42; color: #fff; }
.phero .acts .btn.finish { --bg: #E4CC97; --fg: #171A2B; border-color: transparent; font-weight: 800; }
.phero .acts .btn.finish:hover { background: #EBD6A8; }
.checklist { display: grid; gap: 8px; margin-bottom: 8px; }
.checklist > div { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #F7F8FB; border: 1px solid var(--edge); }
.checklist > div > .ic { width: 22px; height: 22px; margin-top: 1px; }
.checklist span { display: grid; gap: 2px; font-size: 14px; color: var(--ink-2); }
.checklist b { color: var(--ink); font-size: 15px; }
.checklist .ok > .ic { color: var(--pos); }
.checklist .no { background: #FDF2F4; border-color: #F2C5CF; } .checklist .no > .ic { color: var(--neg); }
.checklist .warn > .ic { color: var(--warn); }


/* ---------- PSD requirement & finishing a project ---------- */
.pp-psd { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: #8A5A12; }
.pp-psd .ic { width: 14px; height: 14px; }
.pp-psd.ok { color: #1F6B5A; }
.pp-state.finished { background: #262A42; color: #fff; }
.phero .acts .btn.finish { --bg: #E4CC97; --fg: #171A2B; border-color: transparent; font-weight: 800; }
.phero .acts .btn.finish:hover { background: #EBD6A8; }
.checklist { display: grid; gap: 8px; margin-bottom: 8px; }
.checklist > div { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #F7F8FB; border: 1px solid var(--edge); }
.checklist > div > .ic { width: 22px; height: 22px; margin-top: 1px; }
.checklist span { display: grid; gap: 2px; font-size: 14px; color: var(--ink-2); }
.checklist b { color: var(--ink); font-size: 15px; }
.checklist .ok > .ic { color: var(--pos); }
.checklist .no { background: #FDF2F4; border-color: #F2C5CF; } .checklist .no > .ic { color: var(--neg); }
.checklist .warn > .ic { color: var(--warn); }

/* ---------- project gallery: only the images ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; position: relative; z-index: 1; }
.gal {
  position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; padding: 0; border: 0; cursor: zoom-in;
  background: #EEF0F6; box-shadow: 0 12px 26px -20px rgba(23, 26, 43, .7);
  animation: pop .5s var(--spring) both; animation-delay: calc(var(--i, 0) * 18ms);
  transition: transform .4s var(--spring), box-shadow .3s;
}
.gal:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 22px 36px -22px rgba(23, 26, 43, .8); }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--out); }
.gal:hover img { transform: scale(1.08); }
.gal .g-ph { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; color: var(--ink-2); direction: ltr; }
.gal .g-day { position: absolute; inset-inline: 6px; bottom: 6px; display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.gal .g-day span { height: 22px; padding: 0 8px; border-radius: 7px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; background: rgba(23, 26, 43, .72); color: #fff; backdrop-filter: blur(6px); }
.gal .g-rv { position: absolute; top: 6px; inset-inline-start: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 0 0 2px #fff; }
.gal .g-rv .ic { width: 13px; height: 13px; stroke-width: 3; }
.gal .g-rv.ok { background: var(--pos); } .gal .g-rv.no { background: var(--neg); } .gal .g-rv.wait { background: var(--warn); }
.gal .g-fix { position: absolute; top: 6px; inset-inline-end: 6px; height: 22px; padding: 0 7px; border-radius: 7px; font-size: 11.5px; font-weight: 800; background: #E4EDF8; color: #34588A; display: inline-flex; align-items: center; }
.psdlist { display: grid; gap: 8px; position: relative; z-index: 1; }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .gal { border-radius: 12px; } .gal .g-day span:last-child { display: none; } }


/* ---------- numbers: English digits, bold inside boxes ---------- */
.kpi-v, .stat .big, .gauge .center .v, .member .nums b, .phero .nums b, .mk b, .big-n, .bp-num b, .ps-big b,
.statlist b, .today-big .qring b, .qring b, .hero .figure, .dc .dv, .proj-stats b, .pp-top, .sch b, .num { font-weight: 800; }
.hero .figure { letter-spacing: -.02em; }
.mini-kpis .mk b { display: block; font-size: 28px; line-height: 1.15; font-weight: 800; }
.kpi-v small, .stat .big small, .gauge .center .v small, .hero .figure small, .big-n small { font-weight: 600; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1280px) {
  .s3 { grid-column: span 6; }
  .wall { width: 42%; }
}
@media (max-width: 1100px) {
  .s4, .s5, .s7, .s8, .s6 { grid-column: span 12; }
  .composer-grid { grid-template-columns: 1fr; }
  .sticky-side { position: static; }
  .modal.sheet { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; overflow-y: auto; }
  .viewer .stage { min-height: 54vh; }
  .viewer .stage .stage-content { inset: 12px; }
  .stage .nav { width: 42px; height: 42px; margin-top: -21px; background: rgba(255, 255, 255, .86); }
  .stage .nav.prev { inset-inline-start: 8px; } .stage .nav.next { inset-inline-end: 8px; }
  .viewer-bar { flex-wrap: wrap; gap: 8px 10px; }
  .viewer-bar .quick { width: 100%; }
  .side { overflow: visible; }
  .person { grid-template-columns: 1fr; }
  .person-h { position: static; grid-template-columns: auto 1fr auto; align-items: center; justify-items: stretch; }
  .person-h .facts { grid-column: 1 / -1; }
  .phero { grid-template-columns: 1fr; }
  .phero .collage { min-height: 200px; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; padding: 12px; gap: 12px; }
  .sidebar { position: fixed; z-index: 80; top: 12px; bottom: 12px; right: 12px; height: auto; width: min(290px, calc(100vw - 40px)); transform: translateX(calc(100% + 24px)); transition: transform .5s var(--out); background: var(--solid); animation: none; }
  .nav-open .sidebar { transform: none; }
  .scrim { position: fixed; inset: 0; z-index: 79; background: rgba(15, 17, 30, .45); backdrop-filter: blur(4px); animation: fadeIn .3s; }
  .menu-btn { display: inline-flex; }
  .topbar { padding-inline-start: 12px; border-radius: 20px; }
  .topbar .search { display: none; }
  .topbar .search.open { display: block; position: absolute; inset-inline: 10px; top: 78px; width: auto; z-index: 30; }
  .hero .figure { font-size: 56px; }
  .wall { display: none; }
  .cursor-glow { display: none; }
}
@media (max-width: 600px) {
  .card { padding: 16px; border-radius: 22px; }
  .hero { padding: 20px; min-height: 0; }
  .hero-tiles { gap: 8px; }
  .hero-tile { min-height: 84px; padding: 12px; font-size: 14px; }
  .works, .works.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .work { padding: 6px 6px 10px; border-radius: 18px; }
  .work .meta { padding: 8px 4px 0; gap: 6px; }
  .work .line { flex-wrap: wrap; }
  .work .who b { max-width: 90px; }
  .projects, .projects.compact { grid-template-columns: 1fr; }
  .qitem { grid-template-columns: 60px minmax(0, 1fr) auto; }
  .qitem .pv { width: 60px; height: 48px; }
  .stat .big { font-size: 40px; }
  .auth-card { padding: 28px 20px 22px; }
  .auth .row2 { grid-template-columns: 1fr; }
  .modal { padding: 20px; border-radius: 24px; }
  .modal.sheet { padding: 0; }
  .overlay { padding: 8px; }
  .side-h, .side-sec { padding-inline: 16px; }
  .tray { left: 10px; bottom: 10px; width: calc(100vw - 20px); }
  .toolbar .select { min-width: 0; flex: 1 1 calc(50% - 5px); }
  .toolbar .chip-btn { height: 36px; padding: 0 11px; }
  .hero .orb { display: none; }
  .heat { gap: 2px; }
  .phero { padding: 22px; }
  .phero h2 { font-size: 30px; }
  .ticker { height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .aurora i { animation: none; }
  .ticker-track { animation: none; }
}
