:root {
  --color-primary: #163a4f;
  --color-primary-hover: #1f4d66;
  --color-secondary: #2bb3b8;
  --color-secondary-ink: #146f74;
  --color-sky: #7ec8e3;
  --color-accent-gold: #a8926a;
  --color-bg: #f5fafb;
  --color-surface: #ffffff;
  --color-primary-soft: #e3eef3;
  --color-secondary-soft: #def5f6;
  --color-sky-soft: #eaf6fb;
  --color-on-primary: #f5fafb;
  --ink: #163a4f;
  --stone: #1f4d66;
  --gold: #a8926a;
  --gold-deep: #8f7a55;
  --gold-light: #a8926a;
  --sand: #eef6f8;
  --ivory: #f5fafb;
  --paper: #ffffff;
  --text: #2a3d48;
  --muted: #5d7380;
  --border: #d5e4ea;
  --accent: #2bb3b8;
  --navy: #163a4f;
  --navy-dark: #1f4d66;
  --bg: #f5fafb;
  --grey: #5d7380;
  --line: #d5e4ea;
  --red: #a83232;
  --amber: #b3841f;
  --green: #2f7a4f;
  --radius: 0.75rem;
  --shadow: 0 10px 30px rgba(22, 58, 79, 0.06);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: optional;
  src: url("fonts/manrope.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: optional;
  src: url("fonts/cormorant-garamond.woff2") format("woff2");
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 12% -4%, rgba(126, 200, 227, 0.22), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(43, 179, 184, 0.12), transparent 30%),
    linear-gradient(180deg, var(--color-bg) 0%, #eef6f8 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.ui, nav, button, input, select, textarea, table, .btn, label {
  font-family: var(--font-body);
}

a {
  color: var(--color-secondary-ink);
  text-underline-offset: 0.18em;
}

a:hover { color: var(--color-primary); }

header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 250, 251, 0.92);
  border-bottom: 1px solid rgba(213, 228, 234, 0.85);
  color: var(--ink);
  padding: 0.7rem 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  header {
    background: rgba(245, 250, 251, 0.78);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
}

.brand img {
  display: block;
  height: 5.35rem;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.brand-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: none;
}

.sub {
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.header-nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.header-nav a {
  color: var(--stone);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.header-nav a:hover { color: var(--color-secondary); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.15rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
  letter-spacing: 0.08em;
}

.lang-switch a {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
}

.lang-switch a.is-active {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.lang-switch-sep {
  color: var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  pointer-events: none;
}

main {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px 80px;
  flex: 1;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 12px; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 0 0 10px; }
h3 { margin: 0 0 8px; font-size: 1.15rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-secondary-ink);
  margin: 0 0 8px;
}

.intro, .lead-sm {
  color: var(--muted);
  line-height: 1.6;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.card.narrow { max-width: 520px; margin: 24px auto; }

.summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.summary .card { margin: 0; }
.num { font-size: 28px; font-weight: 700; color: var(--navy); font-family: var(--font-display); }
.label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grey);
  margin-top: 2px;
}

.banner {
  background: var(--color-primary-soft);
  color: var(--navy);
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.banner.error { background: #f7e2e2; color: var(--red); }
.banner.warn { background: var(--color-sky-soft); color: var(--stone); border: 1px solid var(--border); }

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  color: var(--grey);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  font-size: 14px;
  color: var(--text);
  background: #fff;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid rgba(43, 179, 184, 0.35);
  border-color: var(--color-secondary);
}

.field textarea { resize: vertical; min-height: 80px; }
.field-error { color: var(--red); font-size: 13px; margin: 6px 0 0; }
.field.invalid select, .field.invalid input, .field.invalid textarea {
  border-color: var(--red);
}
.field-hint { color: var(--grey); font-size: 13px; line-height: 1.45; margin: 0 0 8px; }
.req { color: var(--red); }

.offer {
  background: var(--color-secondary-soft);
  border: 1px solid var(--color-secondary);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 12px 0 18px;
}
.offer h3 { margin: 0 0 8px; font-size: 1.05rem; }
.offer .check { margin-top: 12px; font-weight: 600; }

.checks { display: grid; gap: 6px; }
.check, .consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  margin: 12px 0;
}

.legal-box {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--grey);
}

