/* App layout for Mossgrove Support. Component styles live in components.css (from the design system). */
html, body { margin: 0; height: 100%; }
body { background: var(--canvas); }
.shell { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
button { font: inherit; color: inherit; }
.muted { color: var(--ink-muted); }
.grow { flex: 1; }
.panel-title { margin: 0; font: 600 22px/28px var(--font-display); }

/* ---------- top bar ---------- */
.topbar { height: 64px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--space-4); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font: 600 20px/1 var(--font-display); }
.topbar-actions { display: flex; align-items: center; gap: var(--space-2); }
.bell { position: relative; }
.bell-dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: var(--radius-pill); background: var(--fairway); border: 2px solid var(--canvas); }

/* ---------- body grid ---------- */
.body { flex: 1; min-height: 0; display: grid; grid-template-columns: 64px 340px minmax(0, 1fr) 320px; gap: 0; padding: 0 var(--space-3) var(--space-3) 0; }
.panel { background: var(--surface); min-height: 0; }
.list { border-radius: var(--radius-lg) 0 0 var(--radius-lg); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.detail { display: flex; flex-direction: column; border-right: 1px solid var(--line); position: relative; }
.overview { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; display: flex; flex-direction: column; overflow: auto; }

.rail { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding-top: var(--space-2); }
.rail-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink-muted); cursor: pointer; }
.rail-btn svg { width: 20px; height: 20px; }
.rail-btn:hover { background: var(--surface-sunken); color: var(--ink); }
.rail-btn.is-active { background: var(--pine-wash); color: var(--pine); }
.rail-btn:disabled { opacity: .35; cursor: not-allowed; }
.rail-btn:disabled:hover { background: transparent; color: var(--ink-muted); }
.rail-spacer { flex: 1; }

/* ---------- list ---------- */
.list-head { padding: var(--space-6) var(--space-4) var(--space-3); display: grid; gap: var(--space-3); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { height: 28px; padding: 0 var(--space-3); border-radius: var(--radius-pill); border: 1px solid var(--line); background: transparent; font: 500 12px/16px var(--font-sans); color: var(--ink-muted); cursor: pointer; }
.pill:hover { color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--pine-wash); border-color: color-mix(in srgb, var(--pine) 35%, transparent); color: var(--pine); }
.list-items { flex: 1; overflow: auto; padding: 0 var(--space-2) var(--space-3); }
.list-count { margin: var(--space-3); font: 400 12px/16px var(--font-sans); color: var(--ink-muted); }
.empty { padding: var(--space-4); color: var(--ink-muted); }

/* ---------- detail ---------- */
.detail-head { position: relative; display: flex; align-items: center; gap: var(--space-2); padding: var(--space-6) var(--space-6) var(--space-2); }
.detail-title { margin: 0; font: 600 22px/28px var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.back { margin-left: -8px; }
.detail-head { border-bottom: 1px solid var(--line); padding-bottom: var(--space-4); }
.thread-divider { margin: var(--space-6) 0 var(--space-3); }
.thread-divider:first-child { margin-top: var(--space-2); }
.messages { flex: 1; min-height: 0; overflow: auto; padding: var(--space-3) var(--space-6); }
.mg-message__text.revealed { font-family: var(--font-mono); font-size: 13px; }
.reveal { margin-top: var(--space-2); margin-left: -12px; }
.suggest { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-2); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--canvas); }
.suggest-text { display: flex; align-items: center; gap: var(--space-2); font: 400 13px/18px var(--font-sans); }

.add-people { position: absolute; right: var(--space-6); top: 64px; width: 340px; z-index: 20; display: grid; gap: var(--space-3); }
.pop-head { display: flex; align-items: center; justify-content: space-between; }
.person, .pick { display: flex; gap: var(--space-3); align-items: center; }
.pick { width: 100%; padding: var(--space-2); border: 0; border-radius: var(--radius-md); background: transparent; text-align: left; cursor: pointer; }
.pick:hover { background: var(--surface-sunken); }
.pick > span:last-child { display: grid; }
.person-name { font: 600 14px/20px var(--font-sans); }
.person-sub { font: 400 12px/16px var(--font-sans); color: var(--ink-muted); }
.check { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-3); border-radius: var(--radius-md); background: var(--surface-sunken); font: 400 13px/18px var(--font-sans); cursor: pointer; }
.check input { margin-top: 2px; accent-color: var(--pine); width: 16px; height: 16px; }
.pop-actions { display: flex; justify-content: flex-end; gap: var(--space-2); }

