/* RAWDAWG HQ: the private ops dashboard. */

@font-face {
  font-family: 'Libron';
  src: url('/assets/fonts/Libron-Regular.woff2?v=20261023222505') format('woff2');
  font-display: swap;
}

:root {
  --backdrop: #e6e5e1;
  --side: #f6f5f2;
  --panel: #ffffff;
  --ink: #121211;
  --ink-2: #3b3a37;
  --mute: #8b8984;
  --faint: #b8b6b0;
  --line: #eceae5;
  --line-2: #e1dfd9;
  --hover: #efeee9;
  --gold: #a8812f;
  --gold-soft: #f6eedb;
  --green: #17864c;
  --green-soft: #e2f3e9;
  --amber: #a86412;
  --amber-soft: #fbefdc;
  --red: #b4381a;
  --red-soft: #fbe6de;
  --violet: #6e5bd0;
  --violet-soft: #ece8fb;
  --blue: #2f5bd3;
  --blue-soft: #e5ecfc;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --display: 'Libron', Georgia, serif;
  --r: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --card-shadow: 0 1px 2px rgba(18, 18, 17, .04), 0 10px 30px -18px rgba(18, 18, 17, .18);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--backdrop);
  color: var(--ink);
  font: 15px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
::selection { background: var(--gold-soft); }

.i { display: inline-flex; width: 18px; height: 18px; flex: none; }
.i svg, .chev svg, .sep svg { width: 100%; height: 100%; }
.chev, .sep { display: inline-flex; flex: none; }

/* ── Frame ─────────────────────────────────────────── */

.app {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  height: calc(100dvh - 24px);
  margin: 12px;
  border-radius: 26px;
  overflow: hidden;
  background: var(--side);
  border: 1px solid rgba(18, 18, 17, .06);
  box-shadow: 0 30px 80px -40px rgba(18, 18, 17, .35), 0 2px 6px rgba(18, 18, 17, .04);
}

.side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 16px 16px;
  overflow-y: auto;
  scrollbar-width: none;
}

.ws { display: flex; align-items: center; gap: 12px; padding: 0 4px 16px; }
.ws-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font: 19px/1 var(--display);
  letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 6px 14px -6px rgba(0, 0, 0, .5);
  flex: none;
}
.ws-mark.big { width: 64px; height: 64px; border-radius: 18px; font-size: 27px; }
.ws-text { display: flex; flex-direction: column; min-width: 0; }
.ws-text strong { font-weight: 500; font-size: 16px; letter-spacing: -.01em; }
.ws-text span { color: var(--mute); font-size: 13px; }
.icon-btn.ws-close { display: none; margin-left: auto; }

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 10px 0 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  color: var(--mute);
  text-align: left;
  box-shadow: 0 1px 2px rgba(18, 18, 17, .03);
  transition: border-color .2s;
}
.search:hover { border-color: var(--faint); }
.search span:nth-child(2) { flex: 1; }
kbd {
  font: 11.5px/1 var(--mono);
  color: var(--mute);
  padding: 5px 7px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: var(--side);
}

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--ink-2);
  transition: background .15s;
}
.nav a:hover { background: var(--hover); }
.nav a.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(18, 18, 17, .05), 0 0 0 1px var(--line); }
.nav a .i { color: var(--mute); }
.nav a.on .i { color: var(--ink); }
.nav .count { margin-left: auto; font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.nav .count.hot { color: #fff; background: var(--ink); border-radius: 999px; padding: 1px 8px; font-size: 12px; }

.tree-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 4px 6px 12px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}
.tree { display: flex; flex-direction: column; gap: 1px; }
.tree a, .tree button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--ink-2);
  text-align: left;
  width: 100%;
}
.tree a:hover, .tree button:hover { background: var(--hover); }
.tree .on { background: var(--panel); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(18, 18, 17, .05); color: var(--ink); }
.tree .chev { width: 14px; height: 14px; color: var(--mute); transition: transform .2s var(--ease); }
.tree .open .chev { transform: rotate(90deg); }
.tree .kids { display: flex; flex-direction: column; gap: 1px; margin-left: 19px; padding-left: 12px; border-left: 1px solid var(--line-2); }
.tree .kids[hidden] { display: none; }
.tree .n { margin-left: auto; font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.folder { width: 18px; height: 18px; flex: none; }

.side-foot { margin-top: auto; padding-top: 18px; display: flex; gap: 6px; }
.foot-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--mute);
  border: 1px solid var(--line-2);
  background: transparent;
  transition: background .15s, color .15s;
}
.foot-btn .i { width: 15px; height: 15px; }
.foot-btn:hover { background: var(--panel); color: var(--ink); }

