:root {
  color-scheme: light;
  --paper: #f5f5fa;
  --ink: #21212c;
  --muted: #606072;
  --line: #dddde7;
  --purple: #494fc1;
  --rail: #222231;
  --radius: 16px;
  font: 15px/1.48 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box }
body, h1, h2, p { margin: 0 }
a { color: var(--purple) }
button, input, select { font: inherit }
button, .button, .hero a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 9px 16px; border: 0; border-radius: 9px;
  background: var(--purple); color: #fff; font-size: 14px; font-weight: 640;
  text-decoration: none; cursor: pointer;
}
button:hover, .button:hover { filter: brightness(.93) }
.quiet { color: #363645; background: #eeeef5 }
.add::before { content: "+"; font-size: 20px; font-weight: 400; line-height: 1 }
:focus-visible { outline: 3px solid #596be6; outline-offset: 3px }
.studio { display: grid; grid-template-columns: 214px minmax(0,1fr); min-height: 100vh }
.sidebar {
  position: sticky; top: 0; display: flex; flex-direction: column; gap: 36px;
  height: 100vh; height: 100dvh; padding: 32px 16px 20px; color: #f8f8ff; background: var(--rail);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; letter-spacing: -.055em; font-weight: 730; line-height: 1.2; text-decoration: none; color: inherit; white-space: nowrap }
.sidebar .brand { margin: 2px 10px }
.mark { display: inline-flex; align-items: center; gap: 2px; height: 28px }
.mark i { width: 3px; height: 12px; background: currentColor; transform: skew(-9deg); border-radius: 2px }
.mark i:nth-child(2), .mark i:nth-child(4) { height: 20px }
.mark i:nth-child(3) { height: 27px }
.admin-nav { display: grid; gap: 5px }
.admin-nav a { display: flex; gap: 12px; align-items: center; min-height: 44px; border-radius: 8px; padding: 9px 14px; color: #e9e9f6; text-decoration: none; font-weight: 550 }
.admin-nav a:hover, .admin-nav a[aria-current] { background: #ffffff17; color: #fff }
.nav-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round }
.signout { margin: auto 0 0 }
.signout button { background: transparent; color: #d3d3df; font-weight: 500 }
.workspace { width: 100%; max-width: 1550px; padding: 28px clamp(22px,3.5vw,62px) 60px; margin: 0 auto; min-width: 0 }
.context, .heading, .subheading, .panel-title, .actions, .badges { display: flex; align-items: center; gap: 12px }
.context, .heading, .subheading, .panel-title { justify-content: space-between }
.context { padding-bottom: 15px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px }
.context time, .metrics strong, .ranking { font-variant-numeric: tabular-nums }
.heading { margin: 24px 0 20px }
h1, h2, .channel strong { line-height: 1.1; text-wrap: balance }
h1 { font-size: clamp(36px,4vw,54px); letter-spacing: -.066em; font-weight: 650 }
h2 { font-size: 21px; letter-spacing: -.042em; font-weight: 660 }
.hero { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius); background: #171721; color: #fff; min-height: 210px; display: flex; align-items: end }
.hero img { z-index: -2; position: absolute; inset: 0 0 0 auto; width: 75%; height: 100%; object-fit: cover; object-position: 50% 53% }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#171721 12%,#171721ed 33%,#17172155 67%,transparent) }
.hero-copy { padding: 25px 29px; max-width: 90% }
.hero-copy > span { font-size: 12px; font-weight: 600 }
.hero h2 { font-size: clamp(34px,4vw,58px); letter-spacing: -.065em; margin: 7px 0 2px; overflow-wrap: anywhere }
.hero p { color: #e0e0e8; font-size: 14px }
.hero a { font-size: 13px; min-height: 36px; margin-top: 14px; padding: 6px 14px; color: #fff; border: 1px solid #ffffff68; border-radius: 30px; background: #171721aa }
.subheading { margin: 22px 0 12px }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px }
.metrics > div, .panel, .channel, .form-section, .directory-filter {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.metrics > div { padding: 16px 18px }
.metrics strong { display: block; font-size: clamp(25px,2.8vw,39px); font-weight: 580; letter-spacing: -.06em; line-height: 1.3 }
small { display: block; color: var(--muted); font-size: 13px }
.metrics small:last-child { font-size: 12px }
.reports { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px }
.panel, .form-section { min-width: 0; padding: 21px }
.panel p { margin-top: 14px; color: var(--muted); font-size: 14px }
.panel-title a, .clear, .back { font-size: 13px; text-decoration: none; font-weight: 600 }
.ranking { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 13px }
.ranking th, .ranking td { text-align: right; padding: 9px 3px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere }
.ranking th { color: var(--muted); font-weight: 560 }
.ranking th:first-child, .ranking td:first-child { text-align: left }
.ranking td a { color: var(--ink); text-decoration: none; font-weight: 600 }
.ranking td small { font-size: 12px }
label { display: block; color: #373747; font-size: 14px; font-weight: 550 }
input:not([type="checkbox"]), select {
  display: block; width: 100%; min-width: 0; border: 1px solid #c9c9d6;
  border-radius: 8px; background: #fff; color: var(--ink); min-height: 42px; padding: 8px 10px; margin-top: 5px;
}
select { cursor: pointer }
.period-form select { width: auto; margin: 0 }
.directory-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 15px }
.directory-filter label { flex: 1 1 90px; min-width: 0; font-size: 12px }
.directory-filter label:first-of-type { flex: 2 1 155px }
.clear { align-self: center; padding: 8px }
.catalogue { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(270px,100%),1fr)); gap: 16px }
.channel { display: block; color: var(--ink); overflow: hidden; text-decoration: none }
.channel:hover { border-color: #a5a6c2 }
.thumbnail { width: 100%; display: block; height: clamp(106px,13vw,168px); object-fit: cover }
.channel-body { padding: 15px 17px }
.channel strong { display: block; letter-spacing: -.033em; font-size: 20px; overflow-wrap: anywhere }
.channel small { margin-top: 5px }
.badges { gap: 8px; flex-wrap: wrap; margin-top: 11px; font-size: 12px; color: var(--muted) }
.status::before { content: ""; display: inline-block; border-radius: 50%; width: 7px; height: 7px; background: #8a8a94; margin-right: 5px }
.published::before { background: #317655 }
.hd { font-size: 11px; border: 1px solid #b8b8c4; padding: 0 4px; border-radius: 3px }
.back { display: inline-block; margin-top: 22px }
.back + .heading { margin-top: 10px }
.editor { max-width: 850px; display: grid; gap: 14px }
.editor h2 { margin-bottom: 15px }
.editor label + label, .editor .pair, .artwork label, #preview { margin-top: 12px }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 15px }
.pair label + label { margin: 0 }
.artwork { padding: 10px 0; border-top: 1px solid var(--line) }
.artwork summary { min-height: 28px; cursor: pointer; font-weight: 550 }
.asset { max-width: 210px; max-height: 96px; display: block; object-fit: contain; margin: 10px 0 }
.check { display: flex; align-items: center; gap: 9px; min-height: 32px }
.check input { width: 18px; height: 18px; accent-color: var(--purple) }
video { width: 100%; background: #121218; border-radius: 9px; margin-top: 14px }
#preview-status:not(:empty), [role="alert"] { color: #902d23; margin: 12px 0 }
.actions { flex-wrap: wrap; margin: 0 0 20px }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 18px }
.login { width: min(800px,100%); display: grid; grid-template-columns: .9fr 1fr; border: 1px solid var(--line); border-radius: 19px; overflow: hidden; background: #fff }
.login-art { min-height: 380px; background: #171721 url("art/news.jpg") center/cover }
.signin { padding: clamp(25px,4vw,60px) }
.signin h1 { font-size: 36px; margin: 32px 0 22px }
.signin button { width: 100%; margin-top: 18px }
@media(max-width:1040px) { .reports { grid-template-columns: 1fr } .studio { grid-template-columns: 185px minmax(0,1fr) } }
@media(max-width:760px) {
  .studio { display: block }
  .sidebar { position: static; height: auto; display: grid; grid-template-columns: 1fr auto; gap: 7px; padding: 10px 16px 8px }
  .sidebar .brand { font-size: 20px; margin: 0 }
  .signout { grid-column: 2; grid-row: 1; margin: 0 }
  .signout button { min-height: 35px; padding: 5px 8px; font-size: 13px }
  .admin-nav { grid-column: 1/-1; display: flex }
  .admin-nav a { padding: 6px 12px; min-height: 36px; gap: 7px; font-size: 13px }
  .workspace { padding: 16px 16px 38px }
  .heading { margin: 21px 0 15px }
  .heading .button { padding: 8px 11px }
  .context { font-size: 12px; padding-bottom: 10px }
  .metrics { grid-template-columns: 1fr 1fr; gap: 9px }
  .metrics > div, .panel, .form-section { padding: 15px }
  .hero { min-height: 178px }
  .hero img { width: 90% }
  .hero-copy { padding: 18px }
  .catalogue { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px }
  .channel strong { font-size: 16px }
  .channel-body { padding: 10px }
  .directory-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 9px }
  .directory-filter label:first-of-type { grid-column: 1/-1 }
  .directory-filter .clear { justify-self: start }
  .login { max-width: 410px; grid-template-columns: 1fr }
  .login-art { min-height: 115px; background-position: center 45% }
}
@media(max-width:430px) { .pair { grid-template-columns: 1fr; gap: 12px } h2 { font-size: 19px } .panel-title { gap: 6px } }

.choice-toggle { padding: 6px 1px; min-height: 36px; color: var(--purple); background: transparent; font-size: 13px }
.extra-categories { margin-top: 10px }
.extra-categories summary { cursor: pointer; padding: 8px 0; font-size: 14px; font-weight: 550 }
.extra-categories .check { display: inline-flex; margin: 4px 14px 4px 0 }
.editor [hidden] { display: none !important }
.signin label + label { margin-top: 14px }
.manage-row{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:12px 0}.manage-row strong{margin-right:auto;align-self:center}
@media(max-width:719px){.admin-nav{overflow-x:auto;max-width:100%}.admin-nav a{flex-shrink:0}.manage-row label{min-width:0}}
