:root {
  --blue: #087ab8;
  --blue-dark: #07547f;
  --blue-soft: #e9f5fc;
  --red: #e62e3d;
  --ink: #15334a;
  --muted: #6c8190;
  --line: #dce7ee;
  --surface: #ffffff;
  --background: #f3f7fa;
  --green: #1d9a6c;
  --shadow: 0 12px 36px rgba(41, 78, 103, .08);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--background); }
body { margin: 0; color: var(--ink); background: var(--background); font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif; font-size: 15px; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header { position: sticky; z-index: 20; top: 0; height: 76px; background: rgba(255,255,255,.96); border-top: 3px solid var(--blue-dark); border-bottom: 1px solid #e4edf2; backdrop-filter: blur(12px); }
.nav-shell { width: min(1440px, calc(100% - 48px)); height: 73px; margin: auto; display: flex; align-items: center; gap: 36px; }
.brand { min-width: 240px; display: flex; align-items: center; gap: 12px; }
.brand-company { width: auto; height: 40px; display: block; object-fit: contain; flex: 0 0 auto; }
.brand-text { display: grid; line-height: 1.1; }
.brand strong { letter-spacing: .2px; font-size: 19px; color: var(--blue-dark); }
.brand small { margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: 2px; }
.main-nav { flex: 1; display: flex; justify-content: center; gap: 42px; height: 100%; }
.main-nav a { position: relative; display: grid; place-items: center; color: #405c70; font-weight: 650; }
.main-nav a::after { position: absolute; content: ""; height: 3px; left: 50%; right: 50%; bottom: -1px; background: var(--red); transition: .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--blue-dark); }
.main-nav a.active::after { left: 0; right: 0; }
.account-menu { min-width: 238px; display: flex; align-items: center; gap: 10px; }
.account-menu > div:not(.account-actions) { display: grid; line-height: 1.25; }
.account-menu small { color: var(--muted); font-size: 12px; }
.avatar { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; font-weight: 750; }
.account-actions { margin-left: auto; display: flex; gap: 10px; font-size: 12px; color: var(--muted); }
.account-actions form { margin: 0; }
.link-button { border: 0; padding: 0; color: inherit; background: transparent; cursor: pointer; }
.account-actions a:hover, .link-button:hover { color: var(--blue); }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 24px; color: var(--blue-dark); }

.page-shell { width: min(1380px, calc(100% - 48px)); min-height: calc(100vh - 150px); margin: 0 auto; padding: 30px 0 50px; }
.site-footer { width: min(1380px, calc(100% - 48px)); margin: 0 auto; min-height: 74px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-brand img { height: 22px; width: auto; opacity: .92; }
.flash-stack { position: fixed; z-index: 40; right: 28px; top: 94px; width: min(410px, calc(100% - 40px)); display: grid; gap: 10px; }
.flash { padding: 14px 16px; display: flex; align-items: start; justify-content: space-between; gap: 16px; border: 1px solid; border-radius: 11px; background: white; box-shadow: var(--shadow); animation: flash-in .25s ease; }
.flash button { border: 0; background: transparent; cursor: pointer; color: inherit; font-size: 20px; line-height: 1; opacity: .6; }
.flash-success { color: #176c50; border-color: #a7dfca; background: #f1fbf7; }
.flash-danger { color: #a82938; border-color: #f1b3ba; background: #fff4f5; }
.flash-warning { color: #806116; border-color: #ead694; background: #fffbeb; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } }

.hero-card, .page-banner { border: 1px solid #dce9f1; border-radius: var(--radius); background: linear-gradient(105deg, #fff 0%, #f5fbff 60%, #eaf5fd 100%); box-shadow: var(--shadow); }
.hero-card { position: relative; overflow: hidden; min-height: 250px; padding: 42px 48px; display: flex; align-items: center; justify-content: space-between; }
.hero-card::before, .page-banner::before { position: absolute; content: ""; width: 4px; height: 50%; left: 0; top: 25%; background: linear-gradient(var(--blue), var(--red)); border-radius: 0 4px 4px 0; }
.eyebrow { display: inline-block; margin-bottom: 10px; color: var(--blue); font-weight: 750; letter-spacing: 1.3px; font-size: 12px; }
.hero-card h1, .page-banner h1 { margin: 0; font-size: clamp(28px, 3vw, 42px); line-height: 1.2; letter-spacing: -.6px; color: #073d61; }
.hero-card p, .page-banner p { max-width: 760px; margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.hero-actions { margin-top: 25px; display: flex; gap: 12px; }
.button { min-height: 44px; padding: 10px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; border: 1px solid transparent; border-radius: 9px; font-weight: 700; cursor: pointer; transition: .2s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(8,122,184,.14); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--blue), #06679d); border-color: var(--blue); }
.button-primary span { font-size: 18px; }
.button-secondary { color: var(--blue-dark); background: #fff; border-color: #c9d9e3; }
.button-full { width: 100%; }
.button-small { min-height: 34px; padding: 6px 12px; font-size: 12px; }
.hero-graphic { position: relative; width: 260px; height: 150px; flex: 0 0 auto; }
.hero-graphic::before, .hero-graphic::after { position: absolute; content: ""; border-radius: 50%; border: 1px solid rgba(8,122,184,.15); }
.hero-graphic::before { inset: 0 40px; }
.hero-graphic::after { inset: 25px 10px; }
.hero-graphic > span { position: absolute; right: 15px; top: 8px; color: rgba(8,122,184,.4); font-weight: 800; letter-spacing: 3px; }
.helix { position: absolute; left: 34px; right: 34px; top: 50%; transform: rotate(-10deg); }
.helix::before, .helix::after { position: absolute; content: ""; width: 100%; height: 46px; left: 0; top: -23px; border: 4px solid; border-left: 0; border-right: 0; border-radius: 50%; }
.helix::before { border-color: var(--blue); transform: skewX(-28deg); }
.helix::after { border-color: var(--red); transform: skewX(28deg); }
.helix i { position: absolute; width: 2px; height: 42px; top: -20px; background: rgba(34,117,157,.35); transform: rotate(18deg); }
.helix i:nth-child(1) { left: 12%; }.helix i:nth-child(2) { left: 27%; }.helix i:nth-child(3) { left: 42%; }.helix i:nth-child(4) { left: 57%; }.helix i:nth-child(5) { left: 72%; }.helix i:nth-child(6) { left: 87%; }

.workflow { margin: 24px 0; min-height: 84px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.workflow.small { grid-template-columns: repeat(3, 1fr); }
.workflow.wizard-steps { grid-template-columns: repeat(4, 1fr); }
.workflow-step { position: relative; padding: 19px 22px; display: flex; align-items: center; gap: 14px; border-right: 1px solid var(--line); }
.workflow-step[data-step-tab] { cursor: pointer; }
.workflow-step:last-child { border-right: 0; }
.workflow-step b { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; color: #718795; border: 2px solid #c8d5dd; border-radius: 50%; font-size: 15px; }
.workflow-step span { display: grid; gap: 4px; }
.workflow-step strong { color: #476174; }
.workflow-step small { color: var(--muted); }
.workflow-step.active { background: linear-gradient(180deg, #fff, #f8fcff); }
.workflow-step.active::after { position: absolute; content: ""; height: 4px; left: 0; right: 0; bottom: 0; background: var(--red); }
.workflow-step.active b { color: #fff; background: var(--blue); border-color: var(--blue); }
.workflow-step.active strong { color: var(--blue); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { min-height: 108px; padding: 20px 22px; display: flex; align-items: center; gap: 17px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 7px 24px rgba(54,86,108,.05); }
.stat-icon { width: 50px; height: 50px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; font-size: 23px; font-weight: 800; }
.stat-icon.blue { color: var(--blue); background: var(--blue-soft); }
.stat-icon.green { color: var(--green); background: #eaf8f3; }
.stat-icon.red { color: var(--red); background: #fff0f2; }
.stat-icon.violet { color: #7358b7; background: #f2effb; }
.stat-card > div { display: grid; gap: 2px; }
.stat-card small { color: var(--muted); }
.stat-card strong { font-size: 29px; line-height: 1.1; color: #163c56; }
.stat-card .stat-word { font-size: 20px; }

.section-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.section-card + .section-card { margin-top: 24px; }
.section-heading { min-height: 84px; padding: 17px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e9f0f4; }
.section-heading > div { display: flex; align-items: center; gap: 14px; }
.section-heading h2 { margin: 0; font-size: 20px; color: #103d59; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.section-index { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: #fff; background: var(--blue); font-weight: 800; font-size: 17px; }
.red-index { background: var(--red); }
.text-link, .row-action, .project-link { color: var(--blue); font-weight: 700; }
.text-link:hover, .row-action:hover, .project-link:hover { color: var(--blue-dark); text-decoration: underline; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 13px 18px; color: #637a8a; background: #f7fafc; font-size: 12px; font-weight: 700; white-space: nowrap; }
td { padding: 16px 18px; border-top: 1px solid #edf2f5; color: #405b6e; vertical-align: middle; }
tbody tr:hover { background: #fafdff; }
.cell-sub { display: block; margin-top: 4px; color: #91a1ab; font-size: 11px; }
.status, .role { width: max-content; display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; }
.status-completed { color: #187b59; background: #e9f8f2; }
.status-pending { color: #9b731a; background: #fff6df; }
.status-rejected { color: #bf3545; background: #fdecee; }
.primer-edit { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.primer-edit input[type="text"] { width: 140px; height: 32px; padding: 0 8px; border: 1px solid #ccdbe4; border-radius: 6px; }
.primer-edit input.seq-input { width: min(280px, 100%); font-family: ui-monospace, monospace; font-size: 12px; }
.primer-edit label.inline-check { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #25475e; }
.status-failed { color: #bf3545; background: #fff0f2; }
.status-processing { color: #9b731a; background: #fff7dd; }
.empty-state { min-height: 280px; padding: 40px; display: grid; place-items: center; align-content: center; text-align: center; }
.empty-state > span { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 26px; }
.empty-state h3 { margin: 16px 0 5px; }.empty-state p { margin: 0 0 20px; color: var(--muted); }

.page-banner { position: relative; overflow: hidden; min-height: 170px; padding: 32px 38px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.page-banner.compact h1 { font-size: 32px; }
.banner-badge { padding: 11px 16px; border: 1px solid #c9e1ef; border-radius: 999px; color: var(--blue); background: #fff; font-weight: 700; white-space: nowrap; }
.two-column-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; }
.form-card { min-height: 0; }
.wizard-form .form-card { min-height: auto; }
.form-stack { display: grid; gap: 18px; }
.form-stack.spacious { padding: 28px; gap: 24px; }
.form-stack label { display: grid; gap: 8px; color: #25475e; font-weight: 700; }
.form-stack label em { color: var(--red); font-style: normal; }
.form-stack input, .form-stack select, .user-actions select { width: 100%; height: 47px; padding: 0 13px; border: 1px solid #ccdbe4; border-radius: 8px; outline: none; color: var(--ink); background: #fff; transition: .2s ease; }
.form-stack input:focus, .form-stack select:focus, .user-actions select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,122,184,.1); }
.form-stack label small { color: var(--muted); font-weight: 400; }
.upload-zone { min-height: 250px; padding: 32px; display: grid !important; place-items: center; align-content: center; gap: 10px !important; border: 2px dashed #b9d5e4; border-radius: 13px; color: #365b72 !important; background: #f8fcff; text-align: center; cursor: pointer; transition: .2s ease; }
.upload-zone:hover, .upload-zone.dragover { border-color: var(--blue); background: #f0f9fe; }
.upload-zone input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.upload-zone small { color: var(--muted); font-weight: 400; }
.upload-icon { width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 5px; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-size: 32px; }
.four-file-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.file-input-card { min-width: 0; display: grid; gap: 8px; }
.compact-upload { min-height: 178px; padding: 18px; }
.compact-upload .upload-icon { width: 44px; height: 44px; font-size: 23px; }
.compact-upload strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-upload.example-loaded { border-color: #58b893; background: #f0fbf7; }
.compact-upload.example-loaded .upload-icon { color: var(--green); background: #dff5ec; }
.upload-zone.example-loaded { border-color: #58b893; background: #f0fbf7; }
.upload-zone.example-loaded .upload-icon { color: var(--green); background: #dff5ec; }
.sample-step-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr); gap: 16px; align-items: stretch; }
.sample-only-upload { min-width: 0; display: grid; grid-template-rows: auto 1fr; gap: 8px; }
.sample-only-upload .upload-zone { min-height: 220px; height: 100%; }
.reference-summary-card { min-width: 0; display: grid; grid-template-rows: auto 1fr; border: 1px solid #d7e6ef; border-radius: 13px; background: #f7fbfe; overflow: hidden; }
.reference-summary-head { padding: 14px 16px; border-bottom: 1px solid #e2eef5; display: grid; gap: 4px; }
.reference-summary-head strong { color: #184860; font-size: 14px; }
.reference-summary-head span { color: var(--muted); font-size: 12px; }
.reference-summary-list { display: grid; gap: 0; }
.reference-summary-item { width: 100%; padding: 14px 16px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 0; border-bottom: 1px solid #e6f0f6; background: transparent; text-align: left; cursor: pointer; transition: .15s ease; }
.reference-summary-item:last-child { border-bottom: 0; }
.reference-summary-item:hover { background: #eef7fc; }
.reference-summary-item b { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--blue); font-size: 12px; }
.reference-summary-item span { display: grid; gap: 3px; min-width: 0; }
.reference-summary-item strong { color: #1d4a63; font-size: 14px; }
.reference-summary-item small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reference-summary-item em { color: var(--blue); font-style: normal; font-weight: 700; font-size: 12px; white-space: nowrap; }
.reference-summary-empty { padding: 18px 16px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.wizard-panel[hidden] { display: none !important; }
.wizard-footer { border-top: 1px solid #e9f0f4; }
.wizard-nav { justify-content: space-between; }
.reference-table-wrap { max-height: 520px; overflow: auto; border-top: 1px solid #e9f0f4; }
.reference-table td code { max-width: 280px; display: inline-block; overflow: hidden; text-overflow: ellipsis; }
.table-hint { margin: 0; padding: 0 24px 10px; color: var(--muted); font-size: 12px; }
.copyable-seq { cursor: pointer; outline: none; border-bottom: 1px dashed rgba(56,90,112,.35); }
.copyable-seq:hover, .copyable-seq:focus { color: var(--blue-dark); background: #eef7fc; }
.copyable-seq.expanded { max-width: min(720px, 70vw); white-space: normal; overflow: visible; text-overflow: clip; word-break: break-all; line-height: 1.45; padding: 4px 6px; border-radius: 6px; border-bottom: 0; background: #eef7fc; }
.compact-empty { min-height: 220px; padding: 28px; }
.run-hint { padding: 12px 15px; display: flex; align-items: center; gap: 10px; border: 1px solid #cfe3ee; border-radius: 9px; color: #486779; background: #f5fbfe; }
.run-hint b { padding: 4px 8px; border-radius: 6px; color: #fff; background: var(--blue); font-size: 12px; }
.run-hint span { font-size: 13px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; }
.side-stack { display: grid; align-content: start; gap: 18px; }
.side-card { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.side-card h2 { margin: 14px 0 8px; font-size: 18px; }.side-card p { margin: 0 0 18px; color: var(--muted); line-height: 1.65; }
.side-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--blue); font-size: 21px; }
.side-icon.pale { color: var(--blue); background: var(--blue-soft); }
.example-card { border-top: 3px solid var(--blue); }
.compact-form { gap: 10px; }.compact-form input { height: 42px; }
.example-load-status { margin-top: 11px; padding: 10px 11px; border-radius: 8px; color: var(--muted); background: #f6f9fb; font-size: 12px; line-height: 1.55; }
.example-load-status.loading { color: #806116; background: #fffbeb; }
.example-load-status.success { color: #176c50; background: #edf9f4; }
.example-load-status.error { color: #a82938; background: #fff1f3; }
.download-links { display: grid; gap: 8px; }
.download-links a { padding: 11px 12px; display: flex; justify-content: space-between; border: 1px solid #dce7ed; border-radius: 8px; background: #fbfdfe; }
.download-links a:hover { border-color: #9bc7de; }.download-links b { color: var(--blue); }
.tip-card { padding: 19px 21px; color: #65501e; border: 1px solid #ead89d; border-radius: 12px; background: #fffbed; }
.tip-card p { margin: 6px 0 0; line-height: 1.6; font-size: 13px; }

.filter-bar { min-height: 68px; padding: 13px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.filter-tabs { display: flex; gap: 7px; }
.filter-tabs a { padding: 8px 14px; border-radius: 8px; color: var(--muted); font-weight: 650; }
.filter-tabs a.active, .filter-tabs a:hover { color: var(--blue); background: var(--blue-soft); }
.result-count { color: var(--muted); font-size: 13px; }
.back-link { display: inline-block; margin-bottom: 16px; color: var(--blue); font-weight: 700; }
.title-with-status { display: flex; align-items: center; gap: 16px; }
.job-banner { min-height: 205px; }
.meta-grid { margin: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.meta-grid > div { min-height: 94px; padding: 20px 24px; display: grid; align-content: center; gap: 5px; border-right: 1px solid var(--line); }
.meta-grid > div:last-child { border-right: 0; }
.meta-grid small, .meta-grid span { color: var(--muted); font-size: 12px; }.meta-grid strong { color: #24475e; }
.result-stats { margin-bottom: 24px; }
.file-grid { padding: 22px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.file-card { min-width: 0; padding: 15px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; }
.file-card:hover { border-color: #9bc7de; background: #f9fdff; }
.file-card > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }.file-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.file-card small { color: var(--muted); }
.file-card > b { margin-left: auto; color: var(--blue); }
.file-type { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; color: #fff; font-weight: 800; font-size: 12px; }
.file-type.excel { background: #198b5f; }.file-type.word { background: #2367b1; }.file-type.zip { background: #7454ad; }
.sequence-table code { color: #385a70; font-family: Consolas, monospace; font-size: 12px; white-space: nowrap; }
.validation-list { padding: 8px 24px 22px; display: grid; gap: 8px; }
.validation-list > div { padding: 13px 15px; display: flex; gap: 18px; border-left: 3px solid var(--red); border-radius: 6px; background: #fff6f7; }.validation-list span { color: #8a5158; }
.rule-confirm-list > div { align-items: center; justify-content: space-between; }
.rule-confirm-main { display: grid; gap: 6px; min-width: 0; flex: 1; }
.rule-confirm-meta { color: #5f6b7a; }
.rule-confirm-list > .rule-confirmed { border-left-color: #1f8a5b; background: #f2fbf6; }
.rule-confirm-list > .rule-pending { border-left-color: var(--red); }
.heading-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.missing-subtype-chips { padding: 8px 24px 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.missing-subtype-chips span { padding: 8px 12px; border-radius: 999px; color: #9b3140; background: #fff0f2; border: 1px solid #f0c8ce; font-size: 13px; font-weight: 700; }
.subtype-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.subtype-form-grid .full-width { grid-column: 1 / -1; }
.subtype-form textarea { width: 100%; min-height: 96px; padding: 12px 13px; border: 1px solid #ccdbe4; border-radius: 8px; outline: none; color: var(--ink); background: #fff; resize: vertical; font: inherit; line-height: 1.5; }
.subtype-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,122,184,.1); }
.input-manifest-card { margin-bottom: 24px; }
.input-manifest { padding: 18px 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.input-manifest > div { min-width: 0; padding: 13px 15px; display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 9px; background: #f9fcfe; }
.input-manifest strong, .input-manifest span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.input-manifest span { color: var(--muted); font-size: 12px; }
.error-panel, .processing-panel { min-height: 220px; padding: 35px; display: flex; align-items: center; justify-content: center; gap: 22px; border: 1px solid; border-radius: var(--radius); background: #fff; }
.error-panel { border-color: #f0b9c0; }.error-panel > span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--red); font-size: 28px; font-weight: 800; }
.error-panel h2, .processing-panel h2 { margin: 0; }.error-panel p, .processing-panel p { margin: 8px 0 17px; color: var(--muted); }
.spinner { width: 46px; height: 46px; border: 4px solid #dceff8; border-top-color: var(--blue); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.narrow-card { width: min(620px, 100%); margin: 35px auto; }
.password-field { position: relative; }.password-field input { padding-right: 70px; }.password-field button { position: absolute; right: 8px; top: 7px; height: 33px; border: 0; color: var(--blue); background: transparent; cursor: pointer; }
.login-page { background: linear-gradient(120deg, #f7fbfd, #edf6fb); }
.login-page .site-header { position: static; }.login-page .site-header .nav-shell { justify-content: center; }.login-page .brand { min-width: auto; }
.login-page .page-shell { min-height: calc(100vh - 150px); display: grid; place-items: center; }
.login-layout { width: min(1180px, 100%); display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: 48px; }
.login-intro { position: relative; padding: 40px 0 40px 24px; }
.login-intro::before { position: absolute; z-index: -1; content: ""; width: 390px; height: 390px; left: -90px; top: -70px; border-radius: 50%; background: radial-gradient(circle, rgba(8,122,184,.13), transparent 68%); }
.login-intro h1 { margin: 0; color: #103c59; font-size: clamp(36px, 5vw, 60px); line-height: 1.18; letter-spacing: -1.5px; }.login-intro h1 em { color: var(--blue); font-style: normal; }
.login-intro > p { max-width: none; margin: 24px 0; color: var(--muted); font-size: 15px; line-height: 1.6; white-space: nowrap; }
.feature-row { display: flex; flex-wrap: wrap; gap: 12px; }.feature-row span { padding: 9px 13px; border: 1px solid #d3e3ec; border-radius: 999px; color: #48667a; background: rgba(255,255,255,.75); font-size: 12px; }.feature-row b { color: var(--red); margin-right: 5px; }
.login-card { padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 24px 60px rgba(21,66,94,.13); }
.login-card-head { margin-bottom: 28px; display: flex; gap: 13px; align-items: center; }.login-card h2 { margin: 0; font-size: 25px; }.login-card-head p { margin: 5px 0 0; color: var(--muted); }.icon-box { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--blue); font-size: 22px; }
.login-note { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 12px; }

.admin-layout { margin-top: 24px; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
.create-user-card .form-stack { padding: 22px; }.users-card { min-width: 0; }
.users-card .section-heading p { max-width: 560px; }
.user-list { display: grid; }
.user-row { padding: 18px 20px; display: grid; grid-template-columns: auto minmax(150px, 1fr) minmax(190px, 230px) auto auto; gap: 14px; align-items: center; border-top: 1px solid #edf2f5; }
.user-row:first-child { border-top: 0; }
.user-row.inactive { opacity: .65; background: #fafbfc; }
.avatar.large { width: 44px; height: 44px; }.user-main { min-width: 0; display: grid; gap: 4px; }.user-main span, .user-main small { color: var(--muted); font-size: 12px; }.you-tag { margin-left: 5px; padding: 3px 6px; border-radius: 5px; color: var(--blue) !important; background: var(--blue-soft); }
.user-period { min-width: 0; display: grid; gap: 6px; }
.period-form { display: grid; gap: 6px; }
.period-form label { display: grid; gap: 4px; color: #25475e; font-size: 12px; font-weight: 700; }
.period-form input { width: 100%; height: 34px; padding: 0 9px; border: 1px solid #ccdbe4; border-radius: 7px; font-size: 12px; }
.period-form .button { width: 100%; }
.period-pill { display: inline-flex; align-items: center; padding: 7px 10px; border-radius: 999px; background: #f2effb; color: #7358b7; font-size: 12px; font-weight: 700; }
.period-state { font-size: 11px; }
.period-active { color: #187b59; }
.period-expired { color: #bf3545; font-weight: 700; }
.period-upcoming, .period-missing { color: #9b731a; }
.user-badges { display: flex; gap: 6px; }.role { padding: 5px 9px; }.role-admin { color: #7652a6; background: #f1ecf8; }.role-user { color: #4a6e83; background: #edf3f6; }
.user-actions { display: flex; align-items: center; gap: 6px; }.user-actions form { margin: 0; }.user-actions select { width: 108px; height: 34px; padding: 0 7px; font-size: 12px; }
.reset-details { position: relative; }.reset-details summary { padding: 8px 9px; color: var(--blue); cursor: pointer; font-size: 12px; list-style: none; }.reset-details[open] form { position: absolute; z-index: 5; width: 260px; right: 0; top: 36px; padding: 12px; display: flex; gap: 7px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: var(--shadow); }.reset-details input { min-width: 0; height: 35px; padding: 0 8px; border: 1px solid #ccdbe4; border-radius: 6px; }

.error-page { min-height: 520px; display: grid; place-items: center; align-content: center; text-align: center; }.error-page > strong { font-size: 90px; line-height: 1; color: #cbe3f0; }.error-page h1 { margin: 14px 0 8px; }.error-page p { margin: 0 0 24px; color: var(--muted); }

@media (max-width: 1120px) {
  .nav-shell { gap: 15px; }.brand { min-width: 200px; }.brand-company { height: 32px; }.brand-text strong { font-size: 16px; }.main-nav { gap: 20px; }.account-menu { min-width: auto; }.account-menu > div:not(.account-actions), .account-actions { display: none; }
  .two-column-layout { grid-template-columns: minmax(0, 1fr) 310px; }
  .file-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .user-row { grid-template-columns: auto 1fr auto; }.user-period, .user-actions { grid-column: 2 / -1; }
}

@media (max-width: 820px) {
  .site-header { height: auto; min-height: 70px; }.nav-shell { position: relative; width: calc(100% - 30px); min-height: 67px; flex-wrap: wrap; }.brand { flex: 1; }.mobile-menu { display: block; }.account-menu { min-width: auto; }
  .main-nav { order: 4; width: 100%; height: auto; display: none; justify-content: stretch; flex-direction: column; gap: 0; padding-bottom: 12px; }.main-nav.open { display: flex; }.main-nav a { padding: 11px; place-items: start; }.main-nav a::after { display: none; }
  .page-shell, .site-footer { width: calc(100% - 28px); }.page-shell { padding-top: 18px; }
  .hero-card { padding: 30px; min-height: 300px; }.hero-graphic { display: none; }
  .workflow { grid-template-columns: repeat(2, 1fr); }.workflow.small, .workflow.wizard-steps { grid-template-columns: 1fr; }.workflow-step { border-bottom: 1px solid var(--line); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }.two-column-layout, .admin-layout { grid-template-columns: 1fr; }
  .meta-grid { grid-template-columns: repeat(2, 1fr); }.meta-grid > div:nth-child(2) { border-right: 0; }.meta-grid > div { border-bottom: 1px solid var(--line); }
  .login-layout { grid-template-columns: 1fr; gap: 20px; }.login-intro { padding: 10px; }.login-intro h1 { font-size: 38px; }.login-intro > p { white-space: normal; font-size: 15px; }.login-card { width: min(460px, 100%); margin: auto; }
  .page-banner { align-items: flex-start; flex-direction: column; }.page-banner .button, .banner-badge { align-self: flex-start; }
  .four-file-grid { grid-template-columns: 1fr; }
  .sample-step-grid { grid-template-columns: 1fr; }
  .subtype-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .page-shell, .site-footer { width: calc(100% - 20px); }.site-footer { flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; }
  .hero-card, .page-banner { padding: 26px 21px; }.hero-card h1, .page-banner h1, .page-banner.compact h1 { font-size: 27px; }.hero-actions { align-items: stretch; flex-direction: column; }
  .workflow { grid-template-columns: 1fr; }.stats-grid { grid-template-columns: 1fr 1fr; gap: 9px; }.stat-card { min-height: 90px; padding: 14px; }.stat-icon { width: 40px; height: 40px; }.stat-card strong { font-size: 22px; }
  .section-heading { padding: 15px; align-items: flex-start; gap: 10px; }.section-heading .text-link { margin-top: 10px; }.form-stack.spacious { padding: 20px 15px; }.upload-zone { min-height: 210px; padding: 20px; }
  .file-grid { grid-template-columns: 1fr; padding: 15px; }.meta-grid { grid-template-columns: 1fr; }.meta-grid > div { border-right: 0; }
  .input-manifest { grid-template-columns: 1fr; padding: 15px; }
  .filter-bar { align-items: flex-start; flex-direction: column; gap: 10px; }.filter-tabs { width: 100%; overflow-x: auto; }.filter-tabs a { white-space: nowrap; }
  .validation-list > div { flex-direction: column; gap: 6px; }.user-row { grid-template-columns: auto 1fr; }.user-badges, .user-period, .user-actions { grid-column: 1 / -1; flex-wrap: wrap; }.reset-details[open] form { left: 0; right: auto; }
  .login-intro { display: none; }.login-layout { display: block; }.login-card { padding: 24px 20px; }.login-page .page-shell { min-height: calc(100vh - 140px); }
  .brand-company { height: 30px; }
}
