:root { color-scheme: dark; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #e4ebe1; background: #0c1413; font-synthesis: none; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; min-height: 100vh; min-height: 100svh; background: radial-gradient(ellipse at 55% 25%, #26352c40, transparent 65%); }
a { color: inherit; }
button, input { font: inherit; }
button, .button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 21px; border: 1px solid #cdc797; border-radius: 5px; background: #d8d7b4; color: #17221c; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
button:hover:not(:disabled), .button:hover { background: #eeebc9; }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #e5dba4; outline-offset: 4px; }
input { display: block; width: 100%; min-width: 0; min-height: 46px; padding: 11px 14px; border: 1px solid #798c754d; border-radius: 5px; background: #0c1613; color: #edf0e3; }
input:disabled { opacity: .55; }
input::placeholder { color: #65776c; }
label { display: block; font-size: 12px; color: #b9c7b9; margin-bottom: 9px; }
.record-page { width: min(1100px, 100%); margin: 0 auto; padding: 0 28px; }
.record-header { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; min-height: 72px; border-bottom: 1px solid #dce6d81c; }
.record-brand { display: inline-flex; justify-self: start; align-items: center; gap: 12px; text-decoration: none; font-size: 15px; font-weight: 650; letter-spacing: .18em; }
.brand-symbol { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #d6bf7450; border-radius: 50%; color: #efb74e; }
.brand-symbol svg { width: 25px; height: 25px; }
.record-header-actions { display: flex; justify-self: end; align-items: center; gap: 16px; }
.record-replay-shortcut { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 5px 10px; border: 1px solid #a7b89c38; border-radius: 6px; background: #d6dfbd08; color: #e4ebe1; text-decoration: none; white-space: nowrap; }
.record-replay-shortcut:hover { border-color: #cfce9a88; background: #d6dfbd18; }
.record-replay-shortcut svg { width: 20px; height: 20px; color: #d6c795; }
.record-replay-shortcut strong, .record-replay-shortcut small { display: block; line-height: 1.3; }
.record-replay-shortcut strong { font-size: 12px; font-weight: 650; }
.record-replay-shortcut small { font-size: 10px; color: #c1d4c2; }
.record-back { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; }
.quiet-link { color: #b3c0b7; font-size: 12px; text-decoration: none; white-space: nowrap; }
.quiet-link:hover { color: #f0e2b3; }
.record-page main { padding-top: 16px; }
.eyebrow { margin: 0 0 13px; color: #b3be9b; font-size: 10px; letter-spacing: .15em; }
.record-title { margin: 0; color: #e9ede0; font-size: clamp(21px, 2.2vw, 30px); font-weight: 500; letter-spacing: .045em; line-height: 1.12; text-align: center; }
h2 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: .03em; }
.muted { color: #96a99c; font-size: 13px; line-height: 1.85; }
.connection-status { min-height: 20px; font-size: 12px; color: #a3b59c; margin: 0 0 17px; }
#navigationStatus { text-align: center; }
.panel { border: 1px solid #a7b89c2b; border-radius: 8px; padding: 26px; margin: 0 0 20px; background: #15211c88; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 24px; }
.input-row { display: flex; gap: 12px; }
.input-row input { flex: 1; }
.input-row button { flex: 0 0 auto; }
.code-input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; letter-spacing: .1em; }
.field-note { color: #91a497; font-size: 12px; line-height: 1.85; margin: 13px 0 0; }
.text-button { background: transparent; color: #c5c8aa; padding: 8px 2px; border: 0; font-size: 12px; font-weight: 400; }
.text-button:hover:not(:disabled) { background: transparent; color: #f2e7bf; }
.secondary { background: #d6dfbd0a; color: #e1e7d2; border-color: #aeb99555; font-weight: 400; }
.secondary:hover:not(:disabled) { background: #d6dfbd18; }
.capture-panel .panel-heading { margin-bottom: 10px; }
.status-badge { display: inline-block; padding: 7px 10px; border-radius: 4px; font-size: 11px; color: #d5c99f; background: #b7a87016; white-space: nowrap; }
.status-badge[data-status="recording"], .status-badge[data-status="completed"] { color: #b9d8a9; background: #b2d98c12; }
.status-badge[data-status="failed"], .status-badge[data-status="interrupted"] { color: #e7ad9c; background: #df9c8c12; }
.capture-identity, .capture-stats { margin: 22px 0 0; display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
dt { font-size: 11px; color: #8c9f90; margin-bottom: 9px; }
dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.capture-identity dd { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; letter-spacing: .045em; }
.capture-stats { border-top: 1px solid #a7b89c22; padding-top: 22px; }
.capture-stats dd { font-size: 24px; color: #d9dfc7; }
.capture-actions { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; margin-top: 24px; }
.lookup-panel { margin-top: 30px; background: transparent; }
.lookup-inputs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 15px; margin: 20px 0 15px; }
.login-panel form { margin-top: 22px; }
.notice { margin: 0 0 20px; padding: 14px 17px; border: 1px solid #9c8c5c66; border-radius: 5px; color: #d9cfad; font-size: 13px; line-height: 1.7; }
.notice.error { color: #e8b8a7; border-color: #ca8c7544; background: #c5785e0a; }
footer { padding: 12px 0 20px; color: #91a497; font-size: 11px; line-height: 1.5; }
.history-group { margin-top: 22px; border-top: 1px solid #a7b89c22; padding-top: 18px; }
.history-group h3 { margin: 0 0 10px; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.history-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.history-row > div { min-width: 0; }
.history-row p { margin: 0 0 6px; font: 12px ui-monospace, monospace; overflow-wrap: anywhere; }
.history-row small { color: #96a99c; font-size: 11px; }
.history-row .button { padding-inline: 12px; }
.record-tools { display: grid; gap: 12px; margin-bottom: 15px; }
.record-tool { min-width: 0; margin: 0; padding: 15px; }
.record-tool-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.record-tool-heading h2 { font-size: 16px; font-weight: 600; }
.record-tool-icon { flex: 0 0 30px; width: 30px; height: 30px; padding: 5px; border-radius: 6px; background: #adbf9a1a; color: #c5d6bc; }
.record-tool label { margin-bottom: 5px; }
.record-tool .input-row { gap: 7px; }
.record-tool input { min-height: 44px; padding: 8px 10px; }
.record-tool button, .record-tool .button { padding: 8px 11px; font-size: 13px; }
.record-tool .field-note { margin-top: 7px; line-height: 1.45; }
.navigation-entry { padding: clamp(18px, 3vw, 32px); border-color: #c9d09a65; background: radial-gradient(ellipse at top left, #d5d58b14, transparent 75%), #18251f; }
.navigation-entry .record-tool-heading { gap: 12px; margin-bottom: 17px; }
.navigation-entry .record-tool-heading h2 { font-size: clamp(21px, 3vw, 28px); color: #f1f1e1; }
.navigation-entry .record-tool-icon { flex-basis: 40px; width: 40px; height: 40px; padding: 7px; background: #e5d09622; color: #f0dba8; }
.navigation-entry label { margin-bottom: 8px; font-size: 13px; }
.navigation-entry .input-row { gap: 10px; }
.navigation-entry input { min-height: 56px; padding-inline: 14px; font-size: 17px; }
.navigation-entry #navigationStart { min-height: 56px; gap: 10px; padding-inline: clamp(14px, 3vw, 30px); font-size: 15px; }
.navigation-entry #navigationStart svg { width: 18px; height: 18px; }
.navigation-entry-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 14px; }
.navigation-entry-help .field-note { margin: 7px 0; }
.navigation-entry-help .text-button { padding-inline: 2px; }
.navigation-entry .navigation-storage { margin-top: 3px; padding-top: 11px; }
.replay-search-tool { display: grid; grid-template-columns: minmax(115px, 1fr) minmax(0, 3fr); align-items: center; gap: 4px 15px; background: #15211c66; }
.replay-search-tool .record-tool-heading { margin: 0; }
.replay-search-tool [role="status"], #replaySearchError { grid-column: 2; }
.replay-search-results:not(:empty) { margin-bottom: 14px; }
#replaySearchMore { margin: 0 0 14px; }
.management-panel { margin-top: 16px; border-top: 1px solid #a7b89c22; padding-top: 7px; }
.history-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.active-row + .active-row { border-top: 1px solid #a7b89c22; }
.active-row small { display: block; overflow-wrap: anywhere; line-height: 1.7; }
.active-row > button { flex-shrink: 0; padding-inline: 12px; }
.active-row[data-selected="true"] p { color: #e1dfb2; }
.navigation-session .panel-heading, #navigationHistoryPanel .panel-heading, #navigationRoomHistory .panel-heading { margin-bottom: 14px; }
.navigation-session h2, #navigationHistoryPanel h2, #navigationRoomHistory h2 { font-size: 17px; }
.navigation-session .navigation-record-row { padding: 0; border: 0; background: transparent; }
.navigation-record-list { display: grid; gap: 9px; }
.navigation-history-hint { margin: -5px 0 15px; font-size: 11px; }
.navigation-record-row { display: flex; align-items: center; justify-content: flex-start; gap: 16px; padding: 12px; border: 1px solid #a7b89c20; border-radius: 7px; background: #0d19145e; }
.navigation-art { position: relative; display: grid; place-items: center; flex: 0 0 76px; width: 76px; height: 76px; overflow: hidden; border-radius: 6px; background: linear-gradient(145deg, #b2a56819, #354c3118); }
.navigation-art img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.navigation-art.is-fallback::after { content: "△"; font-size: 33px; color: #d6c795; }
.navigation-record-content { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 10px 20px; min-width: 0; }
.navigation-record-copy { flex: 0 1 240px; width: 240px; min-width: 0; }
.navigation-record-name, .history-row .navigation-record-name { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0 0 7px; font: inherit; }
.navigation-record-name strong { overflow: hidden; max-width: 165px; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 550; }
.navigation-room-tag { display: inline-block; padding: 3px 6px; border: 1px solid #b6bd8c32; border-radius: 4px; color: #c1c9b5; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .04em; }
.navigation-record-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; color: #8eaa98; font-size: 11px; line-height: 1.6; }
.navigation-record-meta time { color: #91a497; white-space: nowrap; font-variant-numeric: tabular-nums; }
.navigation-history-status { color: #b2c59f; }
.navigation-history-row[data-status="expired"] .navigation-history-status, .navigation-history-row[data-status="unavailable"] .navigation-history-status { color: #baaa8d; }
.navigation-record-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 8px; flex-shrink: 0; margin: 0; }
.navigation-record-actions .button, .navigation-record-actions button { min-height: 40px; padding: 9px 12px; font-size: 12px; }
.navigation-record-actions .quiet-link { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px; }
.navigation-record-actions .text-button { padding-inline: 5px; }
.navigation-retention { margin-top: 15px; padding-top: 12px; border-top: 1px solid #a7b89c18; font-size: 11px; }
.navigation-storage { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #a7b89c22; color: #9eb0a2; font-size: 12px; line-height: 1.55; }
.navigation-storage-label { color: #b3be9b; }
.navigation-storage strong { color: #d9dfc7; font-weight: 600; font-variant-numeric: tabular-nums; }
.navigation-storage[data-state="limited"] strong { color: #e7be8f; }
.navigation-storage[data-state="unavailable"] strong { color: inherit; font-weight: 400; }
.navigation-storage-used { margin-inline-start: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
#navigationHistoryPanel > .eyebrow, #navigationHistoryPanel .panel-heading .eyebrow { display: none; }
#replaySearchError { color: #e8b8a7; }
@media (max-width: 620px) {
  .record-tools { gap: 10px; }
  .navigation-entry .record-tool-heading { margin-bottom: 13px; }
  .navigation-entry #navigationStart { gap: 6px; }
  .replay-search-tool { grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 12px; }
  .replay-search-tool [role="status"], #replaySearchError { grid-column: auto; margin-top: 0; }
}
@media (max-width: 620px) {
  .navigation-storage-used { margin-inline-start: 0; }
  .navigation-record-row { gap: 12px; padding: 10px; }
  .navigation-art { flex-basis: 62px; width: 62px; height: 68px; }
  .navigation-record-content { flex: 1; gap: 8px; }
  .navigation-record-copy { flex-basis: 100%; width: auto; }
  .navigation-record-name strong { max-width: 150px; }
  .navigation-record-actions { flex-shrink: 1; gap: 7px; }
  .navigation-record-actions .button, .navigation-record-actions button, .navigation-record-actions .quiet-link { min-height: 44px; }
}
@media (max-width: 560px) {
  .record-page { padding: 0 14px; }
  .record-header { grid-template-columns: 1fr auto; gap: 6px 8px; padding: 8px 0 12px; }
  .record-title { grid-column: 1 / -1; grid-row: 2; }
  .record-header-actions { grid-column: 2; grid-row: 1; }
  .record-brand { font-size: 12px; gap: 7px; white-space: nowrap; }
  .brand-symbol { width: 33px; height: 33px; }
  .record-header-actions { gap: 9px; }
  .record-replay-shortcut { padding-inline: 7px; }
  .record-page main { padding-top: 12px; }
  .panel:not(.record-tool) { padding: 20px; }
  .input-row { flex-wrap: wrap; }
  .input-row input { flex-basis: 100%; }
  .input-row button { width: 100%; }
  .record-tool .input-row { flex-wrap: nowrap; }
  .record-tool .input-row input { flex-basis: 0; }
  .record-tool .input-row button { width: auto; }
  .lookup-inputs, .capture-identity { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .capture-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capture-actions { gap: 12px; }
  .feature-input { font-size: 14px; }
}
@media (max-width: 365px) {
  .record-brand { font-size: 0; gap: 0; }
  .navigation-entry { padding-inline: 13px; }
  .navigation-entry #navigationStart svg { display: none; }
  .navigation-entry-help .text-button { font-size: 12px; }
}
