@font-face {
  font-family: "DM Sans";
  src: url("./assets/dm-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("./assets/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
:root {
  --base: #0d0d0d;
  --card: #1c1c1e;
  --elevated: #2c2c2e;
  --border: #333336;
  --text: #fff;
  --muted: #a1a1a6;
  --accent: #db8e4a;
  --blue: #5cb8e6;
  --green: #34c759;
  font-family:
    "DM Sans",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--text);
  background: var(--base);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
}
button {
  cursor: pointer;
  border: 1px solid #77777c;
  background: var(--elevated);
  color: #fff;
  border-radius: 9px;
  padding: 11px 15px;
  min-height: 44px;
}
button:hover {
  background: #3a3a3c;
}
.primary {
  background: var(--accent);
  color: #0d0d0d;
  border-color: var(--accent);
  font-weight: 650;
}
.primary:hover {
  background: #edaa6e;
}
.text-button {
  background: transparent;
  border: 0;
  padding-left: 0;
  color: var(--accent);
}
.shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  border-right: 1px solid var(--border);
  padding: 35px 22px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.logo {
  font-size: 27px;
  font-weight: 760;
  letter-spacing: -1.5px;
  margin-bottom: 5px;
}
.logo span {
  color: var(--accent);
}
.brand-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 45px;
}
nav {
  display: grid;
  gap: 8px;
}
nav button {
  text-align: left;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  font-size: 14px;
}
nav button[aria-current="page"] {
  background: #33271f;
  color: #efb482;
  border-left: 3px solid var(--accent);
}
.nav-icon {
  display: inline-block;
  width: 25px;
}
.aside-bottom {
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.demo-dot {
  color: var(--accent);
}
main {
  max-width: 1370px;
  width: 100%;
  padding: 30px 42px 55px;
  margin: auto;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 22px;
  margin-bottom: 28px;
  gap: 16px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}
.demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #e7b88e;
  background: #2b231c;
  border: 1px solid #62482e;
  border-radius: 30px;
  padding: 7px 10px;
}
.scenario-label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
select,
input,
textarea {
  background: #242426;
  border: 1px solid #77777c;
  color: #fff;
  border-radius: 7px;
  padding: 10px;
  max-width: 100%;
  min-height: 44px;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.2px;
  line-height: 1.18;
  margin: 9px 0 10px;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.2px;
  margin: 0 0 15px;
}
h3 {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 8px;
}
p {
  line-height: 1.6;
  margin: 8px 0;
}
.muted,
small {
  color: var(--muted);
}
small {
  font-size: 12px;
  line-height: 1.6;
}
.heading-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}
.hero {
  padding: 25px 28px;
  border: 1px solid #65442a;
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: linear-gradient(115deg, #29221c, #1c1c1e 65%);
  margin-bottom: 20px;
}
.hero h2 {
  font-size: 23px;
  line-height: 1.3;
  max-width: 800px;
  margin: 12px 0;
}
.hero p {
  color: #c0c0c4;
  font-size: 14px;
  max-width: 830px;
}
.tag {
  font-size: 11px;
  display: inline-block;
  border-radius: 5px;
  background: #302d28;
  color: #efb482;
  padding: 5px 8px;
  margin: 0 7px 5px 0;
}
.tag.blue {
  background: #1d2b33;
  color: #89ccea;
}
.grid {
  display: grid;
  gap: 18px;
}
.outcomes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 23px;
  min-width: 0;
}
.metric {
  font-size: 31px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 12px 0 7px;
}
.metric span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}
.status {
  font-size: 12px;
  color: #efb482;
}
.status.good {
  color: #81d797;
}
.two-col {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  margin-bottom: 20px;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 15px;
}
.chart {
  width: 100%;
  height: 170px;
  display: block;
  margin-top: 15px;
}
.chart path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
}
.chart line {
  stroke: var(--border);
}
.chart text {
  fill: #a1a1a6;
  font-size: 10px;
}
.legend {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0;
}
.execution-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid #333336;
  font-size: 13px;
}
.execution-row:last-child {
  border-bottom: 0;
}
.execution-row small {
  grid-column: 1/-1;
}
.bar {
  height: 4px;
  background: #353538;
  border-radius: 4px;
  margin-top: 6px;
  grid-column: 1/-1;
  overflow: hidden;
}
.bar i {
  height: 100%;
  display: block;
  background: var(--accent);
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 20px 0 5px;
}
.footer {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 22px;
  margin-top: 28px;
}
.evidence {
  display: grid;
  gap: 14px;
}
.evidence article {
  border-left: 2px solid #5a5a60;
  padding-left: 16px;
}
.evidence p {
  font-size: 14px;
  color: #bcbcc1;
}
.evidence details {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0;
}
.evidence summary {
  cursor: pointer;
  min-height: 30px;
}
.records {
  overflow: auto;
  font-size: 12px;
  max-height: 360px;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid #39393c;
  white-space: nowrap;
}
th {
  color: var(--muted);
  font-weight: 500;
}
.form {
  display: grid;
  gap: 16px;
  margin: 18px 0;
}
.form label {
  display: grid;
  gap: 7px;
  color: #c6c6cb;
  font-size: 13px;
}
.form textarea {
  min-height: 90px;
  resize: vertical;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.notice {
  padding: 15px;
  background: #27231e;
  border-radius: 8px;
  font-size: 13px;
  color: #e3bc99;
}
.empty {
  padding: 30px;
  text-align: center;
  color: var(--muted);
}
.skip {
  position: absolute;
  top: -100px;
  background: #fff;
  color: #000;
  padding: 15px;
  z-index: 9;
}
.skip:focus {
  top: 0;
}
.source-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.source {
  font-size: 12px;
  line-height: 1.8;
  background: #171719;
  padding: 13px;
  border-radius: 8px;
}
.progress {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #bbb;
  font-size: 11px;
  margin: 15px 0;
}
.progress span {
  padding: 5px 8px;
  border: 1px solid #555;
  border-radius: 4px;
}
.progress .active {
  border-color: var(--accent);
  color: #efb482;
}
#message {
  color: #efb482;
  font-size: 13px;
  min-height: 20px;
}
.boundary {
  border-left: 3px solid var(--blue);
  padding-left: 14px;
}
.divider {
  height: 1px;
  background: var(--border);
  margin: 22px 0;
}
@media (min-width: 1500px) {
  main {
    padding-top: 40px;
  }
}
@media (max-width: 1050px) {
  .shell {
    grid-template-columns: 180px 1fr;
  }
  aside {
    padding: 25px 13px;
  }
  main {
    padding: 25px;
  }
  .outcomes {
    gap: 12px;
  }
  .card {
    padding: 18px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .source-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  aside {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 17px 18px;
  }
  .logo {
    font-size: 23px;
  }
  .brand-sub,
  .aside-bottom {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 15px;
    gap: 5px;
  }
  nav button {
    white-space: nowrap;
    font-size: 12px;
    padding: 9px;
    min-height: 44px;
  }
  .nav-icon {
    display: none;
  }
  main {
    padding: 20px 16px;
  }
  .topbar {
    display: block;
    margin-bottom: 21px;
  }
  .scenario-label {
    margin-top: 16px;
    align-items: start;
    flex-direction: column;
  }
  .scenario-label select {
    width: 100%;
  }
  h1 {
    font-size: 28px;
  }
  .heading-row {
    align-items: start;
  }
  .heading-row button {
    font-size: 12px;
  }
  .hero {
    padding: 20px;
  }
  .hero h2 {
    font-size: 21px;
  }
  .outcomes {
    grid-template-columns: 1fr;
  }
  .metric {
    font-size: 29px;
  }
  .card {
    padding: 20px;
  }
  .two-col {
    gap: 14px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .demo {
    font-size: 11px;
  }
  .source-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 40px;
}
.brand-mark {
  width: 43px;
  height: 43px;
  flex-shrink: 0;
}
.brand .brand-sub {
  margin: 0;
  font-size: 9px;
  letter-spacing: 2px;
}
.brand .logo {
  margin: 0;
  font-size: 27px;
  letter-spacing: -1px;
}
.metric {
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  font-size: 29px;
  letter-spacing: -1.3px;
  font-variant-numeric: tabular-nums;
}
.metric span {
  font-family: "DM Sans", sans-serif;
  letter-spacing: 0;
}
td {
  font-variant-numeric: tabular-nums;
}
.heading-row > button {
  flex-shrink: 0;
  white-space: nowrap;
}
.progress > [aria-hidden] {
  border: 0;
  padding: 5px 0;
}
.brand + nav {
  margin-top: 0;
}
@media (max-width: 700px) {
  .brand {
    margin-bottom: 15px;
  }
  .brand .brand-sub {
    display: block;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
  }
  .brand .logo {
    font-size: 25px;
  }
}

@media (max-width: 700px) {
  .chart text {
    font-size: 18px;
  }
}

/* Dashboard: answers stay visible; detail views provide optional depth. */
main {
  max-width: 1600px;
  padding: 24px 28px 40px;
  margin: 0 auto;
}
.topbar {
  padding-bottom: 14px;
  margin-bottom: 18px;
}
h1 {
  font-size: 30px;
}
.heading-row {
  margin-bottom: 16px;
}
.header-controls {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-shrink: 0;
}
.header-controls label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}
.progress {
  display: none;
}
.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(230px, 1fr);
  gap: 24px;
  padding: 22px;
}
.dashboard-hero h2 {
  font-size: 22px;
  margin: 8px 0;
}
.dashboard-hero p {
  font-size: 13px;
  line-height: 1.5;
}
.next-action {
  border-left: 1px solid #65442a;
  padding-left: 22px;
}
.next-action .primary {
  font-size: 12px;
  margin-top: 8px;
}
.dashboard-outcomes {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.outcome {
  padding: 18px;
}
.outcome h2 {
  font-size: 15px;
}
.outcome .metric {
  font-size: 27px;
  margin: 10px 0;
}
.outcome .metric span {
  font-size: 11px;
}
.outcome .chart {
  height: 125px;
  margin-top: 12px;
}
.outcome .chart text {
  font-size: 17px;
}
.outcome .legend {
  flex-wrap: wrap;
  gap: 3px;
  font-size: 9px;
}
.outcome .legend span:nth-child(2) {
  display: none;
}
.outcome .status {
  min-height: 18px;
  font-size: 12px;
}
.mini-icon {
  color: var(--accent);
  font-size: 23px;
  line-height: 1;
}
.metric-list {
  margin: 14px 0;
  font-size: 11px;
}
.metric-list > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.metric-list dt {
  color: var(--muted);
}
.metric-list dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.micro {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
.composition {
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 10px;
}
.composition strong {
  font-size: 12px;
}
.composition small,
.outcome > small {
  font-size: 11px;
}
.anchor-list,
.recovery-list {
  padding: 0;
  margin: 16px 0;
  list-style: none;
}
.anchor-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-block: 1px solid var(--border);
  font-size: 12px;
}
.anchor-list small {
  display: block;
  font-size: 10px;
}
.anchor-list li > div:last-child {
  text-align: right;
}
.anchor-list b {
  color: var(--blue);
}
.recovery-title {
  color: #efb482;
  margin-top: 14px;
}
.recovery-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.recovery-list li > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}
.recovery-list > li > small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
}
.dashboard-lower {
  grid-template-columns: minmax(0, 2.1fr) minmax(255px, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.dashboard-table {
  table-layout: fixed;
  font-size: 12px;
}
.dashboard-table th,
.dashboard-table td {
  white-space: normal;
  padding: 10px 7px;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.dashboard-table small {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  margin-top: 5px;
}
.dashboard-table .coverage-row td {
  padding: 0 7px 12px;
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
}
.dashboard-table tr:not(.coverage-row) > td,
.dashboard-table tr:not(.coverage-row) > th {
  border-bottom: 0;
}
.dashboard-table thead th {
  border-bottom: 1px solid var(--border) !important;
}
.dashboard-lower .evidence p {
  font-size: 12px;
}
.dashboard-lower .evidence h3 {
  margin-top: 6px;
}
.adjustment h2 {
  margin: 8px 0;
}
.decision-summary + .decision-summary {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 14px;
}
.source-grid {
  display: none;
}
@media (max-width: 1250px) {
  .dashboard-outcomes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-lower {
    grid-template-columns: 1fr;
  }
  .header-controls {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (max-width: 700px) {
  main {
    padding: 18px 16px;
  }
  .heading-row {
    display: block;
  }
  .header-controls {
    flex-direction: row;
    align-items: end;
    margin-top: 14px;
  }
  .header-controls label {
    flex: 1;
    min-width: 0;
  }
  .header-controls select {
    width: 100%;
    font-size: 12px;
  }
  .dashboard-hero,
  .dashboard-outcomes,
  .dashboard-lower {
    grid-template-columns: 1fr;
  }
  .dashboard-hero {
    padding: 18px;
    gap: 14px;
  }
  .next-action {
    border-left: 0;
    border-top: 1px solid #65442a;
    padding: 14px 0 0;
  }
  .outcome {
    padding: 20px;
  }
  .outcome .chart {
    height: 150px;
  }
  .dashboard-table,
  .dashboard-table tbody,
  .dashboard-table tr,
  .dashboard-table td,
  .dashboard-table th {
    display: block;
    width: 100%;
  }
  .dashboard-table thead {
    display: none;
  }
  .dashboard-table th[scope="row"] {
    font-size: 15px;
    padding-top: 16px;
  }
  .dashboard-table td[data-label] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .dashboard-table td[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
  }
  .dashboard-table td small {
    grid-column: 2;
  }
  .dashboard-table .coverage-row td {
    margin-top: 8px;
  }
  .adjustment .card-head {
    display: block;
  }
  nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
  }
}

/* Daily-use hierarchy: execution is visible before detailed outcome evidence. */
.quick-execution {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #151516;
  margin: 0 0 18px;
}
.quick-execution > div {
  padding: 15px 18px;
  min-width: 0;
}
.quick-execution > div + div {
  border-left: 1px solid var(--border);
}
.quick-execution h3 {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 8px;
}
.quick-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 21px;
  letter-spacing: -0.7px;
  font-variant-numeric: tabular-nums;
}
.quick-value span {
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  letter-spacing: 0;
  color: var(--muted);
}
.quick-execution p {
  font-size: 12px;
  line-height: 1.4;
  margin: 7px 0 4px;
}
.quick-execution small {
  display: block;
  font-size: 11px;
}
.global-status {
  background: #1d2b33;
  border-left: 3px solid var(--blue);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}
.outcome .metric-list {
  font-size: 12px;
}
.outcome .micro,
.composition small,
.outcome > small {
  font-size: 12px;
}
.dashboard-outcomes {
  align-items: start;
}
.dashboard-hero h2 {
  font-size: 24px;
}
.heading-row {
  margin-bottom: 16px;
}
.topbar {
  margin-bottom: 12px;
  padding-bottom: 12px;
}
.dashboard-hero {
  margin-bottom: 14px;
  padding: 18px 22px;
}
.anchor-list strong {
  text-transform: capitalize;
}
#review-form {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
#review-message,
#plan-message {
  color: #efb482;
}
@media (max-width: 1250px) {
  .quick-execution {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quick-execution > div:nth-child(3) {
    border-left: 0;
  }
  .quick-execution > div:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }
}
@media (max-width: 700px) {
  .dashboard-hero h2 {
    font-size: 21px;
  }
  .quick-execution > div {
    padding: 14px 12px;
  }
  .quick-value {
    font-size: 19px;
  }
  .quick-value span {
    display: block;
    line-height: 1.5;
  }
  .quick-execution p {
    font-size: 11px;
  }
  .quick-execution small {
    font-size: 10px;
  }
  .topbar {
    padding-bottom: 10px;
    margin-bottom: 12px;
  }
  .brand {
    margin-bottom: 8px;
  }
  aside {
    padding: 12px 16px;
  }
  nav button {
    min-height: 40px;
    padding: 8px;
  }
  .scenario-label {
    margin-top: 10px;
    gap: 5px;
  }
  h1 {
    font-size: 26px;
  }
  .heading-row small {
    font-size: 11px;
  }
  .header-controls {
    margin-top: 10px;
  }
  .dashboard-hero {
    padding: 16px;
  }
}
.decision-summary > .text-button {
  display: block;
  margin-top: 8px;
}

.auth-shell {
  max-width: 560px;
  margin: 8vh auto;
  padding: 24px;
}
.auth-shell .brand {
  margin-bottom: 24px;
}
.auth-shell code {
  display: block;
  overflow-wrap: anywhere;
  padding: 12px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

/* Compact overview: six aligned trends with a progressively disclosed debrief. */
.progress[hidden],
.source-grid {
  display: none;
}
.overview-brief {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  border: 1px solid #54402c;
  background: linear-gradient(120deg, #292219, #1c1c1e);
  border-radius: 12px;
  padding: 24px;
  margin: 8px 0 14px;
}
.overview-brief h2 {
  font-size: 25px;
  line-height: 1.25;
  margin: 8px 0 12px;
  letter-spacing: -0.5px;
}
.overview-brief p {
  font-size: 13px;
  line-height: 1.6;
  margin: 8px 0;
  color: #d1d1d4;
}
.brief-next {
  border-left: 1px solid #54402c;
  padding-left: 24px;
}
.brief-next button {
  margin-top: 8px;
}
.overview-plan {
  display: flex;
  gap: 10px 22px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  margin: 16px 0 22px;
}
.overview-plan strong {
  color: var(--text);
}
.overview-trends {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.trend-card.card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
}
.trend-card h2 {
  font-size: 16px;
  line-height: 1.4;
  margin: 9px 0 16px;
  min-height: 45px;
}
.trend-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 27px;
  letter-spacing: -1px;
  line-height: 1.4;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 7px;
}
.trend-value span {
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0;
  font-weight: 400;
}
.trend-chart {
  width: 100%;
  height: 125px;
  overflow: visible;
  margin: 10px 0;
}
.trend-chart line {
  stroke: var(--border);
  stroke-width: 1;
}
.trend-chart .trend-stroke {
  stroke-width: 2;
}
.trend-chart text {
  fill: var(--muted);
  font-size: 10px;
  font-family: "DM Sans", sans-serif;
}
.trend-summary {
  font-size: 13px;
  margin: 8px 0;
}
.trend-empty {
  height: 145px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  gap: 8px;
}
.trend-empty span {
  font-size: 11px;
}
.trend-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0;
}
.trend-switch button {
  font-size: 11px;
  padding: 6px 9px;
  min-height: 36px;
  background: transparent;
}
.trend-switch button[aria-pressed="true"] {
  background: #352719;
  border-color: var(--accent);
  color: #f2be90;
}
.trend-picker {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0;
}
.trend-picker select {
  width: 100%;
  max-width: 100%;
  font-size: 12px;
  margin-top: 5px;
  min-height: 36px;
}
.trend-card .micro {
  line-height: 1.6;
  margin: 8px 0 16px;
  font-size: 12px;
}
.trend-card .text-button {
  margin-top: auto;
  align-self: flex-start;
  text-align: left;
  padding-left: 0;
  font-size: 12px;
}
.trend-records {
  font-size: 12px;
  margin-top: auto;
}
.trend-records summary {
  cursor: pointer;
  min-height: 44px;
  padding-top: 10px;
  color: var(--accent);
}
.review-notes {
  margin-bottom: 24px;
}
.review-notes h2 {
  font-size: 18px;
}
.review-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.review-note-grid article {
  border-left: 2px solid #68533e;
  padding: 0 14px;
}
.review-note-grid h3 {
  font-size: 13px;
  margin: 0 0 6px;
}
.review-note-grid p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.full-debrief {
  margin: 24px 0;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.full-debrief > summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
}
.full-debrief > summary span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 12px;
}
@media (min-width: 1450px) {
  .trend-card h2 {
    font-size: 18px;
  }
  .trend-chart {
    height: 155px;
  }
}
@media (max-width: 1050px) {
  .overview-brief {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .brief-next {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid #54402c;
    padding-top: 12px;
  }
  .overview-brief h2 {
    font-size: 22px;
  }
  .trend-card.card {
    padding: 16px;
  }
  .review-note-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 740px) {
  .overview-trends {
    grid-template-columns: 1fr;
  }
  .trend-card h2 {
    min-height: 0;
  }
  .trend-chart {
    height: 155px;
  }
  .overview-brief {
    padding: 20px;
  }
  .full-debrief > summary span {
    display: block;
    margin-left: 0;
  }
}
