/* Iris Dashboard · Manifesto-derived design system */

:root {
  /* Editorial luxe palette — Olivia Pope office + Kim K monochrome + Sevyn entrepreneur */
  --charcoal: #1A1A2E;
  --charcoal-2: #232340;
  --champagne: #D4AF37;
  --gold: #D4AF37;
  --gold-soft: #E8C860;
  --brass: #B89466;
  --walnut: #6B4F3A;
  --warm-white: #FAF8F5;
  --cream: #F5F0E6;
  --cream-2: #EEE7D8;
  --nude: #E8DBC8;
  --taupe: #A89C8A;
  --rich-black: #0A0A0A;
  --teal: #2D6A6A;
  --blush: #E8D5D0;
  --burgundy: #722F37;
  /* Lavender/lilac — Kailin's accent color */
  --lavender: #C4B5FD;
  --lavender-soft: #E6E0F0;
  --lavender-deep: #9B7EBD;
  --lilac: #C8A2C8;
  --rule: rgba(0,0,0,0.08);
  --rule-light: rgba(0,0,0,0.04);
  --rule-gold: rgba(212,175,55,0.3);
  --rule-gold-soft: rgba(212,175,55,0.15);
  --success: #2E7D32;
  --warning: #E8A33D;
  --error: #C62828;
  --mute: rgba(10, 10, 10, 0.72);
  --mute-2: rgba(10, 10, 10, 0.48);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--warm-white);
  color: var(--rich-black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--charcoal);
}

a { color: inherit; text-decoration: none; }
a.link { color: var(--burgundy); border-bottom: 1px solid currentColor; padding-bottom: 1px; }
a.link:hover { color: var(--charcoal); }

code, .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.9em; }
em { font-style: italic; }

/* ============================ NAV ============================ */
.iris-nav {
  background: var(--charcoal);
  color: var(--warm-white);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--rule-gold);
}
.iris-nav .brand {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 800;
  font-size: 22px;
  background: linear-gradient(135deg, var(--lavender) 0%, var(--cream) 50%, var(--gold-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.iris-nav .links { display: flex; gap: 4px; flex-wrap: wrap; }
.iris-nav .links a {
  color: var(--warm-white);
  padding: 6px 14px;
  font-size: 15px;
  letter-spacing: 0.04em;
  border-radius: 4px;
  transition: all 0.15s ease;
  opacity: 0.78;
}
.iris-nav .links a:hover { opacity: 1; background: rgba(212,175,55,0.1); }
.iris-nav .links a.active { color: var(--gold); opacity: 1; background: rgba(212,175,55,0.08); border: 1px solid rgba(212,175,55,0.25); }
.iris-nav .links a.external { color: rgba(255,255,255,0.6); border-left: 1px solid rgba(255,255,255,0.15); margin-left: 8px; padding-left: 12px; }
.iris-nav .links a.external:hover { color: var(--gold); }
.iris-nav .meta { font-size: 12px; opacity: 0.65; letter-spacing: 0.1em; text-transform: uppercase; }

/* ============================ HERO · editorial luxury ============================ */
.hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--nude) 100%);
  color: var(--charcoal);
  padding: 34px 24px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(184,148,102,0.3);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(212,175,55,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 90%, rgba(196,181,253,0.18) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--brass) 50%, transparent 100%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; }
.hero .stamp {
  color: var(--brass);
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 36px;
  font-family: 'JetBrains Mono', monospace;
}

/* Daily quote · editorial cover treatment */
.hero .quote-mark {
  font-family: 'Fraunces', serif;
  font-size: clamp(80px, 10vw, 140px);
  color: var(--brass);
  line-height: 0.5;
  margin-bottom: 16px;
  opacity: 0.6;
}
.hero blockquote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(23px, 3.2vw, 36px);
  line-height: 1.2;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  margin: 0 auto 14px;
  max-width: 880px;
}
.hero blockquote .accent {
  background: linear-gradient(135deg, var(--lavender-deep) 0%, var(--brass) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero cite {
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--walnut);
  display: block;
  margin-bottom: 48px;
}
.hero cite::before { content: "— "; opacity: 0.55; }

/* Iris wordmark · quieter, beneath the quote */
.hero .wordmark {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--lavender-deep) 0%, var(--brass) 50%, var(--walnut) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.hero .wordmark::after { content: " ·"; color: var(--brass); -webkit-text-fill-color: var(--brass); }
.hero .wordmark-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--walnut);
  opacity: 0.72;
}
.hero .tagline { font-family: 'Fraunces', serif; font-style: italic; font-size: 16px; color: var(--walnut); margin: 10px auto 6px; font-weight: 400; max-width: 720px; }
.hero p.summary { font-size: 14px; color: var(--charcoal); opacity: 0.78; max-width: 680px; margin: 0 auto; line-height: 1.6; }