/* ---------- composer ---------- */
.composer-wrap { padding: var(--space-2) var(--space-6) var(--space-6); display: grid; gap: var(--space-2); }
.ai-suggest { border-radius: var(--radius-lg); border: 1px dashed var(--line-strong); background: var(--canvas); padding: var(--space-3) var(--space-4); display: grid; gap: var(--space-2); }
.ai-head { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.ai-head .mg-chip svg { width: 12px; height: 12px; }
.ai-basis { font: 400 12px/16px var(--font-sans); color: var(--ink-muted); }
.ai-text { margin: 0; font: 400 14px/21px var(--font-sans); }
.ai-actions { display: flex; gap: var(--space-2); }
.composer { border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); padding: var(--space-2) var(--space-3) var(--space-3); transition: background-color .15s; }
.composer:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.composer.is-note { background: var(--sand); color: var(--on-sand); border-color: var(--sand); }
.composer-mode { display: flex; align-items: center; gap: 4px; }
.seg { height: 26px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-pill); background: transparent; font: 500 12px/16px var(--font-sans); cursor: pointer; color: inherit; opacity: .75; }
.seg[aria-pressed="true"] { background: var(--surface-sunken); opacity: 1; }
.composer.is-note .seg[aria-pressed="true"] { background: var(--surface); color: var(--ink); }
.composer-mode .mg-chip { margin-left: auto; }
.composer textarea { display: block; width: 100%; resize: none; border: 0; outline: 0; background: transparent; padding: var(--space-2) 0; font: 400 15px/22px var(--font-sans); color: inherit; }
.composer textarea::placeholder { color: var(--ink-muted); }
.composer.is-note textarea::placeholder { color: var(--on-sand); opacity: .8; }
.composer-bar { display: flex; align-items: center; justify-content: space-between; }
.tools { display: flex; gap: 2px; color: var(--ink-muted); }
.composer.is-note .tools { color: var(--on-sand); }

/* ---------- right panel ---------- */
.overview { padding: var(--space-6) var(--space-6) var(--space-4); gap: 0; }
.ov-person { display: flex; gap: var(--space-3); align-items: center; padding-bottom: var(--space-6); }
.ov-person-text { min-width: 0; }
.ov-name { font: 600 18px/24px var(--font-display); }
.ov-sub { font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.ov-email { display: flex; align-items: center; gap: 6px; margin-top: 6px; font: 400 13px/18px var(--font-sans); color: var(--ink-muted); min-width: 0; }
.ov-email svg { width: 13px; height: 13px; flex: none; color: var(--pine); }
.ov-email span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-tabs { gap: var(--space-4); }
.ov-tabs .mg-tab { font-size: 13px; }
.tab-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-pill); background: var(--surface-sunken); color: var(--ink-muted); font: 600 11px/1 var(--font-sans); }
.mg-tab[aria-selected="true"] .tab-count { background: var(--pine-wash); color: var(--pine); }
.overview-body { display: grid; gap: var(--space-6); padding-top: var(--space-4); }
.ov-section { display: grid; gap: var(--space-2); }
.ov-label { margin: 0; font: 600 11px/14px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.ov-rows { margin: 0; }
.ov-rows > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: var(--space-2); min-height: 44px; border-bottom: 1px solid var(--line); }
.ov-rows > div:last-child { border-bottom: 0; }
.ov-rows dt { font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.ov-rows dd { margin: 0; font: 500 14px/20px var(--font-sans); min-width: 0; }
.ov-id { color: var(--ink); }
.status-control { position: relative; display: flex; align-items: center; height: 32px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); transition: border-color .15s; }
.status-control:hover { border-color: var(--line-strong); }
.status-control:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.status-control select { appearance: none; -webkit-appearance: none; width: 100%; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 26px 0 25px; font: 500 13px/18px var(--font-sans); color: var(--ink); cursor: pointer; }
.status-control select option { background: var(--surface); color: var(--ink); }
.status-control .chev { position: absolute; right: 8px; width: 14px; height: 14px; color: var(--ink-muted); pointer-events: none; }
.status-dot { position: absolute; left: 10px; width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--ink-muted); pointer-events: none; }
.status-dot--new { background: var(--pine); }
.status-dot--waiting-us { background: var(--caution); }
.status-dot--closed { background: var(--fairway); }
.ov-club { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-md); }
.ov-club-mark { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--pine-wash); color: var(--pine); }
.ov-club-mark svg { width: 16px; height: 16px; }
.ov-club-name { font: 600 14px/20px var(--font-sans); }
.ov-list { list-style: none; margin: 0; padding: 0; display: grid; }
.ov-list li { display: flex; gap: var(--space-3); align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ov-list li:last-child { border-bottom: 0; }
.ov-list li > div { min-width: 0; }
.ov-list .person-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-you { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--pine-wash); color: var(--pine); font: 600 11px/18px var(--font-sans); vertical-align: 1px; }
.ov-file-icon { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--surface-sunken); color: var(--ink-muted); }
.ov-file-icon svg { width: 14px; height: 14px; }
.ov-empty { margin: 0; font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }

