/* Réseau DE · Pins — the Short Viral studio look: near-black page, quiet panels, orange actions, one violet accent.
   Lamps keep one meaning each: red = failed, green = done, amber = in progress, violet = waiting for you, grey = idle. */
:root {
  color-scheme: dark;
  --console: #09090B; --console-2: #1E1F24; --panel: #121316; --panel-2: #1A1B20;
  --line: rgba(255, 255, 255, .09); --line-strong: rgba(255, 255, 255, .18);
  --action: #FF7A1A; --action-hover: #FF8F3D;
  --ink: #FAFAFA; --on-ink: #0A0A0B; --graphite: #A1A1AA; --faint: #85858F;
  --preview: #34D399; --preview-soft: rgba(52, 211, 153, .14);
  --cue: #FBBF24; --cue-soft: rgba(251, 191, 36, .12);
  --signal: #A78BFA; --signal-soft: rgba(167, 139, 250, .16);
  --crit: #F87171; --crit-soft: rgba(248, 113, 113, .14);
  --display: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --r: 12px; --r-lg: 20px;
  font-family: var(--display); font-size: 14px; line-height: 1.5; color: var(--ink);
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(1100px 460px at 62% -180px, rgba(124, 92, 255, .17), transparent 72%) no-repeat, var(--console); min-height: 100vh; }
a { color: var(--signal); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 6px; }
h1 { margin: 0; font: 600 30px/1.12 var(--display); letter-spacing: -.028em; overflow-wrap: anywhere; }
h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.012em; }
.muted { color: var(--graphite); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* shell */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 22px 14px; border-right: 1px solid var(--line); background: rgba(9, 9, 11, .6); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 0 8px; }
.brand.big { font-size: 18px; padding: 0; }
.brand .i { color: var(--action); }
.side-links { display: flex; flex-direction: column; gap: 2px; }
.side-links a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--graphite); text-decoration: none; font-weight: 500; }
.side-links a:hover { color: var(--ink); background: var(--panel-2); }
.side-links a[aria-current="page"] { color: var(--action); background: rgba(255, 122, 26, .12); }
.nav-badge { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--signal-soft); color: var(--signal); font: 600 11.5px/1.6 var(--mono); text-align: center; }
.side-out { margin-top: auto; align-self: flex-start; }
.main { padding: 30px clamp(16px, 3vw, 40px) 60px; display: flex; flex-direction: column; gap: 18px; max-width: 1400px; width: 100%; outline: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head p { margin: 6px 0 0; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* parts */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--ink); font: 500 13.5px var(--display); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--action); border-color: var(--action); color: var(--on-ink); font-weight: 600; }
.btn.primary:hover { background: var(--action-hover); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--graphite); }
.btn.ghost:hover { color: var(--ink); border-color: var(--line-strong); }
.btn.small { min-height: 30px; padding: 0 12px; font-size: 12.5px; }
.btn.danger { color: var(--crit); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.field { width: 100%; min-height: 38px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--console); color: var(--ink); font: 14px var(--display); }
textarea.field { resize: vertical; line-height: 1.45; }
select.field { width: auto; }
.label { display: block; font-size: 12px; color: var(--graphite); margin-bottom: 4px; font-weight: 500; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font: 500 12px/1.7 var(--display); background: var(--panel-2); color: var(--graphite); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--preview); background: var(--preview-soft); }
.pill.run { color: var(--cue); background: var(--cue-soft); }
.pill.wait { color: var(--signal); background: var(--signal-soft); }
.pill.bad { color: var(--crit); background: var(--crit-soft); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { min-height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--graphite); font: 500 12.5px var(--display); cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--action); color: var(--action); background: rgba(255, 122, 26, .1); }
.empty { padding: 40px 20px; text-align: center; color: var(--graphite); }
.err { color: var(--crit); white-space: pre-wrap; font: 12.5px var(--mono); margin: 0; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); max-width: min(560px, 92vw); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--on-ink); font-weight: 500; z-index: 50; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.stat b { display: block; font: 600 26px/1.1 var(--mono); letter-spacing: -.02em; }
.stat span { color: var(--graphite); font-size: 12.5px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font: 500 12px var(--display); color: var(--graphite); padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.tablebox { overflow-x: auto; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: min(380px, 100%); display: flex; flex-direction: column; gap: 12px; }

/* review */
.art { display: flex; flex-direction: column; gap: 14px; }
.art-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.art-head h2 a { color: var(--ink); text-decoration: none; }
.art-head h2 a:hover { color: var(--action); }
.pins { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: 14px; }
.pin { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel-2); }
.pin.approved { border-color: rgba(52, 211, 153, .4); }
.pin-visual { position: relative; width: 170px; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: #000; }
.pin-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mock { position: absolute; inset: auto 0 0 0; padding: 14px 10px 12px; text-align: center; background: linear-gradient(transparent, rgba(0, 0, 0, .85) 30%); }
.mock-kicker { font: 600 9px/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #FFD7B5; }
.mock-lines { font: 800 17px/1.05 var(--display); text-transform: uppercase; color: #fff; margin: 4px 0; overflow-wrap: anywhere; }
.mock-sub { font-size: 10.5px; color: #eee; }
.mock-note { position: absolute; top: 6px; left: 6px; font-size: 10px; padding: 1px 6px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #ddd; }
.pin-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pin-notes { font-size: 12px; color: var(--graphite); margin: 0; padding-left: 16px; }
.pin .count { font: 11px var(--mono); color: var(--faint); float: right; }

/* calendar */
.days { display: flex; flex-direction: column; gap: 14px; }
.day h2 { margin-bottom: 10px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.slot { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.slot img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; background: #000; }
.slot b { font: 600 12px var(--mono); }

/* sites */
.boards { margin: 6px 0 0; padding-left: 18px; color: var(--graphite); font-size: 12.5px; }
.inline-num { width: 70px; }

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; flex-direction: row; align-items: center; overflow-x: auto; padding: 10px 12px; gap: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand span { display: none; }
  .side-links { flex-direction: row; }
  .side-links a span:not(.nav-badge) { display: none; }
  .side-out { margin: 0 0 0 auto; }
  .pin { grid-template-columns: minmax(0, 1fr); }
  .pin-visual { width: 100%; max-width: 260px; margin: 0 auto; }
  .pin-grid { grid-template-columns: minmax(0, 1fr); }
}

/* workspace, sites, settings */
.ws { padding: 0 8px; display: flex; flex-direction: column; gap: 6px; }
.ws select { width: 100%; min-height: 34px; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.site { display: flex; flex-direction: column; gap: 14px; }
.site-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.site-box { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel-2); min-width: 0; }
.site-box details summary { cursor: pointer; }
.pin-box { display: flex; flex-direction: column; gap: 8px; }
.boards-pick { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow: auto; }
.boards-pick label { gap: 8px; }
.down { color: var(--crit); }
@media (max-width: 860px) { .ws { display: none; } }