.main { background: var(--panel); border-left: 1px solid var(--line); overflow-y: auto; position: relative; scrollbar-width: none; }
.main::-webkit-scrollbar { display: none; }
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 68px;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(14px);
}
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 17px; min-width: 0; }
.crumbs a { color: var(--mute); }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { width: 14px; height: 14px; color: var(--faint); }
.crumbs strong { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn.menu-btn { display: none; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--mute);
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.icon-btn.spin .i { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.mode {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--side);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.mode::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--faint)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot, var(--faint)) 22%, transparent); }
.mode.live { --dot: var(--green); }
.mode.test { --dot: #d99a2b; }
.mode.sample { --dot: var(--violet); }

.view { padding: 40px clamp(24px, 3vw, 56px) 80px; animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* ── Type & bits ───────────────────────────────────── */

.hello { margin: 0 0 6px; font-size: 15px; color: var(--mute); }
h1.title { margin: 0 0 32px; font-size: 34px; line-height: 1.1; font-weight: 600; letter-spacing: -.03em; }
h2.sec {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 52px 0 20px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.025em;
}
h2.sec:first-child { margin-top: 0; }
h2.sec small { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--mute); }
h2.sec .right { margin-left: auto; align-self: center; display: flex; gap: 8px; }
.muted { color: var(--mute); }
.mono { font-family: var(--mono); font-size: .92em; }
b, strong { font-weight: 500; color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--line-2);
  background: var(--panel);
  transition: background .15s, border-color .15s, transform .1s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--faint); }
.btn:active { transform: translateY(1px); }
.btn .i { width: 16px; height: 16px; }
.btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.dark:hover { background: #2a2a28; }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--side);
  color: var(--ink-2);
}
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.violet { background: var(--violet-soft); color: var(--violet); }
.pill.blue { background: var(--blue-soft); color: var(--blue); }
.pill.gold { background: var(--gold-soft); color: var(--gold); }
.pill.dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--panel);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.chip em { font-style: normal; color: var(--mute); }

.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 11px;
  background: var(--side);
  border: 1px solid var(--line);
}
.seg button {
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(18, 18, 17, .08), 0 0 0 1px var(--line); }
.seg button span { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.seg button.on span { color: var(--mute); }

.avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  flex: none;
  background: var(--av-bg, var(--side));
  color: var(--av-fg, var(--ink-2));
}

