:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: var(--text-primary);
  background: var(--surface-page);
  --brand: #85BB65;
  --brand-hover: #78AD58;
  --brand-active: #456D30;
  --brand-strong: #456D30;
  --brand-soft: #edf2e5;
  --brand-soft-hover: #ffe4ca;
  --charcoal: #20252d;
  --charcoal-deep: #15191f;
  --surface-page: #f7f8fa;
  --surface-panel: #ffffff;
  --surface-subtle: #f1f3f5;
  --surface-raised: #ffffff;
  --surface-selected: #edf2e5;
  --text-primary: #20252d;
  --text-secondary: #525c69;
  --text-on-brand: #20252d;
  --text-inverse: #ffffff;
  --border: #d7dce2;
  --border-strong: #7c8794;
  --link-color: #456D30;
  --link-hover-color: #823b00;
  --link-active-color: #642d00;
  --focus-ring-color: #b95700;
  --success: #147a4a;
  --warning: #9a6200;
  --danger: #b42318;
  --info: #236b8e;
  --code-bg: #20252d;
  --code-text: #f3f4f6;
  --shadow-brand: rgba(169, 77, 0, .18);
}
body { margin: 0; background: var(--surface-page); color: var(--text-primary); }
header { --focus-ring-color: #ACD493; background: var(--charcoal); color: var(--text-inverse); padding: 1rem max(1rem, calc((100% - 1100px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
:where(a:link, a:visited) { color: var(--link-color); text-decoration-line: underline; text-decoration-thickness: .08em; text-underline-offset: .16em; text-decoration-skip-ink: auto; }
:where(a:hover) { color: var(--link-hover-color); text-decoration-thickness: .13em; }
:where(a:active) { color: var(--link-active-color); }
:where(a:focus-visible) { outline: 3px solid var(--focus-ring-color); outline-offset: 3px; border-radius: 2px; }
header a { color: white; font-weight: 700; text-decoration: none; } main { max-width: 1100px; margin: 2rem auto; padding: 0 1rem; }
.brand-home-link { display: inline-flex; align-items: center; flex: 0 0 auto; border-radius: 3px; text-decoration: none; }
.brand-logo { display: inline-flex; align-items: center; gap: .55rem; }
.brand-logo-mark { display: block; flex: 0 0 32px; width: 32px; height: 32px; }
.brand-logo-text { display: block; color: var(--text-primary); font-family: "InterVariable", Inter, system-ui, sans-serif; font-size: 1rem; font-weight: 780; letter-spacing: .01em; line-height: 1; }
.brand-logo--dark .brand-logo-text { color: #ffffff; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-nav { display: flex; gap: 1rem; }
.header-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35rem; }
.header-form { margin: 0; }
.inline-export-form { display: inline; margin: 0; }
.theme-toggle { background: transparent; border: 1px solid #8e959e; color: white; padding: .4rem .65rem; }
.theme-toggle:hover { border-color: white; }
.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; } section, aside { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 1.25rem; }
button { background: var(--brand); color: var(--text-on-brand); border: 0; border-radius: 5px; padding: .7rem 1rem; font-weight: 700; cursor: pointer; }
button:hover:not(:disabled) { filter: brightness(.94); }
button:active:not(:disabled) { filter: brightness(.88); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--focus-ring-color); outline-offset: 2px; }
button:disabled { opacity: .55; cursor: not-allowed; }
.secondary { background: white; color: var(--brand-strong); border: 1px solid var(--brand); padding: .45rem .7rem; }
.button-link { display: inline-block; border-radius: 5px; font-weight: 650; text-decoration: none; }
.primary-link, .primary-link:visited { background: var(--brand); color: var(--text-on-brand); padding: .7rem 1rem; }
.primary-link:hover { background: var(--brand-hover); color: var(--text-on-brand); }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.button-row form { margin: 0; }
.heading-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.heading-actions { display: flex; align-items: center; gap: 1rem; }
.change-filters { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0; padding: 1rem; background: white; border: 1px solid var(--border); border-radius: 8px; }
.change-filters label { display: grid; gap: .3rem; color: var(--text-secondary); font-size: .85rem; }
.change-filters .ignored-filter { display: flex; align-items: center; gap: .4rem; min-height: 2.35rem; white-space: nowrap; }
.change-filters select { border: 1px solid var(--border-strong); border-radius: 5px; padding: .55rem .7rem; min-width: 10rem; }
.change-filters .search-filter { flex: 1; }
.change-filters .search-filter input { width: 100%; }
.change-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.table-scroll { overflow-x: auto; }
.actions { white-space: nowrap; }
.text-button { background: none; color: var(--brand-strong); padding: 0; border: 0; border-radius: 0; font: inherit; font-weight: normal; text-decoration: underline; }
.change-detail-row > td { background: var(--surface-subtle); padding: 1rem 1.5rem; }
.field-change-table { border: 1px solid var(--border); }
.field-change-table .value { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 28rem; }
.field-change-table .old-value { background: #fff0f0; }
.field-change-table .new-value { background: #edfff3; }
.change-value-list { min-width: 10rem; max-width: 18rem; }
.change-value-list div { overflow-wrap: anywhere; }
.change-value-list div + div { margin-top: .45rem; padding-top: .45rem; border-top: 1px solid var(--border); }
.change-value-list .value { white-space: pre-wrap; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 1.25rem 0; }
.hide-no-change .no-change-snapshot { display: none; }
.hide-unchanged-assets .unchanged-asset { display: none; }
.summary-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; margin: 1.25rem 0; }
.summary-card { background: white; border: 1px solid var(--border); border-top: 4px solid #7c8798; border-radius: 7px; padding: .8rem 1rem; }
.summary-card.collection-card { --status-color: #7c8798; border: 2px solid var(--status-color); min-height: 7.5rem; }
.summary-card.collection-card-healthy { --status-color: #16854c; }
.summary-card.collection-card-warning { --status-color: #d08a00; }
.summary-card.collection-card-failed { --status-color: #c5362b; }
.summary-card.collection-card-disabled { --status-color: #d08a00; }
.summary-card.collection-card-not-backed-up { --status-color: #7c8798; }
.collection-card .collection-health { display: block; color: var(--status-color); font-weight: 700; }
.collection-card .collection-last-backup { display: block; margin-top: .35rem; }
.storage-setup-card { border-inline-start: 4px solid var(--brand); }
.storage-setup-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.storage-setup-heading h2 { margin-top: .2rem; }
.storage-setup-status { display: inline-block; padding: .35rem .65rem; border: 1px solid var(--border); border-radius: 999px; color: var(--text-primary); font-size: .8rem; font-weight: 650; }
.storage-setup-status-connected, .storage-setup-status-ready { background: var(--brand-soft); }
.storage-setup-status-setup, .storage-setup-status-attention { border-color: #b08832; }
.storage-setup-actions { display: flex; align-items: center; gap: .8rem 1.2rem; flex-wrap: wrap; margin-top: 1rem; }
.storage-setup-actions > span { flex: 1 1 16rem; font-size: .85rem; }
.summary-card-link { color: inherit; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.summary-card-link:hover, .summary-card-link:focus-visible { border-color: var(--status-color, var(--brand)); box-shadow: 0 4px 12px rgba(133, 187, 101, .16); transform: translateY(-1px); }
.overview-filter-card.active { border-color: var(--brand-strong); box-shadow: 0 0 0 2px rgba(133, 187, 101, .2); }
.overview-filter-card.added-card.active { border-color: #16854c; box-shadow: 0 0 0 2px rgba(22, 133, 76, .2); }
.overview-filter-card.changed-card.active { border-color: #d08a00; box-shadow: 0 0 0 2px rgba(208, 138, 0, .2); }
.overview-filter-card.deleted-card.active { border-color: #c5362b; box-shadow: 0 0 0 2px rgba(197, 54, 43, .2); }
.summary-card-disabled { opacity: .65; }
.summary-card span { display: block; color: var(--text-secondary); font-size: .85rem; }
.summary-card strong { display: block; font-size: 1.7rem; margin-top: .2rem; }
.summary-card.added-card { border-top-color: #16854c; }
.summary-card.changed-card { border-top-color: #d08a00; }
.summary-card.deleted-card { border-top-color: #c5362b; }
.notification-panel { margin: 1.25rem 0; border-left: 4px solid #c5362b; }
.notification-panel h2 { margin: 0; }
.notification-list { display: grid; gap: .75rem; margin-top: .9rem; }
.notification-item { background: #fff7f6; border: 1px solid #f1c7c3; border-radius: 7px; padding: .85rem 1rem; }
.notification-item p { margin: .35rem 0; }
.notification-item small { overflow-wrap: anywhere; }
.chart-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); gap: 1rem; margin: 1.5rem 0; }
.storage-panel, .capacity-panel { min-width: 0; }
.storage-panel h2, .storage-panel p, .capacity-panel h2, .capacity-panel p { margin: 0 0 .35rem; }
.storage-panel #storage-total { font-size: 1.35rem; white-space: nowrap; }
.storage-chart { width: 100%; min-height: 220px; color: var(--brand); }
.storage-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-axis { stroke: #aeb8c7; stroke-width: 1; }
.chart-line { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart-point { fill: white; stroke: var(--brand); stroke-width: 3; }
.chart-label { fill: var(--text-secondary); font: 12px system-ui, sans-serif; }
.capacity-chart { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(130px, auto); align-items: center; gap: .75rem; }
.capacity-chart svg { display: block; width: 100%; max-height: 250px; }
.capacity-track { fill: none; stroke: var(--surface-subtle); stroke-width: 34; }
.capacity-segment { fill: none; stroke-width: 34; transition: stroke-dasharray .35s ease, stroke-dashoffset .35s ease, opacity .25s ease, stroke-width .15s ease; }
.capacity-total-label { fill: var(--text-secondary); font: 12px system-ui, sans-serif; }
.capacity-total-value { fill: var(--text-primary); font: 700 18px system-ui, sans-serif; }
.capacity-legend { display: grid; gap: .6rem; }
.capacity-legend-row { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: .45rem; width: 100%; border: 0; border-radius: 6px; background: transparent; color: inherit; padding: .3rem .35rem; font: inherit; font-size: .85rem; text-align: left; box-shadow: none; }
.capacity-legend-row:hover, .capacity-legend-row:focus-visible { background: rgba(133, 187, 101, .08); outline: none; }
.capacity-legend-row:focus-visible { box-shadow: 0 0 0 2px rgba(133, 187, 101, .4); }
.capacity-legend-row.is-hidden { opacity: .45; }
.capacity-legend-row.is-hidden .capacity-legend-label { text-decoration: line-through; }
.capacity-legend-row.is-required { cursor: not-allowed; }
.capacity-swatch { width: 10px; height: 10px; border-radius: 50%; }
.tabs { display: flex; gap: .35rem; margin: 1.25rem 0 0; overflow-x: auto; border-bottom: 1px solid var(--border); }
.tab { background: transparent; color: var(--text-secondary); border-radius: 5px 5px 0 0; white-space: nowrap; padding: .65rem .8rem; }
.tab.active { background: white; color: var(--brand-strong); border: 1px solid var(--border); border-bottom-color: white; margin-bottom: -1px; }
.badge { display: inline-block; min-width: 1.25rem; padding: .08rem .3rem; border-radius: 1rem; background: var(--surface-subtle); color: var(--text-secondary); font-size: .75rem; }
.tab-panel { background: white; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 8px 8px; padding: 1.25rem; }
.tab-panel[hidden] { display: none; }
.details-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.details-grid div { background: var(--surface-subtle); border-radius: 5px; padding: .7rem; min-width: 0; }
.details-grid dt { color: var(--text-secondary); font-size: .8rem; }
.details-grid dd { margin: .25rem 0 0; overflow-wrap: anywhere; }
.empty-state { background: #fff8dd; border-radius: 5px; padding: .75rem; }
input[type="search"] { border: 1px solid var(--border-strong); border-radius: 5px; padding: .55rem .7rem; min-width: 15rem; }
.snapshot-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1rem; align-items: start; }
.collection-sidebar { position: sticky; top: 1rem; padding: 1rem; }
.collection-sidebar h2 { margin: 0 0 .75rem; font-size: 1rem; }
.snapshot-content { min-width: 0; }
.snapshot-content .summary-cards { margin-top: 0; }
.resource-nav { display: grid; gap: .35rem; }
.resource-nav a,
.resource-nav .disabled { display: flex; align-items: center; justify-content: space-between; gap: .75rem; background: #e8edf4; border-radius: 5px; color: var(--text-primary); padding: .6rem .7rem; text-decoration: none; }
.resource-nav a.active { background: var(--brand); color: var(--text-on-brand); }
.resource-nav .disabled { opacity: .6; }
.resource-nav a.active .badge { background: rgba(255,255,255,.22); color: white; }
.resource-nav small { display: block; margin-top: .15rem; font-size: .7rem; color: inherit; }
.overview-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 1rem; }
.overview-filters a { border: 1px solid var(--border-strong); border-radius: 1rem; color: var(--text-primary); padding: .4rem .75rem; text-decoration: none; }
.overview-filters a.active { background: var(--brand); border-color: var(--brand-strong); color: var(--text-on-brand); font-weight: 700; }
.snapshot-baseline { margin: 0 0 1.25rem; }
table { width: 100%; border-collapse: collapse; background: white; } th, td { text-align: left; padding: .7rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: #eaf0f7; } code, pre { font-family: Consolas, monospace; } pre { overflow: auto; background: var(--code-bg); color: var(--code-text); padding: 1rem; border-radius: 6px; }
.status { display: inline-block; padding: .3rem .6rem; border-radius: 1rem; background: #d7f4e3; color: #146c3b; } .status.demo { background: #fff0c7; color: #765500; }
html.js time.local-time:not(.is-formatted) { visibility: hidden; }
.last-backup { background: var(--surface-subtle); border-left: 4px solid var(--brand); border-radius: 4px; margin: 1rem 0; padding: .75rem 1rem; }
.last-backup span, .last-backup small { display: block; }
.last-backup strong { display: block; font-size: 1.1rem; margin: .15rem 0; }
.active-backup { background: var(--surface-subtle); border-radius: 5px; margin-top: 1rem; padding: .8rem 1rem; }
.active-backup .connection-status { margin-bottom: .5rem; }
.source-picker { display: grid; gap: .65rem; }
.source-picker-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.source-picker-toolbar .secondary { padding: .35rem .6rem; }
.source-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; max-height: min(52vh, 34rem); overflow-y: auto; overscroll-behavior: contain; padding: .1rem .35rem .1rem .1rem; scrollbar-gutter: stable; }
.source-option { display: flex; align-items: center; gap: .55rem; }
.source-option input { width: 1rem; height: 1rem; }
.source-option-detail { min-width: 0; border: 1px solid var(--border); border-radius: 7px; padding: .75rem; background: var(--surface-subtle); }
.auth-form .source-option { display: flex; align-items: flex-start; gap: .55rem; margin: 0; }
.source-option strong { min-width: 0; overflow-wrap: anywhere; }
.source-option-detail input { flex-shrink: 0; margin: .1rem 0 0; padding: 0; }
.source-description { margin: .35rem 0 0 1.55rem; color: var(--text-secondary); font-size: .85rem; line-height: 1.45; }
.auth-panel { max-width: 420px; margin: 4rem auto; }
.auth-form { display: grid; gap: 1rem; }
.auth-form label { display: grid; gap: .35rem; color: var(--text-secondary); font-size: .9rem; }
.auth-form input { border: 1px solid var(--border-strong); border-radius: 5px; padding: .65rem .75rem; font: inherit; }
:where(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]), select, textarea) { box-sizing: border-box; max-width: 100%; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface-panel); color: var(--text-primary); font: inherit; }
:where(input, textarea)::placeholder { color: var(--text-secondary); opacity: .82; }
.provider-form { max-width: 820px; }
.connection-editor { margin: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-panel); }
.connection-editor > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; list-style: none; }
.connection-editor > summary::-webkit-details-marker { display: none; }
.connection-editor-heading { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; font-size: 1.05rem; }
.connection-editor-action { color: var(--link-color); font-size: .875rem; font-weight: 600; white-space: nowrap; }
.connection-editor[open] .connection-editor-expand, .connection-editor:not([open]) .connection-editor-collapse { display: none; }
.connection-editor-content { padding: 0 1rem 1rem; }
.connection-editor-content > p:first-child { margin-top: 0; }
.field-hint { display: block; line-height: 1.4; }
.connection-action-row { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; padding: 1rem; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-subtle); }
.connection-action-status { flex-basis: 100%; line-height: 1.45; }
.connection-status { display: grid; gap: .75rem; margin: 0 0 1rem; }
.connection-status div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: .75rem; }
.connection-status dt { color: var(--text-secondary); }
.connection-status dd { margin: 0; overflow-wrap: anywhere; }
.connection-status-actions { margin: -.25rem 0 1.25rem; }
.notice { padding: .8rem; margin-bottom: 1rem; border-radius: 5px; background: #dcecff; } .notice.error { background: #ffe1e1; } .notice.warning { background: #fff0c7; }
.added, .diff-add { color: #08783e; } .changed { color: #9a6300; } .deleted, .diff-remove, .warning-text { color: #b42318; } .muted, small { color: var(--text-secondary); }
.diff span { display: block; white-space: pre; } .diff-add { background: #153d2a; } .diff-remove { background: #4a2024; } .diff-note { color: #e7c869; }
.removed { color: #b42318; } .change-table .value { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 28rem; }
.change-table .old-value { background: #fff0f0; } .change-table .new-value { background: #edfff3; }
details { margin-top: 2rem; } summary { cursor: pointer; font-weight: 650; }
.technical-details { margin: .75rem 0 1rem; }
.technical-details summary { color: var(--text-secondary); font-size: .9rem; }
.technical-details p { margin: .6rem 0 0; }
.json-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; min-width: 0; }
.marketing-hero { padding: 2rem; }
.marketing-hero h1 { max-width: 820px; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05; margin: .35rem 0 1rem; letter-spacing: 0; }
.marketing-hero p { max-width: 760px; font-size: 1.08rem; }
.homepage-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); font-family: "InterVariable", Inter, system-ui, sans-serif; font-optical-sizing: auto; }
.homepage-pain-column { align-self: center; min-width: 0; }
.homepage-hero .homepage-pain-column h1 { max-width: 14ch; font-size: clamp(2.75rem, 5vw, 4rem); font-weight: 750; line-height: 1.02; letter-spacing: -.035em; }
.homepage-hero .homepage-hero-lede { max-width: 610px; margin: 0; font-size: 1.12rem; line-height: 1.5; }
.homepage-pain-points { display: flex; flex-wrap: wrap; gap: .65rem 1.15rem; margin: 1.35rem 0 0; padding: 0; list-style: none; }
.homepage-pain-points li { display: flex; align-items: center; gap: .5rem; font-size: .92rem; font-weight: 650; }
.homepage-pain-points li::before { content: ""; flex: 0 0 auto; width: .55rem; height: .55rem; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(133, 187, 101, .14); }
.homepage-pain-points a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
.homepage-pain-points a:hover { color: var(--brand-strong); text-decoration-thickness: .13em; }
.homepage-signup-panel { display: grid; align-content: center; align-self: center; padding: clamp(1.25rem, 2.5vw, 1.75rem); border: 1px solid #3d444d; border-radius: 14px; background: linear-gradient(145deg, #2b3139, var(--charcoal)); color: #ffffff; box-shadow: 0 16px 34px rgba(21, 25, 31, .2); }
.homepage-signup-panel .landing-signup { display: grid; grid-template-columns: 1fr; gap: .7rem; padding: 0; border: 0; background: transparent; }
.homepage-signup-panel .landing-signup h2 { margin: .15rem 0 .35rem; font-size: clamp(1.65rem, 3vw, 2.1rem); line-height: 1.08; }
.homepage-signup-panel .landing-signup p { max-width: none; font-size: .96rem; }
.homepage-signup-panel .landing-signup .eyebrow { color: #ffe0bd; }
.homepage-signup-panel .email-signup-form { grid-template-columns: 1fr; }
.homepage-signup-panel .email-signup-form input,
.homepage-signup-panel .email-signup-form button { box-sizing: border-box; width: 100%; min-height: 2.8rem; }
.homepage-signup-panel .email-signup-form button { background: var(--brand); color: var(--text-on-brand); box-shadow: 0 7px 18px rgba(0, 0, 0, .24); }
.homepage-signup-panel .email-signup-form button:hover { background: var(--brand-soft); }
.homepage-signup-panel .pricing-link,
.homepage-signup-panel .homepage-signup-note a { color: white; }
.homepage-signup-note { margin: .7rem 0 0; font-size: .82rem; color: #ffe0bd; }
.homepage-signup-panel .form-status { color: var(--brand-soft); }
.homepage-signup-panel .form-status:empty { display: none; }
.homepage-signup-panel .form-status.is-success { color: #d8ffe6; }
.homepage-signup-panel .form-status.is-error { color: #ffe1de; }
.homepage-shell main { --homepage-gutter: clamp(1.25rem, 4vw, 4rem); box-sizing: border-box; width: 100%; max-width: 1536px; margin: 0 auto 2rem; padding-inline: var(--homepage-gutter); }
.homepage-hero { display: block; overflow: visible; padding: .5rem 0 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.homepage-hero-stage { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-content: center; min-height: clamp(34rem, 44vw, 42rem); padding-block: 2rem; box-sizing: border-box; }
/* Keep the hero and its photo fade charcoal in both page themes. */
.homepage-hero-stage {
  color-scheme: dark;
  --surface-page: #15191f;
  --text-primary: #f3f4f6;
  --text-secondary: #b4bdc9;
  --text-on-brand: #20252d;
  --brand: #85BB65;
  --brand-hover: #78AD58;
  --brand-active: #ACD493;
  --brand-strong: #85BB65;
  --link-color: #85BB65;
  --link-hover-color: #ACD493;
  --link-active-color: #ffd6aa;
  --focus-ring-color: #85BB65;
  color: var(--text-primary);
}
.homepage-hero-stage::before { content: ""; position: absolute; z-index: -2; inset: -.5rem calc(-1 * var(--homepage-gutter)) 0; background: var(--surface-page); box-shadow: 0 0 0 100vmax var(--surface-page); clip-path: inset(0 -100vmax); }
.homepage-hero-top { grid-column: 1; min-width: 0; }
.homepage-hero-copy { position: relative; z-index: 1; min-width: 0; }
.homepage-hero .homepage-hero-copy > .eyebrow { margin: 0 0 .35rem; }
.homepage-hero .homepage-hero-copy h1 { max-width: 9em; margin: .35rem 0 .85rem; font-size: clamp(3.15rem, 4vw, 3.7rem); font-weight: 770; line-height: 1.02; letter-spacing: -.04em; }
.homepage-hero .homepage-hero-lede { max-width: 620px; margin: 0; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.5; }
.homepage-hero .homepage-hero-signup-panel { position: relative; z-index: 1; grid-column: 1; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: .75rem; width: 100%; margin: 1.5rem 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--text-primary); box-shadow: none; }
.homepage-hero-signup-panel .landing-signup { display: contents; }
.homepage-hero-signup-panel .landing-signup > div { grid-column: 1; align-self: center; }
.homepage-hero-signup-panel .landing-signup > .primary-link { grid-column: 1; justify-self: start; }
.homepage-hero-signup-panel .landing-signup .eyebrow { display: none; }
.homepage-hero-signup-panel .landing-signup h2 { margin: 0 0 .45rem; font-size: clamp(1.55rem, 2.4vw, 2rem); line-height: 1.1; }
.homepage-hero-signup-panel .landing-signup p { margin: 0; color: var(--text-secondary); font-size: .95rem; line-height: 1.5; }
.homepage-hero-signup-panel .pricing-link { display: inline-block; margin-left: .25rem; color: var(--link-color); font-weight: 750; white-space: nowrap; }
.homepage-hero-signup-panel .email-signup-form { display: grid; grid-column: 1; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem .65rem; min-width: 0; }
.homepage-hero-signup-panel .email-signup-form label { grid-column: 1 / -1; color: var(--text-primary); font-size: .82rem; font-weight: 650; }
.homepage-hero-signup-panel .email-signup-form input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 3.15rem; }
.homepage-hero-signup-panel .email-signup-form button { box-sizing: border-box; width: auto; min-width: 12rem; min-height: 3.15rem; background: var(--brand); color: var(--text-on-brand); box-shadow: none; }
.homepage-hero-signup-panel .email-signup-form button:hover { background: var(--brand-hover); }
.homepage-hero-signup-panel .form-status { grid-column: 1 / -1; min-height: 0; color: var(--text-secondary); }
.homepage-hero-signup-panel .form-status:empty { display: none; }
.homepage-hero-signup-panel .form-status.is-success { color: var(--success); }
.homepage-hero-signup-panel .form-status.is-error { color: var(--danger); }
.homepage-hero .homepage-hero-signup-panel .homepage-signup-note { grid-column: 1; margin: 0; color: var(--text-secondary); font-size: .8rem; line-height: 1.35; }
.homepage-hero-signup-panel .homepage-signup-note a { color: var(--link-color); }
.homepage-use-cases { margin-top: clamp(1.5rem, 3vw, 2rem); padding-block: 1.5rem; border-block: 1px solid var(--border); }
.homepage-hero .homepage-pain-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; }
.homepage-hero .homepage-pain-points li { align-items: stretch; min-width: 0; padding: .25rem clamp(.75rem, 1.5vw, 1.4rem); border-right: 1px solid var(--border); color: var(--text-secondary); font-size: .9rem; text-align: left; }
.homepage-hero .homepage-pain-points li:first-child { padding-left: 0; }
.homepage-hero .homepage-pain-points li:last-child { border-right: 0; }
.homepage-hero .homepage-pain-points li::before { display: none; }
.homepage-hero .homepage-use-case-link { display: grid; grid-template-columns: 2rem minmax(0, 1fr); align-items: start; gap: .9rem; width: 100%; color: inherit; text-decoration: none; }
.homepage-use-case-link > .public-line-icon { width: 2rem; height: 2rem; color: var(--brand-strong); }
.homepage-use-case-link > span { display: flex; flex-direction: column; align-items: flex-start; height: 100%; }
.homepage-use-case-link strong { color: var(--text-primary); font-size: .98rem; font-weight: 650; line-height: 1.35; }
.homepage-use-case-description { display: block; margin-block: .35rem 1rem; color: var(--text-secondary); font-size: .9rem; font-weight: 400; line-height: 1.5; }
.homepage-use-case-more { margin-top: auto; color: var(--link-color); font-weight: 600; }
.homepage-use-case-link:hover .homepage-use-case-more { text-decoration: underline; text-underline-offset: .2em; }
.homepage-hero-artwork { position: absolute; z-index: -1; inset: 0 calc(-1 * var(--homepage-gutter)) 0 8%; min-width: 0; margin: 0; overflow: hidden; pointer-events: none; }
.homepage-hero-artwork-viewport { position: relative; width: 100%; height: 100%; overflow: hidden; background: transparent; -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 20%, #000 58%); mask-image: linear-gradient(to right, transparent 0%, transparent 20%, #000 58%); }
.homepage-hero-artwork-viewport::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--surface-page), transparent 12%, transparent 85%, var(--surface-page)); }
.homepage-hero-artwork picture { display: block; }
.homepage-hero-artwork img { position: absolute; inset: 0; display: block; width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: right top; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.homepage-product-proof { margin-top: 1rem; padding: clamp(1.25rem, 3vw, 2rem); }
.homepage-product-proof-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.1rem; }
.homepage-product-proof-heading h2 { margin: 0 0 .35rem; font-size: clamp(1.65rem, 3.5vw, 2.35rem); }
.homepage-product-proof-heading p { margin: 0; color: var(--text-secondary); }
.homepage-product-proof-heading > a { flex: 0 0 auto; font-weight: 750; }
.homepage-product-screenshot { margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-panel); box-shadow: 0 18px 42px rgba(20, 31, 48, .12); }
.homepage-product-screenshot img { display: block; width: 100%; height: auto; }
.homepage-product-screenshot figcaption { padding: .5rem .75rem; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: .75rem; }
.homepage-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.25rem; }
.homepage-section-heading .eyebrow { margin: 0 0 .35rem; }
.homepage-section-heading h2 { margin: 0 0 .4rem; font-size: clamp(1.65rem, 3.5vw, 2.35rem); }
.homepage-section-heading p:last-child { max-width: 760px; margin: 0; color: var(--text-secondary); }
.homepage-section-heading > a { flex: 0 0 auto; font-weight: 750; }
.homepage-how-it-works, .homepage-workflow-proof, .homepage-closing-offer { margin-top: 1rem; padding: clamp(1.25rem, 3vw, 2rem); }
.homepage-workflow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.homepage-workflow-steps li { display: flex; align-items: flex-start; gap: .8rem; min-width: 0; padding: 1rem; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-subtle); }
.homepage-workflow-steps li > span { display: inline-grid; flex: 0 0 2rem; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; background: var(--brand); color: var(--text-on-brand); font-weight: 800; }
.homepage-workflow-steps h3 { margin: .1rem 0 .35rem; font-size: 1rem; }
.homepage-workflow-steps p { margin: 0; color: var(--text-secondary); font-size: .9rem; line-height: 1.45; }
.homepage-workflow-carousel { margin: 0; }
.homepage-workflow-carousel .screenshot-indicators { align-items: stretch; justify-content: flex-start; gap: .55rem; margin: 0 0 .85rem; padding: .2rem .1rem .35rem; overflow-x: auto; scrollbar-width: thin; }
.homepage-workflow-carousel .screenshot-indicator { width: auto; min-height: 2.6rem; padding: .55rem .8rem; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface-panel); color: var(--text-primary); font: inherit; font-size: .82rem; font-weight: 750; white-space: nowrap; }
.homepage-workflow-carousel .screenshot-indicator:hover { border-color: var(--brand); background: var(--brand-soft); filter: none; }
.homepage-workflow-carousel .screenshot-indicator.is-active { border-color: var(--brand); background: var(--brand); color: var(--text-on-brand); }
.homepage-workflow-carousel .screenshot-viewport { aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-subtle); }
.homepage-workflow-carousel .screenshot-slide { box-sizing: border-box; display: grid; grid-template-rows: minmax(0, 1fr) auto; margin: 0; background: var(--surface-panel); }
.homepage-workflow-carousel .screenshot-slide[hidden] { display: none; }
.homepage-workflow-carousel .screenshot-slide img { min-width: 0; min-height: 0; border: 0; background: var(--charcoal-deep); box-shadow: none; object-fit: contain; }
.homepage-workflow-carousel .screenshot-slide figcaption { display: grid; gap: .2rem; padding: .75rem 1rem; border-top: 1px solid var(--border); background: var(--surface-panel); }
.homepage-workflow-carousel .screenshot-slide figcaption strong { font-size: .95rem; }
.homepage-workflow-carousel .screenshot-slide figcaption span { color: var(--text-secondary); font-size: .82rem; line-height: 1.4; }
.homepage-illustrative-note { margin: .6rem 0 0; color: var(--text-secondary); font-size: .75rem; }
.homepage-closing-offer { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(1.5rem, 4vw, 3rem); border-color: color-mix(in srgb, var(--brand) 55%, var(--border)); background: linear-gradient(135deg, var(--surface-panel), var(--brand-soft)); }
.homepage-closing-offer > div > .eyebrow { margin: 0 0 .35rem; }
.homepage-closing-offer > div > h2 { margin: 0 0 .55rem; font-size: clamp(1.6rem, 3vw, 2.15rem); }
.homepage-closing-offer > div > p:last-child { margin: 0; color: var(--text-secondary); }
.homepage-closing-offer .homepage-signup-panel { width: 100%; box-sizing: border-box; }
.homepage-integration-banner { --ticker-surface: var(--surface-panel); --ticker-surface-hover: var(--brand-soft); --ticker-border: var(--border); --ticker-text: var(--text-primary); --ticker-link: var(--brand-strong); --ticker-link-hover: var(--brand-hover); --ticker-badge-border: var(--border-strong); --ticker-badge-text: var(--brand-strong); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: stretch; gap: 0; min-height: 3.15rem; margin: 1rem 0; padding: 0; overflow: hidden; border-color: var(--ticker-border); border-radius: 7px; background: var(--ticker-surface); color: var(--ticker-text); box-shadow: 0 8px 20px rgba(15, 31, 52, .1); transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.integration-ticker-label, .integration-ticker-view-all { position: relative; z-index: 2; display: inline-flex; align-items: center; white-space: nowrap; color: white; font-size: .72rem; font-weight: 800; letter-spacing: .075em; text-decoration: none; text-transform: uppercase; }
.integration-ticker-label, .integration-ticker-label:visited { gap: .48rem; padding: 0 1rem; background: var(--brand); color: var(--text-on-brand); }
.integration-ticker-label:hover { background: var(--brand-hover); color: var(--text-on-brand); text-decoration: none; }
.integration-ticker-label > span { width: .46rem; height: .46rem; border-radius: 50%; background: #67e69b; box-shadow: 0 0 0 3px rgba(103, 230, 155, .18); }
.integration-ticker-view-all, .integration-ticker-view-all:visited { gap: .35rem; padding: 0 .9rem; border-left: 1px solid var(--ticker-border); background: var(--ticker-surface); color: var(--ticker-link); }
.integration-ticker-view-all:hover { background: var(--ticker-surface-hover); color: var(--ticker-link-hover); text-decoration: none; }
.integration-ticker-view-all span { font-size: 1rem; }
.integration-marquee { min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.2rem, #000 calc(100% - 1.2rem), transparent); mask-image: linear-gradient(90deg, transparent, #000 1.2rem, #000 calc(100% - 1.2rem), transparent); }
.integration-marquee-track { display: flex; width: max-content; animation: integration-marquee-scroll 36s linear infinite; will-change: transform; backface-visibility: hidden; }
.js [data-integration-ticker] .integration-marquee-track { animation: none; }
.integration-marquee-group { display: flex; align-items: stretch; }
.integration-marquee-item { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; gap: .48rem; min-height: 3.15rem; padding: 0 1rem; background: transparent; color: var(--ticker-text); font-size: .8rem; font-weight: 750; letter-spacing: .015em; line-height: 1; text-decoration: none; }
.integration-marquee-item::after { content: ""; position: absolute; top: 30%; right: 0; width: 1px; height: 40%; background: var(--ticker-border); }
.integration-marquee-icon { display: inline-grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; overflow: hidden; border-radius: 50%; background: white; color: #647187; font-size: .7rem; }
.integration-marquee-icon img { display: block; width: 24px; height: 24px; object-fit: contain; }
.integration-marquee-item small { padding: .18rem .3rem; border: 1px solid var(--ticker-badge-border); border-radius: 3px; color: var(--ticker-badge-text); font-size: .55rem; letter-spacing: .055em; text-transform: uppercase; }
@keyframes integration-marquee-scroll { to { transform: translate3d(-50%, 0, 0); } }
.eyebrow { color: var(--brand-strong); font-weight: 750; text-transform: uppercase; font-size: .78rem; letter-spacing: .06em; }
.marketing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.marketing-grid section { min-width: 0; }
.integration-request-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin: 1.25rem 0; padding: 1.4rem 1.5rem; border-color: color-mix(in srgb, var(--brand) 55%, var(--border)); background: linear-gradient(135deg, var(--surface-panel), var(--brand-soft)); }
.integration-request-cta h2 { margin: 0 0 .35rem; }
.integration-request-cta p { margin: 0; }
.integration-request-cta button { flex: 0 0 auto; }
.integration-request-dialog { box-sizing: border-box; width: min(32rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; padding: 0; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface-panel); color: var(--text-primary); box-shadow: 0 28px 80px rgba(17, 24, 39, .38); }
.integration-request-dialog::backdrop { background: rgba(20, 24, 31, .72); backdrop-filter: blur(2px); }
.integration-request-dialog-panel { padding: 1.4rem; }
.integration-request-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.integration-request-dialog-heading .eyebrow { margin: 0 0 .2rem; }
.integration-request-dialog-heading h2 { margin: 0; }
.integration-request-close { display: inline-grid; flex: 0 0 2.5rem; width: 2.5rem; min-height: 2.5rem; padding: 0; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--surface-subtle); color: var(--text-primary); font-size: 1.55rem; line-height: 1; }
.integration-request-dialog form > div:not(.integration-request-honeypot) { display: grid; }
.integration-request-dialog label { margin-top: .85rem; font-weight: 700; }
.integration-request-dialog input { width: 100%; box-sizing: border-box; }
.integration-request-dialog button[type="submit"] { width: 100%; margin-top: 1rem; }
.integration-request-honeypot { position: fixed !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.integration-request-dialog .field-help { margin: .4rem 0 0; color: var(--text-secondary); font-size: .88rem; }
.integration-request-dialog .form-error { min-height: 1.15rem; margin: .3rem 0 0; color: #b42318; font-size: .85rem; }
.integration-request-status { margin: .8rem 0 0; }
.integration-request-status:empty { display: none; }
.integration-request-status.is-error { color: #b42318; }
.integration-request-status.is-success { padding: .85rem 1rem; border-left: 4px solid #16854c; background: color-mix(in srgb, #16854c 10%, var(--surface-panel)); color: var(--text-primary); }
.integration-request-done { width: 100%; margin-top: 1rem; }
html[data-theme="dark"] .integration-request-dialog .form-error,
html[data-theme="dark"] .integration-request-status.is-error { color: #ff8179; }
.vendor-title-link { display: inline-flex; align-items: center; gap: .55rem; }
.vendor-icon-frame { position: relative; flex: 0 0 32px; width: 32px; height: 32px; display: inline-grid; place-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-panel); color: #647187; font-size: .9rem; line-height: 1; text-decoration: none; }
.vendor-icon-fallback, .vendor-icon { grid-area: 1 / 1; }
.vendor-icon { position: relative; z-index: 1; display: block; width: 28px; height: 28px; object-fit: contain; }
.feature-card-hint { margin: 1.25rem 0 .65rem; color: var(--text-secondary); font-size: .9rem; }
.feature-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: .65rem 0 1.25rem; }
.feature-card { min-width: 0; border: 1px solid var(--border); border-radius: 8px; background: white; overflow: hidden; }
.feature-card-inner { height: 100%; }
.feature-card-face { box-sizing: border-box; padding: 1.25rem; }
.feature-card-front h2, .feature-card-front h3, .feature-card-back p { margin: 0; }
.feature-card-front h2, .feature-card-front h3 { font-size: 1.35rem; line-height: 1.18; }
.feature-card-back { border-top: 1px solid var(--border); }
.feature-card-back p { line-height: 1.55; }
.feature-card-grid.is-enhanced .feature-card { min-height: 230px; border: 0; background: transparent; overflow: visible; perspective: 1200px; cursor: pointer; }
.feature-card-grid.is-enhanced .feature-card-inner { position: relative; min-height: 230px; border-radius: 8px; transform-style: preserve-3d; transition: transform 520ms ease; }
.feature-card-grid.is-enhanced .feature-card-face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 8px; background: white; backface-visibility: hidden; -webkit-backface-visibility: hidden; text-align: center; }
.feature-card-grid.is-enhanced .feature-card-front { background: linear-gradient(160deg, var(--surface-panel) 0%, #f0f5fc 100%); }
.feature-card-grid.is-enhanced .feature-card-back { transform: rotateY(180deg); border-color: var(--border); background: linear-gradient(160deg, var(--surface-panel) 0%, var(--brand-soft) 100%); }
.feature-card-grid.is-enhanced .feature-card-back p { font-weight: 600; }
.feature-card-grid.is-enhanced .feature-card.is-flipped .feature-card-inner { transform: rotateY(180deg); }
.feature-card-grid.is-enhanced .feature-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .feature-card-grid.is-enhanced .feature-card:not(.is-touch-interaction):hover .feature-card-inner { transform: rotateY(180deg); }
}
.collection-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.collection-list article { border: 1px solid var(--border); border-radius: 7px; padding: 1rem; background: var(--surface-subtle); }
.collection-list h3 { margin-top: 0; }
.step-list { display: grid; gap: 1.5rem; }
.workflow-step { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 1.5rem; padding: 1.5rem; }
.workflow-step-copy .eyebrow { margin: 0 0 .35rem; }
.workflow-step-copy h2 { margin: 0 0 .65rem; }
.workflow-step-copy p:last-child { margin-bottom: 0; }
.workflow-step-screenshot, .workflow-step-placeholder { margin: 0; }
.workflow-step-placeholder { box-sizing: border-box; display: grid; place-content: center; gap: .45rem; width: 100%; aspect-ratio: 997 / 771; }
.workflow-step-placeholder span { display: block; }
.workflow-step-placeholder code { overflow-wrap: anywhere; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; color: var(--text-secondary); }
.breadcrumbs a { color: var(--brand-strong); }
.screenshot-placeholder { border: 2px dashed #9aa8ba; border-radius: 8px; background: var(--surface-subtle); color: var(--text-secondary); padding: 2rem; text-align: center; margin: 1.25rem 0; }
.marketing-screenshot { margin: 1.25rem 0; }
.marketing-screenshot img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 18px 44px rgba(23, 32, 51, .16); }
.screenshot-showcase { margin: 1.25rem 0; padding: 1.25rem; background: linear-gradient(145deg, var(--surface-panel), #f0f5fc); border-color: #c9d8eb; box-shadow: 0 12px 32px rgba(23, 32, 51, .08); }
.screenshot-showcase h2 { margin: 0; }
.screenshot-showcase .marketing-screenshot { margin-bottom: 0; }
.screenshot-viewport { aspect-ratio: 997 / 771; }
.screenshot-slide, .screenshot-slide img { width: 100%; height: 100%; }
.screenshot-slide img { object-fit: contain; }
.screenshot-carousel.is-enhanced .screenshot-viewport { position: relative; }
.screenshot-carousel.is-enhanced .screenshot-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s ease; }
.screenshot-carousel.is-enhanced .screenshot-slide.is-active { z-index: 1; opacity: 1; }
.screenshot-indicators { display: none; }
.screenshot-carousel.is-enhanced .screenshot-indicators { display: flex; align-items: center; justify-content: center; gap: .45rem; margin-top: 1rem; }
.screenshot-indicator { width: .8rem; min-height: .8rem; padding: 0; border: 2px solid var(--brand); border-radius: 50%; background: transparent; }
.screenshot-indicator.is-active { background: var(--brand); }
.marketing-screenshot button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.doc-page { max-width: 860px; }
.doc-page h1 { font-size: 2.4rem; line-height: 1.1; letter-spacing: 0; }
.site-footer { max-width: 1100px; margin: 2rem auto; padding: 1.25rem 1rem 2rem; border-top: 1px solid var(--border); }
.app-footer { color: var(--text-secondary); font-size: .9rem; }
.app-footer p { margin: 0; }
.app-footer-brand { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1rem; }
.public-shell .public-header { display: block; padding: 0; background: var(--surface-page); color: var(--text-primary); border-bottom: 1px solid var(--border); font-family: "InterVariable", Inter, system-ui, sans-serif; }
.public-header-inner { box-sizing: border-box; width: 100%; max-width: 1536px; min-height: 4.9rem; padding-inline: clamp(1.25rem, 4vw, 4rem); margin: 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.brand-link { flex: 0 0 auto; }
.public-header .brand-logo-text { font-size: clamp(1.15rem, 1.65vw, 1.55rem); font-weight: 730; letter-spacing: -.04em; }
.public-header .brand-logo-mark { width: 34px; height: 38px; flex-basis: 34px; }
.public-header-menu { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; }
.public-header-menu .header-nav { justify-content: center; align-items: center; flex-wrap: nowrap; gap: clamp(1.25rem, 2.6vw, 2.5rem); }
.public-header .header-nav > a, .public-account-nav a { color: var(--text-primary); font-size: .94rem; font-weight: 450; text-decoration: none; }
.public-header .header-nav > a:hover, .public-account-nav a:hover { color: var(--link-color); }
.public-account-nav { display: flex; flex: 0 0 auto; align-items: center; gap: 1.75rem; white-space: nowrap; }
.public-account-nav .account-link { border-radius: 7px; min-height: 2.7rem; padding: 0 1.5rem; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.public-account-nav .account-link-primary { background: var(--brand); color: var(--text-on-brand); }
.public-account-nav .account-link-primary:hover { background: var(--brand-hover); color: var(--text-on-brand); }
.public-header .public-theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 1px solid var(--border-strong); border-radius: 50%; color: var(--text-primary); background: transparent; }
.public-header .public-theme-toggle:hover { border-color: var(--brand); }
.public-theme-toggle .public-line-icon { width: 1.2rem; height: 1.2rem; }
.public-theme-toggle .theme-icon-sun { display: none; }
html[data-theme="dark"] .public-theme-toggle .theme-icon-sun { display: block; }
html[data-theme="dark"] .public-theme-toggle .theme-icon-moon { display: none; }
.public-header :is(a, button):focus-visible { outline: 3px solid var(--focus-ring-color); outline-offset: 3px; }
.public-menu-toggle, .docs-menu-toggle { display: none; }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0; border: 0; background: transparent; color: var(--text-primary); font: inherit; font-size: .94rem; font-weight: 450; white-space: nowrap; }
.nav-dropdown-toggle:hover { color: var(--link-color); }
.nav-dropdown-toggle[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35rem; }
.public-line-icon { display: block; flex: 0 0 auto; }
.nav-dropdown-toggle > span { display: inline-block; transition: transform .15s ease; }
.nav-dropdown-toggle .public-line-icon { width: .9rem; height: .9rem; }
.nav-dropdown-toggle[aria-expanded="true"] > span { transform: rotate(180deg); }
.nav-dropdown-menu { box-sizing: border-box; position: absolute; z-index: 50; top: calc(100% + .45rem); left: -.75rem; transform: translateX(var(--dropdown-shift, 0px)); width: 23rem; max-width: calc(100vw - 2rem); max-height: min(36rem, calc(100dvh - 6rem)); overflow-y: auto; overscroll-behavior: contain; display: grid; padding: .5rem; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-panel); box-shadow: 0 16px 40px rgba(0,0,0,.2); }
.nav-dropdown-menu[hidden] { display: none; }
.public-header .nav-dropdown-menu a { min-width: 0; padding: .85rem .8rem; border-radius: 6px; color: var(--text-primary); font-weight: 450; text-decoration: none; }
.public-header .nav-dropdown-menu a:hover, .public-header .nav-dropdown-menu a:focus-visible, .public-header .nav-dropdown-menu a[aria-current="page"] { background: var(--surface-subtle); color: var(--text-primary); }
.nav-use-case-link { display: grid; grid-template-columns: 1.7rem minmax(0, 1fr); align-items: center; gap: 1rem; }
.nav-use-case-link > .public-line-icon { width: 1.7rem; height: 1.7rem; color: var(--brand-strong); }
.nav-use-case-link strong { display: block; font-size: .92rem; font-weight: 550; }
.nav-use-case-link small { display: block; margin-top: .3rem; font-size: .8rem; line-height: 1.45; color: var(--text-secondary); }
.integrations-dropdown-menu { width: 29rem; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2rem; }
.nav-dropdown-menu .nav-dropdown-all { grid-column: 1 / -1; margin-bottom: .3rem; border-bottom: 1px solid var(--border); border-radius: 6px 6px 0 0; font-size: .9rem; }
.nav-vendor-link { display: flex; align-items: center; gap: .65rem; font-size: .85rem; }
.nav-vendor-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; height: 26px; }
.nav-vendor-icon img { max-width: 100%; max-height: 100%; object-fit: contain; }
.nav-status-badge { margin-left: auto; padding: .1rem .25rem; border: 1px solid var(--border-strong); border-radius: 3px; color: var(--text-secondary); font-size: .6rem; text-transform: uppercase; letter-spacing: .04em; }
.docs-header-nav { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-subtle); }
.docs-header-nav-inner { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; }
.docs-nav { min-height: 3rem; display: flex; flex-wrap: wrap; align-items: stretch; gap: 0 1.5rem; }
.docs-nav a { min-height: 3rem; display: inline-flex; align-items: center; color: var(--text-primary); font-size: .9rem; font-weight: 650; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.docs-nav a:hover { color: var(--link-hover-color); }
.docs-nav a[aria-current="page"] { color: var(--link-color); border-bottom-color: var(--brand); }
.public-footer { display: grid; grid-template-columns: minmax(280px, 2fr) repeat(2, minmax(130px, 1fr)); gap: 2rem; }
.footer-brand { max-width: 470px; }
.footer-brand p { line-height: 1.55; }
.footer-legal { grid-column: 1 / -1; margin: 0; color: var(--text-secondary); font-size: .85rem; }
.footer-brand-link { color: inherit; text-decoration: none; }
.footer-group { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.footer-group h2 { margin: 0 0 .25rem; font-size: 1rem; }
.footer-group a { color: var(--brand-strong); }
@media (max-width: 700px) { .split, .json-columns, .chart-grid { grid-template-columns: 1fr; } .summary-cards, .details-grid { grid-template-columns: repeat(2, 1fr); } table { font-size: .85rem; } }
@media (max-width: 700px) { .source-form { grid-template-columns: 1fr; max-height: 50vh; } .source-picker-toolbar { align-items: flex-start; flex-direction: column; } .connection-action-row { align-items: stretch; flex-direction: column; } .connection-action-row button { width: 100%; } }
@media (max-width: 1100px) {
  .public-header-inner { grid-template-columns: minmax(0, 1fr) auto auto; min-height: 4.25rem; gap: .8rem; }
  .public-header .brand-logo-text { display: block; font-size: 1.2rem; }
  .public-menu-toggle { grid-column: 2; display: inline-flex; align-items: center; justify-content: center; min-height: 2.5rem; padding: .4rem .75rem; background: transparent; border: 1px solid var(--border); color: var(--text-primary); font: inherit; font-size: .9rem; }
  .public-header .public-theme-toggle { grid-column: 3; grid-row: 1; }
  .public-header-menu { display: flex; grid-column: 1 / -1; grid-row: 2; width: 100%; margin: 0; padding: .65rem 0 1rem; align-items: stretch; flex-direction: column; gap: .8rem; border-top: 1px solid var(--border); }
  .js .public-menu-toggle[aria-expanded="false"] + .public-header-menu { display: none; }
  .public-header-menu .header-nav, .public-account-nav { align-items: stretch; flex-direction: column; gap: .25rem; }
  .public-header-menu .header-nav > a { min-height: 2.75rem; display: flex; align-items: center; padding: 0 .3rem; }
  .nav-dropdown-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 .3rem; }
  .nav-dropdown-menu { position: static; transform: none; width: 100%; max-width: none; max-height: min(30rem, 60dvh); margin: .15rem 0 .45rem; border-color: var(--border); box-shadow: none; }
  .public-header-menu .header-nav { gap: .25rem; }
  .public-account-nav { flex-direction: row; align-items: center; gap: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
}
@media (max-width: 900px) {
  .docs-header-nav-inner { padding: .45rem 0; }
  .docs-menu-toggle { width: 100%; min-height: 2.5rem; padding: 0 .2rem; display: flex; align-items: center; justify-content: space-between; background: transparent; color: var(--text-primary); }
  .docs-menu-toggle span:last-child { font-size: 1.25rem; line-height: 1; }
  .docs-menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(45deg); }
  .docs-nav { min-height: 0; padding: .4rem 0 .25rem; flex-direction: column; gap: .15rem; }
  .docs-menu-toggle[aria-expanded="false"] + .docs-nav { display: none; }
  .docs-nav a { min-height: 2.5rem; padding: 0 .5rem; border-bottom: 0; border-left: 3px solid transparent; }
  .docs-nav a[aria-current="page"] { border-left-color: var(--brand); background: var(--brand-soft); }
  .public-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}

/* Conversion-led use case pages. */
.use-case-page { --uc-accent: var(--brand); --uc-soft: var(--brand-soft); display: grid; min-width: 0; gap: 1.5rem; }
.use-case-page, .use-case-page * { box-sizing: border-box; }
.use-case-page > section { border-radius: 16px; }
.use-case-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); min-height: 0; padding: clamp(1.35rem, 3vw, 2.25rem); font-family: "InterVariable", Inter, system-ui, sans-serif; font-optical-sizing: auto; }
.use-case-hero > * { min-width: 0; }
.hero-copy h1 { max-width: 720px; margin: .35rem 0 .8rem; font-size: clamp(2.35rem, 4.3vw, 3.85rem); line-height: 1; letter-spacing: -.05em; }
.hero-copy { min-width: 0; overflow-wrap: anywhere; }
.hero-lede { max-width: 660px; margin: 0 0 1rem; font-size: 1.08rem; line-height: 1.52; }
.promise-list { display: grid; gap: .65rem; padding: 0; list-style: none; }
.promise-list li { display: flex; gap: .65rem; align-items: start; font-weight: 650; }
.promise-list li::before { content: "✓"; color: #16854c; font-weight: 900; }
.use-case-signup-panel { width: 100%; min-width: 0; box-sizing: border-box; }
.use-case-signup-panel-closing { width: min(100%, 520px); justify-self: center; margin-block: .25rem; }
.use-case-illustration { display: grid; place-items: center; padding: clamp(1rem, 3vw, 2rem); overflow: hidden; }
.use-case-illustration > * { box-sizing: border-box; width: min(100%, 900px); min-width: 0; margin: 0; }
.deleted-history-illustration .record-mockup { width: min(100%, 780px); }
.landing-signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 1.2fr) auto; align-items: center; gap: 1rem 1.5rem; padding: 1.35rem; border: 1px solid var(--border); background: var(--brand-soft); }
.landing-signup h2 { margin: .15rem 0 .25rem; font-size: 1.15rem; }
.landing-signup p { margin: 0; font-size: .9rem; }
.email-signup-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem; margin: 0; }
.email-signup-form input { min-width: 0; padding: .8rem .9rem; border: 1px solid #9fb1c9; border-radius: 7px; font: inherit; }
.email-signup-form button { white-space: nowrap; }
.form-status { grid-column: 1 / -1; min-height: 1.2rem; color: #4d5b70; }
.form-status.is-success { color: #146c3b; }
.form-status.is-error { color: #a72e25; }
.pricing-link { white-space: nowrap; font-weight: 650; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mockup-label { margin: 0 0 .75rem; color: #6a7688; font-size: .72rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.migration-map { display: grid; justify-items: stretch; padding: 1.25rem; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(155deg, var(--surface-panel), var(--brand-soft)); box-shadow: 0 24px 55px rgba(32, 37, 45, .15); }
.provider-node, .backup-node { padding: 1rem 1.15rem; border-radius: 11px; background: white; box-shadow: 0 8px 22px rgba(23,45,78,.1); }
.provider-node span, .backup-node span, .provider-node small, .backup-node small { display: block; }
.provider-node span, .backup-node span { color: #68768a; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.provider-node strong, .backup-node strong { display: block; margin: .2rem 0; font-size: 1.15rem; }
.backup-node { border: 2px solid var(--brand); }
.migration-rail { display: flex; align-items: center; justify-content: center; gap: .8rem; min-height: 4rem; color: var(--brand-strong); font-size: .82rem; font-weight: 700; }
.migration-rail i { font-size: 1.5rem; font-style: normal; transform: rotate(90deg); }
.pain-strip { padding: 2rem; border: 1px solid var(--border) !important; background: var(--brand-soft); color: var(--text-primary); }
.pain-strip h2 { max-width: 800px; margin-top: 0; }
.pain-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.pain-grid article { padding: 1rem; border: 1px solid var(--border); border-radius: 10px; background: white; }
.pain-grid strong { color: var(--brand-strong); }
.two-column-section, .available-record-section, .browse-export-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2.5rem; align-items: start; padding: 2rem; }
.checklist { display: grid; gap: .85rem; margin: 0; padding: 0; list-style: none; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; padding: 1rem; border: 1px solid var(--border); border-radius: 10px; }
.checklist li > span { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--brand); color: var(--text-on-brand); font-weight: 800; }
.checklist p { margin: .25rem 0 0; }
.how-section { padding: 2rem; }
.numbered-flow { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.numbered-flow > div { padding: 1.25rem; border-top: 3px solid var(--uc-accent); background: var(--uc-soft); }
.numbered-flow b { display: block; margin-bottom: 1rem; color: var(--uc-accent); font-size: 1.5rem; }
.numbered-flow p { margin-bottom: 0; }
.boundary-note { margin: 1.25rem 0 0; padding: 1rem; border-left: 4px solid #d08a00; background: #fff8e6; }
.integration-strip { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.6rem 2rem; }
.integration-strip h2 { margin: .2rem 0 0; }
.integration-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
.integration-pills a { padding: .55rem .8rem; border: 1px solid #aebfd5; border-radius: 999px; text-decoration: none; font-weight: 700; }
.faq-section { padding: 2rem; }
.faq-section details { margin: 0; border-top: 1px solid #d8e1ec; padding: 1rem 0; }
.faq-section details:last-child { border-bottom: 1px solid #d8e1ec; }
.faq-section summary { font-size: 1.05rem; }
.feature-device-history-callout, .homepage-device-history-callout { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.5rem 1.75rem; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(135deg, var(--surface-panel), var(--brand-soft)); }
.feature-device-history-callout h2, .homepage-device-history-callout h2 { margin: .2rem 0 .45rem; }
.feature-device-history-callout p:last-child, .homepage-device-history-callout p:last-child { margin-bottom: 0; }
.device-history-feature-page { --uc-accent: var(--brand); --uc-soft: var(--brand-soft); }
.device-history-marketing-demo { display: grid; gap: 1.1rem; padding: clamp(1.2rem, 3vw, 2rem); background: var(--surface-subtle); }
.device-history-demo-heading { max-width: 760px; }
.device-history-demo-heading h2 { margin: .2rem 0 .5rem; }
.marketing-device-window { padding: 1rem; border: 1px solid #cdd8e5; border-radius: 13px; background: white; box-shadow: 0 14px 32px rgba(22, 47, 82, .1); }
.marketing-device-window > header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: .9rem; border-bottom: 1px solid #dce3ec; }
.marketing-device-window > header div { display: grid; gap: .12rem; }
.marketing-device-window > header small, .marketing-device-window > header span { color: var(--text-secondary); }
.marketing-device-window > header b { padding: .2rem .55rem; border-radius: 999px; background: #e2f5ec; color: #176b49; font-size: .78rem; }
.marketing-device-filters { display: flex; flex-wrap: wrap; gap: .4rem; padding: 1rem 0; }
.marketing-device-filters span { padding: .35rem .6rem; border: 1px solid #c7d2df; border-radius: 7px; background: var(--surface-subtle); font-size: .78rem; }
.marketing-device-filters .selected { border-color: var(--brand-strong); background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; box-shadow: inset 0 0 0 1px var(--brand); }
.marketing-view-label { margin: .25rem 0 0; color: var(--text-secondary); font-size: .76rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.marketing-device-timeline { position: relative; height: 190px; overflow: hidden; }
.marketing-timeline-line { position: absolute; left: 5%; right: 5%; top: 122px; height: 4px; border-radius: 4px; background: #66778d; }
.marketing-event { position: absolute; left: var(--event-position); top: 35px; width: 145px; transform: translateX(-50%); text-align: center; color: #28394e; }
.marketing-event span { display: block; min-height: 38px; font-size: .8rem; font-weight: 700; }
.marketing-event::after { content: ""; position: absolute; left: calc(50% - 1px); top: 44px; width: 2px; height: 39px; background: #a3afbd; }
.marketing-event > i { position: absolute; z-index: 1; left: calc(50% - 7px); top: 80px; width: 14px; height: 14px; border: 3px solid white; border-radius: 50%; background: var(--event-color); box-shadow: 0 0 0 2px var(--event-color); }
.marketing-event time { position: absolute; top: 108px; left: 0; right: 0; font-size: .74rem; color: var(--text-secondary); }
.marketing-expanded-view { display: grid; gap: .55rem; margin: 0 0 1rem; padding: .9rem; border: 1px solid #dce3ec; border-radius: 10px; background: var(--surface-subtle); }
.marketing-expanded-view .marketing-view-label { margin: 0 0 .15rem; }
.marketing-lane { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: .75rem; min-width: 0; }
.marketing-lane strong { font-size: .75rem; }
.marketing-lane span { position: relative; height: 18px; }
.marketing-lane span::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: #9ba9ba; }
.marketing-lane i { position: absolute; z-index: 1; left: var(--event-position); top: 2px; width: 12px; height: 12px; transform: translateX(-50%); border: 2px solid white; border-radius: 50%; background: var(--event-color); box-shadow: 0 0 0 1px var(--event-color); }
.marketing-device-window > footer { display: flex; flex-wrap: wrap; gap: .8rem; padding-top: .7rem; border-top: 1px solid #dce3ec; color: #596a80; font-size: .76rem; }
.marketing-device-window > footer span { display: inline-flex; align-items: center; gap: .3rem; }
.marketing-device-window > footer i { width: .65rem; height: .65rem; border-radius: 50%; background: var(--event-color); }
.event-software { --event-color: #16856b; }
.event-hardware { --event-color: #c87900; }
.event-network { --event-color: #1672b8; }
.event-os { --event-color: #b14878; }
.device-history-boundaries { padding: 1.75rem; }
.device-history-related { padding: 1.5rem 2rem; }
.what-changed-flow { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.deleted-history-page { --uc-accent: #c5362b; --uc-soft: #fff0ef; }
.deleted-history-illustration { background: radial-gradient(circle at 90% 15%,#f8d7d3 0,transparent 32%),white; }
.record-window { overflow: hidden; border: 1px solid #d2dae5; border-radius: 14px; background: white; box-shadow: 0 24px 60px rgba(23,45,78,.18); }
.record-window header { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; padding: 1.1rem; background: var(--surface-subtle); color: var(--text-primary); }
.record-window header small, .record-window header strong { display: block; }
.device-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 8px; background: #e6edf7; }
.deleted-badge { align-self: start; padding: .3rem .55rem; border-radius: 999px; background: #ffe0dd; color: #a72e25; font-size: .72rem; font-weight: 800; }
.record-window dl { margin: 0; padding: 1rem 1.2rem; }
.record-window dl div { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid #e4e9f0; }
.record-window dt { color: #657286; }
.record-window dd { margin: 0; font-weight: 650; }
.record-window footer { display: flex; gap: .6rem; padding: .9rem 1.1rem; background: var(--surface-subtle); }
.record-window footer span { padding: .35rem .5rem; border: 1px solid #b9c7d9; border-radius: 5px; color: var(--brand-strong); font-size: .74rem; font-weight: 700; }
.record-timeline { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 1rem; padding: 1.6rem; }
.timeline-event { display: flex; gap: .75rem; align-items: center; }
.timeline-event b { display: grid; place-items: center; flex: 0 0 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--brand); color: var(--text-on-brand); }
.timeline-event.removed b { background: #c5362b; }.timeline-event.retained b { background: #16854c; }
.timeline-event span { display: block; margin-top: .2rem; color: #657286; font-size: .83rem; }
.timeline-line { width: 2rem; height: 2px; background: #aebdd0; }
.record-field-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .8rem; }
.record-field-grid article { padding: 1rem; border: 1px solid #d8e0eb; border-radius: 10px; }
.record-field-grid span, .record-field-grid strong { display: block; }.record-field-grid span { margin-bottom: .35rem; color: #c5362b; font-size: .75rem; font-weight: 800; text-transform: uppercase; }

.platform-outages-page { --uc-accent: #087c75; --uc-soft: #e6f6f4; }
.outage-illustration { background: linear-gradient(145deg,#f8fbff 0%,#eef8f7 100%); }
.control-diagram { display: grid; grid-template-columns: 1fr auto 1.1fr; align-items: center; gap: .9rem; padding: 1.25rem; border-radius: 18px; background: var(--charcoal); color: white; box-shadow: 0 25px 60px rgba(14,30,52,.24); }
.control-diagram .mockup-label { grid-column: 1 / -1; color: #aebdd0; }
.control-source, .control-vault { padding: 1rem; border: 1px solid #496078; border-radius: 10px; background: #22344e; }
.control-source span, .control-source small, .control-vault span { display: block; color: #b9c8da; font-size: .75rem; }.control-source strong,.control-vault strong { display: block; margin: .25rem 0; }
.control-vault { border-color: #49b7ad; background: #173d42; }
.control-vault div { display: flex; gap: .3rem; margin-top: .65rem; }.control-vault i { width: 1.4rem; height: .35rem; border-radius: 999px; background: #54c7bc; }
.flow-arrow { color: #54c7bc; font-size: 1.7rem; }
.control-outcomes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; }
.control-outcomes span { padding: .55rem; border-radius: 7px; background: #0f1c2e; color: #cbd7e6; text-align: center; font-size: .78rem; }
.control-principles { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; padding: 0; border: 0; background: transparent; }
.control-principles article { padding: 1.4rem; border: 1px solid #d4dfe9; border-radius: 14px; background: white; }
.control-principles span { color: #087c75; font-weight: 850; }.control-principles h2 { font-size: 1.2rem; }
.use-case-flip-front small { display: block; margin-top: auto; color: #68768a; font-size: .76rem; font-weight: 650; }
.use-case-flip-back strong { display: block; color: #087c75; font-size: 1.05rem; }
.use-case-flip-back p { margin: .75rem 0 0; line-height: 1.6; }
.use-case-flip-grid.is-enhanced .use-case-flip-card { min-height: 15rem; padding: 0; border: 0; background: transparent; perspective: 1100px; cursor: pointer; }
.use-case-flip-grid.is-enhanced .use-case-flip-inner { position: relative; width: 100%; height: 100%; min-height: 15rem; transform-style: preserve-3d; transition: transform 480ms ease; }
.use-case-flip-grid.is-enhanced .use-case-flip-face { position: absolute; inset: 0; box-sizing: border-box; display: flex; flex-direction: column; padding: 1.4rem; border: 1px solid #d4dfe9; border-radius: 14px; background: white; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 10px 28px rgba(23,45,78,.08); }
.use-case-flip-grid.is-enhanced .use-case-flip-front { justify-content: flex-start; background: linear-gradient(145deg,var(--surface-panel),#eef8f7); }
.use-case-flip-grid.is-enhanced .use-case-flip-front h2 { max-width: 13rem; margin: 1.2rem 0; font-size: 1.45rem; line-height: 1.15; }
.use-case-flip-grid.is-enhanced .use-case-flip-back { justify-content: center; transform: rotateY(180deg); border-color: #8ec9c3; background: linear-gradient(145deg,#eefaf8,#dff3f0); }
.use-case-flip-grid.is-enhanced .use-case-flip-card.is-flipped .use-case-flip-inner { transform: rotateY(180deg); }
.use-case-flip-grid.is-enhanced .use-case-flip-card:focus-visible { outline: 3px solid #087c75; outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .use-case-flip-grid.is-enhanced .use-case-flip-card:not(.is-touch-interaction):hover .use-case-flip-inner { transform: rotateY(180deg); }
}
.mini-interface { border: 1px solid #cad6e4; border-radius: 12px; padding: 1rem; background: var(--surface-panel); }
.mini-interface nav { display: flex; gap: .8rem; padding-bottom: .8rem; border-bottom: 1px solid #d5deea; }.mini-interface nav span { color: #68768a; font-size: .8rem; font-weight: 700; }.mini-interface nav .active { color: var(--brand-strong); }
.snapshot-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid #dfe6ef; }.snapshot-row small { display: block; margin-top: .2rem; color: var(--text-secondary); }.snapshot-row b { color: var(--brand-strong); font-size: .8rem; }
.outage-page .hero-copy h1 strong { color: #087c75; }
.outage-evidence { display: grid; grid-template-columns: minmax(240px,.7fr) minmax(0,1.3fr); gap: 2rem; padding: 2rem; }
.evidence-heading h2 { margin-top: .25rem; }
.evidence-grid { display: grid; gap: .8rem; }
.evidence-grid article { padding: 1rem; border: 1px solid var(--border); border-radius: 10px; background: #f8fbff; }
.evidence-grid span { color: #087c75; font-size: .78rem; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.evidence-grid p { margin: .5rem 0; }
.evidence-grid a { font-weight: 700; }
.related-use-cases { padding: 2rem; }
.related-use-cases h2 { margin-top: .25rem; }

html[data-theme="dark"] .landing-signup, html[data-theme="dark"] .numbered-flow > div, html[data-theme="dark"] .boundary-note { background: var(--surface-raised); border-color: var(--border-strong); }
html[data-theme="dark"] .feature-device-history-callout, html[data-theme="dark"] .homepage-device-history-callout { border-color: var(--border-strong); background: linear-gradient(135deg, var(--charcoal), #2b3139); }
html[data-theme="dark"] .device-history-marketing-demo { background: var(--surface-page); }
html[data-theme="dark"] .marketing-device-window { border-color: var(--border); background: var(--surface-panel); box-shadow: 0 14px 32px rgba(0, 0, 0, .25); }
html[data-theme="dark"] .marketing-device-window > header, html[data-theme="dark"] .marketing-device-window > footer { border-color: var(--border); }
html[data-theme="dark"] .marketing-device-window > header small, html[data-theme="dark"] .marketing-device-window > header span, html[data-theme="dark"] .marketing-event time, html[data-theme="dark"] .marketing-device-window > footer { color: var(--text-secondary); }
html[data-theme="dark"] .marketing-device-filters span { border-color: var(--border-strong); background: var(--surface-raised); }
html[data-theme="dark"] .marketing-device-filters .selected { border-color: #85BB65; background: var(--brand-soft); color: var(--link-color); }
html[data-theme="dark"] .marketing-event { color: #dce6f3; }
html[data-theme="dark"] .marketing-expanded-view { border-color: var(--border); background: var(--surface-raised); }
html[data-theme="dark"] .marketing-lane i { border-color: var(--surface-raised); }
html[data-theme="dark"] .email-signup-form input { background: var(--surface-page); color: var(--text-primary); border-color: #53657d; }
html[data-theme="dark"] .pain-strip { border: 0 !important; background: var(--charcoal); color: white; }
html[data-theme="dark"] .pain-grid article { border-color: var(--border); background: var(--surface-panel); }
html[data-theme="dark"] .pain-grid strong { color: #ACD493; }
html[data-theme="dark"] .migration-map, html[data-theme="dark"] .deleted-history-illustration, html[data-theme="dark"] .outage-illustration { background: linear-gradient(145deg, var(--surface-panel), var(--surface-page)); border-color: var(--border); }
html[data-theme="dark"] .provider-node, html[data-theme="dark"] .backup-node, html[data-theme="dark"] .record-window, html[data-theme="dark"] .control-principles article { background: var(--surface-panel); border-color: var(--border-strong); }
html[data-theme="dark"] .use-case-flip-grid.is-enhanced .use-case-flip-face { background: var(--surface-panel); border-color: var(--border-strong); box-shadow: 0 12px 30px rgba(0,0,0,.24); }
html[data-theme="dark"] .use-case-flip-grid.is-enhanced .use-case-flip-front { background: linear-gradient(145deg,#132235,#102a2d); }
html[data-theme="dark"] .use-case-flip-grid.is-enhanced .use-case-flip-back { background: linear-gradient(145deg,#123337,#162a3c); border-color: #397a75; }
html[data-theme="dark"] .use-case-flip-front small { color: #aebdd0; }
html[data-theme="dark"] .record-window header, html[data-theme="dark"] .record-window footer, html[data-theme="dark"] .mini-interface { background: var(--surface-panel); color: var(--text-primary); border-color: var(--border-strong); }
html[data-theme="dark"] .record-field-grid article, html[data-theme="dark"] .checklist li { border-color: var(--border-strong); }
html[data-theme="dark"] .timeline-event span { color: #aab8ca; }
html[data-theme="dark"] .outage-page .hero-copy h1 strong, html[data-theme="dark"] .evidence-grid span { color: #65cfc5; }
html[data-theme="dark"] .evidence-grid article { background: var(--surface-panel); border-color: var(--border-strong); }

@media (max-width: 900px) {
  .use-case-hero, .two-column-section, .available-record-section, .browse-export-panel, .outage-evidence { grid-template-columns: 1fr; }
  .pain-grid, .numbered-flow, .what-changed-flow, .control-principles { grid-template-columns: 1fr; }
  .landing-signup { grid-template-columns: 1fr; }
  .integration-strip, .feature-device-history-callout, .homepage-device-history-callout { align-items: flex-start; flex-direction: column; }
  .integration-pills { justify-content: flex-start; }
  .record-timeline { grid-template-columns: 1fr; }
  .timeline-line { width: 2px; height: 1.4rem; margin-left: 1rem; }
}
@media (max-width: 560px) {
  .use-case-hero { padding: 1.25rem; }
  .hero-copy h1 { font-size: clamp(2.15rem, 12vw, 2.55rem); }
  .use-case-illustration { padding: .8rem; }
  .email-signup-form { grid-template-columns: 1fr; }
  .email-signup-form button { width: 100%; }
  .record-field-grid, .control-outcomes { grid-template-columns: 1fr; }
  .control-diagram { grid-template-columns: 1fr; }.flow-arrow { transform: rotate(90deg); text-align: center; }
  .record-window header { grid-template-columns: auto minmax(0, 1fr); }
  .record-window header .deleted-badge { grid-column: 1 / -1; justify-self: start; }
  .record-window dl div { grid-template-columns: 1fr; gap: .25rem; }
  .record-window footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .use-case-flip-grid.is-enhanced .use-case-flip-inner { transition: none; }
}
@media (max-width: 560px) {
  .public-footer { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .brand-logo .brand-logo-text { display: none; }
  .public-shell .brand-logo .brand-logo-text { display: block; }
  .public-header .integrations-dropdown-menu { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-dropdown-toggle > span { transition: none; }
}

html[data-theme="dark"] {
  color-scheme: dark;
  color: var(--text-primary);
  background: var(--surface-page);
  --brand: #85BB65;
  --brand-hover: #78AD58;
  --brand-active: #ACD493;
  --brand-strong: #85BB65;
  --brand-soft: #263321;
  --brand-soft-hover: #4a321f;
  --surface-page: #15191f;
  --surface-panel: #20252d;
  --surface-subtle: #282e37;
  --surface-raised: #252b34;
  --surface-selected: #263321;
  --text-primary: #f3f4f6;
  --text-secondary: #b4bdc9;
  --text-on-brand: #20252d;
  --text-inverse: #ffffff;
  --border: #3e4651;
  --border-strong: #66717e;
  --link-color: #85BB65;
  --link-hover-color: #ACD493;
  --link-active-color: #ffd6aa;
  --focus-ring-color: #85BB65;
  --success: #67d49a;
  --warning: #efc15e;
  --danger: #ff8179;
  --info: #6fc4e8;
  --code-bg: #101318;
  --code-text: #f3f4f6;
  --shadow-brand: rgba(133, 187, 101, .24);
}
html[data-theme="dark"] header { background: var(--charcoal-deep); border-bottom: 1px solid var(--border); }
html[data-theme="dark"] section,
html[data-theme="dark"] aside,
html[data-theme="dark"] .change-filters,
html[data-theme="dark"] .summary-card,
html[data-theme="dark"] .tab-panel,
html[data-theme="dark"] table { background: var(--surface-panel); border-color: var(--border); }
html[data-theme="dark"] .summary-card-link:hover,
html[data-theme="dark"] .summary-card-link:focus-visible { border-color: #85BB65; box-shadow: 0 4px 12px rgba(109, 168, 255, .18); }
html[data-theme="dark"] .notification-item { background: #3b2023; border-color: #6b3539; }
html[data-theme="dark"] .active-backup { background: var(--surface-subtle); }
html[data-theme="dark"] th { background: var(--surface-subtle); }
html[data-theme="dark"] th,
html[data-theme="dark"] td { border-bottom-color: var(--border); }
html[data-theme="dark"] .secondary { background: var(--surface-panel); color: #85BB65; border-color: #85BB65; }
html[data-theme="dark"] .text-button { color: #85BB65; }
html[data-theme="dark"] .change-detail-row > td { background: var(--surface-page); }
html[data-theme="dark"] .field-change-table .old-value { background: #402328; }
html[data-theme="dark"] .field-change-table .new-value { background: #183728; }
html[data-theme="dark"] .change-value-list div + div { border-top-color: var(--border); }
html[data-theme="dark"] .summary-card span,
html[data-theme="dark"] .details-grid dt,
html[data-theme="dark"] .technical-details summary,
html[data-theme="dark"] .muted,
html[data-theme="dark"] small { color: var(--text-secondary); }
html[data-theme="dark"] .details-grid div,
html[data-theme="dark"] .last-backup { background: var(--surface-subtle); }
html[data-theme="dark"] .source-option-detail { background: var(--surface-page); border-color: var(--border); }
html[data-theme="dark"] .tabs { border-bottom-color: var(--border-strong); }
html[data-theme="dark"] .tab { color: var(--text-secondary); }
html[data-theme="dark"] .tab.active { background: var(--surface-panel); color: #85BB65; border-color: var(--border-strong); border-bottom-color: var(--surface-panel); }
html[data-theme="dark"] .badge,
html[data-theme="dark"] .resource-nav a,
html[data-theme="dark"] .resource-nav .disabled { background: var(--surface-subtle); color: var(--text-primary); }
html[data-theme="dark"] .resource-nav a.active { background: var(--brand-hover); color: white; }
html[data-theme="dark"] input[type="search"] { background: var(--surface-page); color: var(--text-primary); border-color: var(--border-strong); }
html[data-theme="dark"] .auth-form input { background: var(--surface-page); color: var(--text-primary); border-color: var(--border-strong); }
html[data-theme="dark"] .change-filters select { background: var(--surface-page); color: var(--text-primary); border-color: var(--border-strong); }
html[data-theme="dark"] .change-filters label { color: var(--text-secondary); }
html[data-theme="dark"] .auth-form label,
html[data-theme="dark"] .connection-status dt { color: var(--text-secondary); }
html[data-theme="dark"] .connection-action-row { background: var(--surface-page); border-color: var(--border); }
html[data-theme="dark"] .empty-state { background: #3b3218; }
html[data-theme="dark"] .notice { background: #173353; }
html[data-theme="dark"] .notice.error { background: #4a2428; }
html[data-theme="dark"] .notice.warning { background: #443819; }
html[data-theme="dark"] .status { background: #173c2a; color: #78daa5; }
html[data-theme="dark"] .status.demo { background: #443819; color: #f0cf6b; }
html[data-theme="dark"] .added,
html[data-theme="dark"] .diff-add { color: #62d596; }
html[data-theme="dark"] .changed { color: #f0bd55; }
html[data-theme="dark"] .deleted,
html[data-theme="dark"] .diff-remove,
html[data-theme="dark"] .warning-text,
html[data-theme="dark"] .removed { color: #ff8a82; }
html[data-theme="dark"] .change-table .old-value { background: #402328; }
html[data-theme="dark"] .change-table .new-value { background: #183728; }
html[data-theme="dark"] .chart-axis { stroke: #66768d; }
html[data-theme="dark"] .chart-point { fill: var(--surface-panel); stroke: #85BB65; }
html[data-theme="dark"] .chart-line { stroke: #85BB65; }
html[data-theme="dark"] .chart-label { fill: var(--text-secondary); }
html[data-theme="dark"] .capacity-track { stroke: var(--surface-subtle); }
html[data-theme="dark"] .capacity-total-label { fill: var(--text-secondary); }
html[data-theme="dark"] .capacity-total-value { fill: var(--text-primary); }
html[data-theme="dark"] .primary-link { color: var(--text-on-brand); }
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .breadcrumbs a { color: #85BB65; }
html[data-theme="dark"] .homepage-pain-points li::before { background: #85BB65; box-shadow: 0 0 0 4px rgba(109, 168, 255, .16); }
html[data-theme="dark"] .homepage-pain-points a:hover { color: #ACD493; }
html[data-theme="dark"] .homepage-signup-panel { border-color: #4c535d; background: linear-gradient(145deg, #2d333c, #20252d); }
html[data-theme="dark"] .homepage-signup-panel .landing-signup { background: transparent; border: 0; }
html[data-theme="dark"] .homepage-signup-panel .email-signup-form input { background: #ffffff; color: #20252d; border-color: #ffffff; }
html[data-theme="dark"] .homepage-hero { border: 0; background: transparent; }
html[data-theme="dark"] .homepage-hero .homepage-hero-signup-panel { border-color: var(--border); background: transparent; color: var(--text-primary); }
html[data-theme="dark"] .homepage-hero-signup-panel .email-signup-form input { border-color: #55606d; background: #12171d; color: #f6f7f9; }
html[data-theme="dark"] .homepage-hero-signup-panel .email-signup-form input::placeholder { color: #9da8b5; }
html[data-theme="light"] .homepage-hero-artwork img { border: 0; border-radius: 0; background: transparent; box-shadow: none; filter: none; }
html[data-theme="dark"] .homepage-product-screenshot { border-color: var(--border-strong); box-shadow: 0 18px 44px rgba(0, 0, 0, .32); }
html[data-theme="dark"] .homepage-closing-offer { background: linear-gradient(135deg, var(--surface-panel), var(--surface-page)); }
html[data-theme="dark"] .homepage-closing-offer .homepage-signup-panel { border-color: #c96d1b; background: linear-gradient(145deg, #242a32, #171b21); }
html[data-theme="dark"] .homepage-closing-offer .email-signup-form input { border-color: #55606d; background: #12171d; color: #f6f7f9; }
html[data-theme="dark"] .homepage-closing-offer .email-signup-form input::placeholder { color: #9da8b5; }
html[data-theme="dark"] .homepage-integration-banner { --ticker-surface: var(--surface-panel); --ticker-surface-hover: var(--surface-raised); --ticker-border: var(--border); --ticker-text: var(--text-primary); --ticker-link: var(--link-color); --ticker-link-hover: var(--link-hover-color); --ticker-badge-border: var(--border-strong); --ticker-badge-text: #ACD493; border-color: var(--border); box-shadow: 0 8px 20px rgba(0, 0, 0, .22); }
html[data-theme="dark"] .feature-card-hint { color: var(--text-secondary); }
html[data-theme="dark"] .vendor-icon-frame { border-color: var(--border-strong); background: var(--surface-panel); color: var(--border-strong); }
html[data-theme="dark"] .feature-card { background: var(--surface-panel); border-color: var(--border); }
html[data-theme="dark"] .feature-card-back { border-color: var(--border); }
html[data-theme="dark"] .feature-card-grid.is-enhanced .feature-card { background: transparent; }
html[data-theme="dark"] .feature-card-grid.is-enhanced .feature-card-face { border-color: var(--border-strong); }
html[data-theme="dark"] .feature-card-grid.is-enhanced .feature-card-front { background: linear-gradient(160deg, var(--surface-panel) 0%, var(--surface-page) 100%); }
html[data-theme="dark"] .feature-card-grid.is-enhanced .feature-card-back { border-color: var(--border-strong); background: linear-gradient(160deg, var(--surface-raised) 0%, var(--surface-panel) 100%); }
html[data-theme="dark"] .feature-card-grid.is-enhanced .feature-card:focus-visible { outline-color: #ACD493; }
html[data-theme="dark"] .collection-list article,
html[data-theme="dark"] .screenshot-placeholder { background: var(--surface-page); border-color: var(--border-strong); color: var(--text-primary); }
html[data-theme="dark"] .marketing-screenshot img { border-color: var(--border-strong); box-shadow: 0 18px 44px rgba(0, 0, 0, .32); }
html[data-theme="dark"] .screenshot-showcase { background: linear-gradient(145deg, var(--surface-panel), var(--surface-page)); border-color: var(--border-strong); box-shadow: 0 12px 32px rgba(0, 0, 0, .22); }
html[data-theme="dark"] .screenshot-indicator { border-color: #ACD493; }
html[data-theme="dark"] .screenshot-indicator.is-active { background: #ACD493; }
html[data-theme="dark"] .marketing-screenshot button:focus-visible { outline-color: #ACD493; }
html[data-theme="dark"] .site-footer nav { border-top-color: var(--border); }

@media (max-width: 700px) { .snapshot-layout { grid-template-columns: 1fr; } .collection-sidebar { position: static; } .resource-nav { display: flex; overflow-x: auto; padding-bottom: .15rem; } .resource-nav a, .resource-nav .disabled { flex: 0 0 auto; min-width: 9rem; } }
@media (max-width: 900px) { .feature-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) and (min-width: 801px) {
  .homepage-hero-stage { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  .homepage-hero .homepage-hero-copy h1 { font-size: clamp(2.7rem, 4.8vw, 3.3rem); }
}
@media (max-width: 950px) {
  .homepage-hero-stage { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-bottom: 0; }
  .homepage-hero .homepage-hero-copy h1 { max-width: 13em; }
  .homepage-hero-artwork { position: relative; z-index: 0; grid-column: 1; inset: auto; width: calc(100% + 2 * var(--homepage-gutter)); margin: 1.5rem calc(-1 * var(--homepage-gutter)) 0; aspect-ratio: 16 / 9; }
  .homepage-hero-artwork-viewport { -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 90%, transparent); mask-image: linear-gradient(to right, transparent, #000 15%, #000 90%, transparent); }
}
@media (max-width: 800px) { .marketing-grid, .collection-list, .workflow-step, .homepage-hero { grid-template-columns: 1fr; } .marketing-hero h1 { font-size: 2.2rem; } .homepage-hero .homepage-pain-column h1 { font-size: clamp(2.4rem, 11vw, 3.25rem); } .homepage-integration-banner { grid-template-columns: auto minmax(0, 1fr); } .integration-ticker-label { padding-inline: .75rem; } .integration-ticker-view-all { display: none; } }
@media (max-width: 800px) {
  .homepage-hero { padding-block: .25rem 0; }
  .homepage-hero .homepage-hero-copy h1 { max-width: 13em; font-size: clamp(2.45rem, 8vw, 3.25rem); line-height: 1.03; }
  .homepage-hero .homepage-hero-signup-panel { grid-template-columns: 1fr; gap: 1rem; }
  .homepage-hero-signup-panel .landing-signup > div,
  .homepage-hero-signup-panel .email-signup-form,
  .homepage-hero .homepage-hero-signup-panel .homepage-signup-note { grid-column: 1; grid-row: auto; }
  .homepage-product-proof-heading, .homepage-section-heading { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .homepage-workflow-steps, .homepage-closing-offer { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .homepage-hero-stage { padding-bottom: 2rem; }
  .homepage-hero-artwork { display: none; }
  .homepage-hero .homepage-pain-points { grid-template-columns: 1fr 1fr; row-gap: .9rem; }
  .homepage-hero .homepage-pain-points li:nth-child(2) { border-right: 0; }
  .homepage-hero .homepage-pain-points li { padding: .25rem .75rem; }
  .homepage-hero .homepage-pain-points li:nth-child(odd) { padding-left: 0; }
  .homepage-hero .homepage-use-case-link { grid-template-columns: 1.5rem minmax(0, 1fr); gap: .65rem; }
  .homepage-use-case-link > .public-line-icon { width: 1.5rem; height: 1.5rem; }
}
@media (max-width: 560px) {
  .homepage-hero .homepage-hero-copy h1 { font-size: clamp(2.25rem, 11vw, 2.85rem); }
  .homepage-hero-signup-panel .email-signup-form { grid-template-columns: 1fr; }
  .homepage-hero-signup-panel .email-signup-form label,
  .homepage-hero-signup-panel .email-signup-form input,
  .homepage-hero-signup-panel .email-signup-form button,
  .homepage-hero-signup-panel .form-status { grid-column: 1; width: 100%; min-width: 0; }
  .homepage-hero .homepage-pain-points li { white-space: normal; }
  .homepage-product-proof { padding: 1rem; }
  .homepage-product-screenshot { overflow-x: auto; }
  .homepage-product-screenshot img { width: 760px; max-width: none; }
  .homepage-how-it-works, .homepage-workflow-proof, .homepage-closing-offer { padding: 1rem; }
  .homepage-workflow-carousel .screenshot-viewport { aspect-ratio: 4 / 3; }
  .homepage-workflow-carousel .screenshot-slide figcaption { padding: .65rem .75rem; }
}
@media (max-width: 600px) { .integration-request-cta { align-items: stretch; flex-direction: column; gap: 1rem; padding: 1.2rem; } .integration-request-cta button { width: 100%; } .integration-request-dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); } .integration-request-dialog-panel { padding: 1.1rem; } }
@media (max-width: 600px) { .feature-card-grid { grid-template-columns: 1fr; } }
@media (max-width: 400px) {
  .public-header-inner { gap: .5rem; }
  .public-header .brand-logo { gap: .4rem; }
  .public-header .brand-logo-text { font-size: 1.05rem; }
  .public-header .brand-logo-mark { width: 28px; height: 32px; flex-basis: 28px; }
}
@media (max-width: 360px) {
  .homepage-hero .homepage-pain-points { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .homepage-hero .homepage-pain-points li { padding: 0; border-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .integration-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .integration-marquee-track { width: auto; animation: none; }
  .integration-marquee-group { flex-wrap: nowrap; }
  .integration-marquee-group[aria-hidden="true"] { display: none; }
  .screenshot-carousel.is-enhanced .screenshot-slide { transition: none; }
  .feature-card-grid.is-enhanced .feature-card-inner { transform: none !important; transition: none; }
  .feature-card-grid.is-enhanced .feature-card-back { transform: none; visibility: hidden; }
  .feature-card-grid.is-enhanced .feature-card.is-flipped .feature-card-front { visibility: hidden; }
  .feature-card-grid.is-enhanced .feature-card.is-flipped .feature-card-back { visibility: visible; }
}
@media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine) {
  .feature-card-grid.is-enhanced .feature-card:not(.is-touch-interaction):hover .feature-card-front { visibility: hidden; }
  .feature-card-grid.is-enhanced .feature-card:not(.is-touch-interaction):hover .feature-card-back { visibility: visible; }
}
@media (max-width: 500px) { .header-actions > span { display: none; } .header-actions { gap: .65rem; } .header-nav { gap: .65rem; } .heading-row { align-items: flex-start; } .heading-actions { align-items: flex-end; flex-direction: column; } }

/* Integration settings: provider connection management. */
.settings-page { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 1.25rem; }
.settings-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.settings-heading h1 { margin: .1rem 0 .35rem; }
.settings-heading > div > p:last-child { margin: 0; }
.settings-eyebrow { margin: 0; color: var(--brand-strong); font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.settings-section { min-width: 0; padding: 1.4rem; border-radius: 12px; }
.settings-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.settings-section-heading h2, .security-settings-section h2 { margin: 0 0 .3rem; font-size: 1.15rem; }
.settings-section-heading p, .security-settings-section p { margin: 0; }
.settings-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.7rem; height: 1.7rem; padding: 0 .35rem; border-radius: 999px; background: #e8f0fc; color: var(--brand-strong); font-size: .8rem; font-weight: 750; }
.integration-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.integration-card { display: flex; min-width: 0; min-height: 15rem; flex-direction: column; padding: 1.15rem; border: 1px solid #d6deea; border-radius: 10px; background: var(--surface-page); box-shadow: 0 4px 14px rgba(31, 51, 78, .05); }
.integration-card-disabled { border-color: #cbd2dd; background: #f1f3f6; box-shadow: none; }
.integration-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.integration-card-summary { min-height: 0; gap: 1rem; }
.integration-summary-status { margin: 0; color: var(--text-secondary); font-size: .9rem; }
.integration-summary-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1rem; margin-top: auto; }
.integration-summary-meta { margin: 0; min-width: 0; }
.integration-summary-meta dt { color: var(--text-secondary); font-size: .8rem; }
.integration-summary-meta dd { margin: .25rem 0 0; font-size: .85rem; }
.integration-summary-footer .integration-primary-action { margin-left: auto; }
.integration-management { margin: 1.25rem 0; }
.integration-management .integration-summary-status:not(:empty) { margin-bottom: .65rem; }
.integration-management .integration-backup-reason { margin: .75rem 0 1rem; padding: .65rem .8rem; border-left: 3px solid var(--brand); border-radius: 0 6px 6px 0; background: var(--surface-subtle); color: var(--text-secondary); font-size: .875rem; line-height: 1.5; }
html[data-theme="dark"] .integration-management .integration-backup-reason { color: var(--text-secondary); }
.integration-management .integration-backup-form { margin-top: 1rem; }
.integration-management .integration-backup-form button { width: auto; min-height: 2.45rem; }
.integration-management .connection-status-actions { margin: 1.25rem 0 0; }
.integration-onedrive-send { margin: .9rem 0 1rem; }
.integration-onedrive-send p { margin: .5rem 0; }
.integration-onedrive-send small { display: block; margin-top: .5rem; }
.integration-card h3 { margin: 0; color: var(--text-primary); font-size: 1.12rem; }
.integration-display-name { margin: .2rem 0 0; color: var(--text-secondary); font-size: .85rem; }
.integration-status { flex: 0 0 auto; padding: .25rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 750; }
.integration-status-enabled { background: #d7f4e3; color: #146c3b; }
.integration-status-disabled { background: #e2e6ec; color: #566173; }
.integration-details { display: grid; gap: .65rem; margin: 1rem 0 1.15rem; }
.integration-details div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: .75rem; }
.integration-details dt { color: #667287; font-size: .8rem; }
.integration-details dd { margin: 0; overflow-wrap: anywhere; font-size: .9rem; font-weight: 600; }
.validation-validated { color: #146c3b; }
.validation-failed { color: #b42318; }
.integration-actions { display: grid; grid-template-columns: 1fr; align-items: start; gap: .75rem; margin-top: auto; }
.integration-primary-action { box-sizing: border-box; justify-self: start; text-align: center; white-space: nowrap; }
.integration-secondary-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.integration-secondary-actions form { margin: 0; }
.integration-secondary-actions .secondary { box-sizing: border-box; min-width: 0; min-height: 2.45rem; }
.integration-card-available { min-height: 8.5rem; justify-content: space-between; gap: 1rem; }
.integration-card-available p { margin: .35rem 0 0; }
.integration-card-available .integration-primary-action { align-self: flex-start; }
.integration-card-unavailable { min-height: 9.5rem; border-style: dashed; background: #f4f6f9; }
.integration-card-unavailable .integration-primary-action { cursor: not-allowed; }
.settings-section-compact { padding-bottom: 1.2rem; }
.planned-integration-list { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.planned-integration-list li { padding: .42rem .7rem; border: 1px solid #d6deea; border-radius: 999px; background: var(--surface-page); color: #526078; font-size: .83rem; }
.security-settings-section { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.secondary-link { padding: .6rem .85rem; border: 1px solid var(--brand); color: var(--brand-strong); white-space: nowrap; }

html[data-theme="dark"] .settings-eyebrow { color: #ACD493; }
html[data-theme="dark"] .settings-count { background: var(--brand-soft); color: #ACD493; }
html[data-theme="dark"] .integration-card { border-color: #3a485c; background: var(--surface-page); box-shadow: 0 6px 18px rgba(0, 0, 0, .16); }
html[data-theme="dark"] .integration-card-disabled { border-color: #344052; background: #121a26; box-shadow: none; opacity: .82; }
html[data-theme="dark"] .integration-card-unavailable { background: #121a26; }
html[data-theme="dark"] .integration-card h3 { color: var(--text-primary); }
html[data-theme="dark"] .integration-display-name,
html[data-theme="dark"] .integration-details dt { color: var(--text-secondary); }
html[data-theme="dark"] .integration-status-enabled { background: #173c2a; color: #78daa5; }
html[data-theme="dark"] .integration-status-disabled { background: #293342; color: var(--text-secondary); }
html[data-theme="dark"] .validation-validated { color: #78daa5; }
html[data-theme="dark"] .validation-failed { color: #ff8a82; }
html[data-theme="dark"] .planned-integration-list li { border-color: #3a485c; background: var(--surface-page); color: var(--text-secondary); }
html[data-theme="dark"] .secondary-link { border-color: #85BB65; color: #ACD493; }

@media (max-width: 760px) {
  .integration-card-grid { grid-template-columns: 1fr; }
  .settings-heading { align-items: flex-start; }
}
@media (max-width: 520px) {
  header { box-sizing: border-box; width: 100%; min-width: 0; align-items: stretch; flex-direction: column; overflow: hidden; }
  .header-actions { display: grid; grid-template-columns: repeat(2, max-content); width: 100%; min-width: 0; gap: .65rem; }
  .header-nav { box-sizing: border-box; grid-column: 1 / -1; width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; padding-bottom: .25rem; }
  main { box-sizing: border-box; width: 100%; min-width: 0; }
  .settings-page { gap: 1rem; }
  .settings-heading, .settings-section-heading, .security-settings-section { min-width: 0; flex-direction: column; }
  .settings-section { box-sizing: border-box; width: 100%; padding: 1rem; overflow: hidden; }
  .integration-card-grid, .integration-card-header, .integration-actions, .integration-secondary-actions { min-width: 0; }
  .integration-card { min-height: 0; padding: 1rem; }
  .integration-actions { grid-template-columns: 1fr; }
  .integration-secondary-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .integration-secondary-actions form { width: 100%; min-width: 0; }
  .integration-secondary-actions button { width: 100%; }
  .planned-integration-list { min-width: 0; }
  .secondary-link { white-space: normal; }
}

/* Documentation only: reading surfaces, hierarchy, and responsive navigation. */
.docs-shell { --doc-border: #d4dce7; --doc-muted: #526078; --doc-link: var(--brand-strong); --doc-panel: var(--surface-panel); --doc-tint: var(--brand-soft); }
html[data-theme="dark"] .docs-shell { --doc-border: var(--border); --doc-muted: #b0bdd0; --doc-link: #ACD493; --doc-panel: var(--surface-panel); --doc-tint: var(--brand-soft); }
.docs-shell main { max-width: 1120px; }
.docs-shell main a { color: var(--doc-link); text-underline-offset: .2em; }
.docs-shell .public-footer a:not(.footer-brand-link) { color: var(--doc-link); }
.docs-shell .public-footer { border-color: var(--doc-border); }
.docs-shell :is(a, summary, button, [tabindex="0"]):focus-visible { outline: 3px solid var(--doc-link); outline-offset: 4px; }
.docs-shell main :is(section, aside) { background: transparent; border: 0; border-radius: 0; padding: 0; }
.docs-shell main { line-height: 1.65; overflow-wrap: anywhere; }
.docs-shell main h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.16; letter-spacing: -.025em; margin: .5rem 0 1rem; }
.docs-shell main h2 { font-size: 1.5rem; line-height: 1.3; margin: 0 0 1rem; }
.docs-shell main h3 { font-size: 1.12rem; line-height: 1.45; margin: 1.5rem 0 .6rem; }
.docs-shell .breadcrumbs { font-size: .85rem; color: var(--doc-muted); margin-bottom: 1.75rem; }
.docs-shell .docs-introduction { max-width: 760px; margin-bottom: 2rem; }
.docs-shell .docs-introduction > p:last-child { font-size: 1.1rem; }
.docs-shell .docs-pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.docs-shell .docs-pillar { display: flex; flex-direction: column; padding: 1.25rem; border: 1px solid var(--doc-border); border-top: 3px solid var(--doc-link); border-radius: 8px; background: var(--doc-panel); text-decoration: none; }
.docs-shell .docs-pillar:hover { border-color: var(--doc-link); }
.docs-shell .docs-pillar h2 { font-size: 1.2rem; margin: 0; }
.docs-shell .docs-pillar p { color: var(--doc-muted); font-size: .93rem; }
.docs-shell .docs-pillar span { margin-top: auto; font-size: .88rem; font-weight: 650; }
.docs-shell .docs-topic-nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: 1.5rem 0 3rem; font-size: .85rem; }
.docs-shell .docs-topic { margin: 3rem 0; scroll-margin-top: 2rem; }
.docs-shell .docs-discovery { min-width: 0; margin: .65rem 0; padding: 1rem; border: 1px solid var(--doc-border); border-radius: 8px; background: var(--doc-panel); scroll-margin-top: 2rem; }
.docs-shell .docs-discovery summary { cursor: pointer; font-weight: 650; }
.docs-shell .docs-discovery summary span { color: var(--doc-muted); font-weight: 400; }
.docs-shell .docs-vendor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 1rem; align-items: start; }
.docs-compact-links { padding-left: 1.25rem; }
.docs-compact-links li + li { margin-top: .5rem; }
.integration-guide-discovery { margin-top: 1.25rem; }
.integration-guide-discovery summary { cursor: pointer; font-weight: 650; }
.integration-guide-discovery summary:focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 4px; }
.docs-shell .docs-guide-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.docs-shell .docs-guide-list > li { padding: 1rem 0; border-top: 1px solid var(--doc-border); margin: 0; }
.docs-shell .docs-guide-list h3 { margin: .25rem 0 .4rem; }
.docs-shell .docs-guide-list p { color: var(--doc-muted); margin: 0; font-size: .95rem; }
.docs-shell .docs-provider { color: var(--doc-muted); font-size: .8rem; font-weight: 650; }
.docs-shell .docs-platforms { border-block: 1px solid var(--doc-border); padding: 1.5rem 0; }
.docs-shell .docs-platforms h2 { font-size: 1.2rem; }
.docs-shell .docs-platforms p { margin: .5rem 0; color: var(--doc-muted); }
.docs-shell .docs-platforms ul { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; padding: 0; list-style: none; }
.docs-shell .doc-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(220px, 1fr); gap: 3.5rem; align-items: start; }
.docs-shell .doc-layout-short { grid-template-columns: minmax(0, 760px); }
.docs-shell .doc-page { min-width: 0; max-width: 760px; font-size: 1.05rem; }
.docs-shell .doc-description { color: var(--doc-muted); font-size: 1.15rem; }
.docs-shell .doc-meta { display: flex; flex-wrap: wrap; gap: .25rem; color: var(--doc-muted); font-size: .8rem; margin: 1rem 0 1.5rem; }
.docs-shell .doc-answer { background: var(--doc-tint); border-left: 4px solid var(--doc-link); padding: 1.1rem 1.35rem; margin: 1.5rem 0 2rem; }
.docs-shell .doc-answer strong { font-size: .85rem; color: var(--doc-link); }
.docs-shell .doc-answer p { margin: .4rem 0 0; }
.docs-shell .doc-page section { margin-top: 2.5rem; scroll-margin-top: 1.5rem; }
.docs-shell .doc-page p { margin-bottom: 1.1rem; }
.docs-shell .doc-page :is(ul, ol) { padding-left: 1.5rem; }
.docs-shell .doc-page li + li { margin-top: .65rem; }
.docs-shell .doc-page li::marker { color: var(--doc-muted); }
.docs-shell .doc-page ol li { padding-left: .3rem; }
.docs-shell .doc-page .docs-guide-list { grid-template-columns: 1fr; padding: 0; }
.docs-shell .doc-page .docs-guide-list li { margin-top: 0; }
.docs-shell .doc-toc-desktop { position: sticky; top: 1.5rem; border-left: 1px solid var(--doc-border); padding-left: 1.25rem; max-height: calc(100vh - 3rem); overflow-y: auto; font-size: .85rem; }
.docs-shell .doc-toc-desktop h2 { font-size: .95rem; }
.docs-shell :is(.doc-toc-desktop, .doc-toc-mobile) ul { list-style: none; padding: 0; margin: 0; }
.docs-shell :is(.doc-toc-desktop, .doc-toc-mobile) a { display: block; padding: .4rem .2rem; }
.docs-shell .doc-toc-mobile { display: none; }
.docs-shell .doc-table-scroll { overflow-x: auto; margin: 1.25rem 0; border: 1px solid var(--doc-border); border-radius: 6px; }
.docs-shell .doc-page table { margin: 0; width: 100%; border: 0; border-collapse: collapse; background: var(--doc-panel); font-size: .9rem; line-height: 1.5; }
.docs-shell .doc-page .doc-comparison-table { min-width: 64rem; }
.docs-shell .doc-comparison-table caption { padding: 1rem; text-align: left; font-weight: 600; color: var(--text-primary); background: var(--doc-panel); }
.docs-shell .doc-comparison-table th[scope="row"] { width: 15%; font-weight: 400; }
.docs-shell .doc-comparison-table td { width: 28.33%; }
.docs-shell .doc-comparison-table tr[id] { scroll-margin-top: 5rem; }
.docs-shell .doc-comparison-table tr:target { outline: 2px solid var(--doc-link); outline-offset: -2px; }
.docs-shell .doc-page :is(th, td) { text-align: left; vertical-align: top; padding: .85rem; min-width: 8rem; border-bottom: 1px solid var(--doc-border); }
.docs-shell .doc-page th { background: var(--doc-tint); }
.docs-shell .doc-page code { background: var(--doc-tint); border-radius: 3px; padding: .12em .25em; font-size: .9em; }
.docs-shell .doc-page pre { overflow-x: auto; padding: 1rem; border: 1px solid var(--doc-border); background: var(--doc-panel); color: inherit; line-height: 1.6; }
.docs-shell .doc-page pre code { padding: 0; background: transparent; white-space: pre; overflow-wrap: normal; }
.docs-shell .doc-page :is(blockquote, .doc-note) { margin: 1.5rem 0; padding: .8rem 1.2rem; border-left: 3px solid var(--doc-border); color: var(--doc-muted); background: var(--doc-panel); }
.docs-shell .doc-page :is(.doc-references, .doc-related, .doc-cta) { border-top: 1px solid var(--doc-border); padding-top: 1.5rem; margin-top: 2.5rem; }
.docs-shell .doc-references { font-size: .92rem; }
.docs-shell .doc-page .doc-cta { color: var(--doc-muted); font-size: .95rem; }
.docs-shell .doc-cta h2 { font-size: 1.1rem; }
@media (max-width: 1000px) {
  .docs-shell .docs-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-shell .doc-layout { gap: 2rem; }
}
@media (max-width: 800px) {
  .docs-shell .doc-layout { display: block; }
  .docs-shell .doc-page { max-width: 100%; }
  .docs-shell .doc-toc-desktop { display: none; }
  .docs-shell .doc-toc-mobile { display: block; border-block: 1px solid var(--doc-border); padding: .8rem 0; margin: 1.5rem 0; font-size: .95rem; }
  .docs-shell .doc-toc-mobile summary { padding: .25rem; }
  .docs-shell .doc-toc-mobile nav { padding-top: .75rem; }
}
@media (max-width: 560px) {
  .docs-shell .docs-pillars, .docs-shell .docs-guide-list { grid-template-columns: 1fr; }
  .docs-shell main { margin-top: 1.5rem; }
  .docs-shell .doc-page { font-size: 1rem; }
}

/* Dashboard: restrained color, clearer hierarchy, and screenshot-ready presentation. */
.dashboard-shell { background: #edf2f8; }
.dashboard-shell main { max-width: 1240px; }
.dashboard-page { font-family: "Segoe UI Variable", "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif; }
.dashboard-page > h1 { margin: 0 0 1rem; font-size: clamp(1.65rem, 2vw, 2rem); letter-spacing: -.025em; }
.dashboard-control-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 1rem; margin: 0 0 1.5rem; scroll-margin-top: 1rem; }
.dashboard-control-card { display: flex; min-width: 0; flex-direction: column; gap: .75rem; box-sizing: border-box; border: 1px solid var(--border); border-radius: 14px; background: var(--brand-soft); padding: 1rem 1.15rem; box-shadow: 0 8px 24px rgba(31, 51, 78, .065); }
.dashboard-control-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.dashboard-control-heading h2 { margin: 0; font-size: 1.1rem; }
.dashboard-control-heading p { margin: .2rem 0 0; overflow-wrap: anywhere; color: #5c6c82; font-size: .86rem; }
.dashboard-control-heading > a { flex: 0 0 auto; font-size: .84rem; }
.dashboard-backup-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
.dashboard-backup-facts small { display: block; margin-top: .2rem; color: var(--text-secondary); line-height: 1.35; }
.manual-backup-card .integration-backup-form { margin-top: auto; }
.dashboard-card-empty { margin: 0; color: #64748b; }
.dashboard-latest-run { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--border); padding-bottom: .7rem; }
.dashboard-latest-run > div { min-width: 0; }
.dashboard-latest-run span:first-child { display: block; color: #5c6c82; font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.dashboard-latest-run strong { display: block; margin-top: .2rem; font-size: .9rem; }
.dashboard-result { flex: 0 0 auto; padding: .25rem .55rem; border-radius: 999px; background: #d9e4f2; color: #41536b; font-size: .76rem; font-weight: 750; }
.dashboard-result-completed { background: #dcefe5; color: #17673e; }
.dashboard-result-partial { background: #fff0cf; color: #7b5200; }
.dashboard-result-failed { background: #f9dfdc; color: #992b24; }
.dashboard-history-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.dashboard-history-facts small { display: block; margin-top: .2rem; color: var(--text-secondary); font-size: .8rem; line-height: 1.35; }
.dashboard-live-job { min-block-size: 4.4rem; box-sizing: border-box; border: 1px solid var(--border); border-radius: 9px; background: rgba(255, 255, 255, .35); padding: .65rem .75rem; }
.dashboard-live-job.is-idle { color: #5c6c82; }
.dashboard-recovery-note { margin: 0; padding: .65rem .75rem; border-radius: 8px; background: rgba(208, 138, 0, .1); color: #704b08; font-size: .84rem; }
.dashboard-collection-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 1rem 0 1.5rem; }
.dashboard-page .collection-card { --status-color: #68778b; box-sizing: border-box; min-height: 8.5rem; border: 1px solid #aeb9c8; border-radius: 12px; background: rgba(104, 119, 139, .045); padding: 1rem; text-align: center; box-shadow: 0 6px 18px rgba(31, 51, 78, .055); }
.dashboard-page .collection-card-healthy { --status-color: #16854c; border-color: rgba(22, 133, 76, .42); background: rgba(22, 133, 76, .045); }
.dashboard-page .collection-card-warning { --status-color: #a96800; border-color: rgba(208, 138, 0, .5); background: rgba(208, 138, 0, .05); }
.dashboard-page .collection-card-failed { --status-color: #b92f26; border-color: rgba(197, 54, 43, .48); background: rgba(197, 54, 43, .045); }
.dashboard-page .collection-card-disabled { --status-color: #a96800; border-color: rgba(208, 138, 0, .5); background: rgba(208, 138, 0, .05); }
.dashboard-page .collection-card-not-backed-up { border-color: rgba(104, 119, 139, .42); }
.dashboard-page .collection-card:hover,
.dashboard-page .collection-card:focus-visible { border-color: var(--status-color); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(31, 51, 78, .13); }
.collection-card-heading { display: flex; align-items: center; justify-content: center; gap: .65rem; }
.summary-card .collection-label { color: #3f4d61; font-size: .9rem; font-weight: 650; }
.collection-icon { display: grid !important; place-items: center; flex: 0 0 2rem; width: 2rem; height: 2rem; border-radius: 50%; background: rgba(133, 187, 101, .1); color: var(--brand-strong) !important; }
.collection-icon svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.summary-card .collection-count { margin-top: .65rem; font-size: 2rem; line-height: 1; letter-spacing: -.035em; }
.dashboard-page .collection-health { margin-top: .45rem; }
.dashboard-page .collection-last-backup { line-height: 1.35; }
.storage-overview { display: flex; align-items: baseline; gap: .65rem; margin: 0 0 .75rem; color: #5a687c; }
.storage-overview > span:first-child { font-size: .85rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.storage-overview > strong { color: var(--text-primary); font-size: 1.65rem; letter-spacing: -.025em; }
.storage-overview .status { font-size: .75rem; }
.dashboard-inline-notice { margin: 0 0 .75rem; color: #8a5e08; }
.dashboard-chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1.5rem; }
.dashboard-chart-grid-single { grid-template-columns: minmax(0, 1fr); }
.dashboard-shell .dashboard-chart-card { min-width: 0; min-height: 19rem; border: 1px solid #cfdae7; border-radius: 14px; background: #f4f8fd; padding: 1.15rem; box-shadow: 0 8px 24px rgba(31, 51, 78, .07); }
.dashboard-chart-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.dashboard-chart-heading h2 { margin: 0; font-size: 1rem; letter-spacing: -.01em; }
.dashboard-chart-heading span { color: var(--text-secondary); font-size: .78rem; }
.dashboard-page .chart-axis { stroke: #cad4e1; stroke-opacity: .55; }
.dashboard-page .chart-gridline { stroke: #cad4e1; stroke-width: 1; stroke-opacity: .35; }
.dashboard-page .chart-area { fill: url(#storage-area-gradient); }
.dashboard-page .chart-line { stroke-width: 2.5; }
.dashboard-page .chart-point { transition: r .15s ease, filter .15s ease; }
.dashboard-page .chart-point:hover { r: 7; filter: drop-shadow(0 2px 3px rgba(133, 187, 101, .28)); }
.dashboard-page .capacity-segment { transition: opacity .15s ease, stroke-width .15s ease; }
.dashboard-page .capacity-segment:hover { opacity: .85; stroke-width: 38; }
.device-change-chart-card { margin: 0 0 1.5rem; min-height: 0 !important; }
.device-change-chart-heading { align-items: flex-start; }
.device-change-chart-heading > div { min-width: 0; }
.device-change-chart-heading p { margin: .3rem 0 0; color: var(--text-secondary); font-size: .84rem; }
.device-change-chart-heading p strong { color: var(--text-primary); font-size: 1.2rem; }
.device-change-ranges { display: flex; flex: 0 0 auto; gap: .35rem; }
.device-change-range { border: 1px solid #b8c8da; border-radius: 999px; padding: .3rem .6rem; color: #40536b; font-size: .76rem; font-weight: 700; text-decoration: none; }
.device-change-range:hover,
.device-change-range:focus-visible { border-color: var(--brand-strong); color: var(--brand-strong); }
.device-change-range.selected { border-color: var(--brand-strong); background: var(--brand); color: var(--text-on-brand); }
.device-change-chart { display: grid; gap: .35rem; margin-top: .95rem; }
.device-change-chart-row { display: grid; grid-template-columns: minmax(9.5rem, .8fr) minmax(10rem, 2.2fr) 3.25rem; align-items: center; gap: .85rem; border-radius: 8px; padding: .48rem .55rem; color: #26384f; text-decoration: none; }
.device-change-chart-row:hover,
.device-change-chart-row:focus-visible { background: rgba(133, 187, 101, .07); }
.device-change-chart-label { display: flex; min-width: 0; align-items: center; gap: .55rem; font-size: .84rem; font-weight: 650; }
.device-change-dot { width: .62rem; height: .62rem; flex: 0 0 auto; border-radius: 50%; background: #64748b; }
.device-change-dot-software { background: #2563eb; }
.device-change-dot-hardware { background: #d18a12; }
.device-change-dot-network { background: #00867d; }
.device-change-dot-os { background: #8055c9; }
.device-change-dot-deleted { background: #d94b55; }
.device-change-bar { width: 100%; height: .72rem; border: 0; border-radius: 999px; overflow: hidden; background: #dce4ee; color: #64748b; }
.device-change-bar::-webkit-progress-bar { border-radius: 999px; background: #dce4ee; }
.device-change-bar::-webkit-progress-value { border-radius: 999px; background: currentColor; transition: width .2s ease; }
.device-change-bar::-moz-progress-bar { border-radius: 999px; background: currentColor; }
.device-change-bar-software { color: #2563eb; }
.device-change-bar-hardware { color: #d18a12; }
.device-change-bar-network { color: #00867d; }
.device-change-bar-os { color: #8055c9; }
.device-change-bar-deleted { color: #d94b55; }
.device-change-chart-row > strong { text-align: right; font-size: .88rem; }
.device-change-chart-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .8rem; border-top: 1px solid var(--border); padding-top: .75rem; color: var(--text-secondary); font-size: .8rem; }
.chart-empty { min-height: 14rem; display: grid; place-content: center; justify-items: center; gap: .75rem; color: #728198; }
.chart-empty svg { width: 3.5rem; height: 3.5rem; fill: none; stroke: #8aa5c7; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .72; }
.chart-empty span { font-size: .9rem; }
.backup-control-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 1.25rem; border: 1px solid var(--border); border-radius: 14px; background: var(--brand-soft); padding: 1.15rem 1.25rem; box-shadow: 0 8px 24px rgba(31, 51, 78, .065); scroll-margin-top: 1rem; }
.backup-time-block { min-width: 0; }
.backup-time-block > span { display: block; color: #5c6c82; font-size: .78rem; font-weight: 650; text-transform: uppercase; letter-spacing: .045em; }
.backup-time-block > strong { display: block; margin: .3rem 0 .15rem; font-size: 1.05rem; }
.backup-time-block small { display: block; }
.backup-actions { display: grid; justify-items: end; gap: .45rem; }
.backup-actions form { margin: 0; }
.backup-actions button { min-width: 8.5rem; border-radius: 8px; box-shadow: 0 4px 10px rgba(133, 187, 101, .2); }
.dashboard-manage-link { font-size: .82rem; }
.backup-control-note { grid-column: 1 / -1; margin: -.35rem 0 0; color: #78601d; font-size: .85rem; }
.dashboard-active-backup { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: center; gap: 1rem; width: 100%; box-sizing: border-box; margin: 0; border-top: 1px solid var(--border); border-radius: 0; background: transparent; padding: 1rem 0 0; }
.dashboard-active-backup > div span { display: block; color: #5c6c82; font-size: .75rem; }
.dashboard-active-backup > div strong { display: block; margin-top: .15rem; font-size: .9rem; }
.dashboard-notification-summary { margin: 0 0 1rem; }
.dashboard-notification-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: auto; margin-bottom: -.1rem; padding-top: .1rem; }
.dashboard-notification-heading h2, .dashboard-notification-heading h3 { margin: 0; font-size: 1rem; }
.dashboard-notification-heading a { font-size: .84rem; }
.dashboard-alerts { display: grid; gap: .65rem; }
.dashboard-alert { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .8rem; border: 1px solid; border-radius: 10px; padding: .75rem .9rem; }
.dashboard-alert-warning { border-color: rgba(208, 138, 0, .4); background: rgba(208, 138, 0, .075); }
.dashboard-alert-error { border-color: rgba(197, 54, 43, .4); background: rgba(197, 54, 43, .07); }
.dashboard-alert-icon { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; color: #a96800; background: rgba(208, 138, 0, .12); }
.dashboard-alert-error .dashboard-alert-icon { color: #b92f26; background: rgba(197, 54, 43, .11); }
.dashboard-alert-icon svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-alert > div { min-width: 0; }
.dashboard-alert strong { display: block; overflow-wrap: anywhere; }
.dashboard-alert small { display: block; margin-top: .15rem; color: #64748b; }
.dashboard-alert p { margin: .18rem 0 0; font-size: .88rem; }
.dashboard-alert-actions,.notification-item-actions { display: grid; justify-items: end; gap: .3rem; white-space: nowrap; font-size: .84rem; }
.dashboard-alert-actions form,.notification-item-actions form { margin: 0; }
.dashboard-alert .notification-dismiss-error { grid-column: 2 / -1; }
.integration-backup-panel { border: 1px solid var(--border); border-radius: 14px; background: var(--brand-soft); padding: 1.15rem 1.25rem; box-shadow: 0 8px 24px rgba(31, 51, 78, .065); scroll-margin-top: 1rem; }
.integration-backup-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.integration-backup-heading h2 { margin: 0; font-size: 1.1rem; }
.integration-backup-heading p { margin: .2rem 0 0; color: #5c6c82; font-size: .86rem; }
.backup-all-form { margin: 0; }
.backup-all-form button { border-radius: 8px; white-space: nowrap; box-shadow: 0 4px 10px rgba(133, 187, 101, .2); }
.integration-backup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.integration-backup-card { min-width: 0; display: grid; gap: .85rem; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-panel); padding: 1rem; }
.integration-backup-card-heading { display: flex; align-items: start; justify-content: space-between; gap: .75rem; }
.integration-backup-card-heading h3 { margin: 0; font-size: 1rem; }
.integration-backup-card-heading span { display: block; margin-top: .15rem; color: var(--text-secondary); font-size: .78rem; }
.integration-backup-detail > span,
.integration-backup-job > div > span { display: block; color: #5c6c82; font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.integration-backup-detail > strong,
.integration-backup-job > div > strong { display: block; margin-top: .2rem; font-size: .9rem; }
.integration-backup-job { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: .75rem; }
.integration-backup-job p { grid-column: 1 / -1; margin: 0; color: #a72e25; font-size: .82rem; }
.integration-backup-form { margin: 0; }
.integration-backup-form button { width: 100%; border-radius: 8px; }
.integration-backup-reason { margin: -.35rem 0 0; color: #78601d; font-size: .8rem; }
.manual-eligibility-detail { display: grid; gap: .15rem; margin-top: -.25rem; padding: .55rem .65rem; border-radius: 8px; background: #fff4d8; color: #644b0b; font-size: .82rem; }
.manual-eligibility-detail[hidden] { display: none; }
.manual-eligibility-detail small { color: inherit; }
.manual-attempts-remaining, .free-snapshot-notice { margin: -.25rem 0 0; color: #5c6c82; font-size: .8rem; line-height: 1.4; }
.free-snapshot-notice { padding-left: .65rem; border-left: 3px solid var(--brand); }
.upgrade-explanation { margin-top: .35rem; font-size: .8rem; }
.upgrade-explanation summary { width: fit-content; cursor: pointer; color: var(--brand-strong); font-weight: 700; }
.upgrade-explanation p { margin: .35rem 0 0; line-height: 1.4; }
.free-history-notice { margin: 0 0 1rem; }
.notification-menu { position: relative; }
.notification-bell { position: relative; padding: .45rem .6rem; background: transparent; color: inherit; border: 1px solid #9aabc0; border-radius: 8px; }
.notification-count { position: absolute; top: -.45rem; right: -.45rem; min-width: 1.25rem; padding: .1rem .25rem; border-radius: 999px; background: #c5362b; color: #ffffff; font-size: .7rem; }
.notification-panel { position: absolute; z-index: 30; top: calc(100% + .5rem); right: 0; width: min(24rem, calc(100vw - 2rem)); max-height: 32rem; overflow: auto; padding: .8rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-panel); color: #182437; box-shadow: 0 16px 40px rgba(0,0,0,.2); }
.notification-panel-heading,.heading-actions { display: flex; justify-content: space-between; gap: .75rem; align-items: start; }
.notification-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; align-items: start; padding: .75rem 0; border-bottom: 1px solid #dce5ef; }
.notification-item p { margin: .25rem 0; font-size: .84rem; }.notification-item small { color: #64748b; }.notification-item.is-unread { border-left: 3px solid var(--brand); padding-left: .55rem; }
.notification-dismiss-error { grid-column: 1 / -1; margin: 0; color: #a72e25; font-size: .8rem; }
.notification-empty { margin: .65rem 0; color: #64748b; }
.link-button { padding: 0; border: 0; background: none; color: var(--brand-strong); box-shadow: none; white-space: nowrap; }.notification-view-all { display: block; padding-top: .7rem; text-align: center; }
.notification-filters { display: flex; gap: .5rem; margin: 1rem 0; }.notification-filters a { padding: .45rem .75rem; border-radius: 8px; }.notification-filters a[aria-current="page"] { background: var(--brand); color: var(--text-on-brand); }
.notification-history { display: grid; gap: .75rem; }.notification-history-item { padding: 1rem; border: 1px solid var(--border); border-radius: 10px; }.notification-history-item.is-unread { border-left: 4px solid var(--brand); }.notification-history-item h2 { margin: .5rem 0; font-size: 1rem; }
.integration-problem { margin: 0; padding: .65rem; border-radius: 8px; background: #fff4e2; color: #704b08; font-size: .82rem; }
html[data-theme="dark"] .notification-panel { background: var(--surface-panel); color: var(--text-primary); border-color: var(--border); } html[data-theme="dark"] .notification-item { border-color: var(--border); } html[data-theme="dark"] .notification-history-item { border-color: var(--border); }
html[data-theme="dark"] .notification-panel .notification-item { background: transparent; }

html[data-theme="dark"] .dashboard-shell { background: var(--surface-page); }
html[data-theme="dark"] .dashboard-control-card { background: var(--surface-panel); border-color: var(--border); box-shadow: 0 10px 28px rgba(0, 0, 0, .2); }
html[data-theme="dark"] .dashboard-control-heading p,
html[data-theme="dark"] .dashboard-backup-facts small,
html[data-theme="dark"] .dashboard-history-facts small,
html[data-theme="dark"] .dashboard-latest-run span:first-child,
html[data-theme="dark"] .dashboard-card-empty { color: #9cabc0; }
html[data-theme="dark"] .dashboard-latest-run,
html[data-theme="dark"] .dashboard-current-job,
html[data-theme="dark"] .dashboard-live-job { border-color: var(--border); }
html[data-theme="dark"] .dashboard-live-job { background: rgba(255, 255, 255, .025); }
html[data-theme="dark"] .dashboard-result { background: var(--surface-subtle); color: #c8d3e2; }
html[data-theme="dark"] .dashboard-result-completed { background: rgba(50, 178, 108, .16); color: #77dda5; }
html[data-theme="dark"] .dashboard-result-partial { background: rgba(208, 138, 0, .16); color: #efc15e; }
html[data-theme="dark"] .dashboard-result-failed { background: rgba(197, 54, 43, .16); color: #ff8179; }
html[data-theme="dark"] .dashboard-recovery-note { background: rgba(208, 138, 0, .1); color: #efc15e; }
html[data-theme="dark"] .dashboard-page .collection-card { border-color: #3a485c; background: rgba(122, 142, 168, .045); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
html[data-theme="dark"] .dashboard-page .collection-card-healthy { --status-color: #5fd494; border-color: rgba(95, 212, 148, .32); background: rgba(50, 178, 108, .055); }
html[data-theme="dark"] .dashboard-page .collection-card-warning { --status-color: #efc15e; border-color: rgba(239, 193, 94, .34); background: rgba(208, 138, 0, .06); }
html[data-theme="dark"] .dashboard-page .collection-card-failed { --status-color: #ff8179; border-color: rgba(255, 129, 121, .34); background: rgba(197, 54, 43, .06); }
html[data-theme="dark"] .dashboard-page .collection-card-disabled { --status-color: #efc15e; border-color: rgba(239, 193, 94, .34); background: rgba(208, 138, 0, .06); }
html[data-theme="dark"] .dashboard-page .collection-card-not-backed-up { --status-color: var(--text-secondary); border-color: #3a485c; }
html[data-theme="dark"] .dashboard-page .collection-card:hover,
html[data-theme="dark"] .dashboard-page .collection-card:focus-visible { border-color: var(--status-color); box-shadow: 0 14px 30px rgba(0, 0, 0, .3); }
html[data-theme="dark"] .summary-card .collection-label { color: #c8d3e2; }
html[data-theme="dark"] .collection-icon { color: #ACD493 !important; background: rgba(109, 168, 255, .11); }
html[data-theme="dark"] .storage-overview { color: #9cabc0; }
html[data-theme="dark"] .storage-overview > strong { color: var(--text-primary); }
html[data-theme="dark"] .dashboard-shell .dashboard-chart-card { background: var(--surface-panel); border-color: var(--surface-subtle); box-shadow: 0 10px 28px rgba(0, 0, 0, .2); }
html[data-theme="dark"] .dashboard-chart-heading span,
html[data-theme="dark"] .chart-empty { color: #9cabc0; }
html[data-theme="dark"] .dashboard-page .chart-axis,
html[data-theme="dark"] .dashboard-page .chart-gridline { stroke: #52647d; }
html[data-theme="dark"] .device-change-chart-heading p,
html[data-theme="dark"] .device-change-chart-footer { color: #9cabc0; }
html[data-theme="dark"] .device-change-chart-heading p strong { color: var(--text-primary); }
html[data-theme="dark"] .device-change-range { border-color: #42546c; color: #bdc9d9; }
html[data-theme="dark"] .device-change-range:hover,
html[data-theme="dark"] .device-change-range:focus-visible { border-color: #85BB65; color: #ACD493; }
html[data-theme="dark"] .device-change-range.selected { border-color: var(--brand-hover); background: var(--brand-hover); color: var(--text-on-brand); }
html[data-theme="dark"] .device-change-chart-row { color: #dbe5f2; }
html[data-theme="dark"] .device-change-chart-row:hover,
html[data-theme="dark"] .device-change-chart-row:focus-visible { background: rgba(109, 168, 255, .08); }
html[data-theme="dark"] .device-change-bar,
html[data-theme="dark"] .device-change-bar::-webkit-progress-bar { background: #29384c; }
html[data-theme="dark"] .device-change-chart-footer { border-top-color: var(--surface-subtle); }
html[data-theme="dark"] .backup-control-panel { background: var(--surface-panel); border-color: var(--border); box-shadow: 0 10px 28px rgba(0, 0, 0, .2); }
html[data-theme="dark"] .backup-time-block > span,
html[data-theme="dark"] .dashboard-active-backup > div span { color: #9cabc0; }
html[data-theme="dark"] .dashboard-active-backup { border-top-color: var(--border); background: transparent; }
html[data-theme="dark"] .dashboard-alert-warning { border-color: rgba(239, 193, 94, .28); background: rgba(208, 138, 0, .075); }
html[data-theme="dark"] .dashboard-alert-error { border-color: rgba(255, 129, 121, .28); background: rgba(197, 54, 43, .075); }
html[data-theme="dark"] .dashboard-alert-icon { color: #efc15e; }
html[data-theme="dark"] .dashboard-alert-error .dashboard-alert-icon { color: #ff8179; }
html[data-theme="dark"] .integration-backup-panel { background: var(--surface-panel); border-color: var(--border); box-shadow: 0 10px 28px rgba(0, 0, 0, .2); }
html[data-theme="dark"] .integration-backup-card { background: var(--surface-panel); border-color: var(--border); }
html[data-theme="dark"] .integration-backup-heading p,
html[data-theme="dark"] .integration-backup-card-heading span,
html[data-theme="dark"] .integration-backup-detail > span,
html[data-theme="dark"] .integration-backup-job > div > span { color: #9cabc0; }
html[data-theme="dark"] .integration-backup-job p { color: #ff8179; }
html[data-theme="dark"] .integration-backup-reason { color: #efc15e; }
html[data-theme="dark"] .manual-eligibility-detail { background: #3a2f13; color: #f3d47a; }
html[data-theme="dark"] .manual-attempts-remaining,
html[data-theme="dark"] .free-snapshot-notice { color: #aebbd0; }
html[data-theme="dark"] .upgrade-explanation summary { color: #ACD493; }

@media (max-width: 1050px) { .dashboard-collection-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 800px) {
  .dashboard-control-grid { grid-template-columns: 1fr; }
  .dashboard-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-chart-grid { grid-template-columns: 1fr; }
  .backup-control-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .backup-actions { grid-column: 1 / -1; grid-template-columns: auto auto auto; align-items: center; justify-content: start; justify-items: start; }
  .integration-backup-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .dashboard-control-card { padding: 1rem; }
  .dashboard-backup-facts { grid-template-columns: 1fr; }
  .dashboard-history-facts { grid-template-columns: 1fr; }
  .dashboard-collection-grid { grid-template-columns: 1fr; }
  .backup-control-panel { grid-template-columns: 1fr; }
  .backup-actions { grid-column: auto; grid-template-columns: 1fr; }
  .dashboard-active-backup { grid-template-columns: 1fr; }
  .dashboard-alert { grid-template-columns: auto minmax(0, 1fr); }
  .dashboard-alert-actions { grid-column: 2; justify-items: start; }
  .capacity-chart { grid-template-columns: 1fr; }
  .device-change-chart-heading { display: grid; }
  .device-change-ranges { margin-top: .65rem; }
  .device-change-chart-row { grid-template-columns: minmax(7.5rem, 1fr) minmax(5rem, 1.5fr) 2.5rem; gap: .55rem; padding-inline: .25rem; }
  .device-change-chart-footer { align-items: flex-start; flex-direction: column; }
  .integration-backup-heading { align-items: stretch; flex-direction: column; }
  .backup-all-form button { width: 100%; white-space: normal; }
  .integration-backup-job { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-page .collection-card,
  .dashboard-page .chart-point,
  .dashboard-page .capacity-segment { transition: none; }
  .dashboard-page .collection-card:hover,
  .dashboard-page .collection-card:focus-visible { transform: none; }
}
/* Retained device navigator */
.devices-shell main { box-sizing: border-box; width: 100%; max-width: 1600px; }
.device-page-heading { align-items: end; }
.device-layout { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.device-browser, .device-history { min-width: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-panel); box-shadow: 0 8px 24px rgba(27, 45, 72, .06); }
.device-browser { overflow: hidden; }
.device-search-form { display: grid; gap: .75rem; padding: 1rem; border-bottom: 1px solid var(--border); }
.device-search-form label { display: grid; gap: .3rem; font-weight: 650; font-size: .88rem; }
.segmented-filter { display: flex; gap: .35rem; border: 0; padding: 0; margin: 0; }
.segmented-filter legend { font-weight: 650; margin-bottom: .35rem; }
.segmented-filter label { display: block; }
.segmented-filter input { position: absolute; opacity: 0; }
.segmented-filter span, .range-button { display: inline-flex; padding: .42rem .65rem; border: 1px solid #c7d2df; border-radius: 8px; text-decoration: none; background: var(--surface-subtle); color: var(--text-primary); }
.segmented-filter input:checked + span, .range-button.is-selected { border-color: var(--brand-strong); background: var(--brand-soft); color: var(--brand-strong); box-shadow: inset 0 0 0 1px var(--brand); }
.device-list { max-height: 690px; overflow-y: auto; }
.device-list-item { position: relative; display: grid; gap: .2rem; padding: .85rem 1rem; border-bottom: 1px solid #e5eaf0; color: inherit; text-decoration: none; }
.device-list-item:hover, .device-list-item:focus-visible { background: #f3f7fc; }
.device-list-item.is-selected { background: var(--brand-soft); box-shadow: inset 4px 0 var(--brand); }
.device-list-name { padding-right: 4.8rem; font-weight: 750; overflow-wrap: anywhere; }
.device-list-meta, .device-last-seen { color: var(--text-secondary); font-size: .79rem; }
.device-status { display: inline-flex; width: fit-content; padding: .15rem .45rem; border-radius: 999px; font-weight: 700; font-size: .72rem; }
.device-list-item .device-status { position: absolute; right: .75rem; top: .8rem; }
.device-status-current { color: #176b49; background: #e2f5ec; }
.device-status-deleted { color: #a42d27; background: #fde9e7; }
.device-history { padding: 1.15rem; }
.selected-device-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.selected-device-heading h2 { margin: .1rem 0; }
.time-range-controls { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.range-boundary { color: var(--text-secondary); font-size: .82rem; }
.category-filters { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem 1rem; padding: .8rem; border-radius: 10px; background: #f6f8fb; }
.category-filters fieldset { display: flex; flex-wrap: wrap; gap: .7rem; border: 0; padding: 0; margin: 0; }
.category-filters legend { width: 100%; margin-bottom: .35rem; font-weight: 700; }
.category-filters label { display: inline-flex; align-items: center; gap: .35rem; }
.category-filters label > span, .category-legend i { width: .72rem; height: .72rem; border-radius: 50%; background: var(--category-color); }
.timeline-actions { margin: 1rem 0 .6rem; }
.timeline-shell { overflow: auto; padding: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-page); scroll-padding: 2rem; }
.timeline-single { position: relative; display: block; width: 100%; min-width: var(--timeline-width); height: 340px; transition: opacity .18s ease, height .18s ease; }
.timeline-baseline { position: absolute; left: 50px; right: 50px; top: 235px; height: 5px; border-radius: 5px; background: #66778d; }
.timeline-group { position: absolute; left: var(--x); top: 0; width: 200px; height: 330px; transform: translateX(-50%); text-align: center; }
.timeline-label-stack { position: absolute; z-index: 2; left: 5px; right: 5px; top: 34px; min-height: 142px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .38rem; }
.timeline-event-label, .timeline-more, .text-button { border: 0; padding: .16rem .35rem; background: transparent; color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; font-size: .78rem; line-height: 1.2; }
.timeline-event-label[aria-pressed="true"] { border-radius: 5px; background: var(--brand-soft); outline: 2px solid var(--brand); text-decoration: none; }
.timeline-more { margin-top: .15rem; font-weight: 750; }
.timeline-overflow { position: absolute; z-index: 10; top: 100%; width: 190px; max-height: 180px; overflow-y: auto; padding: .5rem; border: 1px solid #c7d2df; border-radius: 8px; background: var(--surface-panel); box-shadow: 0 10px 24px rgba(15, 31, 52, .16); }
.timeline-overflow .timeline-event-label { display: block; width: 100%; margin: .15rem 0; }
.timeline-stem { position: absolute; left: calc(50% - 1px); top: 181px; width: 2px; height: 54px; background: #9aa8b9; }
.timeline-marker { position: absolute; z-index: 3; left: calc(50% - 8px); top: 229px; width: 17px; height: 17px; border: 3px solid var(--surface-panel); border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px var(--brand); cursor: pointer; }
.category-lifecycle { --event-color: #64748b; }
.category-software { --event-color: #2563eb; }
.category-hardware { --event-color: #d18a12; }
.category-network { --event-color: #00867d; }
.category-os { --event-color: #8055c9; }
.category-deleted { --event-color: #d94b55; }
.timeline-marker[class*="category-"] { background: var(--event-color); box-shadow: 0 0 0 2px var(--event-color); }
.timeline-event-label[class*="category-"] { text-decoration-color: var(--event-color); text-decoration-thickness: 2px; }
.timeline-marker.is-mixed { background: var(--event-color); }
.timeline-date { position: absolute; top: 266px; left: 5px; right: 5px; display: grid; gap: .22rem; font-size: .75rem; line-height: 1.25; }
.timeline-date small { color: var(--text-secondary); }
.timeline-lanes { display: none; width: 100%; min-width: calc(var(--timeline-width) + 145px); transition: opacity .18s ease; }
.timeline-lane { display: grid; grid-template-columns: 145px 1fr; min-height: max(155px, var(--lane-height)); border-bottom: 1px solid var(--border); }
.timeline-lane h3 { position: sticky; left: 0; z-index: 5; margin: 0; padding: 1rem .75rem; background: var(--surface-page); border-right: 1px solid var(--border); font-size: .9rem; }
.lane-track { position: relative; min-width: var(--timeline-width); }
.lane-baseline { position: absolute; left: 0; right: 40px; bottom: 38px; height: 3px; background: var(--category-color); opacity: .72; }
.lane-guide { position: absolute; left: var(--x); top: 0; bottom: 20px; width: 1px; background: #d6dee8; }
.lane-guide.is-selected { width: 3px; background: var(--brand); }
.lane-event { position: absolute; left: var(--x); bottom: 36px; width: 170px; min-height: 100px; transform: translateX(-50%); border: 0; background: transparent; color: inherit; cursor: pointer; }
.lane-event span { position: absolute; left: 0; right: 0; bottom: calc(27px + var(--stack) * 18px); font-size: .76rem; line-height: 1.15; text-decoration: underline; }
.lane-event i { position: absolute; left: calc(50% - 7px); bottom: -5px; width: 14px; height: 14px; border: 3px solid var(--surface-panel); border-radius: 50%; background: var(--category-color); box-shadow: 0 0 0 2px var(--category-color); }
.lane-event[aria-pressed="true"] span { border-radius: 5px; background: var(--brand-soft); outline: 2px solid var(--brand); text-decoration: none; }
.devices-page[data-expanded="true"] .timeline-single { display: none; }
.devices-page[data-expanded="true"] .timeline-lanes { display: block; }
.timeline-scale-note { color: var(--text-secondary); font-size: .78rem; }
.category-legend { display: flex; flex-wrap: wrap; gap: .8rem; margin: .5rem 0 1rem; font-size: .8rem; }
.category-legend span { display: inline-flex; align-items: center; gap: .3rem; }
.change-detail-panel { padding: 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-panel); }
.change-detail-panel[hidden], .timeline-overflow[hidden] { display: none; }
.detail-links { margin-bottom: 0; }
.inline-warning { padding: .65rem .8rem; border-left: 4px solid #c87900; background: #fff5db; color: #65460b; font-size: .83rem; }

html[data-theme="dark"] .device-browser, html[data-theme="dark"] .device-history, html[data-theme="dark"] .change-detail-panel { border-color: var(--border); background: var(--surface-panel); }
html[data-theme="dark"] .device-search-form, html[data-theme="dark"] .device-list-item, html[data-theme="dark"] .timeline-lane { border-color: var(--border); }
html[data-theme="dark"] .device-list-item:hover, html[data-theme="dark"] .device-list-item:focus-visible, html[data-theme="dark"] .device-list-item.is-selected { background: var(--brand-soft); }
html[data-theme="dark"] .device-list-meta, html[data-theme="dark"] .device-last-seen, html[data-theme="dark"] .range-boundary, html[data-theme="dark"] .timeline-scale-note { color: var(--text-secondary); }
html[data-theme="dark"] .category-filters, html[data-theme="dark"] .timeline-shell, html[data-theme="dark"] .timeline-lane h3 { background: #0e1928; border-color: var(--border); }
html[data-theme="dark"] .segmented-filter span, html[data-theme="dark"] .range-button { border-color: var(--border-strong); background: var(--surface-raised); color: #dce6f3; }
html[data-theme="dark"] .segmented-filter input:checked + span, html[data-theme="dark"] .range-button.is-selected { border-color: #85BB65; background: var(--brand-soft); color: var(--link-color); }
html[data-theme="dark"] .timeline-event-label, html[data-theme="dark"] .timeline-more, html[data-theme="dark"] .text-button { color: #cfe0f5; }
html[data-theme="dark"] .timeline-event-label[aria-pressed="true"], html[data-theme="dark"] .lane-event[aria-pressed="true"] span { background: var(--brand-soft); outline-color: #85BB65; }
html[data-theme="dark"] .inline-warning { background: #3a2f13; color: #f3d47a; }

@media (max-width: 780px) {
  .device-layout { grid-template-columns: 1fr; }
  .device-list { max-height: 340px; }
  .selected-device-heading { display: block; }
  .timeline-lane { grid-template-columns: 110px 1fr; }
  .timeline-lanes { width: calc(var(--timeline-width) + 110px); }
}
@media (prefers-reduced-motion: reduce) {
  .timeline-single, .timeline-lanes { transition: none; }
}

/* Device navigator — production adaptation of the approved device-history concept. */
.devices-shell > main { box-sizing: border-box; width: 100%; max-width: none; margin: 0; padding: 0; }
.devices-shell .app-header { padding-left: 1.5rem; padding-right: 1.5rem; }
.devices-shell .integration-selector { margin: 1rem 1.5rem 0; }
.devices-page { --device-border: var(--border); --device-muted: var(--text-secondary); width: 100%; min-height: calc(100vh - 74px); }
.devices-page .device-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 0; width: 100%; align-items: stretch; min-height: calc(100vh - 74px); }
.devices-page .device-browser { min-width: 0; overflow: visible; padding: 1.5rem 1rem; border: 0; border-right: 1px solid var(--device-border); border-radius: 0; background: var(--surface-panel); box-shadow: none; }
.device-browser-heading h2 { margin: 0 0 .35rem; font-size: 1.05rem; }
.device-browser-heading p { margin: 0; color: var(--device-muted); font-size: .8rem; }
.devices-page .device-search-form { display: grid; gap: .65rem; margin-top: .85rem; padding: 0; border: 0; }
.device-search-label input { box-sizing: border-box; width: 100%; padding: .65rem .7rem; border: 1px solid var(--device-border); border-radius: 8px; }
.devices-page .customer-filter { color: var(--device-muted); font-size: .72rem; }
.devices-page .customer-filter select { box-sizing: border-box; width: 100%; padding: .45rem .55rem; border: 1px solid var(--device-border); border-radius: 7px; }
.devices-page .segmented-filter { display: flex; gap: 4px; padding: 3px; border: 0; border-radius: 8px; background: var(--surface-subtle); }
.devices-page .segmented-filter label { flex: 1; }
.devices-page .segmented-filter span { box-sizing: border-box; display: block; width: 100%; padding: .42rem; border: 0; border-radius: 6px; background: transparent; color: var(--text-secondary); text-align: center; font-size: .76rem; }
.devices-page .segmented-filter input:checked + span { border: 0; background: var(--surface-panel); color: var(--brand-strong); box-shadow: 0 1px 4px rgba(22, 40, 70, .1); }
.device-filter-submit { padding: .5rem .7rem; font-size: .78rem; }
.devices-page .device-list { max-height: 610px; margin-top: .8rem; overflow-y: auto; }
.devices-page .device-list-item { display: grid; gap: .3rem; margin-bottom: .45rem; padding: .8rem .65rem; border: 1px solid transparent; border-radius: 8px; background: transparent; color: inherit; text-decoration: none; box-shadow: none; }
.devices-page .device-list-item:hover, .devices-page .device-list-item:focus-visible { background: var(--surface-subtle); border-color: #d6e0ee; }
.devices-page .device-list-item.is-selected { background: var(--brand-soft); border-color: #b7d2fa; box-shadow: none; }
.devices-page .device-list-name { padding: 0; font-size: .82rem; }
.devices-page .device-list-meta { font-size: .7rem; }
.device-list-summary { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .15rem; }
.device-list-summary small { color: var(--device-muted); font-size: .67rem; }
.devices-page .device-list-item .device-status { position: static; }
.devices-page .device-last-seen { font-size: .66rem; }
.device-browser-hint { margin-top: 1rem; padding: .7rem .75rem; border: 1px solid var(--device-border); border-radius: 8px; background: var(--surface-subtle); color: var(--device-muted); font-size: .69rem; line-height: 1.5; }
.devices-page .device-browser .pagination { gap: .5rem; margin: 1rem 0 0; font-size: .7rem; }

.devices-page .device-history { box-sizing: border-box; min-width: 0; width: 100%; max-width: none; padding: 1.75rem; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.devices-page .selected-device-heading { min-height: 116px; margin: 0; padding: 0; background: transparent; color: inherit; }
.selected-device-heading h1 { display: flex; align-items: center; gap: .7rem; margin: .1rem 0 .4rem; font-size: 1.65rem; letter-spacing: -.03em; }
.selected-device-heading h1 .device-status { font-size: .65rem; letter-spacing: 0; }
.selected-device-subtitle { margin: 0; color: var(--device-muted); font-size: .82rem; }
.selected-device-facts { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: .9rem; color: var(--text-secondary); font-size: .75rem; }
.selected-device-heading .technical-details { color: var(--device-muted); font-size: .75rem; }

.devices-page .device-timeline-panel { overflow: hidden; margin: 0; padding: 0; border: 1px solid var(--device-border); border-radius: 13px; background: var(--surface-panel); box-shadow: 0 3px 12px rgba(21, 37, 69, .04); }
.device-timeline-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; padding: 1.15rem 1.35rem; border-bottom: 1px solid var(--border); }
.device-timeline-toolbar h2 { margin: 0 auto 0 0; font-size: 1.05rem; }
.timeline-expand-button { min-height: 44px; padding: .75rem 1.15rem; border: 1px solid var(--brand-strong); border-radius: 8px; background: var(--brand); box-shadow: 0 3px 8px rgba(37, 99, 235, .2); font-size: .82rem; }
.timeline-expand-button:hover { background: var(--brand-hover); }
.devices-page .time-range-controls { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; }
.devices-page .range-button { padding: .42rem .55rem; border-radius: 7px; font-size: .72rem; white-space: nowrap; }
.devices-page .category-filters { display: flex; align-items: center; gap: .55rem; padding: 1rem 1.35rem 0; border-radius: 0; background: transparent; }
.devices-page .category-filters fieldset { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: .45rem; }
.devices-page .category-filters fieldset label { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .65rem; border: 1px solid var(--device-border); border-radius: 999px; background: var(--surface-subtle); color: var(--text-secondary); font-size: .72rem; font-weight: 650; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease; }
.devices-page .category-filters fieldset label:hover { border-color: var(--brand-strong); background: var(--brand-soft); color: var(--text-primary); }
.devices-page .category-filters fieldset label:has(input:checked) { border-color: var(--category-color); background: color-mix(in srgb, var(--category-color) 14%, white); color: color-mix(in srgb, var(--category-color) 78%, var(--text-primary)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--category-color) 30%, transparent); }
.devices-page .category-filters fieldset label:has(input:not(:checked)) { opacity: 1; }
.devices-page .category-filters fieldset label:focus-within { outline: 3px solid #85BB65; outline-offset: 2px; }
.devices-page .category-filters fieldset input { position: absolute; opacity: 0; pointer-events: none; }
.devices-page .category-filters fieldset i, .devices-page .category-legend i { box-sizing: border-box; width: 9px; height: 9px; border: 2px solid var(--category-color); border-radius: 50%; background: transparent; }
.devices-page .category-filters fieldset label:has(input:checked) i { background: var(--category-color); box-shadow: 0 0 0 2px color-mix(in srgb, var(--category-color) 18%, transparent); }
.devices-page .routine-toggle { font-size: .72rem; white-space: nowrap; }
.devices-page .category-apply { padding: .42rem .65rem; font-size: .72rem; }
.js .devices-page .category-apply { display: none; }
.timeline-heading { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.35rem 0; color: var(--device-muted); font-size: .72rem; }
.timeline-empty { margin: 1.2rem; min-height: 170px; display: grid; place-content: center; text-align: center; }

.devices-page .timeline-shell { overflow-x: auto; overflow-y: visible; margin: 0; padding: 0 1.35rem .75rem; border: 0; border-radius: 0; background: transparent; scrollbar-color: #b8c7dd #f5f7fb; }
.devices-page .timeline-single { width: 100%; min-width: var(--timeline-width); height: 470px; margin-top: .35rem; }
.devices-page .timeline-baseline { left: 25px; right: 25px; top: 224px; height: 6px; background: #8292aa; }
.devices-page .timeline-group { width: 190px; height: 455px; }
.devices-page .timeline-group:has(.timeline-overflow:not([hidden])) { z-index: 50; }
.devices-page .timeline-label-stack { left: 5px; right: 5px; top: 34px; min-height: 145px; gap: .38rem; justify-content: flex-end; }
.devices-page .timeline-label-stack.is-above:has(.timeline-overflow:not([hidden])) { z-index: 60; }
.devices-page .timeline-label-stack.is-below { top: 263px; min-height: 0; justify-content: flex-start; }
.devices-page .timeline-event-label { box-sizing: border-box; display: block; width: 100%; padding: .45rem .55rem; border: 1px solid var(--device-border); border-left: 3px solid var(--event-color); border-radius: 7px; background: var(--surface-panel); box-shadow: 0 3px 8px rgba(23, 38, 62, .05); color: var(--text-primary); text-align: left; text-decoration: none; font-size: .72rem; line-height: 1.25; }
.devices-page .timeline-event-label strong, .devices-page .timeline-event-label small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.devices-page .timeline-event-label small { margin-top: .18rem; color: var(--device-muted); font-size: .62rem; }
.devices-page .timeline-event-label[aria-pressed="true"] { border-color: var(--brand-strong); border-left-color: var(--event-color); background: var(--brand-soft); outline: none; }
.devices-page .timeline-more { width: auto; margin: 0; padding: .22rem .5rem; border: 1px solid var(--device-border); border-radius: 999px; background: var(--surface-subtle); color: #355377; font-size: .66rem; font-weight: 700; text-decoration: none; }
.devices-page .timeline-more:hover, .devices-page .timeline-more[aria-expanded="true"] { border-color: var(--brand-strong); background: var(--brand-soft); }
.devices-page .timeline-overflow { z-index: 100; left: 50%; top: calc(100% + .35rem); width: 260px; max-height: none; overflow: visible; padding: 0; transform: translateX(-50%); border: 1px solid var(--device-border); border-radius: 10px; background: var(--surface-panel); box-shadow: 0 14px 36px rgba(15, 31, 52, .24); }
.timeline-overflow-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .6rem; border-bottom: 1px solid var(--device-border); color: var(--text-secondary); font-size: .68rem; text-align: left; }
.timeline-overflow-heading button { padding: .2rem .35rem; border: 0; background: transparent; color: var(--brand-strong); font-size: .65rem; }
.timeline-overflow-list { display: grid; gap: 2px; max-height: 210px; overflow-y: auto; padding: .3rem; scrollbar-width: thin; }
.devices-page .timeline-overflow .timeline-event-label { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem; width: 100%; min-height: 30px; margin: 0; padding: .34rem .45rem; border: 0; border-left: 3px solid var(--event-color); border-radius: 4px; background: transparent; box-shadow: none; }
.devices-page .timeline-overflow .timeline-event-label:hover, .devices-page .timeline-overflow .timeline-event-label:focus-visible { background: #edf4ff; }
.devices-page .timeline-overflow .timeline-event-label strong { font-size: .67rem; }
.devices-page .timeline-overflow .timeline-event-label small { margin: 0; font-size: .58rem; }
.devices-page .timeline-stem { left: calc(50% - .5px); top: 184px; width: 1px; height: 40px; background: var(--event-color, #9aa8b9); }
.timeline-stem-below { position: absolute; left: calc(50% - .5px); top: 230px; width: 1px; height: 28px; background: var(--event-color, #9aa8b9); }
.devices-page .timeline-marker { left: calc(50% - 10px); top: 217px; width: 20px; height: 20px; }
.devices-page .timeline-marker.is-selected { box-shadow: 0 0 0 5px rgba(37, 99, 235, .15), 0 0 0 1px var(--event-color); }
.devices-page .timeline-marker,
.devices-page .timeline-marker[class*="category-"] {
  left: calc(50% - 16px);
  top: 208px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
}
.devices-page .timeline-marker::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 3px;
  width: 6px;
  height: 26px;
  border-radius: 3px;
  background: var(--event-color);
  box-shadow: 0 0 0 2px var(--surface-panel);
  transition: width .15s ease, left .15s ease, box-shadow .15s ease;
}
.devices-page .timeline-marker::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 0;
}
.devices-page .timeline-marker:hover::before { left: 12px; width: 8px; }
.devices-page .timeline-marker.is-selected { box-shadow: none; }
.devices-page .timeline-marker.is-selected::before { left: 12px; width: 8px; box-shadow: 0 0 0 2px var(--surface-panel), 0 0 0 5px color-mix(in srgb, var(--event-color) 22%, transparent); }
.devices-page .timeline-marker:focus-visible { outline: 3px solid #85BB65; outline-offset: 3px; }
.timeline-group-count { position: absolute; top: 250px; left: calc(50% + 14px); padding: .12rem .3rem; border-radius: 4px; background: var(--surface-subtle); color: var(--text-secondary); font-size: .6rem; white-space: nowrap; }
.devices-page .timeline-date { top: 420px; left: -25px; right: -25px; gap: .14rem; font-size: .67rem; }
.devices-page .timeline-date > time, .devices-page .timeline-date > span { white-space: nowrap; }
.timeline-date-count { color: var(--device-muted); text-decoration: none; }
.devices-page .timeline-footnote { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1.35rem; border-top: 1px solid var(--border); color: var(--device-muted); font-size: .68rem; }

.devices-page .timeline-lanes { padding-top: 2.5rem; }
.devices-page .timeline-lane { overflow: hidden; margin-bottom: .7rem; border: 0; border-radius: 9px; background: color-mix(in srgb, var(--category-color) 5%, white); }
.devices-page .timeline-lane h3 { display: flex; align-items: center; color: var(--category-color); background: color-mix(in srgb, var(--category-color) 9%, white); }
.devices-page .lane-baseline { right: 0; bottom: 38px; background: var(--category-color); opacity: .4; }
.devices-page .lane-guide { border-left: 1px dashed #aebed4; background: transparent; }
.devices-page .lane-guide.is-selected { width: 190px; transform: translateX(-95px); border: 1px dashed var(--brand); border-radius: 7px; background: rgba(37, 99, 235, .04); }
.devices-page .lane-event { bottom: 34px; width: 178px; min-height: 42px; padding: .5rem .6rem .5rem 1.6rem; border: 1px solid color-mix(in srgb, var(--category-color) 30%, white); border-radius: 7px; background: var(--surface-panel); text-align: left; transform: translate(-50%, calc(var(--stack) * -48px)); }
.devices-page .lane-event span { position: static; font-size: .69rem; text-decoration: none; }
.devices-page .lane-event i { left: 9px; bottom: auto; top: 13px; width: 9px; height: 9px; border: 0; box-shadow: none; }
.devices-page .lane-event[aria-pressed="true"] { outline: 2px solid var(--category-color); outline-offset: 1px; background: color-mix(in srgb, var(--category-color) 8%, white); }
.devices-page .lane-event[aria-pressed="true"] span { background: transparent; outline: 0; }

.devices-page .change-detail-panel { overflow: hidden; margin-top: 1.25rem; padding: 0; border: 1px solid var(--device-border); border-radius: 13px; background: var(--surface-panel); }
.devices-page .detail-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.35rem; border-bottom: 1px solid var(--device-border); background: transparent; color: inherit; }
.detail-title { display: flex; align-items: center; gap: .65rem; }
.detail-title h2 { margin: 0 0 .2rem; font-size: 1rem; }
.detail-title p { margin: 0; color: var(--device-muted); font-size: .72rem; }
.detail-swatch, .detail-event-list i { width: 10px; height: 10px; border-radius: 50%; background: var(--event-color); flex: 0 0 auto; }
.detail-count { padding: .2rem .45rem; border-radius: 5px; background: var(--surface-subtle); color: var(--text-secondary); font-size: .68rem; }
.detail-body { display: block; }
.detail-event-nav { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem 1.25rem; border-bottom: 1px solid var(--device-border); color: var(--device-muted); font-size: .72rem; }
.detail-event-nav div { display: flex; gap: .4rem; }
.detail-event-nav button { padding: .38rem .6rem; font-size: .7rem; }
.detail-comparison { min-width: 0; padding: 1.25rem; }
.detail-category { margin: 0 0 .5rem; color: var(--device-muted); font-size: .66rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.detail-comparison h3 { margin: 0 0 .8rem; }
.devices-page .change-table { width: 100%; border-collapse: collapse; font-size: .74rem; }
.devices-page .change-table th { background: var(--surface-subtle); color: var(--text-secondary); font-size: .62rem; letter-spacing: .05em; text-transform: uppercase; }
.devices-page .change-table th, .devices-page .change-table td { padding: .7rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.devices-page .change-table .old-value { background: #fffafb; color: #8a5260; }
.devices-page .change-table .new-value { background: #f6fdf9; color: #17634e; }
.detail-context { color: var(--device-muted); font-size: .7rem; line-height: 1.55; }
.devices-page .detail-links { font-size: .72rem; }

html[data-theme="dark"] .devices-page { --device-border: var(--border); --device-muted: var(--text-secondary); }
html[data-theme="dark"] .devices-page .device-browser, html[data-theme="dark"] .devices-page .device-timeline-panel, html[data-theme="dark"] .devices-page .change-detail-panel { background: var(--surface-panel); }
html[data-theme="dark"] .device-browser-hint, html[data-theme="dark"] .timeline-group-count, html[data-theme="dark"] .detail-count { background: var(--surface-subtle); }
html[data-theme="dark"] .devices-page .segmented-filter { background: var(--surface-page); }
html[data-theme="dark"] .devices-page .segmented-filter input:checked + span, html[data-theme="dark"] .devices-page .device-list-item.is-selected { background: var(--brand-soft); color: var(--link-color); }
html[data-theme="dark"] .devices-page .category-filters, html[data-theme="dark"] .devices-page .category-filters fieldset label, html[data-theme="dark"] .devices-page .timeline-shell { background: transparent; }
html[data-theme="dark"] .devices-page .category-filters fieldset label:has(input:not(:checked)) { border-color: #3a4b62; background: var(--surface-raised); color: #96a6bc; }
html[data-theme="dark"] .devices-page .category-filters fieldset label:has(input:checked) { border-color: var(--category-color); background: color-mix(in srgb, var(--category-color) 24%, var(--surface-raised)); color: color-mix(in srgb, var(--category-color) 35%, white); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--category-color) 45%, transparent); }
html[data-theme="dark"] .devices-page .timeline-event-label, html[data-theme="dark"] .devices-page .lane-event { background: var(--surface-raised); color: #e3edf9; }
html[data-theme="dark"] .devices-page .timeline-event-label[aria-pressed="true"], html[data-theme="dark"] .devices-page .lane-event[aria-pressed="true"] { background: var(--brand-soft); }
html[data-theme="dark"] .devices-page .timeline-marker::before { box-shadow: 0 0 0 2px var(--surface-panel); }
html[data-theme="dark"] .devices-page .timeline-marker.is-selected::before { box-shadow: 0 0 0 2px var(--surface-panel), 0 0 0 5px color-mix(in srgb, var(--event-color) 28%, transparent); }
html[data-theme="dark"] .devices-page .timeline-more { background: #1a2a3e; color: var(--link-color); }
html[data-theme="dark"] .devices-page .timeline-overflow { background: var(--surface-raised); }
html[data-theme="dark"] .timeline-overflow-heading { color: var(--text-secondary); }
html[data-theme="dark"] .devices-page .timeline-overflow .timeline-event-label { background: transparent; }
html[data-theme="dark"] .devices-page .timeline-overflow .timeline-event-label:hover, html[data-theme="dark"] .devices-page .timeline-overflow .timeline-event-label:focus-visible { background: var(--brand-soft-hover); }
html[data-theme="dark"] .devices-page .timeline-lane, html[data-theme="dark"] .devices-page .timeline-lane h3 { background: color-mix(in srgb, var(--category-color) 14%, var(--surface-panel)); }
html[data-theme="dark"] .devices-page .change-table th { background: var(--surface-subtle); }
html[data-theme="dark"] .devices-page .change-table .old-value { background: #322533; color: #f0b4c1; }
html[data-theme="dark"] .devices-page .change-table .new-value { background: #17372f; color: #9bd9bf; }

@media (max-width: 1050px) {
  .devices-page .device-layout { grid-template-columns: 230px minmax(0, 1fr); }
  .devices-page .device-history { padding: 1.25rem; }
  .detail-event-nav { padding: .65rem 1rem; }
}
@media (max-width: 720px) {
  .devices-page .device-layout { grid-template-columns: 1fr; }
  .devices-page .device-browser { padding: 1rem; border-right: 0; border-bottom: 1px solid var(--device-border); }
  .devices-page .device-list { display: flex; max-height: none; overflow-x: auto; }
  .devices-page .device-list-item { min-width: 210px; width: 210px; }
  .device-browser-hint { display: none; }
  .devices-page .device-history { padding: 1rem; }
  .devices-page .selected-device-heading { display: block; min-height: 0; margin-bottom: 1.25rem; }
  .selected-device-facts { gap: .6rem; }
  .device-timeline-toolbar { padding: 1rem; }
  .device-timeline-toolbar h2 { flex-basis: 100%; }
  .timeline-expand-button { flex: 1; }
  .devices-page .category-filters { padding: 1rem 1rem 0; }
  .timeline-heading, .devices-page .timeline-footnote { display: block; padding-left: 1rem; padding-right: 1rem; }
  .timeline-heading span, .devices-page .timeline-footnote span { display: block; margin-bottom: .25rem; }
}

/* BackupPSA account adapters; application geometry above comes from the reference. */
:root { --brand-soft-hover:#dfead5; --link-hover-color:#355523; --link-active-color:#2d471f; --focus-ring-color:#456D30; --shadow-brand:rgba(133,187,101,.18); }
html[data-theme="dark"] { --brand-soft-hover:#304528; --link-active-color:#c8dfb8; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
main,.settings-page,.dashboard-page,.snapshot-content { min-width:0; }
h1,h2,h3,p,dd { overflow-wrap:anywhere; }
.header-form { margin:0; }
.workspace-role { border-left:1px solid var(--border); padding-left:.5rem; }
.workspace-list { list-style:none; padding:0; display:grid; gap:1rem; }
.workspace-list a { font-weight:700; }
.auth-card { max-width:32rem; margin:3rem auto; }
.auth-card label { display:block; margin-top:1rem; }
.auth-card input:not([type="hidden"]):not([type="checkbox"]) { display:block; width:100%; min-height:44px; padding:.7rem; font:inherit; border:1px solid var(--border-strong); border-radius:5px; background:var(--surface-page); color:var(--text-primary); }
.auth-card button { width:100%; min-height:44px; margin-top:1.5rem; }
.error { border:1px solid var(--danger); border-left-width:4px; border-radius:5px; padding:1rem; }
.skip-link { position:absolute; top:-8rem; left:1rem; padding:.75rem; background:var(--surface-panel); z-index:20; }
.skip-link:focus { top:1rem; }
@media(max-width:1000px) { .app-header,.header-actions { flex-wrap:wrap; } }
@media(max-width:520px) { .app-header { flex-direction:column; align-items:stretch; } .header-actions { display:flex; min-width:0; } .header-nav { width:100%; overflow-x:auto; padding-bottom:.3rem; } .header-nav a { flex:0 0 auto; } .dashboard-control-grid,.dashboard-chart-grid { grid-template-columns:minmax(0,1fr); } .auth-card { margin:1.5rem auto; } }

/* Dense integration management within the shared customer layout. */
.integration-shell main { margin-top: 1.25rem; }
.integration-workspace { min-width: 0; }
.integration-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.integration-page-heading h1 { margin: 0; font-size: 1.65rem; line-height: 1.2; }
.integration-page-heading p { margin: .3rem 0 0; font-size: .875rem; }
.integration-page-heading .heading-actions { font-size: .875rem; }
.integration-tabs { display: flex; gap: .35rem; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.integration-tabs a { flex: 0 0 auto; padding: .7rem 1rem; border-bottom: 2px solid transparent; color: var(--text-secondary); text-decoration: none; font-size: .9rem; font-weight: 650; }
.integration-tabs a:hover { color: var(--text-primary); background: var(--surface-subtle); }
.integration-tabs a.is-active { border-bottom-color: var(--brand); color: var(--text-primary); }
.activity-workspace { min-width: 0; }
.activity-panel { min-width: 0; scroll-margin-top: 1rem; padding: 1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-panel); }
.activity-panel > h2, .activity-panel > .heading-row { margin-top: 0; }
.activity-workspace:not(.is-enhanced) .activity-panel { margin-bottom: 1rem; }
.integration-workspace [data-integration-panel] { scroll-margin-top: 1rem; min-width: 0; }
.integration-workspace .provider-form { max-width: none; gap: 1rem; }
.integration-workspace .integration-management { margin: 0; padding: 1rem; background: var(--surface-panel); }
.integration-overview-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.integration-overview-heading h2 { margin: 0; font-size: 1.05rem; }
.integration-state-badges { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; }
.integration-state-label { font-size: .8rem; color: var(--text-secondary); }
.integration-overview-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding: 1rem 0; margin: .5rem 0 .75rem; border-bottom: 1px solid var(--border); }
.integration-overview-facts dt { color: var(--text-secondary); font-size: .78rem; }
.integration-overview-facts dd { margin: .4rem 0 0; font-size: .9rem; font-weight: 600; }
.integration-overview-facts dd small { display: block; margin-top: .25rem; font-size: .75rem; font-weight: 400; }
.integration-run-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.integration-workspace .integration-run-actions .integration-secondary-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.integration-workspace .integration-run-actions .integration-summary-status { margin: 0; font-size: .8rem; }
.integration-workspace .integration-run-actions .integration-backup-form { margin: 0; }
.integration-workspace .integration-run-actions button { padding: .55rem .8rem; }
.integration-job-progress { margin: .75rem 0 0; font-size: .85rem; color: var(--text-secondary); }
.integration-workspace .integration-management .integration-backup-reason { margin: .75rem 0 0; }
.integration-workspace .integration-onedrive-send { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .75rem; margin: 1rem 0 0; padding-top: .75rem; border-top: 1px solid var(--border); }
.integration-workspace .integration-onedrive-send p, .integration-workspace .integration-onedrive-send small { margin: 0; font-size: .8rem; }
.integration-options { margin: 1rem 0 0; padding-top: .75rem; border-top: 1px solid var(--border); }
.integration-options > summary { width: fit-content; color: var(--text-secondary); font-size: .85rem; }
.integration-workspace .integration-options .connection-status-actions { margin: .75rem 0 0; }
.integration-workspace .connection-editor-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1rem; }
.integration-workspace .connection-editor-content > p, .integration-workspace .connection-editor-content > .connection-action-row { grid-column: 1 / -1; }
.integration-workspace .connection-editor-content > p { margin: 0; font-size: .85rem; }
.integration-workspace .connection-action-row { padding: .75rem; margin-top: .25rem; gap: .5rem; }
.integration-workspace .connection-action-status { font-size: .8rem; }
.integration-workspace .integration-source-panel { padding: 1rem; background: var(--surface-panel); }
.integration-source-panel h2 { margin: 0 0 .75rem; font-size: 1.05rem; }
.integration-workspace .source-picker-toolbar { align-items: end; flex-direction: row; flex-wrap: wrap; }
.integration-workspace .integration-source-search { flex: 1; min-width: 12rem; max-width: 24rem; font-size: .8rem; }
.integration-source-search input { min-width: 0; width: 100%; }
.integration-workspace [data-source-count] { padding-bottom: .5rem; font-size: .8rem; }
.integration-workspace .source-picker-toolbar .button-row { padding-bottom: .15rem; }
.integration-workspace .source-form { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); max-height: min(44vh, 28rem); gap: .45rem; }
.integration-workspace .source-option-detail { padding: .6rem .7rem; }
.integration-workspace .source-option strong { font-size: .85rem; }
.integration-workspace .source-description { margin-top: .2rem; font-size: .75rem; line-height: 1.35; }
.integration-save-bar { position: sticky; bottom: .75rem; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-panel); box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.integration-save-bar > span { font-size: .8rem; }
.integration-save-bar button { flex: 0 0 auto; }
.integration-workspace:not(.is-enhanced) [data-integration-panel] { margin-bottom: 1rem; }
@media (max-width: 700px) {
  .integration-page-heading { align-items: flex-start; }
  .integration-page-heading .heading-actions { flex-direction: column; align-items: flex-end; gap: .4rem; }
  .integration-overview-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .integration-workspace .connection-editor-content { grid-template-columns: minmax(0, 1fr); }
  .integration-workspace .source-form { grid-template-columns: minmax(0, 1fr); }
  .integration-save-bar { bottom: .5rem; }
}