.hero .scope-stats {
  display: inline-flex;
  gap: 30px;
  margin-top: 18px;
  padding: 13px 26px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(184,148,102,0.35);
  border-radius: 2px;
  backdrop-filter: blur(2px);
}
.hero .scope-stats .stat { text-align: center; }
.hero .scope-stats .num { font-family: 'Fraunces', serif; font-size: 27px; font-weight: 800; color: var(--charcoal); display: block; line-height: 1; }
.hero .scope-stats .label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--walnut); opacity: 0.85; margin-top: 6px; font-family: 'JetBrains Mono', monospace; }

/* ============================ SECTIONS ============================ */
section { max-width: 1200px; margin: 0 auto; padding: 26px 22px; }
section.dark { background: var(--charcoal); color: var(--warm-white); max-width: none; }
section.dark .inner { max-width: 1200px; margin: 0 auto; }
section.dark h2, section.dark h3 { color: var(--warm-white); }
section.blush { background: linear-gradient(180deg, var(--warm-white) 0%, #f5ebe7 100%); max-width: none; }
section.blush .inner { max-width: 1200px; margin: 0 auto; }
section.lavender {
  background: linear-gradient(180deg, var(--lavender-soft) 0%, #d8cef2 100%);
  max-width: none;
  position: relative;
}
section.lavender::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--lavender) 0%, var(--lavender-deep) 50%, var(--lavender) 100%);
}
section.lavender .inner { max-width: 1200px; margin: 0 auto; }
section.lavender .eyebrow { color: var(--lavender-deep); }
section.lavender h2 { color: var(--charcoal); }
section.lavender .card { border-left: 3px solid var(--lavender-deep); background: rgba(255,255,255,0.6); }

.eyebrow { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 12px; }
.eyebrow.burg { color: var(--burgundy); }

section h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 12px; }
section .lede { font-size: 17px; opacity: 0.78; max-width: 760px; margin-bottom: 32px; line-height: 1.6; }

/* ============================ MORNING BRIEF (manifesto-faithful) ============================ */
.brief {
  background: var(--cream);
  padding: 32px 36px;
  border: 1px solid var(--rule-gold);
  border-radius: 4px;
  max-width: 760px;
  margin: 0 auto;
}
.brief .meta { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.15em; color: var(--mute); text-transform: uppercase; margin-bottom: 8px; }
.brief h3 { font-family: 'Fraunces', serif; font-size: 22px; margin-bottom: 6px; }
.brief h3 + .sub { color: var(--burgundy); font-style: italic; font-size: 14px; margin-bottom: 18px; }
.brief table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 10px 0; }
.brief table td { padding: 7px 10px; border-bottom: 1px solid rgba(26,26,46,0.08); }
.brief table td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.brief table tr.total td { border-top: 2px solid var(--charcoal); font-weight: 700; }
.brief .cta {
  display: inline-block;
  background: var(--gold);
  color: var(--charcoal);
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  margin-top: 14px;
  border: none;
  cursor: pointer;
}
.brief .cta:hover { background: var(--gold-soft); }
.brief .priority {
  background: linear-gradient(135deg, #ffffff 0%, var(--lavender-soft) 100%);
  padding: 18px 22px;
  border-left: 4px solid var(--lavender-deep);
  margin: 18px 0;
  border-radius: 0 4px 4px 0;
}
.brief .priority .label { font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--lavender-deep); margin-bottom: 6px; }
.brief .priority .text { font-family: 'Fraunces', serif; font-size: 22px; line-height: 1.25; color: var(--charcoal); }
.brief .priority .reason { font-size: 13px; opacity: 0.7; margin-top: 6px; }

