:root {
  color-scheme: light;
  font-family: Inter, sans-serif;
  color: #202c29;
  background: #f4f2ec;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #202c29;
  --muted: #78827d;
  --line: #e8e5dc;
  --blue: #376957;
  --sidebar-width: 250px;
  --forest: #172924;
  --forest-light: #203832;
  --gold: #c6a36a;
  --paper: #f4f2ec;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  font-size: 14px;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #91aaff;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 16px #17203324;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 10;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 26px 18px 18px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 32px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #edf2ff;
  color: var(--blue);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -1px;
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: -.3px;
}

.brand-copy > span {
  color: #9aa4b6;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.nav-caption {
  margin: 0 10px 10px;
  color: #a0a9b8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.nav-caption-system {
  margin-top: 30px;
}

.primary-nav {
  display: grid;
  gap: 5px;
}

.nav-link {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 12px;
  padding: 0 11px;
  border-radius: 8px;
  color: #68748a;
  font-size: 13px;
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}

.nav-link:hover,
.nav-link.active {
  background: #edf2ff;
  color: #365bd0;
}

.nav-link.active {
  font-weight: 600;
}

.nav-link svg,
.mobile-nav-link svg,
.icon-button svg,
.refresh-button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.sidebar-note {
  display: flex;
  gap: 9px;
  margin-top: auto;
  padding: 13px 11px;
  border: 1px solid #edf0f5;
  border-radius: 9px;
  color: #788398;
  font-size: 11px;
  line-height: 1.6;
}

.note-indicator,
.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 4px;
  border-radius: 50%;
  background: #e9a23b;
}

.sidebar-footer {
  padding: 17px 5px 0;
  color: #9aa4b6;
  font-size: 10px;
}

.sidebar-footer span,
.page-footer span span {
  padding: 0 4px;
}

.sidebar-close,
.menu-toggle,
.mobile-nav {
  display: none;
}

.workspace {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.topbar {
  display: flex;
  height: 68px;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #8a94a6;
  font-size: 12px;
}

.breadcrumb strong {
  color: #364157;
  font-weight: 600;
}

.breadcrumb-divider {
  color: #c4cbd6;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8a94a6;
  font-size: 11px;
}

.connection-status .status-dot {
  width: 7px;
  height: 7px;
  margin: 0;
}

.connection-status.connection-error {
  color: #b54747;
}

.connection-status.connection-error .status-dot {
  background: #d65b5b;
}

.data-message {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #dfe7fb;
  border-radius: 7px;
  background: #f0f4ff;
  color: #536891;
  font-size: 11px;
  line-height: 1.5;
}

.data-message-error {
  border-color: #f1d5d5;
  background: #fff5f5;
  color: #a53d3d;
}

.base-currency {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #455168;
  font-size: 11px;
  font-weight: 700;
}

.base-currency span {
  padding-left: 6px;
  color: #9aa4b6;
}

.main-content {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 35px 36px 24px;
}

.page-heading,
.section-heading,
.empty-state-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow,
.setup-kicker {
  margin: 0 0 8px;
  color: #7185c5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
}

h1,
h2,
p {
  margin-top: 0;
}

.page-heading h1 {
  margin-bottom: 8px;
  color: #1d2940;
  font-size: clamp(23px, 3vw, 29px);
  letter-spacing: -1px;
}

.page-description {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.refresh-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #9aa4b6;
  font-size: 12px;
  cursor: not-allowed;
}

.refresh-button svg {
  width: 16px;
  height: 16px;
}

.setup-panel {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 27px;
  padding: 19px 21px;
  border: 1px solid #dfe7fb;
  border-radius: 11px;
  background: #f0f4ff;
}

.setup-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  color: #5474d5;
}

.setup-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.6;
}

.setup-copy {
  min-width: 0;
}

.setup-kicker {
  margin-bottom: 5px;
  font-size: 9px;
}

.setup-copy h2 {
  margin-bottom: 5px;
  color: #263757;
  font-size: 14px;
}

.setup-copy > p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: #687795;
  font-size: 11px;
  line-height: 1.6;
}

.stage-badge,
.reference-only {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #d8e1fa;
  border-radius: 6px;
  background: #fff;
  color: #6379b8;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .4px;
}

.empty-state,
.coverage-section {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.empty-state {
  padding: 20px;
}

.empty-state-top h2,
.section-heading h2 {
  margin-bottom: 5px;
  color: #263249;
  font-size: 14px;
}

.empty-state-top p,
.section-heading p {
  margin-bottom: 0;
  color: #8b95a7;
  font-size: 11px;
}

.unavailable-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 20px;
  background: #fff5e9;
  color: #b7782c;
  font-size: 10px;
}

.unavailable-badge span {
  font-size: 7px;
}

.empty-state-content {
  margin-top: 16px;
}

.empty-chart {
  position: relative;
  display: grid;
  height: 155px;
  overflow: hidden;
  place-items: center;
  border: 1px dashed #e2e7ef;
  border-radius: 8px;
  background: #fbfcfe;
  color: #a0a9b8;
  font-size: 11px;
}

.empty-chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.chart-gridline {
  fill: none;
  stroke: #edf0f5;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart-gridline-vertical {
  stroke-dasharray: 3 5;
}

.chart-empty-line {
  fill: none;
  stroke: #cbd5ed;
  stroke-dasharray: 6 6;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.empty-chart span {
  position: relative;
  z-index: 1;
  padding: 7px 10px;
  border-radius: 5px;
  background: #fbfcfe;
}

.empty-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 13px 0 0;
  color: #8a94a6;
  font-size: 10px;
  line-height: 1.5;
}

.notice-symbol {
  display: grid;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #b8c2d3;
  border-radius: 50%;
  font-size: 9px;
}

.coverage-section {
  padding: 20px;
}

.reference-only {
  border-color: #e7ebf2;
  background: #f8f9fc;
  color: #8993a5;
  font-weight: 500;
  letter-spacing: 0;
}

.currency-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 17px;
}

.currency-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  background: #fff;
}

.currency-flag {
  width: 25px;
  height: 19px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: #f0f2f6;
  box-shadow: 0 0 0 1px #1720330b;
  font-size: 22px;
}

