.browse-modes { padding-inline: 10px; gap: 2px; }
.browse-modes button { padding-inline: 4px; font-size: 11px; }
.browse-modes [data-browse-mode="recordings"] { display: flex; align-items: center; justify-content: center; gap: 5px; }
#recordings-count { font-variant-numeric: tabular-nums; font-weight: 600; line-height: 1.2; }
.event-item { position: relative; }
.event-item.is-recordable .event-action { align-self: start; margin-top: 3px; }
.event-record { position: absolute; right: 14px; bottom: 10px; width: 35px; height: 30px; display: grid; place-items: center; background: transparent; color: #81917f; border: 1px solid transparent; border-radius: 6px; }
.event-record svg { width: 17px; height: 17px; }
.event-record:hover { color: #f0be9f; border-color: #68503d; background: #efb57f0b; }
.event-record.is-marked { color: #efb57f; background: #efb57f0d; border-color: #66533c; }
.event-record.is-capturing { color: #f1a48e; border-color: #805448; }
.event-item:has(.is-marked) .event-row { box-shadow: inset 2px 0 #ba8c61; }
.event-item .event-row.selected { box-shadow: inset 2px 0 var(--accent); }
.recordings-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.recording-tools { padding: 22px 18px 12px; }
.recording-tools header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.recording-tools h2 { font-size: 24px; letter-spacing: -.7px; margin: 5px 0 0; }
.recording-tools .eyebrow { color: #d2a67d; font-size: 8px; letter-spacing: 1.4px; }
#recording-summary { color: var(--muted); font-size: 10px; margin: 12px 0 0; }
#recording-list { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #3d4c3d transparent; padding: 2px 12px 14px; }
.recording-card { padding: 15px 13px; background: #181e18; border: 1px solid #2c392b; border-radius: 10px; margin-bottom: 9px; }
.recording-card.is-recording { border-color: #6e513d; background: linear-gradient(130deg,#251f17,#171d17 70%); }
.recording-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #92a08e; font-size: 9px; }
.recording-state { display: inline-flex; align-items: center; gap: 6px; color: #bdcdb3; }
.recording-state i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.state-scheduled { color: #ddbb91; }.state-recording,.state-reconnecting,.state-starting { color: #f0b697; }.state-failed,.state-partial { color: #e3b680; }
.recording-card h3 { margin: 12px 0 6px; font-size: 14px; font-weight: 550; line-height: 1.45; overflow-wrap: anywhere; }
.recording-card-meta { color: #8f9d89; font-size: 10px; line-height: 1.6; margin: 0; }
.recording-detail { font-size: 11px; line-height: 1.6; color: #c6b49a; margin: 10px 0 0; }
.recording-countdown { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #b2bfa9; font-size: 10px; margin-top: 15px; }
.recording-countdown > :last-child { color: #869580; white-space: nowrap; }
.recording-card progress { display: block; width: 100%; height: 3px; margin-top: 8px; border: 0; border-radius: 2px; appearance: none; background: #2b3528; }
.recording-card progress::-webkit-progress-bar { background: #2b3528; border-radius: 2px; }
.recording-card progress::-webkit-progress-value { background: #91b77d; border-radius: 2px; }
.recording-card progress::-moz-progress-bar { background: #91b77d; }
.recording-card progress.expiring::-webkit-progress-value { background: #e5af78; }
.recording-card-actions { display: flex; gap: 7px; margin-top: 16px; }
.recording-card-actions button,.recording-dialog footer button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #3c4935; border-radius: 6px; background: transparent; padding: 8px 11px; color: #bac8af; font-size: 11px; }
.recording-card-actions button.recording-primary,.recording-dialog footer .recording-primary { background: #d1e8bd; color: #1b2917; border-color: #d1e8bd; }
.recording-card-actions .recording-primary { margin-right: auto; }
.recording-folder { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); padding: 10px 18px; color: #a4b298; font-size: 9px; }
#recording-folder { color: #788871; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recording-empty { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 15px; }
.recording-empty > svg { width: 40px; height: 40px; color: #d9ad7f; margin-bottom: 16px; }
.recording-empty h3 { margin: 0 0 10px; font-size: 17px; letter-spacing: -.3px; }
.recording-empty p { color: #97a68f; font-size: 12px; line-height: 1.7; max-width: 250px; margin: 0; }
.recording-empty > span { margin-top: 22px; color: #73816d; font-size: 9px; }
#recording-service-status { margin: 0 18px 12px; color: #d5b38f; font-size: 11px; line-height: 1.5; }
.recording-dialog { color: #e1e9dc; background: #171e17; border: 1px solid #495740; border-radius: 16px; padding: 24px; width: min(440px,calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-shadow: 0 30px 100px #0009; }
.recording-dialog::backdrop { background: #080c08a8; backdrop-filter: blur(5px); }
.recording-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.recording-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 9px; letter-spacing: 1.6px; color: #e5b888; }
.recording-kicker svg { width: 16px; height: 16px; }
.recording-close { width: 32px; height: 32px; color: #a2b198; background: transparent; font-size: 26px; border-radius: 5px; }
.recording-dialog h2 { font-size: 24px; letter-spacing: -.7px; margin: 20px 0 8px; }
.recording-event-name { font-size: 14px; color: #bac9b0; line-height: 1.5; margin: 0 0 24px; }
.recording-duration { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid #34402e; font-size: 13px; }
.recording-duration > span { display: flex; align-items: center; gap: 8px; color: #95a48a; }
.recording-duration input { width: 75px; border-radius: 6px; padding: 10px; color: #dcedcf; background: #0d140c; border: 1px solid #48583d; font-size: 17px; }
.recording-window { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.recording-window span { display: flex; flex-direction: column; gap: 7px; }
.recording-window small { font-size: 8px; letter-spacing: 1.3px; color: #809176; }
.recording-window strong { font-size: 11px; line-height: 1.6; font-weight: 500; }
.recording-retention { font-size: 12px; color: #e4bc8e; margin: 22px 0 12px; padding: 12px; border-radius: 8px; background: #e4bc8e08; border: 1px solid #e4bc8e20; }
.recording-retention span { display: block; color: #a7b29b; font-size: 11px; line-height: 1.6; margin-top: 5px; }
.recording-machine { font-size: 10px; line-height: 1.6; color: #7f9175; margin: 0; }
.recording-dialog footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.recording-dialog footer svg { width: 16px; height: 16px; }
.recording-form-error { color: #f1ba8d; font-size: 12px; line-height: 1.6; }
@media(max-width:740px),(pointer:coarse) and (max-width:1100px) {
  .browse-modes button { font-size: 10px; }
  .event-record { right: 12px; bottom: 8px; width: 40px; height: 32px; }
  .recording-tools { padding: 12px; }.recording-tools header { margin-bottom: 12px; }.recording-tools h2 { font-size: 20px; }
  .recording-folder { padding: 8px 12px; }.recording-card-actions button { min-height: 40px; }
  .recording-dialog { padding: 18px; }.recording-dialog footer button { padding: 11px; }
}