/* ---------- responsive (portfolio iframes run narrow) ---------- */
@media (max-width: 1240px) {
  .body { grid-template-columns: 56px 280px minmax(0, 1fr) 290px; }
  .overview { padding: var(--space-5, 20px) var(--space-4); }
  .ov-rows > div { grid-template-columns: 64px minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  .body { grid-template-columns: 56px minmax(0, 1fr) 260px; }
  .list { display: none; }
  .detail { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
  }
@media (max-width: 760px) {
  .body { grid-template-columns: minmax(0, 1fr); padding: 0 var(--space-2) var(--space-2); }
  .rail, .overview { display: none; }
  .detail { border-radius: var(--radius-lg); }
  .messages, .composer-wrap { padding-left: var(--space-4); padding-right: var(--space-4); }
  .detail-head { padding: var(--space-4) var(--space-4) var(--space-2); }
}
.detail-head .mg-mono { white-space: nowrap; }

/* polish */
.mg-ticket-row__meta .mg-avatar { margin-right: 2px; }
.mg-message__author-sub { font: 400 12px/16px var(--font-sans); color: var(--ink-muted); }
.messages { padding-top: var(--space-4); }
.mg-message { padding: 10px 0; }
.composer { box-shadow: 0 1px 2px rgba(29, 42, 36, .04); }
.rail { padding-top: var(--space-3); gap: 6px; }
.list { border-right-color: var(--line); }
.mg-ticket-row__meta > span:not(.mg-chip):not(.mg-avatar) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mg-ticket-row__meta .mg-chip, .mg-ticket-row__meta .mg-avatar { flex: none; }
.list, .list-head, .list-head .mg-field { min-width: 0; }

/* ---------- tickets table (home) ---------- */
.body.is-index { grid-template-columns: 64px minmax(0, 1fr); }
.index { border-radius: var(--radius-lg); padding: var(--space-8) 40px; overflow: auto; display: flex; flex-direction: column; gap: var(--space-6); }
.index-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.index-title { margin: 0; font: 600 34px/40px var(--font-display); letter-spacing: -.01em; }
.index-tools { display: flex; align-items: center; gap: var(--space-3); margin-top: calc(-1 * var(--space-2)); }
.index-search { width: min(420px, 100%); }
.index-count { font: 400 13px/18px var(--font-sans); color: var(--ink-muted); white-space: nowrap; }
.filter-wrap { position: relative; }
.filter-menu { position: absolute; top: 44px; left: 0; z-index: 20; width: 240px; padding: 6px; display: grid; gap: 2px; }
.filter-item { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border: 0; border-radius: var(--radius-sm); background: transparent; font: 500 13px/18px var(--font-sans); text-align: left; cursor: pointer; }
.filter-item:hover { background: var(--surface-sunken); }
.filter-item svg { width: 14px; height: 14px; color: var(--pine); }
.status-dot-inline { width: 8px; height: 8px; border-radius: var(--radius-pill); flex: none; }
.status-dot-inline.status-dot--new { background: var(--pine); }
.status-dot-inline.status-dot--waiting-us { background: var(--caution); }
.status-dot-inline.status-dot--closed { background: var(--fairway); }

.table-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.tickets-table { width: 100%; border-collapse: collapse; font: 400 14px/20px var(--font-sans); }
.tickets-table th { text-align: left; padding: 14px var(--space-4); font: 500 12px/16px var(--font-sans); letter-spacing: .02em; color: var(--ink-muted); background: var(--canvas); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tickets-table td { padding: 14px var(--space-4); border-bottom: 1px solid var(--line); vertical-align: middle; }
.tickets-table tbody tr:last-child td { border-bottom: 0; }
.tickets-table tbody tr { cursor: pointer; transition: background-color .12s; }
.tickets-table tbody tr:hover { background: var(--pine-wash); }
.tickets-table tbody tr:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.tickets-table th:first-child, .tickets-table td:first-child { padding-left: var(--space-6); }
.tickets-table th:last-child, .tickets-table td:last-child { padding-right: var(--space-6); text-align: right; }
.col-id .mg-mono { font-size: 12px; }
.subject-cell { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 500; color: var(--ink); }
.req-cell { display: flex; align-items: center; gap: 10px; }
.req-cell > span:last-child { display: grid; min-width: 0; }
.req-name { font: 500 14px/18px var(--font-sans); white-space: nowrap; }
.req-club { font: 400 12px/16px var(--font-sans); color: var(--ink-muted); white-space: nowrap; }
.table-empty { text-align: center !important; color: var(--ink-muted); padding: var(--space-8) !important; }

/* ---------- new ticket dialog ---------- */
.scrim { position: fixed; inset: 0; background: rgba(18, 22, 20, .4); z-index: 40; }
.new-ticket { position: fixed; z-index: 41; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: var(--space-6); display: grid; gap: var(--space-4); }
.nt-title { margin: 0; font: 600 22px/28px var(--font-display); }
.nt-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.nt-field { display: grid; gap: 6px; font: 500 13px/18px var(--font-sans); color: var(--ink-muted); }
.nt-field input, .nt-field select, .nt-field textarea { font: 400 14px/20px var(--font-sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-md); padding: 9px 12px; resize: vertical; }
.nt-field input:focus, .nt-field select:focus, .nt-field textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.nt-error { margin: 0; color: var(--flag); font: 500 13px/18px var(--font-sans); }

@media (max-width: 1240px) { .index { padding: var(--space-6); } }
@media (max-width: 760px) { .body.is-index { grid-template-columns: minmax(0, 1fr); } .index-search { width: auto; flex: 1; } .index-tools .grow, .index-count { display: none; } }
.nt-field select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2356635c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 6.5 3.5 3.5 3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; }

/* ---------- onboarding plan ---------- */
.onboarding { gap: 0; padding-bottom: 120px; }
.ob-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-8); }
.ob-kicker { font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.ob-health { display: inline-flex; align-items: center; gap: 6px; color: var(--fairway); font-weight: 600; }
.ob-health::before { content: ""; width: 7px; height: 7px; border-radius: var(--radius-pill); background: var(--fairway); }
.ob-title { margin: 6px 0 6px; font: 600 32px/38px var(--font-display); letter-spacing: -.01em; }
.ob-led { display: inline-flex; align-items: center; gap: 10px; margin-top: var(--space-2); padding: 4px 14px 4px 4px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); font: 400 14px/20px var(--font-sans); }
.ob-led-label { color: var(--ink-muted); }
.ob-led-text b { font-weight: 600; color: var(--ink); }
.ob-led-role { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-muted); font-size: 13px; }
.ob-led-role::before { content: ""; width: 3px; height: 3px; border-radius: var(--radius-pill); background: var(--line-strong); }
.ob-progress { display: flex; align-items: center; gap: var(--space-4); padding-top: 6px; flex: none; }
.ob-stack { display: flex; }
.ob-stack .mg-avatar { box-shadow: 0 0 0 2px var(--surface); }
.ob-stack .mg-avatar + .mg-avatar { margin-left: -8px; }
.ob-progress-text { display: grid; text-align: right; font: 400 12px/16px var(--font-sans); color: var(--ink-muted); }
.ob-progress-text b { font: 600 14px/20px var(--font-sans); color: var(--ink); }
.ob-bar { display: block; height: 6px; border-radius: var(--radius-pill); background: var(--surface-sunken); overflow: hidden; }
.ob-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--pine); transition: width .25s ease; }
.ob-bar--lg { width: 200px; height: 8px; }
.ob-bar--sm { width: 96px; }
.ob-tabs { margin-top: var(--space-6); }
.ob-mode-note { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-4) 0 0; padding: 10px var(--space-3); border-radius: var(--radius-md); background: var(--sand); color: var(--on-sand); font: 500 13px/18px var(--font-sans); }
.ob-mode-note svg { width: 14px; height: 14px; }

