/* Skylift Command — on-brand dashboard (royal blue, Inter, clean surfaces) */
:root {
  --ink: #0a0e1a;
  --ink-2: #161a26;
  --ink-soft: #5a607a;
  --ink-faint: #a0a6b8;
  --hairline: #e6e8ee;
  --paper: #ffffff;
  --bone: #f5f4f0;
  --canvas: #f3f4f8;

  --blue: #3055ee;
  --blue-2: #1f3fc8;
  --blue-wash: #eef2fe;
  --sky: #d4e7fa;

  --t-blue: #3055ee;   --t-blue-w: #eef2fe;
  --t-amber: #e08600;  --t-amber-w: #fdf1dc;
  --t-violet: #7c5cff; --t-violet-w: #f0ecfe;
  --t-green: #16a34a;  --t-green-w: #e7f6ec;
  --t-red: #dc2626;

  --r: 10px;
  --r-card: 16px;
  --pill: 999px;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --serif: 'Playfair Display', Georgia, serif;
  --shadow: 0 1px 2px rgba(10,14,26,.05), 0 10px 28px -18px rgba(10,14,26,.18);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--body); color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; }
#root { height: 100%; }
button { font-family: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Login ──────────────────────────────────── */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 370px; background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 34px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; flex-shrink: 0; }
.brand .wm { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.brand .wm small { display: block; font-weight: 500; font-size: 11px; color: var(--ink-faint); font-family: var(--mono); letter-spacing: 1px; text-transform: uppercase; }
.login-card label { display: block; font-size: 13px; font-weight: 600; margin: 24px 0 7px; }
.login-card input { width: 100%; padding: 11px 13px; border: 1px solid var(--hairline); border-radius: var(--r); font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; }
.login-card input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.btn-primary { background: var(--blue); color: #fff; border: 0; border-radius: var(--r); padding: 11px 16px; font-weight: 600; font-size: 15px; transition: background .15s; }
.btn-primary:hover { background: var(--blue-2); }
.btn-primary:disabled { opacity: .55; cursor: default; }
.err { color: var(--t-red); font-size: 13px; margin-top: 12px; }

/* ── Shell ──────────────────────────────────── */
.shell { display: flex; height: 100vh; }
.side { width: 224px; flex-shrink: 0; background: var(--paper); border-right: 1px solid var(--hairline); display: flex; flex-direction: column; padding: 18px 14px; }
.side .brand { padding: 4px 8px 20px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border: 0; border-radius: var(--r); background: none; color: var(--ink-soft); font-size: 14px; font-weight: 500; text-align: left; width: 100%; transition: background .12s, color .12s; }
.nav-item:hover { background: var(--bone); color: var(--ink); }
.nav-item.on { background: var(--blue-wash); color: var(--blue-2); font-weight: 600; }
.nav-item .g { width: 18px; text-align: center; font-size: 16px; }
.nav-soon { margin-left: auto; font-size: 9px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .5px; color: var(--ink-faint); border: 1px solid var(--hairline); border-radius: var(--pill); padding: 1px 6px; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 8px 4px; border-top: 1px solid var(--hairline); }
.side-av { width: 32px; height: 32px; border-radius: 50%; background: var(--blue-wash); color: var(--blue-2); display: grid; place-items: center; font-weight: 600; font-size: 12px; }
.side-name { font-size: 13px; font-weight: 600; }
.side-role { font-size: 11px; color: var(--ink-faint); }
.side-foot button { margin-left: auto; background: none; border: 0; color: var(--ink-faint); font-size: 17px; }
.side-foot button:hover { color: var(--ink); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 26px; border-bottom: 1px solid var(--hairline); background: var(--paper); }
.crumb { font-size: 11px; font-family: var(--mono); letter-spacing: .6px; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 3px; display: flex; align-items: center; gap: 8px; }
.crumb button { background: none; border: 0; color: var(--blue); font: inherit; text-transform: none; letter-spacing: 0; padding: 0; }
.crumb button:hover { text-decoration: underline; }
.title { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.title small { font-weight: 500; color: var(--ink-faint); font-size: 14px; margin-left: 9px; }
.top-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.canvas { flex: 1; overflow: auto; padding: 24px 26px 48px; }
.btn { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r); padding: 8px 14px; font-weight: 600; font-size: 13px; color: var(--ink); }
.btn:hover { background: var(--bone); }
.btn.accent { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn.accent:hover { background: var(--blue-2); }

/* ── Board ──────────────────────────────────── */
.board { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; align-items: start; }
.col { background: var(--bone); border: 1px solid var(--hairline); border-radius: var(--r-card); display: flex; flex-direction: column; min-height: 380px; transition: background .12s, border-color .12s; }
.col.over { background: var(--blue-wash); border-color: var(--blue); }
.col-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; border-bottom: 1px solid var(--hairline); }
.col-head-l { display: flex; align-items: center; gap: 9px; }
.col-name { font-size: 12px; font-weight: 600; letter-spacing: .3px; }
.col-count { font-size: 11px; font-family: var(--mono); color: var(--ink-soft); background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--pill); min-width: 20px; text-align: center; padding: 0 6px; }
.col-body { display: flex; flex-direction: column; gap: 10px; padding: 12px; flex: 1; }
.col-empty { font-size: 12px; color: var(--ink-faint); text-align: center; padding: 22px 0; }
.drop-hint { border: 1.5px dashed var(--blue); border-radius: var(--r); color: var(--blue); font-size: 11px; font-weight: 600; text-align: center; padding: 16px 0; }

.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.tone-new .dot, .dot.new { background: var(--t-blue); }
.tone-onboarding .dot, .dot.onboarding { background: var(--t-amber); }
.tone-quality .dot, .dot.quality { background: var(--t-violet); }
.tone-live .dot, .dot.live { background: var(--t-green); }

.card { background: var(--paper); border: 1px solid var(--hairline); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 9px; cursor: grab; box-shadow: var(--shadow); transition: border-color .12s, transform .06s; }
.card:hover { border-color: var(--blue); }
.card:active { cursor: grabbing; }
.card.dragging { opacity: .4; }
.card-name { background: none; border: 0; padding: 0; text-align: left; font-size: 14px; font-weight: 600; color: var(--ink); }
.card-name:hover { color: var(--blue); }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-soft); }
.card-meta > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pkg { font-size: 10px; font-weight: 600; font-family: var(--mono); text-transform: uppercase; letter-spacing: .4px; color: var(--blue-2); background: var(--blue-wash); border-radius: var(--pill); padding: 2px 8px; flex-shrink: 0; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 9px; border-top: 1px solid var(--hairline); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); font-family: var(--mono); }
.prog { display: inline-flex; gap: 3px; }
.prog-tick { width: 7px; height: 12px; border: 1px solid var(--ink-faint); border-radius: 2px; }
.prog-tick.on { background: var(--blue); border-color: var(--blue); }