/* ============================ THREE-UP STRIP ============================ */
.three-up { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin-top: 32px; }
.three-up .card {
  background: white;
  padding: 22px;
  border-radius: 4px;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
}
.three-up .card h4 { font-family: 'Fraunces', serif; font-size: 16px; margin-bottom: 8px; }
.three-up .card .num { font-family: 'Fraunces', serif; font-size: 36px; color: var(--charcoal); font-weight: 800; line-height: 1; margin-bottom: 4px; }
.three-up .card .label { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.65; }
.three-up .card a { color: var(--burgundy); font-size: 12px; }

/* ============================ CARDS ============================ */
.card {
  background: white;
  padding: 16px 20px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin-bottom: 12px;
}
.card.gold-l { border-left: 4px solid var(--gold); }
.card.burg-l { border-left: 4px solid var(--burgundy); }
.card.teal-l { border-left: 4px solid var(--teal); }

/* ============================ TABLES ============================ */
table.data { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; background: white; }
table.data th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; padding: 8px 10px; background: var(--cream); border-bottom: 2px solid var(--gold); color: var(--mute); }
table.data td { padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.data tr:hover { background: var(--cream-2); }

/* ============================ BUTTONS / FORMS ============================ */
button, .btn {
  background: var(--charcoal);
  color: var(--warm-white);
  padding: 8px 16px;
  border: none;
  border-radius: 3px;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.05em;
  cursor: pointer;
}
button.gold, .btn.gold { background: var(--gold); color: var(--charcoal); font-weight: 600; }
button:hover { opacity: 0.85; }
button.snooze { background: transparent; color: var(--mute); border: 1px solid var(--rule); }

input, select, textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: white;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold-soft); outline-offset: 1px; }

