:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --bg: #f3f5f6;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --ink: #18212b;
  --muted: #687482;
  --line: #dfe4e8;
  --nav: #202b33;
  --nav-2: #172128;
  --blue: #146f78;
  --blue-soft: #e4f3f3;
  --green: #19734b;
  --green-soft: #e7f5ee;
  --amber: #a15c00;
  --amber-soft: #fff3d6;
  --red: #b4232f;
  --red-soft: #fdecee;
  --shadow: 0 18px 54px rgba(24, 33, 43, .18);
}

* { box-sizing: border-box; letter-spacing: 0; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); min-width: 320px; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: 0; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
input, select, textarea { width: 100%; border: 1px solid #cfd6dc; border-radius: 6px; background: #fff; padding: 10px 12px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 105, 170, .12); }
textarea { resize: vertical; line-height: 1.5; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
.muted { color: var(--muted); }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: #146f78; font-weight: 800; }
.brand-mark.small { width: 36px; height: 36px; font-size: 13px; }

.auth-root { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #e9eef0; }
.auth-root[hidden], .app-shell[hidden] { display: none; }
.auth-panel { width: min(100%, 410px); display: grid; gap: 24px; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.auth-panel > div:nth-child(2) { display: grid; gap: 8px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; background: #edf1f4; border-radius: 6px; padding: 3px; }
.segment { border: 0; border-radius: 4px; background: transparent; padding: 9px; color: var(--muted); font-weight: 700; }
.segment.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.stack-form { display: grid; gap: 15px; }
label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; color: #475461; }
.primary, .secondary, .success { min-height: 40px; border-radius: 6px; padding: 9px 14px; font-weight: 700; border: 1px solid transparent; }
.primary { background: var(--blue); color: #fff; }
.primary:hover { background: #115b95; }
.secondary { background: #fff; border-color: #cfd6dc; }
.secondary:hover { background: #f3f6f8; }
.success { background: var(--green); color: #fff; }
.wide { width: 100%; }
.form-error { min-height: 18px; color: var(--red); font-size: 12px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--nav); color: #dbe8f1; display: flex; flex-direction: column; padding: 18px 12px 12px; z-index: 20; }
.brand { display: flex; gap: 11px; align-items: center; padding: 0 8px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand > span:last-child { display: grid; gap: 2px; }
.brand small { color: #91a9ba; font-size: 11px; }
.main-nav { display: grid; gap: 3px; margin-top: 14px; overflow-y: auto; }
.nav-item { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 9px; min-height: 38px; padding: 7px 9px; border: 0; border-radius: 6px; background: transparent; color: #c8d8e4; text-align: left; font-size: 13px; }
.nav-item:hover { background: rgba(255,255,255,.06); }
.nav-item.active { background: #e6f2f2; color: #17363a; font-weight: 800; }
.nav-item b { min-width: 22px; border-radius: 10px; padding: 2px 6px; background: rgba(255,255,255,.1); text-align: center; font-size: 10px; }
.nav-item.active b { background: #cfe4f2; }
.nav-glyph { font-size: 10px; font-weight: 800; opacity: .8; }
.sidebar-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); }
.user-button { width: 100%; display: flex; align-items: center; gap: 9px; border: 0; background: transparent; color: #fff; text-align: left; padding: 7px; }
.user-button > span:last-child { display: grid; gap: 2px; min-width: 0; }
.user-button strong { overflow: hidden; text-overflow: ellipsis; }
.user-button small { color: #91a9ba; }
.avatar { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #d7e9f5; color: #164b70; font-size: 11px; font-style: normal; font-weight: 800; }
.avatar.tiny { width: 28px; height: 28px; }
.quiet { border: 0; background: transparent; color: #9ab0c0; padding: 7px; }
.workspace { min-width: 0; }
.topbar { height: 72px; display: flex; align-items: center; gap: 14px; padding: 0 28px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar > div:nth-child(2) { display: grid; gap: 2px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.sync-state { color: var(--muted); font-size: 11px; }
.menu-button { display: none; border: 0; background: transparent; font-size: 22px; }
.main-content { max-width: 1540px; margin: 0 auto; padding: 24px 28px 48px; display: grid; gap: 18px; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric { min-height: 118px; display: grid; align-content: space-between; padding: 17px; background: #fff; border: 1px solid var(--line); border-top: 3px solid #81909c; border-radius: 6px; }
.metric span, .metric small { color: var(--muted); font-size: 12px; }
.metric strong { font-size: 32px; }
.metric.danger { border-top-color: var(--red); }
.metric.accent { border-top-color: var(--green); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 18px; }
.section-panel, .table-panel { background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.section-panel { padding: 18px; }
.section-heading, .list-toolbar { min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.section-heading > div, .list-toolbar > div { display: grid; gap: 3px; }
.text-button, .danger-text { border: 0; background: transparent; color: var(--blue); font-weight: 700; padding: 7px; }
.danger-text { color: var(--red); }
.people-load { display: grid; gap: 8px; margin-top: 12px; }
.person-load { width: 100%; display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 11px; text-align: left; }
.person-main { min-width: 0; display: grid; gap: 5px; }
.person-main small, .record-table small, .compact-record small, .linked-item small, .criterion-form small { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.progress-track { display: block; height: 5px; border-radius: 3px; background: #e8edf0; overflow: hidden; }
.progress-track i { display: block; height: 100%; background: var(--green); }
.compact-list { display: grid; margin-top: 10px; }
.compact-record { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; border: 0; border-top: 1px solid var(--line); background: transparent; padding: 11px 0; text-align: left; }
.compact-record > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.type-code { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 5px; background: #e9f0f1; color: #36575a; font-size: 9px; font-weight: 900; font-style: normal; }
.deadline { display: inline-flex; width: fit-content; border-radius: 4px; padding: 4px 7px; background: #eef2f4; color: #596773; font-size: 10px; font-style: normal; font-weight: 800; }
.deadline.overdue, .deadline.urgent { background: var(--red-soft); color: var(--red); }
.deadline.soon { background: var(--amber-soft); color: var(--amber); }
.deadline.done { background: var(--green-soft); color: var(--green); }
.deadline.normal { background: var(--blue-soft); color: var(--blue); }

.list-toolbar { background: #fff; border: 1px solid var(--line); padding: 12px; border-radius: 6px; }
.search-box { flex: 1; max-width: 540px; }
.list-toolbar select { width: 220px; }
.record-total { color: var(--muted); font-size: 12px; white-space: nowrap; }
.status-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid #d4dbe0; }
.status-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); padding: 10px 12px; white-space: nowrap; }
.status-tabs button.active { border-bottom-color: var(--blue); color: var(--blue); font-weight: 800; }
.record-table { display: grid; grid-template-columns: minmax(260px, 2fr) minmax(130px, .8fr) 130px minmax(180px, 1fr); gap: 14px; align-items: center; }
.record-table.simple { grid-template-columns: minmax(260px, 2fr) minmax(130px, .8fr) 130px minmax(160px, .8fr); }
.record-table.header { padding: 10px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.record-table.row { width: 100%; min-height: 72px; border: 0; border-bottom: 1px solid #edf0f2; background: #fff; padding: 11px 16px; text-align: left; }
.record-table.row:hover { background: #f8fafb; }
.record-table.row > span { min-width: 0; display: grid; gap: 5px; }
.record-title { grid-template-columns: 30px 1fr !important; align-items: center; }
.record-title > span { min-width: 0; display: grid; gap: 3px; }
.record-title strong, .record-title small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owner-chip { width: fit-content; font-size: 12px; }
.status { display: inline-flex; width: fit-content; border-radius: 4px; padding: 4px 7px; background: #eef2f4; color: #52616d; font-size: 10px; font-style: normal; font-weight: 800; }
.status-main, .status-completed { background: var(--green-soft); color: var(--green); }
.status-rejected, .status-cancelled, .status-blocked { background: var(--red-soft); color: var(--red); }
.status-review, .status-in_progress { background: var(--blue-soft); color: var(--blue); }
.status-postponed { background: var(--amber-soft); color: var(--amber); }
.empty-state { color: var(--muted); padding: 28px 10px; text-align: center; }

.activity-list { display: grid; margin-top: 10px; }
.activity-list.inside { margin-top: 0; }
.activity-item { width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 18px; gap: 10px; align-items: center; border: 0; border-top: 1px solid var(--line); background: transparent; padding: 12px 4px; text-align: left; }
.activity-item:hover { background: #f6f9f9; }
.activity-item > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.activity-item small { color: var(--muted); font-size: 11px; }
.activity-item time { color: var(--muted); font-size: 10px; }
.activity-arrow { color: #839198; font-size: 22px; }
.change-line { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: #52616d; font-size: 10px; line-height: 1.4; }
.change-line b { color: #34434f; }
.change-line del { color: var(--red); text-decoration-thickness: 1px; }
.change-line ins { color: var(--green); text-decoration: none; font-weight: 700; }
.change-line i { color: #8c98a1; font-style: normal; }
.timeline { max-width: 980px; display: grid; }
.timeline-row { display: grid; grid-template-columns: 150px 18px 1fr; gap: 12px; min-height: 72px; }
.timeline-row > time { color: var(--muted); font-size: 11px; padding-top: 13px; text-align: right; }
.timeline-row > i { position: relative; border-left: 2px solid #c9d5dc; }
.timeline-row > i::before { content: ''; position: absolute; left: -6px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); border: 2px solid var(--bg); }
.timeline-row > div { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; margin-bottom: 8px; }
.timeline-deadline { min-height: 62px; width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; text-align: left; }
.timeline-deadline > span:last-child { display: grid; gap: 4px; }
.timeline-deadline small { color: var(--muted); }

dialog { border: 0; padding: 0; border-radius: 8px; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(8, 23, 34, .48); }
.record-dialog { width: min(1320px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
.event-dialog { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
.create-dialog { width: min(720px, calc(100vw - 32px)); }
.reason-dialog { width: min(560px, calc(100vw - 32px)); }
.dialog-header { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px; background: #fff; border-bottom: 1px solid var(--line); }
.dialog-header > div { display: grid; gap: 4px; }
.dialog-header p, .record-kind { color: var(--muted); font-size: 11px; }
.close-button { width: 36px; height: 36px; border: 0; background: #edf1f3; border-radius: 6px; font-size: 24px; line-height: 1; }
.dialog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; background: var(--bg); }
.dialog-main { padding: 18px 22px 36px; min-width: 0; }
.dialog-aside { padding: 18px; border-left: 1px solid var(--line); background: #fff; display: grid; align-content: start; gap: 16px; }
.fact { display: grid; gap: 5px; }
.fact span { color: var(--muted); font-size: 10px; text-transform: uppercase; font-weight: 800; }
.fact strong { font-size: 12px; }
.idea-actions { display: flex; gap: 8px; padding: 12px 22px; border-bottom: 1px solid var(--line); background: #f8fafb; }
.record-tabs { position: sticky; top: 85px; z-index: 2; display: flex; gap: 2px; overflow-x: auto; padding: 0 22px; background: #fff; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.record-tabs::-webkit-scrollbar { display: none; }
.record-tab { min-height: 46px; display: flex; align-items: center; gap: 7px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); padding: 0 12px; white-space: nowrap; font-size: 12px; font-weight: 700; }
.record-tab.active { border-bottom-color: var(--blue); color: var(--blue); }
.record-tab b { min-width: 20px; border-radius: 10px; padding: 2px 6px; background: #e8edef; color: #56636d; font-size: 10px; text-align: center; }
.record-tab.active b { background: var(--blue-soft); color: var(--blue); }
.record-pane { display: none; }
.record-pane.active { display: block; }
.record-overview-form { border-top: 3px solid var(--blue); }
.record-overview-form.dirty { border-top-color: var(--amber); }
.form-save-state { color: var(--muted); font-size: 11px; }
.dirty .form-save-state { color: var(--amber); font-weight: 700; }
.reason-field { padding: 12px; border-left: 3px solid var(--amber); background: var(--amber-soft); }
.form-more { border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); }
.form-more summary { cursor: pointer; padding: 12px 14px; color: #3d4c56; font-size: 12px; font-weight: 800; }
.form-more-body { display: grid; gap: 12px; padding: 0 14px 14px; }
.content-stack { margin-top: 0; }
.history-pane { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.draft-banner { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 10px; padding: 12px 14px; border: 1px solid #e3bd72; border-left: 4px solid var(--amber); border-radius: 6px; background: var(--amber-soft); }
.draft-banner > span { display: grid; gap: 3px; }
.draft-banner small { color: #77551d; }
.draft-banner > div { display: flex; gap: 6px; }
.stage-action { border: 1px solid #cfd6dc; background: #fff; border-radius: 6px; padding: 8px 12px; font-weight: 700; }
.stage-action.main { color: var(--green); border-color: #9bcdb5; }
.stage-action.rejected { color: var(--red); border-color: #e4adb2; }
.card-form { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.dialog-form { margin: 20px; }
.form-grid { display: grid; gap: 12px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.form-actions .danger-text { margin-left: auto; }
.accordion-stack { display: grid; gap: 8px; margin-top: 12px; }
.accordion { border: 1px solid var(--line); border-radius: 6px; background: #fff; overflow: hidden; }
.accordion summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; cursor: pointer; font-weight: 800; }
.accordion summary small { color: var(--muted); font-size: 10px; font-weight: 600; }
.accordion[open] summary { border-bottom: 1px solid var(--line); }
.inline-editor { display: grid; gap: 10px; padding: 14px; }
.inline-editor .secondary { justify-self: start; }
.criteria-list, .linked-list, .proof-list { display: grid; }
.criterion-form { display: grid; grid-template-columns: minmax(180px, 1fr) 70px minmax(160px, .8fr) auto; align-items: center; gap: 9px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.criterion-form > div { min-width: 0; display: grid; gap: 3px; }
.linked-item { display: grid; grid-template-columns: 1fr 36px; border-bottom: 1px solid var(--line); }
.linked-item > button:first-child { display: grid; grid-template-columns: 30px 1fr; gap: 9px; align-items: center; border: 0; background: transparent; padding: 10px 14px; text-align: left; }
.linked-item > button:first-child > span { display: grid; gap: 3px; }
.remove-link { border: 0; background: transparent; color: var(--red); font-size: 20px; }
.link-form { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(120px, .5fr) auto; gap: 9px; padding: 12px 14px; }
.proof { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.proof header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.proof time { color: var(--muted); font-size: 10px; }
.proof p { white-space: normal; line-height: 1.55; }
.proof a { color: var(--blue); word-break: break-all; }
.proof-form, .completion-box { display: grid; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.proof-form { grid-template-columns: 120px 1fr auto; align-items: start; }
.proof-form textarea { min-height: 80px; }
.completion-box { background: #f5faf7; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; }

.definition-form { display: grid; grid-template-columns: minmax(220px, 1fr) 220px 160px auto; gap: 10px; margin: 16px 0; padding: 14px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 6px; }
.definition-list { display: grid; }
.definition-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.definition-row > span { display: grid; gap: 3px; }
.definition-row small { color: var(--muted); }
.definition-row.inactive { opacity: .55; }
.notification-list { display: grid; }
.notification { position: relative; width: 100%; display: grid; grid-template-columns: 9px 1fr; gap: 10px; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 14px 8px; text-align: left; }
.notification > i { width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: transparent; }
.notification.unread > i { background: var(--blue); }
.notification > span { display: grid; gap: 5px; }
.notification p, .notification small { color: var(--muted); font-size: 11px; }
.event-body { display: grid; gap: 18px; padding: 20px 22px 24px; background: var(--bg); }
.event-summary { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; }
.event-summary .avatar { width: 42px; height: 42px; }
.event-summary > div { display: grid; gap: 4px; }
.event-section { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.event-change-list { display: grid; gap: 9px; }
.event-change-list .change-line { padding: 9px 0; border-top: 1px solid var(--line); font-size: 12px; }
.event-reason { margin-top: 5px; color: #44525c; line-height: 1.45; }
.event-details { display: grid; gap: 0; margin: 0; }
.event-details > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.event-details dt { color: var(--muted); font-size: 11px; }
.event-details dd { margin: 0; overflow-wrap: anywhere; font-size: 12px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 100; max-width: 360px; transform: translateY(16px); opacity: 0; pointer-events: none; padding: 12px 16px; border-radius: 6px; background: #153b56; color: #fff; box-shadow: var(--shadow); transition: .2s ease; }
.toast.visible { transform: translateY(0); opacity: 1; }
.toast.error { background: var(--red); }

@media (max-width: 1100px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .record-table { grid-template-columns: minmax(240px, 1.8fr) 120px 120px minmax(160px, 1fr); }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-aside { display: none; }
}

@media (max-width: 820px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -260px; width: 244px; transition: left .2s ease; box-shadow: var(--shadow); }
  .sidebar.open { left: 0; }
  .menu-button { display: block; }
  .topbar { padding: 0 14px; }
  .main-content { padding: 16px 14px 36px; }
  .record-table.header { display: none; }
  .record-table.row, .record-table.row.simple { grid-template-columns: 1fr 1fr; }
  .record-table.row > span:first-child { grid-column: 1 / -1; }
  .form-grid.three { grid-template-columns: 1fr 1fr; }
  .criterion-form { grid-template-columns: 1fr 70px; }
  .criterion-form input[name="note"] { grid-column: 1 / -1; }
  .criterion-form button { grid-column: 1 / -1; }
  .definition-form { grid-template-columns: 1fr 1fr; }
  .proof-form { grid-template-columns: 1fr; }
  .record-tabs { top: 77px; }
}

@media (max-width: 560px) {
  .auth-panel { padding: 22px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 104px; padding: 13px; }
  .metric strong { font-size: 26px; }
  .topbar-actions .sync-state { display: none; }
  .topbar-actions .primary { font-size: 0; width: 40px; padding: 0; }
  .topbar-actions .primary::before { content: '+'; font-size: 22px; }
  .list-toolbar { align-items: stretch; flex-direction: column; }
  .list-toolbar select { width: 100%; }
  .record-table.row, .record-table.row.simple { grid-template-columns: 1fr; }
  .record-table.row > span:first-child { grid-column: auto; }
  .form-grid.two, .form-grid.three { grid-template-columns: 1fr; }
  .dialog-main { padding: 12px; }
  .dialog-header { padding: 14px; }
  .record-tabs { top: 69px; padding: 0 8px; }
  .record-tab { min-height: 42px; padding: 0 9px; }
  .draft-banner { align-items: stretch; flex-direction: column; }
  .draft-banner > div { width: 100%; }
  .draft-banner button { flex: 1; }
  .idea-actions { overflow-x: auto; padding: 10px 14px; }
  .link-form, .definition-form { grid-template-columns: 1fr; }
  .timeline-row { grid-template-columns: 18px 1fr; }
  .timeline-row > time { grid-column: 2; text-align: left; padding: 0 0 3px; }
  .timeline-row > i { grid-column: 1; grid-row: 1 / span 2; }
  .timeline-row > div { grid-column: 2; }
  .activity-item { grid-template-columns: 30px minmax(0, 1fr) 16px; }
  .activity-item time { grid-column: 2; }
  .activity-arrow { grid-column: 3; grid-row: 1 / span 2; }
  .event-body { padding: 14px; }
  .event-details > div { grid-template-columns: 1fr; gap: 4px; }
}
