.theme-marine {
  --marine: #0d443c;
  --marine-ink: #143732;
  --marine-graphite: #17312f;
  --marine-accent: #12665a;
  --sea-glass: #e8f2ef;
  --seafoam: #c4f0e4;
  --ink: #173632;
  --muted: #405f5a;
  --line: #a8c4be;
  --panel: #f4faf7;
  --violet: var(--marine-accent);
  color-scheme: light;
  background: var(--sea-glass);
}

.theme-marine .topbar {
  border-bottom-color: #377166;
  background: var(--marine);
  color: var(--seafoam);
}

.theme-marine.console-page .topbar {
  border-bottom-color: #a8c4be;
  background: #f3f9f6;
  color: var(--ink);
}

.theme-marine.console-page .top-nav a[aria-current],
.theme-marine .report-row summary {
  color: var(--marine-accent);
}

.theme-marine .panel {
  border-color: var(--line);
  background: var(--panel);
}

.theme-marine .panel :is(label, legend) {
  color: #335953;
}

.theme-marine .panel :is(input:not([type='radio']), select, textarea) {
  border-color: #86a89f;
  background: #fbfefc;
  color: var(--ink);
}

.theme-marine input[type='radio'] {
  accent-color: var(--marine-accent);
}

.theme-marine .button {
  border-color: #8bada5;
  background: #eef6f3;
  color: var(--marine-ink);
}

.theme-marine .button:hover:not(:disabled) {
  background: #deeee8;
}

.theme-marine .button.primary {
  border-color: var(--marine-accent);
  background: var(--marine-accent);
  color: #fcfffe;
  box-shadow: none;
}

.theme-marine .button.primary:hover:not(:disabled) {
  background: var(--marine);
}

.theme-marine .button.danger,
.theme-marine .feedback.error,
.theme-marine .failure-text {
  color: #8d3241;
}

.theme-marine .feedback,
.theme-marine .empty {
  color: #335d55;
}