.legal-box a { color: var(--navy); }

.btn {
  font-size: 0.92rem;
  border: none;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  display: inline-block;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: 0 8px 20px rgba(22, 58, 79, 0.16);
}
.btn-primary:hover {
  background: var(--color-secondary);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}
.btn-danger {
  background: #fff;
  color: var(--red);
  border: 1px solid #e3c6c6;
}

.form-actions { margin-top: 8px; display: flex; gap: 10px; flex-wrap: wrap; }

.btn-tiny {
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
}

.fee-input {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.fee-input input {
  max-width: 12rem;
}

.fee-suffix {
  font-weight: 700;
  color: var(--navy);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.repeat-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 0.4rem;
  margin: 0 0 1.2rem;
}

.repeat-block legend {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  padding: 0 0.35rem;
}

.repeat-row {
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  margin-top: 0.85rem;
}

.repeat-row:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.repeat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.repeat-num {
  font-weight: 800;
  color: var(--color-secondary-ink);
}

.repeat-tools {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.proposal-doc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfd 100%);
}

.proposal-doc > .eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}

.proposal-doc section {
  margin: 1.1rem 0;
}

.proposal-doc h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.proposal-phase {
  margin: 0.7rem 0;
}

.proposal-fees .fee-hero {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--navy);
  margin: 0.2rem 0 0.35rem;
  font-weight: 600;
}

@media (max-width: 700px) {
  .field-grid { grid-template-columns: 1fr; }
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}

thead th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: 11px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tbody tr { border-bottom: 1px solid var(--line); }
tbody td { padding: 12px 14px; vertical-align: top; }
.muted { color: var(--grey); font-size: 13px; }
.mono { font-family: ui-monospace, monospace; font-size: 13px; }

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.pill-pendiente { background: var(--color-sky-soft); color: var(--stone); }
.pill-progreso { background: var(--color-primary-soft); color: var(--navy); }
.pill-completado { background: var(--color-secondary-soft); color: var(--color-secondary-ink); }
.pill-alta { background: #f7e2e2; color: var(--red); }
.pill-media { background: #f4efe4; color: var(--gold-deep); }
.pill-baja { background: #e9ecee; color: var(--grey); }

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--grey);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}
.filters button.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.empty { text-align: center; padding: 50px 20px; color: var(--grey); }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 58, 79, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 28px;
  width: 460px;
  max-width: 92vw;
  box-shadow: 0 20px 50px rgba(22, 58, 79, 0.18);
}

.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

.answer { margin-bottom: 12px; }
.answer-label { font-size: 12px; color: var(--grey); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 2px; }

