:root {
  color-scheme: light;
  --bg: #eef3f7;
  --surface: #f5f8fa;
  --surface-strong: #ffffff;
  --ink: #18212a;
  --muted: #65727e;
  --soft: #9aa8b2;
  --line: #dbe2e8;
  --brand: #163a5f;
  --brand-dark: #0d2842;
  --accent: #b99a61;
  --accent-strong: #d9bd7a;
  --blue: #244e75;
  --green: #2e7d32;
  --warning-bg: #fff7e8;
  --warning-line: #b99a61;
  --success-bg: #edf7ee;
  --success-line: #2e7d32;
  --danger: #c62828;
  --shadow: 0 24px 70px rgba(13, 40, 66, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(22, 58, 95, 0.1), transparent 28rem),
    linear-gradient(135deg, rgba(185, 154, 97, 0.1), rgba(22, 58, 95, 0.06)),
    var(--bg);
  color: var(--ink);
  font-size: 80%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.brand-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(22, 58, 95, 0.13);
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 22px;
  box-shadow: 0 8px 30px rgba(13, 40, 66, 0.06);
  backdrop-filter: blur(18px);
}

.brand-identity,
.instagram-link {
  color: inherit;
  text-decoration: none;
}

.brand-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-identity strong,
.brand-identity small {
  display: block;
}

.brand-identity strong {
  color: var(--brand-dark);
  font-size: 0.98rem;
  line-height: 1.2;
}

.brand-identity small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 18px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand);
}

.instagram-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.lead-gate {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  background: rgba(13, 40, 66, 0.64);
  padding: 24px;
  backdrop-filter: blur(10px);
}

.lead-gate.is-hidden {
  display: none;
}

.lead-card {
  width: min(100%, 460px);
  display: grid;
  gap: 14px;
  border: 1px solid rgba(22, 58, 95, 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(13, 40, 66, 0.28);
  padding: 26px;
}

.lead-card-header {
  display: grid;
  gap: 8px;
  margin-bottom: 4px;
}

.lead-card-header h2 {
  color: var(--brand-dark);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.06;
}

.lead-card-header p,
.lead-status {
  color: var(--muted);
  line-height: 1.5;
}

.consent-check {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.45;
}

.consent-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--brand);
}

.consent-check span {
  color: var(--ink);
}

.lead-status {
  min-height: 20px;
  font-size: 0.86rem;
  font-weight: 800;
}

.lead-status.error {
  color: var(--danger);
}

.lead-status.success {
  color: var(--green);
}

.income-planner {
  min-height: calc(100vh - 60px);
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
}

.control-panel {
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow: auto;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  padding: 22px;
}

