/* MegaDash v2.1 — dark cold aesthetic */
@import url('vendor/fonts/inter.css'); /* v2.4: Inter vendored locally (was Google Fonts) */

:root {
  --bg: #0B0F14;
  --card: #161C24;
  --hair: #2A3340;
  --text: #E7EEF6;
  --muted: #8B9AAB;
  --accent: #3EE0C4;
  --woop: #C45A12;
  --danger: #F87171;
  --rail: 300px;
  --radius: 12px;
  --font: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  min-height: 100%;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0 0 0.4rem; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0.4rem 0; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.mt { margin-top: 0.75rem; }
.mb { margin-bottom: 0.75rem; }
.pad { padding: 1rem; }

/* Tabular numerals — STRICT for all scores */
.num, .grade-num, .sscore, .cscore, .score-pill, .timer-num,
input.num-input, .prio, .admin-table td:nth-child(3),
.admin-table td:nth-child(4),
.map-starter-num, .map-out-under.num {
  font-family: Inter, var(--font) !important;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.unset, .unset-chip { color: var(--muted); opacity: 0.85; }

.app { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 15, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
  padding: 0.55rem 0.75rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
}
.brand { font-weight: 700; letter-spacing: -0.03em; margin-right: 0.5rem; }
.brand .ver { color: var(--accent); font-weight: 500; font-size: 0.8rem; }
.nav {
  display: flex; flex-wrap: wrap; gap: 0.25rem; flex: 1;
}
.nav-link {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  font-size: 0.85rem;
}
.nav-link.active {
  color: var(--bg);
  background: var(--accent);
  font-weight: 600;
}
.toolbar { display: flex; gap: 0.35rem; }

.layout {
  display: flex;
  flex: 1;
  min-height: 0;
  position: relative;
}
.main {
  flex: 1;
  padding: 0.75rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}
.app.chat-open .main { margin-right: 0; }

.page-h {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem; margin-bottom: 0.75rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}
.card-h {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.stack { display: flex; flex-direction: column; gap: 0.65rem; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 0.65rem; }
@media (min-width: 720px) {
  .grid2 { grid-template-columns: 1fr 1fr; }
}
.row { display: flex; align-items: center; }
.gap { gap: 0.5rem; }
.wrap { flex-wrap: wrap; }

.btn {
  appearance: none;
  border: 1px solid var(--hair);
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  min-height: 40px;
}
.btn:hover { border-color: var(--accent); }
.btn.accent {
  background: var(--accent);
  color: #06241f;
  border-color: var(--accent);
  font-weight: 600;
}
.btn.ghost { background: transparent; }
.btn.danger { border-color: var(--danger); color: var(--danger); }
.file-btn { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.chip {
  appearance: none;
  border: 1px solid var(--hair);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
  font-size: 0.8rem;
}
.chip.on { border-color: var(--accent); color: var(--accent); }
.badge {
  font-size: 0.7rem;
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-woop {
  display: inline-block;
  margin-left: 0.35rem;
  background: rgba(245, 158, 11, 0.15);
  color: var(--woop);
  border: 1px solid var(--woop);
  border-radius: 999px;
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.socket-badge {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px dashed var(--hair);
  border-radius: 8px;
  padding: 0.2rem 0.45rem;
}
.linkish {
  background: none; border: none; color: var(--accent); cursor: pointer; padding: 0.35rem 0; text-align: left;
}

/* Grade circles */
.grades-row {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: flex-start; align-items: flex-start;
}
.grade-circle {
  width: var(--sz, 88px);
  text-align: center;
  position: relative;
}
.grade-ring {
  width: var(--sz, 88px);
  height: var(--sz, 88px);
  border-radius: 50%;
  border: 3px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 40% 35%, #1c2530, #0e1319 70%);
  box-shadow: inset 0 0 0 1px var(--hair);
}
.grade-circle.unset .grade-ring {
  border-color: var(--hair);
  border-style: dashed;
}
.grade-num {
  font-size: clamp(1.6rem, calc(var(--sz, 88px) * 0.38), 2.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.grade-circle.unset .grade-num { color: var(--muted); font-weight: 500; }
.grade-label {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.grade-subring {
  position: absolute;
  right: -8px; bottom: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--hair);
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 0.65rem;
}
.grade-subring .num { font-size: 0.7rem; font-weight: 600; color: var(--accent); }
.grade-subring .sublbl { font-size: 0.5rem; color: var(--muted); text-transform: uppercase; }

/* Skills */
.skills-toggle { display: flex; gap: 0.35rem; }
.woop-stack { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.55rem; }
.woop-chip {
  color: var(--woop);
  font-weight: 600;
  font-size: 0.85rem;
}
.cat-row, .skill-row {
  display: grid;
  grid-template-columns: 1fr auto 88px;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hair);
  padding: 0.55rem 0;
  color: inherit;
  cursor: pointer;
}
.skill-row {
  grid-template-columns: 28px 1fr auto 88px;
  cursor: default;
}
.skill-row.is-woop { background: rgba(245, 158, 11, 0.06); border-radius: 8px; padding-left: 0.35rem; padding-right: 0.35rem; }
.prio { color: var(--muted); font-size: 0.85rem; }
.bar {
  height: 6px;
  background: #0e141b;
  border: 1px solid var(--hair);
  border-radius: 999px;
  overflow: hidden;
}
.bar.unset { opacity: 0.45; }
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #1a8f7c, var(--accent));
  border-radius: inherit;
}

/* Today */
.today-list { display: flex; flex-direction: column; }
.today-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--hair);
  min-height: 56px;
}
.today-row.done { opacity: 0.92; }
.today-row.socket { opacity: 0.7; }
.row-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.45rem; flex: 1; }
.evt-id { font-size: 0.7rem; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.evt-label { font-weight: 600; }
.dur { font-size: 0.75rem; color: var(--muted); }
.score-pill {
  font-size: 0.75rem;
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
}
.fat-check {
  width: 52px; height: 52px;
  border-radius: 14px;
  border: 2px solid var(--hair);
  background: #0e141b;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.fat-check.on {
  border-color: var(--accent);
  background: rgba(62, 224, 196, 0.12);
  color: var(--accent);
}

/* Calendar */
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-cell {
  min-height: 72px;
  background: #0e141b;
  border: 1px solid var(--hair);
  border-radius: 8px;
  padding: 0.25rem;
  font-size: 0.65rem;
}
.cal-cell.empty { background: transparent; border-color: transparent; }
.cal-d { font-weight: 600; margin-bottom: 0.15rem; }
.cal-item {
  background: rgba(62, 224, 196, 0.1);
  border-radius: 4px;
  padding: 0.1rem 0.2rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.check-chip {
  appearance: none;
  border: 1px solid var(--hair);
  background: transparent;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  min-height: 40px;
}
.check-chip.on { border-color: var(--accent); color: var(--accent); }

/* Systems */
.sys-card summary {
  cursor: pointer;
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  list-style: none;
}
.sys-card summary::-webkit-details-marker { display: none; }
.sys-name { font-weight: 600; flex: 1; }
.sys-body { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.sys-body label, .card label {
  display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; color: var(--muted);
}
.sys-body textarea, .sys-body input, .card input, .card textarea, .card select, .num-input {
  background: #0e141b;
  border: 1px solid var(--hair);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  color: var(--text);
}
.sys-body textarea { min-height: 64px; resize: vertical; }

.metrics { display: grid; gap: 0.5rem; }
.metrics label { font-size: 0.8rem; color: var(--muted); }
.tier-dash { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.5rem; }
.tier-chip .num { font-size: 1.4rem; font-weight: 700; }
.tier-block h2 { margin: 1rem 0 0.5rem; }

.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th, .admin-table td {
  border-bottom: 1px solid var(--hair);
  padding: 0.4rem 0.35rem;
  text-align: left;
}
.admin-table input { width: 72px; }

/* Chat rail */
.chat-rail {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: var(--rail);
  max-width: 100%;
  background: #0e141b;
  border-left: 1px solid var(--hair);
  z-index: 50;
  transform: translateX(calc(100% - 36px));
  transition: transform 0.2s ease;
  display: flex;
}
.chat-rail.open { transform: translateX(0); }
.chat-toggle {
  width: 36px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  border: none;
  background: var(--card);
  color: var(--accent);
  cursor: pointer;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}
.chat-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: calc(var(--rail) - 36px);
}
.chat-h {
  padding: 0.75rem;
  border-bottom: 1px solid var(--hair);
}
.chat-h h2 { font-size: 1rem; }
.chat-thread {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.chat-msg .bubble {
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--hair);
  background: var(--card);
  font-size: 0.88rem;
}
.chat-msg.user .bubble {
  border-color: rgba(62, 224, 196, 0.35);
  background: rgba(62, 224, 196, 0.08);
}
.confirm-btn { margin-top: 0.35rem; width: 100%; }
.chat-form {
  display: flex; gap: 0.35rem;
  padding: 0.65rem;
  border-top: 1px solid var(--hair);
}
.chat-form input {
  flex: 1;
  background: #0B0F14;
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
}
@media (min-width: 960px) {
  .app.chat-open .main { margin-right: var(--rail); }
}

/* Timer overlay */
#timer-overlay {
  position: fixed; inset: 0; background: rgba(5, 8, 12, 0.72);
  display: none; align-items: center; justify-content: center; z-index: 100;
}
#timer-overlay.show { display: flex; }
.timer-box {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  text-align: center;
}
.timer-num { font-size: 3rem; font-weight: 700; color: var(--accent); letter-spacing: -0.04em; }

#toast {
  position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--accent); color: #06241f; font-weight: 600;
  padding: 0.55rem 1rem; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: 0.2s; z-index: 120;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.why { color: var(--muted); font-size: 0.9rem; }
.desk-tag {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--accent);
  border: 1px solid rgba(62, 224, 196, 0.35);
  border-radius: 6px;
  padding: 0.1rem 0.4rem;
  margin-bottom: 0.35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}


/* ===== LIFE-OS MAP poster ===== */
:root {
  --inspect: 360px;
  --map-teal: #3EE0C4;
  --map-woop: #C45A12;
}

.app.on-map .main.map-main {
  max-width: none;
  padding: 0.5rem 0.75rem 1rem;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.layout.map-layout {
  display: flex;
  align-items: stretch;
}

.layout.map-layout .map-main {
  flex: 1 1 auto;
}

/* Inspect drawer — left of chat, closed on first paint */
.inspect-drawer {
  display: none;
  flex: 0 0 var(--inspect);
  width: var(--inspect);
  max-width: 100%;
  background: #0e141b;
  border-left: 1px solid var(--hair);
  flex-direction: column;
  z-index: 45;
  min-height: 0;
}
.inspect-drawer.open {
  display: flex;
}
.app.inspect-open .inspect-drawer {
  display: flex;
}
.inspect-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--hair);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.inspect-body { padding: 0.85rem; overflow-y: auto; flex: 1; }
.inspect-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}
.inspect-score { font-size: 0.85rem; margin-bottom: 0.85rem; }
.inspect-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--hair);
  font-size: 0.88rem;
}
.inspect-row.grey { color: var(--muted); }
.inspect-st {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (min-width: 960px) {
  .app.on-map.inspect-open.chat-open .main.map-main {
    margin-right: 0;
  }
  .app.on-map.chat-open .layout.map-layout {
    padding-right: 0;
  }
  /* Reserve space for fixed chat rail */
  .app.on-map.chat-open .layout.map-layout {
    margin-right: var(--rail);
  }
  .app.on-map:not(.chat-open) .layout.map-layout {
    margin-right: 36px;
  }
}

.map-poster {
  position: relative;
  background: #0B0F14;
  color: #E7EEF6;
  padding: 1rem 1.25rem 1.5rem;
  min-height: calc(100vh - 64px);
  max-width: 1100px;
  margin: 0 auto;
  font-family: Inter, system-ui, sans-serif;
  overflow: hidden;
}

.map-poster-h {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
}
.map-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  position: relative;
  padding-bottom: 0.55rem;
}
.map-diamond {
  width: 14px;
  height: 14px;
  color: var(--map-teal);
  flex-shrink: 0;
}
.map-brand-text {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: #E7EEF6;
}
.map-brand-rule {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(280px, 42vw);
  height: 2px;
  background: var(--map-teal);
}
.map-brand-rule::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--map-teal);
}
.map-lifeos {
  color: var(--map-teal);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--map-teal);
  padding-bottom: 0.2rem;
}