.ob-section { margin-top: var(--space-8); }
.ob-section-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.ob-section-toggle { display: flex; align-items: center; gap: var(--space-2); border: 0; background: transparent; padding: 4px; margin-left: -4px; border-radius: var(--radius-sm); cursor: pointer; color: var(--ink); }
.ob-section-toggle svg { width: 16px; height: 16px; color: var(--ink-muted); transition: transform .15s; }
.ob-section-toggle[aria-expanded="false"] svg { transform: rotate(-90deg); }
.ob-section-toggle h2 { margin: 0; font: 600 18px/24px var(--font-sans); }
.ob-count { font: 400 12px/16px var(--font-sans); color: var(--ink-muted); }
.ob-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.ob-task { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.ob-task:hover { border-color: color-mix(in srgb, var(--pine) 35%, var(--line)); box-shadow: 0 2px 8px rgba(29, 42, 36, .06); }
.ob-task:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ob-subs { cursor: default; }
.ob-task.is-internal { border-style: dashed; }
.ob-task-main { display: grid; grid-template-columns: 28px minmax(0, 1fr) 170px 96px 132px 76px; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-4) var(--space-4) 18px; }
.ob-check { width: 22px; height: 22px; border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; cursor: pointer; padding: 0; color: var(--surface); transition: background-color .15s, border-color .15s; }
.ob-check:hover { border-color: var(--pine); }
.ob-check svg { width: 13px; height: 13px; stroke-width: 2.25; }
.ob-check--done { background: var(--pine); border-color: var(--pine); color: var(--on-pine); }
.ob-check--partial { border-color: var(--pine); }
.ob-minus { width: 10px; height: 2px; border-radius: 2px; background: var(--pine); }
.ob-task-title { display: flex; align-items: center; gap: var(--space-2); font: 600 15px/21px var(--font-sans); }
.ob-task.is-done .ob-task-title { color: var(--ink-muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.ob-task-desc { margin-top: 2px; font: 400 13px/19px var(--font-sans); color: var(--ink-muted); }
.ob-internal { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: var(--radius-pill); background: var(--sand); color: var(--on-sand); font: 600 11px/1 var(--font-sans); text-decoration: none; }
.ob-internal svg { width: 11px; height: 11px; }
.ob-assignee { display: flex; align-items: center; gap: var(--space-2); font: 400 13px/18px var(--font-sans); min-width: 0; }
.ob-assignee span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-due { display: inline-flex; align-items: center; gap: 6px; font: 400 13px/18px var(--font-sans); color: var(--ink-muted); white-space: nowrap; }
.ob-due svg { width: 14px; height: 14px; }
.ob-due.is-overdue { color: var(--flag); font-weight: 600; }
.ob-chips { display: flex; gap: 6px; }
.ob-chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: var(--radius-pill); background: var(--surface-sunken); font: 600 12px/16px var(--font-sans); color: var(--ink); }
.ob-chip svg { width: 13px; height: 13px; color: var(--ink-muted); }
.ob-view { display: inline-flex; align-items: center; justify-content: flex-end; gap: 2px; font: 500 13px/18px var(--font-sans); color: var(--ink-muted); white-space: nowrap; }
.ob-view svg { width: 14px; height: 14px; transition: transform .15s; }
.ob-task:hover .ob-view { color: var(--pine); }
.ob-task:hover .ob-view svg { transform: translateX(2px); }

.ob-subs { padding: 0 var(--space-4) var(--space-4) 62px; }
.ob-subs-toggle { display: flex; align-items: center; gap: var(--space-2); width: min(560px, 100%); height: 38px; padding: 0 var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); font: 400 12px/16px var(--font-sans); color: var(--ink-muted); cursor: pointer; }
.ob-subs-toggle:hover { border-color: var(--line-strong); }
.ob-subs-toggle b { font-weight: 600; color: var(--ink); }
.ob-subs-toggle svg { width: 14px; height: 14px; }
.ob-subs-toggle .chev { transition: transform .15s; }
.ob-subs-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.ob-sub-list { list-style: none; margin: 6px 0 0; padding: 4px var(--space-3); width: min(560px, 100%); border-left: 2px solid var(--line); display: grid; }
.ob-sub { display: flex; align-items: center; gap: 10px; padding: 7px 0; font: 400 13px/18px var(--font-sans); cursor: pointer; }
.ob-sub input { width: 16px; height: 16px; accent-color: var(--pine); margin: 0; }
.ob-sub.is-done span { color: var(--ink-muted); text-decoration: line-through; }
.ob-add { display: inline-flex; align-items: center; gap: var(--space-2); height: 40px; padding: 0 var(--space-4); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: transparent; width: 100%; font: 500 13px/18px var(--font-sans); color: var(--ink-muted); cursor: pointer; }
.ob-add:hover { color: var(--pine); border-color: var(--pine); background: var(--pine-wash); }
.ob-add svg { width: 14px; height: 14px; }
.ob-add-row { display: flex; gap: var(--space-2); align-items: center; }
.ob-add-row input { flex: 1; height: 40px; padding: 0 var(--space-4); border: 1px solid var(--pine); border-radius: var(--radius-lg); background: var(--surface); font: 400 14px/20px var(--font-sans); color: var(--ink); outline: 0; box-shadow: 0 0 0 3px var(--pine-wash); }
.ob-empty { margin: var(--space-8) 0; color: var(--ink-muted); text-align: center; }