.brand-block {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.eyebrow {
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

h2 {
  font-size: 1.08rem;
  line-height: 1.2;
}

.brand-block p,
.payment-heading p,
summary small {
  color: var(--muted);
  line-height: 1.5;
}

.planner-form,
.form-section {
  display: grid;
  gap: 13px;
}

.form-section {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.form-section h2 {
  color: var(--brand-dark);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

label span {
  color: var(--soft);
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

input:focus,
select:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(29, 111, 95, 0.16);
}

.money-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.money-input:focus-within {
  border-color: var(--brand);
  outline: 3px solid rgba(22, 58, 95, 0.16);
}

.money-input span {
  padding: 0 0 0 14px;
  color: var(--brand);
  font-weight: 900;
}

.money-input input {
  border: 0;
  border-radius: 0;
}

.money-input input:focus {
  outline: 0;
}

.input-suffix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.input-suffix input {
  border: 0;
  border-radius: 0;
}

.input-suffix span {
  padding: 0 14px;
  color: var(--muted);
  font-weight: 900;
}

.segmented,
.goal-type-tabs {
  border: 0;
  margin: 0;
  padding: 0;
}

.segmented legend {
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 900;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented label,
.frequency-options label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}

.segmented input,
.goal-type-tabs input,
.frequency-options input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.segmented label:has(input:checked),
.frequency-options label:has(input:checked) {
  border-color: var(--brand);
  background: rgba(29, 111, 95, 0.1);
  color: var(--brand-dark);
}

.field-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
}

.info-button {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1.5px solid var(--brand);
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  font: italic 900 0.8rem/1 Georgia, "Times New Roman", serif;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.info-button:hover,
.info-button[aria-expanded="true"] {
  background: var(--brand);
  color: #fff;
}

.info-button:focus-visible {
  outline: 3px solid rgba(22, 58, 95, 0.28);
  outline-offset: 2px;
}

.info-panel {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.5;
  box-shadow: 0 10px 28px rgba(13, 40, 66, 0.08);
}

.info-panel p,
.info-panel ul {
  margin: 0;
}

.info-panel ul {
  display: grid;
  gap: 6px;
  padding-left: 18px;
}

.info-panel .info-note {
  color: var(--muted);
  font-size: 0.8rem;
}

.scenario-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.scenario-picker label {
  display: block;
  min-height: 0;
  padding: 9px 12px;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
}

.scenario-picker label span {
  display: grid;
  gap: 2px;
  color: inherit;
  font-weight: inherit;
}

.scenario-picker label small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.scenario-picker label:has(input:focus-visible) {
  outline: 3px solid rgba(22, 58, 95, 0.28);
  outline-offset: 2px;
}

.rate-hint {
  margin: 0;
  min-height: 1.2em;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.rate-hint.is-warning {
  color: #8a6a2c;
  font-weight: 700;
}

.primary-button,
.secondary-button,
.danger-button,
.icon-button {
  min-height: 38px;
  border-radius: 8px;
  border: 0;
  padding: 0 14px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 32px rgba(13, 40, 66, 0.2);
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.danger-button {
  border: 1px solid rgba(184, 75, 75, 0.24);
  background: rgba(184, 75, 75, 0.08);
  color: var(--danger);
}

.icon-button {
  min-width: 36px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  font-size: 1.4rem;
}

.primary-button:hover,
.secondary-button:hover,
.danger-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.form-actions {
  padding-top: 4px;
}

.workspace {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px;
}

.print-plan-summary {
  display: none;
}

.workspace-header,
.section-heading,
.chart-toolbar,
.modal-header,
.modal-actions,
.payment-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
}

.workspace-header h2 {
  margin-top: 6px;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
}

.chart-card,
.goals-panel,
.projection-panel,
.status-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.chart-card {
  padding: 16px;
}

.chart-toolbar {
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 900;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legend i {
  width: 12px;
  height: 28px;
  border-radius: 999px;
}

.plan-line {
  background: var(--blue);
}

.reference-line {
  background: var(--accent);
}

.chart-wrap {
  position: relative;
  min-height: 300px;
}

canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: min(46vw, 420px);
  min-height: 300px;
}

.chart-tooltip {
  position: absolute;
  z-index: 4;
  min-width: 210px;
  pointer-events: none;
  border: 1px solid rgba(29, 37, 40, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 52px rgba(29, 37, 40, 0.18);
  padding: 12px 14px;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
}

.chart-tooltip strong {
  display: block;
  margin-bottom: 4px;
}

.hidden {
  display: none !important;
}

.status-card {
  padding: 16px 20px;
}

.status-card.success {
  border-color: var(--success-line);
  background: var(--success-bg);
}

.status-card.warning {
  border-color: var(--warning-line);
  background: var(--warning-bg);
}

.status-card h3 {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.status-card.warning h3 {
  color: var(--brand-dark);
}

.status-card p {
  color: var(--ink);
  line-height: 1.55;
}

.goals-panel,
.projection-panel {
  padding: 18px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2 {
  margin-top: 6px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.goals-list {
  display: grid;
  gap: 10px;
}

.empty-goals {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 20px;
  color: var(--muted);
  line-height: 1.5;
}

.goal-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 11px;
}

.goal-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(47, 128, 237, 0.1);
  color: var(--blue);
  font-size: 1.35rem;
}

.goal-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.goal-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.goal-card strong {
  color: var(--brand-dark);
  white-space: nowrap;
}

.goal-card button {
  min-height: 38px;
  padding: 0 12px;
}

details summary {
  cursor: pointer;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

summary::after {
  content: "v";
  color: var(--muted);
  font-size: 1.5rem;
}

details[open] summary::after {
  transform: rotate(180deg);
}

summary strong,
summary small {
  display: block;
}

.table-scroll {
  margin-top: 18px;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: right;
  white-space: nowrap;
}

th:first-child,
td:first-child,
th:nth-child(2),
td:nth-child(2) {
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.goal-modal {
  width: min(980px, calc(100% - 24px));
  max-height: min(92vh, 920px);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 34px 90px rgba(29, 37, 40, 0.28);
  padding: 0;
}

.goal-modal::backdrop {
  background: rgba(29, 37, 40, 0.48);
  backdrop-filter: blur(2px);
}

.goal-modal form {
  display: grid;
  gap: 20px;
  padding: 24px;
}

.modal-header h2 {
  font-size: 1.45rem;
}

.goal-type-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.goal-type-tabs label {
  min-height: 92px;
  display: grid;
  place-content: center;
  gap: 6px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.goal-type-tabs label:has(input:checked) {
  border-color: var(--brand);
  background: rgba(22, 58, 95, 0.08);
  color: var(--blue);
}

.goal-type-tabs span {
  color: inherit;
  font-size: 1.05rem;
  font-weight: 900;
}

.goal-type-tabs small {
  color: var(--muted);
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.icon-grid button {
  aspect-ratio: 1;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--soft);
  font-size: 1.25rem;
}

.icon-grid button.selected {
  border-color: var(--blue);
  background: rgba(47, 128, 237, 0.1);
  color: var(--blue);
}

.frequency-box,
.payment-box {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(22, 58, 95, 0.16);
  border-radius: 8px;
  background: rgba(22, 58, 95, 0.05);
  padding: 16px;
}

.frequency-box > span,
.payment-box strong {
  font-weight: 900;
}

.frequency-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-heading {
  align-items: flex-start;
}

.payment-heading span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  padding: 8px 12px;
  font-size: 0.86rem;
  font-weight: 900;
}

input[type="range"] {
  accent-color: var(--brand);
  padding: 0;
}

.modal-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

/* v1.2.0: modo "Acumular um valor" */
body[data-mode="income"] .only-accumulate,
body[data-mode="accumulate"] .only-income,
body[data-mode="accumulate"][data-question="time"] .hide-q-time,
body[data-mode="accumulate"][data-question="contribution"] .hide-q-contribution,
body[data-mode="accumulate"][data-question="final"] .hide-q-final {
  display: none !important;
}

.mode-switch {
  margin-bottom: 4px;
}

.mode-switch label {
  padding: 11px 12px;
}

.mode-switch label strong {
  font-size: 0.95rem;
}

.question-picker {
  grid-template-columns: 1fr;
}

.field-title {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
}

label .label-text {
  color: var(--ink);
  font-weight: inherit;
}

label .label-text span {
  color: var(--soft);
  font-weight: 700;
}

.field-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.target-line {
  background: repeating-linear-gradient(to bottom, var(--brand) 0 4px, transparent 4px 7px);
}

.status-card small {
  color: var(--muted);
  font-size: 0.86rem;
}

.bridge-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  border-top: 1px solid rgba(22, 58, 95, 0.14);
  padding-top: 12px;
}

.compare-box {
  margin-top: 12px;
  border: 1px solid rgba(185, 154, 97, 0.55);
  border-radius: 8px;
  background: rgba(255, 247, 232, 0.85);
  padding: 10px 12px;
}

.compare-box p {
  line-height: 1.55;
}

.bridge-box p {
  max-width: 62ch;
}

.bridge-box button {
  flex: 0 0 auto;
}

/* v1.2.1: bruto equivalente nos cenários */
.scenario-option {
  position: relative;
  display: grid;
}

.scenario-option label {
  height: 100%;
  padding-right: 34px;
}

.scenario-picker .gross-note {
  color: #8a6a2c;
  font-weight: 800;
}

.scenario-info {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  font-size: 0.74rem;
}

.gross-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0 !important;
  list-style: none;
}

.gross-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
}

.gross-list li strong {
  grid-column: 1 / -1;
}

.gross-list li span:last-child {
  color: #8a6a2c;
  font-weight: 800;
}

.gross-list li.is-focus {
  border-color: var(--accent);
  background: var(--warning-bg);
}

.milestones-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  padding: 18px;
}

.milestone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}

.milestone-card {
  display: grid;
  align-content: start;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
}

.milestone-card span {
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.milestone-card strong {
  color: var(--brand-dark);
  font-size: 1.08rem;
}

.milestone-card small {
  color: var(--muted);
  line-height: 1.4;
}

.milestone-card em {
  color: #8a6a2c;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
}

.milestone-card.is-turning {
  grid-column: span 2;
  border-color: var(--accent);
  background: var(--warning-bg);
}

.milestone-card.is-turning span {
  color: #8a6a2c;
}

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

  .control-panel {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workspace {
    padding: 20px;
  }
}

@media (max-width: 720px) {
  .brand-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px;
  }

  .brand-meta {
    justify-content: flex-start;
  }

  .control-panel,
  .workspace,
  .goal-modal form {
    padding: 16px;
  }

  .workspace-header,
  .section-heading,
  .chart-toolbar,
  .payment-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .workspace-header .primary-button,
  .section-heading .primary-button,
  .form-actions .secondary-button {
    width: 100%;
  }

  canvas {
    height: 380px;
  }

  .modal-grid,
  .goal-type-tabs {
    grid-template-columns: 1fr;
  }

  .icon-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .goal-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .goal-card button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .goal-card strong {
    white-space: normal;
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }

  .modal-actions span {
    display: none;
  }

  .bridge-box {
    align-items: stretch;
    flex-direction: column;
  }

  .milestone-card.is-turning {
    grid-column: 1 / -1;
  }
}

@media print {
  body {
    background: #fff;
    color: #18212a;
    font-size: 100%;
  }

  @page {
    margin: 12mm;
  }

  .income-planner {
    display: block;
    min-height: 0;
  }

  .control-panel,
  .goals-panel button,
  .workspace-header button,
  .projection-panel,
  .no-print,
  dialog,
  .chart-tooltip {
    display: none;
  }

  .brand-header {
    position: static;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 0;
    border-bottom: 2px solid rgba(22, 58, 95, 0.18);
    background: #fff;
    box-shadow: none;
    padding: 0 0 10mm;
    break-after: avoid;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .brand-identity strong {
    font-size: 13pt;
  }

  .brand-identity small,
  .brand-meta {
    color: #65727e;
    font-size: 8pt;
  }

  .brand-meta {
    display: grid;
    justify-items: end;
    gap: 3px;
  }

  .instagram-link svg {
    width: 12px;
    height: 12px;
  }

  .workspace {
    display: flex;
    flex-direction: column;
    gap: 10mm;
    padding: 8mm 0 0;
  }

  .workspace-header {
    display: block;
    break-after: avoid;
  }

  .workspace-header h2 {
    margin-top: 2mm;
    font-size: 18pt;
  }

  .print-plan-summary {
    display: block;
    order: 1;
    break-inside: avoid;
    border: 1px solid rgba(22, 58, 95, 0.13);
    border-radius: 8px;
    background: #fff;
    padding: 5mm;
  }

  .print-plan-summary .section-heading {
    display: block;
    margin-bottom: 4mm;
  }

  .print-plan-summary h2 {
    margin-top: 1mm;
    font-size: 13pt;
  }

  .print-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3mm;
  }

  .print-summary-grid article {
    min-height: 18mm;
    border: 1px solid rgba(22, 58, 95, 0.13);
    border-radius: 6px;
    padding: 3mm;
  }

  .print-summary-grid span,
  .print-summary-grid strong {
    display: block;
  }

  .print-summary-grid span {
    color: #65727e;
    font-size: 7.5pt;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .print-summary-grid strong {
    margin-top: 1.5mm;
    color: #0d2842;
    font-size: 9.5pt;
    line-height: 1.25;
  }

  .status-card,
  .milestones-panel {
    order: 2;
    break-inside: avoid;
    box-shadow: none;
  }

  .milestones-panel {
    padding: 5mm;
  }

  .milestone-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .chart-card {
    order: 3;
  }

  .goals-panel {
    order: 4;
  }

  .chart-card,
  .goals-panel,
  .status-card {
    box-shadow: none;
    break-inside: avoid;
  }

  .chart-card,
  .goals-panel {
    padding: 5mm;
  }

  .chart-toolbar {
    margin-bottom: 3mm;
  }

  canvas {
    height: 115mm;
    min-height: 0;
  }

  .goals-list {
    gap: 3mm;
  }

  .goal-card {
    break-inside: avoid;
    box-shadow: none;
  }
}
