/* Rebellion Art House — portal + landing
   Brand: warm paper, near-black ink, one oxblood accent.
   Calm and still by default; motion only signals state. */

:root {
  --ink:       #16130f;
  --ink-soft:  #4b443a;
  --ink-faint: #8b8477;
  --paper:     #f4f1e9;
  --panel:     #ffffff;
  --panel-2:   #fbf9f3;
  --line:      #e4ded1;
  --accent:    #9d2919;   /* oxblood — the one lit thing / primary action */
  --accent-ink:#ffffff;
  --doing:     #9a6b12;   /* muted amber */
  --done:      #3f6b3a;   /* muted green */
  --letgo:     #8b8477;   /* grey */
  --radius:    14px;
  --shadow:    0 1px 2px rgba(22,19,15,.05), 0 8px 24px rgba(22,19,15,.06);
  --display:   "Oswald", "Arial Narrow", sans-serif;
  --body:      "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---------------- Landing ---------------- */
.landing {
  min-height: 100vh;
  background: #0d0b09;
  color: #f4f1e9;
  display: grid;
  place-items: center;
  padding: 40px 24px;
}
.landing-inner { max-width: 560px; text-align: center; }
.landing img.mark { width: 190px; height: auto; margin: 0 auto 30px; display: block; }
.landing .eyebrow {
  font-family: var(--display);
  letter-spacing: .38em;
  text-transform: uppercase;
  font-size: 12px;
  color: #b9b1a1;
  margin: 0 0 18px;
}
.landing h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.15;
  letter-spacing: .02em;
  margin: 0 0 14px;
}
.landing p.lede {
  font-size: 17px;
  line-height: 1.6;
  color: #cfc8ba;
  margin: 0 auto 34px;
  max-width: 440px;
}
.enter {
  display: inline-block;
  font-family: var(--display);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  color: #0d0b09;
  background: #f4f1e9;
  padding: 16px 34px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.enter:hover { background: #fff; transform: translateY(-1px); }
.landing .foot {
  margin-top: 46px;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: #8a8273;
  line-height: 1.9;
}
.landing .foot a { color: #b9b1a1; text-decoration: none; }

/* ---------------- Portal shell ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: #0d0b09;
  color: #f4f1e9;
}
.topbar .brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar .brand img { width: 30px; height: 30px; }
.topbar .brand .txt { font-size: 13px; letter-spacing: .2em; }
.topbar .brand .sep { color: #6c6558; margin: 0 2px; }
.topbar .brand .where { color: #b9b1a1; }
.who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #cfc8ba; }
.who .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: #9d2919; color: #fff;
  font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .02em;
}
.who .signout { color: #8a8273; text-decoration: none; font-size: 12px; letter-spacing: .04em; }
.who .signout:hover { color: #cfc8ba; }

.dev-note {
  background: #2a2016; color: #e8c9a0;
  font-size: 12px; text-align: center; padding: 7px 14px; letter-spacing: .03em;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 22px 80px;
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  gap: 26px;
  align-items: start;
}
@media (max-width: 860px) {
  .wrap { grid-template-columns: 1fr; gap: 20px; padding: 22px 16px 64px; }
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 24px;
}
.eyebrow {
  font-family: var(--display);
  letter-spacing: .26em;
  text-transform: uppercase;
  font-size: 11.5px;
  color: var(--ink-faint);
  margin: 0 0 8px;
}
.card h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: .01em;
  margin: 0 0 6px;
}
.card .sub { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin: 0 0 16px; }

/* Capture */
textarea#dump {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 16px;
}
textarea#dump:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.actions { margin-top: 14px; }

.btn {
  font-family: var(--display);
  letter-spacing: .12em; text-transform: uppercase;
  font-size: 13px; font-weight: 600;
  padding: 12px 20px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  cursor: pointer; transition: background .15s ease, color .15s ease, transform .1s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #82200f; border-color: #82200f; }
.btn.small { font-size: 11.5px; padding: 8px 14px; }
.btn.ghost { border-color: var(--line); color: var(--ink-soft); }
.btn.ghost:hover { background: var(--panel-2); color: var(--ink); }
.btn:disabled { opacity: .5; cursor: default; }
.btn:disabled:hover { background: transparent; color: var(--ink); }

.savestate {
  font-size: 12.5px; color: var(--ink-faint);
  min-height: 18px; margin-top: 12px; letter-spacing: .02em;
  display: flex; align-items: center; gap: 7px;
}
.savestate .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--done); }
.savestate.saving .dot { background: var(--doing); animation: pulse 1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .savestate.saving .dot { animation: none; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* Structured results */
.result { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.result .eyebrow { margin-bottom: 10px; }
.result ul.bullets { margin: 0 0 18px; padding: 0 0 0 2px; list-style: none; }
.result ul.bullets li {
  position: relative; padding: 6px 0 6px 20px; font-size: 16px; line-height: 1.5; color: var(--ink);
  border-bottom: 1px dashed var(--line);
}
.result ul.bullets li::before {
  content: ""; position: absolute; left: 2px; top: 13px;
  width: 6px; height: 6px; background: var(--ink); border-radius: 50%;
}
.picklist { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.pick {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-2);
}
.pick input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); }
.pick label { font-size: 15.5px; line-height: 1.45; cursor: pointer; }

/* The list */
.quickadd { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.quickadd input.title {
  flex: 1 1 200px; min-width: 0;
  font-family: var(--body); font-size: 16px; color: var(--ink);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px;
}
.quickadd input.title:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
select, input[type="date"] {
  font-family: var(--body); font-size: 14px; color: var(--ink);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px;
}

.progress { font-size: 13px; color: var(--ink-soft); margin: 0 0 14px; letter-spacing: .02em; }

.group { margin-bottom: 20px; }
.group h3 {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .18em; font-size: 12px; color: var(--ink-faint);
  margin: 0 0 9px; display: flex; align-items: center; gap: 8px;
}
.group h3 .count { color: var(--ink-faint); font-weight: 400; }

.task {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 6px; border-bottom: 1px solid var(--line);
}
.task:last-child { border-bottom: none; }
.task .check {
  flex: 0 0 auto; margin-top: 1px;
  width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--ink-faint);
  background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0;
}
.task .check:hover { border-color: var(--ink); }
.task.done .check { background: var(--done); border-color: var(--done); }
.task.done .check::after { content: "✓"; color: #fff; font-size: 14px; line-height: 1; }
.task.doing .check { border-color: var(--doing); }
.task .body { flex: 1 1 auto; min-width: 0; }
.task .ttl { font-size: 16px; line-height: 1.4; color: var(--ink); word-wrap: break-word; }
.task.done .ttl { color: var(--ink-faint); text-decoration: line-through; text-decoration-thickness: 1px; }
.task.letgo { opacity: .55; }
.task.letgo .ttl { text-decoration: line-through; color: var(--ink-faint); }
.task .meta { display: flex; align-items: center; gap: 10px; margin-top: 5px; flex-wrap: wrap; }
.chip {
  font-size: 11.5px; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 5px;
}
.chip .ini { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-family: var(--display); font-size: 9.5px; }
.due { font-size: 12px; color: var(--ink-faint); }
.due.past { color: var(--doing); }   /* soft amber, never red */
.rowacts { display: flex; gap: 4px; align-items: center; }
.linkbtn {
  background: none; border: none; cursor: pointer; font-family: var(--body);
  font-size: 12px; color: var(--ink-faint); padding: 4px 6px; border-radius: 6px; letter-spacing: .02em;
}
.linkbtn:hover { color: var(--ink); background: var(--panel-2); }
.statusbtn {
  font-family: var(--body); font-size: 12px; color: var(--ink-soft);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; cursor: pointer;
}
.statusbtn:hover { border-color: var(--ink-faint); }

.empty { color: var(--ink-faint); font-size: 14px; padding: 8px 0 4px; font-style: italic; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 999px;
  font-size: 13px; letter-spacing: .03em; box-shadow: var(--shadow); z-index: 50;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.toast.show { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* ============ App shell (sidebar + main) ============ */
.app { display: grid; grid-template-columns: 252px minmax(0,1fr); min-height: 100vh; }
.side {
  background: #0d0b09; color: #cfc8ba;
  display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; align-self: start; height: 100vh;
  padding: 22px 16px; border-right: 1px solid #221d17;
}
.side-brand { padding: 4px 8px 18px; }
.side-brand img { width: 128px; height: auto; display: block; }
.nav { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; overflow-y: auto; }
.nav-label {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .22em;
  font-size: 10.5px; color: #6c6558; margin: 18px 8px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  color: #cfc8ba; font-family: var(--body); font-size: 14.5px;
  padding: 10px 12px; border-radius: 9px; transition: background .12s ease, color .12s ease;
}
.nav-item:hover { background: #1a1510; color: #f4f1e9; }
.nav-item.active { background: #26201a; color: #fff; }
.nav-item.proj { font-size: 14px; }
.nav-item.add { color: #8a8273; font-size: 13.5px; margin-top: 4px; }
.nav-ico { width: 18px; text-align: center; opacity: .8; font-size: 15px; }
.swatch { width: 11px; height: 11px; border-radius: 3px; display: inline-block; flex: 0 0 auto; }
.swatch.big { width: 34px; height: 34px; border-radius: 8px; }
.side-foot { border-top: 1px solid #221d17; padding-top: 14px; margin-top: 8px; }
.side-foot .who { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.side-foot .who-name { font-size: 14px; color: #f4f1e9; }
.side-foot .signout { font-size: 12px; color: #8a8273; text-decoration: none; letter-spacing: .04em; }
.side-foot .signout:hover { color: #cfc8ba; }

.main { padding: 34px 38px 96px; max-width: 1080px; }

.page-head { margin-bottom: 24px; }
.page-head .eyebrow { display: flex; align-items: center; gap: 8px; }
.page-head h1 {
  font-family: var(--display); font-weight: 600; font-size: 34px;
  letter-spacing: .01em; margin: 4px 0 6px;
}
.page-sub { font-size: 15px; color: var(--ink-soft); max-width: 640px; line-height: 1.55; margin: 0; }

.cols { display: grid; grid-template-columns: minmax(0,42%) minmax(0,58%); gap: 24px; align-items: start; }

/* Team: project progress cards */
.prog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 14px; margin-bottom: 24px; }
.prog-card {
  display: flex; align-items: center; gap: 13px; text-align: left; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); transition: transform .12s ease, border-color .12s ease;
}
.prog-card:hover { transform: translateY(-1px); border-color: var(--ink-faint); }
.pc-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.pc-name { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .01em; }
.pc-meta { font-size: 12.5px; color: var(--ink-faint); }
.bar { display: block; height: 6px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 99px; }
.bar.wide { width: 260px; max-width: 60vw; }
.proj-progress { display: flex; align-items: center; gap: 12px; margin-top: 8px; }

/* Team: person sections */
.card.person { padding: 16px 18px; margin-bottom: 14px; }
.person-h { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: 13px; color: var(--ink); margin: 0 0 8px; display: flex; gap: 8px; align-items: baseline; }
.person-h.muted { color: var(--ink-faint); }
.person-h .count { color: var(--ink-faint); font-weight: 400; font-size: 12px; }

/* Project board */
.board { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; align-items: start; }
.col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 14px 16px; }
.col-h { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--ink-faint); margin: 0 0 10px; }
.col-h .count { margin-left: 4px; }
.letgo-card { margin-top: 16px; }

.dest { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.dest label { font-size: 12.5px; color: var(--ink-faint); letter-spacing: .06em; text-transform: uppercase; font-family: var(--display); }
.src-note { font-size: 12.5px; color: var(--ink-faint); margin: 0 0 12px; font-style: italic; }

.chip.proj-chip .swatch { margin-right: 1px; }

/* Responsive */
@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .side {
    position: static; height: auto; flex-direction: row; align-items: center; gap: 4px;
    overflow-x: auto; padding: 10px 12px; border-right: none; border-bottom: 1px solid #221d17;
  }
  .side-brand { padding: 0 10px 0 2px; }
  .side-brand img { width: 92px; }
  .nav { flex-direction: row; align-items: center; gap: 2px; overflow-x: auto; }
  .nav-label { display: none; }
  .nav-item { white-space: nowrap; padding: 8px 12px; }
  .nav-item .nav-ico { display: none; }
  .side-foot { display: none; }
  .main { padding: 22px 16px 80px; }
  .page-head h1 { font-size: 27px; }
}

/* ============ share / modal / project actions ============ */
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-head h2 { margin-top: 2px; }

.sharebar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px;
  padding: 10px 12px; margin: 4px 0 14px;
}
.sharebar .to { color: var(--ink-faint); font-size: 13px; }
.hint { font-size: 12.5px; color: var(--ink-faint); margin: -8px 0 12px; font-style: italic; }
.selbox { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--accent); flex: 0 0 auto; }

.proj-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.proj-actions .adot { color: var(--ink-faint); }
.proj-actions .linkbtn { font-size: 13px; }

.prog-card.static { cursor: default; }
.prog-card.static:hover { transform: none; border-color: var(--line); }

/* Modal */
.modal-bg {
  position: fixed; inset: 0; background: rgba(13,11,9,.55);
  display: grid; place-items: center; z-index: 60; padding: 20px;
}
.modal {
  background: var(--panel); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.3);
  width: 100%; max-width: 430px; padding: 26px 26px 22px;
}
.modal h3 { font-family: var(--display); font-weight: 600; font-size: 22px; margin: 0 0 16px; letter-spacing: .01em; }
.modal .ml { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-faint); font-family: var(--display); margin: 12px 0 6px; }
.modal .minput { width: 100%; font-family: var(--body); font-size: 15px; color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.modal .minput:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.modal-hint { font-size: 12.5px; color: var(--ink-faint); line-height: 1.5; margin: 12px 0 0; }
.mrow { margin-top: 18px; }

/* ============ registers (Overseer) ============ */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table.reg { width: 100%; border-collapse: collapse; font-size: 14px; }
table.reg th {
  text-align: left; font-family: var(--display); text-transform: uppercase; letter-spacing: .1em;
  font-size: 10.5px; color: var(--ink-faint); padding: 11px 13px; background: var(--panel-2);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.reg td { padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink); }
table.reg tr:last-child td { border-bottom: none; }
table.reg tr:hover td { background: var(--panel-2); }
table.reg a { color: var(--accent); text-decoration: none; }
table.reg a:hover { text-decoration: underline; }
.muted { color: var(--ink-faint); }
.tdact { white-space: nowrap; text-align: right; }
.reg-total { text-align: right; font-family: var(--display); font-size: 15px; margin: 12px 4px 0; letter-spacing: .02em; }
.tdlogo { width: 40px; }
.favi {
  display: inline-grid; place-items: center; position: relative;
  width: 28px; height: 28px; border-radius: 7px; overflow: hidden;
  background: var(--ink); color: #fff; font-family: var(--display); font-size: 13px; font-weight: 600;
}
.favi img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }

/* ============ org chart ============ */
.orgtree { overflow-x: auto; padding: 8px 4px 4px; }
.orgtree ul { position: relative; padding-top: 22px; display: flex; gap: 18px; margin: 0; list-style: none; justify-content: flex-start; }
.orgtree > ul { padding-top: 4px; }
.orgtree li { position: relative; padding: 22px 10px 0; text-align: center; }
/* connector lines */
.orgtree li::before, .orgtree li::after {
  content: ""; position: absolute; top: 0; right: 50%; width: 50%; height: 22px;
  border-top: 1.5px solid var(--line);
}
.orgtree li::after { right: auto; left: 50%; border-left: 1.5px solid var(--line); }
.orgtree li:only-child::before, .orgtree li:only-child::after { display: none; }
.orgtree li:first-child::before, .orgtree li:last-child::after { border: 0; }
.orgtree li:last-child::before { border-right: 1.5px solid var(--line); border-radius: 0 6px 0 0; }
.orgtree li:first-child::after { border-radius: 6px 0 0 0; }
.orgtree ul ul::before {
  content: ""; position: absolute; top: 0; left: 50%; height: 22px; border-left: 1.5px solid var(--line);
}
.orgcard {
  display: inline-block; min-width: 150px; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 11px; padding: 11px 14px; text-align: left; box-shadow: var(--shadow);
}
.org-name { font-family: var(--display); font-weight: 600; font-size: 15px; }
.org-role { font-size: 12.5px; color: var(--ink-soft); margin-top: 1px; }
.org-email { font-size: 11.5px; color: var(--ink-faint); margin-top: 2px; word-break: break-all; }
.org-acts { margin-top: 7px; display: flex; gap: 4px; }

/* ============ capture pick rows ============ */
.pick-main { flex: 1; min-width: 0; }
.pick-ttl { display: block; font-size: 15.5px; line-height: 1.4; cursor: pointer; }
.pick-ctrls { display: flex; gap: 7px; margin-top: 8px; flex-wrap: wrap; }
.pick-ctrls select, .pick-ctrls input { font-size: 12.5px; padding: 6px 8px; }
.pick-ctrls .pk-when { max-width: 190px; }
.chip.prio-high { background: #f6d8d5; border-color: #e6b3ad; color: #8a1f17; }
.chip.prio-low { color: var(--ink-faint); }

/* ============ reg tools ============ */
.reg-tools { display: flex; align-items: center; gap: 8px; }
.reg-tools .linkbtn { font-size: 12px; }

/* status pills (pipeline) */
.spill { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink-soft); }
.spill.s-new { background: #eef2f5; color: #3b5566; border-color: #cfdae2; }
.spill.s-exploring { background: #fdf3df; color: #9a6b12; border-color: #ecd9a8; }
.spill.s-parked { background: var(--panel-2); color: var(--ink-faint); }
.spill.s-promoted { background: #e7f0e6; color: #3f6b3a; border-color: #c2d8bf; }
.spill.s-dropped { background: #f3eceb; color: #8b8477; text-decoration: line-through; }

/* ============ notepad ============ */
.play-wrap { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 16px; margin-top: 14px; align-items: start; }
.note-list { display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow-y: auto; }
.note-item { text-align: left; background: none; border: 1px solid transparent; border-radius: 9px; padding: 9px 11px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.note-item:hover { background: var(--panel-2); }
.note-item.active { background: var(--panel-2); border-color: var(--line); }
.ni-title { font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ni-date { font-size: 11px; color: var(--ink-faint); }
.note-editor { min-height: 340px; display: flex; flex-direction: column; }
.note-title { font-family: var(--display); font-size: 20px; font-weight: 600; border: none; border-bottom: 1px solid var(--line); padding: 6px 2px; background: transparent; color: var(--ink); }
.note-title:focus { outline: none; border-bottom-color: var(--accent); }
.note-body { flex: 1; min-height: 300px; margin-top: 10px; border: none; resize: vertical; font-family: var(--body); font-size: 18px; line-height: 1.6; color: var(--ink); background: transparent; }
.note-body:focus { outline: none; }
.note-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
.note-empty { color: var(--ink-faint); text-align: center; padding: 40px 0; }
@media (max-width: 760px) { .play-wrap { grid-template-columns: 1fr; } .note-list { flex-direction: row; overflow-x: auto; } .note-item { min-width: 140px; } }

/* ============ updates ============ */
.up-box { width: 100%; min-height: 90px; resize: vertical; font-family: var(--body); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; padding: 13px 14px; margin-bottom: 12px; }
.up-box:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.up-actions { gap: 10px; }
.update { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 12px; }
.up-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.up-who { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; }
.up-meta { font-size: 12px; color: var(--ink-faint); margin-left: auto; }
.up-vis { padding: 2px 8px; border-radius: 999px; font-size: 11px; }
.up-vis.team { background: #e7f0e6; color: #3f6b3a; }
.up-vis.private { background: var(--panel-2); color: var(--ink-faint); border: 1px solid var(--line); }
.up-body-text { font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.org-role.ph { color: var(--ink-faint); font-style: italic; cursor: pointer; }

/* ============ print / PDF ============ */
@media print {
  .side, .dev-note, .toast, .topbar { display: none !important; }
  .app { display: block; }
  .main { padding: 0; max-width: none; }
  .btn, .linkbtn, .reg-tools, .card-head button, .proj-actions, #reg-add, .quickadd, .sharebar { display: none !important; }
  .card, .prog-card, .update { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  body { background: #fff; }
  a { color: #000; text-decoration: none; }
}

/* ============ onboarding tour + foot links ============ */
.foot-links { display: flex; align-items: center; gap: 14px; }
.linkish { background: none; border: none; cursor: pointer; font-family: var(--body); padding: 0; }
.modal { max-height: 88vh; overflow-y: auto; }
.tour-intro { font-size: 14px; color: var(--ink-soft); margin: 0 0 12px; }
.tour-list { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 9px; }
.tour-list li { font-size: 14px; line-height: 1.5; color: var(--ink); padding-left: 14px; position: relative; }
.tour-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tour-list b { font-family: var(--display); font-weight: 600; letter-spacing: .02em; }
.tour-tip { font-size: 13px; color: var(--ink-soft); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; margin: 0; }

/* ============ Colin speedway '54' plate ============ */
.avatar.plate { background: #fff; color: #111; border-radius: 5px; font-style: italic; font-weight: 700; letter-spacing: -.03em; box-shadow: inset 0 0 0 2px #111; }
.chip .ini { font-style: normal; }

/* ============ find cheaper ============ */
.linkbtn.cheaper { color: var(--accent); }
.alt { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: var(--panel-2); }
.alt-main { display: flex; align-items: center; gap: 8px; }
.alt-name { font-weight: 600; font-size: 15px; }
.alt-approx { font-size: 12px; color: var(--ink-faint); }
.alt-link { margin-left: auto; text-decoration: none; color: var(--accent); font-size: 15px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--line); }
.alt-link:hover { background: #fff; }
.alt-note { font-size: 13px; color: var(--ink-soft); margin-top: 4px; line-height: 1.45; }

/* shipment statuses */
.spill.s-preparing { background: #eef2f5; color: #3b5566; }
.spill.s-in-transit { background: #fdf3df; color: #9a6b12; border-color: #ecd9a8; }
.spill.s-out-for-delivery { background: #fdf3df; color: #9a6b12; border-color: #ecd9a8; }
.spill.s-delivered { background: #e7f0e6; color: #3f6b3a; border-color: #c2d8bf; }
.spill.s-delayed { background: #f6d8d5; color: #8a1f17; border-color: #e6b3ad; }

/* ============ artists ============ */
.artist { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 20px; align-items: start; }
@media (max-width: 640px) { .artist { grid-template-columns: 1fr; } }
.artist-side { display: flex; flex-direction: column; gap: 8px; }
.artist-avatar { width: 120px; height: 120px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 40px; }
.artist-avatar.plate { background: #fff; color: #111; font-style: italic; box-shadow: inset 0 0 0 4px #111; }
.artist h2 { margin: 0 0 4px; }
.artist .role { color: var(--ink-faint); font-size: 13px; margin: 0 0 12px; }
.artist .bio { font-size: 16px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; }
.artist .lock { font-size: 12px; color: var(--ink-faint); margin-top: 12px; font-style: italic; }

/* House of McPolin logo avatar (Aaron) */
.artist-avatar.logo { background: #14110f; padding: 12px; }
.artist-avatar.logo img { width: 100%; height: 100%; object-fit: contain; }
.avatar.logo { background: #14110f; padding: 3px; overflow: hidden; }
.avatar.logo img { width: 100%; height: 100%; object-fit: contain; }

/* ============================================================
   Refero polish pass — Chronicle discipline on the locked brand:
   hairline borders, ONE soft shadow, more air, calmer tables,
   smooth view-change only. (30 Sep 2026)
   ============================================================ */
:root { --shadow: 0 2px 24px rgba(20,17,15,.06); }

/* more negative space + reading rhythm */
.main { padding: 46px 50px 104px; }
@media (max-width: 900px) { .main { padding: 30px 22px 80px; } }
@media (max-width: 760px) { .main { padding: 22px 16px 76px; } }
.page-head { margin-bottom: 32px; }
.page-head h1 { text-wrap: balance; letter-spacing: -.01em; }
.page-sub { max-width: 60ch; }
.card h2, .modal h3, .pc-name, .artist h2 { text-wrap: balance; }
.card { padding: 26px 28px 28px; }
.cols { gap: 30px; }

/* one elevation only — everything else leans on the hairline --line */
.update, .col, .card.person, .letgo-card { box-shadow: none; }
.col { background: var(--panel-2); }
.prog-card { box-shadow: var(--shadow); }

/* eyebrows a touch more editorial */
.eyebrow { letter-spacing: .28em; }

/* registers: roomier rows, wrap long values so actions never get cut off */
.tablewrap { border-radius: 12px; }
table.reg th { padding: 12px 16px; }
table.reg td { padding: 14px 16px; overflow-wrap: anywhere; }
table.reg tr:hover td { background: #faf8f3; }
.tdact { white-space: nowrap; overflow-wrap: normal; }
.reg-total { margin-top: 16px; }

/* smooth navigation — fades the panel on view change only, honours reduced motion */
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.main.nav-anim { animation: viewIn .18s ease both; }
@media (prefers-reduced-motion: reduce) { .main.nav-anim { animation: none; } }

/* ============ sample / placeholder data ============ */
.sample-banner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  background: #eef2f5; color: #3b5566; border-bottom: 1px solid #d7e0e6; padding: 9px 16px; font-size: 13px; }
.sb-btn { font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 600;
  background: #3b5566; color: #fff; border: none; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.sb-btn:hover { background: #2e4552; }
.sample-tag { display: inline-block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  padding: 2px 7px; border-radius: 999px; background: #eef2f5; color: #5b7386; border: 1px dashed #aec2cf; vertical-align: middle; }
tr.is-sample td { background: #f6f9fb; }
tr.is-sample td:first-child { box-shadow: inset 3px 0 0 #b9cdd8; }
.task.is-sample { border-left: 3px dashed #b9cdd8; padding-left: 9px; }

/* ============ Colin email-in highlight ============ */
.email-hint { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; margin-bottom: 26px; }
.eh-title { font-family: var(--display); font-weight: 600; font-size: 15px; margin: 0 0 4px; letter-spacing: .01em; }
.eh-text { font-size: 13.5px; color: var(--ink-soft); margin: 0; line-height: 1.5; max-width: 60ch; }
.eh-acts { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
@media (max-width: 640px) { .email-hint { flex-direction: column; align-items: flex-start; } }

/* ============ F1 mode toggle (Colin) ============ */
.f1-toggle { display: flex; align-items: center; gap: 9px; width: 100%; background: none; border: 1px solid #2a2a33;
  color: #b9b1a1; font-family: var(--body); font-size: 12.5px; padding: 8px 10px; border-radius: 8px; cursor: pointer; margin-bottom: 10px; }
.f1-toggle:hover { border-color: #3a3a45; color: #f4f1e9; }
.f1-chk { width: 26px; height: 14px; border-radius: 999px; background: #3a3a45; position: relative; transition: background .15s; flex: 0 0 auto; }
.f1-chk::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; transition: left .15s; }
.f1-toggle.on .f1-chk { background: #e10600; }
.f1-toggle.on .f1-chk::after { left: 14px; }
@media (prefers-reduced-motion: reduce) { .f1-chk, .f1-chk::after { transition: none; } }

/* ============ F1 racing theme (body.f1) — F1 red + carbon, italic speed ============ */
body.f1 { --accent: #e10600; }
body.f1 .side { background: #0b0b0f; border-right-color: #1c1c22; }
body.f1 .nav-item.active { background: #e10600; color: #fff; }
body.f1 .nav-item:hover { background: #17171d; }
body.f1 .eyebrow { color: #e10600; }
body.f1 .page-head { border-bottom: 2px solid #e10600; padding-bottom: 14px; }
body.f1 .page-head h1, body.f1 .card h2 { font-style: italic; letter-spacing: -.01em; }
body.f1 .btn.primary { background: #e10600; border-color: #e10600; }
body.f1 .btn.primary:hover { background: #b60500; border-color: #b60500; }
body.f1 .who .avatar, body.f1 .side-foot .who .avatar { background: #e10600; }
body.f1 .avatar.plate { box-shadow: inset 0 0 0 2px #e10600; color: #111; }
body.f1 .bar > span { background: #e10600 !important; }
body.f1 .wordmark .where { color: #e10600; }

/* ============ collaboration upgrades ============ */
/* undo toast */
.toast { display: inline-flex; align-items: center; gap: 12px; }
.toast-btn { background: none; border: none; color: #e8c9a0; font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 600; cursor: pointer; padding: 2px 4px; }
.toast-btn:hover { color: #fff; }

/* needs-you / urgency panel */
.card.needs { border-left: 3px solid var(--accent); }
.card.needs h2 { color: var(--accent); }

/* flag star */
.flagbtn { font-size: 14px; color: var(--ink-faint); }
.flagbtn:hover { color: var(--doing); }
.flagbtn.on { color: #d99a1c; }

/* social suggested channels */
.suggest-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.suggest-label { font-size: 12.5px; color: var(--ink-faint); letter-spacing: .04em; }

/* activity feed */
.act-row { display: flex; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.act-row:last-child { border-bottom: none; }
.act-row .ini { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 10px; flex: 0 0 auto; margin-top: 1px; }
.act-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.act-text { font-size: 14.5px; line-height: 1.45; }
.act-meta { font-size: 11.5px; color: var(--ink-faint); }

/* nav badge (unseen activity) */
.nav-item { position: relative; }
.nav-badge { margin-left: auto; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 999px; display: inline-grid; place-items: center; padding: 0 5px; }
body.f1 .nav-badge { background: #e10600; }

/* public / shared-to-team cue */
.public-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .04em; color: #3f6b3a; background: #e7f0e6; border: 1px solid #c2d8bf; border-radius: 999px; padding: 5px 12px; margin: 0 0 18px; }
body.f1 .public-badge { background: #1a1a10; color: #e8c9a0; border-color: #3a3a20; }