/* prototype view switch: pinned over the bottom of the left rail, onboarding only */
.view-switch { position: fixed; left: 8px; bottom: 16px; z-index: 35; width: 48px; padding: 6px 5px 5px; display: grid; justify-items: center; gap: 3px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.view-switch-label { font: 600 9px/12px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); padding-bottom: 2px; }
.view-switch button { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--ink-muted); cursor: pointer; transition: background-color .15s, color .15s; }
.view-switch button svg { width: 18px; height: 18px; }
.view-switch button:hover { background: var(--surface-sunken); color: var(--ink); }
.view-switch button[aria-pressed="true"] { background: var(--pine); color: var(--on-pine); }
.view-switch button::after { content: attr(data-tip); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); padding: 6px 10px; border-radius: 8px; background: #1d2a24; color: #ffffff; font: 500 12px/16px var(--font-sans); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; }
.view-switch button:hover::after, .view-switch button:focus-visible::after { opacity: 1; }
@media (max-width: 1240px) { .view-switch { left: 4px; } }

.ob-drawer { position: fixed; z-index: 41; top: 12px; right: 12px; bottom: 12px; width: min(460px, calc(100vw - 24px)); padding: var(--space-6); overflow: auto; display: flex; flex-direction: column; gap: var(--space-4); border-radius: var(--radius-lg); }
.ob-drawer-top { display: flex; align-items: center; gap: var(--space-2); }
.ob-drawer-title { margin: 0; font: 600 24px/30px var(--font-display); }
.ob-drawer-desc { margin: -6px 0 0; font: 400 14px/21px var(--font-sans); color: var(--ink-muted); }
.ob-drawer-rows { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ob-drawer-rows > div:last-child { border-bottom: 0; }
.ob-drawer .ov-label { margin-top: var(--space-2); }
.ob-sub-list--drawer { width: 100%; border-left: 0; padding: 0; margin: -8px 0 0; }
.ob-drawer-foot { z-index: 3; position: sticky; bottom: calc(-1 * var(--space-6)); margin: auto calc(-1 * var(--space-6)) calc(-1 * var(--space-6)); padding: var(--space-4) var(--space-6); background: var(--surface); border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }

@media (max-width: 1240px) { .ob-task-main { grid-template-columns: 28px minmax(0, 1fr) 150px 88px 120px; } .ob-view { display: none; } }
@media (max-width: 1000px) { .ob-head { flex-direction: column; gap: var(--space-4); } .ob-task-main { grid-template-columns: 28px minmax(0, 1fr) 88px; } .ob-assignee, .ob-chips { display: none; } .ob-subs { padding-left: 62px; } }
@media (max-width: 760px) { .ob-progress { flex-wrap: wrap; } .ob-task-main { grid-template-columns: 28px minmax(0, 1fr); } .ob-due { display: none; } .ob-subs { padding-left: var(--space-4); } }

/* task types */
.ob-type { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; padding: 1px 7px 1px 6px; border-radius: var(--radius-pill); background: var(--pine-wash); color: var(--pine); font: 600 11px/16px var(--font-sans); vertical-align: 1px; }
.ob-type svg { width: 11px; height: 11px; }
.ob-type--lg { margin: 0; height: 24px; padding: 0 9px 0 8px; font-size: 12px; }
.ob-type--lg svg { width: 13px; height: 13px; }
.ob-block { display: grid; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--canvas); }
.ob-block .ov-label { margin-top: var(--space-1, 4px); }
.ob-done-note { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/18px var(--font-sans); color: var(--fairway); }
.ob-done-note svg { width: 14px; height: 14px; stroke-width: 2.25; }
.ob-hint { margin: 0; font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.ob-link { justify-self: start; border: 0; background: none; padding: 0; font: 500 13px/18px var(--font-sans); color: var(--pine); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ob-req { color: var(--flag); }
.ob-form { gap: var(--space-3); }
.ob-form .nt-field select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2356635c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 6.5 3.5 3.5 3.5-3.5'/%3E%3C/svg%3E") no-repeat right 12px center / 14px; }
.ob-answers { margin: 0; display: grid; gap: var(--space-2); }
.ob-answers > div { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); font: 400 13px/18px var(--font-sans); }
.ob-answers dt { color: var(--ink-muted); }
.ob-answers dd { margin: 0; font-weight: 500; }

/* video */
.ob-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; background: #1f4d3a; color: #ffffff; }
.ob-video-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.ob-video-art circle { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 2; }
.ob-video-meta { position: absolute; left: 16px; top: 14px; right: 16px; display: grid; gap: 2px; }
.ob-video-kicker { font: 600 10px/14px var(--font-sans); letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.ob-video-title { font: 600 18px/23px var(--font-display); }
.ob-play { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: var(--radius-pill); border: 0; background: #ffffff; color: #1f4d3a; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); transition: transform .15s; }
.ob-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.ob-play svg { width: 22px; height: 22px; margin-left: 3px; }
.ob-video-time { position: absolute; right: 12px; bottom: 14px; font: 600 11px/14px var(--font-mono); padding: 2px 6px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, .35); }
.ob-video-track { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .2); }
.ob-video-track span { display: block; height: 100%; width: 0; background: #e4d3ad; }
.ob-video.is-playing .ob-video-track span { animation: ob-progress linear forwards; }
.ob-video.is-playing::after { content: ""; position: absolute; left: 50%; top: 56%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #ffffff; border-radius: 50%; animation: ob-spin 1s linear infinite; }
@keyframes ob-progress { from { width: 0; } to { width: 100%; } }
@keyframes ob-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ob-video.is-playing::after { animation: none; } }
.ob-chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ob-chapters li { display: flex; gap: var(--space-3); align-items: baseline; padding: 6px 0; font: 400 13px/18px var(--font-sans); border-bottom: 1px solid var(--line); }
.ob-chapters li:last-child { border-bottom: 0; }

/* document */
.ob-doc { display: flex; gap: var(--space-4); align-items: center; }
.ob-doc-page { width: 72px; height: 92px; flex: none; padding: 10px 9px; display: grid; align-content: start; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 2px 6px rgba(29, 42, 36, .08); }
.ob-doc-page span { height: 3px; border-radius: 2px; background: var(--line); }
.ob-doc-page .h { height: 6px; width: 70%; background: var(--pine); opacity: .7; margin-bottom: 2px; }
.ob-doc-page .s { width: 60%; }
.ob-doc-info { display: grid; gap: 2px; justify-items: start; }
.ob-doc-info .mg-btn { margin-top: var(--space-2); }
.ob-points { margin: 0; padding-left: 18px; display: grid; gap: 6px; font: 400 14px/20px var(--font-sans); }
.ob-points li::marker { color: var(--pine); }
.ob-ack { background: var(--surface); border: 1px solid var(--line); }

/* upload */
.ob-drop { position: relative; display: grid; justify-items: center; gap: 4px; padding: var(--space-6) var(--space-4); border: 1.5px dashed var(--line-strong); border-radius: var(--radius-md); background: var(--surface); text-align: center; cursor: pointer; transition: border-color .15s, background-color .15s; }
.ob-drop:hover, .ob-drop:focus-within { border-color: var(--pine); background: var(--pine-wash); }
.ob-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ob-drop-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-pill); background: var(--pine-wash); color: var(--pine); margin-bottom: 4px; }
.ob-drop-icon svg { width: 18px; height: 18px; }
.ob-drop-title { font: 600 14px/20px var(--font-sans); }
.ob-drop-hint { font: 400 12px/17px var(--font-sans); color: var(--ink-muted); max-width: 300px; }
.ob-file-ok { background: var(--pine-wash); color: var(--fairway); }
.ob-uploaded li { border-bottom: 0; padding: 0; }