/* ── Contact detail ─────────────────────────── */
.detail { display: flex; flex-direction: column; gap: 16px; max-width: 1120px; }
.box { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 18px 20px; }
.box-label { font-size: 11px; font-family: var(--mono); letter-spacing: 1px; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 14px; }

.stagerail { display: flex; align-items: center; gap: 18px; background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 14px 18px; }
.stagerail-lbl { font-size: 10px; font-family: var(--mono); letter-spacing: 1px; color: var(--ink-faint); flex-shrink: 0; }
.stagerail-track { display: flex; align-items: center; flex: 1; }
.stagestep { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--ink-faint); font-size: 12px; font-weight: 500; padding: 4px 6px; border-radius: 7px; }
.stagestep:hover { background: var(--bone); color: var(--ink); }
.stagestep-dot { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--hairline); display: grid; place-items: center; font-size: 11px; font-family: var(--mono); flex-shrink: 0; }
.stagestep.done { color: var(--ink-soft); }
.stagestep.done .stagestep-dot { border-color: var(--t-green); color: var(--t-green); }
.stagestep.current { color: var(--ink); font-weight: 700; }
.stagestep.current .stagestep-dot { border-color: var(--blue); background: var(--blue); color: #fff; }
.stagestep-line { flex: 1; height: 1.5px; background: var(--hairline); min-width: 14px; }

.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.twocol-col { display: flex; flex-direction: column; gap: 16px; }
.info-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dotted var(--hairline); font-size: 13px; }
.info-row:last-child { border-bottom: 0; }
.info-k { color: var(--ink-faint); font-size: 11px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .4px; }
.info-v { font-weight: 500; text-align: right; }

