:root {
  --bg: #f5f7f8;
  --surface: #fff;
  --ink: #20322d;
  --muted: #707b78;
  --line: #e5eae7;
  --green: #25795a;
  --lime: #d2ed9a;
  --nav: #142720;
  --red: #b34e47;
  --radius: 14px;
  font-family:
    Inter,
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #78b090;
  outline-offset: 3px;
}
button svg,
a svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
svg {
  display: block;
}
p {
  line-height: 1.6;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 2rem;
  letter-spacing: -1.1px;
  font-weight: 620;
  margin-bottom: 8px;
}
h2 {
  font-size: 1.05rem;
  letter-spacing: -0.3px;
  font-weight: 650;
  margin: 0;
}
h3 {
  font-size: 1rem;
  font-weight: 600;
}
small {
  font-size: 0.8rem;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 254px;
  background: var(--nav);
  color: #d8e2dd;
  display: flex;
  flex-direction: column;
  padding: 33px 20px 20px;
  z-index: 10;
  transition: transform .18s ease;
}
.brand {
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 640;
  letter-spacing: -0.8px;
  color: #fff;
  margin-bottom: 44px;
}
.brand-mark {
  background: var(--lime);
  width: 33px;
  height: 35px;
  display: grid;
  place-content: center;
  font-size: 1.8rem;
  color: var(--nav);
  border-radius: 9px;
  line-height: 1;
}
.brand-mark span {
  display: none;
}
.brand-dot {
  color: var(--lime);
  margin-left: -10px;
}
.workspace-label {
  font-size: 0.72rem;
  letter-spacing: 1.7px;
  color: #94a69d;
  margin: 0 12px 15px;
  font-weight: 600;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.sidebar nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #becdc5;
  transition: background 0.15s;
}
.sidebar nav a:hover {
  background: #23392e;
}
.sidebar nav a.active {
  background: var(--lime);
  color: #1b3527;
  font-weight: 620;
}
.sidebar nav a.active::after {
  content: "";
  width: 5px;
  height: 5px;
  background: #244831;
  border-radius: 50%;
  margin-left: auto;
}
.sidebar-accounts {
  margin-top: 39px;
  border-top: 1px solid #2a3d32;
  padding-top: 24px;
}
.sidebar-accounts button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: #e1e8e3;
  width: 100%;
  text-align: left;
  padding: 12px 8px;
  font-size: 0.82rem;
}
.sidebar-accounts button:hover {
  background: #23392e;
  border-radius: 8px;
}
.sidebar-accounts small {
  display: block;
  color: #91a298;
  margin-top: 5px;
  font-size: 0.71rem;
}
.account-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fortuneo {
  background: #b9d797;
}
.ibkr {
  background: #81a8ba;
}
.envelope {
  font-size: 0.62rem;
  padding: 3px 5px;
  border: 1px solid #4a6051;
  border-radius: 4px;
  margin-left: auto;
  color: #bacabd;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.demo-card {
  background: #20382c;
  border: 1px solid #344b3b;
  border-radius: 10px;
  padding: 16px 14px;
  font-size: 0.85rem;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: #7dad63;
  margin-right: 7px;
}
.demo-card p {
  font-size: 0.8rem;
  line-height: 1.6;
  color: #afc0b4;
  margin: 10px 0 16px;
}
.demo-card a {
  color: var(--lime);
  font-size: 0.77rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.profile {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 24px 8px 0;
  font-size: 0.86rem;
}
.avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #30483a;
  color: var(--lime);
}
.profile small {
  display: block;
  font-size: 0.7rem;
  color: #9bae9f;
  margin-top: 4px;
}
.app-shell {
  margin-left: 254px;
  transition: margin-left .18s ease;
}
.topbar-start {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.sidebar-reopen {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
}
.sidebar-reopen:hover .brand-mark,
.brand:hover .brand-mark {
  background: #e3f6ba;
}
body.sidebar-collapsed .sidebar-reopen {
  display: flex;
}
@media (min-width: 681px) {
  body.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .18s ease, visibility 0s .18s;
  }
  body.sidebar-collapsed .app-shell {
    margin-left: 0;
  }
  body.sidebar-collapsed .topbar {
    position: sticky;
    top: 0;
    z-index: 9;
  }
}
.topbar {
  height: 77px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.breadcrumb {
  font-size: 0.83rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 15px;
}
.breadcrumb strong {
  color: #354c40;
  font-weight: 500;
}
.breadcrumb span {
  color: #bbc3be;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.demo-badge {
  font-size: 0.73rem;
  padding: 7px 11px;
  border: 1px solid #dbe5d9;
  background: #f8faf5;
  color: #526949;
  border-radius: 30px;
  white-space: nowrap;
}
.currency-label {
  font-size: 0.77rem;
  color: #69756e;
}
.icon-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  font-size: 0.9rem;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  background: var(--lime);
  padding: 14px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
main {
  padding: 37px 39px 24px;
  max-width: 1600px;
  margin: 0 auto;
  min-height: calc(100vh - 135px);
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}
.subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}
.heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.button {
  border: 1px solid #dbe3df;
  background: #fff;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 0.84rem;
  min-height: 40px;
  font-weight: 500;
  white-space: nowrap;
}
.button:hover {
  background: #edf3ef;
}
.button.primary {
  background: var(--nav);
  color: white;
  border-color: var(--nav);
}
.button.primary:hover {
  background: #2d4c3c;
}
.button.quiet {
  background: transparent;
  border-color: transparent;
  color: var(--green);
  padding: 7px 0;
  font-size: 0.8rem;
}
.select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}
.select-wrap svg {
  width: 16px;
  height: 16px;
}
select {
  border: 1px solid #dbe3df;
  background: white;
  border-radius: 7px;
  padding: 10px 30px 10px 12px;
  font-size: 0.84rem;
  max-width: 100%;
  min-height: 40px;
}
.filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 23px;
}
.account-tabs,
.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #ebefed;
  border-radius: 8px;
}
.account-tabs button,
.segmented button {
  background: none;
  border: none;
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: #6f7d75;
  white-space: nowrap;
  min-height: 33px;
}
.account-tabs button.active,
.segmented button.active {
  background: #fff;
  color: #273c2f;
  box-shadow: 0 1px 4px #19301e0d;
  font-weight: 600;
}
.period-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}
.period-controls .date-label {
  color: var(--muted);
  font-size: 0.78rem;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 23px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 21px 21px 19px;
  position: relative;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.stat-label svg {
  width: 16px;
  height: 16px;
  color: #93a299;
}
.stat-value {
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.8px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.stat-note {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.stat.featured {
  background: var(--nav);
  border-color: var(--nav);
  color: white;
}
.stat.featured .stat-label,
.stat.featured .stat-note {
  color: #bfd0c5;
}
.stat.featured .stat-label svg {
  color: var(--lime);
}
.gain {
  color: var(--green);
}
.loss {
  color: var(--red);
}
.stat.featured .gain {
  color: var(--lime);
}
.pill {
  border-radius: 4px;
  padding: 3px 5px;
  background: #edf6ef;
  font-size: 0.7rem;
  white-space: nowrap;
}
.pill.loss {
  background: #fcf0ee;
}
.stat.featured .pill {
  background: #304b32;
  color: var(--lime);
}
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(280px, 1fr);
  gap: 23px;
  margin-bottom: 23px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 19px;
}
.panel-subtitle {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 7px 0 0;
  line-height: 1.5;
}
.panel-head .segmented {
  padding: 3px;
}
.panel-head .segmented button {
  font-size: 0.73rem;
  padding: 5px 9px;
  min-height: 29px;
}
.chart-summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 10px;
}
.chart-summary strong {
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  font-weight: 600;
}
.chart-summary span {
  font-size: 0.76rem;
}
.chart {
  width: 100%;
  position: relative;
  min-width: 0;
}
.chart svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.chart text {
  font-family: inherit;
  font-size: 12px;
  fill: #8a9690;
}
.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--nav);
  color: white;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 0.75rem;
  z-index: 3;
  box-shadow: 0 5px 16px #0002;
  white-space: nowrap;
}
.chart-tooltip strong {
  display: block;
  margin-top: 5px;
}
.chart-legend {
  display: flex;
  gap: 18px;
  font-size: 0.73rem;
  color: var(--muted);
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}
.legend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 6px;
}
.legend-dash {
  display: inline-block;
  width: 18px;
  border-top: 2px dashed #aeb8b0;
  margin-right: 6px;
}
.donut-wrap {
  display: grid;
  place-items: center;
  position: relative;
  margin: 11px 0 23px;
}
.donut {
  width: 178px;
  height: 178px;
  transform: rotate(-90deg);
}
.donut-label {
  position: absolute;
  text-align: center;
}
.donut-label strong {
  font-size: 1.25rem;
  font-weight: 600;
  display: block;
  letter-spacing: -0.5px;
}
.donut-label small {
  font-size: 0.7rem;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.allocation-list {
  display: grid;
  gap: 13px;
}
.allocation-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
}
.allocation-row .legend-dot {
  margin-right: 0;
}
.allocation-row strong {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 500;
}
.allocation-row small {
  width: 45px;
  text-align: right;
  color: var(--muted);
  font-size: 0.73rem;
}
.grid-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 23px;
  margin-bottom: 23px;
}
.mini-account {
  padding: 17px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mini-account + .mini-account {
  border-top: 1px solid var(--line);
}
.broker-logo {
  height: 38px;
  width: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #bd4e4e;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.broker-logo.f {
  color: #426e36;
  background: #f5f9ef;
}
.mini-account-info {
  flex: 1;
}
.mini-account-info strong {
  font-size: 0.84rem;
  font-weight: 550;
}
.mini-account-info small {
  display: block;
  font-size: 0.73rem;
  color: var(--muted);
  margin-top: 5px;
}
.mini-account-value {
  text-align: right;
}
.mini-account-value strong {
  font-size: 0.95rem;
  font-weight: 550;
  display: block;
  font-variant-numeric: tabular-nums;
}
.mini-account-value small {
  font-size: 0.7rem;
  color: var(--muted);
}
.account-bar {
  display: flex;
  height: 7px;
  gap: 3px;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 15px;
}
.insight {
  border: 1px solid #e4eadd;
  border-radius: 9px;
  padding: 16px;
  display: flex;
  gap: 12px;
  background: #f8faf5;
}
.insight svg {
  color: #658343;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.insight h3 {
  font-size: 0.84rem;
  margin: 0 0 7px;
}
.insight p {
  font-size: 0.79rem;
  color: #6b776b;
  margin: 0;
}
.insight + .insight {
  margin-top: 12px;
}
.insight.neutral {
  background: #fafbfc;
  border-color: #e7ecef;
}
.insight.neutral svg {
  color: #7295ab;
}
.insight a {
  display: inline-flex;
  font-size: 0.76rem;
  color: var(--green);
  margin-top: 9px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
th {
  text-align: left;
  color: #7c8880;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  padding: 12px 12px 14px;
}
td {
  padding: 16px 12px;
  border-bottom: 1px solid #eff2f0;
  font-variant-numeric: tabular-nums;
}
th:first-child,
td:first-child {
  padding-left: 0;
}
th:last-child,
td:last-child {
  padding-right: 0;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td.numeric,
th.numeric {
  text-align: right;
  white-space: nowrap;
}
tbody tr:hover {
  background: #fafcfb;
}
.asset-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.asset-symbol {
  height: 34px;
  width: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f1f4f1;
  color: #486555;
  font-size: 0.67rem;
  font-weight: 600;
  flex-shrink: 0;
}
.asset-name {
  font-weight: 550;
  text-align: left;
  border: 0;
  background: none;
  padding: 0;
  font-size: 0.82rem;
}
.asset-name:hover {
  color: var(--green);
  text-decoration: underline;
}
.asset-cell small {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 5px;
}
.account-tag {
  font-size: 0.67rem;
  padding: 4px 7px;
  border-radius: 4px;
  display: inline-block;
  background: #f0f4eb;
  color: #526b3f;
}
.account-tag.cto {
  background: #edf2f6;
  color: #557587;
}
.weight-line {
  display: inline-block;
  width: 45px;
  height: 4px;
  border-radius: 4px;
  background: #eef2ed;
  vertical-align: middle;
  margin-right: 9px;
  overflow: hidden;
}
.weight-line i {
  display: block;
  height: 100%;
  background: #99b9a1;
}
.section-tabs {
  display: flex;
  gap: 27px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 24px;
  overflow-x: auto;
}
.section-tabs a {
  padding: 5px 0 15px;
  font-size: 0.88rem;
  white-space: nowrap;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.section-tabs a.active {
  color: var(--green);
  border-color: var(--green);
  font-weight: 550;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  align-items: center;
}
.search {
  position: relative;
  max-width: 340px;
  flex: 1;
}
.search input {
  width: 100%;
  padding: 10px 12px 10px 37px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 0.83rem;
  background: #fff;
}
.search svg {
  position: absolute;
  width: 16px;
  height: 16px;
  left: 12px;
  top: 12px;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.caption {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 15px 0 0;
}
.link {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.full-panel {
  margin-bottom: 23px;
}
.metric-definition {
  margin: 18px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
}
.metric-definition summary {
  cursor: pointer;
  color: #516d5a;
  font-size: 0.8rem;
}
.metric-definition p {
  margin: 10px 0 0;
}
.reconciliation {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding-top: 15px;
}
.recon-item {
  border-top: 3px solid #dce7dd;
  padding-top: 13px;
}
.recon-item:last-child {
  border-color: var(--green);
}
.recon-item small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  margin-bottom: 10px;
}
.recon-item strong {
  font-size: 1.05rem;
  font-weight: 600;
}
.monthly-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}
.month {
  border-radius: 8px;
  padding: 14px;
  background: #edf5ee;
  text-align: center;
}
.month.loss {
  background: #fcf0ee;
}
.month small {
  display: block;
  font-size: 0.72rem;
  color: #6c7a70;
  margin-bottom: 9px;
}
.month strong {
  font-size: 0.98rem;
  font-weight: 600;
}
.analysis-intro {
  margin-bottom: 25px;
}
.analysis-intro h2 {
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  margin-bottom: 9px;
}
.analysis-intro p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}
.bar-list {
  display: grid;
  gap: 20px;
}
.bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 95px;
  align-items: center;
  gap: 16px;
  font-size: 0.81rem;
}
.bar-row span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-track {
  height: 11px;
  border-radius: 3px;
  background: #f0f4f1;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 3px;
  background: #7fac92;
  min-width: 2px;
}
.bar-fill.negative {
  background: #cc8d84;
}
.bar-row strong {
  text-align: right;
  font-size: 0.82rem;
  font-weight: 550;
}
.stackbar {
  height: 27px;
  display: flex;
  gap: 3px;
  border-radius: 5px;
  overflow: hidden;
  margin: 24px 0;
}
.stats-list {
  display: grid;
  gap: 0;
}
.stats-list div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  gap: 18px;
  font-size: 0.83rem;
}
.stats-list div:last-child {
  border: 0;
}
.stats-list strong {
  font-weight: 550;
  text-align: right;
}
.matrix td,
.matrix th {
  text-align: center;
  padding: 10px;
  font-size: 0.72rem;
}
.matrix td {
  border: 4px solid white;
  border-radius: 7px;
  color: #264a35;
  min-width: 48px;
}
.matrix th {
  border: 0;
}
.scenario-grid {
  display: grid;
  grid-template-columns: minmax(270px, 1fr) minmax(0, 1.4fr);
  gap: 23px;
}
.field {
  margin: 20px 0;
}
.field label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.field input[type="number"],
.field input[type="text"],
textarea {
  width: 100%;
  border: 1px solid #dbe3dd;
  border-radius: 7px;
  padding: 11px 13px;
  background: #fff;
}
.field input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}
.range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.71rem;
  margin-top: 5px;
}
.scenario-result {
  background: #f7faf5;
  border: 1px solid #dce6d7;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
}
.scenario-result small {
  font-size: 0.81rem;
  color: #65765f;
  display: block;
}
.scenario-result strong {
  font-size: 2.15rem;
  letter-spacing: -1px;
  display: block;
  margin: 14px 0;
}
.scenario-result p {
  font-size: 0.85rem;
  margin: 0;
}
.saved-scenarios {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.saved-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 0.8rem;
}
.saved-row button:first-child {
  flex: 1;
  text-align: left;
  background: none;
  border: 0;
  padding: 5px;
}
.system-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px;
  margin-bottom: 23px;
}
.connector-header {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}
.connector-header h2 {
  font-size: 1.05rem;
}
.connector-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.status-label {
  margin-left: auto;
  font-size: 0.7rem;
  border: 1px solid #e6e8db;
  background: #fafaf3;
  color: #818253;
  padding: 5px 8px;
  border-radius: 5px;
}
.connector p {
  font-size: 0.86rem;
  color: var(--muted);
}
.connector .button {
  margin-top: 10px;
}
.roadmap {
  display: grid;
  gap: 17px;
  margin-top: 23px;
}
.roadmap-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.84rem;
}
.step-number {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  font-size: 0.75rem;
  color: #68805e;
}
.roadmap-row small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.6;
}
.empty-state {
  padding: 50px 24px;
  text-align: center;
  color: var(--muted);
}
.empty-state h3 {
  color: var(--ink);
}
.empty-state p {
  font-size: 0.88rem;
  max-width: 540px;
  margin: 10px auto 20px;
}
.empty-state svg {
  margin: 0 auto 20px;
  width: 35px;
  height: 35px;
  color: #739179;
}
.loading-state {
  text-align: center;
  padding: 100px 25px;
  color: var(--muted);
}
footer {
  padding: 18px 39px 24px;
  display: flex;
  justify-content: space-between;
  color: #86928b;
  font-size: 0.7rem;
  gap: 20px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 35px;
  width: min(650px, calc(100% - 32px));
  max-height: 90vh;
  overflow: auto;
  color: var(--ink);
  box-shadow: 0 24px 90px #132b2b30;
}
dialog::backdrop {
  background: #14272080;
  backdrop-filter: blur(3px);
}
.dialog-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.4rem;
}
.dialog-title {
  padding-right: 20px;
  font-size: 1.45rem;
  margin: 15px 0 7px;
}
.dialog-content p {
  font-size: 0.9rem;
}
.dialog-badge {
  display: inline-block;
  margin-top: 8px;
}
textarea {
  min-height: 110px;
  resize: vertical;
  font-size: 0.9rem;
  line-height: 1.6;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 100px);
  transform: translateX(-50%);
  padding: 13px 20px;
  background: var(--nav);
  color: white;
  border-radius: 9px;
  box-shadow: 0 8px 30px #0002;
  font-size: 0.84rem;
  z-index: 50;
  max-width: 90vw;
  display: none;
}
#toast.visible {
  display: block;
}
.form-status {
  font-size: 0.8rem;
  color: var(--green);
  margin-top: 9px;
  min-height: 20px;
}
.comparison-bars {
  display: grid;
  gap: 20px;
  margin: 20px 0;
}
.comparison-bar span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.comparison-bar i {
  display: block;
  height: 27px;
  background: #d0dcd1;
  border-radius: 4px;
}
.comparison-bar:last-child i {
  background: #78a38a;
}
.mobile-title {
  display: none;
}
@media (min-width: 1600px) {
  .stat-value {
    font-size: 1.95rem;
  }
  .chart svg {
    max-height: 325px;
  }
  .panel {
    padding: 28px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 220px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .app-shell {
    margin-left: 220px;
  }
  main {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .stat {
    padding: 17px 15px;
  }
  .stat-value {
    font-size: 1.35rem;
  }
  .grid-main {
    grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr);
  }
  .panel {
    padding: 20px;
  }
  .sidebar-accounts button {
    font-size: 0.74rem;
  }
  .brand {
    font-size: 1.22rem;
  }
  .period-controls .date-label {
    display: none;
  }
  .stat-label {
    font-size: 0.75rem;
  }
  .stat-note {
    font-size: 0.68rem;
  }
  .grid-bottom {
    grid-template-columns: 1fr 1fr;
  }
  .reconciliation {
    gap: 10px;
  }
  .recon-item strong {
    font-size: 0.9rem;
  }
}
@media (max-width: 960px) {
  .sidebar {
    width: 78px;
    padding: 25px 12px;
  }
  .brand {
    font-size: 0;
    justify-content: center;
    margin-bottom: 33px;
  }
  .brand-mark {
    font-size: 1.8rem;
  }
  .brand-dot,
  .workspace-label,
  .sidebar nav a span,
  .sidebar-accounts,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav a {
    justify-content: center;
    padding: 15px 10px;
  }
  .sidebar nav a.active::after {
    display: none;
  }
  .sidebar nav a svg {
    width: 22px;
    height: 22px;
  }
  .app-shell {
    margin-left: 78px;
  }
  .stat-grid {
    gap: 12px;
  }
  .grid-main {
    grid-template-columns: 1fr;
  }
  .donut-wrap {
    margin: 10px 0;
  }
  .allocation-panel-body {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    align-items: center;
    gap: 25px;
  }
  .grid-bottom {
    grid-template-columns: 1fr 1fr;
  }
  .page-heading {
    align-items: flex-start;
  }
  .heading-actions .button span {
    display: none;
  }
  .stat-value {
    font-size: 1.4rem;
  }
  .stat-label svg {
    display: none;
  }
  .stat-note {
    display: block;
    line-height: 1.7;
  }
  .monthly-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  #toast {
    left: calc(50% + 39px);
  }
}
@media (max-width: 680px) {
  .sidebar,
  .app-shell {
    transition: none;
  }
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: 66px;
    padding: 6px 10px;
    background: var(--nav);
    border-top: 1px solid #304637;
  }
  .sidebar .brand {
    display: none;
  }
  .sidebar nav {
    display: flex;
    justify-content: space-around;
    gap: 3px;
  }
  .sidebar nav a {
    flex: 1;
    flex-direction: column;
    gap: 5px;
    padding: 7px 5px;
    border-radius: 7px;
  }
  .sidebar nav a span {
    display: block;
    font-size: 0.57rem;
    white-space: nowrap;
  }
  .sidebar nav a svg {
    width: 18px;
    height: 18px;
  }
  .app-shell {
    margin-left: 0;
    padding-bottom: 66px;
  }
  .topbar {
    height: 61px;
    padding: 0 18px;
  }
  .breadcrumb {
    font-size: 0.72rem;
    gap: 8px;
  }
  .breadcrumb > span,
  .breadcrumb > strong {
    display: none;
  }
  .topbar-right {
    gap: 10px;
  }
  .demo-badge {
    font-size: 0.65rem;
    padding: 6px 9px;
  }
  .currency-label {
    display: none;
  }
  .icon-button {
    width: 28px;
    height: 28px;
  }
  .page-heading {
    margin-bottom: 22px;
    gap: 12px;
  }
  h1 {
    font-size: 1.65rem;
  }
  .subtitle {
    font-size: 0.81rem;
    line-height: 1.6;
  }
  .heading-actions .button {
    padding: 9px;
    min-height: 35px;
  }
  .heading-actions {
    padding-top: 4px;
  }
  main {
    padding: 25px 17px 15px;
    min-height: calc(100vh - 190px);
  }
  .filters {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
  }
  .account-tabs {
    justify-content: space-between;
  }
  .account-tabs button {
    padding: 7px 9px;
    font-size: 0.75rem;
    flex: 1;
  }
  .period-controls {
    justify-content: space-between;
  }
  .period-controls .date-label {
    display: block;
    font-size: 0.68rem;
  }
  .segmented button {
    padding: 6px 10px;
    font-size: 0.73rem;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
  }
  .stat {
    padding: 16px;
  }
  .stat-label {
    font-size: 0.75rem;
    margin-bottom: 11px;
  }
  .stat-value {
    font-size: 1.43rem;
  }
  .stat-note {
    font-size: 0.68rem;
    margin-top: 8px;
  }
  .grid-main,
  .grid-bottom,
  .system-grid,
  .scenario-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 18px;
  }
  .panel {
    padding: 19px 17px;
  }
  .panel-head {
    gap: 9px;
  }
  h2 {
    font-size: 0.97rem;
  }
  .panel-head .segmented button {
    font-size: 0.68rem;
    padding: 5px 7px;
  }
  .panel-subtitle {
    font-size: 0.7rem;
  }
  .chart-summary strong {
    font-size: 1.2rem;
  }
  .chart-summary span {
    font-size: 0.69rem;
  }
  .chart {
    margin: 8px 0;
  }
  .chart-legend {
    font-size: 0.65rem;
    gap: 12px;
  }
  .allocation-panel-body {
    grid-template-columns: 1fr 1.2fr;
    gap: 12px;
  }
  .donut {
    width: 135px;
    height: 135px;
  }
  .donut-label strong {
    font-size: 1rem;
  }
  .donut-label small {
    font-size: 0.62rem;
  }
  .allocation-row {
    font-size: 0.72rem;
    gap: 6px;
  }
  .allocation-row strong {
    font-size: 0.72rem;
  }
  .allocation-row small {
    font-size: 0.66rem;
    width: 37px;
  }
  .full-panel {
    margin-bottom: 18px;
  }
  .panel-head .button.quiet {
    font-size: 0.7rem;
  }
  .section-tabs {
    gap: 23px;
    margin-bottom: 21px;
  }
  .section-tabs a {
    font-size: 0.78rem;
  }
  .toolbar {
    gap: 10px;
  }
  .toolbar select {
    max-width: 145px;
    font-size: 0.76rem;
  }
  .search input {
    font-size: 0.76rem;
  }
  .reconciliation {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .recon-item:last-child {
    grid-column: 1/-1;
  }
  .monthly-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .bar-row {
    grid-template-columns: 83px 1fr 78px;
    gap: 10px;
    font-size: 0.75rem;
  }
  .bar-row strong {
    font-size: 0.74rem;
  }
  .analysis-intro h2 {
    font-size: 1.14rem;
  }
  .analysis-intro p {
    font-size: 0.82rem;
  }
  .status-label {
    font-size: 0.62rem;
  }
  .connector-header {
    gap: 9px;
  }
  .connector-header h2 {
    font-size: 0.96rem;
  }
  footer {
    padding: 13px 18px;
    flex-direction: column;
    gap: 7px;
    font-size: 0.66rem;
  }
  dialog {
    padding: 25px 20px;
  }
  .dialog-title {
    font-size: 1.25rem;
  }
  #toast {
    left: 50%;
    bottom: 81px;
    min-width: 260px;
  }
  .scenario-result strong {
    font-size: 1.8rem;
  }
  .empty-state {
    padding: 30px 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.panel-head > svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #668358;
}

