:root {
  --ink: #14213d;
  --ink-soft: #273554;
  --teal: #1f7a8c;
  --teal-dark: #155e6b;
  --teal-pale: #e7f3f4;
  --blue: #1f4e78;
  --paper: #f5f7fa;
  --surface: #ffffff;
  --line: #dce2e9;
  --muted: #687386;
  --danger: #a93636;
  --warning: #9b6815;
  --success: #397044;
  --shadow: 0 12px 34px rgba(20, 33, 61, 0.08);
  --radius: 18px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  --ink: #e8edf5;
  --ink-soft: #cdd6e4;
  --paper: #101722;
  --surface: #182231;
  --line: #344154;
  --muted: #9caabc;
  --teal-pale: #17353b;
  --shadow: 0 12px 34px rgba(0, 0, 0, .28);
  color-scheme: dark;
}
:root[data-theme="dark"] .sidebar { background: #0b1220; }
:root[data-theme="dark"] .hero-header { background: linear-gradient(128deg, #0b1220, #172944 70%, #17404d); }
:root[data-theme="dark"] .mobile-header,
:root[data-theme="dark"] .bottom-nav { background: rgba(16, 23, 34, .96); }
:root[data-theme="dark"] .bottom-more-menu { background: var(--surface); }
:root[data-theme="dark"] .answer-field textarea,
:root[data-theme="dark"] .empty-state { background: rgba(24, 34, 49, .7); }
:root[data-theme="dark"] .method-panel { background: #162c31; }

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-height: 100%; margin: 0; background: var(--paper); color: var(--ink); }
body, input, textarea, select, button { font: inherit; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { border-radius: 10px; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 11px 13px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
textarea { min-height: 48px; resize: vertical; line-height: 1.55; }
input:focus, textarea:focus, select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31, 122, 140, .12);
}
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(31, 122, 140, .38);
  outline-offset: 3px;
}
.field-save-error { border-color: var(--danger) !important; background: #fff7f7 !important; }
label > span, label:not(.inline-status) {
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 700;
}
label > span { display: block; margin-bottom: 7px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.03; letter-spacing: -.045em; }
h2 { letter-spacing: -.025em; }
p { color: var(--muted); line-height: 1.65; }
code { padding: 2px 6px; border-radius: 5px; background: #edf1f5; font-size: .86em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.is-hidden { display: none !important; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 270px;
  flex-direction: column;
  overflow-y: auto;
  padding: 26px 20px 20px;
  background: var(--ink);
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: var(--teal);
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1rem; letter-spacing: -.01em; }
.brand small { margin-top: 2px; color: #aeb9cb; font-size: .72rem; }
.main-nav { margin-top: 32px; }
.nav-group-label { margin: 24px 12px 8px; color: #7f8da5; font-size: .65rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.nav-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  margin: 3px 0;
  padding: 9px 11px;
  border-radius: 11px;
  color: #c7d0de;
  font-size: .88rem;
  font-weight: 650;
  transition: color .18s ease, background .18s ease;
}
.nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-link.is-active { background: rgba(31, 122, 140, .34); color: #fff; }
.nav-symbol { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 7px; font-size: .57rem; font-weight: 900; letter-spacing: .04em; }
.nav-link.is-active .nav-symbol { border-color: var(--teal); background: var(--teal); }
.nav-sub { min-height: 38px; padding-left: 16px; font-size: .78rem; }
.nav-dot { width: 6px; height: 6px; border: 1px solid #728098; border-radius: 50%; }
.nav-sub.is-active .nav-dot { border-color: #72c5d0; background: #72c5d0; box-shadow: 0 0 0 4px rgba(114, 197, 208, .1); }
.sidebar-footer { margin-top: auto; padding-top: 24px; }
.export-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 12px; padding: 0 4px; color: #96a5ba; font-size: .73rem; }
.export-links a:hover { color: #fff; }
.main-content { min-height: 100vh; margin-left: 270px; padding: 52px clamp(26px, 4vw, 70px) 80px; }
.desktop-save-wrap { position: fixed; z-index: 10; top: 18px; right: 28px; }
.save-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
}
.save-indicator::before { width: 7px; height: 7px; border-radius: 50%; background: #86a18b; content: ""; }
.save-indicator.is-saving::before { background: #d2a14f; animation: pulse 1s infinite; }
.save-indicator.is-error { color: var(--danger); }
.save-indicator.is-error::before { background: var(--danger); }
@keyframes pulse { 50% { opacity: .35; } }
.mobile-header, .bottom-nav { display: none; }

.eyebrow { display: block; margin-bottom: 10px; color: var(--teal); font-size: .7rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; margin-bottom: 28px; }
.page-header > div:first-child { max-width: 790px; }
.page-header p { max-width: 760px; margin-bottom: 0; }
.header-actions, .export-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-header { min-height: 210px; align-items: center; padding: 38px 42px; border-radius: 24px; background: linear-gradient(128deg, #14213d 0%, #1c3154 70%, #1b5366 100%); color: #fff; box-shadow: var(--shadow); }
.hero-header h1 { color: #fff; }
.hero-header p { color: #b9c6d8; }
.hero-header .eyebrow { color: #73c8d2; }
.hero-progress { flex: 0 0 auto; }
.progress-ring {
  --size: 126px;
  position: relative;
  display: grid;
  width: var(--size);
  height: var(--size);
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background: conic-gradient(#6bc3ce calc(var(--progress) * 1%), rgba(255,255,255,.12) 0);
}
.progress-ring::before { position: absolute; inset: 8px; border-radius: 50%; background: #1c3154; content: ""; }
.progress-ring strong, .progress-ring span { position: relative; z-index: 1; display: block; }
.progress-ring strong { font-size: 1.65rem; }
.progress-ring span { color: #9fb0c5; font-size: .68rem; }

.panel { border: 1px solid rgba(220, 226, 233, .9); border-radius: var(--radius); background: var(--surface); box-shadow: 0 5px 20px rgba(20, 33, 61, .04); }
.compact-panel { padding: 18px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.panel-header h2 { margin: 0; font-size: 1.25rem; }
.panel-header .eyebrow { margin-bottom: 5px; }
.text-link { color: var(--teal); font-size: .78rem; font-weight: 750; }
.metric-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 16px; margin: 22px 0; }
.metric-card { min-height: 145px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.metric-card > span { display: block; color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.metric-card > strong { display: block; margin: 14px 0 9px; font-size: 2rem; line-height: 1; }
.metric-card > strong small { color: #8b96a7; font-size: .9rem; }
.metric-card > small { color: var(--muted); font-size: .72rem; }
.metric-card > a { display: inline-block; margin-top: 28px; color: var(--teal); font-size: .75rem; font-weight: 750; }
.metric-dark { border-color: var(--ink); background: var(--ink); color: #fff; }
.metric-dark > span, .metric-dark > small { color: #aeb9cb; }
.metric-accent { border-color: #cce4e7; background: var(--teal-pale); }
.progress-track { height: 6px; overflow: hidden; border-radius: 99px; background: #e5e9ee; }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.metric-dark .progress-track { margin-bottom: 8px; background: rgba(255,255,255,.13); }
.metric-dark .progress-track i { background: #72c5d0; }
.progress-track.large { height: 10px; }
.dashboard-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
.dashboard-grid > .panel { padding: 25px; }
.interview-progress-list { display: grid; gap: 20px; }
.interview-progress-item { display: block; padding: 2px; }
.interview-progress-item:hover strong { color: var(--teal); }
.item-top { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 9px; }
.item-top strong { font-size: .87rem; transition: color .18s; }
.item-top span { color: var(--muted); font-size: .75rem; }
.interview-progress-item small { display: block; margin-top: 6px; color: #8a94a5; font-size: .68rem; }
.issue-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.issue-metrics > div { padding: 15px 8px; border-radius: 12px; background: var(--paper); text-align: center; }
.issue-metrics strong, .issue-metrics span { display: block; }
.issue-metrics strong { font-size: 1.35rem; }
.issue-metrics span { margin-top: 4px; color: var(--muted); font-size: .64rem; }
.area-bars { display: grid; gap: 11px; }
.area-bars > div { display: grid; grid-template-columns: 105px 1fr 20px; align-items: center; gap: 9px; font-size: .68rem; }
.area-bars .bar { height: 5px; overflow: hidden; border-radius: 99px; background: #edf0f3; }
.area-bars .bar i { display: block; height: 100%; border-radius: inherit; background: #78aeba; }
.empty-compact { padding: 25px 12px; color: var(--muted); font-size: .8rem; text-align: center; }
.data-panel p { margin: 14px 0 20px; font-size: .83rem; }
.method-panel { position: relative; overflow: hidden; background: #eef5f6; }
.method-panel::after { position: absolute; right: -25px; bottom: -55px; width: 150px; height: 150px; border: 25px solid rgba(31,122,140,.07); border-radius: 50%; content: ""; }
.method-panel blockquote { position: relative; z-index: 1; margin: 15px 0; font-size: 1.05rem; font-weight: 700; line-height: 1.5; }
.method-panel p { position: relative; z-index: 1; margin-bottom: 0; font-size: .78rem; }
.summary-list-item { display: grid; gap: 5px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.summary-list-item:last-child { border-bottom: 0; }
.summary-list-item strong { font-size: .82rem; line-height: 1.45; }
.summary-list-item span { color: var(--muted); font-size: .7rem; line-height: 1.45; }

.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; border: 1px solid transparent; padding: 10px 16px; font-size: .8rem; font-weight: 780; transition: transform .16s, background .16s, border-color .16s; }
.button:hover { transform: translateY(-1px); }
.button-primary { border-color: var(--teal); background: var(--teal); color: #fff; }
.button-primary:hover { background: var(--teal-dark); }
.button-secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button-secondary:hover { border-color: #b9c4d0; }
.button-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.button-full { width: 100%; }
.button-small { min-height: 34px; padding: 7px 11px; font-size: .72rem; }
.icon-button { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 0; background: transparent; color: var(--muted); font-size: 1.4rem; }
.icon-button:hover { background: var(--paper); color: var(--ink); }
.icon-button.danger:hover { background: #fff0f0; color: var(--danger); }
.text-button { border: 0; padding: 4px 0; background: transparent; color: var(--teal); font-size: .74rem; font-weight: 750; }

.interview-header .progress-summary { width: 190px; flex: 0 0 auto; padding: 18px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.progress-summary strong, .progress-summary span { display: block; }
.progress-summary strong { font-size: 1.35rem; }
.progress-summary span { margin: 2px 0 10px; color: var(--muted); font-size: .7rem; }
.interview-meta { display: grid; grid-template-columns: .8fr 1.3fr 1fr .8fr; gap: 13px; margin-bottom: 14px; }
.filter-bar { display: flex; align-items: end; gap: 12px; margin-bottom: 25px; }
.filter-bar label { min-width: 160px; }
.filter-bar .search-field { min-width: 240px; flex: 1; }
.question-list { max-width: 980px; margin: 0 auto; }
.section-divider { display: flex; align-items: center; gap: 14px; margin: 30px 0 12px; color: var(--blue); font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.section-divider::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.question-card { margin-bottom: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 5px 16px rgba(20,33,61,.03); }
.question-heading { display: grid; grid-template-columns: 42px 1fr auto; align-items: start; gap: 14px; padding: 20px 20px 15px; }
.question-number { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: var(--ink); color: #fff; font-size: .68rem; font-weight: 850; letter-spacing: .04em; }
.question-heading h2 { margin: 5px 0 0; font-size: 1rem; line-height: 1.55; }
.status-select { width: auto; min-width: 145px; border-color: transparent; padding: 8px 30px 8px 10px; font-size: .72rem; font-weight: 760; }
.status-control { display: flex; grid-column: 2 / -1; flex-wrap: wrap; gap: 7px; }
.status-choice { min-height: 42px; border: 1px solid transparent; padding: 8px 12px; opacity: .68; font-size: .72rem; font-weight: 760; }
.status-choice.is-selected { border-color: currentColor; opacity: 1; box-shadow: 0 0 0 2px rgba(31,122,140,.1); }
.status-да { background: #e2f0d9; color: #35613a; }
.status-частично { background: #fff2cc; color: #7b601b; }
.status-нет { background: #fde2e2; color: #8c3333; }
.status-не-проверено, .status-не-применимо { background: #f0f2f5; color: #5c6675; }
.answer-field { display: block; padding: 0 20px 18px 76px; }
.answer-field textarea { background: #fbfcfd; }
.question-details { border-top: 1px solid #edf0f3; }
.question-details summary { padding: 12px 20px 12px 76px; color: var(--muted); cursor: pointer; font-size: .73rem; font-weight: 740; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 2px 20px 18px 76px; }
.question-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 20px 16px 76px; }
.question-card.is-return-later { border-color: #d2a14f; box-shadow: 0 0 0 2px rgba(210, 161, 79, .12); }
.return-later, .check-filter { display: inline-flex; min-height: 42px; align-items: center; gap: 8px; }
.return-later input, .check-filter input { width: 20px; height: 20px; flex: 0 0 auto; }
.updated-at { margin-right: auto; color: var(--muted); font-size: .68rem; }
.question-page-summary { display: flex; max-width: 980px; justify-content: space-between; margin: 0 auto 12px; color: var(--muted); font-size: .72rem; }
.question-pagination { display: flex; max-width: 980px; justify-content: space-between; gap: 12px; margin: 24px auto 0; }

.registry-header { align-items: center; }
.registry-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 18px; }
.registry-toolbar .search-field { max-width: 620px; flex: 1; }
.registry-toolbar > label:not(.search-field) { min-width: 145px; }
.registry-count { display: flex; align-items: baseline; gap: 7px; padding: 9px 10px; }
.registry-count strong { font-size: 1.25rem; }
.registry-count span { color: var(--muted); font-size: .7rem; }
.record-list { display: grid; gap: 10px; }
.record-card { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 16px; min-height: 94px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .18s, box-shadow .18s; }
.record-card:hover { border-color: #bac6d3; box-shadow: 0 8px 22px rgba(20,33,61,.06); }
.record-index { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: var(--paper); color: #7c8798; font-size: .67rem; font-weight: 850; }
.record-body h2 { margin: 0 0 10px; font-size: .94rem; line-height: 1.45; }
.record-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.meta-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 7px; background: var(--paper); color: #49576b; font-size: .67rem; }
.meta-chip small { color: #8993a1; font-size: .59rem; }
.priority-критический { background: #f4cccc; color: #7b2929; font-weight: 760; }
.priority-высокий { background: #fce5cd; color: #76502c; }
.priority-средний { background: #fff2cc; }
.priority-низкий { background: #e2f0d9; }
.inline-status select { width: auto; min-width: 120px; padding: 5px 28px 5px 8px; background: #eef4f5; font-size: .67rem; font-weight: 720; }
.record-actions { display: flex; align-items: center; gap: 4px; }
.empty-state { padding: 70px 24px; border: 1px dashed #bdc6d1; border-radius: var(--radius); background: rgba(255,255,255,.55); text-align: center; }
.empty-state strong { display: block; font-size: 1.1rem; }
.empty-state p { margin: 8px auto 20px; font-size: .82rem; }

.record-dialog { width: min(820px, calc(100vw - 30px)); max-height: calc(100vh - 40px); padding: 0; overflow: hidden; border: 0; border-radius: 20px; background: var(--surface); box-shadow: 0 25px 80px rgba(20,33,61,.28); }
.record-dialog::backdrop { background: rgba(12,22,41,.58); backdrop-filter: blur(3px); }
.record-form { display: flex; max-height: calc(100vh - 40px); flex-direction: column; }
.record-form > header { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px 16px; border-bottom: 1px solid var(--line); }
.record-form > header h2 { margin: 0; }
.record-form > header .eyebrow { margin-bottom: 5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; overflow-y: auto; padding: 24px 26px; }
.form-grid label { display: block; }
.form-grid label.wide { grid-column: 1 / -1; }
.form-grid em { color: var(--danger); font-style: normal; }
.record-form > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 26px 20px; border-top: 1px solid var(--line); }
.form-error { margin: 0 26px; padding: 10px 12px; border-radius: 8px; background: #fff0f0; color: var(--danger); font-size: .75rem; }
.process-table-wrap { overflow-x: auto; padding: 0; }
.process-table { width: 100%; min-width: 850px; border-collapse: collapse; font-size: .75rem; }
.process-table th, .process-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.process-table th { color: var(--muted); font-size: .65rem; letter-spacing: .05em; text-transform: uppercase; }
.import-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 24px; }
.import-panel h2 { margin-bottom: 6px; }
.import-panel p { margin: 0; }
.import-panel form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.import-panel input[type="file"] { max-width: 320px; }

.login-page { background: var(--ink); }
.login-shell { display: grid; min-height: 100vh; grid-template-columns: 1.25fr .9fr; }
.login-panel { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: clamp(34px, 6vw, 85px); background: radial-gradient(circle at 75% 75%, rgba(31,122,140,.42), transparent 30%), linear-gradient(145deg, #14213d, #1c3457); color: #fff; }
.login-panel::after { position: absolute; right: -13vw; bottom: -30vw; width: 55vw; height: 55vw; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; box-shadow: 0 0 0 8vw rgba(255,255,255,.025), 0 0 0 16vw rgba(255,255,255,.018); content: ""; }
.login-brand { position: relative; z-index: 1; }
.login-copy { position: relative; z-index: 1; max-width: 650px; margin: auto 0; }
.login-copy .eyebrow { color: #74c5cf; }
.login-copy h1 { max-width: 600px; font-size: clamp(2.7rem, 6vw, 5.6rem); }
.login-copy p { max-width: 540px; color: #b6c2d3; font-size: 1.02rem; }
.login-steps { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 18px; color: #7f91aa; font-size: .65rem; font-weight: 760; letter-spacing: .08em; }
.login-form-wrap { display: grid; place-items: center; padding: 35px; background: #f7f8fa; }
.login-form { width: min(390px, 100%); }
.login-form h2 { margin-bottom: 28px; font-size: 2rem; }
.login-form label { display: block; margin-bottom: 16px; }
.login-form .button { margin-top: 5px; }
.form-note { margin-top: 15px; font-size: .7rem; text-align: center; }
.form-alert { margin-bottom: 18px; padding: 12px 14px; border-radius: 9px; background: #fde6e6; color: var(--danger); font-size: .76rem; line-height: 1.5; }
.form-alert.warning { background: #fff2d6; color: var(--warning); }
.form-alert.success { background: #e4f1e6; color: var(--success); }
.toast-region { position: fixed; z-index: 100; right: 22px; bottom: 22px; display: grid; gap: 8px; }
.toast { display: flex; max-width: 380px; align-items: center; gap: 16px; padding: 12px 15px; border-radius: 10px; background: var(--ink); color: #fff; box-shadow: var(--shadow); font-size: .76rem; animation: toast-in .2s ease; }
.toast.error { background: #8a2f2f; }
.toast-action { border: 0; border-bottom: 1px solid currentColor; border-radius: 0; padding: 2px 0; background: transparent; color: #8cdae3; font-size: .72rem; font-weight: 800; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1120px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .interview-meta { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  body { padding-bottom: 70px; }
  .sidebar, .desktop-save-wrap { display: none; }
  .mobile-header { position: sticky; z-index: 15; top: 0; display: flex; height: 62px; align-items: center; justify-content: space-between; padding: 9px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(10px); }
  .brand.compact { color: var(--ink); font-size: .84rem; }
  .brand.compact .brand-mark { width: 35px; height: 35px; border-radius: 10px; }
  .bottom-nav { position: fixed; z-index: 30; inset: auto 0 0; display: grid; height: calc(66px + env(safe-area-inset-bottom)); grid-auto-flow: column; grid-auto-columns: 1fr; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255,255,255,.98); }
  .bottom-nav a { display: grid; place-content: center; gap: 3px; color: #7b8697; font-size: .56rem; font-weight: 720; text-align: center; }
  .bottom-nav a span { font-size: .66rem; font-weight: 900; }
  .bottom-nav a.is-active { color: var(--teal); }
  .bottom-more { position: relative; display: grid; color: #7b8697; }
  .bottom-more > summary { display: grid; place-content: center; gap: 3px; cursor: pointer; font-size: .56rem; font-weight: 720; text-align: center; list-style: none; }
  .bottom-more > summary::-webkit-details-marker { display: none; }
  .bottom-more > summary span { font-size: .66rem; font-weight: 900; }
  .bottom-more.is-active > summary { color: var(--teal); }
  .bottom-more-menu { position: fixed; right: 10px; bottom: calc(74px + env(safe-area-inset-bottom)); display: grid; min-width: 230px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 16px 45px rgba(20,33,61,.2); }
  .bottom-more-menu a { display: block; padding: 13px 16px; border-bottom: 1px solid #edf0f3; color: var(--ink); font-size: .76rem; text-align: left; }
  .bottom-more-menu button, .bottom-more-menu form { width: 100%; border: 0; background: transparent; color: var(--ink); font-size: .76rem; text-align: left; }
  .bottom-more-menu button { display: block; padding: 13px 16px; }
  .bottom-more-menu form button { border-top: 1px solid var(--line); }
  .bottom-more-menu a:last-child { border-bottom: 0; }
  .main-content { margin-left: 0; padding: 24px 15px 35px; }
  .page-header { display: block; margin-bottom: 20px; }
  .page-header h1 { font-size: 2.05rem; }
  .hero-header { min-height: auto; padding: 28px 23px; }
  .hero-progress { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { min-height: 130px; padding: 18px; }
  .metric-card > strong { font-size: 1.7rem; }
  .dashboard-grid { gap: 12px; }
  .dashboard-grid > .panel { padding: 20px; }
  .interview-header .progress-summary { width: 100%; margin-top: 18px; }
  .interview-meta { grid-template-columns: 1fr 1fr; }
  .filter-bar { display: grid; grid-template-columns: 1fr 1fr; }
  .filter-bar .search-field { min-width: 0; grid-column: 1 / -1; }
  .filter-bar label { min-width: 0; }
  .question-heading { grid-template-columns: 38px 1fr; gap: 10px; padding: 16px; }
  .question-heading h2 { font-size: .92rem; }
  .status-control { grid-column: 2; }
  .answer-field, .question-details summary, .detail-grid, .question-actions { padding-left: 64px; padding-right: 16px; }
  .registry-header .button { width: 100%; margin-top: 18px; }
  .record-card { grid-template-columns: 38px 1fr; align-items: start; padding: 14px; }
  .record-actions { grid-column: 2; justify-content: flex-end; }
  .record-dialog { width: 100vw; max-height: 100dvh; margin: 0; border-radius: 0; }
  .record-form { max-height: 100dvh; }
  .form-grid { grid-template-columns: 1fr; padding: 20px 18px; }
  .form-grid label.wide { grid-column: auto; }
  .record-form > header, .record-form > footer { padding-left: 18px; padding-right: 18px; }
  .login-shell { grid-template-columns: 1fr; }
  .login-panel { display: none; }
  .login-form-wrap { min-height: 100vh; padding: 28px; }
  .import-panel { display: block; }
  .import-panel form { margin-top: 16px; }
}

@media (pointer: coarse) {
  .icon-button, .button-small { min-width: 44px; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 470px) {
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 120px; }
  .interview-meta, .filter-bar { grid-template-columns: 1fr; }
  .filter-bar .search-field { grid-column: auto; }
  .answer-field, .question-details summary, .detail-grid, .question-actions { padding-left: 16px; }
  .question-actions { justify-content: flex-start; }
  .registry-toolbar { align-items: center; }
  .registry-count { display: none; }
  .record-card { grid-template-columns: 1fr; }
  .record-index { display: none; }
  .record-actions { grid-column: 1; }
}
