/* Carramore Issue Tracker - design tokens and components.
   Colors and shapes mirror the Carramore.dc.html design canvas. */

:root {
  --bg: #F7F4EF;
  --surface: #ffffff;
  --border: #E7E1D7;
  --border-soft: #F0ECE3;
  --ink: #2A2722;
  --ink-2: #3F3A33;
  --muted: #6B6459;
  --muted-2: #8A8275;
  --brand: #3C6E57;
  --brand-ink: #2f573f;
  --brand-soft: #E4EEE8;
  --danger: #B4471F;
  --danger-soft: #E7C9BD;
  --warn: #9A6B12;
  --warn-soft: #F3EAD6;
  --live: #2E7D4F;
  --live-soft: #DFEFE4;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(42, 39, 34, 0.08);
  --shadow-sm: 0 1px 3px rgba(42, 39, 34, 0.06);
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.display { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }

/* ---- layout --------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.topbar .wordmark { font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--ink); }
.topbar .sub { font-size: 12px; color: var(--muted); }
.topbar .meta { font-size: 12px; color: var(--muted); white-space: nowrap; }

.admin-tag {
  font-size: 11px; font-weight: 600; color: var(--brand);
  background: var(--brand-soft); padding: 3px 8px; border-radius: 999px;
}
.pill-count {
  font-size: 12px; font-weight: 600; color: var(--warn);
  background: var(--warn-soft); padding: 4px 9px; border-radius: 999px;
}

.container { max-width: 1180px; margin: 0 auto; padding: 16px; }
.container.narrow { max-width: 640px; }

.page-head { margin-bottom: 4px; }
.page-head h1 { font-family: var(--display); font-weight: 600; font-size: 22px; margin: 0; color: var(--ink); }
.page-head p { font-size: 13px; color: var(--muted); margin: 3px 0 0; }

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; gap: 10px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.muted { color: var(--muted); }
.muted-2 { color: var(--muted-2); }
.hr { height: 1px; background: var(--border); border: 0; margin: 0; }
.hr-soft { height: 1px; background: var(--border-soft); border: 0; margin: 0; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }

/* horizontal scroller for chips / tiles */
.scroll-x {
  display: flex; gap: 8px; overflow-x: auto;
  scrollbar-width: thin; scrollbar-color: #cfc8bb transparent;
  margin: 0 -16px; padding: 2px 16px;
}
.scroll-x::-webkit-scrollbar { height: 6px; }
.scroll-x::-webkit-scrollbar-thumb { background: #cfc8bb; border-radius: 3px; }

/* ---- cards ---------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 14px;
}
.card.flush { padding: 0; overflow: hidden; }
.panel-title { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--ink); margin: 0 0 12px; }

/* ---- buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-sm); padding: 11px 18px; font-weight: 600; font-size: 14px;
  font-family: inherit; cursor: pointer; border: 1px solid transparent; line-height: 1;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); }
.btn-secondary { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-ghost { background: #fff; color: var(--muted); border-color: var(--border); padding: 9px 14px; font-size: 13px; }
.btn-danger-soft { background: #fff; color: var(--danger); border-color: var(--danger-soft); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; padding: 13px; font-size: 15px; }
.btn-row { display: flex; gap: 8px; }
.btn-row .btn { flex: 1; }
.link-danger { color: var(--danger); font-weight: 600; font-size: 13px; cursor: pointer; background: none; border: 0; font-family: inherit; padding: 0; }
.link-action { color: var(--brand); font-weight: 600; font-size: 13px; cursor: pointer; background: none; border: 0; font-family: inherit; padding: 0; }

/* ---- forms ---------------------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .form-label { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.field .hint { font-size: 12px; color: var(--muted-2); }
.field .optional { color: var(--muted-2); font-weight: 400; }

input[type=text], input[type=password], input[type=email], input[type=date], input[type=url], textarea, select, .control {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; font-size: 14px; color: var(--ink); font-family: inherit; line-height: 1.5;
}
textarea { resize: vertical; min-height: 84px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brand-soft); outline-offset: 0; border-color: var(--brand); }
select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted-2) 50%), linear-gradient(135deg, var(--muted-2) 50%, transparent 50%); background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 30px; cursor: pointer; }
.field.inset input, .field.inset textarea, .field.inset select, .inset { background: var(--bg); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.search { position: relative; }
.search input { padding-left: 36px; }
.search .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; border: 2px solid #B7AE9E; border-radius: 999px; pointer-events: none; }

/* toggle */
.toggle-form { display: inline-flex; align-items: center; gap: 8px; }
.toggle {
  width: 40px; height: 22px; border-radius: 999px; background: #D9D4CB; border: 0;
  display: inline-flex; align-items: center; padding: 2px; cursor: pointer; transition: background .15s;
  justify-content: flex-start;
}
.toggle .knob { width: 18px; height: 18px; border-radius: 999px; background: #fff; transition: transform .15s; }
.toggle.on { background: var(--brand); justify-content: flex-end; }

/* CSS-only switch for form checkboxes */
.switch { position: relative; display: inline-flex; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 40px; height: 22px; border-radius: 999px; background: #D9D4CB; display: inline-flex; align-items: center; padding: 2px; transition: background .15s; }
.switch .track .knob { width: 18px; height: 18px; border-radius: 999px; background: #fff; transition: transform .15s; }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track .knob { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--brand-soft); }

/* ---- chips / filters ------------------------------------------------------ */

.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: #fff; color: var(--muted); border: 1px solid var(--border); cursor: pointer; text-decoration: none;
}
.chip:hover { text-decoration: none; border-color: #d8d1c4; }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip.dark.active { background: var(--ink); border-color: var(--ink); }

/* ---- badges --------------------------------------------------------------- */

.badge {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600;
}
.dot { width: 8px; height: 8px; border-radius: 999px; flex: none; display: inline-block; }
.pri { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.plan-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  color: #6B4FA3; background: #EDE7F4; padding: 4px 9px; border-radius: var(--radius-sm);
}
.tag-type { font-size: 11px; font-weight: 600; color: var(--muted); background: #EFEBE2; padding: 2px 8px; border-radius: 6px; }
.tag-dir { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.pending-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--warn); background: var(--warn-soft); padding: 3px 9px; border-radius: 6px; }
.live-badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; color: var(--live); background: var(--live-soft); padding: 3px 9px; border-radius: var(--radius-sm); }

/* ---- stat tiles ----------------------------------------------------------- */

.stat-tile {
  flex: none; width: 106px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
}
.stat-tile:hover { text-decoration: none; border-color: #d8d1c4; }
.stat-tile.active { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.stat-tile .num { font-size: 24px; font-weight: 700; color: var(--ink); line-height: 1; }
.stat-tile .lbl { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 12px; color: var(--muted); }

/* ---- issue cards ---------------------------------------------------------- */

.issue-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 14px; color: inherit; text-decoration: none; }
.issue-card:hover { text-decoration: none; border-color: #d8d1c4; box-shadow: var(--shadow); }
.issue-card .title { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.issue-card .where { font-size: 13px; color: var(--muted); margin-top: 6px; }
.issue-card .reported { font-size: 11px; color: var(--muted-2); margin-top: 10px; }

.avatar { width: 30px; height: 30px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; }
.avatar.lg { width: 34px; height: 34px; font-size: 13px; }
.owner-row { display: flex; align-items: center; gap: 10px; }
.owner-row .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.owner-row .name { font-size: 13px; color: var(--ink); font-weight: 600; }
.owner-row .role { font-size: 12px; color: var(--muted); }
.owner-row .when { font-size: 12px; color: var(--brand); font-weight: 600; flex: none; }

.list-grid { display: flex; flex-direction: column; gap: 12px; }

/* ---- detail --------------------------------------------------------------- */

.backlink { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--brand); font-weight: 500; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--border); }
.meta-grid { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.meta-grid .k { color: var(--muted-2); }
.meta-grid .v { color: var(--ink); font-weight: 500; margin-top: 2px; }
.meta-grid .v.accent { color: var(--brand); font-weight: 600; }

.timeline { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 12px; }
.tl-rail { display: flex; flex-direction: column; align-items: center; flex: none; }
.tl-node { width: 11px; height: 11px; border-radius: 999px; background: var(--brand); border: 2px solid var(--bg); margin-top: 3px; }
.tl-line { width: 2px; flex: 1; background: var(--border); margin-top: 3px; }
.tl-body { padding-bottom: 20px; }
.tl-date { font-size: 12px; color: var(--muted); font-weight: 600; }
.tl-note { font-size: 14px; color: var(--ink); line-height: 1.55; margin-top: 4px; white-space: pre-wrap; }
.tl-author { font-size: 12px; color: var(--muted-2); margin-top: 5px; }
.tl-item:last-child .tl-line { display: none; }

.comm { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 7px; }
.comm .head { display: flex; align-items: center; gap: 8px; }
.comm .head .date { margin-left: auto; font-size: 12px; color: var(--muted-2); }
.comm .body { font-size: 13px; color: var(--ink); line-height: 1.5; }
.comm .body .party { font-weight: 600; }

/* ---- admin list rows ------------------------------------------------------ */

.adm-row { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 13px; display: flex; flex-direction: column; gap: 10px; }
.adm-row .title { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.adm-row .sub { font-size: 12px; color: var(--muted); }
.editors { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.inline-edit { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.inline-edit select { border: 0; background: transparent; padding: 6px 26px 6px 10px; font-size: 12px; width: auto; background-position: calc(100% - 10px) 52%, calc(100% - 6px) 52%; }
.inline-edit .dot { margin-left: 10px; }
.adm-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border-soft); padding-top: 10px; }
.adm-foot .actions { display: flex; gap: 14px; align-items: center; }

/* ---- review --------------------------------------------------------------- */

.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; border: 1px solid var(--border); display: block; }

/* ---- alerts / states ------------------------------------------------------ */

.alert { border-radius: var(--radius-sm); padding: 11px 13px; font-size: 13px; line-height: 1.5; }
.alert-error { background: var(--warn-soft); color: #7a3a13; }
.alert-ok { background: var(--brand-soft); color: var(--brand-ink); }
.empty { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .ring { width: 48px; height: 48px; border-radius: 999px; background: #EFEBE2; display: flex; align-items: center; justify-content: center; }
.empty .ring span { width: 18px; height: 18px; border: 2px solid #B7AE9E; border-radius: 6px; }
.empty h3 { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--ink); margin: 0; }
.empty p { font-size: 13px; color: var(--muted); margin: 0; max-width: 280px; }

/* ---- login / centered ----------------------------------------------------- */

.center-screen { min-height: calc(100vh - 0px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { width: 100%; max-width: 400px; }
.login-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 28px; }
.login-hero .wordmark { font-family: var(--display); font-weight: 600; font-size: 32px; color: var(--ink); }
.login-hero p { font-size: 14px; color: var(--muted); margin: 0; max-width: 260px; }
.check-ring { width: 60px; height: 60px; border-radius: 999px; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; color: var(--brand); font-size: 30px; line-height: 1; }

/* segmented control for filters/sub-nav */
.subnav { display: flex; gap: 8px; flex-wrap: wrap; }

/* admin tab bar */
.adminbar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.adminbar a { font-size: 13px; color: var(--muted); padding: 6px 10px; border-radius: var(--radius-sm); }
.adminbar a.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }

/* ---- desktop -------------------------------------------------------------- */

@media (min-width: 880px) {
  .container { padding: 28px 32px; }
  .scroll-x { margin: 0; padding: 0; flex-wrap: wrap; }
  .stats-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .stat-tile { width: auto; }
  .page-head h1 { font-size: 28px; }
  .dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
  .cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .editor-grid { display: grid; grid-template-columns: minmax(0,1fr) 440px; gap: 32px; align-items: start; }
  .detail-wrap { max-width: 720px; margin: 0 auto; }
  .hide-desktop { display: none !important; }
}

@media (max-width: 879px) {
  .hide-mobile { display: none !important; }

  /* Top bar: let it wrap so the wordmark is never clipped. */
  .topbar { flex-wrap: wrap; row-gap: 10px; padding: 12px 14px; }
  .topbar .wordmark { font-size: 18px; }
  .topbar-actions { width: 100%; justify-content: flex-end; flex-wrap: wrap; }

  /* Table view is desktop only, so hide its toggle on phones. */
  #viewToggle { display: none; }

  /* Search gets its own full-width row; the filters stay compact below it. */
  .filterbar { gap: 8px; }
  .filterbar .search { flex: 1 1 100%; }
  .filterbar .fdrop { flex: 0 0 auto; }
  .fbtn { padding: 8px 11px; }
  .seg button { padding: 8px 12px; }
  /* keep filter menus on-screen */
  .menu { max-width: calc(100vw - 28px); }
}

/* ===========================================================================
   Issues workspace: filters, dropdowns, tokens, table, drawer, composer
   =========================================================================== */

/* segmented control (Resident/Admin, Cards/Table) */
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.seg button { border: 0; background: #fff; color: var(--muted); font-family: inherit; font-size: 13px; font-weight: 600; padding: 9px 14px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button.on { background: var(--brand); color: #fff; }
.seg.dark button.on { background: var(--ink); color: #fff; }

/* filter bar */
.filterbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filterbar .search { flex: 1; min-width: 180px; }
.fdrop { position: relative; flex: none; }
.fbtn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff;
  color: var(--ink-2); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; font-family: inherit;
}
.fbtn .caret { color: var(--muted-2); font-size: 11px; }
.fbtn.active { background: var(--brand-soft); color: var(--brand-ink); border-color: #A9CBB9; }

.menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 190px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 10px 28px rgba(42, 39, 34, 0.16); padding: 6px; display: none;
}
.menu.right { left: auto; right: 0; }
.menu.open { display: block; }
.menu-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 7px; font-size: 13px; color: var(--ink); cursor: pointer; }
.menu-item:hover { background: var(--bg); }
.menu-item .check { margin-left: auto; color: var(--brand); font-weight: 700; visibility: hidden; }
.menu-item.sel .check { visibility: visible; }

.metarow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tokens { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.token { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px; font-size: 12px; background: #EFEBE2; color: var(--ink-2); }
.token button { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: #DAD3C6; color: var(--muted); cursor: pointer; font-size: 11px; line-height: 1; padding: 0; }
.divider-v { width: 1px; height: 14px; background: var(--border); }
.sortbtn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; font-size: 13px; color: var(--ink-2); cursor: pointer; white-space: nowrap; font-family: inherit; }

/* table view */
.tbl-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
table.tbl { width: 100%; border-collapse: collapse; }
table.tbl th { text-align: left; padding: 11px 16px; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
table.tbl td { padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--border-soft); }
table.tbl tr.clickable { cursor: pointer; }
table.tbl tr.clickable:hover { background: #FBF9F5; }
.dimmed { opacity: 0.55; }

/* proposed-status hint chip */
.proposed-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--warn); background: var(--warn-soft); padding: 2px 8px; border-radius: 6px; }

/* drawer */
.drawer-overlay { position: fixed; inset: 0; background: rgba(42, 39, 34, 0.34); z-index: 80; display: none; }
.drawer-overlay.open { display: block; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 560px; max-width: 100vw; background: var(--bg); border-left: 1px solid var(--border); box-shadow: -14px 0 36px rgba(42, 39, 34, 0.18); z-index: 81; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .22s ease; }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--border); flex: none; }
.drawer-head .dt { display: flex; align-items: center; gap: 12px; min-width: 0; }
.drawer-head .x { font-size: 22px; color: var(--muted-2); cursor: pointer; line-height: 1; background: none; border: 0; padding: 0; }
.drawer-title { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; scrollbar-width: thin; scrollbar-color: #cfc8bb transparent; }
.drawer-loading { padding: 40px; text-align: center; color: var(--muted); }

@media (max-width: 879px) {
  .drawer { width: 100vw; border-left: 0; }
}

/* composer */
.amber-panel { background: #FBF3E2; border: 1px solid #ECD9B0; border-radius: var(--radius); padding: 13px; display: flex; flex-direction: column; gap: 10px; }
.kindchip, .statuschip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 500; cursor: pointer; background: #fff; color: var(--ink-2); border: 1px solid var(--border); font-family: inherit; }
.kindchip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.statuschip.on { background: var(--brand-soft); color: var(--brand-ink); border-color: #A9CBB9; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 7px; }

/* activity feed */
.act-item { display: flex; gap: 12px; }
.act-rail { display: flex; flex-direction: column; align-items: center; flex: none; }
.act-node { width: 11px; height: 11px; border-radius: 999px; margin-top: 4px; }
.act-line { width: 2px; flex: 1; background: var(--border); margin-top: 3px; }
.act-body { padding-bottom: 18px; flex: 1; min-width: 0; }
.act-kind { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.act-item:last-child .act-line { display: none; }
.status-line { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 5px 10px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--border); font-size: 12px; flex-wrap: wrap; }