/* meeting */
.ob-meeting { display: flex; gap: var(--space-3); align-items: center; }
.ob-meeting-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--pine-wash); color: var(--pine); }
.ob-meeting-icon svg { width: 18px; height: 18px; }
.ob-attendees { display: flex; flex-wrap: wrap; gap: 6px; }
.ob-attendee { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 4px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); font: 500 12px/16px var(--font-sans); }
.ob-agenda li::marker { font-weight: 600; }

/* drawer tabs + comment threads */
.ob-drawer-tabs { gap: var(--space-6); margin-top: -4px; }
.ob-drawer-tabs .mg-tab { font-size: 14px; }
.ob-thread { display: grid; gap: var(--space-4); padding-top: 4px; }
.ob-thread-empty { display: grid; justify-items: center; gap: 4px; padding: var(--space-8) var(--space-4); text-align: center; color: var(--ink-muted); font: 400 13px/18px var(--font-sans); }
.ob-thread-empty svg { width: 22px; height: 22px; margin-bottom: 4px; color: var(--pine); }
.ob-thread-empty b { color: var(--ink); font-weight: 600; font-size: 14px; }
.ob-c { display: flex; gap: 10px; align-items: flex-start; }
.ob-c > .mg-avatar { position: relative; z-index: 1; }
.ob-c-body { flex: 1; min-width: 0; }
.ob-c-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font: 400 12px/16px var(--font-sans); color: var(--ink-muted); }
.ob-c-head b { font: 600 13px/18px var(--font-sans); color: var(--ink); }
.ob-c-team { padding: 0 6px; border-radius: var(--radius-pill); background: var(--pine-wash); color: var(--pine); font: 600 10px/16px var(--font-sans); letter-spacing: .02em; }
.ob-c-body > p { margin: 3px 0 0; font: 400 14px/21px var(--font-sans); }
.ob-c.is-replying > .ob-c-body > p { background: var(--pine-wash); border-radius: var(--radius-sm); box-shadow: 0 0 0 4px var(--pine-wash); }
.ob-c-actions { display: flex; gap: var(--space-3); margin-top: 4px; }
.ob-c-actions button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 2px 0; font: 600 12px/16px var(--font-sans); color: var(--ink-muted); cursor: pointer; }
.ob-c-actions button:hover { color: var(--pine); }
.ob-c-actions svg { width: 12px; height: 12px; }
.ob-c { position: relative; }
.ob-c-replies { display: grid; gap: var(--space-4); margin-top: var(--space-3); padding-left: 4px; }
/* tree: trunk from the parent avatar down; an elbow into each reply; the last reply masks the trunk below its elbow */
.ob-c.has-replies::before { content: ""; position: absolute; left: 13.25px; top: 34px; bottom: 0; width: 1.5px; background: var(--line); }
.ob-c-replies > .ob-c::after { content: ""; position: absolute; left: -28px; top: 0; width: 24px; height: 14px; border-left: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); border-bottom-left-radius: 10px; }
.ob-c-mask { display: none; position: absolute; left: -30px; top: 15px; bottom: 0; width: 6px; background: var(--surface); }
.ob-c-replies > .ob-c:last-child > .ob-c-mask { display: block; }
.ob-drawer-foot--composer { display: block; padding-top: var(--space-3); padding-bottom: var(--space-4); }
.ob-composer { display: grid; gap: var(--space-2); }
.ob-replying { display: inline-flex; align-items: center; gap: 6px; justify-self: start; height: 26px; padding: 0 4px 0 10px; border-radius: var(--radius-pill); background: var(--pine-wash); color: var(--pine); font: 500 12px/16px var(--font-sans); }
.ob-replying b { font-weight: 600; }
.ob-replying button { width: 20px; height: 20px; display: grid; place-items: center; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--pine); cursor: pointer; }
.ob-replying button:hover { background: color-mix(in srgb, var(--pine) 15%, transparent); }
.ob-replying svg { width: 12px; height: 12px; }
.ob-composer-row { display: flex; align-items: center; gap: 10px; }
.ob-composer-row input { flex: 1; min-width: 0; height: 40px; padding: 0 var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); font: 400 14px/20px var(--font-sans); color: var(--ink); }
.ob-composer-row input::placeholder { color: var(--ink-muted); }
.ob-composer-row input:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.ob-send { border-radius: var(--radius-pill); width: 40px; height: 40px; }
.ob-send svg { width: 16px; height: 16px; }
.ob-c { scroll-margin-bottom: 110px; }