/* ============================ PILLS ============================ */
.pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 6px;
}
.pill-p0 { background: #fde0db; color: var(--error); }
.pill-p1 { background: #fff4d6; color: var(--warning); }
.pill-p2 { background: #eee; color: var(--mute); }

.pill-business { background: var(--mute-2); color: white; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-right: 6px; display: inline-block; }
.pill-business.back-in-time { background: #B5651D; color:#fff; }
.pill-business.loyal-collection { background: #5B3E96; color:#fff; }
.pill-business.plated { background: var(--rich-black); }
.pill-business.district { background: var(--charcoal); }
.pill-business.sixstar, .pill-business.sixstarstaffing { background: var(--burgundy); }
.pill-business.otg, .pill-business.otgstaffing { background: var(--burgundy); }
.pill-business.pozd { background: var(--teal); }
.pill-business.mobile_laundry { background: var(--teal); }
.pill-business.kgm, .pill-business.brandforge, .pill-business.commerceforge, .pill-business.nativeforge { background: var(--gold); color: var(--charcoal); }
.pill-business.izm { background: var(--warning); color: var(--charcoal); }
.pill-business.personal { background: var(--burgundy); }
.pill-business.finance { background: var(--success); }
.pill-business.other { background: var(--mute-2); }

/* ============================ EMPTY STATES ============================ */
.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--mute-2);
  font-style: italic;
  font-size: 14px;
}

/* ============================ FOOTER ============================ */
.iris-footer {
  background: var(--charcoal);
  color: var(--warm-white);
  text-align: center;
  padding: 24px;
  font-size: 12px;
  opacity: 0.6;
  letter-spacing: 0.08em;
  margin-top: 60px;
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 800px) {
  section { padding: 32px 20px; }
  .hero { padding: 26px 16px 26px; }
  .three-up { grid-template-columns: 1fr; }
  .iris-nav { flex-wrap: wrap; padding: 12px 18px; gap: 12px; }
  .hero .scope-stats { gap: 24px; padding: 16px 22px; flex-wrap: wrap; }
}

/* ============================ GATE ============================ */
.gate-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  padding: 40px 20px;
}
.gate-card {
  background: var(--cream);
  padding: 50px 50px 40px;
  border-radius: 6px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  border: 1px solid var(--rule-gold);
}
.gate-card .stamp { color: var(--gold); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 20px; }
.gate-card h1 { font-family: 'Fraunces', serif; font-style: italic; font-size: 60px; line-height: 1; margin-bottom: 8px; background: linear-gradient(135deg, var(--charcoal) 30%, var(--gold) 70%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.gate-card .tag { font-family: 'Fraunces', serif; font-style: italic; font-size: 16px; color: var(--burgundy); margin-bottom: 30px; }
.gate-card input { width: 100%; padding: 14px 16px; font-size: 16px; margin-bottom: 14px; text-align: center; letter-spacing: 0.1em; }
.gate-card button { width: 100%; padding: 14px; font-size: 14px; }
.gate-card .err { color: var(--error); font-size: 12px; margin-top: 12px; min-height: 18px; }

/* ── Unified task list · Sergio UX redesign 2026-07-23 (contrast + hierarchy) ── */
.task-row { display:flex; gap:12px; align-items:flex-start; padding:13px 16px; margin-bottom:8px; font-size:15px; border-left:3px solid var(--rule); }
.task-row.b-staffing   { border-left-color:var(--burgundy); }
.task-row.b-personal   { border-left-color:var(--walnut); }
.task-row.b-collective { border-left-color:var(--teal); }
.task-row.b-pozu       { border-left-color:var(--lavender-deep); }
.task-row.b-juicyworks { border-left-color:#4A7C59; }
.task-row.b-plated     { border-left-color:var(--rich-black); }
.task-row.b-backburner { border-left-color:var(--taupe); }
.task-line1 { display:flex; justify-content:space-between; gap:10px; align-items:baseline; }
.task-title { font-weight:600; color:var(--rich-black); line-height:1.4; }
.task-meta { margin-top:5px; }
.task-detail { font-size:14px; color:var(--mute); line-height:1.5; margin-top:6px; }
.task-flags { display:inline-flex; gap:6px; flex:none; }
.task-flag { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; padding:2px 8px; border-radius:10px; margin:0; }
.task-flag.money   { background:#FBEFCB; color:#8A6D1B; }
.task-flag.waiting { background:var(--blush); color:var(--burgundy); }
.task-check { width:22px; height:22px; border:2px solid var(--brass); border-radius:50%; background:#fff; color:transparent; font-size:0; cursor:pointer; flex:none; display:inline-flex; align-items:center; justify-content:center; transition:all .15s; user-select:none; }
.task-check:hover { border-color:var(--gold); background:var(--gold-soft); }
.task-check.done { border-color:var(--success); color:var(--success); font-size:14px; }
/* dot-gate kept for any other surface, no longer used in the task row */
.dot-gate { display:inline-block; width:7px; height:7px; border-radius:50%; margin:0 5px; vertical-align:middle; }
.dot-gate.g-red { background:#C0392B; } .dot-gate.g-amber, .dot-gate.g-yellow { background:var(--gold); }
.dot-gate.g-green { background:#2E7D32; } .dot-gate.g-none { background:var(--taupe); }
/* Solid, distinct, high-contrast business pills (2026-07-23 — Six Star/OTG must not match Personal) */
.pill-business.staffing   { background: var(--burgundy); color:#fff; }        /* Six Star / OTG */
.pill-business.personal   { background: var(--walnut); color:#fff; }          /* Personal — distinct brown */
.pill-business.collective { background: var(--teal); color:#fff; }            /* Plated Collective */
.pill-business.pozu       { background: var(--lavender-deep); color:#fff; }   /* Pozd */
.pill-business.juicyworks { background: #4A7C59; color:#fff; }                /* JuicyWorks — green */
.pill-business.backburner { background: var(--taupe); color:#fff; }

/* ── Mobile: wide tables scroll, entry forms stack (2026-07-23 board-review fix) ── */
@media (max-width: 800px) {
  /* Any data table gets a horizontal scroll instead of overflowing the viewport */
  [id$="-list"], [id$="-stack"], #streams-list, #oblig-list, #snap-list, #summary { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.data { min-width: 560px; }
  /* Grid entry forms (Hiring / CFO / Clients / intake) collapse to one column */
  form[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  form[style*="grid-template-columns"] > button { width: 100%; }
  .cfo-sum { flex-direction: column; }
  .hero { padding: 40px 20px 28px !important; }
  section { padding: 20px 16px; }
}
