/* Entrega acompanhada: guia legível e conciliação sem alterar a base. */
.consultation-banner {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-left: 3px solid var(--green);
  background: var(--soft);
  font-size: 13px;
}
.consultation-banner span {
  flex: 1;
  min-width: 180px;
}
.consultation-banner button {
  background: transparent;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
  color: var(--green);
  min-height: 44px;
}
.delivery-page {
  max-width: 1180px;
  margin-inline: auto;
}
.delivery-lead {
  padding: 24px 0;
  max-width: 780px;
}
.delivery-lead h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
  margin: 12px 0 16px;
}
.delivery-lead p {
  font-size: 17px;
  color: var(--muted);
  max-width: 65ch;
}
.delivery-mode {
  border-left: 3px solid var(--green);
  padding: 18px 22px;
  background: var(--soft);
  margin: 8px 0 28px;
}
.delivery-mode p {
  margin: 8px 0 0;
  max-width: 80ch;
}
.delivery-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0;
}
.delivery-steps article {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.delivery-steps article > span {
  font: 13px var(--mono);
  color: var(--muted);
}
.delivery-steps h2 {
  font-size: 20px;
  line-height: 1.25;
  margin: 12px 0;
}
.delivery-steps p {
  min-height: 108px;
  color: var(--muted);
}
.delivery-section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.delivery-section h2 {
  font-size: 23px;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.delivery-section p {
  max-width: 85ch;
}
.delivery-section li {
  margin: 10px 0;
}
.delivery-section details {
  padding: 16px;
  background: var(--white);
}
.delivery-section summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 24px;
}
.delivery-table {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 16px 0;
}
.delivery-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  text-align: left;
}
.delivery-table th,
.delivery-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.5;
}
.delivery-table th {
  background: var(--soft);
  font-size: 12px;
}
.delivery-table tr:last-child td {
  border-bottom: 0;
}
.delivery-table a {
  color: var(--green);
  text-underline-offset: 3px;
}
.delivery-table .btn {
  white-space: normal;
  text-align: left;
}
.delivery-number {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.delivery-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 24px 0;
}
.delivery-totals span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.delivery-totals strong {
  display: block;
  font-size: 25px;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.asset-ledger table {
  min-width: 720px;
}
.asset-ledger td:first-child {
  width: 36%;
}
.asset-ledger td:last-child {
  width: 35%;
}
#manual-message {
  display: block;
  width: 100%;
  margin-top: 8px;
  font: 16px/1.5 var(--title);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
@media (max-width: 760px) {
  .delivery-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .delivery-steps p {
    min-height: 0;
  }
  .delivery-totals {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .delivery-table th,
  .delivery-table td {
    padding: 12px;
  }
  .delivery-table table {
    min-width: 570px;
  }
  .responsibility-table table {
    min-width: 0;
    table-layout: fixed;
  }
  .responsibility-table td:first-child,
  .responsibility-table th:first-child {
    width: 31%;
  }
  .delivery-lead {
    padding-top: 12px;
  }
}
:root {
  --green: #333f2e;
  --red: #cd0c3a;
  --paper: #f5f5f1;
  --white: #fff;
  --ink: #273025;
  --muted: #65705f;
  --line: #dedfd7;
  --soft: #e9eddf;
  --warn: #895019;
  --radius: 8px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --title: Arial, Helvetica, sans-serif;
  --mono: Monaco, Consolas, monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.5 var(--title);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--red);
}
button {
  cursor: pointer;
}
a {
  color: var(--green);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -1px;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.mono,
.eyebrow,
.kpi-label {
  font-family: var(--mono);
}
.eyebrow,
.kpi-label {
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.app {
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr);
  min-height: 100vh;
}
.side {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--green);
  color: white;
  padding: 25px 15px;
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 25px;
}
.brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: contain;
}
.brand strong {
  font-size: 16px;
}
.brand small {
  display: block;
  color: #c4cbbd;
  font: 9px var(--mono);
  letter-spacing: 1.5px;
  margin-top: 4px;
}
.side nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.side button {
  border: 0;
  background: none;
  color: #d4dace;
  text-align: left;
  padding: 11px 13px;
  border-radius: 7px;
  font-size: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 42px;
}
.side button span {
  width: 17px;
  font-family: var(--mono);
}
.side button:hover {
  background: #ffffff0b;
}
.side button.active {
  background: #fff;
  color: var(--green);
  font-weight: bold;
}
.side .bottom {
  margin-top: auto;
  padding: 20px 10px 0;
  border-top: 1px solid #ffffff22;
  font-size: 11px;
  color: #c4cbbd;
}
.side .bottom strong {
  color: white;
}
.main {
  min-width: 0;
}
.top {
  height: 72px;
  border-bottom: 1px solid var(--line);
  background: #ffffffb8;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.top .trail {
  font: 10px var(--mono);
  letter-spacing: 1px;
}
.status-dot {
  height: 7px;
  width: 7px;
  background: var(--red);
  border-radius: 50%;
  display: inline-block;
  margin-right: 7px;
}
.top-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
}
.avatar {
  border: 1px solid var(--line);
  border-radius: 50%;
  height: 32px;
  width: 32px;
  display: grid;
  place-items: center;
  font-size: 11px;
}
.workspace {
  max-width: 1600px;
  margin: auto;
  padding: 30px 32px 50px;
}
.titlebar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 20px;
}
.titlebar .eyebrow {
  color: var(--muted);
  margin-bottom: 10px;
}
.subtitle {
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
  max-width: 780px;
}
.btn {
  border: 1px solid var(--line);
  background: white;
  color: var(--green);
  border-radius: 6px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  min-height: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn:hover {
  background: var(--soft);
}
.btn.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.btn.red {
  background: var(--red);
  color: white;
  border-color: var(--red);
}
.btn.small {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 11px;
}
.btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.banner {
  padding: 12px 16px;
  border: 1px solid #d9dfcf;
  border-left: 3px solid var(--green);
  border-radius: 5px;
  background: #eef1e7;
  font-size: 12px;
  margin-bottom: 20px;
}
.banner.warn {
  background: #fff6ed;
  border-color: #e9d4bf;
  border-left-color: var(--warn);
}
.banner.red {
  background: #fff0f3;
  border-color: #efd3db;
  border-left-color: var(--red);
}
.banner strong {
  font-weight: 700;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.kpi {
  background: white;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: var(--radius);
  min-height: 136px;
  display: flex;
  flex-direction: column;
}
.kpi-label {
  color: var(--muted);
}
.kpi-value {
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 700;
  margin: 10px 0 3px;
}
.kpi small {
  margin-top: auto;
  font-size: 11px;
}
.kpi.emphasis {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.kpi.emphasis small,
.kpi.emphasis .kpi-label {
  color: #d5ddca;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: start;
}
.grid.equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
  margin-bottom: 18px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.card-head small {
  font: 10px var(--mono);
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.badge {
  display: inline-flex;
  border: 1px solid var(--line);
  padding: 3px 7px;
  border-radius: 4px;
  font: 9px var(--mono);
  white-space: nowrap;
  letter-spacing: 0.3px;
  background: #f6f7f2;
}
.badge.red {
  color: #a80b30;
  background: #fff0f3;
  border-color: #efccd4;
}
.badge.green {
  color: var(--green);
  background: var(--soft);
  border-color: #d9dece;
}
.badge.amber {
  color: #805124;
  background: #fff4e8;
  border-color: #e8d1b6;
}
.decision-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid #eee;
}
.decision-row .priority {
  font: 11px var(--mono);
  color: var(--red);
  padding-top: 3px;
}
.decision-row p {
  font-size: 12px;
  margin: 5px 0;
  color: var(--muted);
}
.decision-row small {
  font-size: 11px;
}
.linkbtn {
  border: 0;
  background: none;
  color: var(--green);
  font-size: 11px;
  text-decoration: underline;
  padding: 5px;
}
.preview-image {
  position: relative;
  height: 190px;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 18px;
  background: var(--green);
}
.preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
}
.preview-image .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, #000b);
  color: white;
  padding: 34px 18px 14px;
  font-size: 11px;
}
.stage {
  display: flex;
  gap: 5px;
  margin: 12px 0;
}
.stage button {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f1f2ed;
  padding: 12px 0;
  color: var(--muted);
  font: 11px var(--mono);
}
.stage button:last-child {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.lane {
  display: grid;
  grid-template-columns: 110px 1fr 100px;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
  font-size: 11px;
}
.track {
  height: 7px;
  background: #eceee7;
  border-radius: 3px;
  overflow: hidden;
}
.fill {
  height: 100%;
  background: var(--green);
}
.fill.red {
  background: var(--red);
}
.legend {
  font-size: 11px;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.table-wrap {
  overflow: auto;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: var(--mono);
  background: #eff1e9;
  color: #5c6656;
  font-weight: 400;
  white-space: nowrap;
}
th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid #e8eae2;
  vertical-align: top;
}
td small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}
tr:last-child td {
  border-bottom: 0;
}
.clickable {
  cursor: pointer;
}
.clickable:hover {
  background: #f6f7f2;
}
td.num {
  text-align: right;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.toolbar input {
  max-width: 340px;
  flex: 1;
}
.toolbar select {
  max-width: 230px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd3c6;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
  font-size: 13px;
  min-height: 42px;
}
textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}
label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 6px;
}
.formgroup {
  margin-bottom: 16px;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.formgroup small {
  display: block;
  margin-top: 5px;
}
.empty {
  padding: 38px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.empty strong {
  display: block;
  color: var(--ink);
  margin-bottom: 8px;
}
.source {
  font: 9px var(--mono);
  color: var(--muted);
  overflow-wrap: anywhere;
}
.gates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.gate {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}
.gate .number {
  font: 25px var(--mono);
  color: #a9b09f;
  display: block;
  margin-bottom: 10px;
}
.gate p {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0;
}
.gate .btn {
  margin-top: 16px;
}
.risk {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.risk h3 {
  margin: 7px 0;
}
.risk p {
  font-size: 12px;
  color: var(--muted);
}
.schedule {
  display: grid;
  grid-template-columns: 300px minmax(420px, 1fr);
  min-width: 740px;
}
.schedule .head {
  background: #eff1e9;
  font: 10px var(--mono);
  padding: 10px;
}
.sched-label,
.sched-bar {
  height: 62px;
  border-bottom: 1px solid #e8eae2;
  padding: 10px 14px;
}
.sched-label {
  font-size: 11px;
}
.sched-label small {
  display: block;
  font-size: 10.5px;
}
.sched-bar {
  position: relative;
  background: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(25% - 1px),
    #e8eae2 calc(25% - 1px),
    #e8eae2 25%
  );
}
.bar {
  position: absolute;
  top: 18px;
  height: 22px;
  background: var(--green);
  border-radius: 3px;
  min-width: 5px;
  font: 9px var(--mono);
  color: white;
  padding: 4px 7px;
  overflow: hidden;
  white-space: nowrap;
}
.bar.reported {
  background: #89977b;
}
.record {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.record:first-child {
  border-top: 0;
}
.record p {
  white-space: pre-wrap;
  font-size: 12px;
  margin: 10px 0;
}
.record .meta {
  font: 9px var(--mono);
  color: var(--muted);
}
.evidence-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.evidence-item {
  font-size: 11px;
  display: flex;
  gap: 5px;
  align-items: center;
  max-width: 100%;
}
.evidence-item button {
  overflow-wrap: anywhere;
}
.checklist {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}
.checklist label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: normal;
  line-height: 1.4;
}
.checklist input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}
.callout {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  font-size: 12px;
  margin: 16px 0;
}
.copilot-response {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.8;
  padding: 20px;
  background: var(--soft);
  border-radius: 8px;
}
.copilot-queries {
  display: flex;
  gap: 8px;
  margin: 16px 0;
  flex-wrap: wrap;
}
dialog {
  border: 0;
  border-left: 1px solid var(--line);
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: 650px;
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  background: white;
  color: var(--ink);
  box-shadow: -16px 0 70px #0002;
}
dialog::backdrop {
  background: #18201666;
}
dialog .drawer-head {
  position: sticky;
  top: 0;
  background: white;
  z-index: 3;
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
dialog .drawer-body {
  padding: 24px 25px;
}
dialog h2 {
  font-size: 23px;
}
.drawer-foot {
  position: sticky;
  bottom: 0;
  background: white;
  padding: 16px 25px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.error {
  color: #a00;
  font-size: 12px;
  margin: 10px 0;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-cover {
  background: var(--green);
  padding: 70px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-cover img {
  width: 100px;
  border-radius: 50%;
}
.login-cover h1 {
  font-size: 48px;
  max-width: 500px;
}
.login-form {
  max-width: 390px;
  width: 100%;
  margin: auto;
  padding: 30px;
}
.login-form h2 {
  font-size: 28px;
  margin-bottom: 10px;
}
.login-form form {
  margin-top: 30px;
}
.login-form .btn {
  width: 100%;
}
.login-cover .eyebrow {
  color: #ccd4bf;
}
.loading {
  padding: 10vh;
  text-align: center;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: min(500px, 90vw);
  z-index: 20;
  background: var(--green);
  color: white;
  border-radius: 7px;
  padding: 0;
  box-shadow: 0 8px 30px #0002;
  font-size: 12px;
}
#toast.show {
  padding: 14px 20px;
}
.mobile-toggle {
  display: none;
}
.unit-pill {
  background: #ffffff0d;
  border: 1px solid #ffffff2a;
  border-radius: 7px;
  padding: 12px;
  margin: 0 5px 22px;
  font-size: 11px;
}
.unit-pill small {
  display: block;
  color: #b8c2ac;
  font-size: 10.5px;
  margin-bottom: 5px;
}
.numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0;
}
.number-box {
  padding: 12px;
  background: var(--paper);
  border-radius: 6px;
}
.number-box strong {
  display: block;
  font-size: 18px;
  margin-top: 5px;
}
.timeline-item {
  border-left: 2px solid var(--line);
  padding: 0 0 22px 18px;
  margin-left: 5px;
}
.timeline-item p {
  font-size: 11px;
  margin-top: 6px;
  white-space: pre-wrap;
}
.timeline-item .source {
  margin: 6px 0;
}
.file-name {
  overflow-wrap: anywhere;
}
.footer-note {
  font: 9px var(--mono);
  color: var(--muted);
  margin-top: 22px;
}
.brief-text {
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 13px;
}
.pill-tabs {
  display: flex;
  gap: 6px;
  margin: 14px 0;
}
.pill-tabs button {
  background: white;
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 5px;
  font-size: 11px;
}
.pill-tabs button.active {
  background: var(--green);
  color: white;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.photo-grid img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
}
.nowrap {
  white-space: nowrap;
}
@media (min-width: 1600px) {
  .workspace {
    padding: 38px 48px;
  }
}
@media (max-width: 1100px) {
  .app {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .workspace {
    padding: 25px 22px;
  }
  .top {
    padding: 0 22px;
  }
  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .grid.equal {
    grid-template-columns: 1fr;
  }
  .preview-image {
    height: 230px;
  }
  .side {
    padding-left: 10px;
    padding-right: 10px;
  }
  .side button {
    font-size: 11px;
  }
}
@media (max-width: 720px) {
  .app {
    display: block;
  }
  .side {
    position: fixed;
    left: -240px;
    top: 0;
    width: 222px;
    transition: left 0.2s;
    height: 100dvh;
    box-shadow: 10px 0 30px #0003;
  }
  .side.open {
    left: 0;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .top {
    height: 60px;
    padding: 0 16px;
  }
  .top .trail {
    font-size: 10px;
  }
  .top-user .user-name {
    display: none;
  }
  .workspace {
    padding: 22px 16px 36px;
  }
  h1 {
    font-size: 26px;
  }
  .titlebar {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
  }
  .titlebar > .actions {
    width: 100%;
  }
  .titlebar .btn {
    flex: 1;
  }
  .kpis {
    gap: 8px;
  }
  .kpi {
    padding: 15px 12px;
    min-height: 126px;
  }
  .kpi-value {
    font-size: 23px;
  }
  .kpi-label {
    font-size: 10px;
    letter-spacing: 0.7px;
  }
  .kpi small {
    font-size: 10.5px;
  }
  .card {
    padding: 18px;
  }
  .decision-row {
    grid-template-columns: 24px 1fr;
    gap: 8px;
  }
  .decision-row > .btn {
    grid-column: 2;
    justify-self: start;
  }
  .gates {
    grid-template-columns: 1fr;
  }
  .banner {
    font-size: 11px;
  }
  .toolbar {
    gap: 8px;
  }
  .toolbar input,
  .toolbar select {
    max-width: 100%;
    flex: auto;
  }
  .formgrid {
    grid-template-columns: 1fr;
  }
  .login {
    display: block;
  }
  .login-cover {
    padding: 30px;
    min-height: 260px;
  }
  .login-cover h1 {
    font-size: 32px;
  }
  .login-cover img {
    width: 55px;
  }
  .login-cover .eyebrow {
    margin-top: 20px;
  }
  .login-form {
    padding: 35px 24px;
  }
  .stage {
    gap: 3px;
  }
  .stage button {
    font-size: 10.5px;
  }
  .numbers {
    grid-template-columns: 1fr 1fr;
  }
  .lane {
    grid-template-columns: 90px 1fr 88px;
    gap: 6px;
  }
  .photo-grid {
    grid-template-columns: 1fr 1fr;
  }
  .drawer-head h2 {
    font-size: 20px;
  }
  .card-head {
    align-items: flex-start;
  }
  dialog .drawer-body {
    padding: 20px;
  }
  dialog .drawer-head {
    padding: 20px;
  }
  .source {
    font-size: 10px;
  }
  .footer-note {
    font-size: 10px;
  }
}

.btn.primary:hover {
  background: #263020;
}

/* v0.4: action-first navigation and progressive disclosure. */
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
.side {
  padding-top: 23px;
}
.brand {
  padding: 0 4px 24px;
  gap: 10px;
}
.brand img {
  width: 56px;
  height: 56px;
}
.brand strong {
  font-size: 15px;
}
.brand small {
  font-size: 10px;
  letter-spacing: 1px;
}
.side button {
  font-size: 13px;
  gap: 12px;
  padding: 12px;
  min-height: 46px;
}
.unit-pill {
  font-size: 12px;
  margin: 0 0 20px;
}
.unit-pill small {
  line-height: 1.7;
}
.side nav {
  gap: 5px;
}
.side button.active {
  box-shadow: 0 3px 12px #14220d20;
}
.side .bottom button {
  color: white;
  font-size: 12px;
  padding: 0;
  margin-bottom: 17px;
  justify-content: space-between;
  width: 100%;
  min-height: 30px;
}
.bottom strong {
  font-size: 11px;
}
.more-nav {
  margin-top: 20px;
  border-top: 1px solid #ffffff28;
  padding-top: 16px;
}
.more-nav summary {
  font-size: 11px;
  color: #cbd4c1;
  cursor: pointer;
  min-height: 35px;
}
.more-nav button {
  font-size: 11px;
  min-height: 35px;
  padding: 8px 10px;
  width: 100%;
}
.more-nav[open] {
  max-height: 260px;
  overflow: auto;
}
.side {
  overflow: auto;
}
.side .bottom {
  margin-top: 24px;
}
.top {
  height: 76px;
}
.top-user {
  gap: 12px;
}
.top .trail {
  font-size: 11px;
  letter-spacing: 0.5px;
}
.top-sep {
  color: #a5ad9c;
  margin: 0 9px;
}
.help-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  min-height: 40px;
  cursor: pointer;
}
.help-top:first-letter {
  font-weight: bold;
}
.capture-top {
  font-size: 12px;
}
.mode-line {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  margin: -8px 0 24px;
}
.mode-line .status-dot {
  background: #9b854a;
  width: 5px;
  height: 5px;
  margin-right: 5px;
}
.eyebrow {
  font-size: 10.5px;
  letter-spacing: 1.2px;
}
.titlebar {
  margin-bottom: 20px;
}
.titlebar h1 {
  font-size: 33px;
  letter-spacing: -1.2px;
}
.subtitle {
  font-size: 13px;
  line-height: 1.65;
  max-width: 720px;
}
.start-card {
  position: relative;
  background: #eaf0e0;
  border: 1px solid #d6dfc8;
  border-radius: 14px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
  margin-bottom: 20px;
  align-items: center;
}
.start-card h2 {
  margin-top: 7px;
  font-size: 20px;
}
.start-card p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  max-width: 400px;
}
.start-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
}
.start-steps button {
  border: 0;
  background: #ffffff90;
  min-height: 43px;
  border-radius: 6px;
  color: var(--green);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 7px 12px;
}
.start-steps button b {
  font-family: var(--mono);
  font-size: 11px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid #c8d3bb;
  border-radius: 50%;
}
.start-steps button .icon {
  margin-left: auto;
  width: 16px;
}
.start-dismiss {
  position: absolute;
  right: 16px;
  top: 10px;
  border: 0;
  background: none;
  color: #58674a;
  font-size: 11px;
  text-decoration: underline;
  padding: 4px 0;
  min-height: 28px;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.quick-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  min-height: 106px;
  transition:
    transform 0.16s,
    box-shadow 0.16s,
    border-color 0.16s;
}
.quick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px #28301e0d;
  border-color: #aebc9e;
}
.quick-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.4;
}
.quick-card small {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 6px;
}
.quick-card > .icon {
  width: 16px;
  margin-left: auto;
  color: #8f9b86;
}
.quick-icon {
  background: #edf1e6;
  border-radius: 9px;
  height: 40px;
  width: 40px;
  display: grid;
  place-items: center;
  color: var(--green);
  flex-shrink: 0;
}
.quick-card:nth-child(2) .quick-icon {
  background: #fff1e7;
  color: #94663f;
}
.quick-card:nth-child(3) .quick-icon {
  background: #fceef1;
  color: var(--red);
}
.home-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(270px, 1fr);
}
.focus-step {
  display: flex;
  gap: 16px;
  align-items: center;
}
.phase-number {
  font-family: var(--mono);
  font-size: 25px;
  background: var(--green);
  color: #fff;
  border-radius: 12px;
  width: 58px;
  height: 66px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.focus-step h3 {
  font-size: 17px;
}
.focus-step p {
  font-size: 12px;
  margin-top: 6px;
  color: var(--muted);
}
.next-action {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px;
  border-left: 2px solid #a7b28e;
  margin: 20px 0;
  background: #f6f8f1;
}
.next-action span {
  font-size: 11px;
  color: var(--muted);
}
.next-action strong {
  font-size: 13px;
}
.unit-photo {
  position: relative;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--green);
}
.unit-photo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 50% 43%;
}
.unit-photo > span {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 45px 18px 17px;
  background: linear-gradient(transparent, #142010db);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.unit-photo small {
  display: block;
  color: #e1e6d8;
  font-size: 10.5px;
  font-weight: 400;
  margin-top: 4px;
}
.personal-counts {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
.personal-counts button {
  flex: 1;
  border: 1px solid var(--line);
  background: #f5f7ef;
  padding: 15px;
  border-radius: 8px;
  color: var(--green);
  text-align: left;
}
.personal-counts strong {
  font-size: 29px;
  display: block;
  line-height: 1.2;
}
.personal-counts span {
  font-size: 11px;
  color: var(--muted);
}
.readable {
  font-size: 14px;
  line-height: 1.7;
}
.gate-dots {
  display: flex;
  gap: 5px;
  margin: 17px 0;
  flex-wrap: wrap;
}
.gate-dots button {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f4f6ef;
  color: var(--green);
  height: 34px;
  min-width: 31px;
  font: 10px var(--mono);
}
.money-overview {
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin-top: 10px;
}
.money-caution {
  font-size: 11px;
  color: var(--muted);
  margin-top: -6px;
}
.simple-decision {
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
}
.priority-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}
.simple-decision h3 {
  font-size: 14px;
}
.simple-decision p {
  font-size: 12px;
  line-height: 1.6;
}
.simple-decision small {
  font-size: 11px;
  line-height: 1.7;
}
.simple-decision .btn .icon {
  width: 14px;
}
.help-wrap {
  display: inline;
  white-space: normal;
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--title);
  font-weight: 400;
}
.help-button {
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  border: 1px solid #9eaa91;
  color: #5d6a50;
  background: transparent;
  border-radius: 50%;
  width: 19px;
  height: 19px;
  padding: 0;
  font: 11px var(--title);
  line-height: 1;
  margin-left: 5px;
  cursor: help;
}
.help-button:hover,
.help-button[aria-expanded="true"] {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.help-pop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 350px;
  max-width: calc(100vw - 36px);
  z-index: 60;
  background: #fff;
  border: 1px solid #c7d0bd;
  border-radius: 10px;
  box-shadow: 0 12px 50px #111b0738;
  padding: 18px;
  color: var(--ink);
  font: 12px/1.75 var(--title);
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
}
.help-pop[hidden] {
  display: none;
}
.help-pop strong {
  display: block;
  font-size: 13px;
  color: var(--green);
  margin-bottom: 7px;
}
.help-pop > span {
  display: block;
}
.kpi.emphasis .help-button {
  color: white;
  border-color: #a9b49e;
}
.kpi {
  min-height: 149px;
  padding: 18px;
}
.kpi-value {
  font-size: 25px;
  letter-spacing: -0.8px;
}
.kpi-label {
  font-size: 10.5px;
  letter-spacing: 0.7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
}
.kpi-label .help-button {
  margin-left: 0;
}
.kpi small {
  font-size: 11px;
  line-height: 1.6;
}
.card > .card-head h2 {
  font-size: 18px;
  line-height: 1.4;
}
.card-head > .help-wrap {
  flex-shrink: 0;
}
.cost-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  padding: 20px 18px;
  background: #e9eddf;
  border-radius: 10px;
  flex-wrap: wrap;
}
.cost-flow > span {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: #78806f;
}
.cost-flow > span b {
  border: 1px solid #bcc6af;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font: 10px var(--mono);
}
.cost-flow > span.known {
  color: var(--green);
}
.cost-flow .known b {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.package-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 290px;
}
.category-label {
  font: 9px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--muted);
}
.package-card h2 {
  font-size: 18px;
  margin: 12px 0 8px;
  line-height: 1.35;
}
.package-card > p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}
.quote-price {
  display: flex;
  flex-direction: column;
  margin: 18px 0 14px;
  gap: 5px;
}
.quote-price small {
  font-size: 11px;
}
.quote-price strong {
  font-size: 25px;
  letter-spacing: -0.6px;
}
.quote-price > span {
  font-size: 11px;
  color: var(--muted);
}
.package-foot {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.package-foot .btn {
  font-size: 11px;
}
.simple-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 22px;
}
.journey-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 16px;
  padding: 18px 20px;
  background: #eaf0e0;
  border: 1px solid #d6dfc8;
  border-radius: 10px;
  margin-bottom: 20px;
}
.journey-note strong {
  font-size: 12px;
}
.journey-note > span {
  flex: 1;
  min-width: 240px;
  font-size: 11px;
  color: var(--muted);
}
.journey-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 25px;
}
.journey-stop {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 139px;
  transition:
    border-color 0.16s,
    background 0.16s,
    transform 0.16s;
}
.journey-stop:hover {
  transform: translateY(-2px);
  border-color: #94a381;
}
.journey-stop.selected {
  background: var(--green);
  color: white;
  border-color: var(--green);
  box-shadow: 0 7px 20px #26351e20;
}
.stop-number {
  font: 13px var(--mono);
  color: #7c896d;
  width: 31px;
  height: 31px;
  background: #f0f3e9;
  display: grid;
  place-items: center;
  border-radius: 8px;
}
.journey-stop.selected .stop-number {
  background: #ffffff20;
  color: #fff;
}
.journey-stop strong {
  font-size: 13px;
  line-height: 1.4;
}
.journey-stop small {
  font-size: 10.5px;
  line-height: 1.6;
}
.journey-stop.selected small {
  color: #d0d9c6;
}
.journey-detail {
  scroll-margin-top: 20px;
}
.phase-label {
  font: 9px var(--mono);
  color: var(--muted);
  letter-spacing: 1px;
}
.phase-summary {
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 20px;
}
.phase-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
.phase-facts > div {
  background: #f4f6ee;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.phase-facts small {
  font-size: 11px;
}
.phase-facts strong {
  font-size: 12px;
  line-height: 1.7;
}
.phase-facts > div > span {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.list-heading {
  margin: 25px 0 12px;
  font-size: 14px;
}
.task-card {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 17px 0;
  border-top: 1px solid #e6e9df;
  align-items: start;
}
.task-card h3 {
  font-size: 13px;
  line-height: 1.6;
}
.task-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 3px 0 8px;
}
.task-dot {
  width: 7px;
  height: 7px;
  border: 1px solid #b3bdaa;
  border-radius: 50%;
  margin-top: 7px;
}
.task-dot.active {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 0 4px #e5ecdb;
}
.task-dates {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.task-dates > span:first-child {
  font-size: 11px;
  color: #6e7862;
}
.task-warning {
  display: block;
  margin-top: 8px;
  color: #966433;
  font-size: 11px;
}
.revision-note {
  font-size: 11px;
  color: var(--green);
  background: #edf2e4;
  border-left: 2px solid #adb99a;
  padding: 9px;
  margin-top: 10px;
}
.ready-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e9efdf;
  color: var(--green);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.gate-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.parallel-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 17px 0;
  text-align: left;
  width: 100%;
  color: var(--green);
}
.parallel-track:first-of-type {
  margin-top: 14px;
}
.parallel-track strong {
  font-size: 12px;
  display: block;
}
.parallel-track small {
  font-size: 11px;
  display: block;
  margin-top: 5px;
  line-height: 1.7;
}
.parallel-track .icon {
  width: 15px;
}
.history-section {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  background: #fff;
}
.history-section summary,
.technical-details summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--green);
  line-height: 1.6;
  min-height: 32px;
}
.history-section > p {
  margin-top: 10px;
}
.technical-details {
  border-top: 1px solid var(--line);
  margin: 23px 0 10px;
  padding-top: 16px;
}
.technical-details p {
  font-size: 12px;
  line-height: 1.8;
  margin: 12px 0;
  color: var(--muted);
}
.proposed-task {
  display: flex;
  gap: 12px;
  padding: 17px 0;
  border-top: 1px dashed var(--line);
  align-items: center;
}
.proposed-task > div {
  flex: 1;
}
.proposed-task strong {
  font-size: 12px;
  line-height: 1.5;
}
.proposed-task small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}
.proposed-task .icon {
  width: 16px;
  color: #879577;
}
.review-flow {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 9px;
  margin-bottom: 23px;
}
.review-flow > span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.review-flow b {
  font: 10px var(--mono);
  background: #eff3e5;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
}
.review-flow > .icon {
  width: 15px;
  color: #8d9b7c;
}
.review-responses {
  background: #f0f4e8;
  padding: 15px;
  border-radius: 8px;
  font-size: 12px;
}
.review-responses > div {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #dae2cc;
}
.review-responses p {
  margin-bottom: 0;
}
.plain-steps {
  padding-left: 20px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.plain-steps li {
  margin-bottom: 12px;
}
.helper-text {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin: 16px 0;
}
.capture-intro {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
}
.capture-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.capture-options > button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 1px solid var(--line);
  padding: 17px;
  background: #fff;
  border-radius: 9px;
  text-align: left;
  color: var(--ink);
}
.capture-options > button:hover {
  border-color: #94a381;
  background: #f8faf3;
}
.capture-options strong {
  display: block;
  font-size: 13px;
}
.capture-options small {
  display: block;
  font-size: 11px;
  margin-top: 5px;
  line-height: 1.6;
}
.capture-options > button > .icon {
  margin-left: auto;
  width: 16px;
}
.resume-card {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #edf2e3;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 12px;
}
.resume-card small {
  display: block;
  font-size: 11px;
  margin-top: 5px;
}
.form-stepper {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0 0 28px;
}
.form-stepper li {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
  font-size: 11px;
  color: #829071;
  line-height: 1.5;
}
.form-stepper b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #cbd4bf;
  font: 11px var(--mono);
  flex-shrink: 0;
}
.form-stepper .active {
  color: var(--green);
  font-weight: 700;
}
.form-stepper .active b {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.form-stepper .passed b {
  background: #e6eedb;
}
.step-title {
  font-size: 19px;
  margin: 0 0 24px;
  line-height: 1.45;
}
.formgroup {
  margin-bottom: 22px;
}
.formgroup label {
  font-size: 12px;
  margin-bottom: 8px;
  line-height: 1.6;
}
.formgroup input,
.formgroup select {
  min-height: 45px;
}
.formgroup small {
  font-size: 11px;
  line-height: 1.7;
  margin-top: 8px;
}
.formgroup textarea {
  min-height: 150px;
  line-height: 1.8;
}
.optional {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 5px;
}
.upload-zone {
  background: #f5f8ef;
  border: 1px dashed #a7b598;
  border-radius: 9px;
  padding: 20px;
  margin: 10px 0 20px;
}
.upload-zone label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.upload-zone p {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0 14px;
}
.upload-zone input {
  font-size: 11px;
  background: white;
  min-height: 43px;
}
.upload-zone > small {
  font-size: 10.5px;
  display: block;
  margin-top: 8px;
}
.upload-zone [role="status"] {
  font-size: 11px;
  margin-top: 12px;
  color: var(--green);
}
.dependency-options {
  max-height: 240px;
  overflow: auto;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
}
.dependency-options label {
  display: flex;
  gap: 9px;
  align-items: start;
  font-size: 11px;
  font-weight: 400;
  padding: 8px 0;
  line-height: 1.6;
}
.dependency-options input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--green);
  margin-top: 2px;
}
.wizard-actions {
  position: sticky;
  bottom: -24px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 0;
  margin-top: 15px;
  border-top: 1px solid var(--line);
  z-index: 2;
}
.review-summary {
  background: #f5f7f0;
  padding: 22px;
  border: 1px solid #e2e7d8;
  border-radius: 9px;
}
.review-summary h2 {
  font-size: 21px;
  margin: 12px 0 15px;
  line-height: 1.4;
}
.review-summary p {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.8;
}
.review-summary dl {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  font-size: 11px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 18px;
}
.review-summary dt {
  color: var(--muted);
}
.review-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.save-explainer {
  margin: 24px 0 0;
  padding: 0 2px;
  font-size: 12px;
}
.save-explainer p {
  line-height: 1.9;
  margin: 10px 0;
  color: var(--muted);
}
.save-explainer > span {
  display: block;
  font-size: 11px;
  background: #fff4e9;
  padding: 12px;
  border-radius: 5px;
  color: #8d663c;
}
.essential-note {
  font-size: 11px;
  line-height: 1.8;
  padding: 15px;
  background: #fff5eb;
  color: #865e32;
  border-radius: 7px;
  margin: 15px 0 24px;
}
.guide-visual {
  height: 130px;
  background: #eaf0e0;
  position: relative;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  color: var(--green);
}
.guide-visual > .icon {
  height: 60px;
  width: 60px;
}
.guide-visual > span {
  position: absolute;
  right: 18px;
  top: 12px;
  font: 12px var(--mono);
  opacity: 0.6;
}
.guide-title {
  font-size: 25px;
  line-height: 1.35;
  margin-bottom: 18px;
}
.guide-description {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 22px;
}
.guide-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 25px 0;
}
.guide-dots span {
  height: 5px;
  width: 22px;
  background: #dce3d1;
  border-radius: 3px;
}
.guide-dots span.active {
  background: var(--green);
}
.motion-setting {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin: 20px 0;
}
.motion-setting input {
  width: 17px;
  height: 17px;
  min-height: 17px;
  accent-color: var(--green);
}
.save-success {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  background: #e3efda;
  color: var(--green);
  border-radius: 50%;
  margin: 12px 0 25px;
  animation: soft-check 0.35s ease-out;
}
.save-success .icon {
  width: 32px;
  height: 32px;
}
.package-context p {
  font-size: 13px;
  line-height: 1.8;
  margin-top: 10px;
  color: var(--muted);
}
.quote-options {
  display: grid;
  gap: 12px;
}
.quote-option {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px;
}
.quote-option h3 {
  font-size: 13px;
  line-height: 1.5;
}
.quote-option .row > strong {
  font: 14px var(--mono);
  white-space: nowrap;
}
.quote-option p {
  font-size: 11px;
  line-height: 1.7;
  margin: 10px 0;
  color: var(--muted);
}
.quote-option > small {
  display: block;
  margin-bottom: 13px;
  font-size: 11px;
}
.check-needed {
  background: #f3f6eb;
  border-radius: 9px;
  padding: 18px;
  margin: 22px 0;
}
.check-needed h3 {
  font-size: 13px;
}
.check-needed ul {
  padding-left: 18px;
  font-size: 11px;
  line-height: 1.8;
  margin-bottom: 0;
  color: var(--muted);
}
.mobile-dock {
  display: none;
}
.copilot-entry {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  background: #fff;
  margin-bottom: 22px;
}
.copilot-entry p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 10px 0 15px;
}
.copilot-entry textarea {
  margin: 10px 0 15px;
  min-height: 100px;
}
.page-enter {
  animation: page-in 0.22s ease-out;
}
.quick-card,
.journey-stop,
.package-card {
  animation: card-in 0.28s ease-out both;
}
.quick-card:nth-child(2),
.journey-stop:nth-child(2),
.package-card:nth-child(2) {
  animation-delay: 0.035s;
}
.quick-card:nth-child(3),
.journey-stop:nth-child(3),
.package-card:nth-child(3) {
  animation-delay: 0.07s;
}
dialog[open] {
  animation: drawer-in 0.2s ease-out;
}
.fill {
  transition: width 0.35s ease-out;
}
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
.help-pop {
  animation: help-in 0.14s ease-out;
}
@keyframes page-in {
  from {
    opacity: 0.4;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes card-in {
  from {
    opacity: 0.5;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes drawer-in {
  from {
    opacity: 0.5;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes help-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes soft-check {
  from {
    transform: scale(0.9);
    opacity: 0.5;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@media (max-width: 1250px) {
  .quick-card {
    padding: 15px;
    gap: 10px;
    align-items: start;
  }
  .quick-card > .icon {
    display: none;
  }
  .quick-card .quick-icon {
    width: 33px;
    height: 33px;
  }
  .quick-card .icon {
    width: 18px;
  }
  .package-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .start-card {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .start-card h2 {
    font-size: 18px;
  }
  .home-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr);
  }
  .simple-decision {
    grid-template-columns: 7px 1fr;
  }
  .simple-decision > .btn {
    grid-column: 2;
    justify-self: start;
  }
  .capture-top {
    padding: 9px 11px;
  }
  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1050px) {
  .home-grid,
  .journey-detail {
    grid-template-columns: 1fr;
  }
  .home-grid > div:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }
  .home-grid > div:last-child .unit-photo {
    display: none;
  }
  .home-grid > div:last-child > .card {
    margin-bottom: 0;
  }
  .journey-detail > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .journey-stop {
    padding: 14px;
    min-height: 142px;
  }
  .journey-stop strong {
    font-size: 12px;
  }
  .start-card {
    grid-template-columns: 1fr;
  }
  .start-card .start-steps {
    padding-top: 0;
    flex-direction: row;
  }
  .start-steps button {
    flex: 1;
    align-items: start;
    flex-direction: column;
    gap: 8px;
    font-size: 11px;
  }
  .start-steps button > .icon {
    display: none;
  }
  .top .avatar {
    display: none;
  }
  .top-user {
    gap: 8px;
  }
}
@media (max-width: 720px) {
  .workspace {
    padding: 22px 16px 110px;
  }
  .titlebar h1 {
    font-size: 29px;
  }
  .titlebar > .actions {
    justify-content: flex-start;
  }
  .titlebar .btn {
    flex: 0 1 auto;
  }
  .top {
    height: 64px;
    gap: 8px;
  }
  .top .trail {
    font-size: 10.5px;
  }
  .top-user .help-top > span {
    display: none;
  }
  .top-user .help-top {
    font-size: 15px;
    min-width: 26px;
  }
  .top-user .capture-top {
    font-size: 0;
    min-width: 38px;
    padding: 8px;
  }
  .capture-top .icon {
    width: 21px;
    height: 21px;
  }
  .top-user > .btn:not(.capture-top) {
    font-size: 10.5px;
    padding: 6px 8px;
  }
  .top-sep {
    margin: 0 5px;
  }
  .mode-line {
    font-size: 10.5px;
    line-height: 1.8;
    margin-bottom: 20px;
  }
  .start-card {
    padding: 22px 16px 16px;
    gap: 14px;
    border-radius: 11px;
  }
  .start-card h2 {
    font-size: 19px;
    max-width: 270px;
  }
  .start-card .eyebrow {
    font-size: 10px;
  }
  .start-card p {
    font-size: 11px;
  }
  .start-steps button {
    font-size: 11px;
    min-height: 78px;
    padding: 11px;
    line-height: 1.6;
  }
  .start-steps button b {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
  .quick-actions {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .quick-card {
    align-items: center;
    min-height: 83px;
    padding: 15px;
    gap: 13px;
  }
  .quick-card strong {
    font-size: 13px;
  }
  .quick-card small {
    font-size: 11px;
    margin-top: 4px;
  }
  .quick-card > .icon {
    display: block;
    width: 17px;
  }
  .quick-card .quick-icon {
    height: 37px;
    width: 37px;
  }
  .home-grid > div:last-child,
  .journey-detail > aside {
    display: block;
  }
  .home-grid > div:last-child > .card {
    margin-bottom: 18px;
  }
  .home-grid .card {
    padding: 19px;
  }
  .home-grid .focus-step h3 {
    font-size: 16px;
  }
  .focus-step {
    gap: 13px;
  }
  .phase-number {
    height: 59px;
    width: 49px;
    font-size: 22px;
  }
  .focus-step p {
    font-size: 11px;
  }
  .next-action {
    padding: 14px;
    margin: 16px 0;
  }
  .next-action strong {
    font-size: 12px;
  }
  .focus-step ~ .actions {
    display: flex;
    flex-wrap: wrap;
  }
  .focus-step ~ .actions .btn {
    font-size: 11px;
  }
  .simple-decision {
    gap: 10px;
  }
  .personal-counts strong {
    font-size: 27px;
  }
  .kpi {
    min-height: 143px;
    padding: 15px 12px;
  }
  .kpi-value {
    font-size: 22px;
    margin: 12px 0 7px;
  }
  .kpi-label {
    font-size: 10px;
    letter-spacing: 0.3px;
  }
  .kpi small {
    font-size: 10.5px;
  }
  .card > .card-head h2 {
    font-size: 18px;
  }
  .money-caution {
    font-size: 11px;
    line-height: 1.8;
  }
  .help-button {
    height: 20px;
    width: 20px;
    min-height: 20px;
  }
  .help-pop {
    bottom: 94px;
    right: 16px;
    max-width: calc(100vw - 32px);
    width: 350px;
    padding: 18px;
  }
  .journey-note {
    padding: 15px;
    gap: 10px;
  }
  .journey-note > span {
    min-width: 0;
    flex-basis: 100%;
    font-size: 11px;
    line-height: 1.7;
  }
  .journey-note strong {
    font-size: 11px;
  }
  .journey-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .journey-stop {
    padding: 14px;
    gap: 10px;
    min-height: 135px;
  }
  .journey-stop strong {
    font-size: 12px;
  }
  .journey-stop small {
    font-size: 10.5px;
  }
  .stop-number {
    height: 28px;
    width: 28px;
    font-size: 12px;
  }
  .phase-summary {
    font-size: 13px;
    line-height: 1.8;
  }
  .phase-facts {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .phase-facts small {
    font-size: 11px;
  }
  .phase-facts strong {
    font-size: 12px;
  }
  .task-card {
    grid-template-columns: 7px minmax(0, 1fr);
    gap: 10px;
  }
  .task-card > .btn {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }
  .task-card h3 {
    font-size: 13px;
  }
  .task-dates {
    gap: 7px;
  }
  .task-dates > span:first-child {
    font-size: 10.5px;
  }
  .task-dates .badge {
    font-size: 10px;
  }
  .proposed-task {
    flex-wrap: wrap;
    gap: 10px;
  }
  .proposed-task > .btn {
    margin-left: 28px;
  }
  .proposed-task > div {
    min-width: 220px;
  }
  .technical-details summary {
    font-size: 11px;
  }
  .package-grid {
    grid-template-columns: 1fr;
  }
  .package-card {
    min-height: 260px;
    padding: 20px;
  }
  .package-card h2 {
    font-size: 19px;
  }
  .package-card > p {
    font-size: 12px;
  }
  .quote-price strong {
    font-size: 26px;
  }
  .cost-flow {
    justify-content: flex-start;
    padding: 16px;
    gap: 12px 15px;
  }
  .cost-flow > span {
    font-size: 11px;
  }
  .cost-flow > span b {
    width: 20px;
    height: 20px;
  }
  .review-flow {
    gap: 10px 8px;
    padding: 16px;
  }
  .review-flow > span {
    font-size: 11px;
  }
  .review-flow b {
    width: 22px;
    height: 22px;
  }
  .review-flow > .icon {
    width: 12px;
  }
  .mobile-dock {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fffffff7;
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: 9px 10px max(9px, env(safe-area-inset-bottom));
    z-index: 8;
    justify-content: space-around;
    gap: 4px;
  }
  .mobile-dock .btn {
    background: none;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 7px 10px;
    min-width: 65px;
    font-size: 10.5px;
    font-weight: 400;
  }
  .mobile-dock .btn .icon {
    width: 21px;
    height: 21px;
  }
  .mobile-dock .dock-primary {
    background: var(--green);
    color: white;
    border-radius: 9px;
  }
  .side.open {
    z-index: 10;
  }
  .side {
    padding-bottom: 100px;
  }
  .capture-options > button {
    padding: 15px;
    gap: 12px;
  }
  .capture-options strong {
    font-size: 12px;
  }
  .capture-options small {
    font-size: 11px;
    line-height: 1.6;
  }
  .capture-options .quick-icon {
    width: 35px;
    height: 35px;
  }
  .capture-intro {
    font-size: 13px;
  }
  .resume-card {
    align-items: start;
    flex-direction: column;
    font-size: 11px;
    gap: 10px;
  }
  .form-stepper {
    gap: 6px;
    margin-bottom: 24px;
  }
  .form-stepper li {
    font-size: 10.5px;
    gap: 6px;
    align-items: start;
    flex-direction: column;
  }
  .form-stepper b {
    width: 25px;
    height: 25px;
  }
  .form-stepper span {
    max-width: 100px;
    line-height: 1.5;
  }
  .step-title {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 22px;
  }
  .formgroup label {
    font-size: 12px;
  }
  .formgrid {
    gap: 0;
  }
  .upload-zone {
    padding: 17px;
  }
  .upload-zone label {
    font-size: 12px;
  }
  .wizard-actions {
    bottom: -20px;
    align-items: stretch;
    flex-direction: column;
    padding: 16px 0;
    gap: 10px;
  }
  .wizard-actions > .btn {
    align-self: flex-start;
  }
  .wizard-actions > .actions {
    display: flex;
    flex-wrap: nowrap;
  }
  .wizard-actions > .actions > .btn {
    flex: 1;
    font-size: 11px;
    padding: 10px 8px;
  }
  .review-summary {
    padding: 18px;
  }
  .review-summary h2 {
    font-size: 20px;
  }
  .review-summary dl {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .review-summary dd {
    margin-bottom: 9px;
  }
  .save-explainer {
    font-size: 11px;
  }
  .save-explainer p {
    font-size: 11px;
  }
  .guide-title {
    font-size: 23px;
  }
  .guide-description {
    font-size: 13px;
  }
  .drawer-foot {
    flex-wrap: wrap;
    padding: 16px 20px 26px !important;
  }
  .drawer-foot > .btn {
    font-size: 11px;
    min-height: 40px;
  }
  .guide-visual {
    height: 115px;
  }
  .quote-option .row {
    align-items: start;
    flex-direction: column;
    gap: 7px;
  }
  .quote-option .row > strong {
    font-size: 17px;
  }
  .quote-option p {
    font-size: 12px;
  }
  .review-responses {
    padding: 13px;
    font-size: 11px;
  }
  .banner {
    line-height: 1.8;
  }
  .error {
    font-size: 12px;
    line-height: 1.8;
  }
  .formgroup > input,
  .formgroup > select,
  .formgroup > textarea {
    font-size: 16px;
  }
  .copilot-entry {
    padding: 19px;
  }
  .copilot-entry h2 {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .quick-card:hover,
  .journey-stop:hover {
    transform: none !important;
  }
}
html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html[data-motion="off"] .quick-card:hover,
html[data-motion="off"] .journey-stop:hover {
  transform: none !important;
}

/* The image and pins share one proportional box. No cover crop or independent overlay. */
.visual-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 22px;
}
.visual-title h1 {
  font-size: 38px;
  letter-spacing: -1.5px;
  margin: 8px 0 12px;
}
.visual-title p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.visual-version {
  font: 9px var(--mono);
  padding: 8px 10px;
  border: 1px solid #d5dec9;
  border-radius: 6px;
  white-space: nowrap;
  color: var(--muted);
  margin-top: 8px;
}
.scene-selector {
  display: flex;
  gap: 9px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding: 2px 1px 7px;
  scrollbar-width: thin;
}
.scene-selector > button {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 136px;
  padding: 7px 12px 7px 7px;
  border: 1px solid #dbe1d2;
  background: white;
  border-radius: 9px;
  text-align: left;
  font-size: 11px;
  color: var(--green);
  cursor: pointer;
  transition:
    background 0.18s,
    border-color 0.18s;
}
.scene-selector img {
  width: 33px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}
.scene-selector > button[aria-pressed="true"] {
  border-color: var(--green);
  background: #eaf0df;
  box-shadow: 0 0 0 1px var(--green);
}
.visual-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(290px, 340px);
  gap: 18px;
  align-items: start;
}
.visual-canvas-area {
  border: 1px solid #d8dece;
  border-radius: 13px;
  background: white;
  overflow: hidden;
}
.scene-toolbar {
  padding: 17px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.scene-toolbar strong {
  display: block;
  font-size: 14px;
}
.scene-toolbar small {
  display: block;
  font-size: 10.5px;
  margin-top: 5px;
  color: var(--muted);
}
.visual-layer {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 6px;
  background: #f0f3eb;
  flex-shrink: 0;
}
.visual-layer .btn {
  border: 0;
  background: none;
  font-size: 11px;
  padding: 6px 9px;
  min-height: 32px;
}
.visual-layer .btn.active {
  background: white;
  box-shadow: 0 1px 3px #333f2e20;
}
.scene-backdrop {
  display: flex;
  justify-content: center;
  background: #22291f;
  overflow: hidden;
}
.scene-image {
  position: relative;
  aspect-ratio: var(--image-ratio);
  width: min(100%, var(--image-width));
  flex-shrink: 0;
  line-height: 0;
}
.project-render {
  display: block;
  width: 100%;
  height: auto;
}
.project-visual[data-scene-motion="yes"] .project-render {
  animation: scene-reveal 0.35s ease-out;
}
.project-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 50%;
  z-index: 2;
  color: var(--green);
  -webkit-tap-highlight-color: transparent;
}
.project-pin > span:first-child {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #fffefa;
  border: 2px solid #fff;
  font:
    700 12px Arial,
    sans-serif;
  box-shadow:
    0 0 0 5px #fffffe30,
    0 2px 12px #0009;
  transition:
    background 0.18s,
    transform 0.18s,
    color 0.18s;
}
.project-pin:hover > span:first-child {
  transform: scale(1.1);
}
.project-pin.selected {
  z-index: 3;
}
.project-pin.selected > span:first-child {
  background: var(--red);
  color: white;
  box-shadow:
    0 0 0 6px #cd0c3a38,
    0 2px 12px #0009;
  animation: pin-select 0.24s ease-out;
}
.project-pin:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.pin-tooltip {
  pointer-events: none;
  display: none;
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  padding: 9px 11px;
  background: #fff;
  color: var(--green);
  white-space: nowrap;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.4;
  box-shadow: 0 3px 15px #0003;
}
.project-pin:hover .pin-tooltip,
.project-pin:focus-visible .pin-tooltip {
  display: block;
}
.visual-items {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 16px 16px 5px;
}
.visual-items button {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 9px;
  background: white;
  color: var(--green);
  cursor: pointer;
  min-height: 38px;
}
.visual-items b {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #eff2e8;
  font: 10px var(--mono);
}
.visual-items button[aria-pressed="true"] {
  border-color: var(--red);
  background: #fff3f5;
}
.visual-items button[aria-pressed="true"] b {
  background: var(--red);
  color: white;
}
.image-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 17px 16px;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--muted);
}
.image-caption a {
  color: var(--green);
  text-decoration: underline;
  white-space: nowrap;
}
.visual-inspector {
  border: 1px solid #d8dece;
  border-radius: 13px;
  background: white;
  overflow: hidden;
  scroll-margin-top: 18px;
  position: sticky;
  top: 18px;
  min-width: 0;
}
.inspect-empty {
  padding: 30px 24px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.inspect-empty > span {
  display: grid;
  place-items: center;
  width: 53px;
  height: 53px;
  font-size: 29px;
  background: #edf2e5;
  border-radius: 12px;
  margin-bottom: 22px;
}
.inspect-empty h2 {
  font-size: 25px;
  letter-spacing: -0.6px;
  margin-bottom: 15px;
}
.inspect-empty p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}
.visual-how {
  font-size: 11px;
  line-height: 2.8;
  color: var(--muted);
  margin-top: 21px;
}
.visual-how b {
  font: 10px var(--mono);
  border-radius: 50%;
  background: #edf2e5;
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  margin-right: 5px;
  color: var(--green);
}
.inspect-head {
  padding: 23px 23px 16px;
}
.inspect-head h2 {
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  margin: 9px 0;
}
.inspect-head h2:focus {
  outline: none;
}
.inspect-head > p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.inspect-status {
  display: block;
  font-size: 10.5px;
  color: #8e642f;
  margin-top: 13px;
  line-height: 1.8;
}
.inspect-tabs {
  display: flex;
  padding: 0 21px;
  border-bottom: 1px solid var(--line);
  gap: 19px;
}
.inspect-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 12px 0;
  font-size: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  min-height: 42px;
}
.inspect-tabs button[aria-pressed="true"] {
  color: var(--green);
  font-weight: bold;
  border-bottom-color: var(--green);
}
.inspect-content {
  padding: 21px 23px;
}
.visual-price > span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.visual-price > strong {
  display: block;
  font-size: 31px;
  letter-spacing: -1px;
  margin: 11px 0 8px;
  line-height: 1.1;
}
.visual-price > small {
  font-size: 10.5px;
  line-height: 1.6;
  display: block;
  color: var(--muted);
}
.visual-values {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 10px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 19px;
  font-size: 11px;
  align-items: center;
}
.visual-values dt {
  color: var(--muted);
  line-height: 1.6;
}
.visual-values dd {
  margin: 0;
  text-align: right;
  font-size: 11px;
  font-weight: 600;
}
.visual-next {
  margin: 22px 0 17px;
  padding: 15px;
  background: #f0f4e8;
  border-radius: 7px;
}
.visual-next small {
  font-size: 10px;
  letter-spacing: 1px;
  color: #6c7d56;
}
.visual-next p {
  font-size: 12px;
  line-height: 1.8;
  margin-top: 8px;
}
.visual-actions {
  display: grid;
  gap: 9px;
}
.visual-actions .btn {
  justify-content: center;
  font-size: 11px;
  min-height: 41px;
}
.scope-warning {
  font-size: 11px;
  line-height: 1.8;
  color: #8a6339;
  background: #fff6ed;
  border-radius: 6px;
  padding: 12px;
  margin-top: 20px;
}
.visual-source {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 15px;
}
.visual-source summary {
  cursor: pointer;
  padding: 7px 0;
  text-decoration: underline;
}
.visual-source p {
  overflow-wrap: anywhere;
  margin-top: 8px;
}
.inspect-footer {
  padding: 17px 23px;
  background: #f7f8f2;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.inspect-footer .btn {
  justify-content: center;
  min-height: 43px;
  font-size: 11px;
}
.inspect-hint {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 17px;
}
.visual-task {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px;
  margin: 12px 0;
}
.visual-task small {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
}
.visual-task strong {
  display: block;
  font-size: 12px;
  margin-top: 8px;
  line-height: 1.6;
}
.visual-task p {
  font-size: 11px;
  line-height: 1.8;
  margin: 7px 0 10px;
}
.visual-task .btn {
  font-size: 11px;
}
.inspect-content .record {
  padding: 13px;
  font-size: 11px;
}
.inspect-content .record h3 {
  font-size: 13px;
}
.inspect-content .record .row {
  flex-wrap: wrap;
  gap: 8px;
}
.inspect-content .record .actions {
  flex-wrap: wrap;
}
.inspect-content .empty {
  padding: 15px;
  font-size: 11px;
  line-height: 1.8;
  min-height: 110px;
}
.unlocated {
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-top: 18px;
  background: white;
  padding: 16px 20px;
}
.unlocated summary {
  font-size: 12px;
  cursor: pointer;
  line-height: 1.8;
}
.unlocated p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin: 13px 0;
}
.unlocated .actions {
  gap: 8px;
}
.unlocated .btn {
  font-size: 11px;
}
.visual-bottom {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.visual-bottom p {
  flex: 1;
  min-width: 210px;
  font-size: 10.5px;
  line-height: 1.9;
  color: var(--muted);
}
.visual-bottom .btn {
  font-size: 11px;
}
.visual-back {
  display: none;
}
.project-visual button:focus-visible {
  outline: 3px solid #b1c58e;
  outline-offset: 3px;
}
.project-visual .project-pin:focus-visible {
  outline-color: #fff;
}
.project-visual .help-button {
  vertical-align: middle;
}
.project-visual .visual-source summary::marker,
.project-visual .unlocated summary::marker {
  color: var(--green);
}
@keyframes scene-reveal {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}
@keyframes pin-select {
  from {
    transform: scale(0.85);
  }
  to {
    transform: scale(1);
  }
}
@media (min-width: 1450px) {
  .visual-layout {
    grid-template-columns: minmax(400px, 1fr) 365px;
  }
  .inspect-head,
  .inspect-content {
    padding-left: 27px;
    padding-right: 27px;
  }
}
@media (max-width: 1100px) {
  .visual-layout {
    grid-template-columns: minmax(250px, 1fr) 290px;
    gap: 12px;
  }
  .inspect-head,
  .inspect-content {
    padding: 18px;
  }
  .inspect-head h2 {
    font-size: 22px;
  }
  .visual-price > strong {
    font-size: 27px;
  }
  .inspect-tabs {
    padding: 0 18px;
  }
  .scene-selector > button {
    min-width: 134px;
  }
  .scene-toolbar {
    flex-wrap: wrap;
    padding: 13px;
  }
  .inspect-footer {
    padding: 15px 18px;
  }
}
@media (max-width: 850px) {
  .visual-layout {
    grid-template-columns: 1fr;
  }
  .visual-inspector {
    position: static;
  }
  .visual-back {
    display: inline-flex !important;
    min-height: 38px;
    font-size: 11px;
    margin-top: 13px;
  }
  .inspect-empty {
    min-height: 0;
    padding: 23px;
    display: block;
  }
  .inspect-empty > span {
    display: none;
  }
  .inspect-empty h2 {
    font-size: 20px;
  }
  .inspect-empty .visual-how {
    display: none;
  }
  .inspect-head {
    padding: 22px;
  }
  .inspect-content {
    padding: 22px;
  }
  .visual-values {
    font-size: 12px;
  }
  .visual-values dd {
    font-size: 12px;
  }
  .visual-price > strong {
    font-size: 34px;
  }
  .inspect-status {
    font-size: 11px;
  }
  .scope-warning {
    font-size: 11px;
  }
  .inspect-tabs {
    padding: 0 22px;
  }
  .inspect-footer {
    padding: 18px 22px;
  }
  .inspect-footer .btn {
    font-size: 12px;
  }
  .visual-task strong {
    font-size: 14px;
  }
  .visual-task small {
    font-size: 11px;
  }
  .visual-task .btn {
    min-height: 42px;
  }
  .inspect-content .record .row {
    align-items: start;
  }
  .visual-next p {
    font-size: 13px;
  }
}
@media (max-width: 720px) {
  .visual-title h1 {
    font-size: 31px;
  }
  .visual-title p {
    font-size: 12px;
  }
  .visual-version {
    font-size: 9px;
    max-width: 83px;
    white-space: normal;
    line-height: 1.7;
  }
  .visual-title {
    margin-bottom: 16px;
  }
  .scene-selector {
    margin: 0 -16px 13px;
    padding: 3px 17px 9px;
  }
  .scene-selector > button {
    flex: 0 0 145px;
    min-height: 58px;
    font-size: 11px;
  }
  .scene-toolbar {
    padding: 13px 14px;
  }
  .scene-toolbar strong {
    font-size: 13px;
  }
  .scene-toolbar small {
    font-size: 10px;
  }
  .visual-layer .btn {
    font-size: 10.5px;
  }
  .visual-items {
    padding: 13px 12px 4px;
    gap: 6px;
  }
  .visual-items button {
    font-size: 11px;
    min-height: 40px;
    padding: 7px;
  }
  .image-caption {
    padding: 9px 12px 13px;
    align-items: start;
    font-size: 10px;
  }
  .image-caption a {
    max-width: 70px;
    white-space: normal;
  }
  .visual-bottom {
    gap: 8px;
  }
  .visual-bottom p {
    flex-basis: 100%;
  }
  .unlocated {
    padding: 14px;
  }
  .unlocated summary {
    font-size: 11px;
  }
  .unlocated .btn {
    min-height: 40px;
  }
  .visual-inspector {
    scroll-margin-top: 15px;
  }
  .scene-selector > button:focus-visible {
    outline-offset: -3px;
  }
  .pin-tooltip {
    display: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .project-render,
  .project-pin > span:first-child {
    animation: none !important;
    transition: none !important;
  }
  .project-pin:hover > span:first-child {
    transform: none;
  }
}
html[data-motion="off"] .project-render,
html[data-motion="off"] .project-pin > span:first-child {
  animation: none !important;
  transition: none !important;
}
html[data-motion="off"] .project-pin:hover > span:first-child {
  transform: none;
}

/* v0.6 — visible comparison, progressive detail and a readable dependency map. */
.budget-ribbon {
  background: #fff;
  border: 1px solid #d7ddcd;
  border-radius: 12px;
  overflow: visible;
  margin: 0 0 22px;
  box-shadow: 0 3px 14px #333f2e04;
  min-width: 0;
}
.budget-ribbon header {
  padding: 17px 21px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.budget-ribbon h2 {
  font-size: 20px;
  margin-top: 6px;
  letter-spacing: -0.4px;
}
.ribbon-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 19px 21px;
  gap: 22px;
}
.ribbon-values > div {
  min-width: 0;
  border-right: 1px solid #e2e7db;
  padding-right: 16px;
}
.ribbon-values > div:last-child {
  border: 0;
  padding-right: 0;
}
.ribbon-values span {
  font-size: 12px;
  line-height: 1.6;
  color: #5b6852;
  display: block;
}
.ribbon-values strong {
  font-size: 25px;
  letter-spacing: -0.7px;
  line-height: 1.3;
  display: block;
  margin: 6px 0;
}
.ribbon-values small {
  font-size: 11px;
  color: #64705a;
  line-height: 1.6;
  display: block;
}
.ribbon-gap {
  color: #805124;
}
.ribbon-gap small {
  color: #805124;
}
.ribbon-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: #f3f5ee;
  border-top: 1px solid #e0e5d8;
  padding: 12px 21px;
  font-size: 12px;
  line-height: 1.8;
}
.ribbon-compact header {
  padding-top: 12px;
}
.ribbon-compact h2 {
  display: none;
}
.ribbon-compact .category-label {
  font-size: 11px;
}
.ribbon-compact .ribbon-values {
  padding-top: 10px;
  padding-bottom: 13px;
}
.ribbon-compact .ribbon-values strong {
  font-size: 23px;
  margin: 3px 0;
}
.ribbon-compact header > .btn {
  font-size: 11px;
  min-height: 36px;
}
.target-card {
  border-radius: 10px;
  background: #333f2e;
  color: white;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 25px;
  margin-bottom: 16px;
}
.target-card h2 {
  font-size: 24px;
  margin: 10px 0;
}
.target-card .category-label {
  color: #d4ddc6;
}
.target-card p {
  font-size: 13px;
  line-height: 1.8;
  color: #e2e7d9;
  max-width: 730px;
}
.target-actions {
  display: grid;
  gap: 10px;
  align-content: center;
}
.target-actions .btn {
  background: #fff;
  color: #333f2e;
  font-size: 12px;
}
.target-actions .btn.primary {
  background: #e0e9cf;
  color: #28331f;
}
.target-card .help-button {
  background: #fff;
  color: #333f2e;
}
.target-card .help-pop {
  color: #333f2e;
}
.model-reconciliation {
  padding: 18px 21px;
  background: #fff;
  border: 1px solid #d8dfcd;
  border-radius: 10px;
  margin-bottom: 15px;
  font-size: 12px;
  line-height: 1.8;
}
.model-reconciliation summary {
  cursor: pointer;
  min-height: 30px;
  font-weight: 600;
}
.model-reconciliation > p {
  color: #5b6852;
  margin-top: 15px;
}
.model-bridge {
  max-width: 620px;
  margin-top: 15px;
}
.model-bridge p {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 9px 0;
  border-bottom: 1px solid #ecefe6;
}
.model-bridge strong {
  white-space: nowrap;
}
.model-bridge .bridge-result {
  background: #edf2e5;
  padding: 12px;
  border: 0;
  color: #333f2e;
  font-weight: 600;
}
.budget-coverage {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 23px;
}
.budget-coverage > span {
  background: #eaf0e0;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.7;
}
.budget-coverage strong {
  font-size: 13px;
}
.model-comparison {
  padding: 17px;
  background: #f0f4e8;
  border: 1px solid #d8e1ca;
  border-radius: 8px;
  margin-bottom: 19px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 12px;
  min-width: 0;
}
.model-comparison > div {
  min-width: 0;
}
.model-comparison span {
  font-size: 11px;
  color: #58684c;
  line-height: 1.6;
  display: block;
}
.model-comparison strong {
  display: block;
  margin-top: 7px;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.5px;
}
.model-comparison > p,
.model-comparison > details {
  grid-column: 1/-1;
  font-size: 11px;
  line-height: 1.8;
  color: #76562f;
  margin: 0;
}
.model-comparison details {
  color: #4c5c42;
}
.model-comparison summary {
  min-height: 32px;
  cursor: pointer;
}
.model-comparison details p {
  border-top: 1px solid #d7dfcd;
  padding: 10px 0;
}
.model-comparison small {
  display: block;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.model-comparison.compact {
  padding: 12px;
  gap: 9px;
  margin: 15px 0;
}
.model-comparison.compact strong {
  font-size: 19px;
}
.package-card .quote-price > small,
.package-card .quote-price > strong {
  display: none;
}
.package-card .quote-price {
  margin-top: 5px;
}
.visual-values {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}
.schedule-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.schedule-summary > div {
  background: #fff;
  padding: 15px;
  border: 1px solid #d9dfcf;
  border-radius: 8px;
  min-width: 0;
}
.schedule-summary span {
  font-size: 11px;
  color: #627057;
  display: block;
  line-height: 1.7;
}
.schedule-summary strong {
  font-size: 17px;
  margin-top: 7px;
  display: block;
  line-height: 1.5;
}
.schedule-alerts {
  background: #fff5e9;
  border: 1px solid #e7d2b8;
  border-radius: 9px;
  padding: 17px 20px;
  margin-bottom: 18px;
}
.schedule-alerts summary {
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 28px;
  color: #76512d;
}
.schedule-alerts p {
  font-size: 13px;
  line-height: 1.8;
  margin: 9px 0 15px;
  color: #76512d;
}
.dependency-map {
  padding: 23px 23px 12px;
  border: 1px solid #d8dfce;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 16px;
}
.map-heading h2 {
  font-size: 22px;
  margin: 8px 0;
}
.map-heading p {
  font-size: 12px;
  line-height: 1.8;
  color: #5d6b54;
  max-width: 680px;
}
.dependency-canvas {
  position: relative;
  height: 380px;
  margin-top: 15px;
  isolation: isolate;
}
.dependency-canvas svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: visible;
}
.dependency-canvas path {
  fill: none;
  stroke: #bdc8b0;
  stroke-width: 0.4;
}
.dependency-canvas path.impact-edge {
  stroke: #a27a3e;
  stroke-dasharray: 1 1;
}
.dep-node {
  position: absolute;
  left: var(--nx);
  top: var(--ny);
  transform: translate(-50%, -50%);
  width: 20%;
  padding: 12px 10px;
  border: 1px solid #d7dfca;
  background: #f8faf4;
  color: #333f2e;
  border-radius: 9px;
  display: flex;
  align-items: start;
  gap: 9px;
  text-align: left;
  min-height: 82px;
  cursor: pointer;
  transition:
    background 0.16s,
    border-color 0.16s;
  flex-wrap: wrap;
}
.dep-node > b {
  background: #e3ead7;
  border-radius: 50%;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  font-size: 11px;
  flex-shrink: 0;
}
.dep-node > span {
  flex: 1;
  min-width: 65px;
}
.dep-node strong {
  font-size: 12px;
  line-height: 1.5;
  display: block;
}
.dep-node small {
  font-size: 11px;
  color: #5d6d52;
  line-height: 1.5;
  display: block;
  margin-top: 6px;
}
.dep-node em {
  font-size: 10.5px;
  font-style: normal;
  margin-left: 32px;
  color: #805124;
}
.dep-node.selected {
  background: #333f2e;
  border-color: #333f2e;
  color: #fff;
  box-shadow: 0 3px 15px #333f2e25;
}
.dep-node.selected small {
  color: #d9e2cc;
}
.dep-node.selected > b {
  background: #fff;
  color: #333f2e;
}
.dep-node.impacted {
  background: #fff7ed;
  border-color: #dbc39e;
}
.map-legend {
  font-size: 11px;
  color: #66735c;
  line-height: 1.9;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.map-legend i {
  width: 10px;
  height: 10px;
  background: #333f2e;
  display: inline-block;
  border-radius: 3px;
}
.map-legend i.legend-impact {
  background: #e8cc9e;
}
.journey-compact {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  margin-bottom: 10px;
  scrollbar-width: thin;
}
.journey-compact .journey-stop {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 9px 13px;
  font-size: 11px;
  min-width: 0;
  white-space: nowrap;
}
.impact-list {
  display: grid;
  gap: 6px;
  margin: 15px 0;
}
.impact-list .btn {
  justify-content: start;
  font-size: 12px;
  white-space: normal;
  text-align: left;
}
.journey-detail .helper-text {
  font-size: 12px;
  line-height: 1.8;
}
.timeline-card > p {
  font-size: 12px;
  line-height: 1.8;
  color: #627057;
}
.week-scroll {
  overflow: auto;
  border: 1px solid #dce2d3;
  border-radius: 8px;
  margin: 17px 0;
}
.week-grid {
  display: grid;
  grid-template-columns: 260px minmax(430px, 1fr);
  min-width: 700px;
}
.week-head,
.week-axis {
  background: #edf1e5;
  padding: 13px;
  font-size: 11px;
  font-weight: 600;
}
.week-axis {
  display: flex;
  justify-content: space-between;
}
.week-label {
  padding: 12px;
  border-bottom: 1px solid #e1e6d9;
  font-size: 12px;
}
.week-label .btn {
  padding: 0;
  background: none;
  border: 0;
  min-height: 34px;
  font-size: 12px;
  text-align: left;
  white-space: normal;
  justify-content: start;
}
.week-label small {
  display: block;
  font-size: 11px;
  color: #637359;
  line-height: 1.6;
}
.week-track {
  position: relative;
  border-bottom: 1px solid #e1e6d9;
  background: repeating-linear-gradient(
    to right,
    #ffffff 0,
    #ffffff calc(14.28% - 1px),
    #e5e9dc calc(14.28% - 1px),
    #e5e9dc 14.28%
  );
}
.week-bar {
  position: absolute;
  top: 25px;
  min-width: 5px;
  min-height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333f2e;
  color: white;
  border-radius: 4px;
  overflow: hidden;
}
.week-bar.reported {
  background: #72865d;
}
.week-bar span {
  font-size: 11px;
  padding: 3px;
  white-space: nowrap;
}
.timeline-card .helper-text {
  margin-bottom: 0;
}
/* Reading density: body text stays usable; diagrams collapse to ordered buttons on mobile. */
.visual-inspector .inspect-status,
.visual-inspector .scope-warning,
.visual-inspector .visual-source {
  font-size: 11px;
}
.inspect-head > p {
  font-size: 12px;
}
.image-caption {
  font-size: 11px;
}
.inspect-tabs button {
  min-height: 44px;
}
.visual-items button {
  font-size: 12px;
  min-height: 44px;
}
.scene-selector > button {
  min-height: 58px;
  font-size: 12px;
}
.scene-toolbar small {
  font-size: 11px;
}
.visual-how {
  font-size: 12px;
}
.visual-values dt,
.visual-values dd {
  font-size: 12px;
}
.inspect-footer .btn {
  font-size: 12px;
  min-height: 44px;
}
.visual-inspector .model-comparison {
  grid-template-columns: 1fr;
}
.visual-inspector .model-comparison > p,
.visual-inspector .model-comparison > details {
  grid-column: auto;
}
.visual-inspector .model-comparison strong {
  font-size: 27px;
}
.visual-inspector .model-comparison > div + div {
  padding-top: 12px;
  border-top: 1px solid #d7dfc9;
}
.visual-inspector .model-comparison > div + div strong {
  font-size: 30px;
}
.scene-backdrop {
  background: radial-gradient(ellipse at center, #394331, #1f271b);
}
.dep-node:focus-visible,
.week-scroll:focus-visible {
  outline: 3px solid #839e62;
  outline-offset: 3px;
}
@media (max-width: 1200px) {
  .target-card {
    grid-template-columns: 1fr;
  }
  .target-actions {
    display: flex;
    flex-wrap: wrap;
  }
  .dependency-canvas {
    height: 420px;
  }
  .dep-node {
    min-height: 95px;
    padding: 9px 8px;
  }
  .dep-node > b {
    display: none;
  }
  .dep-node > span {
    min-width: 0;
  }
  .dep-node em {
    margin-left: 0;
  }
  .schedule-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ribbon-values {
    gap: 13px;
  }
  .ribbon-values strong {
    font-size: 22px;
  }
  .ribbon-compact .ribbon-values strong {
    font-size: 21px;
  }
}
@media (max-width: 850px) {
  .dependency-canvas {
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .dependency-canvas svg {
    display: none;
  }
  .dep-node {
    position: static;
    transform: none;
    width: 100%;
    min-height: 112px;
    flex-wrap: nowrap;
    display: block;
  }
  .dep-node > b {
    display: inline-grid;
    margin-bottom: 8px;
  }
  .dep-node em {
    display: block;
    margin-top: 8px;
  }
  .dep-node strong {
    font-size: 13px;
  }
  .dep-node small {
    font-size: 11px;
  }
  .dependency-map {
    padding: 20px;
  }
  .map-legend {
    margin-top: 17px;
  }
  .ribbon-values {
    padding: 15px;
    gap: 13px;
  }
  .ribbon-values strong {
    font-size: 21px;
  }
  .budget-ribbon header {
    padding: 15px 15px 0;
  }
  .model-comparison strong {
    font-size: 20px;
  }
}
@media (max-width: 600px) {
  .ribbon-values {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 5px 15px 13px;
  }
  .ribbon-values > div {
    border-right: 0;
    border-bottom: 1px solid #e4e9dc;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 12px;
    padding: 12px 0;
  }
  .ribbon-values span {
    font-size: 11px;
  }
  .ribbon-values strong,
  .ribbon-compact .ribbon-values strong {
    font-size: 21px;
    grid-row: 1;
    grid-column: 2;
    align-self: center;
    margin: 0;
  }
  .ribbon-values small {
    font-size: 11px;
    grid-column: 1/-1;
  }
  .budget-ribbon header {
    padding: 13px 15px 0;
  }
  .budget-ribbon header .btn {
    font-size: 11px;
    min-height: 40px;
    padding: 6px 8px;
  }
  .budget-ribbon h2 {
    display: none;
  }
  .ribbon-compact .ribbon-values {
    padding-bottom: 8px;
  }
  .ribbon-foot {
    flex-direction: column;
    align-items: stretch;
    font-size: 12px;
    padding: 12px 15px;
  }
  .target-card {
    padding: 20px;
  }
  .target-card h2 {
    font-size: 22px;
  }
  .target-actions {
    display: grid;
  }
  .budget-coverage {
    display: grid;
  }
  .model-reconciliation {
    padding: 17px;
  }
  .model-bridge p {
    font-size: 11px;
    align-items: start;
  }
  .model-bridge strong {
    font-size: 12px;
  }
  .schedule-summary {
    gap: 8px;
  }
  .schedule-summary > div {
    padding: 13px;
  }
  .schedule-summary strong {
    font-size: 15px;
  }
  .schedule-alerts {
    padding: 16px;
  }
  .dependency-map {
    padding: 18px 14px;
  }
  .map-heading h2 {
    font-size: 20px;
    line-height: 1.4;
  }
  .map-heading p {
    font-size: 12px;
  }
  .dependency-canvas {
    grid-template-columns: 1fr;
  }
  .dep-node {
    display: flex;
    align-items: start;
    min-height: 88px;
    padding: 14px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .dep-node > b {
    margin: 0;
    display: inline-grid;
  }
  .dep-node > span {
    flex: 1;
  }
  .dep-node em {
    flex-basis: 100%;
    padding-left: 35px;
    margin: 0;
  }
  .dep-node small {
    line-height: 1.7;
  }
  .map-legend {
    font-size: 11px;
  }
  .image-caption {
    font-size: 11px;
    flex-wrap: wrap;
  }
  .image-caption a {
    max-width: none;
  }
  .model-comparison.compact {
    gap: 10px;
  }
  .model-comparison.compact strong {
    font-size: 18px;
  }
  .visual-title p {
    font-size: 13px;
  }
  .scene-image {
    width: 100%;
  }
  .visual-inspector .model-comparison {
    grid-template-columns: 1fr 1fr;
  }
  .visual-inspector .model-comparison > p,
  .visual-inspector .model-comparison > details {
    grid-column: 1/-1;
  }
  .visual-inspector .model-comparison strong,
  .visual-inspector .model-comparison > div + div strong {
    font-size: 20px;
  }
  .visual-inspector .model-comparison > div + div {
    border: 0;
    padding: 0;
  }
}
.week-axis {
  position: relative;
  display: block;
  min-height: 44px;
  padding: 0;
}
.week-axis span {
  position: absolute;
  top: 15px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
}
.week-axis span.first {
  transform: none;
  padding-left: 4px;
}
.week-axis span.last {
  transform: translateX(-100%);
}
@media (prefers-reduced-motion: reduce) {
  .dep-node {
    transition: none !important;
  }
}
html[data-motion="off"] .dep-node {
  transition: none !important;
}

/* Final usability corrections, scoped to stable components. */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  transform: translateY(-200%);
  background: #fff;
  color: #333f2e;
  z-index: 100;
  padding: 13px 18px;
  border: 2px solid #333f2e;
  border-radius: 6px;
}
.skip-link:focus {
  transform: none;
}
.nav-scrim {
  display: none;
}
.main:focus {
  outline: none;
}
.main {
  min-width: 0;
}
button,
a,
input,
textarea,
select,
summary {
  scroll-margin-top: 30px;
  scroll-margin-bottom: 110px;
}
.help-button {
  width: 26px;
  height: 26px;
  font-size: 12px;
  margin-left: 6px;
}
.help-pop {
  bottom: 96px;
  right: 24px;
  font-size: 13px;
}
.drawer-body {
  padding-bottom: 120px !important;
}
.drawer-foot {
  flex-wrap: wrap;
}
.drawer-head .btn.small {
  min-width: 44px;
  min-height: 44px;
}
.project-visual .visual-title h1 {
  font-size: 34px;
}
.project-visual .scene-backdrop {
  min-height: 240px;
}
.visual-inspector {
  max-height: calc(100dvh - 36px);
  overflow: auto;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}
.inspect-footer {
  position: sticky;
  bottom: 0;
  z-index: 4;
}
.visual-inspector .inspect-empty {
  min-height: 340px;
}
.inspect-content {
  padding-bottom: 23px;
}
.visual-task small {
  font-size: 11px;
}
.visual-task strong {
  font-size: 13px;
}
.visual-task p {
  font-size: 12px;
}
.visual-task .btn {
  min-height: 44px;
  font-size: 12px;
}
.dependency-map {
  scroll-margin-top: 24px;
}
.dependency-map .map-heading h2 {
  font-size: 21px;
}
.journey-compact {
  display: none;
}
.journey-detail .card-head {
  align-items: start;
}
.map-return {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 17px 0 14px;
  padding: 14px 17px;
  background: #edf2e5;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.8;
}
.map-return strong {
  font-size: 14px;
}
.map-return .btn {
  font-size: 11px;
  flex-shrink: 0;
  min-height: 44px;
}
.parallel-gates {
  border-top: 1px solid #dce3d2;
  margin-top: 10px;
  padding: 15px 0 3px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
}
.parallel-gates > span {
  flex-basis: 100%;
  line-height: 1.7;
  color: #5b6951;
}
.parallel-gates .btn {
  font-size: 11px;
  min-height: 40px;
}
.simple-tabs button[aria-pressed="true"] {
  box-shadow: 0 0 0 2px #a8b996;
}
.budget-board .target-card {
  padding: 23px;
}
.budget-ribbon .ribbon-values strong {
  font-variant-numeric: tabular-nums;
}
.review-guard {
  font-size: 12px;
  background: #fff5e9;
  border: 1px solid #e3d0b4;
  padding: 15px;
  border-radius: 8px;
  line-height: 1.8;
  margin: 15px 0;
}
.backup-choice {
  font-size: 12px;
  line-height: 1.8;
}
@media (max-width: 1100px) {
  .visual-inspector {
    max-height: none;
    position: static;
    overflow: visible;
  }
  .inspect-footer {
    position: static;
  }
  .visual-layout {
    grid-template-columns: minmax(240px, 1fr) minmax(275px, 310px);
  }
  .dep-node {
    min-height: 108px;
  }
  .help-pop {
    max-height: 45dvh;
    overflow: auto;
  }
}
@media (max-width: 850px) {
  .visual-layout {
    grid-template-columns: 1fr;
  }
  .visual-inspector .model-comparison {
    grid-template-columns: 1fr 1fr;
  }
  .visual-inspector .model-comparison > p,
  .visual-inspector .model-comparison > details {
    grid-column: 1/-1;
  }
  .visual-inspector .model-comparison > div + div {
    padding: 0;
    border: 0;
  }
  .visual-inspector .model-comparison strong,
  .visual-inspector .model-comparison > div + div strong {
    font-size: 24px;
  }
  .visual-inspector .inspect-empty {
    min-height: 0;
  }
  .map-return {
    align-items: start;
  }
  .parallel-gates > span {
    font-size: 12px;
  }
}
@media (max-width: 720px) {
  .nav-scrim.visible {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9;
    background: #18201688;
    border: 0;
    border-radius: 0;
    padding: 0;
  }
  .side.open {
    z-index: 10;
  }
  .top-user {
    gap: 6px;
  }
  .capture-top {
    padding: 8px 10px;
    min-height: 44px;
  }
  .mobile-dock {
    padding-bottom: max(9px, env(safe-area-inset-bottom));
  }
  .workspace {
    padding-bottom: 110px;
  }
  .help-pop {
    bottom: 95px;
    right: 18px;
    max-height: 48dvh;
  }
  .map-return {
    flex-direction: column;
    gap: 8px;
  }
  .map-return .btn {
    width: 100%;
  }
  .visual-inspector .model-comparison strong,
  .visual-inspector .model-comparison > div + div strong {
    font-size: 21px;
  }
  .scene-image {
    width: 100%;
  }
  .visual-items {
    gap: 7px;
  }
  .visual-title {
    align-items: start;
  }
  .scene-selector > button {
    scroll-margin: 20px;
  }
  .simple-tabs {
    gap: 6px;
  }
  .simple-tabs .btn {
    font-size: 11px;
    padding: 9px 10px;
    flex: 1;
  }
  .image-caption {
    line-height: 1.9;
  }
}
@media (max-width: 380px) {
  .top .trail {
    display: none;
  }
  .top-user .avatar {
    display: none;
  }
  .ribbon-values strong,
  .ribbon-compact .ribbon-values strong {
    font-size: 19px;
  }
  .visual-inspector .model-comparison {
    grid-template-columns: 1fr;
  }
  .visual-inspector .model-comparison > p,
  .visual-inspector .model-comparison > details {
    grid-column: auto;
  }
  .visual-inspector .model-comparison > div + div {
    padding-top: 12px;
    border-top: 1px solid #d7dfc9;
  }
}
@media (prefers-reduced-motion: reduce) {
  .side {
    transition: none !important;
  }
  .skip-link {
    transition: none !important;
  }
}
html[data-motion="off"] .side {
  transition: none !important;
}

/* Ajustes de leitura (v0.8): o "?" fica ao lado do rótulo e a marca não quebra linha. */
.ribbon-values .help-wrap {
  display: inline;
  margin-left: 2px;
}
.brand > div {
  min-width: 0;
}
.brand small {
  display: block;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tour guiado */
.tour-top span {
  font-weight: 600;
}
.tour-box {
  position: fixed;
  z-index: 70;
  right: 24px;
  bottom: 24px;
  width: min(380px, calc(100vw - 32px));
  background: #fff;
  color: var(--ink);
  border: 1px solid #d9ddd2;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(30, 40, 28, 0.25);
  padding: 18px 18px 14px;
}
.tour-box[hidden] {
  display: none;
}
.tour-box small {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.tour-box h2 {
  margin: 6px 0;
  font-size: 19px;
  line-height: 1.25;
}
.tour-box p {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.55;
}
.tour-progress {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}
.tour-progress span {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: #e3e6dd;
}
.tour-progress .done {
  background: #9eaa91;
}
.tour-progress .active {
  background: var(--red);
}
.tour-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.tour-actions > span {
  flex: 1;
}
.tour-target {
  scroll-margin-top: 16px;
  outline: 3px solid var(--red) !important;
  outline-offset: 4px;
  border-radius: 10px;
}
@media (max-width: 760px) {
  .tour-box {
    right: 16px;
    left: 16px;
    width: auto;
    bottom: 84px;
    padding: 14px 14px 12px;
  }
  .tour-box p {
    font-size: 13px;
  }
  .tour-top span {
    display: none;
  }
}