.map-section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: var(--map-teal);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  margin-bottom: 1.1rem;
}
.map-dots {
  flex: 1;
  max-width: 160px;
  height: 0;
  border-top: 1px dotted rgba(62, 224, 196, 0.65);
}

.map-starters {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 6vw, 4.5rem);
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}
.map-starter {
  appearance: none;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  font: inherit;
}
.map-starter-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #E7EEF6;
}
.map-starter-circle {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  border: 1.5px solid rgba(231, 238, 246, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 15, 20, 0.6);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.map-starter:hover .map-starter-circle {
  border-color: var(--map-teal);
  box-shadow: 0 0 0 1px rgba(62, 224, 196, 0.25);
}
.map-starter-num {
  font-size: 2.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-family: Inter, system-ui, sans-serif !important;
  line-height: 1;
}
.map-starter-num.unset { color: #8B9AAB; font-size: 2rem; }
.map-starter-cap {
  font-size: 0.78rem;
  color: #8B9AAB;
}

.map-mid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}
@media (max-width: 820px) {
  .map-mid { grid-template-columns: 1fr; }
  .map-starters { gap: 1rem; }
  .map-starter-circle { width: 96px; height: 96px; }
  .map-starter-num { font-size: 1.8rem; }
}

.map-card {
  background: #161C24;
  border: 1px solid rgba(62, 224, 196, 0.35);
  border-radius: 14px;
  padding: 0.9rem 1rem 1rem;
  position: relative;
}
.map-card-h {
  color: var(--map-teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 0.75rem;
}

.map-skills-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1rem;
  margin-bottom: 0.85rem;
}
.map-skills-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.map-skill-item {
  appearance: none;
  background: transparent;
  border: none;
  color: #E7EEF6;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.25rem;
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  border-radius: 8px;
}
.map-skill-item:hover,
.map-skill-item.on {
  background: rgba(62, 224, 196, 0.08);
  color: var(--map-teal);
}
.map-ico {
  width: 16px;
  height: 16px;
  color: var(--map-teal);
  flex-shrink: 0;
}

.map-woop-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  background: #C45A12;
  border: 1.5px solid #E07A2F;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  margin-top: 0.25rem;
}
.map-woop-bar .map-ico { color: #fff; width: 14px; height: 14px; }

.map-skill-expand { margin-bottom: 0.75rem; }
.map-skill-back {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--map-teal);
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.map-child-row {
  display: grid;
  grid-template-columns: 36px 1fr auto minmax(72px, 110px);
  gap: 0.45rem;
  align-items: center;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--hair);
  font-size: 0.88rem;
}
.map-child-row .prio {
  font-size: 1.05rem;
  font-weight: 600;
}

.map-sys-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.map-sys-row {
  appearance: none;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.4rem 0.2rem;
  text-align: left;
  font: inherit;
  border-radius: 8px;
  width: 100%;
}
.map-sys-row:hover { background: rgba(62, 224, 196, 0.06); }
.map-sys-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.map-sys-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #E7EEF6;
}
.map-sys-sub { font-size: 0.78rem; }

.map-systems { cursor: pointer; }

.map-outputs { position: relative; z-index: 2; }
.map-outs {
  display: flex;
  justify-content: space-around;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.5rem 0 0.25rem;
}
.map-out {
  appearance: none;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem;
  font: inherit;
  min-width: 88px;
}
.map-out-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.map-out-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1.5px solid rgba(231, 238, 246, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 15, 20, 0.45);
}
.map-out-circle .map-ico {
  width: 22px;
  height: 22px;
  color: var(--map-teal);
}
.map-out:hover .map-out-circle {
  border-color: var(--map-teal);
}
.map-out-under {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #8B9AAB;
  text-transform: uppercase;
}

.map-connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}

@media (max-width: 960px) {
  .inspect-drawer.open,
  .app.inspect-open .inspect-drawer {
    position: fixed;
    top: 52px;
    right: 36px;
    bottom: 0;
    z-index: 48;
    box-shadow: -8px 0 24px rgba(0,0,0,0.35);
  }
  .app.on-map.chat-open .inspect-drawer.open {
    right: var(--rail);
  }
}

