:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --ink: #162033;
  --muted: #697386;
  --line: #e3e7ed;
  --accent: #2b6de5;
  --accent-soft: #e8f0fd;
  --good: #087a55;
  --good-soft: #e2f7ef;
  --warn: #956500;
  --warn-soft: #fff2cc;
  --bad: #b5222b;
  --bad-soft: #ffe6e8;
  --radius: 14px;
  font-family: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; font-weight: 600; }
h1, h2, h3 { letter-spacing: -.02em; }
[hidden], .hidden { display: none !important; }

.boot { padding: 40vh 0; text-align: center; color: var(--muted); }
.shell { width: min(980px, calc(100% - 32px)); margin: 24px auto 64px; }
.shell.wide { width: min(1180px, calc(100% - 32px)); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.brand { font-size: 20px; font-weight: 800; letter-spacing: -.03em; display: flex; align-items: center; gap: 8px; }
.brand-logo { width: 28px; height: 28px; border-radius: 7px; }
.brand.big { font-size: 26px; color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 9px rgba(24, 39, 75, .04); }
.empty { text-align: center; padding: 32px 12px; color: var(--muted); }
.section-title { font-size: 18px; margin: 28px 0 12px; }
.hero h1 { margin: 8px 0 4px; font-size: 24px; }
.hero p { margin: 0; }

/* Buttons and inputs */
.primary, .secondary, .ghost, .chip { border-radius: 10px; padding: 10px 16px; min-height: 44px; font-weight: 650; }
.primary { border: 0; background: var(--accent); color: white; }
.secondary { border: 1px solid #ced5df; background: var(--surface); }
.ghost { border: 0; background: transparent; color: var(--accent); }
.primary.small, .secondary.small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(43, 109, 229, .35); outline-offset: 2px; }
input, select, textarea { border: 1px solid #ced5df; border-radius: 10px; padding: 10px 12px; background: var(--surface); min-height: 44px; }
input[type="search"] { min-width: 0; }
input[type="checkbox"] { min-height: auto; width: 18px; height: 18px; accent-color: var(--accent); }
textarea { width: 100%; resize: vertical; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
label > input, label > select { color: var(--ink); }
label.check { display: flex; align-items: center; gap: 8px; color: var(--ink); }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0; }
legend { color: var(--muted); font-size: 14px; padding: 0 4px; }
.form-error { min-height: 1.3em; margin: 0; color: var(--bad); font-weight: 600; }
.bad { color: var(--bad); }

/* Login */
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; box-shadow: 0 8px 30px rgba(24, 39, 75, .08); }
.auth-card h1 { margin: 12px 0 4px; font-size: 24px; }
.auth-logo { display: block; width: 96px; height: 96px; }
.auth-card form { display: grid; gap: 16px; margin: 22px 0 14px; }
.auth-card input:not([type="checkbox"]) { width: 100%; font-size: 17px; }
.auth-card .primary { font-size: 17px; min-height: 50px; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 70px; }
.password-field .ghost { position: absolute; right: 2px; top: 0; bottom: 0; min-height: 0; }

/* Status pills and progress */
.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 700; background: #edf0f5; color: #5b6575; white-space: nowrap; }
.pill.completed { color: var(--good); background: var(--good-soft); }
.pill.watching { color: var(--warn); background: var(--warn-soft); }
.pill.bad { color: var(--bad); background: var(--bad-soft); }
.progress-line { display: flex; align-items: center; gap: 10px; }
.progress-line .bar { flex: 1; min-width: 80px; height: 8px; background: #e8ebf0; border-radius: 8px; overflow: hidden; }
.progress-line .bar > span { display: block; height: 100%; background: var(--accent); border-radius: 8px; transition: width .4s; }
.progress-line.big .bar { height: 10px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 650; margin: 1px 0; }

/* Student library */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .section-title { margin: 0; }
.toolbar input[type="search"] { width: min(280px, 100%); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: none; }
.chip { flex: none; border: 1px solid #ced5df; background: var(--surface); min-height: 38px; padding: 6px 14px; }
.chip.active { background: var(--ink); color: white; border-color: var(--ink); }
.video-library { display: grid; gap: 12px; }
.video-card { width: 100%; display: grid; grid-template-columns: 168px 1fr; gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: left; }
.video-card:hover { border-color: var(--accent); }
.video-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(145deg, #162033, #2b6de5); color: white; }
.play-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); font-size: 16px; }
.thumb-duration { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .65); border-radius: 5px; padding: 1px 6px; font-size: 12px; font-weight: 600; }
.video-copy { min-width: 0; display: grid; gap: 4px; }
.video-copy strong { font-size: 17px; }
.video-copy > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.video-copy .progress-line { white-space: normal; }
.resume { color: var(--accent); font-weight: 650; }

/* Player */
.part-chips { display: flex; gap: 8px; padding: 12px 16px 0; overflow-x: auto; }
.player-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.video-wrap { position: relative; background: #0d1320; }
.video-wrap video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0d1320; }
.player-controls { display: flex; gap: 8px; padding: 12px 16px 0; flex-wrap: wrap; align-items: end; }
.speed { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.player-meta { padding: 12px 16px 18px; }
.player-meta h1 { font-size: 21px; margin: 4px 0; }

/* Staff header and tabs */
.tabs { display: flex; gap: 4px; background: #e8ebf0; padding: 4px; border-radius: 12px; }
.tabs a { padding: 8px 14px; border-radius: 9px; color: var(--muted); }
.tabs a.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(24, 39, 75, .08); }
.subtabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; }
.subtabs button { border: 0; background: transparent; padding: 10px 14px; border-radius: 10px; font-weight: 650; color: var(--muted); white-space: nowrap; }
.subtabs button.active { background: var(--ink); color: white; }

/* Live monitor */
#live-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 16px; }
.live-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; }
.live-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.live-head h3 { margin: 0 0 2px; font-size: 18px; }
.live-head p { margin: 0; }
.rec-clock { color: var(--bad); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.health { border-radius: 10px; padding: 10px 12px; font-weight: 700; }
.health.good { background: var(--good-soft); color: var(--good); }
.health.wait { background: #edf0f5; color: var(--muted); }
.health.warn { background: var(--warn-soft); color: var(--warn); }
.health.bad { background: var(--bad-soft); color: var(--bad); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats div { background: var(--bg); border-radius: 10px; padding: 8px 10px; display: grid; gap: 2px; }
.stats span { color: var(--muted); font-size: 12px; }
.stats b { font-variant-numeric: tabular-nums; }
.video-wrap.live { border-radius: 10px; overflow: hidden; }
.live-badge { position: absolute; left: 10px; top: 10px; background: var(--bad); color: white; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
.meter-row { display: flex; align-items: center; gap: 10px; }
.meter-label { font-weight: 700; font-size: 14px; }
.audio-meter { position: relative; flex: 1; height: 14px; border-radius: 7px; background: #e8ebf0; overflow: hidden; }
.audio-meter .level { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #22a06b 0%, #22a06b 70%, #e0a400 85%, #d93b3b 100%); background-size: 100vw 100%; transition: width .06s linear; }
.audio-meter .peak { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); left: 0; }
.db { width: 56px; text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }
.monitor-actions { justify-content: space-between; }

/* Recorder PC control */
.recorder-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.recorder-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; }
.recorder-card.recording { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.recorder-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.recorder-head h3 { margin: 0 0 2px; font-size: 18px; }
.recorder-head p { margin: 0; }
.state-chip { white-space: nowrap; font-weight: 750; font-size: 14px; padding: 4px 10px; border-radius: 999px; background: #edf0f5; color: var(--muted); }
.state-chip.good { background: var(--good-soft); color: var(--good); }
.state-chip.warn { background: var(--warn-soft); color: var(--warn); }
.state-chip.bad { background: var(--bad-soft); color: var(--bad); }
.state-chip.rec { background: var(--bad); color: white; }
.record-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.record-form label:nth-of-type(3), .record-form label:nth-of-type(4) { grid-column: span 1; }
.record-form select, .record-form input { width: 100%; }
.record-button, .stop-button { grid-column: 1 / -1; border: 0; border-radius: 12px; min-height: 56px; font-size: 18px; font-weight: 800; color: white; }
.record-button { background: var(--bad); }
.stop-button { background: var(--ink); padding: 0 24px; }
.recorder-live { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rec-clock.big { font-size: 26px; }
.health.wait { background: #edf0f5; color: var(--muted); }
@media (max-width: 720px) {
  .record-form { grid-template-columns: 1fr; }
  .stop-button { width: 100%; }
}

/* Pause / resume */
.pause-button { border: 1px solid #ced5df; background: var(--surface); border-radius: 12px; min-height: 56px; padding: 0 18px; font-size: 17px; font-weight: 750; }
.resume-card { display: grid; gap: 10px; border-radius: 12px; padding: 12px 14px; background: var(--accent-soft); color: var(--ink); }
.resume-card.warn { background: var(--warn-soft); }
.record-button.inline { grid-column: auto; min-height: 48px; padding: 0 18px; font-size: 16px; }

/* Signal measured on the recording PC */
.signal-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-radius: 10px; padding: 10px 12px; font-weight: 700; }
.signal-row.good { background: var(--good-soft); color: var(--good); }
.signal-row.bad { background: var(--bad-soft); color: var(--bad); }
.signal-row.warn { background: var(--warn-soft); color: var(--warn); }
.signal-row.wait { background: #edf0f5; color: var(--muted); font-weight: 600; }
.signal-meter { flex: 1; min-width: 80px; height: 10px; border-radius: 6px; background: rgba(8, 122, 85, .15); overflow: hidden; }
.signal-meter > span { display: block; height: 100%; background: var(--good); }

/* Recordings list and detail */
.recording-list { display: grid; gap: 8px; }
.recording-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.recording-row:hover { border-color: var(--accent); }
.recording-row > span:first-child { display: grid; gap: 2px; min-width: 0; }
.detail-card h2 { margin: 0 0 4px; }
.detail-card .video-wrap { border-radius: 10px; overflow: hidden; margin: 12px 0; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 11px 8px; border-top: 1px solid #edf0f4; text-align: left; vertical-align: middle; }
.data-table th { color: var(--muted); font-size: 13px; font-weight: 650; border-top: 0; }
.data-table tr.inactive td { color: #a0a8b6; }
.data-table .actions { text-align: right; white-space: nowrap; }
.data-table .actions button + button { margin-left: 6px; }
.selection-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; font-weight: 650; }

/* Dialogs */
dialog { border: 0; border-radius: 16px; padding: 24px; width: min(460px, calc(100% - 24px)); box-shadow: 0 20px 60px rgba(10, 20, 40, .25); }
dialog.wide { width: min(640px, calc(100% - 24px)); }
dialog::backdrop { background: rgba(16, 24, 40, .45); }
dialog h2 { margin: 0 0 12px; font-size: 20px; }
dialog form { display: grid; gap: 14px; }
dialog input:not([type="checkbox"]), dialog select { width: 100%; }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 4px; }
.dialog-actions .muted { margin-right: auto; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.roster { max-height: 50vh; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; padding: 4px; }
.credential { display: flex; justify-content: space-between; align-items: center; background: var(--bg); border-radius: 10px; padding: 12px 14px; margin: 8px 0; }
.credential b { font-size: 20px; letter-spacing: .04em; }

/* Toasts */
.toast-holder { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 1000; width: min(440px, calc(100% - 32px)); }
.toast { background: var(--ink); color: white; border-radius: 12px; padding: 12px 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); font-weight: 600; }
.toast.error { background: var(--bad); }

/* Printable login cards */
#print-area { position: fixed; inset: 0; background: var(--bg); overflow: auto; z-index: 900; padding: 16px; }
.print-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; position: sticky; top: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; }
.print-toolbar .muted { margin-right: auto; }
.print-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.login-card { background: white; border: 1.5px dashed #9aa4b5; border-radius: 12px; padding: 14px; break-inside: avoid; page-break-inside: avoid; }
.login-card-head { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 10px; font-size: 15px; }
.login-card-head span { font-weight: 800; font-size: 17px; }
.login-card-body { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; }
.login-card .qr svg { width: 110px; height: 110px; display: block; }
.login-card-copy p { margin: 3px 0; font-size: 13px; }
.login-card-copy b { font-size: 16px; font-family: ui-monospace, Consolas, monospace; letter-spacing: .03em; }
.login-card-copy .url { font-weight: 700; word-break: break-all; }
@media print {
  body.printing > *:not(#print-area) { display: none !important; }
  body.printing #print-area { position: static; padding: 0; background: white; overflow: visible; }
  .no-print { display: none !important; }
  .print-grid { grid-template-columns: 1fr 1fr; gap: 8mm; }
  @page { margin: 10mm; }
}

/* Legacy V0 development screen */
.title { margin: 0 0 5px; font-size: 24px; }
.rec { border: 0; color: white; background: #e13d45; border-radius: 9px; padding: 13px 20px; font-weight: 750; }
.rec.stop { background: #202938; }
.status { border-radius: 999px; padding: 5px 10px; font-size: 13px; font-weight: 700; background: #edf0f5; }
.status.ready, .status.completed { color: var(--good); background: var(--good-soft); }
.status.recording { color: var(--bad); background: var(--bad-soft); }
.status.watching { color: var(--warn); background: var(--warn-soft); }
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.stage { text-align: center; padding: 10px 5px; border-radius: 8px; font-size: 13px; background: #f1f3f6; color: #8b94a4; }
.stage.done { background: var(--good-soft); color: var(--good); font-weight: 700; }
.students { width: 100%; border-collapse: collapse; margin-top: 12px; }
.students th, .students td { padding: 13px 8px; border-top: 1px solid #edf0f4; text-align: left; }
.meter { width: 130px; height: 7px; background: #e8ebf0; border-radius: 8px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--accent); }
.events { max-height: 170px; overflow: auto; font-size: 13px; color: var(--muted); }
.event { padding: 5px 0; }
.recording-form { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 18px 0 12px; }

@media (max-width: 720px) {
  .shell, .shell.wide { width: calc(100% - 24px); margin-top: 12px; }
  .hide-mobile { display: none !important; }
  .video-card { grid-template-columns: 112px 1fr; gap: 12px; padding: 10px; }
  .video-copy strong { font-size: 16px; }
  .player-shell { width: 100%; margin-top: 0; }
  .player-shell .top { padding: 10px 12px 0; }
  .player-card { border-radius: 0; border-left: 0; border-right: 0; }
  .player-controls .secondary { flex: 1; }
  .speed { margin-left: 0; width: 100%; }
  .speed select { flex: 1; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stats span { font-size: 11px; }
  .monitor-actions .primary { width: 100%; }
  .toolbar input[type="search"], .toolbar select { flex: 1; width: auto; }
  .tabs { order: 3; width: 100%; }
  .tabs a { flex: 1; text-align: center; }
  .data-table thead { display: none; }
  .data-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 0; border-top: 1px solid #edf0f4; }
  .data-table td { border: 0; padding: 0; }
  .data-table td:empty { display: none; }
  .data-table.selectable td:nth-child(2), .data-table:not(.selectable) td:first-child { font-weight: 700; }
  .data-table .actions { text-align: left; flex-basis: 100%; }
  .pipeline, .recording-form { grid-template-columns: 1fr; }
  .print-grid { grid-template-columns: 1fr; }
}

/* Installer download */
a.secondary.download-link { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; color: var(--ink); }
.download-card { width: min(520px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; display: grid; gap: 14px; box-shadow: 0 8px 30px rgba(24, 39, 75, .08); }
.download-card h1 { margin: 0; font-size: 24px; }
.download-card ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.download-button { display: flex; justify-content: center; align-items: center; min-height: 54px; border-radius: 12px; background: var(--accent); color: white; font-size: 18px; font-weight: 800; }
.download-meta { font-size: 13px; color: var(--muted); word-break: break-all; }
.manuals { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; }

/* ERP-style staff frame */
.erp { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.erp-side { background: #142036; color: #c9d3e3; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.erp-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; color: white; font-weight: 800; font-size: 18px; }
.erp-brand img { border-radius: 8px; }
.erp-nav { display: flex; flex-direction: column; padding: 4px 10px; gap: 2px; flex: 1; overflow-y: auto; }
.erp-group { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #7f8ba3; padding: 14px 10px 4px; }
.erp-nav a { color: #d6deea; padding: 9px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.erp-nav a:hover { background: rgba(255, 255, 255, .07); }
.erp-nav a.active { background: var(--accent); color: white; }
.erp-user { display: grid; padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
.erp-user span { color: #7f8ba3; }
.erp-main { display: flex; flex-direction: column; min-width: 0; }
.erp-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.erp-top h1 { margin: 0; font-size: 19px; }
.erp-content { flex: 1; padding: 20px 24px 28px; }
.erp-status { position: sticky; bottom: 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 6px 24px; background: #eef2f7; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.erp-status #erp-recorders { display: flex; gap: 14px; flex-wrap: wrap; }
.erp-pc { font-weight: 700; }
.erp-pc.good { color: var(--good); }
.erp-pc.recording { color: var(--bad); }
.erp-pc.warn { color: var(--warn); }
.erp-pc.bad { color: #8b94a4; }
.erp-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.erp-panel > h2, .erp-panel .toolbar h2 { margin: 0 0 12px; font-size: 16px; }
.erp-panel .toolbar { margin-bottom: 10px; }
.erp-panel .toolbar h2 { margin: 0; }
.erp-grid { display: grid; grid-template-columns: minmax(380px, 5fr) minmax(380px, 6fr); gap: 16px; align-items: start; }
.erp-col { min-width: 0; }
.erp-col #live-list, .erp-col .recorder-list { grid-template-columns: 1fr; }
.erp-panel .recorder-card, .erp-panel .live-card { border-radius: 10px; }
.erp-content .data-table th { background: #f4f6f9; }
@media (max-width: 1100px) {
  .erp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .erp { display: block; }
  .erp-side { position: sticky; top: 0; z-index: 10; height: auto; flex-direction: row; align-items: center; overflow-x: auto; }
  .erp-brand { padding: 10px 12px; font-size: 16px; }
  .erp-brand span { display: none; }
  .erp-nav { flex-direction: row; padding: 6px; overflow: visible; }
  .erp-group, .erp-user { display: none; }
  .erp-nav a { white-space: nowrap; padding: 8px 10px; }
  .erp-top { position: static; padding: 10px 12px; }
  .erp-top h1 { font-size: 17px; }
  .erp-content { padding: 12px; }
  .erp-status { padding: 6px 12px; }
}
