/* V.I.S.I.O.N. Studio portal styles. Dark cinematic theme, matches studio/index.html. */
:root {
  --bg: #0b0e0d;
  --panel: #141816;
  --line: #2a302c;
  --line-soft: #232825;
  --ink: #f2f0ea;
  --muted: #c9cdc9;
  --dim: #8a8f8a;
  --mint: #8fd49a;
  --mint-ink: #0b0e0d;
  --amber: #e8c25a;
  --red: #e07a6a;
  --radius: 10px;
}

* { box-sizing: border-box; }
body.studio-portal {
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
body.studio-portal h1, body.studio-portal h2, body.studio-portal h3,
body.studio-portal h4 {
  font-family: "Manrope", "DM Sans", sans-serif;
  color: #fff;
  margin: 0 0 .5rem;
}
body.studio-portal p { color: var(--muted); }
body.studio-portal a { color: var(--mint); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
.portal-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 0;
  position: sticky; top: 0; z-index: 50;
}
.portal-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.portal-logo { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.05rem; }
.portal-logo:hover { color: var(--ink); text-decoration: none; }
.portal-nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.portal-nav a {
  color: var(--muted); text-decoration: none;
  padding: 8px 12px; border-radius: 8px; font-size: .92rem;
}
.portal-nav a:hover { color: #fff; background: var(--panel); text-decoration: none; }
.portal-nav a.active { color: #fff; background: var(--panel); }
.portal-nav .signout { color: var(--dim); }

/* Blocks, panels, cards */
.block { padding: 40px 0; }
.kicker {
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .75rem; color: var(--mint); font-weight: 700; margin: 0 0 .5rem;
}
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
}
.panel.tint { border-color: #3a5a40; background: #101812; }
.lede { color: var(--muted); margin: .5rem 0; }
.mini { font-size: .85rem; color: var(--dim); }
.mt { margin-top: 1rem; }
.center { text-align: center; }

/* Stat cards */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr; } }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat .num { font-size: 2rem; font-weight: 800; color: #fff; margin: 0; }
.stat .lbl { font-size: .85rem; color: var(--dim); margin: .25rem 0 0; }

/* Notices */
.notice { border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; display: none; }
.notice.ok { display: block; background: #12241a; border: 1px solid #2e5b3c; color: var(--mint); }
.notice.err { display: block; background: #241412; border: 1px solid #5b2e2e; color: var(--red); }

/* Buttons */
.btn {
  display: inline-block; background: var(--mint); color: var(--mint-ink);
  border: 1px solid var(--mint); border-radius: 8px;
  padding: 12px 22px; font-weight: 700; cursor: pointer; text-decoration: none;
  box-shadow: 4px 4px 0 #232825; font-size: 1rem;
}
.btn:hover { color: var(--mint-ink); text-decoration: none; box-shadow: 6px 6px 0 #232825; }
.btn.small { padding: 8px 14px; font-size: .88rem; box-shadow: 3px 3px 0 #232825; }
.btn.ghost { background: transparent; color: var(--muted); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { color: #fff; border-color: var(--dim); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Forms */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; color: #fff; margin-bottom: 6px; font-size: .92rem; }
.field .hint { font-weight: 400; color: var(--dim); font-size: .82rem; }
.input, textarea.input, select.input {
  width: 100%; background: #0e1210; border: 1px solid var(--line);
  color: var(--ink); border-radius: 8px; padding: 11px 14px; font-size: 1rem;
}
.input:focus { outline: none; border-color: var(--mint); }
textarea.input { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .form-row { grid-template-columns: 1fr; } }

/* Status badges */
.status {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; border: 1px solid var(--line);
}
.status.queued { color: var(--amber); border-color: #5b4e2e; background: #221c10; }
.status.in_production { color: #7ab8e0; border-color: #2e4a5b; background: #101a22; }
.status.in_review { color: #c9a0e0; border-color: #4e2e5b; background: #1d1022; }
.status.delivered { color: var(--mint); border-color: #2e5b3c; background: #12241a; }
.status.none { color: var(--dim); }
.status.active { color: var(--mint); border-color: #2e5b3c; background: #12241a; }
.status.past_due { color: var(--red); border-color: #5b2e2e; background: #241412; }
.status.canceled { color: var(--dim); }

/* Kanban board */
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
@media (max-width: 980px) { .board { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .board { grid-template-columns: 1fr; } }
.column {
  background: #0e1210; border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 12px; min-height: 320px;
}
.column.drag-over { border-color: var(--mint); background: #101812; }
.column h3 { font-size: .95rem; margin: 0 0 4px; display: flex; align-items: center; justify-content: space-between; }
.column .count {
  font-size: .75rem; color: var(--dim); background: var(--panel);
  border-radius: 999px; padding: 2px 10px;
}
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 12px; margin-top: 10px; cursor: grab;
}
.card:active { cursor: grabbing; }
.card.dragging { opacity: .4; }
.card h4 { font-size: .92rem; margin: 0 0 4px; }
.card p { font-size: .82rem; color: var(--dim); margin: 0 0 8px; }
.card .meta { font-size: .75rem; color: var(--dim); margin-bottom: 8px; }
.card .card-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.card .card-actions button {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  border-radius: 6px; padding: 4px 10px; font-size: .75rem; cursor: pointer;
}
.card .card-actions button:hover { color: #fff; border-color: var(--dim); }
.rush-tag {
  display: inline-block; font-size: .7rem; font-weight: 700; color: var(--amber);
  border: 1px solid #5b4e2e; border-radius: 4px; padding: 1px 6px; margin-left: 6px;
}

/* Sign-in card */
.signin-card { max-width: 480px; margin: 0 auto; }

/* Footer */
.portal-footer {
  border-top: 1px solid var(--line-soft); padding: 28px 0; margin-top: 40px;
}
.portal-footer p, .portal-footer a { color: var(--dim); font-size: .85rem; }