/* ---------- horizontal scrolling tables (all three tables) ---------- */
.scroll-x-wrap { position: relative; }
.scroll-x { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.scroll-x:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.scroll-x-wrap::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 36px; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 4; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; background: linear-gradient(to left, var(--surface), transparent); }
.scroll-x-wrap.has-right::after { opacity: 1; }
.tickets-table { min-width: 1040px; }
.tickets-table td, .tickets-table th { white-space: nowrap; }
/* pinned first column (ticket ID) */
.tickets-table th:first-child, .tickets-table td:first-child { position: sticky; left: 0; z-index: 2; background: var(--surface); }
.tickets-table th:first-child { background: var(--canvas); }
.tickets-table tbody tr:hover td:first-child { background: var(--pine-wash); }
.scroll-x-wrap.has-left .tickets-table th:first-child, .scroll-x-wrap.has-left .tickets-table td:first-child { box-shadow: 8px 0 10px -8px rgba(29, 42, 36, .25); }
.table-wrap { overflow: hidden; }
.scroll-x-wrap.has-left .tickets-table th:first-child, .scroll-x-wrap.has-left .tickets-table td:first-child { box-shadow: inset -1px 0 0 var(--line), 10px 0 12px -10px rgba(29, 42, 36, .35); }

/* ---------- settings drawer ---------- */
.me-btn { padding: 0; border: 0; background: none; border-radius: var(--radius-pill); cursor: pointer; display: grid; }
.me-btn:hover .mg-avatar { box-shadow: 0 0 0 3px var(--pine-wash); }
.st-drawer { position: fixed; z-index: 41; top: 12px; right: 12px; bottom: 12px; width: min(480px, calc(100vw - 24px)); padding: 0; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; }
.st-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); padding: var(--space-6) var(--space-6) var(--space-4); border-bottom: 1px solid var(--line); }
.st-head h2 { margin: 0; font: 600 24px/30px var(--font-display); }
.st-head p { margin: 4px 0 0; font: 400 14px/20px var(--font-sans); color: var(--ink-muted); }
.st-body { flex: 1; overflow: auto; padding: var(--space-6); display: grid; align-content: start; gap: var(--space-6); }
.st-photo { display: flex; align-items: center; gap: var(--space-4); padding-bottom: var(--space-6); border-bottom: 1px solid var(--line); }
.st-photo > div { display: grid; gap: 2px; justify-items: start; font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.st-photo b { font: 600 15px/21px var(--font-sans); color: var(--ink); }
.st-photo-pic { position: relative; width: 80px; height: 80px; flex: none; border-radius: var(--radius-pill); cursor: pointer; }
.st-photo-pic img, .st-initials { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; display: grid; place-items: center; background: var(--pine); color: var(--on-pine); font: 600 24px/1 var(--font-sans); box-shadow: inset 0 0 0 1px rgba(29, 42, 36, .08); }
.st-photo-badge { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--radius-pill); background: var(--pine); color: var(--on-pine); border: 2px solid var(--surface); }
.st-photo-badge svg { width: 14px; height: 14px; }
.st-photo-pic input, .st-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.st-photo-pic:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.st-upload { position: relative; margin-top: 8px; }
.st-upload:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.st-section { display: grid; gap: var(--space-4); padding-bottom: var(--space-6); border-bottom: 1px solid var(--line); }
.st-section:last-child { border-bottom: 0; padding-bottom: 0; }
.st-section h3 { margin: 0; font: 600 13px/18px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.st-field { display: grid; gap: 6px; }
.st-label { font: 500 13px/18px var(--font-sans); color: var(--ink); }
.st-input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); font: 400 15px/22px var(--font-sans); color: var(--ink); }
input.st-input:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.st-input.is-locked { display: flex; align-items: center; gap: 10px; background: var(--surface-sunken); border-color: var(--line); color: var(--ink-muted); cursor: not-allowed; }
.st-input.is-locked span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.st-input svg { width: 16px; height: 16px; flex: none; color: var(--ink-muted); }
.st-select { position: relative; display: flex; align-items: center; gap: 10px; }
.st-select:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.st-select select { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; appearance: none; -webkit-appearance: none; font: inherit; color: var(--ink); cursor: pointer; }
.st-select select option { background: var(--surface); color: var(--ink); }
.st-select .chev { pointer-events: none; }
.st-hint { display: flex; align-items: center; gap: 6px; margin: -6px 0 0; font: 400 12px/17px var(--font-sans); color: var(--ink-muted); }
.st-hint svg { width: 12px; height: 12px; }
.st-hint--plain { margin: 0; }
.st-row { display: flex; align-items: center; gap: var(--space-3); width: 100%; padding: 14px var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); text-align: left; cursor: pointer; color: var(--ink); }
.st-row:hover { border-color: var(--line-strong); background: var(--canvas); }
.st-row > svg { width: 16px; height: 16px; color: var(--ink-muted); flex: none; }
.st-row > span { flex: 1; display: grid; font: 400 12px/17px var(--font-sans); color: var(--ink-muted); }
.st-row b { font: 600 14px/20px var(--font-sans); color: var(--ink); }
.st-pw { display: grid; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--canvas); }
.st-pw-actions { display: flex; justify-content: flex-end; gap: var(--space-2); }
.st-foot { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-4) var(--space-6); border-top: 1px solid var(--line); background: var(--surface); }
.st-saved { margin-right: auto; font: 400 13px/18px var(--font-sans); color: var(--caution); }
.st-toast { position: fixed; z-index: 60; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: var(--radius-md); background: #1d2a24; color: #ffffff; font: 500 14px/20px var(--font-sans); box-shadow: var(--shadow-pop); }
.st-toast svg { width: 16px; height: 16px; color: #93d27a; }