.sidebar nav a .nav-short {
  display: none;
}
@media (max-width: 680px) {
  .sidebar nav a .nav-label {
    display: none;
  }
  .sidebar nav a .nav-short {
    display: block;
    font-size: 0.75rem;
  }
  .chart text {
    font-size: 19px;
  }
  .table-wrap table {
    min-width: 580px;
  }
  .asset-cell {
    min-width: 155px;
  }
  .asset-name {
    font-size: 0.82rem;
  }
}

/* Research workspace: readable dossiers and compact market references. */
.research-surface { font-size:16px; line-height:1.6; }
.research-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin:20px 0; }
.research-grid.two { grid-template-columns:minmax(0,2fr) minmax(0,1fr); }
.research-surface .panel { padding:24px; align-self:start; }
.research-surface h2 { font-size:20px; margin-bottom:12px; }
.research-surface h3 { font-size:16px; }
.research-surface p { margin:12px 0; }
.research-surface a { color:#357b5d; }
.research-value { font-size:32px; }
.research-form { display:grid; gap:18px; margin-top:20px; }
.research-form label { display:grid; gap:6px; font-size:14px; font-weight:600; }
.research-form input,.research-form select,.research-form textarea { width:100%; min-width:0; border:1px solid #dce3db; border-radius:8px; padding:12px; font:inherit; background:white; color:#23382b; }
.research-form textarea { min-height:110px; resize:vertical; }
.research-form [name=series] { min-height:180px; }
.research-form pre { white-space:pre-wrap; overflow-wrap:anywhere; font-size:14px; }
.research-actions { display:flex; flex-wrap:wrap; gap:10px; }
.research-excerpt { white-space:pre-wrap; overflow-wrap:anywhere; max-height:130px; overflow:auto; }
.library-search { grid-template-columns:2fr 1fr auto; align-items:end; }
@media(max-width:850px) { .research-grid,.research-grid.two,.library-search { grid-template-columns:1fr; } }

.page-actions { display: flex; justify-content: flex-end; margin-bottom: 12px; }

.calendar-url { width:100%; min-width:0; padding:10px; margin:10px 0; border:1px solid #dce3db; border-radius:8px; font:inherit; }

/* Macro workspace: category color, concise summaries and readable time axes. */
.macro-surface { --macro-ink:#233b30; --macro-muted:#627469; color:var(--macro-ink); font-variant-numeric:tabular-nums; line-height:1.5; }
[data-group] { --macro-accent:#427261; --macro-tint:#edf4ef; }
[data-group=rates],[data-group=bonds] { --macro-accent:#356789; --macro-tint:#edf3f8; }
[data-group=inflation] { --macro-accent:#a1602d; --macro-tint:#fbf2e9; }
[data-group=fx] { --macro-accent:#8a5573; --macro-tint:#f7eef3; }
[data-group=commodities] { --macro-accent:#897020; --macro-tint:#f8f4e6; }
[data-group=risk] { --macro-accent:#925469; --macro-tint:#f8eef1; }
.macro-toolbar,.macro-filters,.macro-panel-head,.macro-dialog-head,.macro-chart-meta,.macro-summary-bottom,.macro-overview-label,.macro-explore-head,.macro-axis-caption { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.macro-toolbar { margin:16px 0 18px; flex-wrap:wrap; font-size:13px; }
.macro-source-dot { display:inline-block; width:7px; height:7px; background:#548766; border-radius:50%; margin-right:8px; }
.macro-overview-label { margin-bottom:10px; font-size:13px; }
.macro-overview-label strong { font-size:14px; }
.macro-overview-label span { color:#627469; font-size:12px; }
.macro-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:26px; }
.macro-summary-card { background:#fff; border:1px solid #dfe7e1; border-top:3px solid var(--macro-accent); border-radius:10px; padding:12px 16px 10px; min-width:0; }
.macro-card-title { display:block; font-size:16px; font-weight:650; line-height:1.35; color:var(--macro-accent); }
.macro-card-context { display:block; font-size:11px; color:#627469; margin-top:3px; }
.macro-summary-card>small { display:block; margin-top:6px; color:#627469; font-size:11px; }
.macro-number { border:0; background:transparent; color:inherit; font:inherit; font-weight:650; padding:4px 0; cursor:pointer; text-align:left; white-space:nowrap; }
.macro-number:hover,.macro-label:hover { color:var(--macro-accent,#276447); text-decoration:underline; text-underline-offset:4px; }
.macro-number small { font-weight:400; font-size:10px; color:#627469; }
.macro-number.macro-hero { display:block; font-size:28px; line-height:1.2; margin:6px 0; }
.macro-hero small { font-size:12px; }
.macro-summary-bottom { font-size:12px; }
.macro-summary-bottom small { display:block; color:#627469; font-size:10px; margin-top:3px; }
.macro-spark { display:block; width:100px; height:30px; color:var(--macro-accent,#427261); }
.macro-change { display:inline-block; color:#394d44; font-size:12px; font-weight:550; white-space:nowrap; }
.macro-flat { color:#627469; }
.macro-warning { color:#875621; }
.macro-explore-head { margin-bottom:10px; }
.macro-explore-head h2 { font-size:17px; margin:0; }
.macro-explore-head .button { font-size:12px; padding:7px 12px; }
.macro-jumps { display:flex; gap:7px; flex-wrap:wrap; margin:0 0 14px; }
.macro-jumps button { display:inline-flex; align-items:center; gap:7px; border:1px solid #dfe7e1; background:#fff; border-radius:7px; padding:8px 11px; font:inherit; font-size:12px; color:#30483a; cursor:pointer; }
.macro-jumps button:hover { border-color:var(--macro-accent); background:var(--macro-tint); }
.macro-family-dot { width:7px; height:7px; border-radius:50%; background:var(--macro-accent); }
.macro-filters { background:#edf1ee; border:1px solid #e0e6e1; border-radius:8px; padding:10px 14px; justify-content:flex-start; flex-wrap:wrap; gap:20px; margin-bottom:18px; }
.macro-filters label { display:flex; align-items:center; gap:9px; font-size:12px; font-weight:600; }
.macro-filters input,.macro-filters select { background:#fff; color:#233b30; border:1px solid #d2ded4; border-radius:6px; padding:8px 10px; font:inherit; max-width:100%; }
#macro-visible-count { margin-left:auto; font-size:11px; }
.macro-sections { display:grid; grid-template-columns:minmax(0,1fr); gap:18px; }
.macro-panel { padding:0!important; overflow:hidden; scroll-margin-top:20px; }
.macro-panel-head { padding:17px 20px 14px; border-bottom:1px solid #e5ebe6; border-left:4px solid var(--macro-accent); background:var(--macro-tint); }
.macro-panel-head h2 { display:inline; font-size:17px; margin:0; }
.macro-panel-head p { margin:4px 0 0 32px; font-size:12px; color:#586c60; }
.macro-index { display:inline-block; width:32px; color:var(--macro-accent); font-size:12px; font-weight:650; }
.macro-table-wrap { overflow:auto; }
.macro-table { width:100%; border-collapse:collapse; font-size:13px; }
.macro-table th { text-transform:none!important; letter-spacing:normal!important; font-size:11px!important; color:#617568; background:#fafcf9; padding:9px 20px!important; text-align:left; white-space:nowrap; }
.macro-table td { padding:11px 20px!important; border-bottom:1px solid #eef2ed; vertical-align:middle; }
.macro-table tr:last-child td { border-bottom:0; }
.macro-table tbody tr:hover { background:#fafcf9; }
.macro-table td:first-child { width:34%; }
.macro-table td>small { display:block; color:#627469; font-size:11px; margin-top:2px; }
.macro-table td:nth-child(3),.macro-table td:nth-child(4) { white-space:nowrap; font-size:12px; }
.macro-label { padding:0; border:0; background:transparent; color:inherit; font:inherit; font-weight:550; text-align:left; cursor:pointer; }
.macro-label:disabled { cursor:default; }
.macro-spark-button { border:0; background:transparent; padding:3px; cursor:pointer; }
.macro-expand { width:100%; display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 20px; border:0; border-top:1px solid #e5ece6; background:#fff; color:var(--macro-accent); font:inherit; font-size:12px; font-weight:600; text-align:left; cursor:pointer; }
.macro-expand:hover { background:var(--macro-tint); }
.macro-expand span { font-size:17px; line-height:1; }
.macro-method { padding:18px 0; font-size:12px; color:#627469; }
.macro-method summary { cursor:pointer; color:#365342; }
.macro-method p { max-width:95ch; margin:12px 0; }
.macro-loading { padding:34px!important; text-align:center; color:#627469; }
.macro-curves { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; padding:18px 24px; background:#fafcfb; border-bottom:1px solid #edf2ec; }
.macro-curves strong { font-size:13px; }
.macro-curves small { display:block; color:#627469; font-size:11px; }
.macro-curves svg { width:100%; margin-top:12px; color:var(--macro-accent); }
.macro-curves text { fill:#52685a; font-size:11px; }
.macro-dialog { position:fixed; inset:0; width:min(880px,calc(100vw - 24px)); max-width:880px; max-height:92dvh; margin:auto; padding:26px; border:1px solid #d9e3d7; border-radius:16px; background:#fff; color:#233b30; box-shadow:0 30px 100px #10271835; overflow:auto; }
.macro-dialog::backdrop { background:#10271866; backdrop-filter:blur(3px); }
.macro-dialog h2 { margin:4px 0 0; font-size:23px; }
.macro-dialog-head { align-items:flex-start; }
.macro-dialog-head .caption { color:var(--macro-accent); font-weight:550; }
.macro-definition { color:#586e5f; font-size:13px; line-height:1.6; margin:16px 0; max-width:80ch; }
.macro-dialog-current { font-size:31px; font-weight:650; }
.macro-dialog-current small { font-size:12px; font-weight:400; color:#627469; }
.macro-periods { display:flex; flex-wrap:wrap; gap:7px; margin:18px 0 16px; }
.macro-periods .button { padding:7px 14px; font-size:12px; }
.macro-periods [aria-pressed=true] { background:var(--macro-accent); color:#fff; border-color:var(--macro-accent); }
.macro-chart { width:100%; display:block; touch-action:pan-y; color:var(--macro-accent); }
.macro-chart text { fill:#526459; font-size:12px; }
.macro-history-line { fill:none; stroke:currentColor; stroke-width:2.5; }
.macro-gridline { stroke:#e4eae5; stroke-width:1; }
.macro-axis-line { stroke:#b9c9be; stroke-width:1; }
.macro-chart-meta { flex-wrap:wrap; font-size:12px; color:#526459; }
.macro-chart-meta strong { font-size:12px; font-weight:400; }
.macro-chart-meta .macro-change { font-weight:650; }
.macro-axis-caption { margin:13px 0 0; font-size:11px; color:#627469; }
.macro-axis-caption>span:first-child { color:#344e3e; font-weight:600; }
.macro-observation { padding:8px 12px; border-radius:6px; background:var(--macro-tint); text-align:center; font-size:14px; font-weight:600; min-height:24px; }
.macro-slider { display:block; font-size:12px; color:#627469; margin:13px 0; }
.macro-slider input { display:block; width:100%; accent-color:var(--macro-accent); margin-top:8px; }
.macro-dialog .caption { font-size:12px; }
.macro-dialog-source { display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; border-top:1px solid #e5ece3; margin-top:20px; padding-top:16px; font-size:11px; color:#627469; }
.macro-dialog-source a { color:var(--macro-accent); }
.macro-dialog details { font-size:12px; margin-top:18px; }
.macro-dialog summary { cursor:pointer; }
.macro-observations { max-height:220px; overflow:auto; margin-top:10px; }
.macro-observations table { width:100%; font-size:12px; }
.macro-observations td,.macro-observations th { padding:6px 12px; border-bottom:1px solid #edf0eb; text-align:left; }
.macro-surface button:focus-visible,.macro-dialog button:focus-visible { outline:3px solid #86ae67; outline-offset:3px; }
.calendar-page { max-width:950px; }
.calendar-page .panel { padding:26px; }
@media(min-width:1700px) { .macro-summary { grid-template-columns:repeat(6,minmax(0,1fr)); } .macro-summary-card { padding:14px; } .macro-summary-bottom .macro-spark { width:62px; } .macro-number.macro-hero { font-size:25px; } }
@media(max-width:850px) {
  .macro-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .macro-toolbar { gap:5px; }
  .macro-toolbar .caption { font-size:11px; }
  .macro-filters { align-items:stretch; gap:10px; }
  .macro-filters label { flex:1 1 240px; justify-content:space-between; }
  .macro-filters input { min-width:0; width:64%; }
  #macro-visible-count { margin-left:0; }
  .macro-table td,.macro-table th { padding:10px 14px!important; }
  .macro-table td:last-child,.macro-table th:last-child { display:none; }
  .macro-table td:first-child { min-width:160px; }
  .macro-curves { grid-template-columns:1fr; padding:16px; }
  .macro-dialog { padding:18px; }
  .macro-dialog h2 { font-size:20px; }
  .macro-dialog-current small { display:block; }
  .macro-chart-meta { gap:5px; }
}
@media(max-width:450px) {
  .macro-summary { gap:10px; }
  .macro-summary-card { padding:12px 11px; }
  .macro-card-title { font-size:14px; min-height:38px; }
  .macro-card-context { font-size:10px; min-height:30px; }
  .macro-number.macro-hero { font-size:25px; }
  .macro-summary-bottom .macro-spark { display:none; }
  .macro-hero small { font-size:9px; }
  .macro-overview-label { align-items:flex-start; gap:8px; }
  .macro-overview-label span { max-width:155px; font-size:11px; text-align:right; }
  .macro-table { min-width:590px; }
  .macro-toolbar { align-items:flex-start; }
  .macro-panel-head { padding:15px 12px; }
  .macro-panel-head h2 { font-size:16px; }
  .macro-panel-head p { margin-left:0; }
  .macro-panel-head>.caption { display:none; }
  .macro-periods { display:grid; grid-template-columns:repeat(3,1fr); }
  .macro-periods .button { justify-content:center; }
}
@media(max-width:360px) { .macro-hero small { display:block; margin-top:3px; } }