.segs { display: flex; gap: 6px; margin-bottom: 14px; }
.seg { display: flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--hairline); border-radius: var(--pill); padding: 5px 11px; font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.seg.on { border-color: var(--blue); color: var(--blue-2); background: var(--blue-wash); }
.seg-n { font-size: 10px; font-family: var(--mono); background: var(--bone); border-radius: var(--pill); padding: 0 5px; }
.seg.on .seg-n { background: #fff; }
.note { border-left: 2px solid var(--hairline); padding-left: 12px; margin-bottom: 12px; }
.note:last-child { margin-bottom: 0; }
.note-text { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.note-meta { font-size: 11px; font-family: var(--mono); color: var(--ink-faint); margin-top: 3px; }
.notes-empty { font-size: 12px; color: var(--ink-faint); padding: 4px 0; }

.comm { display: flex; gap: 12px; }
.comm-ch { flex-shrink: 0; font-size: 10px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .8px; border: 1.5px solid var(--blue); color: var(--blue); border-radius: 7px; padding: 6px 9px; height: fit-content; }
.comm-ch.slack { border-color: var(--t-violet); color: var(--t-violet); }
.comm-ch.call { border-color: var(--t-green); color: var(--t-green); }
.comm-head { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
.comm-who { font-weight: 600; }
.comm-time { color: var(--ink-faint); font-family: var(--mono); font-size: 11px; }
.comm-snip { font-size: 13px; line-height: 1.5; color: var(--ink-2); font-style: italic; }
.ghl { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 9px 12px; border: 1px dashed var(--hairline); border-radius: var(--r); font-size: 11px; color: var(--ink-soft); }
.ghl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--t-amber); flex-shrink: 0; }

.prog-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.prog-pct { font-family: var(--serif); font-size: 36px; font-weight: 700; line-height: 1; }
.prog-sub { font-size: 11px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 1px; color: var(--ink-faint); margin-top: 4px; }
.prog-right { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.prog-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; color: var(--blue); font-size: 12px; font-weight: 600; margin-left: auto; }
.link-btn:hover { text-decoration: underline; }

.browser { border: 1px solid var(--hairline); border-radius: var(--r); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid var(--hairline); background: var(--bone); }
.traffic { display: flex; gap: 5px; }
.traffic i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-faint); display: block; }
.urlbar { flex: 1; display: flex; align-items: center; gap: 7px; background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--pill); padding: 3px 11px; font-family: var(--mono); font-size: 11px; color: var(--ink-soft); }
.urlbar .lock { color: var(--t-green); }
.browser-view { height: 210px; display: grid; place-items: center; gap: 8px; color: var(--ink-faint); background: repeating-linear-gradient(45deg, #fafbff 0 12px, #f4f6fc 12px 13px); }

/* ── Sub-tabs + content approval ────────────── */
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hairline); }
.subtab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 15px; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: -1px; }
.subtab:hover { color: var(--ink); }
.subtab.on { color: var(--blue-2); border-bottom-color: var(--blue); }

.sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 18px 0 14px; }
.kicker { font-size: 10px; font-family: var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; }
.sectitle { font-size: 17px; font-weight: 700; }
.tag { font-size: 11px; font-weight: 600; color: var(--ink-soft); background: var(--bone); border: 1px solid var(--hairline); border-radius: var(--pill); padding: 3px 10px; }
.citem { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 16px; margin-bottom: 12px; }
.citem.approved { background: var(--t-green-w); border-color: #bfe6c9; }
.citem-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.citem-title { font-size: 14px; font-weight: 600; }
.citem-ex { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.citem-actions { display: flex; gap: 8px; }
.btn-approve { border: 0; background: var(--t-green); color: #fff; border-radius: var(--r); padding: 8px 16px; font-size: 12px; font-weight: 600; }
.btn-approve:hover { filter: brightness(.94); }
.btn-edit { border: 1px solid var(--hairline); background: var(--paper); color: var(--ink); border-radius: var(--r); padding: 8px 16px; font-size: 12px; font-weight: 600; }
.btn-edit:hover { background: var(--bone); }
.citem-done { font-size: 12px; font-weight: 600; color: var(--t-green); white-space: nowrap; }

/* ── Content queue grouping ─────────────────── */
.cgroup { margin-bottom: 26px; }
.status-pill { font-size: 10px; font-weight: 600; font-family: var(--mono); text-transform: uppercase; letter-spacing: .5px; border-radius: var(--pill); padding: 3px 9px; }
.sp-review { background: var(--t-amber-w); color: var(--t-amber); }
.sp-approved { background: var(--t-green-w); color: var(--t-green); }
.sp-published { background: var(--blue-wash); color: var(--blue-2); }
.sp-planned { background: var(--bone); color: var(--ink-soft); }

/* ── Rankings ───────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 16px 18px; }
.stat-big { font-family: var(--serif); font-size: 32px; font-weight: 700; line-height: 1; }
.stat-big.green { color: var(--t-green); }
.stat-lbl { font-size: 13px; font-weight: 600; margin-top: 8px; }
.stat-sub { font-size: 11px; color: var(--ink-faint); margin-top: 2px; }
.rtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.rtable th { text-align: left; font-family: var(--mono); font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; padding: 9px 10px; border-bottom: 1px solid var(--hairline); }
.rtable td { padding: 12px 10px; border-bottom: 1px solid var(--hairline); }
.rtable tr:last-child td { border-bottom: 0; }
.rtable .num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); }
.move { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.move.up { color: var(--t-green); }
.move.down { color: var(--t-red); }
.move.flat { color: var(--ink-faint); font-weight: 400; }
.rsubtabs { display: flex; gap: 4px; margin-bottom: 16px; }

/* ── Modal ──────────────────────────────────── */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(10,14,26,.4); display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { background: var(--paper); border-radius: var(--r-card); width: 100%; max-width: 520px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 24px 64px rgba(0,0,0,.28); }
.modal-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 16px; border-bottom: 1px solid var(--hairline); }
.modal-title { font-size: 17px; font-weight: 700; }
.modal-sub { font-size: 12px; color: var(--ink-soft); margin-top: 3px; }
.modal-x { background: none; border: 0; font-size: 18px; color: var(--ink-faint); width: 30px; height: 30px; border-radius: 8px; }
.modal-x:hover { background: var(--bone); color: var(--ink); }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--hairline); }
.mform { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.mfield { display: flex; flex-direction: column; gap: 6px; }
.mfield.wide { grid-column: 1 / -1; }
.mfield label { font-size: 11px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .4px; color: var(--ink-faint); }
.mfield input, .mfield select { border: 1px solid var(--hairline); border-radius: var(--r); padding: 9px 11px; font: inherit; font-size: 14px; background: var(--paper); color: var(--ink); outline: none; }
.mfield input:focus, .mfield select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.edit-title { width: 100%; border: 0; outline: none; font: inherit; font-size: 17px; font-weight: 700; color: var(--ink); padding: 0; }
.edit-md { width: 100%; min-height: 360px; border: 1px solid var(--hairline); border-radius: var(--r); padding: 12px 14px; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--ink); resize: vertical; outline: none; }
.edit-md:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }

/* ── Stub + states ──────────────────────────── */
.stub { display: grid; place-items: center; gap: 10px; padding: 70px 0; color: var(--ink-faint); text-align: center; }
.stub .g { font-size: 30px; }
.loading { color: var(--ink-faint); padding: 40px 0; text-align: center; font-size: 14px; }
.notice { background: var(--t-amber-w); border: 1px solid #f5dca0; color: #8a5a08; border-radius: var(--r); padding: 14px 16px; font-size: 14px; }
