:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #18202f;
  --muted: #526071;
  --line: #d9e0ea;
  --primary: #e30713;
  --primary-dark: #b8050f;
  --accent: #b88021;
  --danger: #b42318;
  --warn: #b54708;
  --ok: #344054;
  --progress: #697586;
  --shadow: 0 2px 8px rgba(24, 32, 47, .04);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif; font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--bg); letter-spacing: 0; }
a { color: #344054; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
small { font-size: 14px; }
h1, h2, h3 { font-weight: 600; }
b, strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
button, .button, .primary { min-height: 42px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 10px 14px; font: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.primary { background: var(--primary); border-color: var(--primary); color: white; font-weight: 600; }
button:hover, .button:hover, .primary:hover { filter: brightness(.96); }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(14px, 4vw, 34px); background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.brand img, .auth-mark img { max-height: 38px; max-width: 120px; object-fit: contain; }
.brand img { width: 32px; height: 52px; max-height: 52px; background: transparent; }
.brand-text { display: grid; gap: 2px; }
.brand-title { font-size: 17px; font-weight: 600; line-height: 1.35; }
.brand-subtitle { font-size: 14px; font-weight: 400; line-height: 1.4; color: var(--muted); }
.brand:hover { text-decoration: none; }
.auth-mark:has(img) { width: 104px; height: 170px; background: transparent; border-radius: 0; }
.auth-mark img { width: 104px; height: 170px; max-width: 100%; max-height: 100%; }
.brand-mark, .auth-mark { width: 40px; height: 40px; border-radius: 8px; background: var(--primary); color: white; display: grid; place-items: center; font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.top-actions form { margin: 0; }
.user-name { color: var(--muted); font-weight: 600; }
.settings-stack { display: grid; gap: 16px; }
.settings-stack h2 { margin: 0; }
.notification-link { display: inline-flex; align-items: center; gap: 6px; }
.notification-link span { min-width: 21px; height: 21px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--danger); color: white; font-size: 14px; font-weight: 600; }
.page { width: min(1180px, calc(100% - 28px)); margin: 24px auto 56px; }
.page.narrow { width: min(860px, calc(100% - 28px)); }
.auth { min-height: calc(100vh - 48px); display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: center; }
.auth h1 { font-size: 28px; line-height: 1.2; margin: 18px 0 10px; }
.auth p, .toolbar p, .event-head p, small { color: var(--muted); }
.panel, .event-card, .file-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-stack { display: grid; gap: 14px; }
.systems-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.systems-grid h2 { margin: 0 0 12px; }
.check-label { display: flex; align-items: center; gap: 9px; }
.check-label input { width: 18px; min-height: 18px; height: 18px; }
.compact-form { margin-top: 8px; }
.inline-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; margin: 12px 0; }
.span { grid-column: 1 / -1; }
label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: #344054; }
input, select, textarea { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 16px; background: white; }
textarea { min-height: 96px; resize: vertical; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.toolbar h1, .event-head h1 { margin: 0 0 6px; font-size: 28px; line-height: 1.25; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.event-card { display: grid; gap: 10px; }
.event-card h2 { margin: 0; font-size: 20px; }
.card-status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card-status-grid div { min-width: 0; display: grid; gap: 3px; padding: 10px 8px; }
.card-status-grid div + div { border-left: 1px solid var(--line); }
.card-status-grid small { font-size: 14px; font-weight: 600; }
.badge { width: max-content; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--muted); font-weight: 600; font-size: 14px; }
.event-head { margin-bottom: 14px; }
.module-bar { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 14px; scrollbar-width: thin; }
.module-pill { flex: 0 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; align-items: center; min-width: 210px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; }
.module-pill small { grid-column: 2; font-size: 14px; font-weight: 400; line-height: 1.5; }
.module-pill b { font-weight: 600; }
.module-state { display: grid; gap: 2px; }
.module-state span { white-space: nowrap; }
.module-pill.active { border-color: #697586; background: #f3f4f6; box-shadow: none; }
.module-pill.aprobado > span { color: var(--ok); }
.module-pill.observado > span { color: var(--warn); }
.module-pill.cargado > span { color: var(--accent); }
.load-complete, .review-aprobado { color: var(--ok); }
.load-warning, .review-observado { color: var(--warn); }
.load-incomplete, .review-cargado, .review-pendiente { color: var(--muted); }
.status-text { font-size: 14px; font-weight: 600; }
.module-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 14px; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 14px 0; }
.file-card { display: grid; gap: 8px; }
.file-card div { display: flex; gap: 12px; }
.file-card.admin-document { border-left: 3px solid var(--progress); }
.file-source { color: var(--muted); font-size: 14px; font-weight: 600; }
.add-entry { margin: 10px 0 14px; }
.add-entry summary { list-style: none; width: max-content; }
.add-entry[open] summary { margin-bottom: 10px; }
.add-entry .panel { box-shadow: none; }
.sector-form { display: grid; gap: 12px; margin: 14px 0 18px; }
.sector-rows { display: grid; gap: 8px; }
.sector-row { display: grid; grid-template-columns: minmax(170px, 1.4fr) minmax(110px, .7fr) minmax(120px, .8fr) minmax(170px, 1.2fr) 42px; gap: 8px; align-items: end; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.remove-sector { width: 42px; padding: 8px; font-size: 20px; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: white; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #eef3f8; font-size: 14px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 14px; margin-bottom: 14px; }
.admin-tile { color: var(--ink); min-height: 100px; display: flex; align-items: center; }
.dashboard-head { align-items: flex-end; }
.dashboard-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.dashboard-actions .button { min-height: 44px; padding: 10px 14px; font-size: 14px; line-height: 1.4; font-weight: 500; white-space: nowrap; }
.dashboard-actions .primary { font-weight: 600; }
.dashboard-action-group { display: flex; gap: 10px; }
.dashboard-action-group + .dashboard-action-group { border-left: 1px solid var(--line); padding-left: 14px; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(250px, .8fr); gap: 20px; align-items: start; margin: 24px 0; }
.dashboard-columns > div, .dashboard-columns aside { min-width: 0; }
.attention-list { display: grid; border-top: 1px solid var(--line); }
.attention-item { display: grid; gap: 4px; padding: 13px 4px; color: var(--ink); border-bottom: 1px solid var(--line); }
.attention-item .badge { margin-bottom: 2px; }
.attention-item.observado { border-left: 4px solid var(--warn); padding-left: 10px; }
.attention-item.cargado { border-left: 4px solid #8da8c1; padding-left: 10px; }
.attention-item small { color: var(--muted); }
.dossier-head { margin-bottom: 16px; }
.dossier-head .toolbar { margin-top: 8px; }
.overview-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 2px 0 14px; }
.overview-actions > span { color: var(--muted); }
.overview-status { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr) minmax(300px, 1.25fr); align-items: stretch; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.overview-progress { display: grid; gap: 8px; padding: 16px 18px; background: #f3f4f6; }
.overview-progress.review-progress { background: #f5f7fb; border-left: 1px solid var(--line); }
.overview-progress.review-progress progress { accent-color: #45647f; }
.overview-progress > small { color: var(--muted); font-weight: 600; }
.overview-progress > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.overview-progress strong { font-size: 30px; line-height: 1; }
.overview-progress span { color: var(--muted); }
.overview-progress progress { height: 9px; accent-color: var(--progress); }
.overview-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.overview-facts div { min-width: 0; display: grid; align-content: center; gap: 4px; padding: 16px; border-left: 1px solid var(--line); }
.overview-facts strong { font-size: 24px; line-height: 1; }
.overview-facts span { color: var(--muted); font-size: 14px; }
.summary-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.summary-strip div, .summary-strip > a { min-width: 0; padding: 16px; border-right: 1px solid var(--line); display: grid; gap: 4px; }
.summary-strip > a { color: var(--ink); text-decoration: none; }
.summary-strip > a:hover { background: #eef0f3; }
.summary-strip > a:last-child { border-right: 0; }
.page-return { margin-bottom: 16px; }
.danger { color: #b42318; border-color: #f1b4b8; background: #fff; }
.page-return a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); font-size: 14px; }
.summary-strip div:last-child { border-right: 0; }
.summary-strip strong { font-size: 20px; line-height: 1; }
.summary-strip span { color: var(--muted); font-size: 14px; }
.detail-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 18px 0; margin-bottom: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-band div { min-width: 0; display: grid; gap: 4px; }
.detail-band small { font-size: 14px; font-weight: 600; }
.detail-band span { color: var(--muted); overflow-wrap: anywhere; }
.dossier-section { margin: 26px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 10px; }
.section-heading h2 { margin: 0; font-size: 20px; }
.section-heading span { color: var(--muted); font-size: 14px; }
.row-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.readonly-notice { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 12px 14px; background: #eef3f8; border: 1px solid var(--line); border-radius: 8px; }
.readonly-notice span { color: var(--muted); }
.module-state-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 4px 0 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.module-state-summary > div { min-width: 0; display: grid; gap: 4px; padding: 14px 16px; border-left: 5px solid var(--line); }
.module-state-summary > div + div { border-left-color: #8da8c1; border-left-width: 1px; }
.module-state-summary > div.load-complete { border-left-color: var(--ok); }
.module-state-summary > div.load-warning, .module-state-summary > div.review-observado { border-left-color: var(--warn); }
.module-state-summary > div.review-aprobado { border-left-color: var(--ok); }
.module-state-summary small { font-size: 14px; font-weight: 500; color: var(--muted); }
.module-state-summary strong { color: var(--ink); font-weight: 600; }
.module-state-summary strong { font-size: 20px; }
.module-state-summary span { color: var(--muted); }
.readonly-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.readonly-details div { min-width: 0; display: grid; gap: 4px; }
.readonly-details small { font-size: 14px; font-weight: 600; }
.readonly-details b { overflow-wrap: anywhere; }
.notification-list { display: grid; gap: 10px; }
.notification-heading { display: flex; align-items: flex-start; gap: 14px; }
.notification-heading p { margin: 6px 0 0; }
.notification-back { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 24px; line-height: 1; }
.notification-back:hover { background: #eef0f3; text-decoration: none; }
.notification-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid transparent; border-radius: 8px; }
.notification-item.unread { border-left-color: var(--progress); background: #f3f4f6; }
.notification-item h2 { margin: 8px 0 4px; font-size: 20px; }
.notification-item p { margin: 0 0 6px; color: var(--muted); }
.notification-item form { flex: 0 0 auto; }
.toast { margin-bottom: 14px; padding: 12px 14px; border-radius: 8px; background: #f3f4f6; border: 1px solid var(--line); color: var(--ok); font-weight: 600; }
.toast.error { background: #fef3f2; color: var(--danger); border-color: #fecdca; }
progress { width: 100%; grid-column: 1 / -1; accent-color: var(--progress); appearance: none; }
progress::-webkit-progress-bar { background: #e5e7eb; border-radius: 4px; }
progress::-webkit-progress-value { background: var(--progress); border-radius: 4px; }
progress::-moz-progress-bar { background: var(--progress); border-radius: 4px; }
.overview-progress.review-progress progress::-webkit-progress-value { background: #45647f; }
.overview-progress.review-progress progress::-moz-progress-bar { background: #45647f; }
input { accent-color: var(--primary); }
.table-progress { min-width: 170px; display: grid; gap: 6px; }
.table-progress div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.table-progress progress, .completion-overview progress { height: 10px; accent-color: var(--progress); }
.completion-overview { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(280px, 2fr); align-items: center; gap: 24px; margin-bottom: 14px; padding: 18px; background: #f3f4f6; border: 1px solid var(--line); border-radius: 8px; }
.completion-overview div { display: grid; gap: 4px; }
.completion-overview small { color: var(--muted); font-weight: 600; }
.completion-overview strong { font-size: 28px; line-height: 1.1; }
.completion-overview span { color: var(--muted); }
.history { margin: 0; padding-left: 18px; }
.review-panel { margin-top: 18px; display: grid; grid-template-columns: minmax(190px, .7fr) minmax(300px, 1.3fr); gap: 24px; border-top: 2px solid var(--line); }
.review-panel h2 { margin: 5px 0 10px; }
.review-panel p { color: var(--muted); }
.review-panel small { color: var(--muted); font-weight: 600; }
.producer-review-status { margin-top: 18px; padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 8px; }
.producer-review-status.aprobado { background: #f3f4f6; border-color: var(--line); }
.producer-review-status.observado { background: #fffaeb; border-color: #e5b85c; }
.producer-review-status.cargado { background: #eef3f8; border-color: #8da8c1; }
.producer-review-status h2 { margin: 5px 0; font-size: 20px; }
.producer-review-status p { margin: 0; color: var(--muted); }
.producer-review-status small { font-weight: 600; }
.checklist-section > progress { height: 8px; margin-bottom: 12px; accent-color: var(--progress); }
.checklist-section .section-heading > strong { font-size: 20px; }
.checklist-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.checklist-item { min-width: 0; display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; padding: 14px 8px; color: var(--ink); border-bottom: 1px solid var(--line); }
.checklist-item:nth-child(odd) { border-right: 1px solid var(--line); }
.checklist-item div { min-width: 0; display: grid; gap: 3px; }
.checklist-item small { color: var(--muted); overflow-wrap: anywhere; }
.check-state { width: max-content; height: max-content; padding: 3px 7px; border-radius: 4px; background: #eef3f8; color: var(--muted); font-size: 14px; font-weight: 600; }
.checklist-item.complete .check-state { background: #eef0f3; color: var(--ok); }
.checklist-item.missing .check-state { background: #fef3f2; color: var(--danger); }
.checklist-item.warning .check-state { background: #fffaeb; color: var(--warn); }
.empty { color: var(--muted); }
.event-workspace { display: grid; grid-template-columns: 242px minmax(0, 1fr); column-gap: 32px; row-gap: 20px; align-items: start; }
.event-workspace .event-head { grid-column: 1 / -1; margin: 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.event-workspace .event-head > a { font-size: 14px; }
.event-workspace .event-head h1 { margin-top: 12px; }
.event-workspace .event-head p { margin: 8px 0 0; }
.event-workspace .module-bar { position: sticky; top: 108px; display: grid; gap: 4px; max-height: calc(100vh - 130px); margin: 0; padding: 0 18px 0 0; overflow-y: auto; overflow-x: hidden; border-right: 1px solid var(--line); }
.event-workspace .module-pill { min-width: 0; width: 100%; padding: 10px 12px; background: transparent; border: 1px solid transparent; border-radius: 6px; }
.event-workspace .module-pill:hover { background: #eef0f3; text-decoration: none; }
.event-workspace .module-pill.active { background: white; border-color: var(--line); box-shadow: inset 3px 0 var(--primary); }
.event-workspace .module-pill small { font-size: 14px; }
.event-workspace .module-pill b { font-size: 14px; overflow-wrap: anywhere; }
.module-content { min-width: 0; }
.module-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; }
.module-heading small { color: var(--muted); }
.module-heading h2 { margin: 4px 0 0; font-size: 20px; line-height: 1.25; font-weight: 600; }
.module-heading .module-actions { margin: 0; font-size: 14px; justify-content: flex-end; }
.event-workspace .module-state-summary { margin: 0 0 24px; border: 0; border-radius: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; }
.event-workspace .module-state-summary > div { border-left: 0; padding: 14px 0; }
.event-workspace .module-state-summary > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.event-workspace .module-state-summary strong { font-size: 20px; }
.event-workspace .module-state-summary span { font-size: 14px; }
.event-workspace .checklist-section { margin: 24px 0; }
.event-workspace .section-heading h2 { font-size: 20px; font-weight: 600; }
.event-workspace .checklist-section .section-heading > strong { font-size: 20px; font-weight: 600; }
.event-workspace .checklist-list { grid-template-columns: 1fr; }
.event-workspace .checklist-item:nth-child(odd) { border-right: 0; }
.event-workspace .readonly-notice { background: transparent; padding: 0; border: 0; font-size: 14px; gap: 8px; flex-wrap: wrap; }
.event-workspace .files { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.event-workspace .file-card { box-shadow: none; border-radius: 6px; }
.event-workspace .file-card b { overflow-wrap: anywhere; font-weight: 600; }
.event-workspace .review-panel { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 24px 0 0; gap: 24px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.event-workspace .review-panel h2 { font-size: 20px; font-weight: 600; }
.event-workspace .review-panel .primary { justify-self: start; }
.module-history { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); font-size: 14px; }
.module-history summary { cursor: pointer; }
.module-history .history { margin-top: 14px; }
.module-content { background: white; }
.event-workspace .module-content { padding: 0 24px 28px; }
.event-workspace .module-heading { padding-top: 18px; }
.module-zone { padding: 24px 0 8px; border-top: 1px solid var(--line); }
.zone-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.zone-heading h2 { margin: 0; font-size: 20px; line-height: 1.35; font-weight: 600; color: var(--ink); }
.zone-number { flex: 0 0 32px; height: 32px; display: grid; place-items: center; border-radius: 4px; background: #eef0f3; color: #344054; font-size: 14px; font-weight: 600; }
.zone-producer .zone-number { background: #eaf1f9; color: #294968; }
.zone-administration .zone-number { background: #fff2dd; color: #81530a; }
.event-workspace .zone-status .module-state-summary { gap: 12px; border: 0; margin-bottom: 20px; background: transparent; }
.event-workspace .zone-status .module-state-summary > div { padding: 16px; border: 1px solid #cad7e6; border-radius: 6px; background: #f0f5fb; }
.event-workspace .zone-status .module-state-summary > div + div { padding: 16px; border: 1px solid #ecd9b6; background: #fff8ec; }
.event-workspace .zone-status .module-state-summary > div.review-aprobado { background: #f3f4f6; border-color: #cbd0d8; }
.event-workspace .zone-status .module-state-summary > div.review-observado { background: #fff2e8; border-color: #e2b99b; }
.event-workspace .zone-status .module-state-summary strong { font-size: 20px; margin: 4px 0; }
.module-zone .dossier-section { margin: 22px 0; }
.module-requirements { margin: 16px 0 12px; font-size: 14px; }
.module-requirements summary { cursor: pointer; color: var(--ink); }
.module-requirements[open] summary { margin-bottom: 16px; }
.event-workspace .module-zone .section-heading h2 { font-size: 20px; font-weight: 600; }
.event-workspace .module-zone .panel:not(.file-card) { border: 0; border-radius: 0; box-shadow: none; padding: 18px 0; background: transparent; }
.event-workspace .module-zone .panel + .panel { border-top: 1px solid var(--line); }
.zone-producer .module-documents { border-top: 1px solid var(--line); padding-top: 18px; }
.zone-administration .module-documents { margin-top: 0; }
.event-workspace .zone-administration .review-panel { border-top: 1px solid #ecd9b6; margin-top: 24px; padding-top: 24px; }
.event-workspace .admin-document { background: #fffaf1; border-color: #ecd9b6; border-left-color: #b88021; }
.event-workspace .admin-document .file-source { color: #81530a; }
.event-workspace .file-card:not(.admin-document) .file-source { color: #294968; }
.event-workspace .module-pill.active b { font-weight: 600; }
.event-workspace .module-pill.active { background: #fff1f2; border-color: #e4c4c7; }
.event-workspace .module-pill.active > span { color: var(--primary-dark); }
@media (max-width: 960px) {
  .event-workspace { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .event-workspace .module-bar { position: static; display: flex; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 0 0 10px; border-right: 0; }
  .event-workspace .module-pill { width: 205px; min-width: 205px; }
  .event-workspace .module-content { padding: 0 18px 24px; }
  .module-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .module-heading .module-actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .auth { grid-template-columns: 1fr; align-content: start; padding-top: 20px; }
  .topbar { align-items: flex-start; }
  .top-actions { font-size: 14px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .dashboard-actions { justify-content: flex-start; }
  .dashboard-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .dashboard-actions .primary { grid-column: 1 / -1; }
  .dashboard-actions .button { white-space: normal; text-align: center; }
  .dashboard-action-group { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-action-group .primary { grid-column: auto; }
  .dashboard-action-group + .dashboard-action-group { padding: 0; border-left: 0; }
  .dashboard-columns { grid-template-columns: 1fr; }
  .systems-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .page { width: min(100% - 20px, 1180px); margin-top: 14px; }
  table, thead, tbody, tr, td { display: block; min-width: 0; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--line); padding: 8px; }
  td { border: 0; padding: 7px 8px; }
  td form { display: grid; gap: 8px; }
  .module-pill { min-width: 180px; }
  .sector-row { grid-template-columns: 1fr 1fr; }
  .sector-row .remove-sector { grid-column: 2; justify-self: end; }
  .overview-actions { align-items: stretch; flex-direction: column; }
  .overview-actions .primary { width: 100%; }
  .overview-status { grid-template-columns: 1fr; }
  .overview-facts div:first-child { border-left: 0; }
  .completion-overview { grid-template-columns: 1fr; gap: 12px; }
  .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-strip div, .summary-strip > a { border-right: 0; border-bottom: 1px solid var(--line); }
  .summary-strip div:nth-child(odd), .summary-strip > a:nth-child(odd) { border-right: 1px solid var(--line); }
  .summary-strip div:last-child, .summary-strip > a:last-child { border-bottom: 0; }
  .detail-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .notification-item { align-items: stretch; flex-direction: column; }
  .notification-item button { width: 100%; }
  .review-panel { grid-template-columns: 1fr; }
  .module-state-summary { grid-template-columns: 1fr; }
  .module-state-summary > div + div { border-top: 1px solid var(--line); border-left-width: 5px; }
  .producer-review-status { align-items: flex-start; flex-direction: column; }
  .checklist-list { grid-template-columns: 1fr; }
  .checklist-item:nth-child(odd) { border-right: 0; }
  .event-workspace .module-state-summary > div + div { padding-left: 0; border-left: 0; }
  .event-workspace .review-panel { grid-template-columns: minmax(0, 1fr); }
  .event-workspace .zone-status .module-state-summary > div + div { padding: 16px; }
  .zone-heading { align-items: flex-start; }
  .zone-heading h2 { font-size: 20px; }
}
@media (max-width: 480px) {
  .overview-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-band { grid-template-columns: 1fr; }
}
.auth-page { background: white; }
.auth-page .page.narrow { width: min(400px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0 32px; }
.auth-page .auth { min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 0; }
.auth-identity { text-align: center; }
.auth-page .auth-mark { margin: 0 auto; }
.auth-page .auth-mark:has(img) { width: 72px; height: 118px; }
.auth-page .auth-mark img { width: 72px; height: 118px; }
.auth-page .auth h1 { font-size: 24px; line-height: 1.25; margin: 16px 0 0; overflow-wrap: anywhere; }
.auth-page .auth h1 > span { display: block; }
.auth-page .auth h1 .auth-venue { margin-top: 6px; font-size: 16px; font-weight: 500; color: var(--muted); }
.auth-page .auth .panel { padding: 24px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.auth-page .form-stack { gap: 20px; }
.auth-page label { font-size: 14px; gap: 8px; }
.auth-page input { min-height: 48px; font-size: 16px; border-radius: 6px; }
.auth-page input:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.auth-page .primary { min-height: 48px; border-radius: 6px; }
.auth-page .auth form p { margin: 0; text-align: center; font-size: 14px; }
@media (max-width: 480px) {
  .auth-page .page.narrow { padding-top: 24px; }
  .auth-page .auth { gap: 24px; }
  .auth-page .auth h1 { font-size: 24px; }
}
