:root {
  color-scheme: dark;
  --bg: #141a20;
  --panel: #1b222a;
  --surface: #222c35;
  --rule: #374652;
  --text: #eff5f5;
  --sub: #b2c3cb;
  --accent: #a9e8cf;
  --on-accent: #10251d;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--text); background: var(--bg); }
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(100% - 46px, 1080px); margin-inline: auto; }
.mast { border-bottom: 1px solid var(--rule); }
.mast-row { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 20px; letter-spacing: -.035em; }
nav { display: flex; gap: 7px; }
nav a { padding: 6px 9px; color: var(--sub); text-decoration: none; font-size: 13px; border-radius: 6px; }
nav a[aria-current], nav a:hover { color: var(--accent); background: var(--surface); }
.heading { padding-block: 31px 22px; }
.eyebrow { margin: 0; color: var(--accent); font: 700 11px/1.4 ui-monospace, monospace; letter-spacing: .12em; }
.heading .eyebrow span { display: inline-block; width: 7px; height: 7px; margin-inline-end: 4px; border-radius: 50%; background: var(--accent); }
h1 { margin: 8px 0; font-size: clamp(36px, 6.5vw, 62px); line-height: 1; letter-spacing: -.066em; }
.heading > p:last-child { margin: 0; color: var(--sub); max-width: 60ch; line-height: 1.53; }
.desk { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(250px, 1fr); gap: 14px; align-items: start; }
.panel { min-width: 0; border: 1px solid var(--rule); border-radius: 13px; background: var(--panel); }
.viewer { padding: 12px; }
.panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 0 10px; }
.badge, .count { color: var(--sub); border: 1px solid var(--rule); border-radius: 5px; padding: 4px 7px; font: 600 11px/1.25 ui-monospace, monospace; white-space: nowrap; }
video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #10161c; border-radius: 6px; object-fit: contain; }
.viewer-info { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px 14px; padding: 12px 1px 2px; }
.clip-copy { min-width: 0; }
h2 { margin: 0; font-size: 22px; line-height: 1.1; letter-spacing: -.034em; overflow-wrap: anywhere; }
.metadata, .feedback { margin: 5px 0 0; color: var(--sub); font: 600 12px/1.45 ui-monospace, monospace; }
.feedback:empty { display: none; }
.download { display: inline-flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 6px; text-decoration: none; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 750; }
.download:hover { background: #c4f7e2; }
.shelf { padding: 14px; }
.shelf-head { display: flex; align-items: end; justify-content: space-between; gap: 7px; }
.shelf h2 { margin-top: 4px; }
.count { margin: 0; }
.clip-list { display: grid; gap: 6px; max-height: 290px; overflow: auto; list-style: none; margin: 12px 0 13px; padding: 3px; }
.clip { width: 100%; padding: 8px 9px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; text-align: left; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); color: var(--text); text-decoration: none; cursor: pointer; }
.clip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 650; }
.clip small { color: var(--sub); font: 600 10px/1.4 ui-monospace, monospace; }
.clip[aria-current="true"], .clip:hover { border-color: #71a993; }
.clip[aria-current="true"] span { color: var(--accent); }
.local { border-top: 1px solid var(--rule); padding-top: 12px; }
.drop { position: relative; display: grid; gap: 4px; padding: 10px; border: 1px dashed #668581; border-radius: 7px; color: var(--text); cursor: pointer; }
.drop strong { font-size: 13px; }
.drop strong span { color: var(--accent); }
.drop small, .local p { color: var(--sub); font-size: 12px; }
.drop input { position: absolute; inline-size: 1px; block-size: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.drop:hover, .drop:focus-within, .drop[data-over] { border-color: var(--accent); background: var(--surface); }
.local p { margin: 7px 0; }
.clear { border: 0; background: transparent; color: var(--accent); padding: 2px 0; font-size: 12px; cursor: pointer; }
.clear:disabled { color: var(--sub); opacity: .65; cursor: default; }
.notes { display: inline-block; margin-top: 12px; font-size: 12px; color: var(--sub); text-underline-offset: 3px; }
.notes:hover { color: var(--accent); }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; margin-top: 21px; padding-block: 13px 19px; border-top: 1px solid var(--rule); color: var(--sub); font-size: 12px; }
.footer strong { color: var(--text); }
@media (max-width: 720px) {
  .wrap { width: calc(100% - 30px); }
  .desk { grid-template-columns: 1fr; }
  .heading { padding-block: 24px 18px; }
  .viewer { padding: 9px; }
}
