body:not(.shopping-mode) {
  --bg: #161a1f;
  --panel: #23292f;
  --edge: #39414a;
  --soft: #abb7c4;
  --text: #f1f4f7;
  --mint: #9ec5ff;
  color-scheme: dark;
}
body:not(.shopping-mode) .wrap { width: min(96%, 1740px); }
body:not(.shopping-mode) .mast { background: #191e24; border-color: #333a42; }
body:not(.shopping-mode) .mast-inner { height: 61px; }
body:not(.shopping-mode) .brand-symbol img { filter: brightness(0) invert(1); }
body:not(.shopping-mode) .desktop { align-self: stretch; }
body:not(.shopping-mode) .desktop a { border-radius: 0; border-block: 2px solid transparent; }
body:not(.shopping-mode) .desktop a.active { background: none; color: #fff; border-bottom-color: #77a9eb; }
body:not(.shopping-mode) .store-link { color: #f0f4f9; background: transparent; border: 1px solid #5b6878; border-radius: 3px; }
body:not(.shopping-mode) .store-link:hover { background: #2c343e; }
body:not(.shopping-mode) main { padding-block: 17px 0; }
.recorder-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.recorder-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.recorder-title h1 { font-weight: 600; font-size: clamp(1.5rem, 2.2vw, 2.15rem); line-height: 1.5; margin: 0; }
.recorder-title>span, .recorder-clock>span { font-size: .9rem; color: #bdc5ce; }
.recorder-clock { display: flex; align-items: baseline; gap: 9px; white-space: nowrap; }
.recorder-clock time { font: .97rem/1.5 var(--mono); color: #d8e2ed; }
#room { border: 1px solid #404851; background: #1a1f24; }
.recorder-bar { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 11px; background: #2b323a; border-bottom: 1px solid #404851; }
.recorder-mode { display: flex; align-items: center; gap: 8px; color: #e6ebef; }
.recorder-mode bdi { font: 600 .9rem/1.4 var(--mono); letter-spacing: .035em; }
.recorder-mode .ic { height: 18px; width: 18px; color: #bdc6d0; }
.recorder-nav button, .transport button, #player button { min-height: 38px; padding: 3px 11px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 2px; color: #d9e1e9; font-size: .92rem; }
.recorder-nav button:hover, .transport button:hover, #player button:hover { background: #3a444f; }
.recorder-nav .ic,.transport .ic,#player .ic { width: 17px; height: 17px; }
.monitor-zone { display: grid; grid-template-columns: minmax(0, 1fr) clamp(218px, 20vw, 305px); align-items: start; }
.monitor { min-width: 0; background: #080a0c; }
.wall { display: grid; direction: rtl; width: 100%; aspect-ratio: 16/9; grid-template-columns: minmax(0, 1fr); background: #040506; }
.wall.grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); gap: 2px; }
.feed { position: relative; display: block; overflow: hidden; min-width: 0; min-height: 0; align-self: stretch; height: 100%; width: 100%; padding: 0; border: 0; background: #080a0c; color: white; text-align: start; isolation: isolate; }
.feed .surface, .feed .surface>video, .feed .surface>img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.feed .surface>video, .feed .surface>img { object-fit: contain; }
.wall.grid .feed.selected::after, .wall.grid .feed.active::after { content: ''; position: absolute; inset: 0; border: 2px solid #85b7fa; pointer-events: none; z-index: 2; }
.wall .feed:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
.cam-top, .cam-bottom { position: absolute; z-index: 1; inset-inline: 10px; display: flex; align-items: center; pointer-events: none; }
.cam-top { top: 9px; justify-content: flex-end; }
.cam-bottom { bottom: 8px; justify-content: space-between; direction: rtl; }
.cam-id, .timecode, .cam-title { color: #fff; background: rgb(0 0 0 / .65); border-radius: 1px; padding: 1px 5px; text-shadow: 0 1px 1px #111; }
.cam-id, .timecode { font: 500 .82rem/1.52 var(--mono); letter-spacing: .01em; direction: ltr; unicode-bidi: isolate; }
.cam-title { font-size: clamp(.88rem,1.1vw,1.08rem); line-height: 1.5; }
.cam-title strong { font-weight: 500; }
.cam-title small:empty { display: none; }
.transport { display: flex; align-items: center; gap: 10px; padding: 4px 9px; border-top: 1px solid #434b55; background: #262d34; min-height: 46px; }
.layout-control, .screen-tools { display: flex; align-items: center; gap: 2px; }
.screen-tools { margin-inline-start: auto; }
.layout-control button[aria-pressed=true] { box-shadow: inset 0 -2px #82b3f1; color: #fff; background: #363f4b; }
.transport .icon-btn { width: 40px; padding: 6px; }
.camera-choice { max-width: 220px; min-width: 75px; }
.camera-choice select { appearance: none; display: block; width: 100%; padding: 4px 7px 4px 23px; min-height: 32px; border: 1px solid #535d68; border-radius: 2px; font: inherit; font-size: .87rem; color: #e9edf2; background: #232a31 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23e0e3e8'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat left 7px center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.journal { min-width: 0; align-self: stretch; display: flex; flex-direction: column; background: #21272d; border-inline-start: 1px solid #404851; }
.journal-head { padding: 13px 13px 6px; }
.journal h2 { font-size: 1.08rem; line-height: 1.6; }
.filters { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 7px; }
.filters button { font-size: .86rem; line-height: 1.5; color: #bdc6cf; min-height: 31px; padding: 3px 7px; border-bottom: 2px solid transparent; }
.filters button[aria-pressed=true] { color: #ecf3ff; border-color: #92bfff; }
#events { padding: 0 13px; }
.event { display: grid; width: 100%; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 2px 8px; text-align: right; min-height: 62px; padding: 8px 0; border-block-start: 1px solid #3b424b; }
.event .event-info { grid-column: 1; grid-row: 1; display: grid; gap: 1px; }
.event-info b { font-weight: 500; font-size: .97rem; color: #eff3f7; }
.event-meta { color: #aab6c2; font-size: .83rem; }
.event-time { grid-row: 1; grid-column: 2; color: #bbc9d8; font: .81rem/1.4 var(--mono); }
.event-glyph { display: none; }
.event:hover, .event.active { background: #303b47; }
.event.active .event-info b { color: #afd0ff; }
.source-access { margin-top: auto; padding: 14px 13px 5px; }
.source-access details { border-top: 1px solid #424952; font-size: .88rem; }
.source-access summary { cursor: pointer; padding: 10px 0; color: #c5cfd8; }
#creditList { font-size: .875rem; line-height: 1.55; color: #c5cfd8; max-height: 220px; overflow: auto; }
#creditList p, #creditList li { margin: 0 0 9px; }
#creditList a { color: #b6d7ff; text-decoration: underline; text-underline-offset: 3px; }
#player, #player .playbar, #player .clip-pager { display: flex; align-items: center; gap: 7px; }
#player { direction: ltr; padding: 6px 11px; border-top: 1px solid #414954; background: #222930; }
#player .playbar { flex: 1; min-width: 0; }
#player .clip-pager { border-left: 1px solid #434c56; padding-left: 8px; }
#player button { width: 38px; padding: 0; }
#player button:disabled { opacity: .4; }
#player .previous .ic { transform: rotate(180deg); }
.track-time,.clip-ordinal { color: #d0d9e4; font: .83rem/1.4 var(--mono); }
.timeline { flex: 1; min-width: 0; height: 30px; accent-color: #86b5f7; }
body.lock-screen { overflow: hidden; }
.monitor.maximized { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: #080a0d; }
.monitor.maximized .wall { flex: 1; min-height: 0; aspect-ratio: auto; }
body:not(.shopping-mode) footer { padding-block: 16px; }
#viewnote:empty { display:none; }
@media (min-width: 1550px) {
  .monitor-zone { grid-template-columns: minmax(0,1fr) 300px; }
}
@media (max-width: 980px) {
  .monitor-zone { grid-template-columns: minmax(0,1fr) 207px; }
  .transport { gap: 5px; }
  .transport button { padding: 3px 6px; }
  .camera-choice { max-width: 136px; }
}
@media (max-width: 760px) {
  body:not(.shopping-mode) .mast-inner { height: 54px; }
  body:not(.shopping-mode) main { padding-top: 12px; }
  body:not(.shopping-mode) .wrap { width: 95%; }
  .recorder-heading { margin-bottom: 10px; }
  .recorder-title { display: block; }
  .recorder-title h1 { font-size: 1.55rem; }
  .recorder-title>span,.recorder-clock>span { font-size: .84rem; }
  .recorder-clock { display: grid; gap: 0; text-align: left; }
  .recorder-bar { min-height: 36px; padding-inline: 8px; }
  .monitor-zone { grid-template-columns: minmax(0,1fr); }
  .journal { border-inline: 0; border-top: 1px solid #424a55; }
  .journal-head { padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
  .filters { margin: 0; }
  .journal-head,.source-access { padding-inline: 10px; }
  #events { padding-inline: 10px; }
  .event { min-height: 51px; padding-block: 6px; }
  .event .event-info { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 9px; }
  .source-access { padding-top: 5px; }
  .wall.grid { gap: 1px; }
  .cam-top,.cam-bottom { inset-inline: 4px; }
  .cam-top { top: 4px; } .cam-bottom { bottom: 4px; }
  .cam-id,.timecode { font-size: .72rem; }
  .cam-title { font-size: .79rem; }
  .transport { gap: 3px; padding: 2px 3px; }
  .transport button,.layout-control button,.recorder-nav button { min-height: 40px; }
  .layout-control span,.screen-tools #playWall span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .transport .icon-btn,.transport #playWall,.layout-control button { width: 38px; }
  .camera-choice { max-width: none; flex: 1; margin-inline: 4px; }
  .camera-choice select { min-height: 36px; }
  #player { gap: 3px; padding-inline: 4px; }
  #player .clip-pager { padding-left: 4px; gap: 1px; }
  #player button { width: 32px; }
  #player .clip-ordinal { display: none; }
}
@media (prefers-reduced-motion:reduce) {
  .feed { scroll-behavior: auto; }
}
#creditList ol { padding-inline-start: 20px; }
#creditList li { margin-bottom: 12px; }