.theme-marine .hero {
  border-color: #416f61;
  background: linear-gradient(110deg, #143633, var(--marine) 68%, #1d6053);
  color: #f4fcfa;
  box-shadow: none;
}

.theme-marine .hero p:not(.kicker),
.theme-marine .hero .kicker {
  color: var(--seafoam);
}

.theme-marine .workspace-header {
  border-color: #91b2aa;
}

.theme-marine .workspace-motion svg {
  stroke: #438b80;
}

.theme-marine .session-grid .panel-head {
  border-color: #b9d0c8;
}

.theme-marine .activity-panel,
.theme-marine.control-page .cr-log {
  --line: #4a6c65;
  --control-line: #4a6c65;
  border-color: #476a62;
  background: var(--marine-graphite);
  color: #f1fbf7;
}

.theme-marine .activity-panel .panel-head {
  border-color: #4a6c65;
}

.theme-marine .activity {
  border-color: #4a6c65;
  background: #142925;
  scrollbar-color: #79a99d #142925;
}

.theme-marine .activity-summary,
.theme-marine .activity .empty,
.theme-marine .event time,
.theme-marine .cr-log :is(.cr-panel-note, .cr-time, .cr-event-type span, .cr-empty) {
  color: #bedbd2;
}

.theme-marine .event:not(.failed):not(.waiting):not(.passed) strong,
.theme-marine .cr-event-type strong,
.theme-marine .cr-log-link {
  color: #a9e5d4;
}

.theme-marine .status {
  border-color: #acc5bd;
  background: #e8f3ee;
  color: #365951;
}

.theme-marine .activity-panel .status {
  border-color: #6b988b;
  background: #25463d;
  color: #d8f6ec;
}

.theme-marine .status.positive,
.theme-marine .status.passed,
.theme-marine .receipt {
  border-color: #9dbdb0;
  color: #245a47;
}

.theme-marine .status.failed {
  border-color: #cda5a9;
  color: #8d3241;
}

.theme-marine .rank,
.theme-marine .report-row pre {
  border-color: #b1c9c0;
  background: #eaf3ef;
  color: #304e47;
}

.theme-marine :focus-visible {
  outline-color: #167565;
}

.theme-marine :is(.activity, .cr-log-scroll, .cr-log-link, .cr-inverse):focus-visible {
  outline-color: #a1f3dc;
}

.theme-marine.control-page {
  --control-line: #abc4bc;
  --control-surface: #f5fbf8;
  --control-graphite: #163c36;
  --control-quiet: #44615a;
  --control-violet: #12665a;
  --control-live: #176b5f;
  --control-fixture: #507581;
  --control-unknown: #956342;
}

.theme-marine .cr-overview {
  border-color: #3d766b;
  background: var(--marine);
  color: #f1faf6;
}

.theme-marine .cr-overview p {
  color: var(--seafoam);
}

.theme-marine .cr-overview .cr-inverse {
  border-color: #79a89d;
  background: #255950;
  color: #f0fcf8;
}

.theme-marine .cr-overview .cr-inverse:hover:not(:disabled) {
  background: #326b60;
}

.theme-marine .cr-header {
  border-color: #8eb0a7;
}

.theme-marine .cr-table thead th {
  background: #e0eee8;
  color: #34534c;
}

.theme-marine .cr-table tbody tr:is(:focus-within, :hover) {
  background: #e9f3ee;
}

.theme-marine .cr-tag {
  border-color: #abc4bc;
  background: #e9f3ef;
  color: #365951;
}

.theme-marine .cr-tag.cr-live {
  border: 1px solid #8ab8a8;
  background: #d9f0e7;
  color: #194d3e;
}

.theme-marine .cr-tag.cr-fixture {
  border-style: dashed;
  background: #e3edf1;
  color: #355765;
}

.theme-marine .cr-tag.cr-failed {
  border-color: #d3a8ad;
  background: #f7eae9;
  color: #8d3241;
}

.theme-marine .cr-track { fill: #548f8019; }
.theme-marine .cr-bar:hover .cr-track { fill: #548f8033; }
.theme-marine .cr-axis { stroke: #75998e; }
.theme-marine .cr-gridline { stroke: #b6d0c6; }
.theme-marine .cr-bar-fixture { fill: url(#marine-fixture-bar); }
.theme-marine .cr-bar-unknown { fill: url(#marine-unknown-bar); }
.theme-marine .cr-key-fixture { background: repeating-linear-gradient(135deg, #507581 0 2px, #b8d7da 2px 3px); }
.theme-marine .cr-key-unknown { background: radial-gradient(circle at 2px 2px, #f6dbc0 0 1px, transparent 1.2px) 0 0 / 4px 4px #956342; }
.theme-marine .cr-log-scroll { scrollbar-color: #79a99d #142925; }

.theme-marine.desk-page {
  --ink: #e9f5f6;
  --muted: #a8c4ca;
  --line: #496873;
  --panel: #1b3440;
  color-scheme: dark;
  background: #13252f;
}

.theme-marine.desk-page .topbar {
  border-color: #496873;
  background: #172c36;
}

.theme-marine.desk-page .panel {
  border-color: var(--line);
  background: #1b3440;
}

.theme-marine.desk-page .panel :is(label, legend) { color: #c3dfe0; }
.theme-marine.desk-page .panel :is(input:not([type='radio']), select, textarea) { border-color: #60828a; background: #132b36; color: var(--ink); }
.theme-marine.desk-page .button { border-color: #638994; background: #274650; color: #eaf7f8; }
.theme-marine.desk-page .button:hover:not(:disabled) { background: #335461; }
.theme-marine.desk-page .button.primary { border-color: #a8e9dc; background: #a8e9dc; color: #153933; }
.theme-marine.desk-page .button.primary:hover:not(:disabled) { background: #c2f3e9; }
.theme-marine.desk-page .empty,
.theme-marine.desk-page .feedback { color: #a8cacc; }
.theme-marine.desk-page .feedback.error { color: #f6b9c1; }
.theme-marine.desk-page .status { border-color: #597e87; background: #24414a; color: #d5eeed; }
.theme-marine.desk-page .status.positive,
.theme-marine.desk-page .status.passed { color: #a8ecd9; }
.theme-marine.desk-page .status.failed { border-color: #b47a83; color: #f3b5bd; }
.theme-marine.desk-page :focus-visible { outline-color: #aae9dd; }
.theme-marine.desk-page .order-link { color: #a8ecd9; }