.currency-info {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.currency-info strong {
  overflow: hidden;
  color: #364157;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.currency-info span {
  color: #929cad;
  font-size: 10px;
}

.tool-panel {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.rates-table-wrap {
  margin-top: 17px;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  color: #5f6b80;
  font-size: 11px;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #edf0f5;
  white-space: nowrap;
}

.data-table th {
  color: #8a94a6;
  font-size: 10px;
  font-weight: 600;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-country {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #364157;
  font-weight: 500;
}

.table-country .fi {
  width: 20px;
  border-radius: 2px;
  font-size: 16px;
}

.table-status {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 20px;
  background: #f3f5f8;
  color: #808b9d;
  font-size: 10px;
}

.converter-form {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(150px, 1.4fr) 24px minmax(150px, 1.4fr);
  align-items: end;
  gap: 14px;
  margin-top: 23px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 21px;
}

.form-field {
  display: grid;
  min-width: 0;
  gap: 8px;
  color: #667187;
  font-size: 11px;
  font-weight: 500;
}

.comparison-range-field {
  max-width: 280px;
  margin-top: 16px;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8f9fc;
  color: #788398;
  font: inherit;
}

.form-field input:disabled,
.form-field select:disabled {
  cursor: not-allowed;
  opacity: .8;
}

.convert-arrow {
  display: grid;
  min-height: 40px;
  place-items: center;
  color: #8793a7;
  font-size: 17px;
}

.converter-result {
  display: grid;
  min-height: 58px;
  grid-column: 1 / -1;
  align-content: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1px dashed #dfe4ed;
  border-radius: 7px;
  background: #fbfcfe;
}

.converter-result span {
  color: #8993a5;
  font-size: 10px;
}

.converter-result strong {
  color: #364157;
  font-size: 15px;
}

.comparison-chart,
.history-chart {
  height: 220px;
  margin-top: 20px;
}

.system-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0 0;
}

.system-details > div {
  display: grid;
  gap: 7px;
  padding: 15px 12px;
  border-bottom: 1px solid #edf0f5;
}

.system-details dt {
  color: #8993a5;
  font-size: 10px;
}

.system-details dd {
  margin: 0;
  color: #364157;
  font-size: 12px;
  font-weight: 500;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 21px 2px 0;
  color: #9aa4b6;
  font-size: 9px;
  line-height: 1.5;
}

.sidebar-backdrop {
  display: none;
}

@media (min-width: 1500px) {
  .main-content {
    padding-top: 44px;
  }
}

@media (max-width: 1050px) {
  :root {
    --sidebar-width: 220px;
  }

  .main-content {
    padding-right: 25px;
    padding-left: 25px;
  }

  .topbar {
    padding-right: 25px;
    padding-left: 25px;
  }

  .currency-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body {
    padding-bottom: 67px;
  }

  .sidebar {
    z-index: 12;
    width: min(290px, calc(100vw - 48px));
    transform: translateX(-105%);
    transition: transform .2s ease;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-close {
    position: absolute;
    top: 22px;
    right: 15px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #68748a;
    cursor: pointer;
  }

  .sidebar-close:hover {
    background: #f2f4f8;
  }

  .sidebar-backdrop {
    position: fixed;
    z-index: 11;
    inset: 0;
    display: block;
    visibility: hidden;
    border: 0;
    background: #11182766;
    opacity: 0;
    transition: opacity .2s ease, visibility .2s ease;
  }

}

  body {
    color: var(--ink);
    background:
      radial-gradient(ellipse at 86% 0%, #ebe8de 0, transparent 34rem),
      var(--paper);
  }

  .sidebar {
    border-right-color: #263a34;
    background: linear-gradient(180deg, var(--forest) 0%, #14231f 100%);
    box-shadow: 8px 0 28px #14231f0a;
  }

  .brand-mark {
    border: 1px solid #c6a36a4a;
    background: #c6a36a18;
    color: #dfc28f;
  }

  .brand-copy strong {
    color: #f4f1e8;
  }

  .brand-copy > span {
    color: #9eaaa2;
  }

  .nav-caption {
    color: #87988e;
  }

  .nav-link {
    color: #c0cbc4;
  }

  .nav-link:hover,
  .nav-link.active {
    background: #ffffff12;
    color: #e5c992;
  }

  .nav-link.active {
    box-shadow: inset 2px 0 #c6a36a;
  }

  .sidebar-note {
    border-color: #ffffff1a;
    background: #ffffff08;
    color: #c0cbc4;
  }

  .note-indicator,
  .status-dot {
    background: var(--gold);
  }

  .sidebar-footer {
    color: #8d9b93;
  }

  .workspace {
    background: transparent;
  }

  .topbar {
    border-bottom-color: #e7e3da;
    background: #f8f7f2eF;
    backdrop-filter: blur(14px);
  }

  .breadcrumb strong {
    color: #34443d;
  }

  .connection-status,
  .breadcrumb {
    color: #78827d;
  }

  .base-currency {
    border-color: #dfdacf;
    background: #fffefa;
    color: #385448;
  }

  .page-heading h1 {
    color: #1d3029;
    letter-spacing: -1.2px;
  }

  .eyebrow,
  .setup-kicker {
    color: #9b7a46;
  }

  .page-description {
    color: #78827d;
  }

  .setup-panel {
    border-color: #d7dfd7;
    background: linear-gradient(115deg, #e8eee8 0%, #f1eee5 100%);
    box-shadow: 0 8px 24px #263b3010;
  }

  .setup-icon {
    background: #fffefa;
    color: #376957;
    box-shadow: 0 3px 12px #20383212;
  }

  .setup-copy h2 {
    color: #263b32;
  }

  .setup-copy > p:last-child {
    color: #65756b;
  }

  .stage-badge {
    border-color: #d8c8a9;
    background: #fffdf8;
    color: #927344;
  }

  .empty-state,
  .coverage-section,
  .tool-panel {
    border-color: #e6e2d9;
    background: #fffefa;
    box-shadow: 0 8px 26px #263b3008;
  }

  .empty-state-top h2,
  .section-heading h2 {
    color: #273a32;
  }

  .empty-state-top p,
  .section-heading p {
    color: #818a83;
  }

  .unavailable-badge {
    background: #f3eddf;
    color: #987b4d;
  }

  .empty-chart {
    border-color: #e7e4dc;
    background: #f9f8f3;
    color: #8e9890;
  }

  .chart-gridline {
    stroke: #e9e7df;
  }

  .chart-empty-line {
    stroke: #afbea9;
  }

  .empty-chart span {
    background: #f9f8f3;
  }

  .empty-notice {
    color: #78827d;
  }

  .notice-symbol {
    border-color: #9eaaa0;
  }

  .reference-only {
    border-color: #e5dfd1;
    background: #f8f5ed;
    color: #8a7959;
  }

  .currency-card {
    border-color: #ebe8df;
    background: #fffefa;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
  }

  .currency-card:hover {
    transform: translateY(-2px);
    border-color: #c9d6cb;
    box-shadow: 0 8px 18px #2038320d;
  }

  .currency-info strong,
  .table-country {
    color: #34443d;
  }

  .currency-info span {
    color: #818b83;
  }

  .data-table {
    color: #65736b;
  }

  .data-table th,
  .data-table td,
  .system-details > div {
    border-bottom-color: #eeebe3;
  }

  .data-table th,
  .system-details dt {
    color: #818a83;
  }

  .table-status {
    background: #edf2eb;
    color: #55705d;
  }

  .form-field {
    color: #586a60;
  }

  .form-field input,
  .form-field select {
    border-color: #e3e0d7;
    background: #faf9f5;
    color: #40544a;
  }

  .converter-result {
    border-color: #dddccf;
    background: #f8f8f2;
  }

  .converter-result span,
  .system-details dt {
    color: #78827d;
  }

  .converter-result strong,
  .system-details dd {
    color: #2d4037;
  }

  .page-footer {
    color: #879087;
  }

  .data-attribution {
    color: #dfc58e;
    font-size: 10px;
    text-decoration: underline;
    text-decoration-color: #dfc58e66;
    text-underline-offset: 3px;
  }

  .data-attribution:hover {
    color: #f0d9a8;
  }

  .data-message {
    border-color: #d8e2d8;
    background: #edf3ec;
    color: #45634e;
  }

  .data-message-error {
    border-color: #ead2cb;
    background: #fbf1ed;
    color: #995549;
  }

  .connection-status.connection-error {
    color: #995549;
  }

  .connection-status.connection-error .status-dot {
    background: #b96c5a;
  }

  .mobile-nav {
    border-top-color: #e4e0d6;
    background: #f8f7f2f2;
    backdrop-filter: blur(14px);
  }

  .mobile-nav-link {
    color: #78827d;
  }

  .mobile-nav-link.active {
    color: #376957;
  }

  .mobile-nav-link.active svg {
    color: #a17d47;
  }

  .sidebar-close,
  .menu-toggle {
    color: #52645a;
  }

  .sidebar-close:hover {
    background: #ffffff12;
    color: #e5c992;
  }

  .menu-toggle:hover {
    background: #eae8df;
    color: #315746;
  }

  .refresh-button {
    border-color: #e2ded4;
    background: #fffefa;
    color: #8a9189;
  }

  .table-country .fi {
    box-shadow: 0 0 0 1px #28372d12;
  }

@media (max-width: 700px) {
  body.sidebar-open .sidebar-backdrop {
    visibility: visible;
    opacity: 1;
  }

  .workspace {
    margin-left: 0;
  }

  .topbar {
    height: 59px;
    padding: 0 17px;
  }

  .menu-toggle {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #5b667b;
    cursor: pointer;
  }

  .breadcrumb {
    margin-right: auto;
    margin-left: 9px;
    font-size: 11px;
  }

  .topbar-actions {
    gap: 10px;
  }

  .connection-status {
    gap: 6px;
    font-size: 0;
  }

  .connection-status .status-dot {
    width: 8px;
    height: 8px;
  }

  .base-currency {
    padding: 6px 8px;
    font-size: 10px;
  }

  .main-content {
    padding: 26px 17px 20px;
  }

  .page-heading {
    align-items: flex-start;
  }

  .page-heading h1 {
    font-size: 23px;
  }

  .page-description {
    max-width: 360px;
    line-height: 1.6;
  }

  .refresh-button {
    min-height: 34px;
    gap: 5px;
    padding: 0 8px;
    font-size: 10px;
  }

  .setup-panel {
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  .setup-icon {
    width: 34px;
    height: 34px;
  }

  .stage-badge {
    display: none;
  }

  .empty-state,
  .coverage-section,
  .tool-panel {
    padding: 16px;
  }

  .converter-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .convert-arrow {
    min-height: 20px;
    transform: rotate(90deg);
  }

  .form-grid,
  .system-details {
    grid-template-columns: 1fr;
  }

  .comparison-chart,
  .history-chart {
    height: 175px;
  }

  .currency-grid {
    gap: 8px;
  }

  .currency-card {
    gap: 8px;
    padding: 10px 8px;
  }

  .currency-info strong {
    font-size: 10px;
  }

  .page-footer {
    flex-direction: column;
    gap: 5px;
    padding-top: 17px;
  }

  .mobile-nav {
    position: fixed;
    z-index: 9;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    height: 62px;
    align-items: stretch;
    justify-content: space-around;
    padding: 5px 4px max(5px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: #fff;
  }

  .mobile-nav-link {
    display: grid;
    min-width: 0;
    flex: 1;
    align-content: center;
    justify-items: center;
    gap: 3px;
    color: #8993a5;
    font-size: 8px;
  }

  .mobile-nav-link svg {
    width: 17px;
    height: 17px;
  }

  .mobile-nav-link.active {
    color: #4169e1;
    font-weight: 600;
  }
}

:root {
  color-scheme: dark;
  --ink: #edf2eb;
  --muted: #b0beb4;
  --line: #344a40;
  --paper: #172924;
}

body {
  color: #edf2eb;
  background: #172924;
  background-image:
    radial-gradient(ellipse at 82% 4%, #c6a36a0b, transparent 34rem),
    radial-gradient(ellipse at 5% 88%, #547c6512, transparent 36rem);
}

.workspace {
  background: linear-gradient(145deg, #1a3028 0%, #172924 48%, #192c25 100%);
}

.topbar {
  border-bottom-color: #344a40;
  background: #172924eF;
  box-shadow: 0 8px 26px #08130f12;
}

.breadcrumb,
.connection-status,
.page-description,
.empty-state-top p,
.section-heading p,
.empty-notice,
.page-footer,
.currency-info span,
.system-details dt {
  color: #aebdb3;
}

.breadcrumb strong,
.page-heading h1,
.empty-state-top h2,
.section-heading h2,
.currency-info strong,
.table-country,
.converter-result strong,
.system-details dd {
  color: #edf2eb;
}

.eyebrow,
.setup-kicker {
  color: #d3b77f;
}

.base-currency,
.refresh-button {
  border-color: #40574b;
  background: #20372f;
  color: #e4ecdf;
}

.setup-panel {
  border-color: #3a5548;
  background:
    radial-gradient(ellipse at 100% 0%, #c6a36a12, transparent 24rem),
    linear-gradient(115deg, #203b32 0%, #263b32 100%);
  box-shadow: inset 3px 0 #c6a36a, 0 12px 30px #08130f1c;
}

.setup-icon {
  background: #2a4338;
  color: #d3b77f;
}

.setup-copy h2 {
  color: #edf2eb;
}

.setup-copy > p:last-child {
  color: #b5c2b8;
}

.stage-badge {
  border-color: #66583b;
  background: #302f26;
  color: #dfc58e;
}

.empty-state,
.coverage-section,
.tool-panel {
  border-color: #344a40;
  background: linear-gradient(145deg, #243d34 0%, #20372f 58%, #1e352d 100%);
  box-shadow: 0 12px 30px #08130f1c;
}

.empty-state,
.coverage-section,
.tool-panel {
  position: relative;
}

.empty-state::before,
.coverage-section::before,
.tool-panel::before {
  position: absolute;
  top: 0;
  left: 20px;
  width: 52px;
  height: 1px;
  background: linear-gradient(90deg, #c6a36a, #c6a36a00);
  content: "";
}

.empty-chart {
  border-color: #344a40;
  background: #192e27;
  color: #aebdb3;
  overflow: visible;
}

.empty-chart span {
  background: #192e27;
}

.chart-gridline {
  stroke: #344a40;
}

.chart-empty-line {
  stroke: #7d9787;
}

.currency-card {
  border-color: #344a40;
  background: linear-gradient(145deg, #294238, #243b33 72%);
}

.currency-card:hover {
  border-color: #718b76;
  box-shadow: 0 8px 18px #09140f30;
}

.data-table {
  color: #c4d0c6;
}

.data-table th,
.data-table td,
.system-details > div {
  border-bottom-color: #344a40;
}

.data-table th {
  color: #aebdb3;
}

.table-status {
  background: #30483b;
  color: #d4dfd1;
}

.form-field {
  color: #c1cdc3;
}

.form-field input,
.form-field select {
  border-color: #40574b;
  background: #192e27;
  color: #edf2eb;
  color-scheme: dark;
}

.converter-result {
  border-color: #40574b;
  background: #192e27;
}

.converter-result span {
  color: #aebdb3;
}

.reference-only {
  border-color: #66583b;
  background: #302f26;
  color: #dfc58e;
}

.unavailable-badge {
  background: #3a3528;
  color: #dfc58e;
}

.notice-symbol {
  border-color: #9dad9f;
}

.data-message {
  border-color: #3a5548;
  background: #203b32;
  color: #d2e0d1;
}

.data-message-error {
  border-color: #68453e;
  background: #3a2926;
  color: #f0c1b6;
}

.mobile-nav {
  border-top-color: #344a40;
  background: #172924;
}

.mobile-nav-link {
  color: #aebdb3;
}

.mobile-nav-link.active {
  color: #e3c88f;
}

.mobile-nav-link.active svg {
  color: #e3c88f;
}

.menu-toggle,
.sidebar-close {
  color: #d0dbd1;
}

.menu-toggle:hover {
  background: #294137;
  color: #e3c88f;
}

.skip-link {
  background: #20372f;
  color: #edf2eb;
}

.table-country .fi {
  box-shadow: 0 0 0 1px #edf2eb20;
}

@media (max-width: 390px) {
  .currency-grid {
    grid-template-columns: 1fr;
  }

  .currency-card {
    padding: 11px;
  }

  .empty-state-top,
  .section-heading {
    align-items: flex-start;
  }
}

:root {
  --gold: #dfbd78;
  --line: #40584a;
}

body {
  background-color: #12231d;
  background-image:
    radial-gradient(ellipse at 78% -8%, #d2b2731a, transparent 40rem),
    radial-gradient(ellipse at 4% 68%, #6f9c7d12, transparent 34rem);
  background-attachment: fixed;
}

.workspace {
  background: linear-gradient(145deg, #1a3028 0%, #14261f 48%, #192d24 100%);
}

.sidebar {
  border-right-color: #ffffff19;
  background:
    radial-gradient(ellipse at 0 0, #d2b27312, transparent 19rem),
    linear-gradient(180deg, #182d25, #11221c);
}

.brand-mark {
  border: 1px solid #dfbd7840;
  background: linear-gradient(145deg, #dfbd7830, #dfbd7808);
  color: #f0d7a1;
}

.brand-copy strong {
  color: #f1eee5;
}

.topbar {
  border-bottom-color: #ffffff18;
  background: #152720e8;
  box-shadow: 0 8px 26px #08130f20;
}

.main-content {
  width: min(1360px, 100%);
}

.page-heading h1,
.dashboard-page .page-heading h1 {
  color: #f6f1e5;
  background: linear-gradient(100deg, #f8f2e5 18%, #d8c18f 90%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-description {
  max-width: 680px;
  font-size: 13px;
}

.refresh-button {
  box-shadow: 0 8px 24px #d2b27312;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.refresh-button:not(:disabled):hover {
  transform: translateY(-2px);
  border-color: #dfbd7880;
  background: linear-gradient(145deg, #dfbd7824, #dfbd780b);
}

.tool-panel,
.coverage-section,
.empty-state {
  border-color: #ffffff19;
  background:
    radial-gradient(ellipse at 100% 0, #dfbd780c, transparent 28rem),
    linear-gradient(145deg, #263f34 0%, #1d342a 68%, #1b3027 100%);
  box-shadow: 0 22px 55px #08130f30, inset 0 1px #ffffff0c;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.tool-panel:hover,
.coverage-section:hover {
  border-color: #dfbd7833;
  box-shadow: 0 24px 58px #08130f38, inset 0 1px #ffffff10;
}

.section-heading h2 {
  color: #f4eedf;
}

.dashboard-freshness {
  border-color: #dfbd7838;
  background:
    radial-gradient(ellipse at 0 50%, #dfbd7817, transparent 26rem),
    linear-gradient(100deg, #263d32, #1c3028);
  box-shadow: inset 0 1px #ffffff0b, 0 10px 24px #08130f1c;
}

.freshness-indicator {
  box-shadow: 0 0 0 5px #8dbb8b20, 0 0 18px #8dbb8b66;
}

.kpi-card {
  position: relative;
  overflow: hidden;
  border-color: #ffffff1d;
  background:
    radial-gradient(ellipse at 100% 0, #dfbd7812, transparent 15rem),
    linear-gradient(145deg, #2b483a, #1f382e 80%);
  box-shadow: inset 0 1px #ffffff0c, 0 12px 28px #08130f24;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.kpi-card::after {
  position: absolute;
  right: -24px;
  bottom: -34px;
  width: 100px;
  height: 100px;
  border: 1px solid #dfbd7812;
  border-radius: 50%;
  box-shadow: 0 0 0 13px #dfbd7807, 0 0 0 27px #dfbd7805;
  content: "";
  pointer-events: none;
}

.kpi-card:hover {
  transform: translateY(-3px);
  border-color: #dfbd7866;
  box-shadow: inset 0 1px #ffffff12, 0 18px 34px #08130f38;
}

.kpi-value {
  font-variant-numeric: tabular-nums;
}

.dashboard-chart-panel {
  padding: 19px;
}

.dashboard-trend-chart,
.dashboard-comparison-chart {
  border-color: #ffffff14;
  background-color: #172b23;
}

.trend-currency-picker {
  border-color: #ffffff19;
  background: #14261f;
}

.trend-currency-picker button {
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.trend-currency-picker button:hover {
  color: #f0d7a1;
}

.converter-form {
  gap: 16px;
}

.converter-form .form-field {
  gap: 10px;
  color: #d6dfd5;
}

.converter-form .form-field input,
.converter-form .form-field select {
  min-height: 50px;
  border-color: #526b59;
  border-radius: 11px;
  background: linear-gradient(145deg, #172b23, #1b3027);
  box-shadow: inset 0 1px #ffffff08;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.converter-form .form-field input:focus,
.converter-form .form-field select:focus {
  border-color: #dfbd78;
  outline: 0;
  background: #1b3027;
  box-shadow: 0 0 0 3px #dfbd7820;
}

.converter-result {
  min-height: 82px;
  padding: 15px 17px;
  border: 1px solid #dfbd7833;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 100% 0, #dfbd7814, transparent 25rem),
    linear-gradient(110deg, #1a3027, #20382d);
  box-shadow: inset 0 1px #ffffff0a;
}

.converter-result span {
  color: #b7c5b9;
}

.converter-result strong {
  color: #f2d89e;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}

.converter-form .convert-arrow {
  color: #e0c17f;
  font-size: 22px;
}

.page-footer {
  border-top: 1px solid #ffffff12;
}

.sidebar-note {
  border-color: #ffffff20;
  background: linear-gradient(145deg, #ffffff0e, #ffffff05);
  color: #bec9bd;
}

@media (max-width: 700px) {
  .page-heading h1,
  .dashboard-page .page-heading h1 {
    font-size: 34px;
  }

  .tool-panel,
  .coverage-section,
  .empty-state {
    border-radius: 14px;
  }

  .dashboard-chart-panel {
    padding: 15px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .dashboard-freshness .freshness-indicator {
    animation: freshness-glow 2.8s ease-in-out infinite;
  }

  @keyframes freshness-glow {
    50% {
      box-shadow: 0 0 0 7px #8dbb8b10, 0 0 24px #8dbb8b80;
    }
  }

  .brand-mark {
    display: block;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: 0 8px 24px #08130f40;
    object-fit: contain;
  }

  .brand-copy > span {
    color: #d3b77f;
    font-size: 7px;
    letter-spacing: .75px;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 700px) {
  .mobile-nav {
    border-top-color: #e4e0d6;
    background: #f8f7f2f2;
    backdrop-filter: blur(14px);
  }

  .mobile-nav-link {
    color: #78827d;
  }

  .mobile-nav-link.active {
    color: #376957;
  }

  .mobile-nav-link.active svg {
    color: #a17d47;
  }

  .sidebar-close,
  .menu-toggle {
    color: #52645a;
  }

  .sidebar-close:hover {
    background: #ffffff12;
    color: #e5c992;
  }

  .menu-toggle:hover {
    background: #eae8df;
    color: #315746;
  }
}

.chart-updated-at {
  margin: 10px 0 0;
  color: #aebdb3;
  font-size: 11px;
  line-height: 1.5;
}

.chart-point-hit-area {
  fill: transparent;
  cursor: pointer;
  pointer-events: all;
}

.chart-point-hit-area:focus-visible {
  fill: #ffffff33;
  stroke: #f3d9a8;
  stroke-width: 2;
  outline: none;
}

.chart-point-tooltip {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 5px;
  width: max-content;
  max-width: min(280px, calc(100% - 16px));
  padding: 10px 12px;
  border: 1px solid #53695d;
  border-radius: 8px;
  background: #203832;
  color: #f4f2ec;
  box-shadow: 0 8px 24px #07120ec2;
  font-size: 11px;
  line-height: 1.4;
  pointer-events: none;
  overflow-wrap: anywhere;
}

.chart-point-tooltip strong {
  font-size: 11px;
}

.chart-point-tooltip span {
  position: static;
  z-index: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #d7dfd8;
  font-size: 11px;
}

.chart-point-tooltip .chart-change-positive {
  color: #9ad0a7;
}

.chart-point-tooltip .chart-change-negative {
  color: #f0a19a;
}

:root {
  --gold: #d1b174;
  --line: #354b40;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #14251f;
  background-image:
    radial-gradient(ellipse at 82% 0%, #c6a36a12, transparent 38rem),
    radial-gradient(ellipse at 8% 74%, #66816a10, transparent 32rem);
}

.sidebar {
  padding: 30px 19px 20px;
  border-right-color: #ffffff12;
  background:
    radial-gradient(ellipse at 0% 0%, #d2b2730c, transparent 20rem),
    linear-gradient(180deg, #172b24 0%, #12231e 100%);
  box-shadow: 12px 0 42px #07120d24;
}

.brand {
  padding-bottom: 42px;
}

.brand-mark {
  border-radius: 14px;
  background: linear-gradient(145deg, #d2b27325, #d2b27308);
  box-shadow: inset 0 1px #ffffff18, 0 8px 22px #09140f30;
}

.nav-caption {
  margin-bottom: 12px;
  font-size: 9px;
  letter-spacing: 1.65px;
}

.primary-nav {
  gap: 7px;
}

.nav-link {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 10px;
  transition:
    color .2s ease,
    background .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

.nav-link:hover {
  transform: translateX(2px);
  background: #ffffff09;
}

.nav-link.active {
  border-color: #d2b27320;
  background: linear-gradient(105deg, #d2b2731a, #ffffff08);
  box-shadow: inset 2px 0 #d2b273, 0 5px 16px #08130f18;
}

.nav-link.active svg {
  color: #e4c990;
}

.sidebar-note {
  border-color: #ffffff17;
  border-radius: 11px;
  background: linear-gradient(145deg, #ffffff0b, #ffffff05);
}

.note-indicator,
.status-dot {
  box-shadow: 0 0 0 4px #d2b27318, 0 0 13px #d2b27355;
}

.topbar {
  position: sticky;
  z-index: 5;
  top: 0;
  height: 72px;
  border-bottom-color: #ffffff12;
  background: #152720db;
  backdrop-filter: blur(18px);
}

.breadcrumb {
  gap: 13px;
  letter-spacing: .15px;
}

.breadcrumb strong {
  color: #f0eadb;
}

.base-currency {
  padding: 8px 12px;
  border-color: #d2b2733b;
  border-radius: 9px;
  background: #d2b2730b;
  color: #e7d4aa;
}

.main-content {
  width: min(1240px, 100%);
  padding: 48px 44px 38px;
}

.page-heading {
  align-items: flex-end;
  margin-bottom: 29px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #d0b278;
  font-size: 9px;
  letter-spacing: 2px;
}

.eyebrow::before {
  width: 23px;
  height: 1px;
  background: linear-gradient(90deg, #d2b273, #d2b27355);
  content: "";
}

.page-heading h1 {
  margin-bottom: 9px;
  color: #f4f0e5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.2vw, 39px);
  font-weight: 500;
  letter-spacing: -1.1px;
  line-height: 1.14;
}

.page-description {
  max-width: 600px;
  color: #afbeb4;
  font-size: 13px;
  line-height: 1.7;
}

.refresh-button {
  min-height: 41px;
  border-color: #d2b27338;
  border-radius: 10px;
  background: linear-gradient(145deg, #d2b27314, #d2b27308);
  color: #c3b28e;
}

.empty-state,
.coverage-section,
.tool-panel {
  overflow: hidden;
  border-color: #ffffff14;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 100% 0%, #d2b27309, transparent 26rem),
    linear-gradient(145deg, #21382f 0%, #1b3128 62%, #1a2e26 100%);
  box-shadow:
    0 18px 46px #08130f25,
    inset 0 1px #ffffff0a;
}

.empty-state::before,
.coverage-section::before,
.tool-panel::before {
  left: 22px;
  width: 76px;
  height: 2px;
  background: linear-gradient(90deg, #d2b273, #d2b27300);
}

.empty-state,
.coverage-section,
.tool-panel {
  padding: 24px;
}

.empty-state-top h2,
.section-heading h2 {
  margin-bottom: 7px;
  color: #f0ecdf;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.2px;
}

.empty-state-top p,
.section-heading p {
  color: #aebdb3;
  font-size: 12px;
  line-height: 1.6;
}

.unavailable-badge,
.reference-only {
  border: 1px solid #d2b27327;
  background: #d2b2730d;
  color: #d6bd8b;
}

.empty-chart {
  min-height: 230px;
  border: 1px solid #ffffff0d;
  border-radius: 12px;
  background:
    linear-gradient(#ffffff04 1px, transparent 1px),
    linear-gradient(90deg, #ffffff04 1px, transparent 1px),
    #172b24;
  background-size: 100% 46px, 84px 100%, auto;
  box-shadow: inset 0 1px #ffffff07;
}

.empty-chart span {
  padding: 9px 13px;
  border: 1px solid #ffffff12;
  border-radius: 8px;
  background: #1b3129eF;
  color: #c0c9bd;
  box-shadow: 0 7px 22px #07120d30;
}

.chart-gridline {
  stroke: #ffffff12;
}

.chart-empty-line {
  stroke: #b69a6470;
  stroke-dasharray: 4 8;
}

.empty-notice {
  margin-top: 16px;
  color: #aebdb3;
  font-size: 11px;
}

.notice-symbol {
  border-color: #c1a56f85;
  color: #d2b273;
}

.coverage-section,
.tool-panel {
  margin-top: 24px;
}

.currency-grid {
  gap: 12px;
  margin-top: 20px;
}

.currency-card {
  min-height: 68px;
  gap: 13px;
  padding: 13px 14px;
  border-color: #ffffff12;
  border-radius: 11px;
  background: linear-gradient(135deg, #ffffff08, #ffffff03);
  box-shadow: inset 0 1px #ffffff08;
}

.currency-card:hover {
  transform: translateY(-3px);
  border-color: #d2b27355;
  background: linear-gradient(135deg, #d2b27312, #ffffff05);
  box-shadow: 0 11px 24px #08130f30, inset 0 1px #ffffff0a;
}

.currency-flag {
  width: 28px;
  height: 21px;
  border-radius: 4px;
}

.currency-info {
  gap: 5px;
}

.currency-info strong {
  color: #e8ebdf;
  font-size: 12px;
  font-weight: 600;
}

.currency-info span {
  color: #a8b7ac;
  font-size: 10px;
}

.data-table {
  font-size: 12px;
}

.data-table th,
.data-table td {
  padding: 14px 12px;
}

.data-table th {
  color: #d0b278;
  font-size: 9px;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.data-table tbody tr {
  transition: background .16s ease;
}

.data-table tbody tr:hover {
  background: #ffffff06;
}

.table-status {
  border: 1px solid #ffffff12;
  background: #ffffff08;
  color: #c4cfbf;
}

.form-field {
  gap: 9px;
  color: #d5d9cd;
}

.form-field input,
.form-field select {
  min-height: 46px;
  padding: 0 13px;
  border-color: #ffffff1a;
  border-radius: 9px;
  background: #172b24;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.form-field input:focus,
.form-field select:focus {
  border-color: #d2b2739c;
  outline: none;
  box-shadow: 0 0 0 3px #d2b27318;
}

.converter-result {
  min-height: 72px;
  border: 1px solid #d2b2732e;
  border-radius: 10px;
  background: linear-gradient(120deg, #d2b27312, #172b24 70%);
}

.converter-result strong {
  color: #e6d3a9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
}

.system-details > div {
  padding: 17px 14px;
}

.system-details dt {
  color: #aebdb3;
  letter-spacing: .2px;
}

.system-details dd {
  color: #e8ebdf;
}

.chart-updated-at {
  color: #aebdb3;
}

.page-footer {
  padding-top: 25px;
  color: #9caaa0;
}

.sidebar-footer {
  color: #9caaa0;
}

.data-attribution {
  color: #dfc58e;
}

.data-attribution:hover {
  color: #f0d9a8;
}

@media (max-width: 1050px) {
  .main-content {
    padding-right: 28px;
    padding-left: 28px;
  }
}

@media (max-width: 700px) {
  body.sidebar-open .sidebar {
    box-shadow: 18px 0 50px #06110bd1;
  }

  .topbar {
    height: 62px;
    padding-right: 17px;
    padding-left: 13px;
  }

  .main-content {
    padding: 31px 17px 25px;
  }

  .page-heading {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 23px;
  }

  .page-heading h1 {
    font-size: 30px;
  }

  .page-description {
    font-size: 12px;
  }

  .refresh-button {
    min-width: 39px;
    min-height: 39px;
    justify-content: center;
    padding: 0 10px;
  }

  .empty-state,
  .coverage-section,
  .tool-panel {
    padding: 18px;
    border-radius: 14px;
  }

  .empty-chart {
    min-height: 185px;
  }

  .currency-grid {
    gap: 9px;
  }

  .currency-card {
    min-height: 64px;
    padding: 10px;
  }

  .mobile-nav {
    border-top-color: #ffffff17;
    background: #14251feb;
    box-shadow: 0 -8px 26px #07120d30;
    backdrop-filter: blur(18px);
  }

  .mobile-nav-link {
    color: #9fafa4;
  }

  .mobile-nav-link.active,
  .mobile-nav-link.active svg {
    color: #e3c88f;
  }

  .menu-toggle,
  .sidebar-close {
    color: #d0dbd1;
  }

  .menu-toggle:hover,
  .sidebar-close:hover {
    background: #ffffff0c;
    color: #e5c992;
  }
}

@media (max-width: 390px) {
  .empty-state-top,
  .section-heading {
    gap: 10px;
  }

  .empty-state-top h2,
  .section-heading h2 {
    font-size: 16px;
  }

  .reference-only,
  .unavailable-badge {
    padding: 5px 7px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.data-sources {
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid #ffffff17;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 100% 0%, #d2b27309, transparent 24rem),
    linear-gradient(145deg, #1d342b, #192e26);
  box-shadow: 0 12px 30px #08130f1c, inset 0 1px #ffffff08;
}

.data-sources summary {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 19px;
  color: #eee9dc;
  cursor: pointer;
  list-style: none;
}

.data-sources summary::-webkit-details-marker {
  display: none;
}

.data-sources summary > span:first-child {
  display: grid;
  gap: 5px;
}

.data-sources summary strong {
  color: #ead9b2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 500;
}

.data-sources summary small {
  color: #aebdb3;
  font-size: 10px;
}

.source-toggle {
  flex: 0 0 auto;
  color: #d3b77f;
  font-size: 10px;
}

.source-toggle::after {
  display: inline-block;
  margin-left: 7px;
  content: "+";
  font-size: 15px;
  line-height: .8;
}

.data-sources[open] .source-toggle::after {
  content: "−";
}

.data-sources summary:focus-visible {
  outline: 2px solid #d3b77f;
  outline-offset: -4px;
}

.data-sources-content {
  padding: 0 19px 18px;
  border-top: 1px solid #ffffff12;
}

.active-rate-source {
  margin: 15px 0 12px;
  color: #dfc58e;
  font-size: 11px;
  line-height: 1.6;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list a {
  display: grid;
  min-height: 67px;
  align-content: center;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid #ffffff12;
  border-radius: 9px;
  background: #ffffff05;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.source-list a:hover {
  transform: translateY(-1px);
  border-color: #d2b27355;
  background: #d2b2730c;
}

.source-list a strong {
  color: #e8d5aa;
  font-size: 11px;
  font-weight: 600;
}

.source-list a span {
  color: #aebdb3;
  font-size: 10px;
  line-height: 1.5;
}

.source-disclaimer {
  margin: 12px 0 0;
  color: #9eada2;
  font-size: 10px;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .data-sources {
    margin-top: 24px;
  }

  .data-sources summary {
    min-height: 63px;
    padding: 12px 15px;
  }

  .data-sources-content {
    padding: 0 15px 15px;
  }

  .source-list {
    grid-template-columns: 1fr;
  }

  .source-list a {
    min-height: 58px;
  }
}

.dashboard-page {
  padding: 18px 34px 12px;
}

.dashboard-page .page-heading {
  align-items: flex-end;
  margin-bottom: 10px;
}

.dashboard-page .eyebrow {
  margin-bottom: 7px;
}

.dashboard-page .page-heading h1 {
  font-size: clamp(29px, 3vw, 36px);
}

.dashboard-freshness {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border: 1px solid #d2b27327;
  border-radius: 12px;
  background: linear-gradient(100deg, #d2b27312, #ffffff04);
}

.freshness-indicator {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #8dbb8b;
  box-shadow: 0 0 0 5px #8dbb8b1c;
}

.dashboard-freshness[data-freshness="terlambat"] .freshness-indicator {
  background: #d3a453;
  box-shadow: 0 0 0 5px #d3a4531c;
}

.dashboard-freshness[data-freshness="kedaluwarsa"] .freshness-indicator {
  background: #cf7565;
  box-shadow: 0 0 0 5px #cf75651c;
}

.dashboard-freshness[data-freshness="tidak tersedia"] .freshness-indicator {
  background: #cf7565;
  box-shadow: 0 0 0 5px #cf75651c;
}

.freshness-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.freshness-copy strong {
  color: #e8dfc9;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.freshness-copy small {
  overflow: hidden;
  color: #aebdb3;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-type-badge {
  margin-left: auto;
  padding: 6px 9px;
  border: 1px solid #d2b27335;
  border-radius: 20px;
  background: #d2b2730c;
  color: #dfc58e;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .5px;
  white-space: nowrap;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.kpi-card {
  display: grid;
  min-width: 0;
  gap: 7px;
  padding: 11px 13px 10px;
  border: 1px solid #ffffff14;
  border-radius: 12px;
  background: linear-gradient(145deg, #294238, #20372f 75%);
  box-shadow: inset 0 1px #ffffff08, 0 8px 20px #08130f12;
}

.kpi-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e8ebdf;
  font-size: 11px;
}

.kpi-card-top .fi {
  width: 20px;
  border-radius: 2px;
  font-size: 16px;
}

.kpi-card-top strong {
  color: #e8d5aa;
  font-size: 11px;
  letter-spacing: .6px;
}

.kpi-country {
  overflow: hidden;
  margin-left: auto;
  color: #aebdb3;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kpi-value {
  overflow: hidden;
  margin: 0;
  color: #f2ecdc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 1.8vw, 24px);
  letter-spacing: -.3px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kpi-change {
  overflow: hidden;
  color: #b6c2b8;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kpi-status,
.rate-status {
  width: fit-content;
  padding: 4px 7px;
  border: 1px solid transparent;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.status-normal {
  border-color: #8dbb8b33;
  background: #8dbb8b12;
  color: #add1a3;
}

.status-watch {
  border-color: #d3a4533b;
  background: #d3a45312;
  color: #e2c17c;
}

.status-alert {
  border-color: #cf75653b;
  background: #cf756512;
  color: #edaaa0;
}

.status-no-data {
  border-color: #aebdb31f;
  background: #aebdb30b;
  color: #aebdb3;
}

.dashboard-visuals {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: stretch;
  gap: 14px;
  margin-top: 10px;
}

.dashboard-chart-panel {
  min-width: 0;
  margin: 0;
  padding: 14px;
}

.dashboard-chart-panel .section-heading {
  align-items: flex-start;
  gap: 10px;
}

.trend-currency-picker {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 3px;
  border: 1px solid #ffffff12;
  border-radius: 8px;
  background: #172b24;
}

.trend-currency-picker button {
  min-width: 34px;
  min-height: 27px;
  padding: 0 7px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #aebdb3;
  font-size: 9px;
  cursor: pointer;
}

.trend-currency-picker button.active {
  background: #d2b27320;
  color: #e8d5aa;
  box-shadow: inset 0 0 0 1px #d2b27335;
}

.dashboard-trend-chart {
  min-height: 180px;
  height: 180px;
  margin-top: 15px;
  overflow: hidden;
}

.dashboard-comparison-chart {
  display: grid;
  min-height: 180px;
  align-content: center;
  justify-items: stretch;
  gap: 3px;
  margin-top: 15px;
  padding: 8px 12px;
  overflow: auto;
  border: 1px solid #ffffff0d;
  border-radius: 11px;
  background: #172b24;
}

.dashboard-comparison-chart.is-empty {
  place-items: center;
}

.movement-column {
  display: grid;
  grid-template-rows: 18px minmax(0, 1fr) 18px;
  min-width: 0;
  text-align: center;
  color: #dce4d9;
  font-size: 9px;
}

.movement-code {
  color: #d9c18e;
  font-size: 9px;
  letter-spacing: .3px;
}

.movement-track {
  position: relative;
  display: block;
  min-height: 120px;
  height: 100%;
}

.movement-track::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: #ffffff30;
  content: "";
}

.movement-fill {
  position: absolute;
  left: 25%;
  width: 50%;
  min-height: 3px;
  border-radius: 4px;
}

.movement-fill.is-positive {
  bottom: 50%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(90deg, #a0bf87, #d2b273);
}

.movement-fill.is-negative {
  top: 50%;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #c27a6f, #dfaa7c);
}

.movement-value {
  color: #c4cfbf;
  overflow: hidden;
  align-self: end;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dashboard-chart-panel .chart-updated-at {
  margin-top: 9px;
  font-size: 9px;
}

.dashboard-source-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: #aebdb3;
  font-size: 10px;
}

.dashboard-source-strip a {
  flex: 0 0 auto;
  color: #dfc58e;
}

.dashboard-source-strip a:hover {
  color: #f0d9a8;
}

.rates-detail-table {
  min-width: 920px;
}

.rate-status {
  display: inline-block;
}

@media (max-width: 1050px) {
  .dashboard-page {
    padding-right: 25px;
    padding-left: 25px;
  }

  .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .dashboard-page {
    padding: 26px 17px 20px;
  }

  .dashboard-page .page-heading {
    align-items: flex-start;
    margin-bottom: 17px;
  }

  .dashboard-freshness {
    min-height: 68px;
    padding: 10px 12px;
  }

  .freshness-copy small {
    max-width: 55vw;
  }

  .dashboard-kpis {
    gap: 9px;
  }

  .kpi-card {
    gap: 8px;
    padding: 12px 11px;
  }

  .kpi-value {
    font-size: 19px;
  }

  .dashboard-visuals {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dashboard-chart-panel {
    padding: 15px;
  }

  .dashboard-trend-chart,
  .dashboard-comparison-chart {
    min-height: 195px;
    height: 195px;
  }

  .dashboard-source-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

@media (max-width: 390px) {
  .dashboard-kpis {
    grid-template-columns: 1fr;
  }

  .kpi-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .kpi-card-top,
  .kpi-value,
  .kpi-change,
  .kpi-status {
    grid-column: 1;
  }

  .kpi-status {
    grid-row: 2 / span 2;
    grid-column: 2;
    align-self: center;
  }

  .trend-currency-picker button {
    min-width: 29px;
    padding: 0 5px;
  }
}

body.dashboard-theme {
  color-scheme: light;
  color: #172435;
  background: #f3f5f8;
  background-image: none;
}

body.dashboard-theme .sidebar {
  border-right-color: #e4e9ef;
  background: #fff;
  box-shadow: none;
}

body.dashboard-theme .brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 0;
  background: none;
  object-fit: contain;
}

body.dashboard-theme .brand-copy strong {
  color: #172435;
}

body.dashboard-theme .brand-copy > span,
body.dashboard-theme .nav-caption,
body.dashboard-theme .sidebar-footer {
  color: #8591a0;
}

body.dashboard-theme .nav-link {
  color: #526174;
}

body.dashboard-theme .nav-link:hover,
body.dashboard-theme .nav-link.active {
  background: #edf5f2;
  color: #176b58;
}

body.dashboard-theme .nav-link.active {
  box-shadow: inset 3px 0 #176b58;
}

body.dashboard-theme .sidebar-note {
  border-color: #e6ebf0;
  background: #f8fafb;
  color: #64748b;
}

body.dashboard-theme .workspace,
body.dashboard-theme .dashboard-page {
  background: #f3f5f8;
}

body.dashboard-theme .topbar {
  border-bottom-color: #e4e9ef;
  background: #ffffffed;
  box-shadow: none;
  backdrop-filter: blur(12px);
}

body.dashboard-theme .breadcrumb,
body.dashboard-theme .connection-status {
  color: #64748b;
}

body.dashboard-theme .base-currency {
  border-color: #e1e7ee;
  background: #fff;
  color: #334155;
}

body.dashboard-theme .dashboard-page {
  color: #172435;
}

body.dashboard-theme .dashboard-page .page-heading h1 {
  background: none;
  color: #172435;
  font-weight: 650;
  letter-spacing: -.8px;
  -webkit-text-fill-color: currentColor;
}

body.dashboard-theme .dashboard-page .eyebrow {
  color: #176b58;
}

body.dashboard-theme .page-description,
body.dashboard-theme .section-heading p,
body.dashboard-theme .chart-updated-at,
body.dashboard-theme .page-footer,
body.dashboard-theme .dashboard-source-strip {
  color: #64748b;
}

body.dashboard-theme .dashboard-freshness,
body.dashboard-theme .kpi-card,
body.dashboard-theme .dashboard-chart-panel {
  border-color: #e3e8ef;
  background: #fff;
  box-shadow: 0 1px 3px #16283a0a;
}

body.dashboard-theme .dashboard-freshness {
  border-radius: 10px;
}

body.dashboard-theme .freshness-copy strong,
body.dashboard-theme .section-heading h2 {
  color: #1e293b;
}

body.dashboard-theme .freshness-copy small {
  color: #64748b;
}

body.dashboard-theme .freshness-indicator {
  background: #16866b;
  box-shadow: 0 0 0 4px #16866b18;
}

body.dashboard-theme .data-type-badge {
  border-color: #cde7de;
  background: #eff8f4;
  color: #176b58;
}

body.dashboard-theme .kpi-card {
  border-radius: 10px;
  box-shadow: 0 1px 3px #16283a0a;
}

body.dashboard-theme .kpi-card::after {
  display: none;
}

body.dashboard-theme .kpi-card:hover {
  transform: translateY(-1px);
  border-color: #cbd5df;
  box-shadow: 0 6px 16px #16283a0d;
}

body.dashboard-theme .kpi-card-top,
body.dashboard-theme .kpi-card-top strong {
  color: #334155;
}

body.dashboard-theme .kpi-country,
body.dashboard-theme .kpi-change {
  color: #64748b;
}

body.dashboard-theme .kpi-value {
  color: #172435;
  font-family: Inter, sans-serif;
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 600;
  letter-spacing: -.35px;
}

body.dashboard-theme .status-normal {
  border-color: #cce8dc;
  background: #eff8f3;
  color: #176b58;
}

body.dashboard-theme .status-watch {
  border-color: #f2dfb6;
  background: #fff8e9;
  color: #8a5b12;
}

body.dashboard-theme .status-alert {
  border-color: #f1ceca;
  background: #fff2f0;
  color: #a13d34;
}

body.dashboard-theme .status-no-data {
  border-color: #e2e8ef;
  background: #f8fafb;
  color: #64748b;
}

body.dashboard-theme .tool-panel::before {
  display: none;
}

body.dashboard-theme .dashboard-chart-panel {
  border-radius: 10px;
}

body.dashboard-theme .trend-currency-picker {
  border-color: #e3e8ef;
  background: #f7f9fb;
}

body.dashboard-theme .trend-currency-picker button {
  color: #64748b;
}

body.dashboard-theme .trend-currency-picker button.active {
  background: #fff;
  color: #176b58;
  box-shadow: 0 1px 3px #16283a1a;
}

body.dashboard-theme .empty-chart,
body.dashboard-theme .dashboard-comparison-chart {
  border-color: #e6ebf1;
  background: #fbfcfd;
  color: #64748b;
  box-shadow: none;
}

body.dashboard-theme .chart-gridline {
  stroke: #e7ecf2;
}

body.dashboard-theme .empty-chart span {
  border-color: #e6ebf1;
  background: #fff;
  color: #64748b;
  box-shadow: 0 1px 3px #16283a0a;
}

body.dashboard-theme .movement-row {
  color: #334155;
}

body.dashboard-theme .movement-row > strong {
  color: #176b58;
}

body.dashboard-theme .movement-track {
  background: #e8edf2;
}

body.dashboard-theme .movement-fill.is-positive {
  background: #23836b;
}

body.dashboard-theme .movement-fill.is-negative {
  background: #c46b61;
}

body.dashboard-theme .movement-value {
  color: #526174;
}

body.dashboard-theme .dashboard-source-strip a {
  color: #176b58;
}

body.dashboard-theme .dashboard-source-strip a:hover {
  color: #0e5143;
}

body.dashboard-theme .page-footer {
  border-top-color: #e4e9ef;
}

body.dashboard-theme .mobile-nav {
  border-top-color: #e4e9ef;
  background: #fff;
  box-shadow: 0 -4px 16px #16283a0a;
}

body.dashboard-theme .mobile-nav-link {
  color: #64748b;
}

body.dashboard-theme .mobile-nav-link.active {
  color: #176b58;
}

body.dashboard-theme .breadcrumb strong {
  color: #334155;
}

body.dashboard-theme .connection-status .status-dot {
  background: #16866b;
  box-shadow: none;
}

body.dashboard-theme .dashboard-page .page-heading h1,
body.dashboard-theme .dashboard-page .section-heading h2 {
  font-family: Inter, sans-serif;
  font-weight: 600;
  letter-spacing: -.4px;
}

body.dashboard-theme .dashboard-page .eyebrow::before {
  display: none;
}

body.dashboard-theme .dashboard-page .refresh-button {
  border-color: #dce5e2;
  background: #fff;
  color: #557064;
  box-shadow: none;
}

body.dashboard-theme .dashboard-page .reference-only {
  border-color: #e2e8ef;
  background: #f8fafb;
  color: #64748b;
}

body.dashboard-theme .main-content {
  color: #172435;
}

body.dashboard-theme .page-heading h1,
body.dashboard-theme .section-heading h2,
body.dashboard-theme .empty-state-top h2,
body.dashboard-theme .data-sources summary strong {
  color: #172435;
  font-family: Inter, sans-serif;
  font-weight: 600;
  letter-spacing: -.3px;
}

body.dashboard-theme .main-content.dashboard-page {
  width: 100%;
  max-width: none;
}

body.dashboard-theme .dashboard-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

body.dashboard-theme .dashboard-kpis .kpi-card[data-code="SGD"],
body.dashboard-theme .dashboard-kpis .kpi-card[data-code="PHP"] {
  grid-column: span 2;
  min-height: 132px;
  align-content: center;
  padding: 17px 19px;
}

body.dashboard-theme .dashboard-kpis .kpi-card[data-code="SGD"] {
  border-color: #cde7de;
  background: linear-gradient(125deg, #f3faf7, #fff 75%);
}

body.dashboard-theme .dashboard-visuals {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

body.dashboard-theme .dashboard-rates {
  width: 100%;
  margin-top: 20px;
}

body.dashboard-theme .dashboard-rates .rates-table-wrap {
  margin-top: 14px;
}

@media (max-width: 1050px) {
  body.dashboard-theme .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.dashboard-theme .dashboard-kpis .kpi-card[data-code="SGD"],
  body.dashboard-theme .dashboard-kpis .kpi-card[data-code="PHP"] {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  body.dashboard-theme {
    padding-bottom: 0;
  }

  body.dashboard-theme .mobile-nav {
    display: none;
  }

  body.dashboard-theme .dashboard-visuals {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  body.dashboard-theme .dashboard-kpis {
    grid-template-columns: 1fr;
  }
}

body.dashboard-theme .page-heading h1 {
  background: none;
  -webkit-text-fill-color: currentColor;
}

body.dashboard-theme .eyebrow::before {
  display: none;
}

body.dashboard-theme .page-heading .eyebrow,
body.dashboard-theme .eyebrow,
body.dashboard-theme .setup-kicker {
  color: #176b58;
}

body.dashboard-theme .empty-state-top p,
body.dashboard-theme .section-heading p,
body.dashboard-theme .empty-notice,
body.dashboard-theme .currency-info span,
body.dashboard-theme .system-details dt,
body.dashboard-theme .chart-updated-at {
  color: #64748b;
}

body.dashboard-theme .refresh-button,
body.dashboard-theme .form-field input,
body.dashboard-theme .form-field select {
  border-color: #dbe3eb;
  background: #fff;
  color: #334155;
  box-shadow: none;
}

body.dashboard-theme .refresh-button:not(:disabled):hover {
  border-color: #b7d4ca;
  background: #f4faf7;
  color: #176b58;
}

body.dashboard-theme .form-field {
  color: #526174;
}

body.dashboard-theme .form-field input:focus,
body.dashboard-theme .form-field select:focus {
  border-color: #5da18d;
  outline: 0;
  box-shadow: 0 0 0 3px #16866b1c;
}

body.dashboard-theme .tool-panel,
body.dashboard-theme .coverage-section,
body.dashboard-theme .empty-state,
body.dashboard-theme .setup-panel {
  border-color: #e3e8ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px #16283a0a;
}

body.dashboard-theme .tool-panel:hover,
body.dashboard-theme .coverage-section:hover {
  border-color: #d5dee7;
  box-shadow: 0 4px 14px #16283a0d;
}

body.dashboard-theme .empty-state::before,
body.dashboard-theme .coverage-section::before,
body.dashboard-theme .tool-panel::before {
  display: none;
}

body.dashboard-theme .setup-copy h2,
body.dashboard-theme .currency-info strong,
body.dashboard-theme .converter-result strong,
body.dashboard-theme .system-details dd {
  color: #1e293b;
}

body.dashboard-theme .setup-copy > p:last-child {
  color: #64748b;
}

body.dashboard-theme .setup-icon,
body.dashboard-theme .convert-arrow {
  color: #176b58;
}

body.dashboard-theme .stage-badge,
body.dashboard-theme .reference-only,
body.dashboard-theme .unavailable-badge,
body.dashboard-theme .notice-symbol {
  border-color: #dce8e2;
  background: #f3f8f5;
  color: #176b58;
}

body.dashboard-theme .empty-chart {
  border-color: #e6ebf1;
  background-color: #fbfcfd;
  color: #64748b;
  box-shadow: none;
}

body.dashboard-theme .empty-chart span {
  border-color: #e6ebf1;
  background: #fff;
  color: #64748b;
  box-shadow: 0 1px 3px #16283a0a;
}

body.dashboard-theme .chart-gridline {
  stroke: #e7ecf2;
}

body.dashboard-theme .chart-empty-line {
  stroke: #8aaca0;
}

body.dashboard-theme .currency-card {
  border-color: #e3e8ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px #16283a0a;
}

body.dashboard-theme .currency-card:hover {
  transform: translateY(-1px);
  border-color: #bdd9cf;
  background: #fff;
  box-shadow: 0 5px 14px #16283a0d;
}

body.dashboard-theme .data-table {
  color: #475569;
}

body.dashboard-theme .data-table th,
body.dashboard-theme .data-table td,
body.dashboard-theme .system-details > div {
  border-bottom-color: #e8edf2;
}

body.dashboard-theme .data-table th {
  background: #f8fafb;
  color: #64748b;
}

body.dashboard-theme .data-table tbody tr:hover {
  background: #f7faf9;
}

body.dashboard-theme .table-status {
  border-color: #e2e8ef;
  background: #f8fafb;
  color: #526174;
}

body.dashboard-theme .converter-form .form-field {
  color: #526174;
}

body.dashboard-theme .converter-form .form-field input,
body.dashboard-theme .converter-form .form-field select {
  border-color: #dbe3eb;
  border-radius: 9px;
  background: #fff;
  color: #172435;
  box-shadow: none;
}

body.dashboard-theme .converter-result {
  border-color: #dce8e2;
  border-radius: 10px;
  background: #f5faf7;
}

body.dashboard-theme .data-message {
  border-color: #cfe3da;
  background: #f2faf6;
  color: #245c4b;
}

body.dashboard-theme .data-message-error {
  border-color: #f1ceca;
  background: #fff3f1;
  color: #a13d34;
}

body.dashboard-theme .data-sources {
  border-color: #e3e8ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px #16283a0a;
}

body.dashboard-theme .data-sources summary {
  color: #1e293b;
}

body.dashboard-theme .data-sources summary strong {
  font-size: 15px;
}

body.dashboard-theme .data-sources summary small,
body.dashboard-theme .source-disclaimer {
  color: #64748b;
}

body.dashboard-theme .source-toggle,
body.dashboard-theme .active-rate-source,
body.dashboard-theme .source-list a strong,
body.dashboard-theme .data-attribution {
  color: #176b58;
}

body.dashboard-theme .source-list a {
  border-color: #e5eaf0;
  border-radius: 9px;
  background: #fbfcfd;
}

body.dashboard-theme .source-list a:hover {
  border-color: #bdd9cf;
  background: #f4faf7;
}

body.dashboard-theme .source-list a span {
  color: #64748b;
}

body.dashboard-theme .data-sources-content {
  border-top-color: #e8edf2;
}

body.dashboard-theme .page-footer {
  border-top-color: #e4e9ef;
  color: #64748b;
}

body.dashboard-theme .data-attribution:hover {
  color: #0e5143;
}

body.dashboard-theme .brand-copy > span,
body.dashboard-theme .nav-caption,
body.dashboard-theme .sidebar-footer,
body.dashboard-theme .sidebar-note,
body.dashboard-theme .table-country,
body.dashboard-theme .breadcrumb,
body.dashboard-theme .connection-status,
body.dashboard-theme .page-description,
body.dashboard-theme .section-heading p,
body.dashboard-theme .freshness-copy small,
body.dashboard-theme .kpi-country,
body.dashboard-theme .kpi-change,
body.dashboard-theme .chart-updated-at,
body.dashboard-theme .dashboard-source-strip,
body.dashboard-theme .page-footer,
body.dashboard-theme .empty-state-top p,
body.dashboard-theme .empty-notice,
body.dashboard-theme .currency-info span,
body.dashboard-theme .system-details dt,
body.dashboard-theme .setup-copy > p:last-child,
body.dashboard-theme .data-sources summary small,
body.dashboard-theme .source-disclaimer,
body.dashboard-theme .source-list a span,
body.dashboard-theme .data-table th,
body.dashboard-theme .movement-value {
  color: #475569;
}

body.dashboard-theme .dashboard-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.dashboard-theme .dashboard-kpis .kpi-card[data-code="SGD"],
body.dashboard-theme .dashboard-kpis .kpi-card[data-code="PHP"] {
  grid-column: auto;
  min-height: 112px;
  padding: 13px 15px;
}

body.dashboard-theme .dashboard-trend-chart {
  min-height: 250px;
  height: 250px;
}

body.dashboard-theme .dashboard-comparison-chart {
  min-height: 250px;
  height: 250px;
}

body.dashboard-theme .dashboard-comparison-chart .movement-fill {
  position: absolute;
}

@media (max-width: 1050px) {
  body.dashboard-theme .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.dashboard-theme .dashboard-visuals {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  body.dashboard-theme .dashboard-trend-chart {
    min-height: 230px;
    height: 230px;
  }

  body.dashboard-theme .dashboard-comparison-chart {
    min-height: 230px;
    height: 230px;
  }
}

body.dashboard-theme .dashboard-comparison-chart {
  grid-template-columns: repeat(9, minmax(38px, 1fr));
  align-content: stretch;
  align-items: stretch;
  gap: 5px;
  height: 250px;
  min-height: 250px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 8px;
}

body.dashboard-theme .dashboard-comparison-chart.is-empty {
  grid-template-columns: 1fr;
  place-items: center;
}

body.dashboard-theme .movement-column {
  grid-template-rows: 18px minmax(0, 1fr) 18px;
  align-items: stretch;
  color: #334155;
}

body.dashboard-theme .movement-code {
  align-self: start;
  color: #334155;
}

body.dashboard-theme .movement-track {
  min-height: 0;
  background: none;
}

body.dashboard-theme .movement-track::before {
  background: #94a3b8;
}

body.dashboard-theme .movement-value {
  color: #475569;
}

@media (max-width: 700px) {
  body.dashboard-theme .dashboard-comparison-chart {
    height: 230px;
    min-height: 230px;
  }
}

body.dashboard-theme .topbar {
  position: relative;
  z-index: 10;
  height: 84px;
  gap: 20px;
  padding: 0 clamp(20px, 3vw, 40px);
  border-bottom-color: #e5e7eb;
  background: #fff;
  box-shadow: 0 2px 8px rgb(18 59 42 / 4%);
}

body.dashboard-theme {
  color: #1f2937;
  background: #f7f9f8;
}

body.dashboard-theme .brand-copy strong {
  color: #123b2a;
  letter-spacing: 0.02em;
}

body.dashboard-theme .brand-copy > span {
  color: #64748b;
  letter-spacing: 0.08em;
}

body.dashboard-theme .nav-link:hover,
body.dashboard-theme .nav-link.active {
  background: #edf5f1;
  color: #1b6b4a;
}

body.dashboard-theme .nav-link.active {
  box-shadow: inset 3px 0 #1b6b4a;
}

body.dashboard-theme .breadcrumb {
  min-width: 0;
  gap: 12px;
  color: #64748b;
  font-size: 13px;
}

body.dashboard-theme .breadcrumb strong {
  overflow: hidden;
  color: #123b2a;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.dashboard-theme .breadcrumb-divider {
  color: #94a3b8;
}

body.dashboard-theme .topbar-actions {
  flex: 0 0 auto;
  gap: 12px;
}

body.dashboard-theme .connection-status {
  gap: 9px;
  color: #64748b;
  font-size: 11px;
  white-space: nowrap;
}

body.dashboard-theme .connection-status .status-dot {
  width: 8px;
  height: 8px;
  background: #1b6b4a;
  box-shadow: 0 0 0 3px #e9f4ee;
}

body.dashboard-theme .live-label {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eaf5ee;
  color: #1b6b4a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

body.dashboard-theme .header-data-source {
  color: #123b2a;
  font-size: 11px;
  font-weight: 700;
}

body.dashboard-theme .header-rate-date {
  padding-left: 9px;
  border-left: 1px solid #e5e7eb;
  color: #64748b;
  font-size: 11px;
}

body.dashboard-theme .connection-status.connection-error .status-dot {
  background: #b54747;
  box-shadow: 0 0 0 3px #fcecec;
}

body.dashboard-theme .connection-status.connection-error .live-label {
  background: #fcecec;
  color: #a53d3d;
}

body.dashboard-theme .base-currency {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 11px;
  background: #fff;
  color: #123b2a;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

body.dashboard-theme .header-notifications {
  position: relative;
}

body.dashboard-theme .header-icon-button,
body.dashboard-theme .header-profile {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #526174;
}

body.dashboard-theme .header-icon-button {
  list-style: none;
  cursor: pointer;
}

body.dashboard-theme .header-icon-button::-webkit-details-marker {
  display: none;
}

body.dashboard-theme .header-icon-button svg,
body.dashboard-theme .header-profile svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

body.dashboard-theme .header-icon-button:hover {
  border-color: #c9d9cf;
  background: #f7faf8;
  color: #123b2a;
}

body.dashboard-theme .header-profile {
  border-color: #eadcae;
  background: #fbf8ed;
  color: #9a7a19;
}

body.dashboard-theme .notification-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  width: 270px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgb(15 23 42 / 12%);
  color: #1f2937;
}

body.dashboard-theme .notification-popover strong {
  color: #123b2a;
  font-size: 13px;
}

body.dashboard-theme .notification-popover p {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.55;
}

body.dashboard-theme .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 1050px) {
  body.dashboard-theme .topbar {
    gap: 14px;
    padding-right: 20px;
    padding-left: 20px;
  }

  body.dashboard-theme .topbar-actions {
    gap: 9px;
  }

  body.dashboard-theme .header-data-source {
    display: none;
  }
}

@media (max-width: 900px) {
  body.dashboard-theme .breadcrumb > a,
  body.dashboard-theme .breadcrumb > .breadcrumb-divider {
    display: none;
  }
}

@media (max-width: 700px) {
  body.dashboard-theme .topbar {
    height: 64px;
    gap: 0;
    padding: 0 12px;
  }

  body.dashboard-theme .breadcrumb {
    flex: 1 1 auto;
    margin-right: 8px;
    margin-left: 9px;
    font-size: 12px;
  }

  body.dashboard-theme .breadcrumb strong {
    max-width: 125px;
    font-size: 12px;
  }

  body.dashboard-theme .topbar-actions {
    gap: 7px;
  }

  body.dashboard-theme .connection-status {
    gap: 0;
  }

  body.dashboard-theme .connection-status .status-dot,
  body.dashboard-theme .header-rate-date,
  body.dashboard-theme .header-notifications {
    display: none;
  }

  body.dashboard-theme .live-label {
    padding: 5px 7px;
  }

  body.dashboard-theme .base-currency {
    min-height: 36px;
    padding: 0 8px;
    font-size: 11px;
  }

  body.dashboard-theme .header-profile {
    width: 34px;
    height: 36px;
    flex-basis: 34px;
    border-radius: 11px;
  }
}

:root {
  --sidebar-width: 312px;
}

body.dashboard-theme .sidebar {
  padding-top: 18px;
  border-right-color: #e5e7eb;
}

body.dashboard-theme .brand {
  height: 66px;
  flex: 0 0 66px;
  gap: 15px;
  padding: 0 8px 18px;
}

body.dashboard-theme .brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 0;
  border-radius: 12px;
  background: none;
  object-fit: contain;
}

body.dashboard-theme .brand-copy {
  min-width: 0;
  gap: 3px;
}

body.dashboard-theme .brand-copy strong {
  color: #123b2a;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body.dashboard-theme .brand-copy > span {
  color: #64748b;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.1px;
  line-height: 1.25;
  white-space: nowrap;
}

@media (max-width: 1050px) {
  :root {
    --sidebar-width: 220px;
  }

  body.dashboard-theme .brand {
    gap: 9px;
    padding-right: 2px;
    padding-left: 2px;
  }

  body.dashboard-theme .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  body.dashboard-theme .brand-copy strong {
    font-size: 17px;
  }

  body.dashboard-theme .brand-copy > span {
    font-size: 7px;
    letter-spacing: 0.3px;
  }
}

@media (max-width: 700px) {
  body.dashboard-theme .brand {
    gap: 12px;
    padding-right: 8px;
    padding-left: 8px;
  }

  body.dashboard-theme .brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  body.dashboard-theme .brand-copy strong {
    font-size: 18px;
  }

  body.dashboard-theme .brand-copy > span {
    display: none;
  }
}
