:root {
  --sidebar-width: 240px;
  --ink: #17211d;
  --muted: #6d7772;
  --line: #e2e7e4;
  --paper: #f5f7f5;
  --white: #fff;
  --green: #245c45;
  --green-2: #36765a;
  --mint: #dcecdf;
  --amber: #e8a33a;
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); min-height: 100vh; }
body.resizing-sidebar { cursor: col-resize; user-select: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.eyebrow { margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .18em; color: var(--green-2); }
.muted { color: var(--muted); }
.brand-mark { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px 18px 18px 5px; background: var(--green); color: white; font: 800 25px Georgia, serif; }
.brand-mark.small { width: 36px; height: 36px; border-radius: 12px 12px 12px 4px; font-size: 17px; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.2fr .8fr; }
.auth-brand { padding: 9vw; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(145deg, #173d30, #2d6a50); color: white; }
.auth-brand .eyebrow { margin-top: 38px; color: #b8d8c5; }
.auth-brand h1 { margin: 12px 0 24px; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(42px, 5vw, 72px); font-weight: 500; line-height: 1.15; }
.auth-brand > p:last-child { max-width: none; color: #c9ddd1; font-size: 17px; line-height: 1.7; white-space: nowrap; }
.auth-card { padding: 9vw 7vw; display: flex; flex-direction: column; justify-content: center; background: white; }
.auth-card h2 { margin: 0; font-size: 32px; }
form { display: grid; gap: 16px; }
.auth-card form { margin-top: 35px; }
label { display: grid; gap: 8px; font-size: 13px; font-weight: 700; }
.optional { color: var(--muted); font-size: 11px; font-weight: 500; }
input, select, textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: white; }
textarea { resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(54,118,90,.12); }
.primary, .secondary, .light-button { border: 0; border-radius: 10px; padding: 12px 17px; font-weight: 800; }
.primary { background: var(--green); color: white; }
.primary:hover { background: var(--green-2); }
.secondary { background: #edf0ee; color: var(--ink); }
.danger { border: 0; border-radius: 10px; padding: 11px 15px; background: #f8e2df; color: #a23e35; font-weight: 800; }
.danger:hover { background: #f2cbc6; }
.wide { width: 100%; padding: 14px; }
.text-button { border: 0; background: transparent; color: var(--green-2); padding: 12px 0; font-weight: 800; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) 1fr; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); padding: 28px 16px; background: #183c30; color: white; display: flex; flex-direction: column; }
.sidebar-resizer { position: absolute; top: 0; right: -5px; width: 10px; height: 100%; cursor: col-resize; z-index: 5; }
.sidebar-resizer:after { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; width: 2px; background: transparent; }
.sidebar-resizer:hover:after { background: rgba(255,255,255,.35); }
.logo-row { display: flex; align-items: center; gap: 11px; border: 0; padding: 0; background: transparent; color: white; font-size: 18px; font-weight: inherit; text-align: left; }
.logo-row:hover { opacity: .9; }
.sidebar-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stop-all-audio-button { flex: 0 0 auto; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; padding: 7px 6px; background: rgba(255,255,255,.08); color: #dce9e2; font-size: 10px; font-weight: 800; }
.stop-all-audio-button:hover { background: rgba(255,255,255,.16); color: white; }
.sidebar nav { display: grid; gap: 7px; margin-top: 52px; }
.nav-item { border: 0; border-radius: 9px; padding: 12px 14px; text-align: left; background: transparent; color: #bfd2c8; font-weight: 700; }
.nav-item:hover, .nav-item.active { background: rgba(255,255,255,.1); color: white; }
.side-editor-dock { margin-top: 10px; padding: 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(255,255,255,.08); max-height: 58vh; overflow: auto; font-size: 12px; }
.side-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 12px; }
.side-editor-head button { border: 0; width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.14); color: white; }
.side-editor-project-list { display: grid; gap: 6px; margin: 10px 0; }
.side-editor-project-row { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 5px; align-items: stretch; }
.side-editor-project { min-width: 0; padding: 7px 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(255,255,255,.06); color: white; text-align: left; font-size: 11px; }
.side-editor-project.active, .side-editor-project:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); }
.side-editor-project strong, .side-editor-project small { display: block; }
.side-editor-project strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-editor-project small, .side-editor-empty { color: #bfd2c8; font-size: 11px; }
.side-delete-project { border: 0; border-radius: 8px; background: rgba(255,255,255,.12); color: #f7d8d5; font-weight: 900; }
.side-delete-project:hover { background: rgba(248,226,223,.22); color: white; }
.side-editor-lane { min-height: 180px; padding: 8px; border: 1px dashed rgba(255,255,255,.28); border-radius: 12px; background: rgba(0,0,0,.08); }
.side-editor-lane.dragging { border-color: #dcecdf; background: rgba(220,236,223,.12); }
.side-result-link { width: 100%; margin-bottom: 8px; padding: 7px 8px; border: 0; border-radius: 9px; background: #dcecdf; color: #183c30; font-size: 11px; font-weight: 900; }
.side-result-link:hover { background: white; }
.side-editor-active { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.side-editor-active .primary { padding: 6px 8px; border-radius: 8px; font-size: 11px; }
.side-editor-file-button { display: block; margin-bottom: 9px; padding: 8px 10px; border-radius: 9px; background: rgba(255,255,255,.12); color: white; text-align: center; }
.side-editor-file-button input { display: none; }
.side-editor-clip-list { display: grid; gap: 7px; }
.side-editor-clip { display: grid; grid-template-columns: 16px minmax(0, 1fr) 22px; gap: 6px; align-items: center; padding: 7px; border-radius: 9px; background: rgba(255,255,255,.12); color: white; font-size: 11px; }
.side-editor-clip strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-editor-clip small { display: block; color: #bfd2c8; font-size: 10px; }
.side-delete-clip { border: 0; border-radius: 7px; background: rgba(255,255,255,.14); color: white; }
.side-info-recording { display: grid; gap: 4px; margin-top: 10px; padding: 8px; border-radius: 10px; background: rgba(220,236,223,.12); font-size: 11px; }
.side-info-recording small { color: #bfd2c8; line-height: 1.4; }
.side-info-recording audio { width: 100%; height: 34px; }
.side-info-recording a { color: #dcecdf; font-size: 12px; font-weight: 800; }
.sidebar-user { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--mint); color: var(--green); font-weight: 900; }
.sidebar-user span { display: block; margin-top: 3px; font-size: 11px; color: #adc4b8; }
.sidebar-user button { border: 0; background: transparent; color: white; font-size: 12px; font-weight: 800; }
.content { grid-column: 2; padding: 38px 5vw 70px; max-width: 1500px; width: 100%; }
.topbar, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.bell-button { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: white; font-size: 18px; }
.notification-badge { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #d94135; color: white; font-size: 11px; font-weight: 900; line-height: 20px; }
.topbar { margin-bottom: 36px; }
.topbar h1 { margin: 0; font-size: 27px; }
.hero-card { padding: 38px; border-radius: 18px; background: linear-gradient(130deg, #245c45, #3c795e); color: white; position: relative; overflow: hidden; }
.hero-card:after { content: ""; position: absolute; right: -70px; top: -110px; width: 330px; height: 330px; border: 65px solid rgba(255,255,255,.07); border-radius: 50%; }
.hero-card h2 { margin: 22px 0 12px; font: 500 36px/1.2 Georgia, "Noto Serif KR", serif; }
.hero-card p { color: #d7e8df; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #a9e1b8; }
.light-button { margin-top: 12px; background: white; color: var(--green); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0 42px; }
.stat { padding: 22px; background: white; border: 1px solid var(--line); border-radius: 14px; text-align: left; }
.dashboard-scope-card:hover, .dashboard-scope-card.active { border-color: var(--green); background: #edf6ef; transform: translateY(-1px); }
.dashboard-scope-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.stat strong { display: block; margin-top: 10px; font-size: 28px; }
.section-heading { margin-bottom: 18px; }
.section-heading h2 { margin: 0 0 5px; font-size: 21px; }
.section-heading p { margin: 0; font-size: 13px; }
.recording-list, .user-list { display: grid; gap: 10px; }
.recording-item, .user-item { display: grid; align-items: center; gap: 18px; padding: 17px 19px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.recording-item { grid-template-columns: 44px 1fr auto auto; cursor: pointer; }
.recording-item:hover { border-color: #9fbaad; transform: translateY(-1px); }
.file-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #e8f0eb; color: var(--green); font-weight: 900; }
.recording-item strong, .user-item strong { display: block; }
.recording-item small, .user-item small { color: var(--muted); }
.progress-track { width: min(360px, 100%); height: 5px; margin: 8px 0 6px; overflow: hidden; border-radius: 99px; background: #e5eae7; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--green-2); transition: width .3s ease; }
.progress-track.large { width: 100%; height: 8px; margin-top: 15px; }
.processing-card { padding: 20px 24px; margin: 15px 0; border: 1px solid #c9ddcf; border-radius: 14px; background: #edf6ef; }
.processing-card p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.upload-progress { padding: 18px; border: 1px solid #c9ddcf; border-radius: 12px; background: #edf6ef; }
.upload-progress-head { display: flex; justify-content: space-between; gap: 15px; }
.upload-progress p { margin: 8px 0 0; font-size: 12px; }
.metadata-editor { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.metadata-editor .full { grid-column: 1 / -1; }
.payment-field { position: relative; }
.payment-field input { padding-right: 88px; }
.eye-button { position: absolute; right: 8px; bottom: 7px; width: 34px; height: 34px; border: 0; border-radius: 8px; background: #edf0ee; }
#clear-payment-button { right: 46px; color: #a23b32; font-size: 20px; }
.suggestions { padding: 14px; border: 1px solid #e5c58e; border-radius: 10px; background: #fff8eb; }
.suggestion-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.suggestion-chip { border: 1px solid #d7b779; border-radius: 99px; padding: 7px 10px; background: white; color: #6b4d18; font-weight: 700; }
.editor-layout { display: grid; grid-template-columns: 280px 1fr; gap: 18px; }
.editor-project-list { display: grid; align-content: start; gap: 9px; }
.editor-project { width: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: white; text-align: left; }
.editor-project.active, .editor-project:hover { border-color: var(--green); background: #edf6ef; }
.editor-project strong, .editor-project small { display: block; }
.editor-project small { margin-top: 5px; color: var(--muted); }
.editor-workspace { min-height: 520px; }
.editor-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.editor-dropzone { min-height: 130px; padding: 26px; border: 2px dashed #b9c9c1; border-radius: 14px; place-items: center; align-content: center; text-align: center; background: #f8faf8; margin-bottom: 18px; }
.editor-dropzone.dragging { border-color: var(--green); background: #eaf4ed; }
.editor-dropzone input { display: none; }
.editor-dropzone small { color: var(--muted); font-weight: 400; }
.editor-clip-list { display: grid; gap: 9px; }
.editor-clip { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.editor-clip:hover { border-color: #9fbaad; }
.clip-handle { display: grid; place-items: center; color: var(--muted); cursor: grab; }
.empty.compact { padding: 24px; }
.sector-edit-tools { display: flex; justify-content: flex-end; margin-top: 10px; }
.sector-range-editor { margin-top: 12px; padding: 14px; border: 1px solid #c9ddcf; border-radius: 12px; background: #edf6ef; }
.sector-select-bar { position: relative; height: 18px; margin: 12px 0 8px; border-radius: 99px; background: #d7e2dc; cursor: crosshair; overflow: hidden; }
.sector-select-bar:before { content: ""; position: absolute; inset: 8px 0 auto; height: 2px; background: rgba(36,92,69,.35); }
.sector-select-fill { position: absolute; inset-block: 0; left: 0; width: 100%; border-radius: inherit; background: rgba(36,92,69,.45); }
.range-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 10px 0; }
.sector-drag-chip { display: inline-flex; align-items: center; margin-right: 8px; padding: 9px 12px; border: 1px dashed var(--green); border-radius: 99px; background: white; color: var(--green); font-weight: 800; cursor: grab; }
.info-recording-list { display: grid; gap: 10px; margin-top: 12px; }
.info-recording-card { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(260px, 2fr) 95px auto auto; gap: 10px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #f8faf8; }
.info-recording-card audio { width: 100%; }
.original-audio-card { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(260px, 2fr) 95px auto; gap: 10px; align-items: center; margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #f8faf8; }
.original-audio-card small { display: block; margin-top: 3px; color: var(--muted); }
.original-audio-card audio { width: 100%; }
.audio-blocked { display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 12px; border: 1px solid #c9cfcc; border-radius: 10px; background: repeating-linear-gradient(135deg, #f4f6f5 0, #f4f6f5 10px, #e2e7e4 10px, #e2e7e4 20px); color: #59635e; font-size: 12px; font-weight: 800; text-align: center; }
.original-audio-card .audio-blocked { grid-column: 2 / -1; }
.download-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.badge { display: inline-flex; padding: 6px 9px; border-radius: 99px; background: #edf0ee; color: #5e6863; font-size: 11px; font-weight: 800; }
.badge.completed, .badge.transcribed { background: #e0f1e5; color: #28633f; }
.badge.failed { background: #f8e2df; color: #a23e35; }
.badge.queued, .badge.uploaded { background: #fff0d8; color: #956017; }
.panel { padding: 34px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.panel.narrow { max-width: 720px; margin: 30px auto; }
.panel.upload-panel { max-width: 1050px; margin: 30px auto; }
.panel h2 { margin: 0 0 8px; }
.upload-mode-tabs { display: flex; gap: 8px; margin: 22px 0 6px; }
.upload-mode-tabs .active { background: var(--green); color: white; }
.metadata-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 25px; }
.metadata-grid .full { grid-column: 1 / -1; }
.search-panel { margin-bottom: 26px; }
.advanced-search-form { grid-template-columns: repeat(4, 1fr); margin-top: 22px; }
.advanced-search-form .full { grid-column: 1 / -1; }
.search-form-actions { display: flex; justify-content: flex-end; gap: 9px; }
.search-form-actions button { min-width: 100px; }
.search-results { display: grid; gap: 12px; }
.search-result { padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.search-result-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.search-result-title-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.search-result-check { width: auto; }
.search-title-stack { display: grid; gap: 4px; min-width: 0; }
.search-meta-line { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result-controls, .search-bulk-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.search-result-controls .danger { padding: 7px 10px; border-radius: 8px; font-size: 12px; }
.search-title-button { border: 0; padding: 0; background: transparent; color: var(--ink); font-size: 17px; font-weight: 800; text-align: left; }
.search-title-button:hover { color: var(--green); text-decoration: underline; }
.search-result p { margin: 10px 0 14px; line-height: 1.75; }
.search-result-actions { display: flex; align-items: center; gap: 9px; }
.search-result audio { width: min(430px, 100%); height: 36px; }
.metadata-line { color: var(--muted); font-size: 12px; }
.search-expand-button { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 12px; padding: 10px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--green); font-weight: 800; text-align: left; }
.search-expand-button .arrow { transition: transform .2s; }
.search-expand-button.open .arrow { transform: rotate(180deg); }
.search-expanded { margin-top: 13px; }
.search-sector { padding: 15px; margin-top: 8px; border-radius: 10px; background: #f6f8f6; }
.search-sector h4 { margin: 5px 0 7px; }
.search-sector p { margin: 0 0 10px; }
.search-sector audio { width: 100%; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 24px; }
.page-button { min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); font-weight: 700; }
.page-button:hover { border-color: var(--green); color: var(--green); }
.page-button.active { border-color: var(--green); background: var(--green); color: white; }
.page-button:disabled { opacity: .4; cursor: default; }
.settings-panel { margin-bottom: 28px; }
.provider-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
#ai-provider-options { grid-template-columns: repeat(3, 1fr); }
.provider-option { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #fafbfa; }
.provider-option:hover { border-color: #9fbaad; }
.provider-option.selected { border-color: var(--green); background: #edf6ef; box-shadow: 0 0 0 2px rgba(36,92,69,.08); }
.provider-option.disabled { cursor: not-allowed; opacity: .55; }
.provider-option input { width: auto; margin-top: 3px; }
.provider-option strong { display: block; margin-bottom: 4px; }
.provider-option small { display: block; color: var(--muted); font-weight: 400; line-height: 1.5; }
.provider-option .not-configured { margin-top: 6px; color: #a23e35; font-weight: 700; }
.replacement-settings { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.replacement-settings h3 { margin: 0 0 6px; }
.replacement-settings textarea { width: 100%; margin: 10px 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; resize: vertical; font: inherit; line-height: 1.5; }
.replacement-settings textarea:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(54,118,90,.12); outline: none; }
.dropzone { min-height: 280px; padding: 40px; border: 2px dashed #b9c9c1; border-radius: 14px; place-items: center; align-content: center; text-align: center; background: #f8faf8; margin: 26px 0 4px; }
.dropzone.compact { min-height: 170px; padding: 28px; }
.dropzone.dragging { border-color: var(--green); background: #eaf4ed; transform: scale(1.005); }
.dropzone input { display: none; }
.dropzone small { color: var(--muted); font-weight: 400; }
.upload-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--mint); color: var(--green); font-size: 24px; }
.multi-upload-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0; color: var(--muted); font-size: 13px; }
.multi-upload-provider-help { margin: -4px 0 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.multi-upload-list { display: grid; gap: 7px; margin: 14px 0; }
.multi-upload-header, .multi-upload-row { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(220px, 1.5fr) 110px 120px minmax(190px, auto) 42px; gap: 8px; align-items: center; }
.multi-upload-header { padding: 0 10px; color: var(--muted); font-size: 12px; font-weight: 800; }
.multi-upload-row { padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #f8faf8; }
.multi-upload-file { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.multi-upload-row input { padding: 9px 10px; }
.multi-upload-row small { color: var(--muted); }
.upload-provider-choice { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: #f8faf8; }
.upload-provider-choice strong { margin-right: 4px; font-size: 13px; }
.upload-provider-choice label, .multi-provider-group label { display: inline-flex; grid-auto-flow: column; align-items: center; gap: 6px; margin: 0; font-weight: 700; white-space: nowrap; }
.upload-provider-choice input, .multi-provider-group input { width: auto; margin: 0; padding: 0; }
.upload-provider-choice small { flex-basis: 100%; color: var(--muted); font-weight: 400; }
.multi-provider-group { display: flex; flex-wrap: wrap; gap: 8px 10px; font-size: 12px; }
.multi-remove-file { width: 34px; height: 34px; border: 0; border-radius: 8px; background: #f8e2df; color: #a23e35; font-weight: 900; }
.detail-head { display: flex; justify-content: space-between; gap: 20px; margin: 18px 0; }
.detail-title-block { min-width: 0; flex: 1; }
.detail-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.retry-provider-select { width: auto; min-width: 150px; padding: 8px 34px 8px 10px; }
.detail-title-row h2 { margin: 0; }
.detail-title-row .danger { padding: 8px 12px; border-radius: 8px; font-size: 12px; }
.detail-actions { display: flex; justify-content: flex-end; margin: -6px 0 12px; }
.summary-card, .sector-card, .transcript-card { padding: 24px; background: white; border: 1px solid var(--line); border-radius: 14px; margin-top: 14px; }
.sector-card h3 { margin: 5px 0 9px; }
.sector-card audio { width: 100%; margin-top: 12px; }
.timecode { color: var(--green-2); font-size: 12px; font-weight: 800; }
.transcript-title-row { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 0 0 10px; background: white; border-bottom: 1px solid var(--line); }
.transcript-title-row h3 { margin: 0; }
.transcript-row { display: grid; grid-template-columns: 85px 90px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.transcript-speaker { min-height: 1px; }
.transcript-text { min-width: 0; line-height: 1.6; white-space: pre-wrap; }
.transcript-content { min-width: 0; display: flex; flex-direction: column; gap: 6px; line-height: 1.6; }
.transcript-corrected-line { color: #1769c2; }
.reveal-transcript-button { padding: 0; white-space: nowrap; font-size: 12px; }
.job-history { display: grid; gap: 8px; margin-top: 12px; }
.job-row { display: grid; grid-template-columns: 1fr 90px 190px 90px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.empty { padding: 42px; text-align: center; color: var(--muted); background: white; border: 1px dashed #cbd4cf; border-radius: 12px; }
.user-item { grid-template-columns: 1fr 1fr 100px 100px 155px auto; }
.user-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.presence-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: #aeb6b2; box-shadow: 0 0 0 3px rgba(174, 182, 178, .16); }
.presence-dot.online { background: #27a267; box-shadow: 0 0 0 3px rgba(39, 162, 103, .16); }
.user-last-login { display: grid; gap: 2px; font-size: 12px; }
.user-last-login span { white-space: nowrap; }
.user-actions { display: flex; gap: 7px; }
.log-summary { margin: -8px 0 12px; font-size: 12px; }
.job-log-list { display: grid; gap: 4px; }
.job-log-row { display: grid; grid-template-columns: 78px minmax(180px, 1.5fr) 90px 60px 150px 150px 150px minmax(160px, 1fr) 82px; gap: 8px; align-items: center; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: white; font-size: 12px; line-height: 1.25; }
.job-log-title { border: 0; padding: 0; background: transparent; color: var(--green); text-align: left; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-log-title:hover { text-decoration: underline; }
.job-log-error { color: #a23e35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-log-error.warning { color: #9a6a14; }
.job-log-actions { display: flex; justify-content: flex-end; gap: 5px; }
.job-log-actions button { padding: 6px 8px; font-size: 11px; white-space: nowrap; }
.manual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; align-items: stretch; }
.manual-card { position: relative; height: 100%; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.manual-number { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: #edf6ef; color: var(--green); font-weight: 900; }
.manual-card h3 { margin: 15px 0 12px; }
.manual-card ol { margin: 0; padding-left: 20px; }
.manual-card li { margin: 9px 0; color: #34413b; line-height: 1.55; }
.manual-card code { padding: 2px 6px; border-radius: 6px; background: #edf0ee; color: var(--green); }
#manual-page .section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.manual-editor { display: grid; gap: 16px; padding: 24px; }
.manual-editor textarea { width: 100%; min-height: 520px; resize: vertical; font-family: inherit; line-height: 1.6; }
.manual-editor-actions { display: flex; justify-content: flex-end; gap: 8px; }
.feedback-form { margin-top: 18px; grid-template-columns: 220px minmax(0, 1fr); }
.feedback-form .full { grid-column: 1 / -1; }
.feedback-form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.feedback-list { display: grid; gap: 10px; }
.feedback-item { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.feedback-item.unread { border-color: #efc1bc; background: #fffafa; }
.feedback-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.feedback-item-head strong { min-width: 0; font-size: 16px; }
.feedback-item p { margin: 12px 0; white-space: pre-wrap; line-height: 1.6; color: #33413b; }
.feedback-answer { margin: 12px 0; padding: 12px; border-radius: 10px; background: #edf5ef; border: 1px solid #d2e3d8; }
.feedback-answer p { margin: 7px 0; color: #22342c; }
.feedback-answer small, .feedback-answer.pending { color: var(--muted); font-size: 12px; }
.feedback-answer.pending { background: #f7f8f7; border-color: var(--line); }
.feedback-reply-form { margin: 12px 0; gap: 8px; }
.feedback-reply-form div { display: flex; justify-content: flex-end; gap: 8px; }
.feedback-reply-form button { padding: 9px 13px; border-radius: 8px; font-size: 12px; }
.feedback-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.feedback-meta .secondary, .feedback-meta .danger { margin-left: auto; padding: 8px 12px; border-radius: 8px; font-size: 12px; }
.feedback-meta .secondary + .danger { margin-left: 0; }
dialog { width: min(500px, calc(100% - 30px)); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 25px 80px rgba(22,40,32,.25); }
dialog::backdrop { background: rgba(12,25,19,.55); }
dialog form { padding: 28px; }
dialog h2 { margin: 0 0 8px; }
.check-row { display: flex; align-items: center; }
.check-row input { width: auto; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.toast { position: fixed; z-index: 20; right: 24px; top: 24px; max-width: 380px; padding: 13px 17px; border-radius: 10px; background: var(--ink); color: white; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: .2s; }
.toast.show { opacity: 1; transform: translateY(0); }
@media (max-width: 850px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; width: auto; height: auto; padding: 16px; }
  .sidebar-resizer { display: none; }
  .sidebar nav { margin-top: 18px; grid-template-columns: repeat(2, 1fr); }
  .sidebar-user { display: none; }
  .content { grid-column: 1; padding: 25px 18px 60px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .recording-item { grid-template-columns: 44px 1fr; }
  .recording-item > :nth-child(n+3) { display: none; }
  .user-item { grid-template-columns: 1fr auto; }
  .job-log-row { grid-template-columns: 1fr; gap: 4px; }
  .manual-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .provider-options { grid-template-columns: 1fr; }
  #ai-provider-options { grid-template-columns: 1fr; }
  .editor-layout { grid-template-columns: 1fr; }
  .info-recording-card { grid-template-columns: 1fr; }
  .original-audio-card { grid-template-columns: 1fr; }
  .original-audio-card .audio-blocked { grid-column: 1; }
  .metadata-grid, .advanced-search-form { grid-template-columns: 1fr; }
  .multi-upload-header { display: none; }
  .multi-upload-row { grid-template-columns: 1fr; }
  .metadata-grid .full { grid-column: auto; }
  .advanced-search-form .full { grid-column: auto; }
  .search-result-head { display: block; }
  .search-result-actions, .search-result-controls, .search-bulk-actions { flex-wrap: wrap; justify-content: flex-start; margin-top: 8px; }
  .search-match { grid-template-columns: 1fr auto; }
  .search-match > :nth-child(3) { grid-column: 1 / -1; }
  .job-row { grid-template-columns: 1fr auto; }
  .metadata-editor { grid-template-columns: 1fr; }
  .metadata-editor .full { grid-column: auto; }
  .job-row > :nth-child(3), .job-row > :nth-child(4) { font-size: 11px; color: var(--muted); }
  .user-item > :nth-child(2), .user-item > :nth-child(4) { display: none; }
}