.danger-zone { border-color: #e3c6c6; }

footer {
  text-align: center;
  padding: 20px;
  color: var(--grey);
  font-size: 12px;
  border-top: 1px solid var(--line);
  background: rgba(245, 250, 251, 0.8);
}

.landing-cta { margin: 8px 0 28px; display: flex; gap: 10px; flex-wrap: wrap; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.card-grid .card { margin: 0; }
.card-grid .card h2 {
  font-size: clamp(1.45rem, 2.1vw, 1.85rem);
  margin: 0 0 10px;
}
.phase-card ul, .card-grid ul { margin: 8px 0 0; padding-left: 18px; color: var(--grey); font-size: 14px; line-height: 1.45; }
.evo-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.evo-list li { margin: 0 0 10px; padding: 0; }

.purpose-grid .purpose-card h2 {
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
}

.screening-card { margin-bottom: 28px; }
.screening-form .screening-field label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.screening-result.is-critico { border-color: #d7b4b4; }
.screening-result.is-moderado { border-color: var(--gold); }

.outcome-card .evo-list { margin-bottom: 0; }
.outcome-card .evo-list li { color: var(--navy); }

.phase-stepper {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.phase-stepper li {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 8px;
  font-size: 12px;
  color: var(--grey);
  min-height: 72px;
}
.phase-stepper li.is-current {
  border-color: var(--color-secondary);
  background: var(--color-secondary-soft);
  color: var(--navy);
}
.phase-stepper li.is-done {
  border-color: #b7e3e5;
  background: var(--color-sky-soft);
}
.phase-num {
  display: block;
  font-weight: 700;
  color: var(--color-secondary-ink);
  margin-bottom: 4px;
}
.phase-title { display: block; line-height: 1.3; }

.scorecard { display: grid; gap: 10px; }
.score-row { display: grid; grid-template-columns: 160px 1fr 40px; gap: 10px; align-items: center; font-size: 14px; }
.score-bar { background: var(--color-primary-soft); height: 10px; border-radius: 999px; overflow: hidden; }
.score-bar span { display: block; height: 100%; background: var(--color-secondary); width: 0; }
.score-bar.is-1 span { width: 20%; }
.score-bar.is-2 span { width: 40%; }
.score-bar.is-3 span { width: 60%; }
.score-bar.is-4 span { width: 80%; }
.score-bar.is-5 span { width: 100%; }
.score-val { font-weight: 700; color: var(--navy); text-align: right; }

.check-section { margin: 16px 0 20px; }
.check-item { margin-bottom: 12px; }
.check-item p { margin: 0 0 6px; font-size: 14px; }
.check-item select { width: 100%; max-width: 280px; padding: 6px 8px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { margin: 0 0 8px; font-size: 14px; line-height: 1.4; }

.print-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.print-doc {
  background: #fff;
  padding: 28px 36px 40px;
  border: 1px solid var(--line);
}
.print-letterhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin: 0 0 22px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--gold);
  box-shadow: 0 1px 0 var(--navy);
}
.print-letterhead img,
.print-brand img {
  display: block;
  height: 56px;
  width: auto;
  background: #fff;
}
.print-letterhead-meta {
  text-align: right;
  color: var(--navy);
}
.print-letterhead-meta p {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
}
.print-confidencial {
  color: var(--gold) !important;
  font-family: var(--font-body) !important;
  font-style: normal !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.02em;
  margin-top: 4px !important;
}
.print-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-secondary);
  margin: 8px 0 6px;
}
.print-disclaimer {
  background: var(--ivory);
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  margin: 8px 0 28px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--navy);
  line-height: 1.45;
}
.editor-form .editor-table input,
.editor-form .editor-table textarea,
.editor-form .editor-table select {
  width: 100%;
  min-width: 0;
}
.editor-table td { vertical-align: top; }
.score-edit {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.print-doc h1 { font-size: 2.1rem; margin: 0 0 8px; }
.print-doc h2 {
  margin-top: 28px;
  padding-left: 12px;
  border-left: 3px solid var(--color-secondary);
}
.print-doc h3 { font-size: 1rem; margin: 0 0 6px; color: var(--navy); }
.print-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 20px;
  margin: 18px 0 10px;
}
.print-kv { margin: 0; }
.print-kv dt {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.print-kv dd { margin: 4px 0 0; color: var(--navy); font-weight: 600; }
.print-box {
  background: var(--ivory);
  border: none;
  border-left: 3px solid var(--color-secondary);
  border-radius: 0;
  padding: 12px 16px;
  margin: 0 0 14px;
}
.print-table { width: 100%; font-size: 0.92rem; }
.print-table th { font-size: 0.72rem; letter-spacing: 0.06em; }
.print-footer {
  margin-top: 32px;
  padding-top: 10px;
  border-top: 1px solid var(--gold);
  font-size: 0.82rem;
  color: var(--navy);
}

.doc-toolbar {
  position: sticky;
  top: 4.6rem;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: -8px 0 18px;
  padding: 12px 0;
  background: linear-gradient(180deg, var(--color-bg) 70%, transparent);
}
.doc-editor-lead {
  color: var(--muted);
  max-width: 46rem;
  margin: 0 0 16px;
}
.doc-source {
  background: var(--ivory);
  border-left: 3px solid var(--muted);
  padding: 12px 16px;
  margin: 0 0 18px;
  font-size: 0.92rem;
}
.doc-source-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy);
}
.doc-editor .doc-area,
.doc-editor .doc-line,
.doc-editor .doc-select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  border: 1px dashed #cbb892;
  background: #fff;
  color: var(--navy);
  font: inherit;
  line-height: 1.5;
  padding: 8px 10px;
  border-radius: 0;
  resize: vertical;
}
.doc-editor .doc-area:focus,
.doc-editor .doc-line:focus,
.doc-editor .doc-select:focus {
  outline: 2px solid var(--color-secondary);
  border-color: var(--color-secondary);
  background: #fff;
}
.doc-area-legal {
  min-height: 14rem;
  border-color: var(--navy) !important;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.doc-editor .print-table td {
  vertical-align: top;
}
.doc-editor .print-box .doc-area {
  margin-top: 6px;
}
.deliverable-links { list-style: none; padding: 0; margin: 0; }
.deliverable-links li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.deliverable-links .row-actions { display: inline-flex; gap: 12px; margin-left: 8px; }

@media print {
  header, footer, .print-toolbar, .doc-toolbar, .doc-source, .doc-editor-lead { display: none !important; }
  body { background: #fff; }
  main { padding: 12mm 12mm 16mm; max-width: none; }
  .print-doc { box-shadow: none; border: none; padding: 0; }
  .print-table { display: table; width: 100%; }
  .print-table thead { display: table-header-group; }
  .print-table tbody { display: table-row-group; }
  .print-table tr { display: table-row; }
  .print-table th, .print-table td { display: table-cell; }
}

@media (max-width: 960px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .summary { grid-template-columns: repeat(2, 1fr); }
  header { padding: 12px 16px; }
  .brand img { height: 4.1rem; }
  .brand-title { font-size: 1.35rem; }
  .header-nav { gap: 0.9rem; flex-wrap: wrap; }
  .lang-switch { padding-left: 0.75rem; }
  table, thead, tbody, th, td, tr { display: block; }
  thead { display: none; }
  tbody td { padding: 4px 0; border: none; }
  .phase-stepper { grid-template-columns: 1fr 1fr; }
  .score-row { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .doc-editor table,
  .doc-editor thead,
  .doc-editor tbody,
  .doc-editor th,
  .doc-editor td,
  .doc-editor tr { display: revert; }
  .doc-editor thead { display: table-header-group; }
  .doc-editor tr { display: table-row; }
  .doc-editor th,
  .doc-editor td { display: table-cell; }
}

.pack-card .pack-meta,
.pack-dash .pack-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px 20px;
  margin: 12px 0 8px;
}
.pack-meta dt {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey);
}
.pack-meta dd { margin: 2px 0 0; font-weight: 600; color: var(--navy); }
.pack-progress { display: grid; gap: 8px; margin: 16px 0; font-size: 14px; }
.pack-bar {
  display: inline-block;
  width: min(220px, 50%);
  height: 8px;
  margin: 0 8px 0 6px;
  background: #e3eef3;
  vertical-align: middle;
}
.pack-bar > span { display: block; height: 100%; background: var(--color-secondary, #2bb3b8); }
.pack-counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 6px 16px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.control-review { border-top: 1px solid var(--line); padding: 16px 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 8px 12px;
  background: #fff;
  cursor: pointer;
}
.choice input { margin: 0; }

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.snapshot-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
}

.snapshot-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}

.snapshot-card.is-good,
.snapshot-card.is-low { border-color: #c9e3d4; }
.snapshot-card.is-developing,
.snapshot-card.is-moderate { border-color: var(--gold); }
.snapshot-card.is-attention,
.snapshot-card.is-higher { border-color: #d7b4b4; }

.briefing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 16px 0 8px;
}
.briefing-area {
  margin: 0 0 18px;
  padding: 0 0 4px 14px;
  border-left: 3px solid var(--accent);
}
.briefing-area h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.briefing-status {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}
.briefing-claims {
  margin: 8px 0 0;
  padding-left: 18px;
}
@media (max-width: 800px) {
  .briefing-grid { grid-template-columns: 1fr; }
}
