/* Maple Ridge Social — Social Studio */
@font-face { font-family: "Trend Sans One"; src: url("../assets/fonts/TrendSansOne.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "True North"; src: url("../assets/fonts/TrueNorth-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }

:root {
  --slate: #596568;
  --ink: #2E3638;
  --ink-2: #4A5557;
  --muted: #6E7A7D;
  --mist: #8DA2A8;
  --fog: #C1CACD;
  --line: #D9DDDD;
  --line-2: #EDEEEC;
  --paper: #F7F6F4;
  --white: #FFFFFF;
  --clay: #A97958;
  --rust: #9C5346;
  --moss: #5C7A5E;
  --amber: #B9873F;
  --forest: #49584C;
  --peach: oklch(0.95 0.0343 55.31);
  --shadow: 0 2px 8px rgba(46, 54, 56, .08);
  --display: "Trend Sans One", Georgia, serif;
  --label: "True North", system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; }
a { color: var(--slate); }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Shell ---------- */
.app { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 248px; max-width: 100%; background: var(--slate); color: #fff; padding: 32px 28px; display: flex; flex-direction: column; gap: 40px; }
.brand { display: flex; flex-direction: column; gap: 14px; }
.brand img { width: 168px; height: auto; display: block; }
.brand span { font-family: var(--label); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 12px 0; color: #fff; text-decoration: none; font-size: 16px; min-height: 44px; }
.nav a.on { font-weight: 600; }
.nav a.on .lbl { border-bottom: 2px solid var(--clay); padding-bottom: 2px; }
.nav a:hover .lbl { border-bottom: 2px solid rgba(255,255,255,.4); padding-bottom: 2px; }
.nav a.on:hover .lbl { border-bottom-color: var(--clay); }
.badge { margin-left: auto; min-width: 24px; height: 24px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #fff; color: var(--slate); font-size: 13px; font-weight: 700; }
.badge.red { background: var(--rust); color: #fff; }
.conn { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.24); }
.conn .k { font-family: var(--label); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.conn div { display: flex; justify-content: space-between; font-size: 14px; }
.conn a { color: #fff; font-weight: 700; }

.main:focus { outline: none; }
.main { flex: 999 1 560px; min-width: 0; padding: 40px 48px 48px; display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 720px) {
  .main { padding: 24px 16px 32px; }
  .side { padding: 24px 16px; gap: 24px; }
  .nav { flex-direction: row; flex-wrap: wrap; gap: 0 20px; }
  .conn { display: none; }
}

/* ---------- Header ---------- */
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.title { display: flex; flex-direction: column; gap: 10px; }
.eyebrow { font-family: var(--label); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.rule { width: 48px; height: 2px; background: var(--clay); }
h1 { margin: 6px 0 0; font-family: var(--display); font-weight: 400; font-size: 46px; line-height: 1.02; letter-spacing: -.01em; color: var(--slate); }
.h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.15; color: var(--slate); }
.h2.lg { font-size: 28px; }
.h2.md { font-size: 26px; }
.h2.sm { font-size: 22px; }
.k { font-family: var(--label); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.lede { font-size: 17px; line-height: 1.5; }
@media (max-width: 720px) { h1 { font-size: 36px; } }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.steps li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.steps li.cur { font-weight: 600; color: var(--slate); }
.steps li.done { color: var(--slate); }
.step { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--mist); border-radius: 2px; color: inherit; text-decoration: none; }
.cur .step { background: var(--slate); border-color: var(--slate); color: #fff; }
.done .step { background: var(--fog); border-color: var(--fog); color: var(--ink); }

/* ---------- Building blocks ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.card.p24 { padding: 24px; gap: 14px; }
.card.p20 { padding: 20px; gap: 12px; }
.card.flush { padding: 0; gap: 0; }
.card.raised { border: 0; box-shadow: var(--shadow); padding: 0; gap: 0; overflow: hidden; }
.card.warn { border-color: var(--rust); }
.row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.grow { flex: 1 1 560px; }
.grow-lg { flex: 999 1 600px; }
.aside { flex: 1 1 300px; max-width: 400px; }
.aside-lg { flex: 1 1 380px; max-width: 480px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.lh { line-height: 1.55; }
.strong { font-weight: 600; }
.danger { color: var(--rust); }
.note { background: var(--paper); border-radius: 4px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.note.lg { padding: 18px 20px; font-size: 16px; line-height: 1.6; }
.dl { display: flex; flex-direction: column; }
.dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.dl > div > span:first-child { color: var(--ink-2); }
.dl > div > span:last-child { font-weight: 600; text-align: right; }
.dl.tight > div { padding: 0; border: 0; }
.dl.tight { gap: 12px; }
.hr { height: 1px; background: var(--line); }
.swatch { width: 12px; height: 12px; flex: none; display: inline-block; border: 1px solid rgba(46,54,56,.25); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 14px; color: var(--ink-2); align-items: center; }
.legend > span { display: inline-flex; align-items: center; gap: 8px; }
.inline { display: inline-flex; align-items: center; gap: 8px; }

/* buttons */
.btn { height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; border-radius: 4px; border: 1px solid var(--slate); background: var(--slate); color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.btn:hover { color: #fff; background: var(--ink); border-color: var(--ink); }
.btn.ghost { background: transparent; color: var(--slate); }
.btn.ghost:hover { background: var(--paper); color: var(--ink); }
.btn.text { background: transparent; border-color: transparent; color: var(--slate); padding: 0 4px; }
.btn.text:hover { color: var(--ink); background: transparent; }
.btn.sm { height: 40px; padding: 0 14px; font-size: 13px; }
.btn.md { height: 44px; padding: 0 18px; font-size: 13px; }
.btn.quiet { background: transparent; color: var(--slate); border-color: var(--line); }
.btn.dashed { background: transparent; color: var(--slate); border: 1px dashed var(--mist); }
.btn:disabled, .btn.off { background: var(--line); border-color: var(--line); color: var(--muted); }
.btn.ghost:disabled { background: transparent; border-color: #9AA3A5; color: #9AA3A5; }
.link-caps { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 4px; color: var(--slate); }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--line-2); color: var(--ink); border: 1px solid var(--line-2); white-space: nowrap; }
.chip.peach { background: var(--peach); border-color: var(--peach); }
.chip.bad { background: #fff; color: var(--rust); border-color: var(--rust); }
.chip.out { background: #fff; color: var(--slate); border-color: var(--slate); }
.chip.solid { background: var(--slate); border-color: var(--slate); color: #fff; }
.chip .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--moss); }
.chip.bad .dot { background: var(--rust); }
.tag { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; background: var(--line-2); border-radius: 999px; font-size: 15px; }
.tag-x { border: 0; background: transparent; padding: 0 0 0 6px; color: var(--muted); }

.seg { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.seg button { flex: 1 1 auto; border: 0; background: #fff; color: var(--slate); font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 0 16px; min-height: 44px; }
.seg button[aria-pressed="true"], .seg button[aria-checked="true"] { background: var(--slate); color: #fff; }
.seg.wide button { flex: 1 1 140px; padding: 14px 12px; }

.pill { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--slate); font-size: 15px; }
.pill[aria-pressed="true"] { background: var(--slate); border-color: var(--slate); color: #fff; }
.pill.sm { height: 34px; padding: 0 14px; font-size: 14px; }

.tabs { display: flex; flex-wrap: wrap; gap: 24px; border-bottom: 1px solid var(--line); }
.tabs.pad { padding: 0 28px; gap: 28px; }
.tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; height: 44px; padding: 0 2px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.tabs.pad button { height: 56px; }
.tabs button[aria-selected="true"] { border-bottom-color: var(--clay); }
.count { min-width: 24px; height: 24px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--line-2); color: var(--ink); font-size: 13px; letter-spacing: 0; }

/* forms */
.field { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 600; }
.field .hint { font-weight: 400; color: var(--ink-2); }
.input, .select, .textarea { height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 4px; font-weight: 400; color: var(--ink); background: #fff; width: 100%; }
.select { height: 44px; padding: 0 12px; }
.select.sm { height: 36px; width: auto; padding: 0 8px; }
.textarea { height: auto; padding: 14px 16px; font-size: 16px; line-height: 1.6; box-shadow: inset 0 0 0 1px rgba(46,54,56,.08); resize: vertical; }
.textarea.big { font-size: 17px; line-height: 1.65; }
.check { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 400; }
.check.top { align-items: flex-start; }
.check input, .cb { width: 20px; height: 20px; accent-color: var(--slate); flex: none; margin: 0; }
.check.top input { margin-top: 2px; }
.check.sm { font-size: 15px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: 15px; font-weight: 600; padding: 0; margin-bottom: 10px; }
.grid-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.searchbox { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 15px; background: #fff; }
.searchbox input { border: 0; outline: none; color: var(--ink); width: 200px; max-width: 100%; background: transparent; }
.settings-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.settings-row:last-child { border-bottom: 0; }

/* photos */
.photo { position: relative; background: var(--mist) center / cover no-repeat; display: block; flex: none; }
.ph-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: rgba(255,255,255,.75); }
.shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(46,54,56,.82) 0%, rgba(46,54,56,0) 62%); }
.overlay-text { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; flex-direction: column; gap: 2px; color: #fff; }
.overlay-text .t { font-family: var(--display); font-size: 20px; line-height: 1.15; }
.overlay-text .t.lg { font-size: 28px; }
.overlay-text .m { font-size: 14px; }
.crop-note { position: absolute; left: 12px; bottom: 10px; max-width: calc(100% - 24px); font-size: 13px; color: #fff; background: rgba(46,54,56,.72); padding: 2px 8px; border-radius: 2px; }

.source-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.source { text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 4px; padding: 24px; display: flex; flex-direction: column; gap: 14px; color: var(--ink); }
.source[aria-pressed="true"] { border-color: var(--slate); }
.source .top { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; }
.ico { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--line-2); color: var(--slate); border-radius: 2px; flex: none; font-family: var(--display); font-size: 18px; }
.source .name { font-family: var(--display); font-size: 24px; line-height: 1.15; color: var(--slate); }
.source .desc { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.source .where { font-size: 14px; font-weight: 600; color: var(--slate); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pick { position: relative; padding: 0; border: 0; aspect-ratio: 4 / 3; overflow: hidden; text-align: left; background: var(--mist) center / cover no-repeat; }
.pick[aria-pressed="true"] { outline: 3px solid var(--slate); outline-offset: 3px; }
.tick { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; background: var(--slate); color: #fff; border-radius: 2px; z-index: 1; }
.empty { padding: 48px 24px; text-align: center; color: var(--ink-2); }

.tpl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tpl { text-align: left; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 4px; display: flex; flex-direction: column; gap: 6px; }
.tpl[aria-pressed="true"] { background: var(--paper); border-color: var(--slate); }
.tpl b { font-weight: 600; font-size: 16px; color: var(--slate); }
.tpl span { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.design-tile { aspect-ratio: 1; display: flex; align-items: flex-end; padding: 12px; color: #fff; font-family: var(--display); font-size: 17px; line-height: 1.15; }

.footer-bar { margin-top: auto; background: #fff; box-shadow: var(--shadow); border-radius: 4px; padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-bar .grp { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.sel-thumb { width: 72px; height: 54px; }

/* Compose */
.pillar-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 4px; border: 1px solid var(--line); background: #fff; font-size: 15px; }
.pillar-btn[aria-pressed="true"] { border: 2px solid var(--slate); background: var(--paper); font-weight: 600; }
.ig-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.avatar { width: 34px; height: 34px; border-radius: 999px; background: var(--slate); flex: none; background-size: cover; }
.preview-cap { padding: 14px; font-size: 15px; line-height: 1.55; white-space: pre-line; }
.clamp4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.add-tag { display: inline-flex; gap: 6px; align-items: center; }
.add-tag input { height: 32px; border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; width: 180px; }

/* Schedule */
.plat { display: flex; align-items: center; gap: 14px; padding: 16px; border: 2px solid var(--line); border-radius: 4px; cursor: pointer; }
.plat.on { border-color: var(--slate); }
.week-list > div { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.week-list > div:last-child { border-bottom: 0; }
.week-list > div.me { background: var(--paper); margin: 0 -12px; padding: 12px; }
.week-list .d { width: 56px; flex: none; font-size: 14px; color: var(--ink-2); }
.slot-btn { height: 40px; padding: 0 16px; border-radius: 4px; border: 1px solid var(--line); background: #fff; font-size: 15px; }
.slot-btn[aria-pressed="true"] { border-color: var(--slate); background: var(--line-2); }

/* Calendar */
.cal { overflow-x: auto; padding: 0; gap: 0; }
.cal-in { min-width: 720px; }
.cal-dow, .cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow { border-bottom: 1px solid var(--line); }
.cal-dow div { padding: 12px; font-family: var(--label); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.cal-day { min-height: 128px; padding: 8px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 6px; background: #fff; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.out { background: var(--paper); color: var(--muted); }
.cal-day .n { align-self: flex-start; font-size: 14px; border-bottom: 2px solid transparent; padding-bottom: 1px; }
.cal-day.today .n { font-weight: 700; border-bottom-color: var(--clay); }
.cal-post { text-align: left; padding: 6px 8px; border-radius: 2px; border: 1px solid; display: flex; flex-direction: column; gap: 1px; width: 100%; }
.cal-post .t { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.cal-post .t .swatch { width: 9px; height: 9px; margin-top: 3px; box-shadow: 0 0 0 1px #fff; border-color: rgba(46,54,56,.35); }
.cal-post .m { font-size: 12px; line-height: 1.3; }
.cal-post.posted { background: var(--line-2); color: var(--ink); border-color: var(--fog); }
.cal-post.scheduled { background: var(--slate); color: #fff; border-color: var(--slate); }
.cal-post.draft { background: #fff; color: var(--slate); border: 1px dashed var(--slate); }
.cal-post.review { background: var(--peach); color: var(--ink); border: 1px dashed var(--clay); }
.cal-post.changes { background: #fff; color: var(--rust); border: 1px solid var(--rust); }
.cal-post.sel { outline: 2px solid var(--clay); outline-offset: 2px; }
.list-row { display: flex; gap: 16px; align-items: center; padding: 14px 24px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.list-row:first-child { border-top: 0; }

/* Queue */
.q-row { display: flex; gap: 16px; align-items: center; padding: 18px 28px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.q-row.open { background: #FBFBFA; }
.q-arrows { width: 44px; flex: none; display: flex; flex-direction: column; gap: 2px; }
.q-arrows button { width: 44px; height: 30px; display: flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); border-radius: 2px; color: var(--slate); }
.q-arrows button:disabled { color: var(--fog); }
.q-thumb { width: 88px; height: 66px; }
.q-main { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.q-main .t { font-size: 17px; font-weight: 600; }
.q-when { flex: 0 0 156px; display: flex; flex-direction: column; gap: 2px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; margin-left: 8px; border-radius: 999px; background: var(--line-2); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.open-thumb { width: 88px; height: 66px; flex: none; border: 1px dashed var(--mist); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.check-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 13px; background: var(--line-2); border: 1px solid var(--line-2); }
.check-chip.miss { background: #fff; color: var(--slate); border: 1px dashed var(--slate); }
table.t { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
table.t th { text-align: left; padding: 14px 12px; font-family: var(--label); font-weight: 400; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); border-bottom: 1px solid var(--line); }
table.t td { padding: 14px 12px; border-bottom: 1px solid var(--line-2); }
table.t th:first-child, table.t td:first-child { padding-left: 28px; }
table.t th:last-child, table.t td:last-child { padding-right: 28px; }
.mix-strip { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding: 16px 28px; border-bottom: 1px solid var(--line); }
.mix-strip > span { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.not-posted { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.not-posted a { aspect-ratio: 1; display: block; background: var(--mist) center / cover; }

/* Approvals */
.rev-item { text-align: left; display: flex; gap: 14px; align-items: center; padding: 16px 20px; border: 0; border-bottom: 1px solid var(--line-2); background: #fff; width: 100%; }
.rev-item[aria-current="true"] { background: var(--paper); }
.status-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.status-bar.bad { border-color: var(--rust); }
.ok-box { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; background: var(--moss); color: #fff; border-radius: 2px; flex: none; }
.ok-box.bad { background: var(--rust); }
.note-row { display: flex; gap: 12px; align-items: flex-start; }
.initial { width: 34px; height: 34px; flex: none; border-radius: 999px; background: var(--line-2); color: var(--slate); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }

/* Connections */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.svc.bad { border: 2px solid var(--rust); }
.svc .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.svc .who { display: flex; gap: 14px; align-items: center; }
.svc .nm { font-family: var(--display); font-size: 22px; color: var(--slate); }
.svc .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; margin-top: auto; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); }
.boxed { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; font-size: 15px; font-weight: 400; }
.alert { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; background: #fff; border: 1px solid var(--rust); border-radius: 4px; }
.alert.amber { border-color: var(--amber); display: block; font-size: 16px; line-height: 1.55; padding: 16px 20px; }

/* Issues */
.issue-top { display: flex; flex-wrap: wrap; gap: 20px; padding: 24px; border-bottom: 1px solid var(--line-2); }
.issue-body { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.fix-step { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; background: var(--paper); border-radius: 4px; }
.num { width: 30px; height: 30px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 2px; background: #fff; color: var(--slate); border: 1px solid var(--mist); font-weight: 700; font-size: 14px; }
.num.ok { background: var(--moss); border-color: var(--moss); color: #fff; }
.crop { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; width: 160px; background: #fff; border: 2px solid var(--line); border-radius: 4px; }
.crop[aria-checked="true"] { border-color: var(--slate); }
.crop .frame { width: 96px; height: 120px; display: flex; align-items: center; justify-content: center; background: var(--paper); }
.crop .frame span { background: var(--fog); display: block; }

/* Mix */
.mix-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 18px 28px; border-top: 1px solid var(--line-2); }
.cells { display: flex; gap: 4px; flex-wrap: wrap; }
.cells span { width: 22px; height: 14px; border: 1px solid var(--mist); background: #fff; }
.cells span.fill { border-color: rgba(46,54,56,.25); }
.cells span.over { border: 1px dashed var(--rust); }
.stepper { flex: none; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 4px; height: 44px; }
.stepper button { width: 44px; height: 42px; background: transparent; border: 0; color: var(--slate); font-size: 20px; }
.stepper span { min-width: 48px; text-align: center; font-size: 16px; font-weight: 600; }
.bar { display: flex; height: 16px; gap: 2px; }

/* Agent */
.log-item { display: flex; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--line-2); }
.code { width: 36px; height: 36px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--line-2); color: var(--slate); border-radius: 2px; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 15px; }
.status-pill .dot { width: 10px; height: 10px; border-radius: 999px; background: var(--moss); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 4px; font-size: 15px; box-shadow: 0 6px 20px rgba(0,0,0,.2); z-index: 50; max-width: calc(100vw - 32px); }
.toast[hidden] { display: none; }

/* ---------- sign-in ---------- */
.signin { min-height: 100vh; width: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--slate); }
.card.signin-card { width: 100%; max-width: 420px; padding: 36px; gap: 18px; }
.signin-logo { height: 48px; width: auto; align-self: flex-start; background: var(--slate); padding: 8px 12px; border-radius: 4px; }
