@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/instrument-sans-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/instrument-sans-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/instrument-sans-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/instrument-sans-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #252d32;
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --canvas: #ffffff;
  --surface: #f7f8f6;
  --surface-muted: #f1f3f0;
  --ink: #252d32;
  --ink-strong: #172125;
  --muted: #6c7477;
  --faint: #92999a;
  --line: #e5e9e6;
  --line-strong: #cfd6d2;
  --accent: #276b60;
  --accent-hover: #1e584f;
  --accent-soft: #eaf3ef;
  --accent-line: #bdd7cc;
  --warning: #85602c;
  --warning-soft: #fbf5e9;
  --danger: #a34442;
  --danger-soft: #fcf0ee;
  --sidebar-width: 216px;
  --topbar-height: 64px;
  --radius: 7px;
  --transition: 150ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
svg { display: block; flex-shrink: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
button, a, input, select, textarea { touch-action: manipulation; }
::selection { color: var(--ink-strong); background: #cce4d9; }
:focus-visible { outline: 3px solid #7fb0a0; outline-offset: 3px; }
[hidden] { display: none !important; }

.app-shell { min-height: 100svh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  padding: 25px 14px 18px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 12px; color: var(--ink-strong); font-size: 16px; font-weight: 650; letter-spacing: -.45px; line-height: 1.1; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 29px; flex-shrink: 0; border-radius: 8px; background: var(--ink-strong); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: -1px; }
.brand-mark svg { width: 17px; height: 17px; }
.sidebar nav { display: grid; gap: 5px; margin-top: 44px; }
.sidebar .eyebrow { padding: 0 12px; margin: 28px 0 11px; color: var(--faint); font-size: 10px; }
.sidebar .eyebrow + nav { margin-top: 0; }
.sidebar-label.eyebrow { margin-top: 36px; margin-bottom: 12px; }
.nav-link { display: flex; align-items: center; min-height: 40px; gap: 11px; padding: 9px 12px; border: 0; border-radius: 6px; background: transparent; color: #687174; font-size: 13px; font-weight: 500; text-align: left; transition: background var(--transition), color var(--transition); }
.nav-link:hover { background: #ecefec; color: var(--ink); }
.nav-link:is([data-active="true"], [data-active=""], [aria-current="page"]) { background: #e4eee8; color: #286254; }
.nav-icon { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex-shrink: 0; font-size: 16px; line-height: 1; }
.nav-icon svg { width: 18px; height: 18px; stroke-width: 1.65; }
.nav-label { flex: 1; }
.nav-meta { min-width: 19px; padding: 0 5px; border-radius: 4px; background: #e9ece8; color: #6c7670; font-size: 10px; font-weight: 600; line-height: 18px; text-align: center; }
.nav-link[data-active="true"] .nav-meta { background: #d6e4db; color: #2f6354; }
.sidebar-footer { margin-top: auto; padding: 20px 10px 0; color: var(--muted); font-size: 11px; }
.sidebar-footer p + p { margin-top: 5px; }
.sidebar-footer .button { width: 100%; justify-content: flex-start; margin-top: 14px; }
.sidebar-footer .environment-label { margin-bottom: 8px; font-size: 10px; }
.sidebar-footer > .nav-link { width: 100%; margin-top: 17px; margin-left: -9px; padding-left: 9px; }
.sidebar-footer > .secondary-text { font-size: 11px; line-height: 1.65; }
.main-shell { min-width: 0; margin-left: var(--sidebar-width); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--topbar-height); padding: 0 36px; border-bottom: 1px solid var(--line); background: var(--canvas); }
.breadcrumb { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 12px; color: var(--muted); }
.breadcrumb strong, .breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }
.breadcrumb svg { width: 12px; height: 12px; color: #aeb5b1; }
.topbar-actions { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.environment-label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; line-height: 1.3; white-space: nowrap; }
.environment-label::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #759487; }
.environment-label:has(> svg)::before, .environment-label:has(> .status-dot)::before { display: none; }
.environment-label > svg { width: 13px; height: 13px; color: #7c8a7e; }
.user-button { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid #dce3de; border-radius: 50%; color: #4b6156; background: #edf1e9; font-size: 11px; font-weight: 600; transition: background var(--transition); }
.user-button:hover { background: #dfe8dc; }
.workspace { width: 100%; max-width: 1400px; margin-inline: auto; padding: 37px 36px 60px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.eyebrow { margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 1.15px; line-height: 1.35; text-transform: uppercase; }
h1 { color: var(--ink-strong); font-size: 30px; font-weight: 600; letter-spacing: -1.1px; line-height: 1.2; }
.page-subtitle { max-width: 740px; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 4px; flex-shrink: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 37px; padding: 8px 13px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 500; line-height: 1.4; text-align: center; white-space: nowrap; box-shadow: 0 1px 2px #17212505; transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition); }
.button:hover { background: var(--surface); border-color: #b8c3bc; }
.button svg { width: 15px; height: 15px; stroke-width: 1.8; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.secondary { background: #fff; }
.button.ghost { background: transparent; border-color: transparent; box-shadow: none; }
.button.ghost:hover { background: var(--surface-muted); color: var(--ink-strong); }
.button.danger { background: #fff; border-color: #e4c7c2; color: var(--danger); }
.button.danger:hover { background: var(--danger-soft); border-color: #d9a9a2; }
.button.small { min-height: 30px; padding: 5px 10px; font-size: 11px; }
.button:disabled { opacity: .46; box-shadow: none; }
.button:active:not(:disabled), .icon-button:active:not(:disabled) { transform: translateY(1px); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 6px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--muted); transition: background var(--transition), color var(--transition); }
.icon-button:hover { color: var(--ink); background: var(--surface-muted); }
.icon-button svg { width: 17px; height: 17px; }

.tabs { display: flex; align-items: stretch; gap: 25px; min-height: 41px; margin-bottom: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.tab { display: inline-flex; align-items: center; justify-content: center; gap: 7px; position: relative; padding: 0 1px 12px; border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; transition: color var(--transition); }
.tab:hover { color: var(--ink); }
.tab:is([data-active="true"], [data-active=""], [aria-selected="true"]) { color: var(--accent); }
.tab:is([data-active="true"], [data-active=""], [aria-selected="true"])::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--accent); }
.tab .nav-meta { background: var(--surface-muted); color: var(--muted); font-size: 10px; line-height: 17px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.search-field { display: flex; align-items: center; gap: 8px; min-width: 160px; width: 270px; position: relative; }
.search-field > svg { position: absolute; left: 11px; width: 15px; height: 15px; z-index: 1; pointer-events: none; color: #929b96; }
.search-field input { width: 100%; height: 35px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--canvas); color: var(--ink); font-size: 12px; outline: none; transition: border-color var(--transition), box-shadow var(--transition); }
.search-field:has(> svg) input { padding-left: 34px; }
.search-field input::placeholder { color: #929995; opacity: 1; }
.search-field input:focus, .select-field select:focus { border-color: #80ab9c; box-shadow: 0 0 0 3px #276b6010; }
.select-field { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.select-field select { max-width: 240px; min-height: 35px; padding: 7px 26px 7px 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--canvas); color: #5d6862; font-size: 12px; outline: none; transition: border-color var(--transition), box-shadow var(--transition); }
.toolbar-end { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.work-toolbar { align-items: flex-end; margin-bottom: 24px; }
.work-toolbar > .field { min-width: 180px; }
.work-toolbar .toolbar-end { padding-bottom: 2px; }
.work-table .primary-cell, .work-table td:first-child { max-width: 380px; }
.work-table .cell-stack .secondary-text { max-width: 340px; font-size: 12px; line-height: 1.5; white-space: normal; }
.work-detail-status, .work-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.work-description { margin-block: 16px 22px; font-size: 13px; line-height: 1.65; }
.work-detail .form-stack { margin-top: 24px; }
.work-detail > .field-help { display: block; margin-top: 18px; }
.work-history { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.work-history h3 { margin-bottom: 14px; font-size: 13px; }
.work-history ol { list-style: none; padding: 0; margin: 0; }
.work-history li + li { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.work-history-heading { align-items: baseline; font-size: 12px; }
.work-history li p { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.result-count { color: var(--muted); font-size: 11px; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 5px; min-height: 27px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--muted); font-size: 11px; line-height: 1.4; transition: background var(--transition), color var(--transition), border-color var(--transition); }
button.chip:hover { background: var(--surface); }
.chip:is([data-active="true"], [data-active=""]) { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.chip svg { width: 12px; height: 12px; }
.summary-strip { display: flex; flex-wrap: wrap; gap: 0; margin: 4px 0 25px; padding: 20px 0 22px; border-block: 1px solid var(--line); }
.summary-item { display: flex; flex-direction: column; gap: 5px; flex: 1 1 150px; padding: 0 25px; border-left: 1px solid var(--line); }
.summary-item:first-child { padding-left: 0; border-left: 0; }
.summary-value { color: var(--ink-strong); font-size: 25px; font-weight: 500; letter-spacing: -.7px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.summary-label { color: var(--muted); font-size: 11px; }
.summary-item .secondary-text { font-size: 10px; }
.summary-word { font-size: 23px; letter-spacing: -.45px; }
.content-layout { min-width: 0; }
.content-layout.with-inspector { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 28px; }
#content-inspector-slot { min-width: 0; }
#content-inspector-slot:empty { display: none; }
.content-layout.with-inspector:has(> #content-inspector-slot:empty) { display: block; }
.table-area { min-width: 0; overflow-x: auto; }
.table-caption { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; font-size: 12px; }
.table-caption h2, .table-caption h3 { color: var(--ink); font-size: 13px; font-weight: 600; }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 0; color: var(--muted); font-size: 11px; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; text-align: left; }
.data-table th { height: 38px; padding: 9px 14px; border-block: 1px solid var(--line); background: #f8f9f7; color: #6d7770; font-size: 11px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.data-table th:first-child { border-top-left-radius: 5px; border-bottom-left-radius: 5px; }
.data-table th:last-child { border-top-right-radius: 5px; border-bottom-right-radius: 5px; }
.data-table td { height: 71px; padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; transition: background var(--transition); }
.data-table tbody tr:hover td { background: #fafbf9; }
.data-table tbody tr:is([data-selected="true"], [data-selected=""], [aria-selected="true"]) td { background: #f0f6f2; }
.data-table tbody tr:is([data-selected="true"], [data-selected=""], [aria-selected="true"]) td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.data-table tr[tabindex="0"] { cursor: pointer; }
.data-table tr:focus-visible { outline-offset: -3px; }
.primary-cell { color: var(--ink-strong); font-size: 14px; font-weight: 500; }
.primary-cell > a, a.row-link { display: inline-flex; align-items: center; gap: 11px; color: var(--ink-strong); text-align: left; }
.row-link { display: inline-flex; align-items: center; gap: 11px; padding: 0; border: 0; background: none; color: var(--ink-strong); font-weight: 500; text-align: left; }
.row-link:hover { color: var(--accent); }
.cell-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.cell-stack > :first-child { overflow-wrap: anywhere; }
.secondary-text { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.45; }
.data-table .secondary-text { font-size: 13px; }
.number-cell { font-variant-numeric: tabular-nums; text-align: right; }
.data-table .number-cell { white-space: nowrap; }
.row-action { display: inline-flex; align-items: center; gap: 4px; padding: 5px 0 5px 7px; border: 0; border-radius: 3px; color: var(--muted); background: none; font-size: 11px; font-weight: 500; white-space: nowrap; }
.row-action:hover { color: var(--accent); }
.row-action svg { width: 13px; height: 13px; }
.actions-cell { width: 1%; text-align: right; white-space: nowrap; }
.selection-cell { width: 34px; }
.data-table .selection-cell { padding-inline: 10px; }
input[type="checkbox"], input[type="radio"] { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); vertical-align: middle; cursor: pointer; }
.model-avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; overflow: hidden; border: 1px solid #e0e7e0; border-radius: 50%; background: #edf0e9; color: #6c7b6a; font-size: 11px; font-weight: 500; letter-spacing: -.1px; }
.model-avatar img, .media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-thumb { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 46px; flex-shrink: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-muted); color: #8c998f; }
.media-thumb svg { width: 19px; height: 19px; }
.avatar-stack { display: flex; padding-left: 5px; }
.avatar-stack .model-avatar { width: 25px; height: 25px; margin-left: -5px; border: 2px solid #fff; font-size: 8px; }
.status { display: inline-flex; align-items: center; gap: 5px; width: fit-content; max-width: 100%; padding: 3px 7px; border-radius: 4px; color: #626d66; background: #f0f3ee; font-size: 11px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.status.success { color: #4a7561; background: #edf4ed; }
.status.warning { color: var(--warning); background: var(--warning-soft); }
.status.neutral { color: #727c76; background: #f0f2ef; }
.status.danger, .status.error { color: var(--danger); background: var(--danger-soft); }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.inspector { min-width: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--canvas); overflow: hidden; animation: context-enter 150ms ease-out both; }
.inspector-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 19px; border-bottom: 1px solid var(--line); }
.inspector-header h2, .inspector-header h3 { font-size: 13px; font-weight: 600; letter-spacing: -.15px; }
.inspector-header .eyebrow { margin-bottom: 5px; font-size: 9px; }
.inspector-header > .icon-button { flex-shrink: 0; }
.inspector-backdrop { display: none; }
.inspector-body { padding: 20px; }
.inspector-body > .secondary-text { margin-top: -7px; margin-bottom: 22px; font-size: 11px; overflow-wrap: anywhere; }
.inspector > .form-stack, .inspector > .detail-list, .inspector > .section-heading, .inspector > .notice { margin: 20px; }
.inspector .section-heading { margin-top: 24px; }
.inspector .section-heading:first-child { margin-top: 0; }
.inspector .model-avatar { width: 45px; height: 45px; font-size: 13px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 15px; color: var(--ink-strong); font-size: 14px; font-weight: 600; letter-spacing: -.2px; }
.section-heading h2, .section-heading h3 { font: inherit; }
.section-heading:first-child { margin-top: 0; }
.detail-list { display: flex; flex-direction: column; margin: 0; }
.detail-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.detail-row:first-child { padding-top: 0; }
.detail-row:last-child { border-bottom: 0; }
.detail-label { flex-shrink: 0; max-width: 45%; color: var(--muted); font-size: 11px; }
.detail-value { min-width: 0; margin: 0; color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.code-text { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.form-stack { display: flex; flex-direction: column; gap: 18px; }
.form-stack > fieldset { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, label.field, .field > .field-label { color: #47554d; font-size: 11px; font-weight: 500; }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .field select, .field textarea { width: 100%; min-height: 38px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 6px; outline: 0; color: var(--ink); background: var(--canvas); font-size: 12px; font-weight: 400; line-height: 1.5; transition: border-color var(--transition), box-shadow var(--transition); }
.field input::placeholder, .field textarea::placeholder { color: #a0a6a1; }
.field textarea { resize: vertical; min-height: 108px; }
.field input[type="file"] { width: 100%; padding: 5px; border: 1px solid var(--line); border-radius: 6px; background: #fafbf9; color: var(--muted); font-size: 11px; }
input[type="file"]::file-selector-button { margin-right: 9px; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--canvas); color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; }
input[type="file"]::file-selector-button:hover { background: var(--surface-muted); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #80ab9c; box-shadow: 0 0 0 3px #276b6010; }
.field :is(input, select, textarea)[aria-invalid="true"] { border-color: #ce8b82; }
.field :is(input, select, textarea):disabled { background: var(--surface); color: var(--muted); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-wide { grid-column: 1 / -1; }
.field-help { color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.55; }
.field-help a, .permission-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.form-error, .login-error { padding: 10px 12px; border: 1px solid #efd7d1; border-radius: 5px; background: var(--danger-soft); color: #9e5149; font-size: 12px; line-height: 1.5; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.form-actions > .secondary-text { margin-right: auto; }
.permission-note { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.permission-note svg { width: 14px; height: 14px; margin-top: 2px; color: #919c94; }
.notice { display: flex; align-items: flex-start; gap: 9px; margin-block: 15px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: #6b756f; font-size: 11px; line-height: 1.6; }
.notice > svg { width: 15px; height: 15px; margin-top: 1px; flex-shrink: 0; }
.notice strong { display: block; margin-bottom: 2px; color: inherit; font-weight: 600; }
.notice p + p { margin-top: 4px; }
.notice.info { border-color: #dbe7de; background: #f4f8f3; color: #607768; }
.notice.warning { border-color: #eee2c8; background: #fcf9f0; color: #8c744b; }
.notice .button { margin-left: auto; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, .75fr); align-items: start; gap: 60px; }
.settings-grid > section + section { padding-left: 32px; border-left: 1px solid var(--line); }
.settings-grid > aside { padding-left: 32px; border-left: 1px solid var(--line); }
.settings-grid .detail-list + .field-help { margin-top: 15px; line-height: 1.65; }
.profile-notes { color: var(--muted); font-size: 13px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.siren-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin: 26px 0 24px; }
.siren-heading h2 { color: var(--ink-strong); font-size: 16px; font-weight: 500; }
.siren-heading .field-help { margin-top: 6px; }
.siren-heading > .secondary-text { flex-shrink: 0; }
.siren-layout { display: grid; grid-template-columns: minmax(0, 1fr) 252px; align-items: start; gap: 42px; }
.siren-section { display: flex; flex-direction: column; gap: 18px; padding-top: 23px; border-top: 1px solid var(--line); }
.siren-section:first-child { border: 0; padding-top: 0; }
.siren-section h3, .siren-context h3 { color: #435440; font-size: 12px; font-weight: 600; }
.siren-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 16px; }
.siren-field-foot { display: flex; align-items: flex-start; gap: 16px; }
.siren-field-foot > :last-child { flex-shrink: 0; margin-left: auto; font-variant-numeric: tabular-nums; }
.siren-over-limit { color: #9e5149; }
.siren-languages legend { margin-bottom: 11px; color: #47554d; font-size: 11px; font-weight: 500; }
.siren-languages > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; }
.siren-languages label { display: flex; align-items: center; gap: 8px; color: #59665d; font-size: 12px; cursor: pointer; }
.siren-languages input { margin: 0; accent-color: var(--accent); }
.siren-inherit-help { margin-top: -5px; }
.siren-validation { padding-left: 12px; border-left: 2px solid #b8a478; color: #8c744b; font-size: 11px; line-height: 1.6; }
.siren-validation strong { font-weight: 500; }
.siren-validation ul { margin: 5px 0 0; padding-left: 16px; }
.siren-advanced-section { gap: 0; }
.siren-advanced-section > h3 { margin-bottom: 7px; }
.siren-advanced { border-bottom: 1px solid var(--line); }
.siren-advanced summary { display: flex; align-items: center; gap: 10px; padding: 17px 0; cursor: pointer; color: #47554d; font-size: 12px; list-style: none; }
.siren-advanced summary::-webkit-details-marker { display: none; }
.siren-advanced summary::before { content: '+'; width: 12px; color: var(--muted); font-size: 16px; }
.siren-advanced[open] summary::before { content: '−'; }
.siren-advanced summary > span { margin-left: auto; color: var(--muted); font-size: 10px; }
.siren-advanced > .siren-field-grid { padding: 2px 0 23px; }
.siren-context { display: flex; flex-direction: column; gap: 27px; padding-left: 26px; border-left: 1px solid var(--line); }
.siren-state { display: flex; flex-direction: column; gap: 13px; margin: 16px 0; }
.siren-state > div { display: flex; flex-direction: column; gap: 4px; }
.siren-state dt { color: var(--muted); font-size: 10px; }
.siren-state dd { margin: 0; color: #47554d; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.siren-context-link { color: var(--accent); font-size: 11px; }
.siren-save { margin-top: 2px; }
@media (max-width: 1100px) {
  .siren-layout { grid-template-columns: minmax(0, 1fr) 210px; gap: 28px; }
  .siren-context { padding-left: 20px; }
}
@media (max-width: 900px) {
  .siren-layout { grid-template-columns: minmax(0, 1fr); }
  .siren-context { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 25px 0 0; border-left: 0; border-top: 1px solid var(--line); gap: 22px; }
}
@media (max-width: 680px) {
  .siren-heading { flex-direction: column; gap: 9px; }
  .siren-field-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .siren-context { grid-template-columns: minmax(0, 1fr); }
  .siren-context section { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .siren-state { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .siren-field-foot { flex-wrap: wrap; gap: 5px; }
}
@media (max-width: 420px) { .siren-languages > div { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.next-step-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); align-items: center; gap: 64px; margin-top: 49px; padding-top: 30px; border-top: 1px solid var(--line); }
.next-step-section h2 { color: var(--ink-strong); font-size: 19px; font-weight: 500; letter-spacing: -.6px; line-height: 1.35; }
.next-step-section .page-subtitle { max-width: 390px; margin-top: 7px; font-size: 12px; }
.next-step-section .button { margin-top: 20px; }
.next-step-section .detail-row { padding-block: 13px; }
.next-step-section .detail-label { max-width: 65%; font-size: 12px; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; padding: 46px 28px; border-block: 1px solid var(--line); text-align: center; }
.empty-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 17px; border: 1px solid #e6ebe5; border-radius: 10px; background: #f8faf6; color: #809181; }
.empty-icon svg { width: 21px; height: 21px; stroke-width: 1.5; }
.empty-title { color: var(--ink); font-size: 15px; font-weight: 500; letter-spacing: -.3px; }
.empty-copy { max-width: 330px; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.empty-state .button { margin-top: 21px; }
.empty-state .inline-actions { margin-top: 21px; }
.empty-state .inline-actions .button { margin-top: 0; }
.media-preview { display: flex; align-items: center; justify-content: center; min-height: 160px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: #f2f4ef; }
.media-preview img, .media-preview video { width: 100%; max-height: 360px; object-fit: contain; }
.media-preview .empty-state { min-height: 180px; padding: 24px; border: 0; gap: 12px; }
.media-preview .empty-state > svg { width: 25px; height: 25px; color: #94a18e; }
.upload-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 150px; padding: 24px 18px; border: 1px dashed #c4d2c8; border-radius: 7px; background: #fafcf8; color: #5d7866; font-size: 12px; text-align: center; cursor: pointer; transition: border-color var(--transition), background var(--transition); }
.upload-zone:hover, .upload-zone[data-dragging="true"] { border-color: var(--accent); background: var(--accent-soft); }
.upload-zone > svg { width: 23px; height: 23px; margin-bottom: 6px; color: #879e89; }
.upload-zone strong { font-size: 12px; font-weight: 500; }
.upload-zone .secondary-text { max-width: 260px; color: #8b978c; font-size: 10px; }
.upload-zone > span { color: var(--muted); font-size: 11px; }
.upload-zone > input[type="file"] { width: 100%; max-width: 270px; margin-top: 12px; color: var(--muted); font-size: 11px; }
.upload-list { display: flex; flex-direction: column; }
.upload-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.upload-row > .cell-stack { flex: 1; }
.upload-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.upload-row > .secondary-text:last-child { margin-left: auto; flex-shrink: 0; }
.upload-row .media-thumb { width: 32px; height: 36px; }
.progress { height: 3px; width: 100%; border: 0; border-radius: 2px; overflow: hidden; background: #e8eee6; accent-color: var(--accent); }
.progress > span, .progress > div { display: block; height: 100%; background: var(--accent); }
.progress::-webkit-progress-bar { background: #e8eee6; }
.progress::-webkit-progress-value { background: var(--accent); }
.progress::-moz-progress-bar { background: var(--accent); }
.version-list { display: flex; flex-direction: column; }
.version-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.version-row .cell-stack { flex: 1; }
.version-row:last-child { border-bottom: 0; }
.checklist { list-style: none; }
.check-row { display: flex; align-items: flex-start; gap: 9px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.check-row > svg { width: 15px; height: 15px; margin-top: 2px; color: var(--accent); }
.check-row:last-child { border-bottom: 0; }
.check-row { align-items: center; padding-block: 17px; }
.check-row > .cell-stack { flex: 1; gap: 4px; }
.check-row > .cell-stack strong { color: #3b4c40; font-size: 13px; font-weight: 500; }
.check-row > svg:last-child { width: 14px; height: 14px; margin: 0; color: #a0aaa0; }
a.check-row { transition: background var(--transition); }
a.check-row:hover { background: #fafcf8; }
.check-marker { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-right: 3px; border: 1px solid #e1e9df; border-radius: 7px; background: #f6f9f2; color: #6e886e; }
.check-marker > svg { width: 15px; height: 15px; }
.check-marker.muted { border-color: var(--line); background: var(--surface); color: #97a093; }
.bulk-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 15px; padding: 10px 13px; border: 1px solid var(--accent-line); border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 12px; animation: context-enter 150ms ease-out both; }
.bulk-bar .inline-actions { margin-left: auto; }

.asset-sections { display: flex; flex-direction: column; gap: 36px; }
.asset-section { min-width: 0; }
.asset-section > .section-heading { margin: 0 0 16px; }
.asset-section > .section-heading .field-help { max-width: 670px; margin-top: 5px; font-weight: 400; }
.asset-section .table-footer { padding-bottom: 0; }
.asset-section .data-table td { height: 72px; }
.asset-section .empty-state { min-height: 80px; padding: 20px; border: 0; color: var(--muted); font-size: 12px; }
.asset-section .data-table td:has(> .empty-state) { height: auto; padding: 0; }
.asset-owner-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.asset-owner-label > svg { width: 13px; height: 13px; color: #89948b; }
.asset-plan-list { border-block: 1px solid var(--line); }
.asset-plan-list > .field-help { padding-block: 17px; }
.asset-plan { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr); align-items: center; gap: 20px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.asset-plan:last-child { border-bottom: 0; }
.asset-plan-step { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.asset-plan-step > .eyebrow { margin-bottom: 0; color: #778176; font-size: 9px; letter-spacing: .8px; }
.asset-plan-step > strong { max-width: 100%; color: #364638; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.asset-plan-step > .secondary-text { max-width: 100%; font-size: 11px; overflow-wrap: anywhere; }
.asset-plan-step > .status { margin-top: 2px; }
.asset-plan-arrow { display: flex; align-items: center; justify-content: center; color: #a4b0a3; font-size: 18px; }
.asset-plan-arrow > svg { width: 15px; height: 15px; stroke-width: 1.5; }
.asset-gaps { margin-block: 20px; }
.asset-gaps.notice { display: block; margin: 0; padding: 15px 18px; }
.asset-gaps > h2 { margin-bottom: 7px; font-size: 12px; font-weight: 600; letter-spacing: -.1px; }
.asset-gaps.notice > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 28px; margin-top: 0; font-size: 12px; }
.asset-gaps.notice > ul > li { margin-top: 0; }
.asset-gaps.notice > p { margin-top: 11px; padding-top: 10px; border-top: 1px solid #e0e9dd; color: #72806c; font-size: 11px; line-height: 1.55; }
.asset-gaps .notice { margin-block: 0; }
.asset-gaps ul, .asset-gaps ol { margin: 7px 0 0; padding-left: 17px; }
.asset-gaps li + li { margin-top: 4px; }
.asset-form-section { display: flex; flex-direction: column; gap: 15px; padding-top: 19px; border-top: 1px solid var(--line); }
.asset-form-section > .section-heading { margin: 0; font-size: 12px; }
.asset-form-section > h3, .asset-form-section > legend { color: #435440; font-size: 12px; font-weight: 500; }
.asset-form-section > .field-help { margin-top: -7px; }
.asset-security-checklist { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.asset-security-checklist > label { display: grid; grid-template-columns: 15px minmax(0, 1fr); align-items: start; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); color: #4c5b49; font-size: 12px; cursor: pointer; }
.asset-security-checklist > label > input { margin-top: 2px; }
.asset-security-checklist > label > span { min-width: 0; }
.asset-security-checklist .field-help, .asset-security-checklist .secondary-text { display: block; margin-top: 3px; font-size: 11px; }
.asset-security-checklist > label:has(input:disabled) { color: var(--muted); cursor: default; }

.login-page { display: flex; flex-direction: column; min-height: 100svh; padding: 38px 48px 26px; background: var(--surface); }
.login-brand { display: flex; align-items: center; gap: 10px; color: var(--ink-strong); font-size: 17px; font-weight: 600; letter-spacing: -.55px; }
.login-brand .brand-mark { width: 32px; height: 32px; }
.login-panel { width: 100%; max-width: 388px; margin: auto; padding-block: 62px; animation: context-enter 150ms ease-out both; }
.login-icon { display: flex; align-items: center; justify-content: center; width: 43px; height: 43px; margin-bottom: 26px; border: 1px solid #d8e3d6; border-radius: 11px; color: #51765d; background: #edf3e8; }
.login-icon svg { width: 21px; height: 21px; }
.login-heading { margin-bottom: 30px; }
.login-panel > h1.login-heading { margin-bottom: 0; font-size: 29px; letter-spacing: -.95px; line-height: 1.25; }
.login-panel > .page-subtitle { margin: 10px 0 29px; font-size: 13px; line-height: 1.65; }
.login-heading h1 { font-size: 29px; letter-spacing: -.95px; line-height: 1.25; }
.login-heading p { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.login-panel .form-stack { gap: 19px; }
.login-panel .form-stack > .button { min-height: 42px; }
.login-panel .field input { min-height: 43px; background: #fff; font-size: 13px; }
.login-panel .field > label { font-size: 12px; }
.login-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.login-actions .button { width: 100%; min-height: 42px; font-size: 13px; }
.login-panel .notice { margin: 23px 0 0; border-color: var(--line); background: transparent; color: var(--muted); font-size: 11px; }
.login-panel .permission-note { margin-top: 22px; }
.login-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #959d96; font-size: 11px; }
.login-footer .environment-label { color: #8a958b; font-size: 10px; }
.login-panel > .login-footer { justify-content: center; gap: 6px; margin-top: 24px; color: #879282; font-size: 10px; }
.login-panel > .login-footer svg { width: 12px; height: 12px; }
.login-bottom { text-align: center; color: #8e9889; font-size: 10px; line-height: 1.7; }
.login-error { margin-bottom: 20px; }

dialog.dialog { width: min(530px, calc(100vw - 40px)); max-height: calc(100svh - 64px); padding: 0; border: 1px solid #dce3dc; border-radius: 10px; color: var(--ink); background: var(--canvas); box-shadow: 0 20px 90px #172b1b26; }
dialog.dialog[open] { display: flex; flex-direction: column; animation: dialog-enter 150ms ease-out both; }
dialog.dialog::backdrop { background: #1f302a45; animation: backdrop-enter 150ms ease-out both; }
dialog.discard-dialog { width: min(430px, calc(100vw - 32px)); }
.discard-dialog .dialog-header { padding-bottom: 0; border-bottom: 0; }
.discard-dialog .dialog-body { padding-top: 12px; padding-bottom: 23px; }
.discard-dialog .dialog-body > p { font-size: 13px; line-height: 1.65; }
.discard-dialog .dialog-footer { padding-block: 17px; }
.discard-dialog .button { min-height: 38px; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 23px 17px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { color: var(--ink-strong); font-size: 17px; font-weight: 600; letter-spacing: -.5px; }
.dialog-header p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.dialog-body { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 23px; }
.dialog-body > p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.dialog-body > p + p { margin-top: 12px; }
.dialog-body > .page-subtitle { margin-top: -2px; margin-bottom: 24px; color: var(--muted); font-size: 12px; }
.dialog-body > .detail-list + .field-help { margin-top: 18px; }
.dialog-body > .field-help + .form-error { margin-top: 15px; }
.dialog-body > .form-actions { margin-top: 22px; }
.dialog-body .form-actions { margin-top: 3px; padding-top: 20px; }
.dialog-body > .form-stack { gap: 20px; }
.dialog-body .form-error { white-space: pre-line; }
.dialog-body .form-actions .primary { margin-left: auto; }
.dialog-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 15px 23px; border-top: 1px solid var(--line); background: #fafbf9; }
.dialog-footer .permission-note { margin-right: auto; }
.toast-region { position: fixed; z-index: 100; right: 25px; bottom: 24px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; width: min(390px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 10px; width: fit-content; max-width: 100%; padding: 12px 15px; border: 1px solid #d5e2d7; border-radius: 7px; color: #496951; background: #f8fcf6; box-shadow: 0 5px 20px #15291d12; font-size: 12px; line-height: 1.5; pointer-events: auto; animation: context-enter 150ms ease-out both; }
.toast > svg { width: 16px; height: 16px; margin-top: 1px; }
.toast.error { color: var(--danger); border-color: #e7c8c1; background: #fff9f7; }
.toast .icon-button { width: 22px; height: 22px; padding: 3px; margin: -1px -5px -1px 4px; color: inherit; }
.spinner { display: inline-block; width: 15px; height: 15px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; opacity: .7; animation: spin 650ms linear infinite; }
.skeleton { display: block; min-height: 13px; border-radius: 3px; background: #eef1eb; animation: pulse 1.4s ease-in-out infinite alternate; }
.mobile-menu { display: none; }
.menu-overlay { display: none; }
.muted { color: var(--muted); }
.visually-hidden, .file-input-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; clip-path: inset(50%) !important; border: 0 !important; }
.file-input-hidden:focus-visible + .upload-zone { outline: 3px solid #7fb0a0; outline-offset: 3px; }

@keyframes context-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dialog-enter { from { opacity: 0; transform: translateY(7px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes drawer-enter { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
@keyframes backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { to { opacity: .45; } }

@media (min-width: 1700px) {
  .workspace { padding-top: 43px; }
  .topbar { padding-inline: max(36px, calc((100vw - var(--sidebar-width) - 1328px) / 2)); }
}
@media (min-width: 1101px) {
  .content-layout.with-inspector > #content-inspector-slot { position: sticky; top: calc(var(--topbar-height) + 20px); align-self: start; }
  .content-layout.with-inspector .inspector { display: flex; flex-direction: column; height: min(560px, 61svh); min-height: 320px; }
  .content-layout.with-inspector .inspector-header { flex-shrink: 0; }
  .content-layout.with-inspector .inspector-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c7d2c8 transparent; scroll-padding-block: 20px; }
  .content-layout.with-inspector .media-preview { min-height: 130px; }
  .content-layout.with-inspector .media-preview img, .content-layout.with-inspector .media-preview video { max-height: 220px; }
  .content-layout.with-inspector .media-preview .empty-state { min-height: 150px; padding: 20px; }
  .content-layout.with-inspector .data-table { table-layout: fixed; }
  .content-layout.with-inspector .data-table th:nth-child(1) { width: 30px; }
  .content-layout.with-inspector .data-table th:nth-child(3) { width: 96px; }
  .content-layout.with-inspector .data-table th:nth-child(4) { width: 49px; }
  .content-layout.with-inspector .data-table th:nth-child(5) { width: 89px; }
  .content-layout.with-inspector .data-table th:nth-child(6) { width: 102px; }
  .content-layout.with-inspector .data-table th:nth-child(7) { width: 33px; }
  .content-layout.with-inspector .data-table td { overflow-wrap: anywhere; }
  .content-layout.with-inspector .data-table .primary-cell .row-link { display: flex; width: 100%; min-width: 0; gap: 8px; }
  .content-layout.with-inspector .data-table .primary-cell .cell-stack { flex: 1; }
  .content-layout.with-inspector .data-table .primary-cell strong { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .content-layout.with-inspector .data-table .media-thumb { width: 34px; height: 40px; }
  .content-layout.with-inspector .data-table .actions-cell { padding-inline: 1px; }
  .content-layout.with-inspector .data-table .actions-cell .button { padding-inline: 6px; }
  .content-layout.with-inspector .data-table .status { white-space: normal; }
  .content-layout.with-inspector .table-footer { align-items: flex-start; }
  .content-layout.with-inspector .table-footer > :last-child { max-width: 70%; text-align: right; }
}
@media (max-width: 1280px) {
  .workspace { padding-inline: 28px; }
  .topbar { padding-inline: 28px; }
  .content-layout.with-inspector { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
  .data-table th, .data-table td { padding-inline: 11px; }
  .settings-grid { gap: 35px; }
}
@media (max-width: 1100px) {
  .content-layout.with-inspector { display: block; }
  .inspector { position: fixed; z-index: 56; inset: var(--topbar-height) 0 0 auto; width: min(400px, calc(100vw - 35px)); overflow-y: auto; overscroll-behavior: contain; border-block: 0; border-right: 0; border-radius: 0; box-shadow: -16px 0 50px #25372b18; animation: drawer-enter 150ms ease-out both; }
  .inspector-backdrop { display: block; position: fixed; z-index: 55; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #25332945; animation: backdrop-enter 150ms ease-out both; }
  .inspector-header { position: sticky; top: 0; z-index: 1; background: var(--canvas); }
  .summary-item { padding-inline: 18px; flex-basis: 120px; }
  .summary-value { font-size: 23px; }
  .page-heading { gap: 20px; }
  .page-actions { max-width: 45%; }
  .settings-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .settings-grid > section + section, .settings-grid > aside { padding: 27px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .next-step-section { gap: 34px; grid-template-columns: minmax(0, 1fr) minmax(240px, .8fr); }
}
@media (max-width: 900px) {
  :root { --sidebar-width: 190px; }
  .sidebar { padding-inline: 10px; }
  .sidebar .brand { padding-inline: 10px; font-size: 15px; }
  .workspace { padding: 29px 24px 46px; }
  .topbar { padding-inline: 24px; }
  .page-heading { margin-bottom: 25px; }
  h1 { font-size: 28px; }
  .data-table th, .data-table td { padding-inline: 10px; }
  .toolbar { gap: 8px; }
  .search-field { width: 220px; }
  .toolbar-end { gap: 8px; }
  .topbar-actions { gap: 14px; }
  .asset-plan { gap: 13px; grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --topbar-height: 58px; --sidebar-width: 216px; }
  .sidebar { padding: 24px 14px 18px; transform: translateX(-100%); transition: transform var(--transition); }
  .sidebar.is-open, .sidebar[data-open="true"] { transform: translateX(0); box-shadow: 10px 0 40px #14271a1a; }
  .main-shell { margin-left: 0; }
  .mobile-menu { display: inline-flex; flex-shrink: 0; margin-left: -7px; }
  .menu-overlay { display: block; position: fixed; z-index: 35; inset: 0; border: 0; background: #25332945; animation: backdrop-enter 150ms ease-out both; }
  .topbar { gap: 12px; padding-inline: 22px; }
  .topbar-actions { gap: 12px; }
  .breadcrumb { margin-right: auto; font-size: 11px; gap: 8px; }
  .workspace { padding: 28px 22px 44px; }
  .page-heading { gap: 18px; }
  .page-actions { max-width: 50%; }
  .page-subtitle { font-size: 12px; }
  .summary-strip { padding-block: 18px; }
  .summary-item { min-width: 100px; }
  .tabs { gap: 24px; margin-bottom: 20px; }
  .login-page { padding: 28px 28px 22px; }
  .login-panel { max-width: 370px; }
  .content-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 680px) {
  .workspace { padding-inline: 20px; }
  .page-heading { flex-direction: column; gap: 18px; }
  .page-actions { width: 100%; max-width: none; justify-content: flex-start; padding-top: 0; }
  .page-actions .primary { margin-left: auto; }
  .page-actions .primary:first-child { margin-left: 0; }
  h1 { font-size: 28px; }
  .toolbar { gap: 9px; }
  .search-field { width: 100%; flex-basis: 100%; }
  .search-field input, .select-field select { min-height: 38px; }
  .select-field { flex: 1 1 100px; }
  .select-field select { width: 100%; max-width: none; }
  .toolbar-end { margin-left: auto; }
  .summary-strip { row-gap: 22px; }
  .summary-item { flex-basis: 50%; padding-inline: 16px; }
  .summary-item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .summary-value { font-size: 23px; }
  .data-table, .data-table tbody { display: block; }
  .table-area { overflow: visible; }
  .data-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); border: 0; }
  .data-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); position: relative; gap: 13px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .data-table tbody tr:first-child { border-top: 1px solid var(--line); }
  .data-table td { display: block; width: auto; min-width: 0; height: auto; padding: 0; border: 0; font-size: 12px; }
  .data-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; color: #8b948e; font-size: 10px; font-weight: 400; text-align: left; }
  .data-table td.primary-cell { grid-column: 1 / -1; padding-right: 55px; font-size: 13px; }
  .data-table td.primary-cell::before { display: none; }
  .data-table .number-cell { text-align: left; }
  .data-table .actions-cell { position: absolute; top: 22px; right: 0; text-align: right; }
  .data-table .actions-cell::before { display: none; }
  .data-table .selection-cell { position: absolute; top: 25px; right: 0; width: 18px; padding: 0; }
  .data-table tr:has(.selection-cell) .actions-cell { right: 30px; }
  .data-table tbody tr:hover td { background: transparent; }
  .data-table tbody tr:is([data-selected="true"], [data-selected=""], [aria-selected="true"]) { margin-inline: -10px; padding-inline: 10px; background: #f0f6f2; border-radius: 5px; }
  .data-table tbody tr:is([data-selected="true"], [data-selected=""], [aria-selected="true"]) td { background: transparent; }
  .data-table tbody tr:is([data-selected="true"], [data-selected=""], [aria-selected="true"]) td:first-child { box-shadow: none; }
  .data-table tr[data-selected="true"] .actions-cell, .data-table tr[data-selected="true"] .selection-cell { right: 10px; }
  .data-table tr[data-selected="true"]:has(.selection-cell) .actions-cell { right: 40px; }
  .data-table .model-avatar { width: 38px; height: 38px; }
  .data-table td[colspan] { grid-column: 1 / -1; }
  .table-footer { align-items: flex-start; }
  .table-footer .inline-actions { justify-content: flex-end; }
  .empty-state { min-height: 285px; padding-inline: 20px; }
  .field-row { gap: 12px; }
  .inspector { inset-block-start: 0; width: min(420px, 100vw); }
  .inspector-header { padding: 18px 20px; }
  .inspector-body { padding: 22px 20px; }
  .inspector .form-actions { position: sticky; bottom: -22px; margin: 0 -20px -22px; padding: 16px 20px; background: #fff; }
  .bulk-bar { gap: 9px; }
  .bulk-bar .inline-actions { width: 100%; margin-left: 0; }
  .notice { padding: 11px 12px; }
  .next-step-section { grid-template-columns: minmax(0, 1fr); gap: 27px; margin-top: 32px; padding-top: 25px; }
  .next-step-section .detail-row:first-child { padding-top: 0; }
  .next-step-section h2 { font-size: 18px; }
  .asset-sections { gap: 30px; }
  .asset-section > .section-heading { align-items: flex-start; gap: 15px; }
  .asset-section > .section-heading > .button { flex-shrink: 0; }
  .asset-section .data-table td { height: auto; }
  .asset-plan { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-block: 21px; }
  .asset-plan-step { padding-left: 7px; }
  .asset-plan-arrow { justify-content: flex-start; width: 30px; transform: rotate(90deg); }
  .asset-plan-step > .eyebrow { font-size: 9px; }
  .asset-gaps { margin-block: 18px; }
  .asset-gaps.notice { margin: 0; padding: 14px; }
  .asset-gaps.notice > ul { grid-template-columns: minmax(0, 1fr); }
  .toast-region { right: 16px; bottom: 16px; }
}
@media (max-width: 420px) {
  .topbar { padding-inline: 20px; }
  .topbar-actions .environment-label { max-width: 91px; font-size: 9px; white-space: normal; }
  .breadcrumb { gap: 6px; }
  .breadcrumb > span:first-child:not(:last-child) { display: none; }
  .workspace { padding-inline: 18px; }
  .page-actions { gap: 6px; }
  .button { padding-inline: 11px; }
  .tab { font-size: 11px; }
  .tabs { gap: 21px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .dialog-header, .dialog-body { padding-inline: 19px; }
  .dialog-footer { padding-inline: 19px; }
  dialog.dialog { width: calc(100vw - 24px); max-height: calc(100svh - 32px); }
  .login-page { padding: 26px 22px 20px; }
  .login-panel { padding-block: 50px; }
  .login-footer { align-items: flex-start; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .spinner { border-right-color: currentColor; opacity: .45; }
}
@media print {
  .sidebar, .topbar, .page-actions, .toolbar, .row-action, .inspector, .toast-region, .mobile-menu { display: none !important; }
  .main-shell { margin-left: 0; }
  .workspace { max-width: none; padding: 0; }
  .content-layout.with-inspector { display: block; }
  .data-table { font-size: 10px; }
  .data-table th, .data-table td { padding: 8px; }
  .data-table tr { break-inside: avoid; }
}

/* Shared fan details and recorded events. */
.fan-inline-error { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; padding: 25px 0; color: var(--danger); font-size: 13px; }
.fan-context h2 { font-size: 13px; font-weight: 600; }
.fan-timeline { list-style: none; margin: 0; padding: 0 0 24px; }
.fan-date-divider { display: flex; align-items: center; gap: 14px; margin: 27px 0 22px; color: var(--faint); font-size: 10px; }
.fan-date-divider::before, .fan-date-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.fan-date-divider span { flex-shrink: 0; }
.fan-message { width: min(88%, 620px); margin: 20px 0; }
.fan-message.outgoing { margin-left: auto; }
.fan-message-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 16px; margin-bottom: 7px; font-size: 11px; }
.fan-message-meta strong { color: #56625b; font-size: 11px; font-weight: 500; }
.fan-message-meta time { color: var(--faint); font-size: 10px; }
.fan-message-body { padding: 12px 15px; border: 1px solid #edf0eb; border-radius: 2px 9px 9px 9px; background: #f7f8f5; color: var(--ink); font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.fan-message.outgoing .fan-message-body { border-color: #e4eee7; border-radius: 9px 2px 9px 9px; background: #eff5f0; }
.fan-message-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin-top: 7px; color: var(--faint); font-size: 10px; }
.fan-message-footer > span:first-child { overflow-wrap: anywhere; }
.fan-message-footer .status { padding: 1px 5px; font-size: 10px; }
.fan-event { display: flex; align-items: flex-start; gap: 13px; margin: 24px 0; padding: 17px 0 17px 4px; border-block: 1px solid var(--line); }
.fan-event-icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; color: #85938b; }
.purchase-event .fan-event-icon { color: var(--accent); }
.fan-event-icon svg { width: 17px; height: 17px; }
.fan-event-content { min-width: 0; flex: 1; }
.fan-event-title { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 9px; margin-bottom: 7px; }
.fan-event-title > strong { font-size: 12px; font-weight: 500; }
.fan-event-content > p { margin-top: 6px; font-size: 12px; overflow-wrap: anywhere; }
.fan-event-content > .fan-offer-purchased { display: flex; align-items: center; gap: 6px; color: var(--accent); font-size: 11px; }
.fan-offer-purchased svg { width: 13px; height: 13px; }
.fan-event-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 14px; margin-top: 9px; font-size: 12px; }
.fan-event-amount > strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.fan-event-amount > span { color: var(--muted); font-size: 11px; }
.fan-event-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 10px; color: var(--faint); font-size: 10px; }
.fan-load-earlier { padding-top: 20px; text-align: center; }
.fan-activity-empty { padding: 48px 20px; text-align: center; }
.fan-activity-empty h3 { color: var(--ink); font-size: 14px; font-weight: 500; }
.fan-activity-empty p { max-width: 330px; margin: 8px auto 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.fan-context { min-width: 0; padding: 0 0 0 25px; border-left: 1px solid var(--line); }
.fan-context > section { padding-block: 19px 23px; }
.fan-context > section:first-child { padding-top: 16px; }
.fan-context > section + section { border-top: 1px solid var(--line); }
.fan-context h2 { margin-bottom: 15px; }
.fan-facts { display: grid; gap: 14px; margin: 0; }
.fan-facts dt { color: var(--muted); font-size: 10px; }
.fan-facts dd { margin: 3px 0 0; font-size: 12px; overflow-wrap: anywhere; }
.fan-exact-id { font-variant-numeric: tabular-nums; }
.fan-purchase-summary { display: flex; flex-direction: column; gap: 5px; margin-bottom: 11px; }
.fan-purchase-summary > strong { font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: -.65px; font-variant-numeric: tabular-nums; }
.fan-purchase-summary strong span { color: var(--muted); font-size: 12px; letter-spacing: 0; font-weight: 400; }
.fan-purchase-summary > span { color: var(--muted); font-size: 11px; }
.fan-context .field-help { font-size: 10px; line-height: 1.6; }
.fan-contact-list, .fan-work-list, .fan-control-history { list-style: none; }
.fan-contact-list li + li { margin-top: 17px; }
.fan-contact-list li > div { display: flex; flex-direction: column; gap: 2px; margin-bottom: 3px; }
.fan-contact-list strong { font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.fan-route-label { color: var(--accent); font-size: 10px; }
.fan-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; }
.fan-section-heading .text-link { display: inline-flex; align-items: center; gap: 3px; color: var(--accent); font-size: 10px; white-space: nowrap; }
.fan-section-heading .text-link svg { width: 12px; height: 12px; }
.fan-work-list li + li { border-top: 1px solid var(--line); }
.fan-work-list a { display: flex; align-items: center; gap: 7px; padding: 12px 0; }
.fan-work-list a:hover strong { color: var(--accent); }
.fan-work-list a > span:first-child { display: flex; flex-direction: column; flex: 1; gap: 3px; }
.fan-work-list strong { font-size: 11px; font-weight: 500; }
.fan-work-list a > svg { width: 12px; height: 12px; color: var(--faint); }
.fan-work-list .status { padding: 2px 5px; font-size: 9px; }
.fan-control-history li + li { margin-top: 15px; }
.fan-control-history li > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px; }
.fan-control-history strong { font-size: 11px; font-weight: 500; }
.fan-control-history span { color: var(--faint); font-size: 9px; }
.fan-control-history p { margin-top: 5px; color: var(--muted); font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Conversation inbox. Each pane owns its scroll position inside the app shell. */
.workspace:has(> .inbox-workspace) { max-width: none; padding: 0; }
.inbox-workspace {
  --rail-width: clamp(276px, 25vw, 344px);
  --profile-width: clamp(254px, 21vw, 320px);
  --inbox-rule: #dfe6e1;
  --inbox-subtle: #606e68;
  position: relative;
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  height: calc(100vh - var(--topbar-height));
  height: calc(100dvh - var(--topbar-height));
  overflow: hidden;
  isolation: isolate;
  background: #fff;
}
.inbox-workspace[data-profile="true"] { grid-template-columns: var(--rail-width) minmax(0, 1fr) var(--profile-width); }
.inbox-rail, .inbox-thread, .inbox-inspector { min-width: 0; min-height: 0; }
.inbox-rail, .inbox-thread { display: flex; flex-direction: column; }
.inbox-rail { border-right: 1px solid var(--inbox-rule); background: #fff; }
.inbox-rail-header { padding: 23px 20px 0; flex: none; border-bottom: 1px solid var(--inbox-rule); }
.inbox-title-row, .inbox-thread-header, .inbox-actions, .inbox-inspector-head { display: flex; align-items: center; gap: 10px; }
.inbox-title-row { justify-content: space-between; flex-wrap: wrap; row-gap: 5px; margin-bottom: 15px; }
.inbox-title-row :is(h1,h2) { color: var(--ink-strong); font-size: 25px; font-weight: 600; letter-spacing: -1px; line-height: 1.2; }
.inbox-sync { display: inline-flex; align-items: center; gap: 5px; color: var(--inbox-subtle); font-size: 11px; font-weight: 500; }
button.inbox-sync { min-height: 29px; padding: 3px 5px; border: 0; border-radius: 5px; background: transparent; }
button.inbox-sync:hover { background: #f0f4ef; color: var(--ink-strong); }
.inbox-sync::before, .inbox-mode::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #418365; }
.inbox-sync[data-stale="true"] { color: #805527; }
.inbox-sync[data-stale="true"]::before { background: #ad7536; }
.inbox-sync svg { width: 13px; height: 13px; }
.inbox-model, .inbox-search { display: flex; align-items: center; min-width: 0; gap: 8px; }
.inbox-model { color: var(--inbox-subtle); font-size: 12px; }
.inbox-model select, select.inbox-model { max-width: 100%; min-width: 0; min-height: 34px; border: 1px solid var(--inbox-rule); border-radius: 7px; padding: 4px 8px; color: var(--ink-strong); background: #fff; font-size: 12px; font-weight: 500; }
.inbox-model svg, .inbox-search svg { width: 15px; height: 15px; }
.inbox-search { position: relative; width: 100%; margin-block: 10px 8px; }
.inbox-search > svg { position: absolute; left: 11px; pointer-events: none; color: var(--inbox-subtle); }
.inbox-search input { width: 100%; height: 35px; padding: 5px 10px 5px 33px; border: 1px solid var(--inbox-rule); border-radius: 7px; background: #f7f9f7; color: var(--ink); font-size: 12px; }
.inbox-search input::placeholder { color: #647169; }
.inbox-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; background: #fff; }
.inbox-filters { display: flex; gap: 13px; align-items: stretch; overflow-x: auto; scrollbar-width: thin; }
.inbox-filters button { flex: none; min-height: 40px; padding: 5px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--inbox-subtle); font-size: 12px; font-weight: 500; white-space: nowrap; }
.inbox-filters button[aria-pressed="true"] { border-bottom-color: var(--accent); color: var(--accent-hover); font-weight: 600; }
.inbox-filters button:hover { color: var(--ink-strong); }
.inbox-filters button:focus-visible, .inbox-item:focus-visible { outline-offset: -3px; }
.inbox-list-scroll, .inbox-stream, .inbox-inspector { overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c6d1c9 transparent; }
.inbox-list-scroll { min-height: 0; flex: 1 1 auto; }
.inbox-list-scroll :is(ul,ol) { list-style: none; }
.inbox-item {
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid #edf0ed;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--transition);
}
.inbox-item:hover { background: #f6f8f6; }
.inbox-item:is([aria-current="true"],[aria-current="page"],[aria-selected="true"]) { background: #eaf3ed; box-shadow: inset 3px 0 0 var(--accent); }
.inbox-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: #e2eae2;
  color: #385843;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.35px;
  line-height: 1;
}
.inbox-avatar[data-tone="1"] { color: #705334; background: #eee6da; }
.inbox-avatar[data-tone="2"] { color: #4e5e77; background: #e3e9f1; }
.inbox-avatar[data-tone="3"] { color: #65516d; background: #eee5ee; }
.inbox-row-text { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; flex: 1; min-width: 0; gap: 4px 6px; }
.inbox-row-text strong, .inbox-preview { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.inbox-row-text strong { min-width: 0; font-size: 14px; line-height: 1.25; font-weight: 600; letter-spacing: -.18px; }
.inbox-row-text time { color: var(--inbox-subtle); font-size: 10px; line-height: 1.3; white-space: nowrap; }
.inbox-preview { grid-column: 1 / -1; color: #53615a; font-size: 12px; line-height: 1.45; }
.inbox-row-meta { display: flex; min-width: 0; grid-column: 1 / -1; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--inbox-subtle); font-size: 10px; line-height: 1.4; }
.inbox-list-scroll .empty-state { min-height: 170px; padding: 30px 20px; border: 0; }
.inbox-list-scroll .empty-title { font-size: 16px; }
.inbox-list-scroll .inbox-blank { min-height: 170px; }
.inbox-more { display: flex; margin: 12px auto; }
.inbox-list-scroll .table-footer, .inbox-list-scroll .fan-inline-error { padding: 14px 18px; }
.inbox-thread { position: relative; background: #f8faf8; }
.inbox-thread-header { min-height: 74px; flex-shrink: 0; justify-content: space-between; padding: 12px clamp(16px, 2vw, 32px); border-bottom: 1px solid var(--inbox-rule); background: #fff; }
.inbox-thread-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.inbox-thread-identity > div { min-width: 0; }
.inbox-thread-identity :is(h1,h2,strong) { overflow: hidden; color: var(--ink-strong); font-size: 17px; font-weight: 600; letter-spacing: -.45px; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.inbox-thread-identity :is(p,small) { color: var(--inbox-subtle); font-size: 11px; line-height: 1.5; }
.inbox-thread-identity .inbox-avatar { width: 40px; height: 40px; font-size: 14px; }
.inbox-actions { flex-shrink: 0; gap: 6px; }
.inbox-actions [aria-expanded="true"] { color: var(--accent-hover); background: var(--accent-soft); }
.inbox-mode { display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px; border-radius: 5px; color: #385e49; background: #edf4ed; font-size: 11px; font-weight: 500; white-space: nowrap; }
.inbox-mode:is([data-mode="paused"],[data-mode="human"]) { color: #514d65; background: #f0edf5; }
.inbox-mode:is([data-mode="paused"],[data-mode="human"])::before { background: #837699; }
.inbox-mode[data-mode="closed"] { color: var(--inbox-subtle); background: #f1f3f1; }
.inbox-mode[data-mode="closed"]::before { background: #79827c; }
.inbox-back { display: none; }
.inbox-blank { display: grid; align-content: center; justify-items: center; flex: 1; min-width: 0; padding: 30px; gap: 8px; text-align: center; }
.inbox-blank > svg { width: 32px; height: 32px; margin: 0 0 6px; color: #6b8778; stroke-width: 1.45; }
.inbox-blank :is(h2,h3) { color: var(--ink-strong); font-size: 17px; letter-spacing: -.4px; }
.inbox-blank p { max-width: 34ch; color: var(--inbox-subtle); font-size: 13px; }
.inbox-stream { flex: 1 1 0; min-height: 0; padding: 0 clamp(14px, 2.8vw, 46px) 10px; overflow-anchor: none; }
.inbox-stream .fan-timeline { max-width: 850px; margin: auto; padding-bottom: 10px; }
.inbox-stream .fan-date-divider { justify-content: center; gap: 12px; margin: 19px 0; color: var(--inbox-subtle); }
.inbox-stream .fan-date-divider::before, .inbox-stream .fan-date-divider::after { max-width: 55px; background: #dce4dd; }
.inbox-stream .fan-message { display: flex; flex-direction: column; align-items: flex-start; width: fit-content; max-width: min(85%, 600px); margin-block: 14px; }
.inbox-stream .fan-message.outgoing { align-items: flex-end; }
.inbox-stream .fan-message-meta { align-items: baseline; justify-content: flex-start; gap: 8px; margin: 0 3px 4px; }
.inbox-stream .fan-message-meta strong, .inbox-stream .fan-message-meta time { color: var(--inbox-subtle); }
.inbox-stream .fan-message-meta time { font-variant-numeric: tabular-nums; }
.inbox-stream .fan-message-body { padding: 9px 13px; max-width: 100%; border: 1px solid #dce4de; border-radius: 11px 11px 11px 3px; background: #fff; color: #23332a; font-size: 14px; line-height: 1.48; }
.inbox-stream .fan-message.outgoing .fan-message-body { border-color: #d4e6dc; border-radius: 11px 11px 3px 11px; background: #e3f0e7; }
.inbox-stream .fan-message-footer { justify-content: flex-start; gap: 7px; min-height: 13px; margin: 3px 3px 0; color: var(--inbox-subtle); }
.inbox-stream .fan-message-footer .status { background: none; padding: 0; font-size: 10px; }
.inbox-stream .fan-event { width: min(91%, 440px); margin: 14px auto; padding: 10px 13px; gap: 9px; border: 1px solid var(--inbox-rule); border-radius: 9px; background: #fff; }
.inbox-stream .fan-event-icon { width: 25px; height: 25px; border-radius: 6px; background: #eff3ef; color: #4e6959; }
.inbox-stream .purchase-event .fan-event-icon { background: #e6f0e9; color: var(--accent); }
.inbox-stream .fan-event-title { margin: 0; }
.inbox-stream .fan-event-title strong { font-weight: 600; }
.inbox-stream .fan-event-amount { margin-top: 4px; }
.inbox-stream .fan-event-meta { margin-top: 5px; color: var(--inbox-subtle); }
.inbox-stream .fan-load-earlier { padding-top: 11px; }
.inbox-composer { flex-shrink: 0; padding: 13px clamp(14px, 2.8vw, 46px) max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--inbox-rule); background: #fff; }
.inbox-composer form { max-width: 850px; margin: 0 auto; }
.inbox-compose-status { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 27px; max-width: 850px; margin: 0 auto; color: var(--inbox-subtle); font-size: 12px; }
.inbox-compose-status:has(+ form) { margin-bottom: 7px; }
.inbox-compose-status > button { flex: none; }
.inbox-compose-status:has(+ form) > button { min-height: 25px; padding-block: 2px; }
.inbox-compose-row:has(textarea:disabled) { align-items: center; background: #f6f8f6; border-color: var(--inbox-rule); }
.inbox-compose-row textarea:disabled { color: var(--inbox-subtle); resize: none; }
#inbox-latest { z-index: 1; align-self: center; margin: -39px auto 8px; border-color: #bfd3c7; background: #fff; color: var(--accent-hover); box-shadow: 0 2px 8px #18322314; }
.inbox-compose-row { display: flex; align-items: flex-end; gap: 8px; min-width: 0; max-width: 850px; margin-inline: auto; padding: 8px; border: 1px solid #c5d2c9; border-radius: 10px; background: #fff; transition: border-color var(--transition), box-shadow var(--transition); }
.inbox-compose-row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #e5f0e9; }
.inbox-compose-row textarea { display: block; flex: 1; min-width: 0; min-height: 37px; max-height: min(140px, 22dvh); padding: 8px; border: 0; outline: 0; background: none; color: var(--ink-strong); line-height: 1.45; resize: vertical; }
.inbox-compose-row textarea::placeholder { color: #66746c; }
.inbox-compose-row > button { flex-shrink: 0; }
.inbox-composer .form-error { margin: 6px 0 0; }
.inbox-inspector { border-left: 1px solid var(--inbox-rule); background: #fff; }
.inbox-workspace[data-profile="false"] .inbox-inspector { display: none; }
.inbox-inspector-head { position: sticky; z-index: 1; top: 0; justify-content: space-between; min-height: 58px; padding: 12px 18px; border-bottom: 1px solid var(--inbox-rule); background: #fff; }
.inbox-inspector-head :is(h2,h3) { font-size: 15px; font-weight: 600; letter-spacing: -.2px; }
.inbox-inspector .fan-context { display: block; border: 0; padding: 0 19px 20px; }
.inbox-inspector .fan-context > section { padding-block: 17px; border: 0; }
.inbox-inspector .fan-context > section + section { border-top: 1px solid var(--inbox-rule); }
.inbox-inspector .fan-context h2 { font-size: 13px; margin-bottom: 9px; }
.inbox-inspector .fan-facts { display: grid; grid-template-columns: 1fr; gap: 8px; }
.inbox-inspector .fan-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.inbox-inspector .fan-facts dt { flex-shrink: 0; color: var(--inbox-subtle); font-size: 11px; }
.inbox-inspector .fan-facts dd { text-align: right; margin: 0; }
.inbox-inspector .fan-context .field-help, .inbox-inspector .fan-control-history span { color: var(--inbox-subtle); font-size: 11px; }
@media (min-width: 761px) and (max-width: 1220px) {
  .inbox-workspace { --rail-width: clamp(236px, 26vw, 300px); }
  .inbox-workspace[data-profile="true"] { grid-template-columns: minmax(0, 1fr) var(--profile-width); }
  .inbox-workspace[data-profile="true"] .inbox-rail { display: none; }
  .inbox-thread-header { gap: 6px; padding-inline: 14px; }
  .inbox-rail-header { padding-inline: 15px; }
  .inbox-item { gap: 9px; padding-inline: 14px; }
}
@media (max-width: 760px) {
  .inbox-workspace, .inbox-workspace[data-profile="true"] { grid-template-columns: minmax(0, 1fr); }
  .inbox-rail { border: 0; }
  .inbox-workspace[data-open="false"] .inbox-thread,
  .inbox-workspace[data-open="true"] .inbox-rail,
  .inbox-workspace[data-profile="true"] .inbox-thread { display: none; }
  .inbox-back { display: inline-flex; }
  .inbox-rail-header { padding: 18px 18px 0; }
  .inbox-title-row { margin-bottom: 11px; }
  .inbox-title-row :is(h1,h2) { font-size: 24px; }
  .inbox-item { min-height: 72px; }
  .inbox-thread-header { min-height: 61px; gap: 5px; padding: 8px 12px; }
  .inbox-thread-identity { gap: 8px; }
  .inbox-thread-identity :is(h1,h2,strong) { font-size: 16px; }
  .inbox-compose-status { gap: 8px; }
  .inbox-thread-identity p { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .inbox-thread-identity .inbox-avatar { width: 32px; height: 32px; font-size: 12px; }
  .inbox-actions { gap: 2px; }
  .inbox-stream { padding-inline: 14px; }
  .inbox-composer { padding-inline: 12px; }
  .inbox-compose-row textarea, .inbox-search input { font-size: 16px; }
  .inbox-inspector { border-left: 0; }
  .inbox-inspector .fan-context { padding-inline: 20px; }
}
@media (max-width: 460px) {
  .inbox-actions [data-action="fans-profile"] { min-width: 36px; min-height: 36px; padding: 0; }
  .inbox-actions [data-action="fans-profile"] > span { display: none; }
  .inbox-compose-row { gap: 5px; padding: 6px; }
  .inbox-compose-row textarea:disabled { font-size: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .inbox-inspector { animation: inbox-inspect 140ms ease-out; }
  @keyframes inbox-inspect { from { opacity: .45; transform: translateX(5px); } to { opacity: 1; transform: translateX(0); } }
}

/* Chat attachment library and delivery settings */
.chat-media-picker {
  width: min(930px, calc(100vw - 48px));
  height: min(704px, calc(100dvh - 56px));
  max-height: none;
  max-width: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  color: var(--ink);
  background: var(--canvas);
  box-shadow: 0 20px 72px #0d262a29;
}
.chat-media-picker[open] { display: flex; flex-direction: column; animation: dialog-enter 150ms ease-out both; }
.chat-media-picker::backdrop { background: #14272b65; }
.cmp-head, .cmp-footer { display: flex; align-items: center; flex-shrink: 0; padding: 15px 21px; }
.cmp-head { justify-content: space-between; border-bottom: 1px solid var(--line); }
.cmp-head p { color: var(--muted); font-size: 12px; }
.cmp-head h2 { color: var(--ink-strong); font-size: 22px; line-height: 1.25; letter-spacing: -.65px; font-weight: 650; }
.cmp-footer { justify-content: end; gap: 9px; border-top: 1px solid var(--line); }
.cmp-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); }
.cmp-browser, .cmp-inspector { min-width: 0; min-height: 0; padding: 18px 21px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.cmp-inspector { border-left: 1px solid var(--line); background: #f8faf8; }
.cmp-source { display: flex; gap: 5px; align-items: center; margin-bottom: 16px; }
.cmp-source button, .cmp-filters button, .cmp-modes button, .cmp-back { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; background: transparent; color: var(--muted); }
.cmp-source button { min-height: 35px; padding: 5px 11px; border-radius: 6px; font-weight: 600; }
.cmp-source button svg { width: 15px; height: 15px; }
.cmp-source button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-hover); }
.cmp-source button:hover, .cmp-filters button:hover { background: var(--surface-muted); color: var(--ink); }
.cmp-search { display: flex; align-items: center; gap: 8px; padding: 0 10px; min-height: 37px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--muted); }
.cmp-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.cmp-search svg { width: 15px; height: 15px; }
.cmp-search input { min-width: 0; width: 100%; padding: 7px 0; border: 0; border-radius: 0; outline: 0; background: transparent; color: var(--ink-strong); font-size: 13px; }
.cmp-filters { display: flex; gap: 4px; margin: 10px 0 13px; }
.cmp-filters button { min-height: 30px; padding: 3px 10px; border-radius: 20px; font-size: 12px; }
.cmp-filters button[aria-pressed="true"] { border-color: var(--line); background: var(--surface-muted); color: var(--ink-strong); font-weight: 600; }
.cmp-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-content: start; gap: 12px 10px; }
.cmp-tile { min-width: 0; padding: 0 0 4px; border: 0; border-radius: 7px; color: var(--ink); background: transparent; text-align: left; }
.cmp-tile strong, .cmp-tile small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-tile strong { margin: 6px 1px 0; font-size: 12px; line-height: 1.35; font-weight: 600; }
.cmp-tile small { margin: 2px 1px 0; font-size: 11px; color: var(--muted); }
.cmp-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 1.35; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #e8ece8; color: #65736b; }
.cmp-thumb img, .cmp-thumb video { width: 100%; height: 100%; object-fit: cover; }
.cmp-tile[aria-pressed="true"] .cmp-thumb::after { content: ''; position: absolute; inset: 0; border: 2.5px solid var(--accent); border-radius: inherit; }
.cmp-tile:hover:not(:disabled) .cmp-thumb { border-color: var(--accent); }
.cmp-tile:disabled { opacity: .65; }
.cmp-tick { position: absolute; right: 5px; top: 5px; z-index: 1; display: none; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: white; }
.cmp-tick svg { width: 13px; height: 13px; }
.cmp-tile[aria-pressed="true"] .cmp-tick { display: grid; }
.cmp-video-sign { position: absolute; left: 6px; bottom: 6px; padding: 1px 5px; border-radius: 4px; color: white; background: #12201fc9; font-size: 10px; }
.cmp-pages { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.cmp-pages > div { display: flex; gap: 4px; }
.cmp-pages button:disabled { opacity: .38; }
.cmp-prev { transform: rotate(180deg); }
.cmp-empty-preview, .cmp-empty-list { display: grid; align-content: center; justify-items: center; text-align: center; gap: 6px; }
.cmp-empty-preview { min-height: 100%; padding: 20px; }
.cmp-empty-list { padding: 40px 10px; }
.cmp-empty-list > svg, .cmp-empty-preview > svg { width: 26px; height: 26px; margin-bottom: 4px; color: #779187; }
.cmp-empty-list h3, .cmp-empty-preview h3 { color: var(--ink-strong); font-size: 15px; font-weight: 600; }
.cmp-empty-list p, .cmp-empty-preview p, .cmp-help, .cmp-save-note { color: var(--muted); font-size: 12px; line-height: 1.5; }
.cmp-empty-list .button { margin-top: 6px; }
.cmp-drop { width: 100%; min-height: 178px; display: grid; align-content: center; justify-items: center; gap: 6px; border: 1px dashed #aebdb4; border-radius: 9px; color: var(--ink); background: #f8faf8; }
.cmp-drop:hover, .cmp-drop.dragging { background: var(--accent-soft); border-color: var(--accent); }
.cmp-drop svg { width: 24px; height: 24px; margin-bottom: 3px; color: var(--accent); }
.cmp-drop span { color: var(--muted); font-size: 12px; }
.cmp-device .cmp-help { margin-top: 9px; }
.cmp-back { display: none; }
.cmp-preview { display: grid; place-items: center; width: 100%; aspect-ratio: 1.68; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #e6eae6; }
.cmp-preview img, .cmp-preview video { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.cmp-missing { padding: 8px; color: var(--muted); font-size: 11px; }
.cmp-selected { min-width: 0; margin: 10px 0 15px; }
.cmp-preview-title { color: var(--ink-strong); font-size: 16px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.cmp-preview-title:focus { outline: 0; }
.cmp-selected > span { color: var(--muted); font-size: 12px; }
.cmp-settings, .cmp-title { margin-top: 15px; }
.cmp-settings legend, .chat-media-picker .field > span { color: var(--ink); font-size: 12px; font-weight: 600; }
.cmp-modes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-top: 8px; }
.cmp-modes button { justify-content: start; gap: 7px; min-height: 35px; padding: 5px 9px; border-color: var(--line-strong); border-radius: 6px; background: var(--canvas); color: var(--ink); font-size: 12px; }
.cmp-modes button svg { width: 14px; height: 14px; }
.cmp-modes button[aria-pressed="true"] { background: var(--accent-soft); border-color: #91b8aa; color: var(--accent-hover); font-weight: 600; }
.cmp-mode-fields:not(:empty), .cmp-save-note { margin-top: 12px; }
.cmp-price-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.cmp-time { max-width: 165px; }
.chat-media-picker .field input { min-height: 37px; width: 100%; padding: 6px 9px; }
.cmp-save-note { display: flex; align-items: start; gap: 7px; }
.cmp-save-note svg { width: 15px; height: 15px; margin-top: 2px; }
.cmp-feedback { padding: 9px 21px; color: #853a33; background: var(--danger-soft); font-size: 13px; }
.chat-media-picker[data-busy="true"] .cmp-layout { opacity: .7; pointer-events: none; }
.chat-draft-file { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border: 1px solid var(--accent-line); border-radius: 8px; background: #f5f9f6; }
.chat-draft-thumb { display: grid; place-items: center; flex-shrink: 0; overflow: hidden; width: 44px; height: 44px; border-radius: 6px; background: #e4eae4; }
.chat-draft-thumb img, .chat-draft-thumb video { width: 100%; height: 100%; object-fit: cover; }
.chat-draft-copy { display: grid; min-width: 0; gap: 2px; margin-right: auto; }
.chat-draft-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.chat-draft-copy span { display: flex; align-items: center; gap: 5px; color: var(--accent-hover); font-size: 11px; }
.chat-draft-copy svg { width: 12px; height: 12px; }
.chat-draft-file .icon-button { flex-shrink: 0; }
@media (max-width:760px) {
  .chat-media-picker { width: min(600px,calc(100vw - 16px)); height: min(760px,calc(100dvh - 16px)); }
  .cmp-head, .cmp-footer { padding: 11px 15px; }
  .cmp-layout { display: block; }
  .cmp-browser, .cmp-inspector { height: 100%; padding: 15px; }
  .cmp-inspector, .chat-media-picker[data-detail="true"] .cmp-browser { display: none; }
  .chat-media-picker[data-detail="true"] .cmp-inspector { display: block; border: 0; }
  .cmp-back { display: inline-flex; min-height: 36px; justify-content: start; margin-bottom: 8px; padding: 0 3px; color: var(--accent-hover); font-size: 13px; }
  .cmp-back svg { width: 15px; height: 15px; }
  .cmp-preview { max-height: 240px; }
  .cmp-filters button, .cmp-source button, .cmp-modes button, .cmp-pages .icon-button, .cmp-footer button { min-height: 40px; }
  .cmp-grid { grid-template-columns: repeat(auto-fill,minmax(105px,1fr)); }
}
@media (prefers-reduced-motion:reduce) { .chat-media-picker[open] { animation: none; } }

.cmp-unavailable, .cmp-other-formats { margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--line); }
.cmp-unavailable summary { padding: 5px 0; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.cmp-unavailable ul { margin: 5px 0; list-style: none; }
.cmp-unavailable li { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 9px; align-items: baseline; padding: 5px 0; font-size: 12px; }
.cmp-unavailable li strong { font-weight: 500; overflow-wrap: anywhere; }
.cmp-unavailable li span { color: var(--muted); }
.cmp-unavailable .text-link, .cmp-other-formats .text-link { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-hover); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.cmp-unavailable .text-link { margin: 4px 0 0; }
.cmp-unavailable .text-link svg { width: 13px; height: 13px; }
.cmp-other-formats > div:first-child { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.cmp-other-formats h3 { font-size: 12px; font-weight: 600; }
.cmp-other-formats .text-link { padding: 5px 0; border: 0; background: transparent; text-align: right; }
.cmp-other-formats .cmp-tile:disabled { opacity: .86; }
@media (max-width:760px) { .cmp-pages .button, .cmp-unavailable summary { min-height: 40px; } }

.mk-landing > p { margin:10px 0 22px; color:var(--muted); }

.siren-editor-body { display: grid; gap: 16px; padding: 0 0 20px; }
.siren-editor-body > .button, .siren-editor-list > .button { justify-self: start; }
.siren-editor-list, .siren-editor-rows { display: grid; gap: 12px; min-width: 0; }
.siren-editor-rows:empty { display: none; }
.siren-editor-row { display: grid; align-content: start; gap: 6px; min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 14px; }
.siren-row-actions { display: flex; justify-self: end; gap: 4px; flex-wrap: wrap; }
.siren-editor-row:first-child > .siren-row-actions [data-move="up"], .siren-editor-row:last-child > .siren-row-actions [data-move="down"] { display: none; }
.siren-editor-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 14px; }
.siren-editor-fields > .siren-editor-list, .siren-editor-fields > label:has(textarea), .siren-editor-row[data-row="media"] .field { grid-column: 1 / -1; }
.siren-editor-body [hidden], .siren-editor-body p:empty { display: none; }
.siren-section .siren-inherit-help { margin-top: 12px; }
.siren-sample-name { font-size: 12px; overflow-wrap: anywhere; }
.siren-sample-picker { position: relative; overflow: hidden; margin-top: 8px; }
.siren-sample-picker input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.siren-sample-picker:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 650px) {
  .siren-editor-fields { grid-template-columns: minmax(0,1fr); }
  .siren-editor-row { padding: 10px; }
}

#siren-offline-publication > p { margin: 8px 0; }
#siren-offline-publication [data-publish] { margin-top: 6px; }
.siren-run-parts { margin: 10px 0; font-size: .85rem; }
.siren-run-parts summary { cursor: pointer; }
.siren-run-parts ul { list-style: none; padding: 0; }
.siren-run-parts li { display: flex; gap: 8px; justify-content: space-between; align-items: baseline; margin: 5px 0; }
.siren-run-parts li span { overflow-wrap: anywhere; }
