@font-face {
  font-family: Gothic;
  src: url('/api/manage-assets/KimjungchulGothic-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+1100-11FF,U+3130-318F,U+A960-A97F,U+AC00-D7AF,U+D7B0-D7FF,U+FFA0-FFDC;
}
@font-face {
  font-family: Gothic;
  src: url('/api/manage-assets/KimjungchulGothic-Bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+1100-11FF,U+3130-318F,U+A960-A97F,U+AC00-D7AF,U+D7B0-D7FF,U+FFA0-FFDC;
}
@font-face {
  font-family: WantedSans;
  src: url('/api/manage-assets/WantedSansLatinVariable.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 1000;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6-02C7,U+02D0-02DD,U+2000-209F,U+20A0-20CF,U+2122,U+2190-2199,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: WantedSans;
  src: url('/api/manage-assets/WantedSansLatinExtVariable.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 1000;
  font-display: swap;
  unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+2605-2606,U+2661,U+2665,U+2669-266C,U+2C7C;
}
:root {
  font-family: Gothic, WantedSans, system-ui, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--surface);
  color-scheme: light dark;
  --surface: #fff;
  --ink: #191919;
  --quiet: #666;
  --line: #dededa;
  --control-line: #767670;
  --tint: #f4f4f1;
  --danger: #b83b32;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 1.0625rem; font-weight: 400; line-height: 1.75; }
main { position: relative; max-width: 1424px; margin: 0 auto; padding: 40px 28px 72px; overflow-wrap: anywhere; word-break: keep-all; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.4; margin: 8px 0 16px; }
h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.5; }
h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.5; }
p { line-height: 1.75; }
button, input, select { font: inherit; font-size: .9375rem; font-weight: 400; color: inherit; min-height: 44px; min-width: 0; max-width: 100%; border: 1px solid var(--control-line); border-radius: 2px; }
button { padding: 10px 14px; background: var(--surface); cursor: pointer; white-space: normal; overflow-wrap: anywhere; line-height: 1.4; }
button:hover:not(:disabled) { border-color: var(--ink); background: var(--tint); }
button:disabled, input:disabled, select:disabled { opacity: .5; cursor: not-allowed; }
[aria-busy=true] button:disabled { cursor: wait; }
button.primary, .record .actions button:first-child:not(.destructive) { background: var(--ink); border-color: var(--ink); color: var(--surface); }
button.primary:hover:not(:disabled), .record .actions button:first-child:not(.destructive):hover:not(:disabled) { background: var(--quiet); border-color: var(--quiet); }
:is(button, input, select, summary):focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.muted, .notice, .eyebrow, .brand-caption, .sidebar-note { color: var(--quiet); }
.eyebrow { font-size: .8125rem; font-weight: 400; }
.notice { font-size: .9375rem; line-height: 1.75; }
.app-header, .session-card { margin-left: 248px; }
.app-header { margin-bottom: 32px; }
.masthead-identity, .sidebar-identity { display: flex; align-items: center; gap: 12px; }
.identity-mark { display: block; flex: 0 0 32px; color: var(--ink); }
.sidebar-identity > div { min-width: 0; }
main:has(#workspace:not([hidden])) .app-header { display: none; }
main:has(#workspace[hidden]) { max-width: 760px; padding-top: 80px; }
main:has(#workspace[hidden]) :is(.app-header, .session-card) { margin-left: 0; }
.session-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.session-card:has(#login:not([hidden])) { display: block; padding: 24px 0; border-top: 1px solid var(--line); background: var(--surface); }
#status { min-width: 0; min-height: 24px; font-size: .9375rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.session-card .actions { min-width: 0; margin: 0; }
.session-card:has(#login:not([hidden])) .actions { margin-top: 16px; }
#workspace { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.sidebar { width: 220px; min-width: 0; }
@media (min-width: 761px) {
  main:has(#workspace:not([hidden])) { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
  main:has(#workspace:not([hidden])) .session-card { grid-column: 2; grid-row: 1; margin: 0; }
  main:has(#workspace:not([hidden])) #workspace { display: contents; }
  .sidebar { grid-column: 1; grid-row: 1 / span 2; }
  .workspace-content { grid-column: 2; grid-row: 2; }
}
.sidebar-title { font-size: 1.0625rem; font-weight: 700; margin-bottom: 2px; }
.brand { width: fit-content; font-size: 1rem; font-weight: 400; letter-spacing: -.015em; }
.brand span { color: var(--quiet); font-weight: 400; margin: 0 3px; }
.brand-caption { font-size: .8125rem; margin: 12px 0 32px; }
.nav-group { display: grid; gap: 4px; }
nav button { text-align: left; border-color: transparent; background: transparent; padding: 12px 14px; }
nav button[aria-pressed=true] { background: var(--tint); border-left-color: var(--ink); text-decoration: underline; text-underline-offset: .3em; }
.secondary-nav { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.sidebar-note { margin: 32px 14px 0 0; font-size: .8125rem; line-height: 1.75; }
.workspace-content { grid-column: 2; min-width: 0; max-width: 1120px; }
.workspace-toolbar { float: right; margin-left: 16px; }
.workspace-toolbar .eyebrow { display: none; }
.readiness-feedback { min-height: 20px; margin: 0 0 20px; color: var(--quiet); font-size: .9375rem; }
.readiness-feedback button { margin-top: 10px; }
.readiness-feedback:has(#retry-operations:not([hidden])) { color: var(--danger); }
.workspace-content:has(#operations[hidden]) .readiness-feedback:has(#retry-operations[hidden]) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.screen-header { margin-bottom: 28px; }
.screen-header h1 { font-size: 1.5rem; min-height: 44px; margin: 0; }
.screen-header p { clear: both; margin-top: 10px; font-size: 1.0625rem; }
.summary-card, .panel, .record { background: var(--surface); border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 24px 0; }
.summary-card { margin-bottom: 24px; border-bottom: 1px solid var(--line); }
#summary { font-size: 1.125rem; font-weight: 700; margin: 8px 0; }
.filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.filters label { display: block; font-size: .9375rem; font-weight: 400; margin-bottom: 8px; }
.search-field { flex: 1 1 240px; min-width: 0; }
.status-field { flex: 0 1 170px; }
input, select { width: 100%; background: var(--surface); padding: 10px 12px; }
#filter-help { margin-top: 10px; }
.record-count { font-size: .8125rem; color: var(--quiet); margin: 24px 0 12px; }
#records { display: grid; }
.record { min-width: 0; }
.record:last-child { border-bottom: 1px solid var(--line); }
.record-heading { display: flex; align-items: start; flex-wrap: wrap; gap: 10px; }
.record h2 { font-size: 1.125rem; flex: 1 1 160px; }
.badge { font-size: .8125rem; font-weight: 400; background: var(--tint); color: var(--quiet); border: 1px solid transparent; border-radius: 2px; padding: 3px 8px; }
.badge:is([data-state=approved], [data-state=included], [data-state=complete]) { background: #edf2ed; color: #395540; }
.badge:is([data-state=pending], [data-state=unreviewed]) { background: #fff0d1; color: #76500c; }
.badge:is([data-state=hidden], [data-state=excluded], [data-state=unknown]) { background: var(--tint); color: var(--quiet); }
.badge[data-state=failed] { background: #fbe8e6; color: var(--danger); }
.record-time { display: block; color: var(--quiet); font-size: .8125rem; margin: 8px 0 16px; }
.record-core { white-space: pre-wrap; font-size: 1.0625rem; line-height: 1.75; }
.record-companions { color: var(--quiet); margin-top: 4px; font-size: .9375rem; }
.record details { margin-top: 16px; border-top: 1px solid var(--line); }
.record summary { cursor: pointer; min-height: 44px; padding: 12px 0; color: var(--quiet); font-size: .9375rem; }
.record dl, .operation-group dl { display: grid; grid-template-columns: minmax(80px, 116px) minmax(0, 1fr); gap: 10px 16px; font-size: .9375rem; line-height: 1.75; margin: 10px 0; }
dt { color: var(--quiet); }
dd { margin: 0; white-space: pre-wrap; }
.record img { display: block; width: auto; max-width: 100%; max-height: 280px; object-fit: contain; border: 1px solid var(--line); border-radius: 0; margin-top: 16px; }
.record .actions { padding-top: 16px; border-top: 1px solid var(--line); }
.record .destructive { color: var(--danger); margin-left: auto; border-color: transparent; text-decoration: underline; text-underline-offset: .25em; }
.panel { margin: 0 0 18px; }
.panel h3 + p { margin-top: 10px; }
#operations-details { padding-top: 0; padding-bottom: 0; }
.operation-group { padding: 20px 0; }
.operation-group + .operation-group { border-top: 1px solid var(--line); }
.operation-group > dt { color: inherit; font-size: 1.0625rem; font-weight: 700; margin-bottom: 12px; }
#moderation button[aria-pressed=true] { border-color: var(--ink); background: var(--tint); color: var(--ink); }
#moderation-scope { margin-top: 10px; font-weight: 400; }
#backup-status, #moderation-status { font-size: .9375rem; margin-top: 16px; line-height: 1.75; }
#operations-status:empty, #backup-status:empty, #moderation-status:empty, #moderation-scope:empty { display: none; }
#backups { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 18px; }
#backups li { min-width: 0; border-top: 1px solid var(--line); padding-top: 18px; }
#backups p { margin-bottom: 8px; font-size: .9375rem; }
#backups p + p { color: var(--quiet); font-size: .8125rem; }
#backup-empty { margin-top: 18px; color: var(--quiet); }
#export-title ~ .notice:last-child { margin-top: 16px; }
.empty-state { text-align: center; padding: 36px 16px; border-block: 1px solid var(--line); }
.empty-state p { margin-top: 8px; font-size: 1.0625rem; color: var(--quiet); }
@media (max-width: 760px) {
  main { padding: 20px 18px 48px; }
  main:has(#workspace[hidden]) { padding-top: 40px; }
  .app-header, .session-card { margin-left: 0; }
  h1 { font-size: 1.625rem; }
  #workspace { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .workspace-content { grid-column: 1; }
  .sidebar { position: static; width: auto; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
  .sidebar-identity { margin-bottom: 12px; }
  .sidebar-title { font-size: .9375rem; }
  .brand { font-size: .9375rem; }
  .brand-caption, .sidebar-note { display: none; }
  nav { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 0; }
  .nav-group { display: contents; }
  nav button { padding: 10px; font-size: .9375rem; }
  .secondary-nav { border: 0; padding: 0; margin-top: 6px; }
  .session-card { flex-wrap: wrap; margin-bottom: 14px; }
  .workspace-toolbar { margin-left: 12px; max-width: 100%; }
  .readiness-feedback { margin-bottom: 16px; }
  .screen-header, .summary-card { margin-bottom: 16px; }
  #summary { font-size: 1.0625rem; }
  .record-count { margin-top: 16px; }
  .summary-card, .panel, .record { padding: 20px 0; }
  .filters { gap: 10px; }
  .search-field { flex-basis: 100%; }
  .status-field { flex: 1 1 130px; }
  .record dl, .operation-group dl { grid-template-columns: minmax(0, 5rem) minmax(0, 1fr); gap: 8px 12px; }
  .record .actions { gap: 8px; }
  .record .destructive { margin-left: 0; border-left-color: var(--line); }
}
@media (max-width: 480px) {
  .record dl, .operation-group dl { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .record dd + dt, .operation-group dl dd + dt { margin-top: 12px; }
}
@media (prefers-color-scheme: dark) {
  :root { --surface: #171717; --ink: #f4f4f1; --quiet: #b8b8b4; --line: #444440; --control-line: #8c8c86; --tint: #242424; --danger: #ff9a8f; }
  .badge:is([data-state=approved], [data-state=included], [data-state=complete]) { background: #29332b; color: #c2d6c4; }
  .badge:is([data-state=pending], [data-state=unreviewed]) { background: #493b1d; color: #f5d28b; }
  .badge[data-state=failed] { background: #4c2d2b; color: var(--danger); }
}
@media (forced-colors: active) {
  :root { --surface: Canvas; --ink: CanvasText; --quiet: CanvasText; --line: CanvasText; --control-line: ButtonText; --tint: Canvas; --danger: CanvasText; }
  button:disabled, input:disabled, select:disabled { opacity: 1; color: GrayText; border-color: GrayText; }
  nav button[aria-pressed=true], #moderation button[aria-pressed=true] { border-color: Highlight; }
  .badge { border-color: CanvasText; }
}
