/* Reference-matched Ocean visual language, with original ServerDesks branding,
   artwork and features. Motion moves light and detail, never entire controls. */
@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/geist-variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/assets/fonts/schibsted-grotesk-variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/assets/fonts/geist-mono-variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #05070d;
  --surface: #0a0e17;
  --border: #ffffff20;
  --text: #f1f2f2;
  --muted: #a3aab9;
  --violet: #3560d7;
  --accent-ink: #0a0e17;
  --green: #51d4b0;
  --red: #ff7a80;
  --card-edge: #ffffff20;
  --card-shadow: none;
  --control-primary: #3560d7;
  --control-primary-hover: #2e53b9;
  --control-primary-pressed: #2e53b9;
  --control-bg: #ffffff06;
  --control-hover: #101621;
  --control-edge: #ffffff20;
  --control-edge-hover: #8791a4;
  --control-ink: #f1f2f2;
  --control-focus: #96acea;
  --ocean-blue: #3560d7;
  --ocean-blue-soft: #3560d714;
  --ocean-panel: #0b1220;
  --ocean-raised: #101621;
  --ocean-sunken: #080b11;
  --ocean-blue-light: #96acea;
  --ocean-ease: cubic-bezier(.22, 1, .36, 1);
}

html { background: var(--bg); }
body { background: var(--bg); color: var(--text); font-family: 'Geist', 'Segoe UI', system-ui, sans-serif; letter-spacing: -.014em; }
button, input, textarea, select, .button, .gate-secondary small,
.preview-sidebar-bottom p, .account-menu-list button, .account-menu-list a {
  font-family: 'Geist', 'Segoe UI', system-ui, sans-serif;
}
body::before {
  background-image: linear-gradient(110deg, #05070bf5, #070a12ec 60%, #05070bf5), url('/assets/desk-landscape.png');
  background-position: center;
  opacity: .8;
}
::selection { background: #3560d7; color: #fff; }
a { color: #a9c0ff; }
a:hover { color: #d6e1ff; }
h1, h2, h3, .metrics strong, .staff-summary strong, .preview-stats strong,
.anticheat-metrics strong, .moderation-summary strong,
.preview-hero-sticker strong { font-family: 'Schibsted Grotesk', 'Segoe UI', system-ui, sans-serif; color: var(--text); font-weight: 600; letter-spacing: -.028em; }
h1 { letter-spacing: -.04em; }
h1 span, .gate-card h1 span { color: #f1f2f2; }
.eyebrow, .nav-label, .header-eyebrow, .detail-label,
code, pre, kbd, .case-id, .product-step-number { font-family: 'Geist Mono', monospace; }
.eyebrow, .nav-label, .header-eyebrow { font-weight: 500; letter-spacing: .14em; }
.desk-icon { filter: grayscale(.8); transition: opacity 180ms ease, filter 180ms ease; }
.nav:hover .desk-icon, .mobile-nav-item:hover .desk-icon { filter: grayscale(.8) brightness(1.1); }
.muted, .lede, .metrics article p, .metrics small, .case-row small,
.readiness-row small, .workspace-shortcut small, .empty,
.product-lede, .product-footer, .product-features p { color: var(--muted); }
.eyebrow, .nav-label, .header-eyebrow, .detail-label,
.overview-heading .eyebrow, .gate-card .eyebrow, .product-hero .eyebrow,
.preview-hero .eyebrow, .canvas-heading .eyebrow { color: #a5b3cf; }

/* Low-contrast framing, without the old raised-card or coloured-outline effect. */
.sidebar, .preview-sidebar {
  background: #080b11f7;
  border-color: var(--border);
  box-shadow: none;
}
.brand, .brand:hover, .gate-brand, .gate-brand:hover { color: #f2f4f8; }
.brand .muted, .gate-brand > span:last-child > span { color: #a0a8b7; }
.topbar, .preview-topbar {
  background: #0a0e17ed;
  border-color: var(--border);
  box-shadow: none;
  border-radius: 16px;
}
.header-location, .preview-location { border-color: var(--border); }
.header-location strong, .preview-location strong, .preview-workspace strong { color: var(--text); }
.preview-location > span, .preview-workspace small { color: var(--muted); }
.topbar .server-symbol, .preview-workspace .server-symbol {
  background-color: #121a2b;
  border-color: #ffffff1f;
  color: #c6d5ff;
}
.topbar .top-actions { border-color: var(--border); }
.panel, .metrics article, .metrics article:first-child,
.metrics article:nth-child(2), .metrics article:nth-child(3), .metrics article:nth-child(4),
.staff-lane, .staff-summary button, .moderation-summary > div,
.moderation-coverage, .insight, .readiness, .checklist, .preview,
.question, .saved-reply-card, .staff-task-card, .staff-comment,
.staff-task-readonly, .anticheat-metrics > button, .anticheat-coverage,
.anticheat-compatibility, .anticheat-alert, .anticheat-adapter,
.product-sticky-note, .product-steps article, .preview-stats button,
.preview-task, .preview-alert, .preview-case-row, .preview-journeys button,
.preview-minecraft, .preview-hero-sticker, .preview-detail-layout > aside,
.preview-message, .preview-message.staff {
  background: linear-gradient(155deg, #080d17, #080b11 75%);
  border-color: var(--border);
  border-width: 1px;
  border-radius: 16px;
  box-shadow: none;
  transform: none;
}
.metrics article { background: linear-gradient(155deg, #0b1220, #080b11 75%); }
.metrics article p span, .metrics article:nth-child(3) p span,
.checklist li::before, .insight .orb, .case-avatar,
.product-step-number, .preview-journey-icon, .onboarding-entry-icon,
.team-canvas-entry-icon {
  background-color: #3560d712;
  border-color: #668ce438;
  color: #b2c6fa;
  box-shadow: none;
  border-width: 1px;
}
.metrics article:has(.metric-link:not([hidden])):hover {
  border-color: var(--control-edge-hover);
  transform: none;
  box-shadow: none;
}
.metric-link:active { background: #ffffff06; }
.metrics strong, .moderation-summary strong, .anticheat-metrics strong,
.preview-stats strong, .product-sticky-note h2, .preview-hero-sticker strong { color: #eef2fa; }
.product-sticky-note, .product-note-icon, .preview-hero-sticker { transform: none; }
.preview-hero-sticker small, .preview-sidebar-bottom small,
.product-sticky-note p:not(.eyebrow), .product-steps p,
.moderation-coverage p, .moderation-coverage li, .anticheat-coverage p,
.anticheat-adapter p, .anticheat-adapter small, .anticheat-alert > footer p,
.preview-alert > p, .preview-task p, .preview-case-row small,
.preview-journeys small, .preview-message p { color: #acb5c5; }
.overview-heading, .product-hero, .preview-hero {
  border: 1px solid #ffffff20;
  border-radius: 24px;
  background: radial-gradient(ellipse at 65% 0, #3560d718, transparent 65%), linear-gradient(100deg, #080b11fc 0%, #080b11ee 48%, #080b11bd 100%), url('/assets/desk-landscape.png') right 82% / cover;
  box-shadow: none;
}
.overview-heading h1 { text-shadow: none; }
.overview-heading .lede, .preview-hero p:not(.eyebrow) { color: #b1b9c8; }
.hero-actions {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #0a0e17d9;
  box-shadow: none;
}
.hero-actions .muted { color: #adb6c8; }
.workspace-shortcut {
  background: linear-gradient(155deg, #080d17, #080b11 75%);
  border-color: var(--border);
  border-radius: 16px;
  border-width: 1px;
  box-shadow: none;
  transform: none;
}
.workspace-shortcut:hover, .workspace-shortcut:active {
  background: #101621;
  border-color: var(--control-edge-hover);
  box-shadow: none;
  transform: none;
}
.shortcut-arrow { color: #aabbe0; }
.shortcut-icon { background: #3560d712; border: 1px solid #668ce438; color: #b2c6fa; }
.workspace-shortcut:nth-child(2) .shortcut-icon { background: #3560d712; border-color: #668ce438; color: #b2c6fa; }

/* Blue workspace actions, off-white hero actions and quiet secondary pills. */
.button, .icon-button, .quick-find, .canvas-tool, .canvas-zoom button {
  border-width: 1px;
  border-radius: 999px;
  min-height: 44px;
  background: var(--control-bg);
  border-color: var(--control-edge);
  color: var(--control-ink);
  box-shadow: none;
  transform: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, opacity 180ms ease;
}
.button {
  padding: 11px 18px;
  font-family: 'Geist', 'Segoe UI', system-ui, sans-serif;
  font-weight: 530;
  letter-spacing: -.011em;
  line-height: 1.4;
}
.button:hover:not(:disabled):not([aria-disabled=true]),
.icon-button:hover:not(:disabled), .quick-find:hover:not(:disabled),
.canvas-tool:hover:not(:disabled), .canvas-zoom button:hover:not(:disabled) {
  background: var(--control-hover);
  border-color: var(--control-edge-hover);
  color: #fff;
  box-shadow: none;
  transform: none;
}
.button:active:not(:disabled):not([aria-disabled=true]),
.icon-button:active:not(:disabled), .canvas-tool:active:not(:disabled),
.canvas-zoom button:active:not(:disabled) {
  background: #0a0e17;
  box-shadow: none;
  transform: none;
}
.button.primary, .button.primary:hover:not(:disabled):not([aria-disabled=true]),
.button.primary:active:not(:disabled):not([aria-disabled=true]) {
  color: #fff;
  border-color: #5478df;
  box-shadow: inset 0 1px 0 #ffffff38;
  transform: none;
}
.button.primary { background: var(--control-primary); }
.button.primary:hover:not(:disabled):not([aria-disabled=true]) { background: var(--control-primary-hover); }
.button.primary:active:not(:disabled):not([aria-disabled=true]) { background: var(--control-primary-pressed); }
:is(.overview-heading, .product-hero, .preview-hero) .button.primary:not(.danger),
.gate-actions .gate-login {
  position: relative;
  isolation: isolate;
  background: #f1f2f2;
  color: #0a0e17;
  border-color: #ffffff70;
  box-shadow: inset 0 1px 0 #fff, 0 4px 16px #00000040;
}
:is(.overview-heading, .product-hero, .preview-hero) .button.primary:not(.danger):hover:not(:disabled):not([aria-disabled=true]),
:is(.overview-heading, .product-hero, .preview-hero) .button.primary:not(.danger):active:not(:disabled):not([aria-disabled=true]),
.gate-actions .gate-login:hover:not(:disabled):not([aria-disabled=true]),
.gate-actions .gate-login:active:not(:disabled):not([aria-disabled=true]) {
  background: #dbe1f0;
  color: #0a0e17;
  border-color: #ffffff70;
  box-shadow: inset 0 1px 0 #fff, 0 4px 16px #00000040;
}
.button.danger, .button.primary.danger {
  color: #ffe4e8;
  background: #632b35;
  border-color: #bd6171;
  box-shadow: none;
}
.button.danger:hover:not(:disabled):not([aria-disabled=true]),
.button.primary.danger:hover:not(:disabled):not([aria-disabled=true]) {
  color: #fff;
  background: #783440;
  border-color: #e78e9e;
}
.button.danger:active:not(:disabled):not([aria-disabled=true]),
.button.primary.danger:active:not(:disabled):not([aria-disabled=true]) { background: #52232c; color: #fff; }
.icon-button { min-width: 44px; width: 44px; min-height: 44px; }
.button:disabled, .button[aria-disabled=true], .icon-button:disabled,
.canvas-tool:disabled, .canvas-zoom button:disabled { opacity: .5; transform: none; box-shadow: none; transition: none; }
.text-button, .ai-draft-button { color: #b6caff; }
.text-button { min-height: 44px; padding: 10px 6px; transition: color 180ms ease, background-color 180ms ease; }
.text-button:hover:not(:disabled) { color: #e2eaff; }
.topbar .header-guide { color: #b6c5e6; }
.topbar .header-guide:hover { color: #fff; }
.topbar .quick-find {
  background: #ffffff06;
  color: #b2bccd;
  border-color: var(--control-edge);
  border-radius: 999px;
}
.topbar .quick-find:hover:not(:disabled) { background: #101621; border-color: var(--control-edge-hover); }
.topbar .quick-find svg, .preview-topbar .button svg { color: currentColor; }
kbd, .topbar .quick-find kbd { color: #a7b3cb; background: #090d15; border-color: var(--border); }

/* Navigation retains its compact layout; selection is cobalt, never purple. */
.nav, .mobile-nav-item, .queue-views button {
  border: 1px solid transparent;
  border-radius: 12px;
  color: #a7b1c3;
  background: transparent;
  box-shadow: none;
  transform: none;
  min-height: 44px;
  font-weight: 530;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.nav:hover, .mobile-nav-item:hover, .queue-views button:hover {
  background: #3560d714;
  border-color: transparent;
  color: #f3f6ff;
  transform: none;
  box-shadow: inset 0 1px 0 #ffffff20;
}
.nav.active, .mobile-nav-item[aria-current=page], .queue-views button[aria-pressed=true] {
  background: var(--ocean-blue-soft);
  border-color: #5b81e657;
  color: #d4dfff;
  box-shadow: none;
}
.nav small { color: #c7d5f5; background: #202b41; }
.nav small.new-label { color: #a4e4cb; background: #75d8b212; }
.queue-views button { border-color: var(--border); border-radius: 999px; background: #0c1019; }
.account { min-height: 54px; padding: 10px 8px; border: 1px solid transparent; border-radius: 12px; color: var(--muted); transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.account:hover, .account[aria-expanded=true] { background: #3560d714; border-color: transparent; box-shadow: inset 0 1px 0 #ffffff20; }
.account strong { color: #edf2fa; }
.avatar { background: #14203a; border-color: #5b81e64d; color: #c2d4ff; }
.help-button { background: #0c1019; border-color: var(--border); color: #a7c0ff; }
.help-button:hover { border-color: var(--control-edge-hover); background: #111827; }
.help-button span { color: #edf2fa; }

/* Native and custom dropdowns share the same dark field and eight-pixel shape. */
input:not([type=checkbox]):not([type=range]), textarea,
select:not(.native-select), .select-trigger, .product-steps select,
.product-preview select, .canvas-item-picker select,
#canvas-note-text, #canvas-font-size, #canvas-note-font-size {
  color-scheme: dark;
  border: 1px solid var(--control-edge);
  border-radius: 8px;
  background-color: #090d15;
  color: #ecf0f8;
  box-shadow: none;
  min-height: 44px;
}
input::placeholder, textarea::placeholder { color: #8794ab; }
label { color: #bbc5d7; }
input:not([type=checkbox]):hover:not(:disabled), textarea:hover:not(:disabled),
select:not(.native-select):hover:not(:disabled), .select-trigger:hover:not(:disabled),
.product-steps select:hover:not(:disabled), .product-preview select:hover:not(:disabled),
.canvas-item-picker select:hover:not(:disabled), #canvas-font-size:hover:not(:disabled), #canvas-note-font-size:hover:not(:disabled) {
  border-color: var(--control-edge-hover);
  background-color: #111827;
}
input:focus, textarea:focus, select:focus,
.select-trigger[aria-expanded=true] {
  border-color: #7195f7;
  box-shadow: none;
}
select:not(.native-select) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23aebbd3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
}
select:not(.native-select) option, .product-preview select option { background: #0d121e; color: #ecf0f8; }
select:not(.native-select):disabled, .product-steps select:disabled, .canvas-item-picker select:disabled {
  opacity: .5;
  cursor: not-allowed;
  background-color: #090d15;
  border-color: var(--control-edge);
  transition: none;
}
.select-menu { background: #101621; border: 1px solid #ffffff20; border-radius: 16px; box-shadow: 0 16px 48px #00000040; transform-origin: top center; }
.select-menu [role=option] { min-height: 44px; color: #c6d0e2; border-radius: 999px; transition: background-color 180ms ease, color 180ms ease; }
.select-menu [role=option][aria-selected=true] { color: #dce6ff; background: #3560d724; }
.select-menu [role=option].highlighted { color: #fff; background: #3560d724; }
.select-menu [role=option][aria-selected=true]::after { color: #96acea; }
.select-trigger svg { color: #aebbd3; }
.topbar .server-picker .select-trigger { min-height: 44px; color: #edf2fa; background: transparent; border-color: transparent; }
.topbar .server-picker .select-trigger:hover:not(:disabled) { background: #ffffff08; border-color: #ffffff26; }
.topbar .server-picker .select-trigger[aria-expanded=true] { background: #3560d712; border-color: #7195f7; }
.topbar .server-picker .select-trigger > svg { color: #aebbd3; }
input[type=checkbox] { background: #090d15; border: 1px solid #ffffff38; accent-color: var(--ocean-blue); }
input[type=checkbox]:checked { background: #3560d7; border-color: #96acea; }
input[type=checkbox]:checked::after { border-color: #fff; }
input[type=range], .canvas-width-label input { accent-color: #3560d7; }

/* Sign-in, product pages, and native dialogs use the same surface language. */
.gate { background: radial-gradient(ellipse at 50% 0, #3560d724, transparent 60%), #05070deb; }
.gate-card { background: linear-gradient(155deg, #0b1220f7, #080b11fa 75%); border: 1px solid #ffffff20; border-radius: 24px; box-shadow: 0 24px 80px #00000040; }
.gate-card h1 { font-weight: 600; letter-spacing: -.04em; line-height: 1.08; }
.gate-card #gate-message { color: #acb6c7; }
.gate-card > p:last-child, .gate-card .gate-privacy { color: #a0acbf; }
.gate-divider { color: #919eb4; }
.gate-divider::before, .gate-divider::after { background: var(--border); }
.gate-card .gate-privacy { border-color: var(--border); }
.gate-privacy svg { color: #a5b9e9; }
.gate-secondary small { color: #a7b0c2; }
dialog, #onboarding-dialog, #canvas-note-dialog {
  background: linear-gradient(135deg, #0b1220, #0a0e17 65%);
  color: #edf2fa;
  border: 1px solid #ffffff20;
  border-radius: 16px;
  box-shadow: 0 20px 64px #00000040;
}
dialog::backdrop, #onboarding-dialog::backdrop, #canvas-note-dialog::backdrop { background: #020409b8; backdrop-filter: blur(5px); }
.dialog-head, .onboarding-top, .onboarding-footer { background: #0d121e; border-color: var(--border); }
.table-head { background: #0d121e; color: #a3b0c6; border-color: var(--border); }
.case-row, .case-row.recent-row { background: #0c1019; border-color: var(--border); border-width: 1px; box-shadow: none; }
.case-row:hover, .recent-row:hover { background: #111827; border-color: var(--control-edge-hover); box-shadow: none; }
.case-row:active { background: #172033; }
.case-row strong { color: #edf2fa; }
.case-row .case-arrow, .case-row:hover .case-arrow { color: #a3b8e8; transform: none; }
.stat-line, .answer, .readiness-row, .moderation-record, .staff-comment-section,
.staff-task-history li, .reply-tools, .anticheat-alert-meta, .preview-alert .button-row { border-color: var(--border); }
.message, .note { background: #0d121e; border: 1px solid var(--border); border-radius: 10px; }
.message.ai-message { background: #3560d70b; border-color: #5b81e64d; }
.message.ai-message header strong, .staff-task-dialog-body aside h3,
.preview-detail-layout > aside h3 { color: #bdd0ff; }
.message p, .note p, .staff-comment p, .moderation-record p { color: #b9c3d4; }
.decision, .placeholder-guide span, .minecraft-key { background: #3560d710; border-color: #5b81e64d; color: #d1ddfa; }
.prose code, .integration-steps code { background: #151e30; color: #c7d7ff; }
.integration-steps li::marker { color: #91b0ff; }
.minecraft-key code { color: #c7d7ff; }
.minecraft-stats > div { background: #0d1b1b; border-color: #75d8b229; }
.product-notice { background: #3560d712; border-color: #5b81e64d; color: #d1ddfa; }
.product-notice[data-tone=success] { background: #11261f; border-color: #75d8b24d; color: #b9eed9; }
.product-notice[data-tone=error] { background: #311b22; border-color: #bd6171; color: #ffcbd6; }
.preview-disclaimer { background: #0c1322f5; border-color: #3560d7; color: #b5c3e0; border-bottom-width: 1px; }
.preview-disclaimer > a { color: #d8e4ff; }
.preview-pill, .preview-mode, .preview-alert-badge, .anticheat-review-state,
.anticheat-adapter-state, .moderation-event, .canvas-shared-badge { background: #3560d710; border-color: #5b81e64d; color: #c7d7ff; }
.preview-mode > span { background: #8aa9ff; }
.badge { border-radius: 6px; }
.badge.claimed { background: #3560d715; border-color: #5b81e64d; color: #c7d7ff; }
.anticheat-metrics > button:hover, .staff-summary button:hover,
.preview-stats button:hover, .preview-case-row:hover, .preview-journeys button:hover {
  background: #111827;
  border-color: var(--control-edge-hover);
  transform: none;
  box-shadow: none;
}
.anticheat-metrics > button[aria-pressed=true], .staff-summary button[aria-pressed=true] { background: #3560d71f; border-color: #5b81e685; }
.anticheat-compatibility > summary { color: #c8d5ef; }
.anticheat-compatibility > summary:hover { background: #111827; }
.tabs button { min-height: 44px; color: #a2aec3; }
.tabs button:hover { color: #e2eaff; }
.tabs .active { color: #b7ccff; border-bottom-color: #6085ed; }
.empty strong { color: #d9e1ef; }
.empty::before { color: #6982b5; }
.chart-legend span::before, .chart-opened { background: #6085ed; fill: #6085ed; }
.chart-grid { stroke: #ffffff20; }
.chart-day { fill: #9eacc3; }
.chart-count { fill: #bdc8d9; }
.onboarding-entry { background: #0c1019; border-color: var(--border); }
.onboarding-sidebar, #onboarding-note { border-color: var(--border); }
#onboarding-progress { background: #182236; }
#onboarding-progress-fill { background: #6085ed; }
#onboarding-steps li[aria-current=step] { color: #d3dfff; }
#onboarding-steps li[aria-current=step] > span { border-color: #7195f7; background: #3560d724; color: #c7d7ff; }
#onboarding-points li::marker { color: #8aa9ff; }
.onboarding-footer .onboarding-skip { background: transparent; border-color: transparent; color: #b0bdcf; }
.onboarding-footer .onboarding-skip:hover { background: #111827; border-color: var(--border); color: #fff; }
.onboarding-entry p, #onboarding-description, #onboarding-points { color: #b5c1d4; }
.onboarding-top > span, #onboarding-note, #onboarding-busy { color: #9facbf; }
.save-bar { background: #0f1625f5; border-color: #5b81e66b; box-shadow: 0 12px 48px #0006; border-width: 1px; border-radius: 14px; }
.settings-grid > * { min-width: 0; }
.checkbox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); background: #090d15; border-color: var(--border); }
.checkbox-grid .check { min-width: 0; overflow-wrap: anywhere; }
.save-bar > span { color: #d5dff4; }
.toast { border-width: 1px; border-radius: 12px; box-shadow: 0 12px 36px #0005; }

/* The editable artwork keeps its saved colours; only the canvas chrome changes. */
.canvas-toolbar, .canvas-bottom { background: #0d121e; border-color: var(--border); }
.canvas-status-row { background: #0a0e17; border-color: var(--border); color: #a5b2c8; }
.canvas-stage { background: #070b12; border-color: var(--border); }
.canvas-tool-group + .canvas-tool-group, .canvas-colors, .canvas-history, .canvas-width-label { border-color: var(--border); }
.canvas-tool[aria-pressed=true] { background: #3560d724; border-color: #7195f780; color: #d3dfff; }
.canvas-color { border-radius: 999px; }
.canvas-color[aria-pressed=true] { border-color: #7195f7; background: #3560d71a; }
.canvas-heading p:not(.eyebrow), .canvas-footnote, #canvas-note-help { color: #a8b5ca; }
.canvas-empty-hint { color: #9faec7; }
.canvas-empty-hint > span { color: #cbd6e8; }
.canvas-drop-hint { background: #0d172be8; border-color: #7195f7; color: #d8e5ff; }
.canvas-dialog-heading > button { min-width: 44px; min-height: 44px; border-radius: 999px; color: #b7c5dc; }
.canvas-dialog-heading > button:hover { background: #1b2230; border-color: var(--control-edge-hover); }
.canvas-dialog-font > label, .canvas-font-tools > label { color: #b8c6dc; }
.team-canvas-entry { background: linear-gradient(110deg, #101b33, #0a0e17); border-color: #5b81e66b; border-radius: 12px; }
.team-canvas-entry .eyebrow { color: #a9c1ff; }
.team-canvas-entry p:not(.eyebrow) { color: #aab7cd; }
.nav.team-canvas-nav, .mobile-nav-item.team-canvas-nav { background: #3560d712; border-color: #5b81e657; color: #c9d7f8; border-radius: 10px; }
.nav.team-canvas-nav:hover, .mobile-nav-item.team-canvas-nav:hover { background: #3560d723; border-color: #7195f7; color: #f2f6ff; }
.nav.team-canvas-nav.active, .nav.team-canvas-nav[aria-current=page],
.mobile-nav-item.team-canvas-nav[aria-current=page] { background: #3560d72e; border-color: #7195f7; color: #e4ecff; }
.nav.team-canvas-nav > .canvas-nav-copy small,
.mobile-nav-item.team-canvas-nav .canvas-nav-copy small { color: #9baed3; }

/* Profile menu: anchored to the account control on desktop, bottom sheet on phones. */
#account-menu-dialog {
  position: fixed;
  inset: auto auto 18px 18px;
  margin: 0;
  width: 290px;
  max-width: calc(100vw - 36px);
  max-height: calc(100dvh - 36px);
  padding: 8px;
  overflow: auto;
  background: #0d121efc;
  border: 1px solid #ffffff2b;
  border-radius: 14px;
  box-shadow: 0 20px 65px #0008;
}
#account-menu-dialog::backdrop { background: #02040960; backdrop-filter: none; }
.account-menu-identity { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 13px 12px 15px; }
.account-menu-identity > div { min-width: 0; flex: 1; }
.account-menu-identity strong, .account-menu-identity small { display: block; overflow-wrap: anywhere; }
.account-menu-identity strong { color: #edf2fa; font-size: 13px; font-weight: 600; }
.account-menu-identity small { color: #95a4bd; font-size: 11px; margin-top: 3px; }
.account-menu-divider { height: 1px; border: 0; margin: 5px 6px; background: var(--border); }
.account-menu-list { display: grid; gap: 4px; }
.account-menu-list button, .account-menu-list a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  width: 100%;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #d4deef;
  font-size: 12px;
  font-weight: 550;
  text-align: left;
  box-shadow: none;
  transform: none;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.account-menu-list button:hover:not(:disabled), .account-menu-list a:hover { background: #ffffff08; border-color: #ffffff1a; color: #fff; }
.account-menu-list button:active:not(:disabled), .account-menu-list a:active { background: #172033; }
.account-menu-list button svg, .account-menu-list a svg { width: 18px; height: 18px; flex: 0 0 18px; color: #9fb7ed; }
.account-menu-list .danger, .account-menu-list [data-account-action=logout] { color: #f0a5b1; background: transparent; }
.account-menu-list .danger:hover:not(:disabled), .account-menu-list [data-account-action=logout]:hover:not(:disabled) { background: #622b3524; border-color: #bd617159; color: #ffced7; }
#team-invite-dialog, #account-settings-dialog { width: 620px; max-width: calc(100vw - 32px); padding: 0; overflow: auto; }
#account-settings-dialog { width: 640px; }
#team-invite-dialog .dialog-head, #account-settings-dialog .dialog-head { padding: 21px 24px; }
#team-invite-dialog form, #account-settings-dialog form,
.invite-dialog-body, .account-settings-body { padding: 22px 24px; }
#team-invite-dialog form > label, #account-settings-dialog form > label { margin-bottom: 17px; }
.invite-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.invite-row:last-child { border-bottom: 0; }
.invite-member { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 1; }
.invite-member > div { min-width: 0; }
.invite-member strong, .invite-member small { display: block; overflow-wrap: anywhere; }
.invite-member strong { font-size: 12px; color: #e5edf9; font-weight: 600; }
.invite-member small { font-size: 11px; color: #9caec9; margin-top: 4px; }
.invite-status { font-size: 11px; line-height: 1.6; color: #a7badb; overflow-wrap: anywhere; }
.invite-status[data-state=accepted] { color: #a4e4cb; }
.invite-status[data-state=expired], .invite-status[data-state=revoked] { color: #9ca6b9; }
.invite-status[data-state=failed] { color: #ffb7c4; }
.invite-results { margin-top: 16px; border-top: 1px solid var(--border); }
.invite-results:empty { display: none; }
.invite-privacy-note { color: #9caec9; font-size: 11px; line-height: 1.8; padding: 13px 15px; border: 1px solid var(--border); border-radius: 8px; background: #080c14; margin: 17px 0 0; }
.account-profile { display: flex; align-items: center; gap: 14px; min-width: 0; margin-bottom: 23px; }
.account-profile > .avatar { width: 48px; height: 48px; border-color: #7195f74d; background: #3560d71f; color: #c7d8ff; font-size: 18px; }
.account-profile > div { min-width: 0; flex: 1; }
.account-profile strong, .account-profile > div > span { display: block; overflow-wrap: anywhere; }
.account-profile strong { font-size: 16px; color: #edf2fa; font-weight: 650; line-height: 1.5; }
.account-profile > div > span { color: var(--muted); font-size: 12px; margin-top: 3px; }
.account-role-badge { padding: 6px 10px; border: 1px solid #668ce449; border-radius: 999px; background: #3560d714; color: #c3d4ff; font-size: 10px; line-height: 1.6; max-width: 42%; overflow-wrap: anywhere; }
#account-settings-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.account-detail { min-width: 0; padding: 15px 16px; background: #080c14; border: 1px solid var(--border); border-radius: 10px; }
.account-detail dt { color: #9aaac2; font-size: 10px; font-weight: 600; letter-spacing: .4px; line-height: 1.6; }
.account-detail dd { margin: 6px 0 0; color: #e8edf6; font-size: 13px; font-weight: 550; line-height: 1.6; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.account-settings-body .invite-privacy-note { margin-top: 20px; font-size: 12px; line-height: 1.75; padding: 15px 16px; }
.account-settings-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding: 18px 24px; border-top: 1px solid var(--border); background: #0a0e17; }
.account-settings-actions .button { margin: 0; }
#account-dialogs dialog[data-motion=opening]::backdrop { animation: account-backdrop-in .19s ease-out both; }
#account-dialogs dialog[data-motion=closing]::backdrop { animation: account-backdrop-out .13s ease-in both; }
@keyframes account-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes account-backdrop-out { from { opacity: 1; } to { opacity: 0; } }

/* Shared case, task and confirmation surfaces; account menus retain their own
   positioning and transition controller. Security-driven closes stay instant. */
dialog[data-dialog-motion=entering]::backdrop { animation: account-backdrop-in 220ms ease-out both; }
dialog[data-dialog-motion=exiting]::backdrop { animation: account-backdrop-out 150ms ease-in both; }
@media (prefers-reduced-motion: reduce) {
  dialog[data-dialog-motion]::backdrop { animation: none; }
}

/* The public page follows the reference's centred display type, blue ambient
   light and floating pill navigation. The landscape remains our own artwork. */
.product-header { position: sticky; top: 0; z-index: 40; padding: 22px 0; }
.product-header::before { content: ''; position: absolute; z-index: -1; inset: 0 calc((100% - 100vw) / 2); background: #05070dc7; backdrop-filter: blur(18px) saturate(1.15); border-bottom: 1px solid #ffffff12; }
.product-header .brand { font-weight: 600; letter-spacing: -.028em; }
.product-nav { display: flex; align-items: center; gap: 4px; padding: 5px; border: 1px solid #ffffff12; border-radius: 999px; background: #0b12208c; box-shadow: inset 0 1px 0 #ffffff12; }
.product-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; color: #a3aab9; font-size: 13px; font-weight: 530; letter-spacing: -.011em; transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease; }
.product-nav a:hover, .product-nav a:focus-visible { background: #3560d714; color: #f1f2f2; box-shadow: inset 0 1px 0 #ffffff20; }
.product-nav a:active { background: #3560d724; }
.product-header .product-sign-in { flex-shrink: 0; background: #3560d7; color: #fff; border-color: #5478df; box-shadow: inset 0 1px 0 #ffffff38; }
.product-header .product-sign-in:hover:not(:disabled):not([aria-disabled=true]),
.product-header .product-sign-in:active:not(:disabled):not([aria-disabled=true]) { background: #2e53b9; color: #fff; border-color: #5478df; box-shadow: inset 0 1px 0 #ffffff38; }
.product-hero { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; min-height: 600px; padding: 76px 40px 38px; overflow: hidden; text-align: center; background: radial-gradient(ellipse at 50% 4%, #3560d72e, transparent 62%), linear-gradient(180deg, #05070de6, #05070deb 68%, #05070dc9), url('/assets/desk-landscape.png') right 82% / cover; }
.product-hero > div { position: relative; z-index: 1; max-width: 820px; min-width: 0; }
.product-hero::before { content: ''; position: absolute; width: min(860px, 125%); aspect-ratio: 1.6; top: -240px; border: 1px solid #96acea12; border-radius: 50%; box-shadow: 0 0 110px 30px #3560d712, inset 0 0 85px #3560d712; pointer-events: none; }
.product-hero h1 { font-size: clamp(46px, 4.8vw + 17px, 78px); font-weight: 600; letter-spacing: -.048em; line-height: .98; margin-bottom: 26px; }
.product-hero .eyebrow { margin-bottom: 24px; }
.product-lede { margin-inline: auto; max-width: 570px; font-size: 18px; line-height: 1.65; letter-spacing: -.018em; }
.product-hero .button-row { justify-content: center; }
.product-sticky-note { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 7px 14px; align-items: center; width: min(100%, 660px); padding: 18px 22px; margin: 0; text-align: left; background: #0a0e17bd; border-color: #ffffff12; border-radius: 16px; }
.product-sticky-note .product-note-icon { grid-column: 1; grid-row: 1 / span 3; width: 36px; height: 36px; margin: 0; }
.product-sticky-note .eyebrow { grid-column: 2; margin: 0; font-size: 9px; }
.product-sticky-note h2 { grid-column: 2; margin: 0; font-size: 18px; line-height: 1.3; }
.product-sticky-note h2 br { display: initial; }
.product-sticky-note p:not(.eyebrow) { grid-column: 2; font-size: 12px; line-height: 1.6; margin: 0; }
.product-sticky-note p:not(.eyebrow) br { display: initial; }
.product-sticky-note > .badge { grid-column: 3; grid-row: 1 / span 3; justify-self: end; }
.product-features { gap: 18px; margin-top: 26px; }
.product-features article { border-radius: 24px; padding: 28px; }
.product-features h2 { font-weight: 560; letter-spacing: -.028em; font-size: 20px; }
.product-features p { font-size: 15px; line-height: 1.7; letter-spacing: -.014em; }
.product-features article > span:not(.desk-icon-frame) { color: #96acea; background: #3560d710; border-color: #96acea20; }
#product-features, #owner-setup { scroll-margin-top: 115px; }
.product-setup { border-radius: 24px; }
.product-setup-heading h2 { font-weight: 600; letter-spacing: -.04em; }
.product-steps h3 { font-weight: 560; }

/* Finish the shared surface language in the old, more-specific states too. */
.staff-task-card:hover { background: #101621; border-color: #ffffff30; transform: none; box-shadow: none; }
.staff-task-card, .staff-task-open, .case-row, .tabs button, .canvas-dialog-heading > button,
.anticheat-compatibility > summary, .help-button, .preview-case-row,
input:not([type=checkbox]):not([type=range]), textarea, select:not(.native-select), .select-trigger {
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, opacity 180ms ease;
}
.staff-task-open:hover, .staff-task-open:active { background: #ffffff04; }
.staff-lane > header > span { background: #ffffff06; color: #a3aab9; border: 1px solid #ffffff12; }
.staff-lane[data-status=in_progress] > header h2::before { background: #3560d7; }
.staff-task-top > small { color: #96acea; }
.staff-task-notice, .anticheat-warning, .preview-warning { background: #e6be560c; border-color: #e6be5630; color: #e3cd94; }
.canvas-notice { background: #ff7a800e; border-color: #ff7a8030; color: #ffb6ba; }
.ai-preview-result { background: #0a0e17; border-color: #96acea30; }
.ai-preview-result::before { color: #96acea; }
.usage-line { background: #080b11; border-color: #ffffff12; color: #a3aab9; }
.confirm-icon { background: #3560d710; border-color: #96acea30; color: #96acea; }
.preview-sidebar-bottom p { color: #f1f2f2; font-weight: 560; }
.preview-hero-sticker strong { font-weight: 600; }
.onboarding-entry, .team-canvas-entry { border-radius: 16px; }
.account-menu-list button, .account-menu-list a { border-radius: 10px; transition-duration: 180ms; }
.account-menu-list button:hover:not(:disabled), .account-menu-list a:hover { background: #3560d714; border-color: #ffffff20; }
.account-menu-list button:active:not(:disabled), .account-menu-list a:active { background: #0a0e17; }
#account-menu-dialog { padding: 12px; border-radius: 16px; background: linear-gradient(135deg, #0b1220, #0a0e17 65%); border-color: #ffffff20; box-shadow: 0 20px 64px #00000040; }
.account-menu-list [data-account-action=logout]:hover:not(:disabled) { background: #ff7a800e; border-color: #ff7a8030; }
.tabs button:hover { background: #3560d714; }
.tabs button:active { background: #3560d724; }
.nav:active, .mobile-nav-item:active, .queue-views button:active { background: #3560d724; color: #fff; }
.nav:disabled, .mobile-nav-item:disabled, .queue-views button:disabled,
.nav[aria-disabled=true], .mobile-nav-item[aria-disabled=true], .queue-views button[aria-disabled=true] {
  background: transparent;
  border-color: transparent;
  color: #a7b1c3;
  box-shadow: none;
  transform: none;
  opacity: .5;
  cursor: not-allowed;
  transition: none;
}
.nav.active:disabled, .mobile-nav-item[aria-current=page]:disabled,
.queue-views button[aria-pressed=true]:disabled {
  background: var(--ocean-blue-soft); border-color: #5b81e657; color: #d4dfff;
}
.nav.team-canvas-nav:disabled, .mobile-nav-item.team-canvas-nav:disabled {
  background: #3560d712; border-color: #5b81e657; color: #c9d7f8;
}
.nav.team-canvas-nav.active:disabled, .mobile-nav-item.team-canvas-nav[aria-current=page]:disabled {
  background: #3560d72e; border-color: #7195f7; color: #e4ecff;
}
:is(.workspace-shortcut, .staff-summary button, .anticheat-metrics > button,
  .preview-stats button, .preview-journeys button, .preview-case-row):disabled {
  background: linear-gradient(155deg, #080d17, #080b11 75%);
  border-color: var(--border);
  color: var(--muted);
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  transition: none;
}
.staff-summary button[aria-pressed=true]:disabled, .anticheat-metrics > button[aria-pressed=true]:disabled {
  background: #3560d71f; border-color: #5b81e685;
}
.quick-find:active:not(:disabled), .topbar .quick-find:active:not(:disabled),
.text-button:active:not(:disabled), .help-button:active:not(:disabled) { background: #0a0e17; }
.case-row .case-arrow { transition: color 180ms ease, transform 180ms ease; }
.case-row:hover .case-arrow { transform: translateX(2px); }
.shortcut-arrow { transition: color 180ms ease, transform 180ms ease; }
.workspace-shortcut:hover .shortcut-arrow { transform: translateX(2px); }

/* One-time scroll entrances are opt-in on public presentation pages only.
   Without JavaScript, reduced motion, or intersection support, content remains
   readable in its normal position. JavaScript owns cancellable entrance frames. */
@media (prefers-reduced-motion: no-preference) {
  :is(.product-landing, .product-preview) [data-reveal-state=pending] { opacity: 0; transform: translateY(18px); }
}
@media print {
  :is(.product-landing, .product-preview) [data-reveal] { opacity: 1 !important; transform: none !important; }
}
.presentation-demo-toggle { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 8px 9px; color: #a3aab9; background: transparent; border: 1px solid transparent; border-radius: 8px; font: inherit; font-size: 10px; cursor: pointer; }
.presentation-demo-toggle:hover:not(:disabled) { color: #f1f2f2; background: #ffffff06; border-color: #ffffff12; }
.presentation-demo-toggle:focus-visible { outline: 2px solid #96acea; outline-offset: 2px; }
.presentation-demo-toggle:disabled { cursor: default; color: #8791a4; }
.presentation-demo-toggle:disabled:not([data-motion-control=ready]) { visibility: hidden; }
.onboarding-coach, .onboarding-coach[data-placement] { font-family: 'Geist', 'Segoe UI', system-ui, sans-serif; background: #0a0e17; border-color: #96acea60; }
#onboarding-coach-title { font-family: 'Schibsted Grotesk', 'Segoe UI', system-ui, sans-serif; font-weight: 600; }
#canvas-note-text, #canvas-font-size, #canvas-note-font-size, .canvas-item-picker select { font-family: 'Geist', 'Segoe UI', system-ui, sans-serif; }
#mobile-nav-dialog { background: linear-gradient(135deg, #0b1220, #0a0e17 65%); }
#mobile-nav-dialog[open] { animation: ocean-mobile-panel 240ms ease-out; }
#mobile-nav-dialog[open] .mobile-nav-item { animation: ocean-mobile-item 200ms ease-out backwards; }
#mobile-nav-dialog[open] .mobile-nav-item:disabled,
#mobile-nav-dialog[open] .mobile-nav-item[aria-disabled=true] { animation: none; opacity: .5; }
#mobile-nav-dialog[open] .mobile-nav-item:nth-child(2) { animation-delay: 25ms; }
#mobile-nav-dialog[open] .mobile-nav-item:nth-child(3) { animation-delay: 50ms; }
#mobile-nav-dialog[open] .mobile-nav-item:nth-child(4) { animation-delay: 75ms; }
#mobile-nav-dialog[open] .mobile-nav-item:nth-child(5) { animation-delay: 100ms; }
#mobile-nav-dialog[open] .mobile-nav-item:nth-child(n+6) { animation-delay: 125ms; }
@keyframes ocean-mobile-panel { from { opacity: 0; clip-path: inset(0 0 100%); } to { opacity: 1; clip-path: inset(0); } }
@keyframes ocean-mobile-item { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.product-hero h1, .gate-card h1 { animation: ocean-heading-in 560ms var(--ocean-ease) both; }
@keyframes ocean-heading-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Small, measured motion: the arrow moves, the button does not. The conic
   highlight only runs while the hero CTA is on screen (motion.js). */
.ocean-control-arrow { display: inline-block; transition: transform 180ms ease; }
.button:hover:not(:disabled):not([aria-disabled=true]) .ocean-control-arrow { transform: translateX(2px); }
@property --ocean-shimmer-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
:is(.overview-heading, .product-hero, .preview-hero) .button.primary:not(.danger)::before,
.gate-login::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: conic-gradient(from var(--ocean-shimmer-angle), transparent 0deg 280deg, #96acea 320deg, #fff 345deg, transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: .85;
  animation: ocean-control-shimmer 6.5s linear infinite paused;
}
:is(.overview-heading, .product-hero, .preview-hero) .button.primary.ocean-shimmer-running::before,
.gate-login.ocean-shimmer-running::before { animation-play-state: running; }
:is(.overview-heading, .product-hero, .preview-hero) .button.primary:disabled::before,
.gate-login[aria-disabled=true]::before { animation-play-state: paused; opacity: .2; }
@keyframes ocean-control-shimmer { to { --ocean-shimmer-angle: 360deg; } }

/* A pointer-following blue wash and fine rim, never a card lift. Coarse-pointer
   and reduced-motion users receive the same quiet static card styling. */
.ocean-pointer-card { position: relative; isolation: isolate; }
.ocean-pointer-card::before, .ocean-pointer-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 160ms ease; }
.ocean-pointer-card::before { z-index: -1; background: radial-gradient(360px circle at var(--ocean-pointer-x, 50%) var(--ocean-pointer-y, 50%), #3560d724, transparent 75%); }
.ocean-pointer-card::after { z-index: 1; padding: 1.25px; background: radial-gradient(260px circle at var(--ocean-pointer-x, 50%) var(--ocean-pointer-y, 50%), #96acea94, transparent 78%); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; }
.ocean-pointer-card:disabled::before, .ocean-pointer-card:disabled::after,
.ocean-pointer-card[aria-disabled=true]::before, .ocean-pointer-card[aria-disabled=true]::after { opacity: 0 !important; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ocean-pointer-card.ocean-pointer-active::before, .ocean-pointer-card.ocean-pointer-active::after,
  .ocean-pointer-card:focus-within::before, .ocean-pointer-card:focus-within::after { opacity: 1; }
}

/* Clear keyboard rings must survive older component-specific focus declarations. */
:is(button, a, input, textarea, select, summary):focus-visible,
.topbar :is(.select-trigger, .quick-find, .header-guide, #account-menu-mobile):focus-visible,
.canvas-tool:focus-visible, .canvas-color:focus-visible, .canvas-zoom button:focus-visible,
.canvas-stage:focus-visible, #canvas-note-text:focus-visible,
#canvas-font-size:focus-visible, #canvas-note-font-size:focus-visible,
.anticheat-alert:focus, .account-menu-list button:focus-visible {
  outline: 3px solid var(--control-focus);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .overview-heading, .product-hero, .preview-hero { border-radius: 20px; }
  .panel, .staff-lane, .moderation-coverage, .insight { border-radius: 16px; }
  .product-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 8px; padding: 16px 0; }
  .product-header .brand { font-size: 18px; min-width: 0; }
  .product-header .brand-mark { width: 30px; height: 30px; }
  .product-header > .button { font-size: 12px; padding: 10px 12px; }
  .product-nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; width: 100%; }
  .product-nav a { flex: 1; padding: 10px 8px; font-size: 12px; }
  .product-hero { display: flex; min-height: 0; padding: 52px 20px 26px; gap: 24px; }
  .product-hero h1 { font-size: clamp(39px, 8vw + 12px, 58px); letter-spacing: -.048em; line-height: 1.02; }
  .product-lede { font-size: 16px; line-height: 1.65; }
  .product-hero .button-row { flex-direction: column; align-items: stretch; }
  .product-hero .button-row .button { width: 100%; }
  .product-sticky-note { grid-template-columns: 30px minmax(0, 1fr); gap: 7px 10px; padding: 16px; margin: 0; }
  .product-sticky-note .product-note-icon { width: 30px; height: 30px; }
  .product-sticky-note h2 { font-size: 16px; }
  .product-sticky-note > .badge { grid-column: 2; grid-row: auto; justify-self: start; }
  .product-features article { padding: 24px; border-radius: 20px; }
  #product-features, #owner-setup { scroll-margin-top: 150px; }
  .topbar .top-actions { border-top-color: var(--border); }
  #mobile-menu { min-height: 44px; }
  .hero-actions .button { min-height: 44px; }
  #account-menu-dialog { inset: auto 12px 12px; width: auto; max-width: none; max-height: calc(100dvh - 24px); border-radius: 16px; padding: 10px; }
  #account-menu-dialog::backdrop { background: #02040999; }
  #team-invite-dialog .dialog-head, #account-settings-dialog .dialog-head { padding: 18px; }
  #team-invite-dialog form, #account-settings-dialog form,
  .invite-dialog-body, .account-settings-body { padding: 18px; }
  .invite-row { flex-wrap: wrap; align-items: flex-start; }
  .invite-row > .button { margin-left: auto; }
  .account-settings-actions { padding: 17px 18px; }
  .account-settings-actions .button { flex: 1 1 auto; }
  .account-profile { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px 12px; }
  .account-role-badge { grid-column: 2; justify-self: start; max-width: 100%; margin-left: 0; }
  #account-settings-details { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .checkbox-grid { grid-template-columns: minmax(0, 1fr); }
  .product-header .brand { font-size: 16px; gap: 6px; }
  .product-header > .button { font-size: 11px; padding-inline: 11px; }
  .product-hero h1 { font-size: 39px; }
  .product-sticky-note { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .product-sticky-note .product-note-icon { display: none; }
  .product-sticky-note .eyebrow, .product-sticky-note h2, .product-sticky-note p:not(.eyebrow), .product-sticky-note > .badge { grid-column: 1; }
  .product-sticky-note > .badge { justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ocean-control-arrow, .shortcut-arrow, .case-row:hover .case-arrow { transform: none !important; }
  .ocean-pointer-card::before, .ocean-pointer-card::after { opacity: 0 !important; }
}
@media (forced-colors: active) {
  :is(button, a, input, textarea, select, summary):focus-visible { outline-color: Highlight; }
  .button.primary, .nav.active, .canvas-tool[aria-pressed=true] { border: 1px solid Highlight; }
}