/* —— WOOP Room —— */
.wr-page { max-width: 980px; }
.wr-tabs { display:flex; gap:0.35rem; margin:0.5rem 0 1rem; flex-wrap:wrap; }
.wr-tab {
  padding:0.35rem 0.85rem; border-radius:999px; border:1px solid var(--hair);
  color:var(--muted); background:transparent; font-size:0.85rem;
}
.wr-tab.on { background:var(--accent); color:var(--bg); border-color:var(--accent); font-weight:600; }
.wr-profile { display:flex; gap:0.35rem; }
.wr-profile .chip, .chip {
  appearance:none; border:1px solid var(--hair); background:transparent; color:var(--muted);
  border-radius:999px; padding:0.3rem 0.7rem; cursor:pointer; font-size:0.82rem;
}
.chip.on { border-color:var(--accent); color:var(--accent); }
.wr-pair {
  display:flex; align-items:center; gap:1rem; padding:0.75rem 1rem; margin-bottom:0.85rem;
}
.wr-pair-person { flex:1; }
.wr-pair-name { font-size:0.75rem; letter-spacing:0.08em; text-transform:uppercase; color:var(--muted); margin-bottom:0.35rem; }
.wr-pair-dots { display:flex; flex-wrap:wrap; gap:0.3rem; }
.wr-pair-dot {
  width:1.35rem; height:1.35rem; border-radius:6px; display:inline-flex; align-items:center; justify-content:center;
  font-size:0.7rem; font-variant-numeric:tabular-nums; border:1px solid var(--hair); color:var(--muted);
}
.wr-pair-sep { width:1px; align-self:stretch; background:var(--hair); }
.wr-pair-dot.st-done, .wr-hm-cell.st-done, .wr-status-pill.st-done, .wr-st.st-done.on {
  background:rgba(62,224,196,0.18); border-color:#3EE0C4; color:#3EE0C4;
}
.wr-pair-dot.st-partial, .wr-hm-cell.st-partial, .wr-status-pill.st-partial, .wr-st.st-partial.on {
  background:rgba(245,186,74,0.16); border-color:#F5BA4A; color:#F5BA4A;
}
.wr-pair-dot.st-missed, .wr-hm-cell.st-missed, .wr-status-pill.st-missed, .wr-st.st-missed.on {
  background:rgba(139,154,171,0.14); border-color:#8B9AAB; color:#8B9AAB;
}
.wr-pair-dot.st-none, .wr-hm-cell.st-none { background:transparent; color:var(--muted); opacity:0.55; }
.wr-day-nav, .wr-month-nav { margin-bottom:0.75rem; }
.wr-warn { margin-bottom:0.65rem; font-size:0.85rem; }
.wr-cards { display:flex; flex-direction:column; gap:0.75rem; }
.wr-card { border-left:3px solid var(--hair); }
.wr-card.st-done { border-left-color:#3EE0C4; }
.wr-card.st-partial { border-left-color:#F5BA4A; }
.wr-card.st-missed { border-left-color:#8B9AAB; }
.wr-wish { color:var(--text); margin:0.4rem 0 0.65rem; line-height:1.4; }
.wr-status-row { display:flex; flex-wrap:wrap; gap:0.4rem; align-items:center; }
.wr-st {
  appearance:none; border:1px solid var(--hair); background:transparent; color:var(--muted);
  border-radius:8px; padding:0.4rem 0.7rem; cursor:pointer; font-variant-numeric:tabular-nums;
}
.wr-day-summary { margin-top:0.45rem; font-size:0.85rem; }
.wr-sheet {
  margin-top:0.75rem; padding-top:0.75rem; border-top:1px solid var(--hair);
  display:flex; flex-direction:column; gap:0.55rem;
}
.wr-sheet.hidden { display:none; }
.wr-sheet label { display:flex; flex-direction:column; gap:0.25rem; font-size:0.82rem; color:var(--muted); }
.wr-sheet textarea, .wr-sheet input[type="number"], .wr-modal-card input, .wr-modal-card textarea {
  background:#0B0F14; border:1px solid var(--hair); border-radius:8px; padding:0.5rem 0.65rem; color:var(--text);
}
.wr-voice { align-items:center; }
.wr-celebrate { min-height:1.2em; color:var(--accent); }
.wr-hero-grid {
  display:grid; grid-template-columns:1fr; gap:0.75rem; margin-bottom:0.75rem;
}
@media (min-width:720px) {
  .wr-hero-grid { grid-template-columns:220px 1fr; }
}
.wr-hero { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0.5rem; padding:1.25rem; }
.wr-hero-circle {
  width:140px; height:140px; border-radius:50%;
  border:3px solid var(--accent);
  display:flex; align-items:center; justify-content:center;
  background:radial-gradient(circle at 40% 35%, rgba(62,224,196,0.12), transparent 70%);
}
.wr-hero-circle.unset { border-color:var(--muted); opacity:0.7; }
.wr-hero-num { font-size:2.4rem; font-weight:600; font-variant-numeric:tabular-nums; letter-spacing:-0.03em; }
.wr-hero-cap { text-align:center; font-size:0.85rem; }
.wr-contrib { padding:0.85rem 1rem; }
.wr-bar-row {
  display:grid; grid-template-columns:7.5rem 1fr 2.2rem; gap:0.5rem; align-items:center;
  margin:0.35rem 0; font-size:0.82rem;
}
.wr-bar { height:8px; background:#0B0F14; border:1px solid var(--hair); border-radius:999px; overflow:hidden; }
.wr-bar.unset { opacity:0.45; }
.wr-bar-fill { height:100%; background:linear-gradient(90deg, #2A9B8A, var(--accent)); border-radius:999px; }
.wr-sparks { margin-bottom:0.75rem; }
.wr-spark { color:var(--accent); vertical-align:middle; }
.wr-spark.spark-s { color:#8BB8FF; }
.wr-ambition, .wr-blocksupp { margin-bottom:0.75rem; }
.wr-amb-meter { height:10px; background:#0B0F14; border:1px solid var(--hair); border-radius:999px; overflow:hidden; margin-top:0.5rem; }
.wr-amb-fill { height:100%; background:#F5BA4A; }
.wr-amb-fill.ok { background:var(--accent); }
.wr-pill {
  display:inline-flex; padding:0.25rem 0.65rem; border-radius:999px; border:1px solid var(--hair);
  font-size:0.8rem;
}
.wr-pill.st-missed { border-color:#8B9AAB; color:#8B9AAB; }
.wr-pill.st-done { border-color:#3EE0C4; color:#3EE0C4; }
.wr-cals { display:grid; gap:0.75rem; margin:0.75rem 0; }
@media (min-width:720px) { .wr-cals { grid-template-columns:1fr 1fr; } }
.wr-heatmap {
  display:grid; grid-template-columns:repeat(7, 1fr); gap:0.3rem; margin-top:0.5rem;
}
.wr-hm-cell {
  aspect-ratio:1; border-radius:6px; border:1px solid var(--hair);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-decoration:none; color:inherit; font-size:0.72rem; font-variant-numeric:tabular-nums;
  position:relative;
}
.wr-hm-d { font-size:0.62rem; color:var(--muted); }
.wr-quotes blockquote, .wr-quote {
  margin:0.5rem 0; padding:0.55rem 0.75rem; border-left:2px solid var(--accent);
  color:var(--text); font-size:0.9rem;
}
.wr-status-pill {
  display:inline-block; padding:0.15rem 0.5rem; border-radius:999px; border:1px solid var(--hair);
  font-size:0.75rem; text-transform:uppercase; letter-spacing:0.04em;
}
.wr-modal {
  position:fixed; inset:0; background:rgba(0,0,0,0.55); z-index:80;
  display:flex; align-items:flex-start; justify-content:center; padding:2rem 1rem; overflow:auto;
}
.wr-modal-card {
  width:min(560px, 100%); display:flex; flex-direction:column; gap:0.55rem;
}
.wr-modal-card label { display:flex; flex-direction:column; gap:0.25rem; font-size:0.82rem; color:var(--muted); }
.wr-danger { border-top:1px solid var(--hair); padding-top:0.75rem; }
.btn.danger, .btn.ghost.danger { color:var(--danger); border-color:rgba(248,113,113,0.4); }
.num.unset, .unset { color:var(--muted); }
.file-btn { cursor:pointer; }
.wr-share-day { display:flex; flex-direction:column; gap:0.35rem; }
.wr-excerpt { font-style:italic; margin:0.35rem 0; }
.wr-dive-table { width:100%; font-size:0.85rem; }
@media (max-width:720px) {
  .wr-page .page-h { flex-direction:column; align-items:flex-start; }
  .wr-cards { order: -1; }
}

/* —— WOOP Room polish v2.2: explainers + single kudos —— */
.wr-explain {
  font-size:12px; line-height:1.45; font-weight:400; color:var(--muted);
  margin:0.2rem 0 0.45rem; max-width:62ch; letter-spacing:0;
}
.wr-explain.wr-center { text-align:center; margin-left:auto; margin-right:auto; }
.wr-bar-row .wr-bar-explain { grid-column:1 / -1; margin:-0.1rem 0 0.35rem; }
.wr-hero > strong { align-self:flex-start; }
.wr-hero .wr-explain.wr-center { max-width:28ch; }
.wr-hero-cap.unset { opacity:0.7; }
.wr-sparks .wr-explain, .wr-ambition .wr-explain, .wr-blocksupp .wr-explain,
.wr-verdict .wr-explain, .wr-quotes .wr-explain, .wr-contrib > .wr-explain { margin-bottom:0.55rem; }
.wr-amb-meter.unset { opacity:0.45; }
.wr-amb-num { font-size:0.78rem; margin-top:0.35rem; }
.wr-onto-list { display:flex; flex-direction:column; gap:0.45rem; margin-top:0.5rem; }
.wr-onto { display:flex; flex-direction:column; align-items:flex-start; gap:0.2rem; }
.wr-onto .wr-explain { margin:0; }
.wr-pill.unset { border-color:var(--hair); color:var(--muted); opacity:0.8; }
.wr-onto-pick { display:flex; flex-direction:column; gap:0.35rem; }
.wr-onto-opt { display:grid; grid-template-columns:minmax(8.5rem, auto) 1fr; gap:0.2rem 0.6rem; align-items:start; }
.wr-onto-opt .chip { justify-self:start; }
.wr-onto-opt .wr-explain { margin:0.2rem 0 0; }
@media (max-width:560px) {
  .wr-onto-opt { grid-template-columns:1fr; }
  .wr-onto-opt .wr-explain { margin:0 0 0.25rem; }
}
.wr-day-head { margin-bottom:0.25rem; }
.wr-kudos-slot { margin-left:auto; }
.wr-kudos-btn { border-color:var(--accent); color:var(--accent); background:transparent; }
.wr-kudos-btn.sent { border-color:var(--hair); color:var(--muted); background:rgba(62,224,196,0.06); }
.wr-kudos-sheet { display:flex; flex-direction:column; gap:0.55rem; margin-bottom:0.85rem; max-width:420px; margin-left:auto; }
.wr-kudos-sheet.hidden { display:none; }
.wr-kudos-sheet label { display:flex; flex-direction:column; gap:0.25rem; font-size:0.82rem; color:var(--muted); }
.wr-kudos-sheet textarea, .wr-kudos-sheet select {
  background:#0B0F14; border:1px solid var(--hair); border-radius:8px; padding:0.5rem 0.65rem;
  color:var(--text); font:inherit; font-size:0.9rem;
}
.wr-kudos-h { display:flex; gap:0.5rem; align-items:baseline; justify-content:space-between; }
.wr-kudos-in { margin:-0.35rem 0 0.85rem; padding:0.6rem 1rem; border-left:3px solid var(--accent); display:flex; flex-direction:column; gap:0.4rem; font-size:0.88rem; }
.wr-kudos-note { color:var(--text); margin-top:0.15rem; font-style:italic; }
@media (max-width:560px) {
  .wr-kudos-slot { margin-left:0; width:100%; }
  .wr-kudos-slot .wr-kudos-btn { width:100%; }
  .wr-kudos-sheet { max-width:none; }
}
/* keep WOOP content clear of the collapsed Ask tab (36px, fixed right) on narrow screens */
@media (max-width:1040px) { .wr-page { padding-right:36px; } }

/* ═════════════════════════════════════════════════════════════
   MEGADASH v2.2 — Today / Calendar / Systems / Journal / Call / Daily OS / Tools
   Same dark/cold system: #0B0F14 bg, #161C24 cards, teal accent, grey = missing.
   ═════════════════════════════════════════════════════════════ */
:root {
  --o-money: #5BD6A0;
  --o-power: #6AA8FF;
  --o-beauty: #B79CFF;
  --o-love: #FF8FB1;
  --o-none: #5B6776;
  --field: #0B0F14;
}
.small { font-size: 0.82rem; }
.small-h { font-size: 0.85rem; color: var(--muted); font-weight: 600; margin: 0.6rem 0 0.35rem; text-transform: uppercase; letter-spacing: 0.05em; }
.unknown { color: var(--muted); font-style: italic; letter-spacing: 0.04em; }
.empty { color: var(--muted); }
.num, .rt-n, .cal-d, .cal-time, .agenda-time, .th-iso, .wb-slot, .out-count, .syl-d { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
textarea, input[type="text"], input[type="time"], input[type="date"], input[type="month"], input[type="number"], select, .dos-text {
  background: var(--field); border: 1px solid var(--hair); border-radius: 10px; color: var(--text);
  padding: 0.5rem 0.65rem; max-width: 100%;
}
textarea { width: 100%; resize: vertical; line-height: 1.45; }
textarea.grow { overflow: hidden; resize: none; min-height: 4.2rem; }
textarea:focus, input:focus, select:focus { outline: 1px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.btn:disabled, .rt-check:disabled { opacity: 0.4; cursor: not-allowed; }
.pre, pre.raw { white-space: pre-wrap; word-break: break-word; background: var(--field); border: 1px solid var(--hair); border-radius: 10px; padding: 0.6rem 0.7rem; font-size: 0.8rem; max-height: 320px; overflow: auto; }

/* outputs */
.out-tag { display: inline-block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; border-radius: 999px; padding: 0.08rem 0.45rem; border: 1px solid currentColor; line-height: 1.5; white-space: nowrap; }
.out-money { color: var(--o-money); } .out-power { color: var(--o-power); } .out-beauty { color: var(--o-beauty); } .out-love { color: var(--o-love); } .out-none { color: var(--o-none); }
.out-bg-money { background: var(--o-money); } .out-bg-power { background: var(--o-power); } .out-bg-beauty { background: var(--o-beauty); } .out-bg-love { background: var(--o-love); } .out-bg-none { background: var(--o-none); }
.out-bd-money { border-left-color: var(--o-money) !important; } .out-bd-power { border-left-color: var(--o-power) !important; } .out-bd-beauty { border-left-color: var(--o-beauty) !important; } .out-bd-love { border-left-color: var(--o-love) !important; } .out-bd-none { border-left-color: var(--o-none) !important; }

/* generic expanders */
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.xpand, .rt-x, .woop-badge, .syllabus, .pin { border: 1px solid var(--hair); border-radius: 10px; background: rgba(255,255,255,0.015); margin: 0.45rem 0; }
.xpand > summary, .rt-x > summary, .syllabus > summary, .pin > summary { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.55rem 0.7rem; min-height: 44px; }
.xpand > summary::after, .rt-x > summary::after, .syllabus > summary::after, .pin > summary::after { content: '\25BE'; color: var(--muted); transition: transform 0.15s; }
details[open] > summary::after { transform: rotate(180deg); }
.xpand > :not(summary), .rt-x > :not(summary), .syllabus > :not(summary), .pin > :not(summary) { margin-left: 0.7rem; margin-right: 0.7rem; }
.xpand > :last-child:not(summary), .rt-x > :last-child:not(summary), .syllabus > :last-child:not(summary), .pin > :last-child:not(summary) { margin-bottom: 0.7rem; }
.xpand-t { font-weight: 600; }
.xpand-s { color: var(--muted); font-size: 0.8rem; }
.card-in { background: rgba(255,255,255,0.02); border: 1px solid var(--hair); border-radius: 10px; padding: 0.6rem 0.7rem; margin: 0.45rem 0; }
.seg { display: inline-flex; border: 1px solid var(--hair); border-radius: 999px; overflow: hidden; }
.seg label, .seg button { padding: 0.35rem 0.75rem; min-height: 36px; display: inline-flex; align-items: center; gap: 0.3rem; cursor: pointer; font-size: 0.85rem; background: transparent; border: none; color: var(--muted); }
.seg label:has(input:checked), .seg button.on { background: rgba(62,224,196,0.12); color: var(--accent); }
.seg input { accent-color: var(--accent); }

/* shell: More overflow + phone menu */
.nav-more { position: relative; }
.nav-more > summary { display: inline-block; list-style: none; cursor: pointer; }
.nav-more > summary::after { content: ' \25BE'; font-size: 0.7rem; }
.nav-more-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 60; background: var(--card); border: 1px solid var(--hair); border-radius: 10px; padding: 0.35rem; display: flex; flex-direction: column; gap: 0.2rem; min-width: 150px; }
.menu-btn { display: none; }
@media (max-width: 767px) {
  .topbar { padding: 0.5rem 0.6rem; }
  .menu-btn { display: inline-flex; align-items: center; gap: 0.35rem; margin-left: auto; min-height: 44px; }
  .topbar .toolbar { order: 3; }
  .topbar .nav { display: none; order: 4; flex-basis: 100%; flex-direction: column; gap: 0.15rem; padding: 0.35rem 0 0.25rem; }
  .topbar .nav.open { display: flex; }
  .topbar .nav .nav-link { padding: 0.65rem 0.8rem; border-radius: 10px; font-size: 0.95rem; min-height: 44px; display: flex; align-items: center; }
  .nav-more > summary.nav-link { display: flex; }
  .nav-more-menu { position: static; background: transparent; border: none; padding: 0 0 0 0.75rem; }
  .topbar .toolbar .btn { min-height: 36px; padding: 0.3rem 0.55rem; font-size: 0.8rem; }
}

/* Today */
.today22 .today-hero { display: grid; grid-template-columns: 1fr; gap: 0; }
.th-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.5rem; }
.th-top h1 { font-size: 1.45rem; }
.th-iso { font-size: 0.95rem; font-weight: 500; }
.th-nav { margin-bottom: 0.75rem; }
.th-nav .btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.user-chip { display: inline-flex; border: 1px solid var(--hair); border-radius: 999px; padding: 3px; gap: 3px; background: var(--card); }
.uc { border: none; background: transparent; color: var(--muted); border-radius: 999px; padding: 0.4rem 0.9rem; min-height: 38px; cursor: pointer; font-weight: 600; }
.uc.on { background: var(--accent); color: #06241f; }
@media (min-width: 1000px) {
  .today22 .today-hero { grid-template-columns: 1fr 1fr; column-gap: 0.75rem; }
  .today22 .th-top, .today22 .th-nav, .today22 .th-actions { grid-column: 1 / -1; }
}
.woop-badges { display: flex; flex-direction: column; gap: 0.1rem; }
.woop-badge { margin: 0.25rem 0; border-left: 3px solid var(--woop); }
.woop-badge > summary { display: flex; align-items: center; gap: 0.55rem; padding: 0.55rem 0.7rem; min-height: 44px; }
.woop-badge.st-done { border-left-color: var(--accent); }
.wb-slot { color: var(--woop); font-weight: 700; font-size: 0.8rem; }
.wb-title { flex: 1; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.wb-st { font-size: 0.72rem; color: var(--accent); border: 1px solid rgba(62,224,196,0.4); border-radius: 999px; padding: 0.05rem 0.45rem; }
.wb-body { padding: 0 0.7rem 0.65rem; display: flex; flex-direction: column; gap: 0.3rem; }
.outputs-strip { justify-content: space-around; gap: 0.5rem; margin: 0.25rem 0 0.5rem; }
.th-call-acts { border-top: 1px solid var(--hair); margin-top: 0.6rem; }
.delivery-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; font-size: 0.75rem; }
.dl-pills { display: inline-flex; gap: 0.25rem; flex-wrap: wrap; }
.dl-state { border: 1px solid var(--hair); border-radius: 999px; padding: 0.08rem 0.5rem; color: var(--muted); font-size: 0.72rem; white-space: nowrap; }
.dl-state.on { border-color: var(--accent); color: var(--accent); }

/* routine rows */
.routine22 .card-h { flex-wrap: wrap; }
.rt-list { display: flex; flex-direction: column; }
.rt-row { display: grid; grid-template-columns: 48px 1fr; column-gap: 0.6rem; padding: 0.55rem 0; border-top: 1px solid rgba(42,51,64,0.6); align-items: start; }
.rt-row:first-child { border-top: none; }
.rt-check { width: 44px; height: 44px; min-width: 44px; border-radius: 12px; border: 2px solid var(--hair); background: var(--field); color: #06241f; font-size: 1.25rem; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.rt-check:hover { border-color: var(--accent); }
.rt-check.on { background: var(--accent); border-color: var(--accent); }
.rt-main { min-width: 0; padding-top: 0.2rem; }
.rt-label { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: baseline; }
.rt-n { color: var(--muted); font-size: 0.75rem; min-width: 1.4rem; }
.rt-name { font-weight: 600; overflow-wrap: anywhere; }
.rt-sub { color: var(--muted); font-size: 0.82rem; }
.rt-row.done .rt-name { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(139,154,171,0.5); }
.rt-row.disabled { opacity: 0.55; }
.rt-line { margin-top: 0.15rem; }
.rt-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.25rem; }
.rt-link { color: var(--accent); cursor: pointer; }
.rt-exps { grid-column: 2 / -1; min-width: 0; }
.subs { display: flex; flex-direction: column; gap: 0.1rem; }
.sub-row { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; cursor: pointer; }
.big-check { width: 24px; height: 24px; min-width: 24px; accent-color: var(--accent); cursor: pointer; }
.note-prev { border-left: 2px solid var(--hair); padding-left: 0.5rem; margin: 0.3rem 0; }
.rt-x textarea { margin: 0.35rem 0; }
@media (max-width: 480px) { .rt-exps { grid-column: 1 / -1; } }

/* call panel / action items */
.call-panel { display: flex; flex-direction: column; gap: 0.2rem; }
.pin { border-left: 3px solid var(--accent); }
.pillar { margin: 0.35rem 0; }
.pillar label { display: block; font-weight: 600; font-size: 0.85rem; }
.cluster { border: 1px solid var(--hair); border-radius: 10px; padding: 0.55rem 0.7rem; margin: 0.45rem 0; }
.cl-h { font-weight: 700; margin-bottom: 0.25rem; }
.cl-f { font-size: 0.85rem; margin: 0.15rem 0; overflow-wrap: anywhere; }
.cl-f b { color: var(--muted); font-weight: 600; margin-right: 0.3rem; }
.act-lists { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
@media (min-width: 900px) { .act-lists { grid-template-columns: 1fr 1fr; } }
.act-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.act-item { border: 1px solid var(--hair); border-radius: 10px; padding: 0.55rem 0.65rem; background: rgba(255,255,255,0.015); }
.act-item.done { border-color: rgba(62,224,196,0.35); }
.act-top { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; justify-content: space-between; }
.act-text { font-weight: 600; overflow-wrap: anywhere; flex: 1 1 60%; }
.act-resp { width: 100%; margin: 0.35rem 0; }
.act-resp-done { border-left: 2px solid var(--accent); padding-left: 0.5rem; margin: 0.3rem 0; font-size: 0.85rem; }
.act-err { color: var(--danger); font-size: 0.8rem; min-height: 1em; }
.status-pill { font-size: 0.7rem; border-radius: 999px; padding: 0.05rem 0.5rem; border: 1px solid var(--hair); color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.status-pill.st-done { color: var(--accent); border-color: var(--accent); }
.owner-tag { font-size: 0.7rem; border-radius: 999px; padding: 0.05rem 0.5rem; background: rgba(106,168,255,0.12); color: var(--o-power); }
.pub { margin: 0.3rem 0; }

/* Daily OS */
.dos { margin: 0.25rem 0; }
.dos-stack { margin-bottom: 0.35rem; }
.dos-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; counter-reset: dos; }
.dos-item { display: grid; grid-template-columns: 34px 1fr; gap: 0.45rem; align-items: start; padding: 0.4rem 0.45rem; border: 1px solid var(--hair); border-radius: 10px; background: rgba(255,255,255,0.015); }
.dos-item:first-child { border-color: rgba(62,224,196,0.45); }
.dos-item.done .dos-text { color: var(--muted); text-decoration: line-through; }
.dos-check { display: flex; align-items: center; justify-content: center; min-height: 40px; }
.dos-main { min-width: 0; }
.dos-text { width: 100%; background: transparent; border-color: transparent; padding: 0.3rem 0.35rem; font-weight: 600; }
.dos-text:focus { background: var(--field); }
.tier-tag { display: inline-block; min-width: 1.3rem; text-align: center; border: 1px solid var(--hair); border-radius: 6px; font-size: 0.7rem; font-weight: 700; color: var(--accent); margin-right: 0.2rem; }
.dos-in textarea { margin: 0.35rem 0; }
.done-pile { margin-top: 0.4rem; }
.chat-modes { display: flex; gap: 0.3rem; margin: 0.35rem 0; }
.chat-dos { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--hair); overflow-y: auto; max-height: 58vh; }
.chat-thread.short { flex: 1 1 30%; }
.chat-h { position: relative; }
.chat-close { position: absolute; top: 0.45rem; right: 0.5rem; min-height: 36px; padding: 0.2rem 0.55rem; display: none; }
.chat-fab { display: none; }
@media (max-width: 767px) {
  .chat-rail { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: 86vh; max-height: 86vh; border-left: none; border-top: 1px solid var(--hair); border-radius: 16px 16px 0 0; transform: translateY(105%); box-shadow: 0 -12px 40px rgba(0,0,0,0.5); }
  .chat-rail.open { transform: translateY(0); }
  .chat-rail > .chat-toggle { display: none; }
  .chat-inner { width: 100%; }
  .chat-close { display: inline-flex; }
  .chat-fab { display: inline-flex; align-items: center; justify-content: center; position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 55; min-width: 56px; height: 48px; padding: 0 1rem; border-radius: 999px; background: var(--accent); color: #06241f; font-weight: 700; border: none; box-shadow: 0 6px 20px rgba(0,0,0,0.45); cursor: pointer; }
  .app.chat-open .chat-fab { bottom: calc(86vh + 10px); display: none; }
  .main { padding-bottom: 5rem; }
  .wr-page { padding-right: 0 !important; }
}

/* Calendar */
.cal22 { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 768px) { .cal22 { grid-template-columns: 250px 1fr; align-items: start; } }
.cal-rail { padding: 0.5rem 0.75rem; }
.cal-rail-btn { font-weight: 700; min-height: 40px; display: flex; align-items: center; }
.cal-src-list { display: flex; flex-direction: column; gap: 0.15rem; margin: 0.25rem 0; }
.cal-src { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 0.4rem; padding: 0.2rem 0; border-top: 1px solid rgba(42,51,64,0.5); }
.cal-src-l { display: flex; align-items: center; gap: 0.45rem; min-height: 40px; cursor: pointer; min-width: 0; }
.cal-src-l input { width: 20px; height: 20px; accent-color: var(--accent); }
.cal-src-name { overflow-wrap: anywhere; font-size: 0.88rem; }
.cal-src-id { grid-column: 1 / 2; font-size: 0.68rem; padding-left: 1.8rem; overflow-wrap: anywhere; }
.cal-src .linkish { grid-row: 1; grid-column: 2; }
.cal-swatch { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.cal-nav { margin-bottom: 0.5rem; align-items: center; }
.cal-month-l { min-width: 9rem; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-hd { font-size: 0.7rem; color: var(--muted); text-align: center; padding: 0.2rem 0; text-transform: uppercase; letter-spacing: 0.05em; }
.cal-cell { appearance: none; background: var(--field); border: 1px solid var(--hair); border-radius: 8px; min-height: 92px; padding: 0.25rem; text-align: left; color: var(--text); cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow: hidden; }
.cal-cell.empty { background: transparent; border-color: transparent; cursor: default; }
.cal-cell.today { border-color: var(--accent); }
.cal-cell.sel { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-d { font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.cal-cell.today .cal-d { color: var(--accent); }
.cal-item { font-size: 0.68rem; line-height: 1.25; border-left: 3px solid var(--o-none); background: rgba(255,255,255,0.04); border-radius: 4px; padding: 1px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-time { color: var(--muted); }
@media (max-width: 767px) {
  .cal-cell { min-height: 58px; padding: 2px; }
  .cal-item { font-size: 0; height: 6px; padding: 0; border-left-width: 0; border-radius: 3px; background: var(--o-none); }
  .cal-item.out-bd-money { background: var(--o-money); } .cal-item.out-bd-power { background: var(--o-power); } .cal-item.out-bd-beauty { background: var(--o-beauty); } .cal-item.out-bd-love { background: var(--o-love); }
}
.agenda-row { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 0.6rem; align-items: center; padding: 0.5rem 0; border-top: 1px solid rgba(42,51,64,0.6); }
.agenda-row:first-of-type { border-top: none; }
.agenda-time { font-size: 0.85rem; }
.agenda-title { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 480px) { .agenda-row { grid-template-columns: 1fr auto; } .agenda-time { grid-column: 1 / -1; } }

/* Systems */
.sys-form fieldset, .sf-fs { border: 1px solid var(--hair); border-radius: 10px; padding: 0.6rem 0.75rem; margin: 0.6rem 0; min-width: 0; }
.sys-form legend, .sf-fs legend { color: var(--muted); font-size: 0.8rem; padding: 0 0.3rem; text-transform: uppercase; letter-spacing: 0.05em; }
.sys-form label { display: block; margin: 0.35rem 0; }
.sys-form > label, .sys-form .sf-fs > label:not(.chk-inline) { display: flex; flex-direction: column; gap: 0.2rem; }
.sys-form label > input:not([type]), .sys-form label > input[type="text"], .sys-form label > select, .sys-form label > textarea { width: 100%; }
.sys-form label > input[type="number"] { max-width: 10rem; }
.sys-form .row > label:not(.chk-inline) { display: inline-flex; flex-direction: row; align-items: center; gap: 0.35rem; }
.chk-inline { display: inline-flex !important; align-items: center; gap: 0.4rem; margin: 0.2rem 0.8rem 0.2rem 0 !important; min-height: 40px; cursor: pointer; }
.chk-inline input { width: 20px; height: 20px; accent-color: var(--accent); }
.sf-err { color: var(--danger); font-size: 0.85rem; min-height: 1.1em; }
.sf-mode { margin-top: 0.4rem; }
.sys-box { display: block; }
@media (min-width: 900px) { .sys-box > .stack { display: grid; grid-template-columns: 1fr 1fr; align-items: start; } }
.sys-card { border: 1px solid var(--hair); border-left: 3px solid var(--o-none); border-radius: 10px; padding: 0.65rem 0.75rem; background: rgba(255,255,255,0.015); }
.sys-name { font-weight: 700; }
.sys-cad { font-size: 0.82rem; color: var(--muted); margin: 0.15rem 0; }
.sys-subs { display: flex; flex-direction: column; }
.sys-body { font-size: 0.85rem; }

/* Journal / compile */
.j-pane { margin: 0.5rem 0; }
.j-pane label { font-weight: 600; display: block; margin-bottom: 0.2rem; }
.md { font-size: 0.9rem; line-height: 1.55; overflow-wrap: anywhere; }
.md h2 { font-size: 1.05rem; margin-top: 0.8rem; } .md h3 { font-size: 0.92rem; color: var(--accent); margin-top: 0.6rem; }
.md-meta { color: var(--muted); font-size: 0.75rem; }
.book-day { margin: 0.4rem 0; }
.setup-card { border: 1px dashed var(--hair); background: rgba(255,255,255,0.01); }
.setup-card ol { padding-left: 1.2rem; margin: 0.35rem 0; }

/* WOOPS v2.2 additions */
.syl-list { display: flex; flex-direction: column; gap: 0.2rem; margin: 0.3rem 0; max-height: 360px; overflow-y: auto; }
.syl-row { display: grid; grid-template-columns: 5.6rem 1fr auto; gap: 0.4rem; align-items: center; }
.syl-row input { width: 100%; padding: 0.35rem 0.5rem; font-size: 0.85rem; }
.syl-d { font-size: 0.78rem; color: var(--muted); }
.syl-st { font-size: 0.72rem; color: var(--accent); }
.syl-u.unset { color: var(--muted); }
.ph-tag { font-size: 0.65rem; border: 1px dashed var(--muted); color: var(--muted); border-radius: 999px; padding: 0.05rem 0.45rem; vertical-align: middle; }
.nm .wr-modal-card, .wr-modal-card.nm { max-width: 760px; }
.nm-cards { display: flex; flex-direction: column; gap: 0.55rem; margin: 0.5rem 0; }
.nm-card { border: 1px solid var(--hair); border-left: 3px solid var(--woop); border-radius: 10px; padding: 0.6rem 0.7rem; }
.nm-card label { display: block; margin: 0.25rem 0; font-size: 0.82rem; color: var(--muted); }
.nm-card input, .nm-card textarea, .nm-card select { width: 100%; margin-top: 0.15rem; color: var(--text); }
.nm-owner { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.nm-ingest textarea { min-height: 8rem; }

/* Outputs page */
.out-grid { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
@media (min-width: 720px) { .out-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .out-grid { grid-template-columns: repeat(4, 1fr); } }
.out-col { border: 1px solid var(--hair); border-radius: 10px; padding: 0.6rem 0.7rem; }
.out-count { font-size: 1.4rem; font-weight: 700; }
.out-items { font-size: 0.82rem; margin: 0.3rem 0 0; padding-left: 1rem; }
.out-hist { width: 100%; }
.table-wrap { overflow-x: auto; max-width: 100%; }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: 0.85rem; }
.table-wrap th, .table-wrap td { padding: 0.35rem 0.45rem; border-bottom: 1px solid var(--hair); text-align: left; white-space: nowrap; }

/* Tools */
.tool-card { border: 1px solid var(--hair); border-radius: 10px; padding: 0.7rem 0.8rem; background: var(--card); }
.tool-job { color: var(--text); font-size: 0.9rem; margin: 0.2rem 0; }
.tools-grid { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
@media (min-width: 720px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tools-grid { grid-template-columns: repeat(3, 1fr); } }

/* phone: one column, no horizontal scroll */
@media (max-width: 767px) {
  html, body { overflow-x: hidden; }
  .main { padding: 0.6rem; max-width: 100vw; }
  .page-h h1 { font-size: 1.3rem; }
  .card { padding: 0.7rem 0.75rem; }
  .grades-row.outputs-strip .grade-circle { --sz: 64px !important; }
  .wr-page { padding-left: 0; }
  img, video, canvas { max-width: 100%; height: auto; }
}
@media (max-width: 767px) {
  .chat-rail:not(.open) { display: none; }
  .th-actions .card-h { flex-wrap: wrap; }
}
/* v2.2: inline (row) labels override the v2.1 `.card label` column rule */
.card .cal-src-l, .card .sub-row, .card .chk-inline, .card .dos-check, .card .seg label, .card .nm-owner label, .card label.file-btn, .card label.rt-link {
  flex-direction: row; align-items: center; color: var(--text); font-size: inherit;
}
.card .sub-row { gap: 0.6rem; }
.card .cal-src-l { gap: 0.45rem; font-size: 0.88rem; }
.card label.rt-link { color: var(--accent); font-size: 0.82rem; display: inline-flex; }
@media (min-width: 768px) {
  .topbar { padding-right: 46px; }
  .cal-item { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
.seg { flex-wrap: wrap; border-radius: 12px; max-width: 100%; }
@media (max-width: 600px) { .seg { display: flex; flex-direction: column; width: 100%; } .seg label { width: 100%; margin: 0 !important; } }

/* ============ v2.3.2 — WOOPS add-WOOP drop sheet (only new WOOPS UI; everything else is v2.2) ============ */
.wr-modal-card.wi-sheet { max-width: 560px; gap: 0.6rem; }
.wi-drop { display:flex; flex-direction:column; justify-content:center; gap:0.15rem; min-height:96px; padding:0.8rem 0.95rem;
  border:1.5px dashed var(--accent); border-radius:10px; background:rgba(62,224,196,0.06); cursor:pointer; min-width:0; }
.wi-drop:hover, .wi-drop:focus-visible, .wi-drop.over { background:rgba(62,224,196,0.14); outline:none; }
.wi-drop.busy { opacity:0.6; pointer-events:none; }
.wi-drop-t { font-weight:600; color:var(--accent); }
.wi-drop-s { font-size:0.8rem; }
.wi-note { margin:0; }
.wi-status:empty { display:none; }
.wi-err { color:#F5BA4A; }
.wi-confirm { display:flex; align-items:center; gap:0.5rem; flex-wrap:wrap; margin:0 0 0.75rem; padding:0.45rem 0.6rem; border:1px solid var(--hair); border-left:3px solid var(--accent); border-radius:8px; font-size:0.9rem; }
.wi-confirm > span { flex:1 1 12rem; min-width:0; }
.wi-confirm .btn { min-height:36px; padding:0.25rem 0.6rem; }

/* ============ v2.3.1 — Socials tabs + Studio pipeline ============ */
.soc-tabs { margin-top:0; }
.st-page { max-width:980px; }
.st-flow { list-style:none; display:flex; flex-wrap:wrap; gap:0.35rem; padding:0; margin:0 0 0.9rem; }
.st-flow li { display:flex; align-items:center; }
.st-flow li + li::before { content:'\2192'; color:var(--muted); margin-right:0.35rem; }
.st-flow-n { appearance:none; border:1px solid var(--hair); background:var(--card); color:var(--muted); border-radius:999px; padding:0.3rem 0.65rem; font:inherit; font-size:0.78rem; letter-spacing:0.04em; cursor:pointer; min-height:34px; }
.st-flow-n.st-done { border-color:var(--accent); color:var(--accent); }
.st-flow-n.st-active { border-color:var(--text); color:var(--text); }
.st-flow-n.st-skip { border-style:dashed; }
.st-pipe { position:relative; display:flex; flex-direction:column; gap:0; padding-left:1.1rem; }
.st-pipe::before { content:''; position:absolute; left:0.35rem; top:1rem; bottom:1rem; width:2px; background:linear-gradient(var(--accent), var(--hair)); opacity:0.6; }
.st-step { position:relative; min-width:0; }
.st-step::before { content:''; position:absolute; left:-0.95rem; top:1.2rem; width:0.6rem; height:0.6rem; border-radius:50%; background:var(--bg); border:2px solid var(--hair); }
.st-step.st-done::before { background:var(--accent); border-color:var(--accent); }
.st-step.st-active::before { border-color:var(--text); }
.st-step.st-active { border-color:#3a4656; }
.st-h { display:flex; align-items:center; gap:0.55rem; margin-bottom:0.35rem; flex-wrap:wrap; }
.st-h h3 { margin:0; letter-spacing:0.08em; font-size:0.95rem; }
.st-n { display:inline-flex; align-items:center; justify-content:center; width:1.7rem; height:1.7rem; border-radius:50%; border:1px solid var(--accent); color:var(--accent); font-weight:700; font-size:0.85rem; flex:none; }
.st-pill { font-size:0.7rem; text-transform:uppercase; letter-spacing:0.06em; border-radius:999px; padding:0.1rem 0.5rem; border:1px solid var(--hair); color:var(--muted); margin-left:auto; }
.st-pill.st-done { border-color:var(--accent); color:var(--accent); }
.st-pill.st-active { border-color:var(--text); color:var(--text); }
.st-pill.st-skip { border-style:dashed; }
.st-stub { display:inline-block; font-size:0.68rem; text-transform:uppercase; letter-spacing:0.08em; border:1px dashed #F5BA4A; color:#F5BA4A; border-radius:6px; padding:0 0.35rem; margin-right:0.25rem; }
.st-drop { border:1.5px dashed var(--hair); border-radius:10px; padding:0.6rem; display:flex; flex-direction:column; gap:0.35rem; }
.st-drop.over { border-color:var(--accent); background:rgba(62,224,196,0.08); }
.st-video { display:block; width:100%; max-width:560px; max-height:360px; background:#000; border-radius:8px; margin-top:0.5rem; }
.st-meta { overflow-wrap:anywhere; }
.st-lbl { font-size:0.75rem; text-transform:uppercase; letter-spacing:0.05em; color:var(--muted); margin:0.25rem 0; }
.st-moods { display:flex; flex-wrap:wrap; gap:0.35rem; }
.st-mood { min-height:40px; }
.st-clarity { display:grid; grid-template-columns:repeat(10, minmax(0,1fr)); gap:0.3rem; max-width:560px; }
.st-cl { min-height:44px; padding:0; justify-content:center; text-align:center; }
@media (max-width:480px) { .st-clarity { grid-template-columns:repeat(5, minmax(0,1fr)); } }
.st-step label { display:block; min-width:0; }
.st-step input[type="url"], .st-line { width:100%; max-width:100%; background:rgba(11,15,20,0.55); color:var(--text); border:1px solid var(--hair); border-radius:8px; padding:0.5rem 0.6rem; font:inherit; min-height:42px; }
.st-lines { display:flex; flex-direction:column; gap:0.35rem; margin:0.35rem 0 0.5rem; }
.st-line { font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-size:0.88rem; }
.st-msg:empty, .st-progress:empty { display:none; }
.st-inbox, .st-mini { display:flex; flex-direction:column; gap:0.3rem; }
.st-mini { flex-direction:row; justify-content:space-between; align-items:center; gap:0.5rem; border-top:1px solid var(--hair); padding-top:0.3rem; }
.st-ba, .st-out { display:grid; grid-template-columns:1fr; gap:0.5rem; margin-top:0.5rem; }
@media (min-width:720px) { .st-ba, .st-out { grid-template-columns:1fr 1fr; } }
.st-frame { display:block; width:100%; max-width:560px; border-radius:8px; border:1px solid var(--hair); margin-top:0.5rem; }
.st-prompt { margin:0.25rem 0 0.5rem; padding:0.5rem 0.7rem; border-left:3px solid var(--accent); background:rgba(11,15,20,0.5); border-radius:6px; font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-size:0.88rem; overflow-wrap:anywhere; }
.st-back { display:grid; grid-template-columns:1fr; gap:0.5rem; }
@media (min-width:720px) { .st-back { grid-template-columns:1fr 1fr; } }
.st-back-card { display:flex; gap:0.6rem; border:1px solid var(--hair); border-radius:10px; padding:0.5rem; min-width:0; }
.st-back-body { min-width:0; flex:1; display:flex; flex-direction:column; gap:0.2rem; }
.st-thumb { width:96px; height:54px; object-fit:cover; border-radius:6px; background:#000; flex:none; }
.st-thumb.sm { width:64px; height:36px; }
.st-thumb-none { border:1px dashed var(--hair); }
.st-link { overflow-wrap:anywhere; word-break:break-word; }
.st-posted { color:var(--accent); font-size:0.78rem; }
.st-approved { color:#F5BA4A; font-size:0.78rem; }
.st-warn { border:1px solid #F5BA4A; border-radius:8px; padding:0.45rem 0.6rem; font-size:0.88rem; }
.st-slot { border-top:1px solid var(--hair); padding-top:0.55rem; margin-top:0.55rem; display:flex; flex-direction:column; gap:0.4rem; min-width:0; }
.st-slot-h { display:flex; justify-content:space-between; align-items:center; gap:0.5rem; }
.st-pick { display:flex; flex-wrap:wrap; gap:0.4rem; }
.st-pick-opt { display:flex !important; align-items:center; gap:0.4rem; border:1px solid var(--hair); border-radius:8px; padding:0.3rem 0.5rem; cursor:pointer; min-height:44px; }
.st-pick-opt.on { border-color:var(--accent); }
.st-page .btn:disabled, .st-page .btn.disabled, .rn-confirm .btn:disabled { opacity:0.45; cursor:not-allowed; }
.st-page video, .st-page img { max-width:100%; }

/* ============ v2.3.1 — Release notes ============ */
.rn-tag h3 { margin:0; }
.rn-confirm { margin-top:0.6rem; border:1px solid #F5BA4A; border-radius:8px; padding:0.6rem; display:flex; flex-direction:column; gap:0.45rem; }
.rn-warn { margin:0; color:#F5BA4A; font-weight:600; }
.rn-type { width:100%; max-width:22rem; background:rgba(11,15,20,0.55); color:var(--text); border:1px solid var(--hair); border-radius:8px; padding:0.5rem 0.6rem; font:inherit; min-height:42px; }
.rn-cmd { background:#070A0E; border:1px solid var(--hair); border-radius:8px; padding:0.6rem 0.7rem; overflow-x:auto; max-width:100%; font-size:0.8rem; line-height:1.5; white-space:pre; }
.rn-steps li { margin-bottom:0.4rem; }
.rn-recipe code, .rn-tag code { overflow-wrap:anywhere; }

/* ============ v2.3.3 — Squad / Roundtable ============ */
@font-face { font-family: 'SquadInter'; src: local('Inter'), url('vendor/fonts/inter-squad.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
.sq-num { font-family: 'SquadInter', Inter, Geist, 'DIN Alternate', 'DIN 2014', 'D-DIN', system-ui, sans-serif; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.sq-page { min-width: 0; }
.sq-h2 { font-size: 0.95rem; margin: 0 0 0.45rem; letter-spacing: 0.02em; }
.sq-grid { display: grid; gap: 0.75rem; grid-template-columns: minmax(0, 1fr); grid-template-areas: "roster" "work" "dock"; margin: 0.75rem 0; min-width: 0; }
@media (min-width: 760px) { .sq-grid { grid-template-columns: 220px minmax(0, 1fr); grid-template-areas: "roster work" "dock dock"; } }
@media (min-width: 1180px) { .sq-grid { grid-template-columns: 228px minmax(0, 1fr) 250px; grid-template-areas: "roster work dock"; } }
.sq-roster { grid-area: roster; display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.sq-work { grid-area: work; display: flex; flex-direction: column; gap: 0.65rem; min-width: 0; }
.sq-dock { grid-area: dock; display: flex; flex-direction: column; gap: 0.65rem; min-width: 0; }
@media (min-width: 760px) and (max-width: 1179px) { .sq-dock { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.sq-seat { display: flex; gap: 0.55rem; align-items: center; padding: 0.45rem 0.55rem; border: 1px solid var(--hair); border-radius: 10px; color: var(--text); text-decoration: none; min-width: 0; background: var(--card); }
.sq-seat:hover { border-color: #3a4656; }
.sq-seat.on { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.sq-seat.overdue { border-color: rgba(248,113,113,0.55); }
.sq-seat-body { display: flex; flex-direction: column; min-width: 0; gap: 0.05rem; }
.sq-seat-name { font-size: 0.86rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.sq-seat-n { color: var(--muted); font-weight: 500; }
.sq-seat-meta, .sq-seat-due { font-size: 0.74rem; color: var(--muted); }
.sq-overdue { color: var(--danger); font-weight: 700; letter-spacing: 0.03em; }
.sq-red, .sq-red * { color: var(--danger); }
.sq-ok { color: var(--muted); }
.sq-chair { border-style: dashed; }
.sq-circle { --sz: 64px; position: relative; flex: none; width: var(--sz); height: var(--sz); border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--hair) 0); }
.sq-circle::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--bg); }
.sq-circle > * { position: relative; }
.sq-circle .sq-num { font-size: calc(var(--sz) * 0.36); font-weight: 700; line-height: 1; }
.sq-circle.sm { --sz: 44px; }
.sq-circle.sm::before { inset: 4px; }
.sq-circle.grey { background: none; border: 2px dashed #4b5563; }
.sq-circle.grey::before { display: none; }
.sq-circle.grey .sq-num { color: var(--muted); }
.sq-grey-tag { position: absolute !important; bottom: 14%; font-size: 0.5rem; letter-spacing: 0.1em; color: var(--muted); }
.sq-circle.sm .sq-grey-tag { display: none; }
.sq-circle.chair { background: none; border: 1px dashed var(--muted); --sz: 44px; }
.sq-circle.chair::before { display: none; }
.sq-grey-txt { color: var(--muted); font-weight: 600; }
.sq-example { display: inline-block; font-size: 0.62rem; letter-spacing: 0.08em; border: 1px dashed #F5BA4A; color: #F5BA4A; border-radius: 5px; padding: 0 0.3rem; vertical-align: middle; }
.sq-top-h { display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; align-items: baseline; }
.sq-woops { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sq-woop { display: flex; flex-direction: column; border: 1px solid var(--hair); border-radius: 8px; padding: 0.35rem 0.55rem; min-width: 0; max-width: 100%; }
.sq-woop-t { font-weight: 600; font-size: 0.86rem; overflow-wrap: anywhere; }
.sq-woop-s { font-size: 0.72rem; overflow-wrap: anywhere; }
.sq-woop-by { font-size: 0.75rem; }
.sq-none { margin: 0; }
.sq-seat-head-row { display: flex; gap: 0.75rem; align-items: center; min-width: 0; }
.sq-seat-head-t { min-width: 0; }
.sq-seat-head h2 { margin: 0 0 0.15rem; font-size: 1.1rem; }
.sq-persona { margin: 0.5rem 0 0.35rem; }
.sq-ref { margin: 0.25rem 0; color: #cbd5e1; border-left: 2px solid var(--hair); padding-left: 0.5rem; }
.sq-disclaimer { margin: 0.35rem 0; padding: 0.35rem 0.55rem; border: 1px solid #F5BA4A; border-radius: 8px; color: #F5BA4A; font-weight: 600; }
.sq-cad { list-style: none; padding: 0; margin: 0.4rem 0 0; display: flex; flex-direction: column; gap: 0.15rem; }
.sq-cad li { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.sq-drop { display: flex; flex-direction: column; gap: 0.1rem; border: 1.5px dashed var(--hair); border-radius: 10px; padding: 0.7rem; cursor: pointer; min-height: 64px; justify-content: center; }
.sq-drop.over, .sq-drop:focus-visible { border-color: var(--accent); background: rgba(62,224,196,0.08); outline: none; }
.sq-drop-t { font-weight: 600; color: var(--accent); }
.sq-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.45rem; margin: 0.5rem 0; }
.sq-form label, .sq-meta label, .sq-anon-row label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.8rem; color: var(--muted); min-width: 0; }
.sq-block { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.45rem; min-width: 0; }
.sq-page select, .sq-page input:not([type=checkbox]):not([type=range]), .sq-page textarea { width: 100%; max-width: 100%; min-width: 0; background: rgba(11,15,20,0.55); color: var(--text); border: 1px solid var(--hair); border-radius: 8px; padding: 0.45rem 0.55rem; font: inherit; font-size: 0.9rem; min-height: 40px; }
.sq-pending, .sq-pkts, .sq-notes, .sq-plan, .sq-deltas, .sq-roll-l { list-style: none; padding: 0; margin: 0.5rem 0 0; display: flex; flex-direction: column; gap: 0.35rem; }
.sq-pkt, .sq-note { border-top: 1px solid var(--hair); padding-top: 0.35rem; overflow-wrap: anywhere; }
.sq-pkt-id { font-size: 0.7rem; }
.sq-files { display: inline-flex; flex-wrap: wrap; gap: 0.35rem; }
.sq-rub-h { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.sq-rub-h h3 { margin: 0; }
.sq-total-wrap { display: flex; align-items: baseline; gap: 0.3rem; }
.sq-total { font-size: 1.8rem; font-weight: 700; color: var(--accent); }
.sq-total.grey { color: var(--muted); font-size: 1.1rem; letter-spacing: 0.08em; }
.sq-item { border-top: 1px solid var(--hair); padding: 0.4rem 0; }
.sq-item-h { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; font-size: 0.86rem; }
.sq-item-w { color: var(--muted); font-size: 0.8rem; }
.sq-item-row { display: flex; align-items: center; gap: 0.5rem; }
.sq-range { flex: 1; min-width: 0; accent-color: var(--accent); min-height: 32px; }
.sq-item.unset .sq-range { accent-color: #4b5563; opacity: 0.7; }
.sq-val { min-width: 1.6rem; text-align: right; font-weight: 700; }
.sq-item.unset .sq-val { color: var(--muted); }
.sq-w { display: flex !important; flex-direction: row !important; align-items: center; gap: 0.3rem; font-size: 0.75rem; color: var(--muted); }
.sq-page .sq-w-in { width: 4.2rem; min-height: 32px; padding: 0.2rem 0.35rem; }
.sq-w-foot { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: 0.4rem 0; }
.sq-meta { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 0.5rem; }
.sq-dissent { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
.sq-evts { margin: 0.45rem 0; overflow-wrap: anywhere; }
.sq-evts ul { margin: 0.2rem 0 0; padding-left: 1.1rem; }
.sq-plan-i { display: flex; gap: 0.5rem; align-items: center; border-top: 1px solid var(--hair); padding-top: 0.3rem; }
.sq-plan-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sq-plan-add { display: flex; gap: 0.4rem; margin: 0.5rem 0; align-items: stretch; }
.sq-plan-add > input, .sq-plan-add > textarea { flex: 1; }
.sq-x { min-height: 32px; padding: 0.1rem 0.5rem; }
.sq-phases { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0; margin: 0.4rem 0 0; }
.sq-phases li { border: 1px solid var(--hair); border-radius: 999px; padding: 0.2rem 0.6rem; font-size: 0.78rem; color: var(--muted); }
.sq-phases li.on { border-color: var(--text); color: var(--text); }
.sq-phases li.done { border-color: var(--accent); color: var(--accent); }
.sq-table td, .sq-table th { font-size: 0.82rem; }
.sq-peer { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.5rem; margin: 0.5rem 0; }
.sq-anon { border: 1px solid var(--hair); border-radius: 10px; padding: 0.5rem; min-width: 0; overflow-wrap: anywhere; }
.sq-anon h4 { margin: 0 0 0.3rem; }
.sq-anon-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
.sq-delta { border: 1px solid var(--hair); border-radius: 8px; padding: 0.45rem 0.55rem; overflow-wrap: anywhere; }
.sq-delta.held { border-style: dashed; }
.sq-delta.go { border-color: var(--accent); }
.sq-delta.nogo { opacity: 0.7; }
.sq-go, .sq-go-bulk { display: flex; gap: 0.4rem; margin-top: 0.35rem; flex-wrap: wrap; align-items: center; }
.sq-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.sq-cal-h { font-size: 0.66rem; color: var(--muted); text-align: center; }
.sq-cal-d { position: relative; border: 1px solid transparent; border-radius: 6px; text-align: center; font-size: 0.72rem; padding: 0.15rem 0 0.4rem; min-width: 0; background: rgba(255,255,255,0.02); }
.sq-cal-d.today { border-color: var(--text); }
.sq-cal-d.board { border-color: var(--accent); border-style: dashed; }
.sq-cal-d i { position: absolute; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; }
.sq-cal-d i.p { left: calc(50% - 6px); background: var(--accent); }
.sq-cal-d i.g { left: calc(50% + 1px); background: #F5BA4A; }
.sq-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.sq-dot.p { background: var(--accent); } .sq-dot.g { background: #F5BA4A; }
.sq-roll-l li { display: flex; justify-content: space-between; border-top: 1px solid var(--hair); padding-top: 0.2rem; font-size: 0.85rem; }
.sq-dock h3, .sq-work h3 { margin: 0 0 0.35rem; font-size: 0.92rem; }
.sq-min { border-top: 1px solid var(--hair); padding: 0.4rem 0; }
.sq-min summary { cursor: pointer; overflow-wrap: anywhere; }
.sq-min-act { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.4rem 0; }
.sq-md { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.78rem; background: #070A0E; border: 1px solid var(--hair); border-radius: 8px; padding: 0.6rem; max-height: 420px; overflow: auto; }
.sq-page code { overflow-wrap: anywhere; word-break: break-word; }
.sq-page .btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ============ v2.4 ============ */
.grey-val { display: inline-block; color: #0B0F14; background: #6B7785; border-radius: 6px; padding: 0 0.4rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; vertical-align: middle; }
.nav-sub { padding-left: 1.1rem !important; font-size: 0.92em; }
.nav-indent { color: var(--muted); }
.prof-chip { display: inline-flex; align-items: center; gap: 0.35rem; }
.prof-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #06241f; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.75rem; }
/* wake card */
.wake24 { border-left: 4px solid var(--accent); }
.wake24.st-acceptable { border-left-color: #7DD3FC; }
.wake24.st-minimum { border-left-color: #FBBF24; }
.wake24.st-crisis { border-left-color: var(--danger); }
.wk-top { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.woke-btn { font-size: 1.35rem; font-weight: 800; letter-spacing: 0.04em; min-height: 64px; padding: 0.6rem 1.6rem; background: var(--accent); color: #06241f; border: none; border-radius: 14px; cursor: pointer; flex: 0 0 auto; }
.wk-meta { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.wk-manual input[type=time] { background: var(--field, #0F141B); border: 1px solid var(--hair); border-radius: 8px; padding: 0.3rem 0.4rem; min-height: 36px; }
.state-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.7rem 0 0.4rem; align-items: center; }
.state-chip { border: 1px solid var(--hair); background: transparent; color: var(--muted); border-radius: 999px; padding: 0.35rem 0.85rem; min-height: 40px; cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; gap: 0.3rem; }
.state-chip.on { color: #06241f; background: var(--accent); border-color: var(--accent); }
.state-chip.st-acceptable.on { background: #7DD3FC; border-color: #7DD3FC; }
.state-chip.st-minimum.on { background: #FBBF24; border-color: #FBBF24; }
.state-chip.st-crisis.on { background: var(--danger); border-color: var(--danger); }
.auto-tag { font-size: 0.65rem; border: 1px solid currentColor; border-radius: 999px; padding: 0 0.3rem; opacity: 0.8; }
.wk-state { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: baseline; }
.wk-name { font-size: 1.3rem; margin: 0; }
.cut-line { color: var(--muted); }
.call-line { margin: 0.35rem 0; }
.crisis-call { color: var(--danger); }
.leftover { display: flex; gap: 0.4rem; align-items: center; }
.bm24 { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; border-top: 1px solid var(--hair); margin-top: 0.6rem; padding-top: 0.5rem; }
.bm-note { background: var(--field, #0F141B); border: 1px solid var(--hair); border-radius: 8px; padding: 0.3rem 0.5rem; min-height: 36px; min-width: 0; flex: 1 1 140px; }
/* routine v3 rows */
.rt-cols { display: grid; grid-template-columns: 48px 64px 1fr; column-gap: 0.6rem; padding-bottom: 0.2rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; }
.rt-row.v3 { grid-template-columns: 48px 64px 1fr; }
.rt-row.v3 .rt-exps { grid-column: 2 / -1; }
.rt-dur { width: 64px; min-height: 44px; background: var(--field, #0F141B); border: 1px solid var(--hair); border-radius: 10px; padding: 0.25rem 0.35rem; text-align: center; font-variant-numeric: tabular-nums; }
.rt-clock { color: var(--muted); font-size: 0.8rem; margin-left: auto; white-space: nowrap; }
.rt-subs { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin: 0.35rem 0; }
.sub-chip { border: 1px solid var(--hair); background: transparent; color: var(--muted); border-radius: 999px; padding: 0.25rem 0.7rem; min-height: 36px; cursor: pointer; font-size: 0.82rem; display: inline-flex; align-items: center; }
.sub-chip.on { border-color: var(--accent); color: var(--accent); background: rgba(62,224,196,0.08); }
.news-sum { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; flex: 1 1 260px; min-width: 0; }
.news-sum-in { flex: 1 1 180px; min-width: 0; background: var(--field, #0F141B); border: 1px solid var(--hair); border-radius: 8px; padding: 0.35rem 0.5rem; min-height: 36px; }
@media (max-width: 480px) { .rt-row.v3 { grid-template-columns: 48px 56px 1fr; } .rt-cols { grid-template-columns: 48px 56px 1fr; } .rt-dur { width: 56px; } .rt-row.v3 .rt-exps { grid-column: 1 / -1; } .rt-clock { margin-left: 0; } }
/* task-list + homework */
.tt-h, .hw-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem; align-items: baseline; }
.gh-off { color: #FBBF24; border: 1px solid rgba(251,191,36,0.45); border-radius: 999px; padding: 0.05rem 0.55rem; }
.tt-list, .hw-list { margin: 0.4rem 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; }
.tt-list li.blocked, .hw-row.blocked { border-left: 3px solid var(--danger); padding-left: 0.4rem; }
.tid { font-size: 0.72rem; color: var(--muted); overflow-wrap: anywhere; }
.pl-chip { font-size: 0.7rem; border: 1px solid var(--hair); border-radius: 999px; padding: 0 0.45rem; color: var(--text); white-space: nowrap; }
.pl-chip.grey { color: var(--muted); }
.blk-chip { font-size: 0.7rem; color: #fff; background: var(--danger); border-radius: 999px; padding: 0 0.45rem; }
.hw-f { display: flex; gap: 0.4rem; margin-top: 0.25rem; }
.hw-note { flex: 1; min-width: 0; background: var(--field, #0F141B); border: 1px solid var(--hair); border-radius: 8px; padding: 0.35rem 0.5rem; min-height: 40px; }
.warn { color: #FBBF24; }
/* squad coworking */
.cw-tabs { display: flex; gap: 0.3rem; margin: 0.2rem 0 0.75rem; border-bottom: 1px solid var(--hair); }
.cw-tab { padding: 0.5rem 0.9rem; border-bottom: 2px solid transparent; color: var(--muted); min-height: 40px; display: inline-flex; align-items: center; }
.cw-tab.on { color: var(--accent); border-bottom-color: var(--accent); }
.cw-tabwrap { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.cw24 .cw-sec { margin-bottom: 0.75rem; }
.drift-banner { background: rgba(248,113,113,0.14); border: 1px solid var(--danger); color: #FECACA; border-radius: 10px; padding: 0.6rem 0.8rem; margin-bottom: 0.6rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.drift-banner strong { color: #fff; background: var(--danger); padding: 0 0.4rem; border-radius: 4px; }
.draft-banner { border: 1px dashed rgba(251,191,36,0.6); color: #FDE68A; border-radius: 10px; padding: 0.4rem 0.7rem; margin-bottom: 0.6rem; }
.hs-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.hs-cell { border: 1px solid var(--hair); border-radius: 10px; padding: 0.5rem; min-width: 0; }
.hs-l { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.hs-v { font-size: 1.6rem; font-weight: 700; }
.hs-in { width: 100%; background: var(--field, #0F141B); border: 1px solid var(--hair); border-radius: 8px; padding: 0.25rem 0.4rem; min-height: 36px; }
@media (max-width: 560px) { .hs-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.6rem; }
.pl-tile { border: 1px solid var(--hair); border-radius: 12px; padding: 0.6rem 0.7rem; min-width: 0; }
.pl-tile header { display: flex; justify-content: space-between; align-items: baseline; gap: 0.4rem; }
.pl-tile h3 { font-size: 1rem; }
.pl-grade { font-size: 1.3rem; font-weight: 700; }
.pl-bar { height: 6px; background: var(--hair); border-radius: 999px; overflow: hidden; margin: 0.4rem 0 0.2rem; }
.pl-bar span { display: block; height: 100%; background: var(--accent); }
.pl-top { padding-left: 1.1rem; margin: 0.35rem 0; }
.pl-blk { color: var(--danger); padding-left: 1.1rem; margin: 0.3rem 0; }
.pl-cfg label { display: block; margin: 0.25rem 0; }
.pl-cfg input { width: 100%; }
.drop-zone { border: 2px dashed var(--hair); border-radius: 12px; padding: 0.6rem; display: flex; flex-direction: column; gap: 0.4rem; }
.drop-zone.over { border-color: var(--accent); }
.drop-zone textarea { width: 100%; background: var(--field, #0F141B); border: 1px solid var(--hair); border-radius: 8px; padding: 0.5rem; }
.doc-md { white-space: pre-wrap; overflow-wrap: anywhere; background: #0F141B; border: 1px solid var(--hair); border-radius: 8px; padding: 0.6rem; font-size: 0.8rem; max-width: 100%; }
.lane { border-top: 1px solid var(--hair); padding: 0.4rem 0; }
.lane-h { font-size: 0.95rem; }
.lane-cards { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.3rem; }
.rm-card { flex: 0 0 240px; display: flex; gap: 0.45rem; border: 1px solid var(--hair); border-left: 3px solid var(--accent); border-radius: 10px; padding: 0.45rem; min-width: 0; }
.rm-card.blocked { border-left-color: var(--danger); }
.rm-card.closed { opacity: 0.6; }
.face { width: 26px; height: 26px; min-width: 26px; border-radius: 50%; background: var(--hair); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; }
.f1-in { width: 120px; min-width: 0; background: transparent; border: 1px solid var(--hair); border-radius: 6px; padding: 0.1rem 0.3rem; font-size: 0.75rem; }
.rt-thoughts { padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.3rem; }
.tbl-scroll { overflow-x: auto; max-width: 100%; }
.idea-tbl { border-collapse: collapse; font-size: 0.8rem; min-width: 1100px; }
.idea-tbl th, .idea-tbl td { border-bottom: 1px solid var(--hair); padding: 0.3rem 0.35rem; text-align: left; vertical-align: top; }
.idea-tbl thead th { font-weight: 600; color: var(--muted); font-size: 0.7rem; }
.idea-tbl .de-h, .idea-tbl .de-score { position: sticky; right: 0; background: var(--card); font-weight: 800; color: var(--accent); }
.idea-tbl tr.parked { opacity: 0.55; }
.cell-in { background: #0F141B; border: 1px solid var(--hair); border-radius: 6px; }
.cell-in.c100 { border-color: var(--accent); color: var(--accent); }
.cell-in.c50 { border-color: #FBBF24; color: #FBBF24; }
.jtbd details input, .jtbd details select { width: 90px; display: block; margin: 0.15rem 0; }
.badge.num { font-weight: 700; }
.mx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.6rem; }
.burn { width: 100%; height: 60px; fill: var(--accent); }
.send-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.6rem; }
.send-txt { white-space: pre-wrap; overflow-wrap: anywhere; background: #0F141B; border: 1px solid var(--hair); border-radius: 8px; padding: 0.5rem; font-size: 0.78rem; min-height: 80px; }
.status-manual { font-size: 0.72rem; color: #FBBF24; border: 1px solid rgba(251,191,36,0.5); border-radius: 999px; padding: 0 0.45rem; vertical-align: middle; }
/* settings + gate */
.prof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.5rem; }
.prof-card { display: flex; gap: 0.6rem; align-items: center; text-align: left; border: 1px solid var(--hair); background: transparent; border-radius: 12px; padding: 0.6rem; cursor: pointer; }
.prof-card > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.prof-card.on { border-color: var(--accent); }
.prof-face { width: 36px; height: 36px; min-width: 36px; border-radius: 50%; background: var(--accent); color: #06241f; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.gate-chip { font-size: 0.72rem; color: #FBBF24; border: 1px solid rgba(251,191,36,0.5); border-radius: 999px; padding: 0 0.45rem; vertical-align: middle; font-weight: 500; }
.pass-row { margin: 0.35rem 0; }
.pass-in, .priv-grid input, #set-members input, #set-admin input, #set-admin textarea { background: var(--field, #0F141B); border: 1px solid var(--hair); border-radius: 8px; padding: 0.35rem 0.5rem; min-height: 38px; max-width: 100%; }
.priv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.5rem; }
.priv-grid label, #set-admin label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.85rem; }
#auth-gate { display: none; position: fixed; inset: 0; background: rgba(5,8,12,0.92); z-index: 200; align-items: center; justify-content: center; padding: 1rem; }
#auth-gate.show { display: flex; }
.gate-card { background: var(--card); border: 1px solid var(--hair); border-radius: 14px; padding: 1.2rem; max-width: 420px; width: 100%; display: flex; flex-direction: column; gap: 0.6rem; }
.gate-card input { width: 100%; background: #0F141B; border: 1px solid var(--hair); border-radius: 8px; padding: 0.5rem; min-height: 44px; }
.gate-err { color: var(--danger); }
.gate-note { color: #FBBF24; }
/* identities */
.id-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0.75rem; margin-bottom: 0.75rem; }
.id-fields { display: grid; grid-template-columns: 1fr; gap: 0.2rem; margin: 0.4rem 0; }
.idf { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.5rem; border-bottom: 1px solid rgba(42,51,64,0.6); padding: 0.2rem 0; }
.idf dt { color: var(--muted); font-size: 0.8rem; }
.idf dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.idf input { width: 100%; background: #0F141B; border: 1px solid var(--hair); border-radius: 6px; padding: 0.2rem 0.4rem; }
@media (max-width: 420px) { .idf { grid-template-columns: 1fr; gap: 0; } }
.id-status { font-size: 0.75rem; border-radius: 999px; padding: 0.05rem 0.55rem; border: 1px solid var(--hair); white-space: nowrap; }
.id-status.st-live { color: var(--accent); border-color: var(--accent); }
.id-status.st-pending-DNS, .id-status.st-pending-mailbox { color: #FBBF24; border-color: rgba(251,191,36,0.6); }
.id-map { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.id-map th, .id-map td { border-bottom: 1px solid var(--hair); padding: 0.35rem; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.id-map input { width: 100%; background: #0F141B; border: 1px solid var(--hair); border-radius: 6px; padding: 0.2rem 0.4rem; }
.zoho-steps { padding-left: 1.3rem; display: flex; flex-direction: column; gap: 0.35rem; }
.zoho-steps label { display: flex; gap: 0.45rem; align-items: flex-start; }
.zoho24 textarea { width: 100%; background: #0F141B; border: 1px solid var(--hair); border-radius: 8px; padding: 0.4rem; }
.tl-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.tl { display: flex; gap: 0.6rem; align-items: flex-start; }
.tl-dot { width: 14px; height: 14px; min-width: 14px; border-radius: 50%; margin-top: 0.25rem; background: #6B7785; }
.tl-red .tl-dot { background: var(--danger); }
.tl-amber .tl-dot { background: #FBBF24; }
.tl-green .tl-dot { background: var(--accent); }
.tools24 { padding-top: 0; }
/* —— v2.4 Studio: the page is the diagram (vertical spine 1–7) —— */
.st-legend { margin: 0 0 0.9rem; padding: 0.55rem 0.8rem; border: 1px solid rgba(62,224,196,0.45); border-radius: 10px; color: var(--accent); font-weight: 700; letter-spacing: 0.01em; background: rgba(62,224,196,0.06); }
.st-map { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.st-spine { display: none; }
@media (min-width: 1100px) {
  .st-map { grid-template-columns: 150px 1fr; }
  .st-spine { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; position: sticky; top: 72px; align-self: start; gap: 0; }
  .st-station { display: flex; align-items: center; gap: 0.55rem; position: relative; padding: 0.35rem 0; }
  .st-station + .st-station::before { content: ''; position: absolute; left: 15px; top: -0.35rem; height: 0.7rem; width: 2px; background: var(--hair); }
  .st-station.st-done + .st-station::before { background: var(--accent); }
  .st-node { width: 32px; height: 32px; min-width: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--hair); color: var(--muted); font-weight: 800; font-size: 0.85rem; text-decoration: none !important; }
  .st-node-l { font-size: 0.74rem; letter-spacing: 0.06em; color: var(--muted); }
  .st-station.st-done .st-node { background: var(--accent); border-color: var(--accent); color: #06241f; }
  .st-station.st-live .st-node { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px rgba(62,224,196,0.18), 0 0 18px rgba(62,224,196,0.45); }
  .st-station.st-live .st-node-l { color: var(--text); font-weight: 700; }
  .st-station.st-dim { opacity: 0.5; }
}
.st-diagram .st-pipe { padding-left: 0; gap: 0; }
.st-diagram .st-pipe::before { display: none; }
.st-diagram .st-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 0.7rem; border: none; padding: 0; margin: 0; background: none; }
.st-diagram .st-step::before { display: none; }
.st-rail { position: relative; display: flex; justify-content: center; }
.st-rail::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; transform: translateX(-50%); background: var(--hair); }
.st-step:first-child .st-rail::before { top: 22px; }
.st-step:last-child .st-rail::before { bottom: calc(100% - 22px); }
.st-step.st-done .st-rail::before { background: var(--accent); }
.st-dot { position: relative; z-index: 1; margin-top: 0.75rem; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: var(--bg); border: 3px solid var(--hair); color: var(--muted); }
.st-step.st-done .st-dot { background: var(--accent); border-color: var(--accent); color: #06241f; }
.st-step.st-live .st-dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 5px rgba(62,224,196,0.18), 0 0 22px rgba(62,224,196,0.5); }
.st-card { margin: 0.4rem 0 0.8rem; min-width: 0; }
.st-step.st-live .st-card { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(62,224,196,0.35), 0 0 28px rgba(62,224,196,0.12); }
.st-step.st-dim .st-card { opacity: 0.5; }
.st-step.st-dim .st-card:hover, .st-step.st-dim .st-card:focus-within { opacity: 0.85; }
.st-step.st-done .st-card { border-color: rgba(62,224,196,0.35); }
.st-mark { margin-left: auto; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; border-radius: 999px; padding: 0.1rem 0.55rem; border: 1px solid var(--hair); color: var(--muted); }
.st-mark.done { border-color: var(--accent); color: var(--accent); }
.st-mark.live { border-color: var(--accent); background: var(--accent); color: #06241f; font-weight: 700; }
.st-say { font-size: 1.05rem; font-weight: 600; margin: 0.1rem 0 0.55rem; }
.st-private { color: #FBBF24; margin: 0.4rem 0 0; }
.st-slider { width: 100%; accent-color: var(--accent); min-height: 36px; }
.st-slider[data-set="0"] { opacity: 0.6; }
.st-ticks { display: flex; justify-content: space-between; font-size: 0.68rem; color: var(--muted); padding: 0 0.3rem; }
.st-cl-val { margin-left: 0.4rem; color: var(--accent); }
.st-thu { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-bottom: 0.4rem; }
.st-thu-badge { background: rgba(196,90,18,0.18); border: 1px solid var(--woop); color: #F6B27A; border-radius: 999px; padding: 0.1rem 0.6rem; font-size: 0.78rem; font-weight: 700; }
.st-thu.today .st-thu-badge { background: var(--woop); color: #fff; }
.st-play-slot video { width: 100%; max-height: 260px; margin: 0.35rem 0; }
@media (max-width: 480px) { .st-diagram .st-step { grid-template-columns: 34px minmax(0, 1fr); column-gap: 0.5rem; } .st-dot { width: 32px; height: 32px; font-size: 0.85rem; } .st-step:first-child .st-rail::before { top: 18px; } }
.st-step label.linkish { display: inline; color: var(--accent); text-decoration: underline; cursor: pointer; }
@media (max-width: 767px) { .prof-chip .prof-name { display: none; } .topbar .toolbar .prof-chip { padding: 0.2rem 0.35rem; } }
.nav-prof { display: none; }
@media (max-width: 767px) {
  .topbar .toolbar .prof-chip { display: none; } /* phone: profile lives in the ☰ menu so the top bar keeps its one-row height */
  .topbar .nav .nav-prof { display: flex; align-items: center; min-height: 44px; padding: 0.65rem 0.8rem; border-top: 1px solid var(--hair); margin-top: 0.3rem; color: var(--accent); }
}
@media (max-width: 767px) { .topbar .menu-btn { max-width: 118px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; } }
@media (max-width: 380px) { .topbar .menu-btn { max-width: 104px; } }
.wake24 label.leftover { display: flex; gap: 0.5rem; align-items: flex-start; }
.wake24 label.leftover input { margin-top: 0.2rem; flex: none; }