/* ── Stats ─────────────────────────────────────────── */

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat {
  padding: 20px 20px 18px;
  border-radius: 18px;
  background: var(--side);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  transition: background .2s, transform .2s var(--ease);
}
a.stat:hover { background: var(--hover); transform: translateY(-1px); }
.stat .label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--mute); }
.stat .label .i { width: 16px; height: 16px; }
.stat .num { font-size: 30px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.2; margin-top: 6px; }
.stat .sub { font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Folder cards (the illustrated “spaces”) ───────── */

.spaces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.space {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px 26px;
  border-radius: 26px;
  text-align: center;
  transition: background .25s var(--ease);
}
.space:hover, .space.lead { background: var(--side); }
.space:hover .art { transform: translateY(-3px); }
.space h3 { margin: 22px 0 4px; font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.space p { margin: 0; color: var(--mute); font-size: 15px; }

.art { position: relative; width: 236px; max-width: 100%; height: 176px; transition: transform .35s var(--ease); }
.art .back {
  position: absolute;
  inset: 22px 8px 0;
  border-radius: 20px;
  background: var(--back);
}
.art .back::before {
  content: '';
  position: absolute;
  left: 0;
  top: -14px;
  width: 46%;
  height: 34px;
  border-radius: 16px 16px 0 0;
  background: inherit;
}
.art .front {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  border-radius: 20px;
  background: var(--front);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 22px 30px -20px rgba(0, 0, 0, .5);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 14px;
}
.art .front::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 46px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(rgba(255, 255, 255, .3), transparent);
  pointer-events: none;
}
.art .sheet {
  position: absolute;
  top: 6px;
  width: 46%;
  height: 74%;
  border-radius: 10px;
  background:
    linear-gradient(var(--line-2), var(--line-2)) 18% 22% / 52% 5px no-repeat,
    linear-gradient(var(--line), var(--line)) 18% 36% / 64% 4px no-repeat,
    linear-gradient(var(--line), var(--line)) 18% 47% / 40% 4px no-repeat,
    #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.art .sheet::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  border-radius: 0 10px 0 6px;
  background: linear-gradient(225deg, var(--side) 50%, #e9e7e2 50%);
}
.art .sheet.a { left: 14%; transform: rotate(-7deg); }
.art .sheet.b { left: 42%; transform: rotate(6deg); top: 12px; }
.glass {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}
.glass.light { color: var(--ink); background: #fff; border-color: var(--line-2); box-shadow: 0 2px 6px rgba(0, 0, 0, .06); font-weight: 500; }
.faces { position: relative; display: flex; }
.faces .avatar { width: 34px; height: 34px; font-size: 13px; border: 2px solid rgba(255, 255, 255, .4); }
.faces .avatar + .avatar { margin-left: -10px; }

.art.orders { --back: #1f2e2d; --front: linear-gradient(180deg, rgba(168, 196, 193, .72), rgba(44, 70, 67, .96)); }
.art.factory { --back: #e8e7e3; --front: linear-gradient(180deg, #fbfbfa, #ecebe7); }
.art.factory .front { box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--line-2), 0 22px 30px -22px rgba(0, 0, 0, .3); justify-content: flex-end; }
.art.factory .zip {
  position: absolute;
  left: 22px;
  top: 16px;
  bottom: 16px;
  width: 12px;
  border-radius: 6px;
  background: repeating-linear-gradient(#cfcdc7 0 3px, transparent 3px 7px);
}
.art.factory .zip::before {
  content: '';
  position: absolute;
  left: -3px;
  top: -6px;
  width: 18px;
  height: 26px;
  border-radius: 9px;
  background: linear-gradient(#fff, #e6e4df);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}
.art.factory .crate {
  position: absolute;
  top: 0;
  width: 30%;
  height: 52%;
  border-radius: 9px;
  background: linear-gradient(#f3e3c0, #e4ca94);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1), inset 0 -10px 0 rgba(0, 0, 0, .05);
}
.art.factory .crate.a { left: 18%; transform: rotate(-5deg); top: 10px; }
.art.factory .crate.b { left: 46%; background: linear-gradient(#d9e6f3, #b8cce2); transform: rotate(4deg); }
.art.tags { --back: #b9852c; --front: linear-gradient(180deg, rgba(246, 205, 120, .9), rgba(201, 138, 42, .97)); }
.art.tags .front { justify-content: center; align-items: center; }
.art.tags .mark { font: 72px/1 var(--display); color: rgba(255, 255, 255, .55); text-shadow: 0 1px 0 rgba(120, 70, 0, .25); }
.art.tags .ver { position: absolute; right: 12px; top: 12px; height: 26px; padding: 0 10px; font-size: 12.5px; }
.art .foil {
  position: absolute;
  top: 0;
  width: 40%;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .25));
}
.art .foil.a { left: 6%; transform: rotate(-12deg); top: 18px; }
.art .foil.b { left: 31%; top: -4px; }
.art .foil.c { left: 55%; transform: rotate(12deg); top: 16px; }

/* ── Activity ──────────────────────────────────────── */

.duo { display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 30%, 520px); gap: 40px; align-items: start; margin-top: 52px; }
.feed { display: flex; flex-direction: column; }
.ev { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ev:first-child { padding-top: 4px; }
.ev .body { flex: 1; min-width: 0; padding-top: 6px; }
.ev .line { color: var(--mute); }
.ev .line b { color: var(--ink); font-weight: 400; }
.ev .when { font-size: 13px; color: var(--faint); margin-top: 2px; }
.ev .quote { margin-top: 12px; padding: 14px 18px; border-radius: 14px; background: var(--side); color: var(--ink-2); font-size: 14.5px; }
.ev[data-go] { cursor: pointer; }
.ev[data-go]:hover .line b { text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }

.card {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--card-shadow);
}
.card.pad { padding: 22px; }
.card h4 { margin: 0 0 4px; font-size: 15px; font-weight: 500; }
.count-down { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 4px; }
.count-down .big { font-size: 46px; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 99px; background: var(--side); overflow: hidden; margin: 14px 0 6px; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d8b25e, var(--gold)); }
.next-list { display: flex; flex-direction: column; margin-top: 14px; }
.next-list label { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; cursor: pointer; }

/* ── Tables ────────────────────────────────────────── */

.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .grow { flex: 1; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th {
  text-align: left;
  font-weight: 400;
  font-size: 13px;
  color: var(--mute);
  padding: 0 14px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr[data-open] { cursor: pointer; transition: background .15s; }
.table tr[data-open]:hover td { background: #fafaf8; }
.table td:first-child, .table th:first-child { padding-left: 4px; }
.table .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.table .who div { min-width: 0; }
.table .who small { display: block; color: var(--mute); font-size: 13px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .items { display: flex; gap: 6px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 56px 24px;
  border-radius: 22px;
  background: var(--side);
  border: 1px dashed var(--line-2);
}
.empty .glyph { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--panel); box-shadow: var(--card-shadow); color: var(--ink-2); }
.empty .glyph .i { width: 22px; height: 22px; }
.empty h3 { margin: 8px 0 0; font-size: 18px; font-weight: 500; }
.empty p { margin: 0 0 8px; color: var(--mute); max-width: 440px; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; background: var(--amber-soft); color: var(--amber); font-size: 14px; margin-bottom: 20px; }

/* ── Dog Tags ──────────────────────────────────────── */

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tier {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 22px;
  color: var(--tier-ink, #fff);
  background: var(--tier-bg);
  min-height: 210px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px -26px rgba(0, 0, 0, .55);
}
.tier img { position: absolute; right: -18px; top: -14px; width: 150px; transform: rotate(14deg); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); }
.tier .name { font: 28px/1 var(--display); letter-spacing: .01em; }
.tier .cad { position: relative; font-size: 13.5px; opacity: .75; margin-top: 6px; max-width: 58%; }
.tier .big { margin-top: auto; font-size: 42px; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tier .small { font-size: 13.5px; opacity: .75; margin-top: 6px; }
.tier.gold { --tier-bg: linear-gradient(150deg, #f1d48e, #c48f2e 70%, #9c6c18); --tier-ink: #2a1b00; }
.tier.black { --tier-bg: linear-gradient(150deg, #3a3a38, #121211 70%); }
.tier.white { --tier-bg: linear-gradient(150deg, #ffffff, #ecebe7); --tier-ink: var(--ink); box-shadow: 0 0 0 1px var(--line-2), 0 20px 40px -28px rgba(0, 0, 0, .35); }

/* ── Suppliers board ───────────────────────────────── */

.board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.col { background: var(--side); border-radius: 20px; padding: 12px; border: 1px solid var(--line); min-width: 0; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 12px; font-size: 14px; font-weight: 500; }
.col-head .n { color: var(--mute); font-weight: 400; margin-left: auto; font-variant-numeric: tabular-nums; }
.col-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.col .stack { display: flex; flex-direction: column; gap: 10px; }
.sup {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  text-align: left;
  box-shadow: 0 1px 2px rgba(18, 18, 17, .04);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.sup:hover { transform: translateY(-2px); box-shadow: var(--card-shadow); }
.sup .row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sup .row strong { font-weight: 500; line-height: 1.3; }
.sup .chip { white-space: normal; height: auto; min-height: 26px; padding: 4px 9px; line-height: 1.3; }
.sup .row small { color: var(--mute); font-size: 13px; }
.sup .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sup .note { color: var(--mute); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.flag { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font: 600 11px/1 var(--mono); background: var(--side); color: var(--ink-2); flex: none; }

/* ── Stock & margins ───────────────────────────────── */

.skus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sku { display: flex; gap: 16px; align-items: center; padding: 18px; }
.sku .pic { width: 64px; height: 64px; border-radius: 16px; background: var(--side) center / 82% no-repeat; flex: none; }
.sku .on-hand { font-size: 26px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.calc { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field span { font-size: 13px; color: var(--mute); }
.input {
  display: flex;
  align-items: center;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  padding: 0 12px;
  gap: 6px;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus-within { border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(18, 18, 17, .06); }
.input input { border: 0; outline: 0; background: none; width: 100%; height: 100%; font-variant-numeric: tabular-nums; }
.input em { font-style: normal; color: var(--mute); }
.margins { display: flex; flex-direction: column; }
.margin { display: grid; grid-template-columns: 170px minmax(0, 1fr) 90px; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.margin:first-child { padding-top: 0; }
.margin .lab small { display: block; color: var(--mute); font-size: 12.5px; }
.margin .track { position: relative; height: 30px; border-radius: 8px; background: var(--side); overflow: hidden; display: flex; }
.margin .track i { display: block; height: 100%; }
.margin .track .cost { background: #d9d6cf; }
.margin .track .fee { background: #e8e5de; }
.margin .track .profit { background: linear-gradient(90deg, #4fbf83, var(--green)); }
.margin .track .loss { background: linear-gradient(90deg, #e5795c, var(--red)); }
.margin .val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.margin .val small { display: block; font-weight: 400; color: var(--mute); font-size: 12.5px; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--mute); margin-top: 14px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }

/* ── Launch ────────────────────────────────────────── */

.launch-head { display: flex; align-items: center; gap: 28px; padding: 26px; margin-bottom: 28px; }
.ring { width: 112px; height: 112px; flex: none; }
.ring circle { fill: none; stroke-width: 10; }
.ring .bg { stroke: var(--side); }
.ring .fg { stroke: url(#gold); stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease); }
.ring text { font: 600 24px var(--sans); fill: var(--ink); letter-spacing: -.03em; }
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.group { padding: 20px 22px 10px; }
.group h4 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 6px; }
.check { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); cursor: pointer; font-size: 14.5px; }
.check:first-of-type { border-top: 0; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--faint);
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
  color: #fff;
  transition: background .15s, border-color .15s;
}
.box .i { width: 13px; height: 13px; opacity: 0; transform: scale(.6); transition: .15s var(--ease); }
.check input:checked + .box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .box .i { opacity: 1; transform: none; }
.check input:checked ~ span { color: var(--mute); text-decoration: line-through; text-decoration-color: var(--faint); }
.check input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(18, 18, 17, .15); }

/* ── Content ───────────────────────────────────────── */

.eps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ep { display: flex; gap: 18px; padding: 18px 20px; align-items: flex-start; }
.ep .day { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 16px; background: var(--ink); color: #fff; flex: none; }
.ep .day small { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.ep .day b { color: #fff; font: 24px/1 var(--display); }
.ep .txt { flex: 1; min-width: 0; }
.ep .txt strong { display: block; font-weight: 500; line-height: 1.35; }
.ep .txt p { margin: 4px 0 0; color: var(--mute); font-size: 13.5px; }
.ep .status { margin-top: 2px; }
.add-ep { display: flex; gap: 10px; margin-top: 16px; }
.add-ep .input { flex: 1; }

/* ── Drawer, palette, gate, toast ──────────────────── */

.scrim { position: fixed; inset: 0; background: rgba(18, 18, 17, .28); z-index: 40; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: min(460px, calc(100vw - 24px));
  z-index: 41;
  background: var(--panel);
  border-radius: 22px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .35);
  display: flex;
  flex-direction: column;
  animation: slide .32s var(--ease);
}
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.drawer-head { display: flex; align-items: flex-start; gap: 14px; padding: 22px 22px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.drawer-head p { margin: 2px 0 0; color: var(--mute); font-size: 14px; }
.drawer-head .icon-btn { margin-left: auto; }
.drawer-body { padding: 22px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }
.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 16px; font-size: 14.5px; margin: 0 0 22px; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.address { position: relative; padding: 16px 18px; border-radius: 14px; background: var(--side); line-height: 1.6; margin-bottom: 22px; }
.address .icon-btn { position: absolute; right: 8px; top: 8px; }
.line-items { display: flex; flex-direction: column; margin-bottom: 22px; }
.line-items div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.line-items div:last-child { border: 0; font-weight: 500; }
.note-box { padding: 16px 18px; border-radius: 14px; background: var(--side); color: var(--ink-2); font-size: 14.5px; margin-bottom: 22px; }

.palette { position: fixed; inset: 0; z-index: 50; background: rgba(18, 18, 17, .28); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; animation: fade .15s; }
.palette-box { width: min(620px, 100%); background: var(--panel); border-radius: 20px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5); overflow: hidden; }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 0 20px; height: 60px; border-bottom: 1px solid var(--line); color: var(--mute); }
.palette-input input { flex: 1; border: 0; outline: 0; font-size: 17px; background: none; color: var(--ink); }
.palette-list { max-height: 50vh; overflow-y: auto; padding: 8px; }
.palette-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 10px; text-align: left; }
.palette-list button.on { background: var(--side); }
.palette-list .kind { margin-left: auto; font-size: 12.5px; color: var(--mute); }
.palette-list .none { padding: 24px; text-align: center; color: var(--mute); }

.gate { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; background: radial-gradient(1200px 600px at 50% -10%, #f7f6f3, var(--backdrop)); }
.gate-card { width: min(380px, 100%); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 32px 32px; border-radius: 28px; background: var(--panel); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .35), 0 0 0 1px var(--line); text-align: center; }
.gate-card h1 { margin: 12px 0 0; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.gate-card p { margin: 0 0 8px; color: var(--mute); font-size: 14.5px; }
.gate-card p.err { color: var(--red); }
.gate-card input { width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); padding: 0 14px; outline: 0; transition: border-color .15s, box-shadow .15s; }
.gate-card input:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(18, 18, 17, .06); }
.gate-card .btn { width: 100%; height: 46px; border-radius: 12px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .5); animation: rise .3s var(--ease); }

/* ── Small screens ─────────────────────────────────── */

@media (max-width: 1100px) {
  .duo { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .board { grid-template-columns: repeat(4, 260px); }
}

@media (max-width: 860px) {
  .app { display: block; margin: 0; height: 100dvh; border-radius: 0; border: 0; }
  .main { height: 100dvh; border-left: 0; }
  .side {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(320px, 86vw);
    z-index: 45;
    background: var(--side);
    transform: translateX(-102%);
    transition: transform .3s var(--ease);
    box-shadow: 0 0 60px rgba(0, 0, 0, .25);
  }
  .side.open { transform: none; }
  .icon-btn.ws-close { display: inline-grid; }
  .icon-btn.menu-btn { display: inline-grid; margin-left: -8px; }
  .top { padding: 0 16px; height: 60px; }
  .crumbs { font-size: 16px; }
  .crumbs a, .crumbs .sep { display: none; }
  .mode { display: none; }
  .view { padding: 24px 16px 64px; }
  h1.title { font-size: 28px; margin-bottom: 24px; }
  h2.sec { font-size: 22px; margin-top: 40px; flex-wrap: wrap; }
  .spaces, .tiers, .skus, .groups, .eps { grid-template-columns: minmax(0, 1fr); }
  .spaces { gap: 6px; }
  .space { display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 18px; text-align: left; padding: 14px; border-radius: 20px; }
  .space .art { width: 120px; height: 90px; grid-row: span 2; }
  .space h3 { align-self: end; }
  .space p { align-self: start; font-size: 14px; }
  .space .art .glass, .space .art .faces, .space .art .ver { display: none; }
  .space .art .back { inset: 11px 4px 0; border-radius: 12px; }
  .space .art .back::before { top: -8px; height: 18px; border-radius: 9px 9px 0 0; }
  .space .art .front { border-radius: 12px; padding: 8px; }
  .space .art .sheet { border-radius: 6px; }
  .space .art.tags .mark { font-size: 36px; }
  .space .art.factory .zip { left: 12px; top: 8px; bottom: 8px; width: 7px; }
  .space .art.factory .zip::before { width: 12px; height: 16px; left: -2.5px; }
  .space h3 { margin: 0 0 2px; font-size: 18px; }
  .stats { gap: 10px; }
  .stat { padding: 16px; border-radius: 16px; }
  .stat .num { font-size: 24px; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table tr { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .table td { padding: 0; border: 0; }
  .table td.wide { grid-column: 1 / -1; }
  .table td:first-child { padding-left: 0; }
  .launch-head { flex-direction: column; text-align: center; }
  .margin { grid-template-columns: minmax(0, 1fr) 80px; }
  .margin .track { grid-column: 1 / -1; grid-row: 2; }
  .kv { grid-template-columns: 100px minmax(0, 1fr); }
}

/* ── Marketing ─────────────────────────────────────── */

.ads { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ad { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-align: left; }
.ad-pic { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; background: var(--side); color: var(--faint); overflow: hidden; }
.ad-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s, transform .5s var(--ease); }
.ad-pic.loaded img { opacity: 1; }
.ad:hover .ad-pic img { transform: scale(1.03); }
.ad-pic.failed::after { content: 'Image didn’t load'; font-size: 13px; color: var(--mute); }
.ad-n { position: absolute; z-index: 1; left: 10px; top: 10px; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 12.5px; font-weight: 600; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.ad-txt { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 16px; }
.ad-txt strong { font-weight: 500; line-height: 1.3; }
.ad-txt small { color: var(--mute); font-size: 13px; }
.ad-tbd { box-shadow: none; border: 1.5px dashed var(--line-2); background: transparent; }
.ad-tbd .ad-pic { background: transparent; }
.ad-tbd .ad-pic .i { width: 26px; height: 26px; }
.ad-full { position: relative; min-height: 240px; border-radius: 14px; overflow: hidden; background: var(--side); margin-bottom: 18px; }
.ad-full img { display: block; width: 100%; height: auto; }
.ad-full.failed::after { content: 'Image didn’t load'; display: grid; place-items: center; height: 240px; color: var(--mute); font-size: 14px; }
@media (max-width: 860px) {
  .ads { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ad-txt { padding: 10px 12px 12px; }
}

.ad-txt em { margin-top: 4px; font-style: normal; color: var(--ink-2); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ad[draggable="true"] { cursor: grab; }
.ad.dragging { opacity: .4; }
.ad.drop-before { box-shadow: -4px 0 0 var(--ink), var(--card-shadow); }
.ad.drop-after { box-shadow: 4px 0 0 var(--ink), var(--card-shadow); }
.ad-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.ad-form .field { margin: 0; }
.ad-form textarea { width: 100%; min-height: 120px; resize: vertical; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); font: inherit; font-size: 14.5px; line-height: 1.5; outline: 0; background: var(--panel); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.ad-form textarea:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(18, 18, 17, .06); }
.ad-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ad-move { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.danger { color: var(--red); }
.gone { padding: 6px 18px; }
.gone-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.gone-row:last-child { border: 0; }
