﻿
:root {
  --bg: #0b0d10;
  --card: #12161b;
  --muted: #9aa3ad;
  --text: #e5ecf3;
  --accent: #4aa3ff;
  --accent-weak: #274f78;
  --ok: #35c28b;
  --warn: #ffb020;
  --bad: #ff6b6b;
  --border: #1c232b;
  --card-glass: rgba(14, 18, 24, 0.85);
  --card-glass-border: rgba(112, 134, 155, 0.2);
  --accent-soft: rgba(74, 163, 255, 0.22);
}
* { box-sizing: border-box; }
/*html, body { height: 100%; }*/
body {
  margin: 0;
  font-family: system-ui,-apple-system,Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 10% 0%, #0f141a 0%, var(--bg) 36%);
  color: var(--text);
}

@media (max-width: 600px) {
  html {
    font-size: calc(100% - 2pt);
  }
}
.auth-body {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
.auth-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(900px 700px at 18% -12%, rgba(74, 163, 255, 0.35), transparent 55%),
              radial-gradient(900px 700px at 82% 120%, rgba(53, 194, 139, 0.24), transparent 60%);
  opacity: .8;
}
.auth-view {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 3.5rem;
}
.auth-card {
  width: min(480px, calc(100% - 1rem));
  background: linear-gradient(195deg, rgba(255, 255, 255, 0.04) 0%, rgba(7, 10, 13, 0.88) 65%), var(--card-glass);
  border: 1px solid var(--card-glass-border);
  border-radius: 20px;
  padding: 2.2rem 2.1rem 2.4rem;
  box-shadow: 0 36px 70px -35px rgba(8, 12, 18, 0.75);
  backdrop-filter: blur(18px);
  display: grid;
  gap: 1.8rem;
}
.auth-card__brand {
  text-align: center;
  display: grid;
  gap: .45rem;
}
.auth-card__brand h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 2.2vw, 2.15rem);
}
.auth-card__brand .subtle {
  margin: 0;
  color: rgba(220, 232, 247, .78);
  font-size: .95rem;
}
.auth-tabs {
  display: grid;
  gap: 1.5rem;
}
.auth-tabs__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: rgba(8, 12, 18, 0.7);
  border: 1px solid rgba(90, 110, 132, 0.24);
  border-radius: 999px;
  padding: .35rem;
  gap: .4rem;
}
.auth-tabs__nav .nav-link {
  border-radius: 999px;
  color: rgba(209, 220, 233, .75);
  font-weight: 600;
  border: none;
  background: transparent;
  padding: .6rem 1rem;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.auth-tabs__nav .nav-link.active {
  color: #06090e;
  background: linear-gradient(135deg, var(--accent) 0%, #7bc3ff 100%);
  box-shadow: 0 16px 30px -18px rgba(74, 163, 255, .8);
}
.auth-tabs__nav .nav-link:focus-visible {
  outline: 2px solid rgba(74, 163, 255, .45);
  outline-offset: 3px;
}
.auth-tabs__content {
  padding-top: .25rem;
}
.auth-form {
  display: grid;
  gap: 1rem;
}
.auth-form .form-label {
  color: rgba(205, 214, 225, .9);
  font-weight: 500;
}
.auth-form .form-control {
  background: rgba(8, 12, 18, 0.7);
  border: 1px solid rgba(106, 124, 145, .35);
  color: #f3f6fb;
  border-radius: 12px;
  padding: .65rem .85rem;
}
.auth-form .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 .2rem rgba(74, 163, 255, .18);
  background: rgba(10, 16, 23, 0.92);
  color: #fff;
}
.auth-submit {
  justify-self: start;
  padding-inline: 1.85rem;
}
.auth-feedback { 
  font-size: .92rem;
  color: var(--bad);
  background: rgba(255, 107, 107, .14);
  border: 1px solid rgba(255, 107, 107, .35);
  border-radius: 14px;
  padding: .65rem .85rem;
}
.auth-feedback.success {
  color: var(--ok);
  background: rgba(53, 194, 139, .16);
  border-color: rgba(53, 194, 139, .45);
}
.form-feedback {
  font-size: .92rem;
  color: var(--bad);
  background: rgba(255, 107, 107, .14);
  border: 1px solid rgba(255, 107, 107, .35);
  border-radius: 12px;
  padding: .65rem .85rem;
  margin-top: .2rem;
  grid-column: 1 / -1;
}
.form-feedback.success {
  color: var(--ok);
  background: rgba(53, 194, 139, .16);
  border-color: rgba(53, 194, 139, .45);
}
.form-feedback[hidden] {
  display: none !important;
}
.auth-meta {
  margin: 0;
  font-size: .85rem;
  text-align: center;
  color: rgba(198, 212, 228, .7);
}
.auth-meta a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(198, 212, 228, .4);
}
.auth-meta a:hover {
  color: #fff;
  text-decoration-color: currentColor;
}

.mcp-admin {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mcp-admin__status {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.mcp-admin__status-text {
  font-size: .95rem;
  color: rgba(198, 212, 228, .85);
}

.mcp-admin__config {
  margin: 0;
  padding: 0;
  display: grid;
  gap: .35rem;
}

.mcp-admin__config-row {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  flex-wrap: wrap;
  font-size: .9rem;
}

.mcp-admin__config-row dt {
  font-weight: 600;
  min-width: 6.5rem;
  color: rgba(198, 212, 228, .9);
}

.mcp-admin__config-row dd {
  margin: 0;
  color: rgba(198, 212, 228, .78);
  word-break: break-word;
}

.backup-admin {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.backup-admin__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}

.backup-admin__status-text {
  font-size: .95rem;
  color: rgba(198, 212, 228, .85);
}

.backup-admin__details {
  margin: 0;
  padding: 0;
  display: grid;
  gap: .35rem;
}

.backup-admin__details-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .75rem;
  font-size: .9rem;
}

.backup-admin__details-row dt {
  font-weight: 600;
  min-width: 6.5rem;
  color: rgba(198, 212, 228, .9);
}

.backup-admin__details-row dd {
  margin: 0;
  color: rgba(198, 212, 228, .78);
  word-break: break-word;
}

.backup-admin__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.backup-admin__settings {
  gap: 1rem;
}

.backup-admin__resolved {
  grid-column: 1 / -1;
  font-size: .85rem;
}

.backup-admin__log-table table {
  width: 100%;
}

.mcp-admin__actions,
.mcp-admin__test-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.mcp-admin__tests {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.mcp-admin__tests-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.mcp-admin__test-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.mcp-admin__test-results li {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(198, 212, 228, .12);
  border-radius: 12px;
  padding: .55rem .75rem;
}

.mcp-admin__test-name {
  font-weight: 600;
  color: rgba(255, 255, 255, .92);
}

.mcp-admin__test-message {
  flex: 1 1 auto;
  font-size: .9rem;
  color: rgba(198, 212, 228, .85);
}

.mcp-admin__test-empty {
  padding: .35rem 0;
  font-size: .9rem;
  color: rgba(198, 212, 228, .75);
}

.log-output {
  background: rgba(9, 14, 22, .92);
  border: 1px solid rgba(198, 212, 228, .16);
  border-radius: 12px;
  padding: 1rem;
  font-family: 'Fira Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: .85rem;
  line-height: 1.45;
  max-height: 280px;
  overflow: auto;
  color: rgba(218, 228, 243, .9);
  white-space: pre-wrap;
  word-break: break-word;
}

.header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.header-copy {
  flex: 1 1 420px;
  min-width: 0;
}
.header-copy h1 {
  margin: .4rem 0 .2rem;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.app-brand h1 {
  margin: 0;
}

.app-brand__logo {
  width: clamp(44px, 6vw, 64px);
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 18px rgba(8, 12, 18, 0.55));
  border-radius: 12px;
}
.user-bar {
  display: flex;
  align-items: center;
  gap: .8rem;
  background: rgba(12, 17, 22, 0.65);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .45rem .9rem;
  box-shadow: 0 20px 40px -24px var(--shadow);
  flex-wrap: nowrap;
  flex: 0 0 auto;
}

@media (min-width: 720px) {
  .header-top {
    align-items: center;
    flex-wrap: nowrap;
  }

  .user-bar {
    margin-left: auto;
  }
}
.user-bar__info {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.user-bar__greeting {
  font-weight: 600;
  color: #fff;
}
.user-bar__greeting,
.user-bar__profile,
.badge--role {
  white-space: nowrap;
}
.user-bar__profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.user-bar__profile svg {
  width: 1.3rem;
  height: 1.3rem;
}
.user-bar__profile:hover,
.user-bar__profile:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}
.user-bar__profile:focus-visible {
  outline: 2px solid rgba(74, 163, 255, 0.6);
  outline-offset: 2px;
}
.user-bar__profile[hidden] {
  display: none !important;
}
.badge--role {
  background: rgba(74, 163, 255, 0.18);
  color: var(--accent);
  border: 1px solid rgba(74, 163, 255, 0.4);
}
.user-bar__logout {
  max-width: none;
  max-height: none;
  padding-inline: 1.2rem;
}
.badge--role[hidden] {
  display: none !important;
}
.container { width: min(1500px, 96vw); margin: 0 auto; padding: 1.2rem 0; }
header h1 { margin: .4rem 0 .2rem; font-size: 1.9rem; letter-spacing: .3px; color: white; }
h2 { color: white !important; }
h3 { color: white !important; }
.subtle { color: var(--muted); margin: .2rem 0 .6rem; color: white !important; }

footer .footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}

footer .footer-links .footer-logo-link {
  margin-left: auto;
}
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)) , var(--card) !important;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  margin: 1rem 0;
  box-shadow: 0 30px 60px -24px var(--shadow);
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: .8rem;
}
.grid > * {
  min-width: 0;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
.grid--profile {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .grid--profile {
    grid-template-columns: 1fr;
  }
}
.grid__full {
  grid-column: 1 / -1;
}
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--checkbox {
  align-items: flex-start;
  gap: .4rem;
}
.field--checkbox > label {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .95rem;
  color: var(--text);
  cursor: pointer;
}
.field--checkbox > label input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 0.25rem;
  display: inline-grid;
  place-content: center;
  transition: background-color .15s ease-in-out, border-color .15s ease-in-out,
    box-shadow .15s ease-in-out;
  cursor: pointer;
}

.field--checkbox > label input[type="checkbox"]:hover {
  border-color: rgba(13, 110, 253, 0.6);
}

.field--checkbox > label input[type="checkbox"]:focus {
  outline: 0;
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.field--checkbox > label input[type="checkbox"]:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M4 8.5l2 2 5-5'/%3e%3c/svg%3e");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 0.65rem 0.65rem;
}

.field--checkbox > label input[type="checkbox"]:indeterminate {
  background-color: #0d6efd;
  border-color: #0d6efd;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M3.5 8h9'/%3e%3c/svg%3e");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 0.65rem 0.65rem;
}
.field--checkbox > label span {
  line-height: 1.3;
}
.form-hint { font-size: .8rem; display: block; margin-top: -.2rem; }
.drop-hint { grid-column: 1 / -1; margin-top: .2rem; }
#addForm,
#expenseForm { transition: background-color .2s ease, outline-color .2s ease; border-radius: 14px; }
#addForm.file-drop-active,
#expenseForm.file-drop-active {
  outline: 2px dashed var(--accent);
  outline-offset: 6px;
  background: rgba(74, 163, 255, 0.08);
}
label { font-size: .9rem; color: var(--muted); }
input, select, textarea, button {
  background: #0c1116; color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px; padding: .45rem .55rem;
  font-size: 1rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-weak); border-color: var(--accent); }
button.primary { background: linear-gradient(180deg, #2b7bd5, #1b5aa5); border: none; max-height: 52px; }
button.primary:hover { filter: brightness(1.05); }
button:disabled {
  cursor: not-allowed;
}
button.primary:disabled,
button.primary:disabled:hover,
button.primary:disabled:focus-visible {
  background: linear-gradient(180deg, rgba(43, 123, 213, 0.45), rgba(27, 90, 165, 0.45));
  color: rgba(229, 236, 243, 0.6);
  filter: none;
  outline: none;
}
button.ghost,
a.ghost {
  background: transparent;
  border: 1px solid var(--border);
  max-height: 52px;
}
button.ghost:disabled,
button.ghost:disabled:hover,
button.ghost:disabled:focus-visible {
  color: rgba(198, 212, 228, 0.45);
  border-color: rgba(28, 35, 43, 0.7);
  background: rgba(12, 17, 22, 0.6);
  outline: none;
}

button.ghost.ghost--danger {
  color: rgba(255, 146, 146, 0.92);
  border-color: rgba(220, 53, 69, 0.6);
  background: rgba(220, 53, 69, 0.12);
}

button.ghost.ghost--danger:hover,
button.ghost.ghost--danger:focus-visible {
  color: #fff;
  border-color: rgba(220, 53, 69, 0.8);
  background: rgba(220, 53, 69, 0.2);
}

button.ghost.ghost--danger:focus-visible {
  outline: 2px solid rgba(220, 53, 69, 0.55);
  outline-offset: 2px;
}
a.ghost {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.1rem;
  border-radius: 999px;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
a.ghost:hover,
a.ghost:focus-visible {
  color: #fff;
  border-color: var(--accent);
  background: rgba(74, 163, 255, 0.12);
  text-decoration: none;
}
a.ghost:focus-visible {
  outline: 2px solid rgba(74, 163, 255, 0.5);
  outline-offset: 2px;
}
.row { display: flex; gap: .6rem; margin-top: .6rem; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; margin-bottom: .8rem; }
.kpi { background: #0e141a; border: 1px solid var(--border); border-radius: 12px; padding: .8rem; }
.kpi-label { color: var(--muted); font-size: .85rem; }
.kpi-value { font-weight: 700; font-size: 1.4rem; margin-top: .25rem; color: white; }
.kpi-value__open { color: var(--warn); font-style: italic; }
.chart-breakdown {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(12, 17, 22, 0.62);
  display: grid;
  gap: .6rem;
}
.chart-breakdown--active {
  border-color: rgba(74, 163, 255, 0.35);
  box-shadow: 0 18px 36px -28px rgba(74, 163, 255, 0.55);
}
.chart-breakdown__hint,
.chart-breakdown__empty {
  margin: 0;
  color: var(--muted);
}
.chart-breakdown__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}
.chart-breakdown__total {
  margin: 0 0 .75rem;
  font-size: .92rem;
  color: rgba(229, 236, 243, .88);
}
.amount-open {
  color: var(--warn);
  font-style: italic;
}
.chart-breakdown__divider {
  border: 0;
  border-top: 1px solid rgba(229, 236, 243, .2);
  margin: 1.25rem 0;
}
.chart-breakdown__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .35rem;
}
.chart-breakdown__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  font-size: .95rem;
  color: rgba(229, 236, 243, .9);
}
.chart-breakdown__item--with-logo {
  align-items: center;
}
.chart-breakdown__label { 
  color: rgba(229, 236, 243, .95);
  word-break: break-word;
  display: grid;
  gap: .2rem;
}
.chart-breakdown__type {
  font-size: .75rem;
  letter-spacing: .05em;
  color: rgba(229, 236, 243, .65);
  font-weight: 600;
}
.chart-breakdown__item--with-logo .chart-breakdown__type {
  margin-left: calc(2.1rem + .55rem);
}
.chart-breakdown__note {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.25;
}
.chart-breakdown__item--with-logo .chart-breakdown__note {
  margin-left: calc(2.1rem + .55rem);
}
.chart-breakdown__label-content {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.chart-breakdown__label-text {
  display: inline-block;
  word-break: break-word;
}
.chart-breakdown__logo {
  flex-shrink: 0;
}
.chart-breakdown__value {
  color: rgba(229, 236, 243, .88);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.security-source {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.security-source__text {
  display: grid;
  gap: .15rem;
  min-width: 0;
}
.security-source__name {
  font-weight: 600;
  color: rgba(229, 236, 243, .95);
  word-break: break-word;
}

.security-source__subtitle {
  font-size: .75rem;
  letter-spacing: .05em;
  color: rgba(229, 236, 243, .65);
  font-weight: 600;
}
.security-source__isin {
  font-size: .75rem;
  color: rgba(229, 236, 243, .65);
  font-weight: 500;
}
.security-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .65rem;
  background: rgba(17, 24, 32, 0.85);
  border: 1px solid rgba(229, 236, 243, 0.1);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  color: rgba(229, 236, 243, .78);
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
}
.security-logo--sm {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: .55rem;
  font-size: .78rem;
}
.security-logo--md {
  width: 2.6rem;
  height: 2.6rem;
}
.security-logo__initial {
  pointer-events: none;
  line-height: 1;
}
.security-logo__img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}
.security-logo[data-logo-state='ready'] {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(229, 236, 243, 0.28);
  color: rgba(9, 14, 20, 0.85);
}
.security-logo[data-logo-state='ready'] .security-logo__img {
  display: block;
}
.security-logo[data-logo-state='ready'] .security-logo__initial {
  display: none;
}
.security-logo[data-logo-state='loading']::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(74, 163, 255, 0.2));
  opacity: .35;
  animation: security-logo-pulse 1.2s ease-in-out infinite;
}
.security-logo[data-logo-state='unavailable'] {
  background: rgba(17, 24, 32, 0.82);
  border-color: rgba(229, 236, 243, 0.12);
  color: rgba(229, 236, 243, 0.58);
}
.security-logo[data-logo-state='loading'] .security-logo__initial {
  opacity: .7;
}
@keyframes security-logo-pulse {
  0% { opacity: .3; }
  50% { opacity: .55; }
  100% { opacity: .3; }
}
.security-summary {
  margin-top: 1.6rem;
  padding: 1.2rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(12, 17, 22, 0.6);
  display: grid;
  gap: 1rem;
}
.security-summary__header {
  display: grid;
  gap: .2rem;
}
.security-summary__header h3 {
  margin: 0;
}
.security-summary__description {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
}
.security-summary__empty { 
  margin: 0; 
  font-size: .95rem; 
  color: rgba(229, 236, 243, .82); 
}
.security-summary__empty[hidden] { 
  display: none !important; 
}
.security-summary__table-wrap {
  border-radius: 12px;
}
.security-summary__table-wrap[hidden] { 
  display: none !important; 
}
.security-summary__table {
  width: 100%;
}

#securitySummaryTable {
  table-layout: fixed;
}

#securitySummaryTable th:nth-child(1),
#securitySummaryTable td:nth-child(1) {
  width: 90%;
  min-width: 220px;
}

#securitySummaryTable th:nth-child(2),
#securitySummaryTable td:nth-child(2) {
  width: 110px;
  min-width: 110px;
  white-space: nowrap;
}

#securitySummaryTable th:nth-child(3),
#securitySummaryTable td:nth-child(3) {
  width: 80px;
  min-width: 80px;
}

#expenseSummaryTable {
  table-layout: fixed;
}

#expenseSummaryTable th:first-child,
#expenseSummaryTable td:first-child {
  width: 90%;
  min-width: 220px;
}

#expenseSummaryTable th:nth-child(2),
#expenseSummaryTable td:nth-child(2) {
  width: 110px;
  min-width: 110px;
  white-space: nowrap;
}

#expenseSummaryTable th:nth-child(3),
#expenseSummaryTable td:nth-child(3) {
  width: 80px;
  min-width: 80px;
}

#securityTable {
  table-layout: auto;
}

#securityTable th:nth-child(1),
#securityTable td:nth-child(1) {
  min-width: 240px !important;
}

#securityTable th:nth-child(2),
#securityTable td:nth-child(2) {
  min-width: 140px !important;
  white-space: nowrap;
}

#securityTable th:nth-child(3),
#securityTable td:nth-child(3) {
  min-width: 140px !important;
  white-space: nowrap;
}

#securityTable th:nth-child(4),
#securityTable td:nth-child(4) {
  min-width: 130px !important;
  white-space: nowrap;
}

#securityTable th:nth-child(5),
#securityTable td:nth-child(5) {
  min-width: 180px !important;
  white-space: nowrap;
}

#securityTable th:nth-child(6),
#securityTable td:nth-child(6) {
  min-width: 220px !important;
}

#securityTable th:nth-child(7),
#securityTable td:nth-child(7) {
  width: 110px !important;
  min-width: 110px !important;
}

#securityTable td.actions {
  display: table-cell;
  text-align: right;
  vertical-align: middle;
}

#securityTable td.actions .actions__inner {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: .45rem;
  flex-wrap: nowrap;
}

.security-cagr {
  font-size: .9rem;
  color: rgba(229, 236, 243, .9);
}

.security-cagr__grid {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.security-cagr__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
}

.security-cagr__label {
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(229, 236, 243, .65);
}

.security-cagr__value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: rgba(229, 236, 243, .95);
}

.security-dividend {
  vertical-align: top;
}

.security-dividend__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem;
}

.security-dividend__item + .security-dividend__item {
  margin-top: .35rem;
}

.security-dividend__label {
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(229, 236, 243, .62);
}

.security-dividend__value {
  margin-left: auto;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
  color: rgba(229, 236, 243, .95);
}


.security-summary__table tbody tr.security-summary__row--active {
  background: rgba(74, 163, 255, 0.14);
}
.security-summary__table tbody tr.security-summary__row--active td {
  border-bottom: 1px solid rgba(74, 163, 255, 0.28);
}
.security-summary__table td.security-summary__value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(229, 236, 243, .92);
}
.security-summary__table td.security-summary__actions {
  text-align: center;
  width: 88px;
}
.security-summary__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}
.security-summary__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  padding: .75rem .85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(8, 12, 18, 0.55);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.security-summary__item:hover,
.security-summary__item:focus-within {
  border-color: rgba(74, 163, 255, 0.35);
  background: rgba(10, 15, 21, 0.72);
}
.security-summary__item--active {
  border-color: rgba(74, 163, 255, 0.6);
  box-shadow: 0 16px 30px -24px rgba(74, 163, 255, 0.55);
}
.security-summary__name {
  font-weight: 600;
  color: rgba(229, 236, 243, .95);
  word-break: break-word;
}
.security-summary__meta {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
}
.security-summary__meta-text {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}
.security-summary__type {
  font-size: .85rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.2;
}
.security-summary__name-text {
  font-weight: 600;
  color: rgba(229, 236, 243, .95);
  word-break: break-word;
}
.security-summary__value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(229, 236, 243, .92);
}
.icon-button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 15, 21, 0.85);
  color: rgba(229, 236, 243, .78);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.icon-button__label {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}
.icon-button svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}
.icon-button:hover,
.icon-button:focus-visible {
  color: #fff;
  border-color: rgba(74, 163, 255, 0.6);
  background: rgba(74, 163, 255, 0.16);
  text-decoration: none;
}
.icon-button:focus-visible {
  outline: 2px solid rgba(74, 163, 255, 0.55);
  outline-offset: 2px;
}
.icon-button--muted {
  color: rgba(229, 236, 243, .7);
  background: rgba(12, 17, 22, 0.7);
}
.icon-button--danger {
  color: rgba(255, 146, 146, 0.92);
  border-color: rgba(220, 53, 69, 0.6);
  background: rgba(220, 53, 69, 0.18);
}
.icon-button--danger:hover,
.icon-button--danger:focus-visible {
  color: #fff;
  border-color: rgba(220, 53, 69, 0.8);
  background: rgba(220, 53, 69, 0.28);
}
.icon-button--danger:focus-visible {
  outline-color: rgba(220, 53, 69, 0.65);
}
.icon-button--info {
  font-size: .85rem;
  font-weight: 600;
  color: rgba(74, 163, 255, 0.95);
  border-color: rgba(74, 163, 255, 0.6);
  background: rgba(74, 163, 255, 0.16);
}
.icon-button--info svg {
  width: 1.25rem;
  height: 1.25rem;
}
.icon-button--info:hover,
.icon-button--info:focus-visible {
  color: #fff;
  border-color: rgba(74, 163, 255, 0.85);
  background: rgba(74, 163, 255, 0.28);
}
.icon-button--info:focus-visible {
  outline-color: rgba(74, 163, 255, 0.65);
}

.icon-button--info .icon-button__label {
  display: inline-block;
}
.security-summary__chart {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(8, 12, 18, 0.6);
  padding: 1rem 1.1rem 1.2rem;
  display: grid;
  gap: 1.1rem;
}
.security-summary__chart[hidden] {
  display: none !important;
}
.security-summary__chart-stats {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.security-summary__chart-stat {
  border: 1px solid rgba(138, 166, 191, 0.18);
  border-radius: 12px;
  background: rgba(12, 18, 26, 0.7);
  padding: .75rem 1rem;
  display: grid;
  gap: .35rem;
}
.security-summary__chart-stat-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: rgba(214, 224, 236, 0.65);
}
.security-summary__chart-stat-value {
  font-size: 1.15rem;
  font-weight: 600;
  color: #f4f9ff;
}
.security-summary__chart-stat-value.is-positive {
  color: var(--ok);
}
.security-summary__chart-stat-value.is-negative {
  color: var(--bad);
}
.security-summary__chart-stat-value.is-neutral {
  color: var(--muted);
}
.security-summary__chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.security-summary__chart-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.security-summary__chart-hint {
  margin: 0;
  font-size: .85rem;
  color: var(--muted);
}
.security-summary__chart-empty {
  margin: 1.6rem 0;
  text-align: center;
  font-size: .95rem;
  color: rgba(214, 224, 236, 0.78);
}
.security-summary__chart canvas {
  width: 100% !important;
  max-width: 100%;
  max-height: clamp(200px, 36vh, 320px);
}

.chart-tooltip {
  position: absolute;
  background: rgba(12, 17, 22, 0.92);
  border: 1px solid rgba(74, 163, 255, 0.35);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(8, 12, 18, 0.55);
  padding: .6rem .75rem;
  color: #ffffff;
  font-size: .82rem;
  line-height: 1.4;
  min-width: 180px;
  max-width: 260px;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
  transition: opacity .1s ease;
  z-index: 1000;
}

.chart-tooltip__title {
  margin: 0 0 .45rem;
  font-weight: 600;
  font-size: .85rem;
  color: #f4f9ff;
}

.chart-tooltip__items {
  display: grid;
  gap: .35rem;
}

.chart-tooltip__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .5rem;
}

.chart-tooltip__marker {
  width: .65rem;
  height: .65rem;
  border-radius: 50%;
  background: rgba(154, 163, 173, 0.75);
}

.chart-tooltip__label {
  color: rgba(244, 249, 255, 0.85);
  white-space: nowrap;
}

.chart-tooltip__value {
  color: #f4f9ff;
  font-weight: 600;
  white-space: nowrap;
}

.chart-tooltip__extras {
  margin-top: .65rem;
  padding-top: .55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  gap: .35rem;
}

.chart-tooltip__extra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.chart-tooltip__extra-label {
  color: rgba(244, 249, 255, 0.75);
}

.chart-tooltip__extra-value {
  font-weight: 600;
  color: #f4f9ff;
  white-space: nowrap;
}

.chart-tooltip__extra-value.is-positive {
  color: var(--ok);
}

.chart-tooltip__extra-value.is-negative {
  color: var(--bad);
}

.chart-tooltip__extra-value.is-neutral {
  color: var(--muted);
}
.card-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 1rem;
}
.card-headline h2 {
  margin: 0;
}
.year-switcher {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(12, 17, 22, 0.7);
  box-shadow: 0 10px 20px -18px var(--shadow);
}
.year-switcher__btn {
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 999px;
  background: #0c1116;
  transition: background-color .15s ease, filter .15s ease;
}
.year-switcher__btn:hover,
.year-switcher__btn:focus {
  background: #131b1f;
  filter: brightness(1.05);
}
.year-switcher__select {
  min-width: 5.8rem;
  padding: .45rem 1.6rem .45rem .9rem;
  font-weight: 600;
  border-radius: 999px;
  text-align: center;
  background: #0c1116;
}
.year-switcher__select option {
  font-weight: 600;
}
.profile-main {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding-top: 1rem;
  padding-bottom: 2rem;
}
.profile-back {
  align-self: flex-start;
  color: white !important;
}
.profile-hint {
  margin: .2rem 0 1.2rem;
  color: rgba(198, 212, 228, 0.78);
}
.profile-actions {
  display: flex;
  align-items: center;
  gap: .9rem;
  flex-wrap: wrap;
}
.profile-meta {
  font-size: .85rem;
  color: rgba(198, 212, 228, 0.7);
}
.api-key {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.api-key__help {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: .95rem 1rem;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: rgba(12, 18, 24, 0.45);
}
.api-key__help-text {
  margin: 0;
  color: rgba(198, 212, 228, 0.85);
}
.api-key__help button {
  align-self: flex-start;
}
@media (min-width: 768px) {
  .api-key__help {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .api-key__help button {
    align-self: center;
  }
  .api-key__help-text {
    max-width: 38rem;
  }
}
.api-key__status {
  margin: 0;
  color: rgba(198, 212, 228, 0.78);
}
.api-key__secret {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: .85rem .95rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(12, 18, 24, 0.65);
}
.api-key__secret-header {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.api-key__label {
  font-weight: 600;
}
.api-key__context {
  margin: 0;
  font-size: .85rem;
  color: rgba(198, 212, 228, 0.7);
}
.api-key__secret-field {
  display: flex;
  align-items: stretch;
  gap: .5rem;
}
.api-key__secret-field input {
  flex: 1;
  min-width: 0;
  font-family: 'Fira Code', 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}
.api-key__secret-field button {
  flex-shrink: 0;
}
.api-key__form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: .85rem .95rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(12, 18, 24, 0.45);
}
.api-key__form .field {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.api-key__form-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.api-key__list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.api-key__table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.api-key__table-actions button {
  min-width: 9.5rem;
}
.backup-log__actions-head,
.backup-log__actions-cell {
  text-align: right;
  white-space: nowrap;
}

.backup-log__message-cell {
  max-width: 26rem;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.tableWrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(12, 18, 24, 0.55);
  overflow: hidden;
}

.tableWrap table {
  width: 100%;
  border-collapse: collapse;
}

.tableWrap table thead th {
  background: #0c1217;
  color: var(--text);
  font-weight: 600;
}

.tableWrap table thead th,
.tableWrap table tbody td,
.tableWrap table tfoot th,
.tableWrap table tfoot td {
  padding: .65rem .75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.tableWrap table tbody tr:hover td {
  background: rgba(13, 20, 26, 0.6);
}

.tableWrap table tfoot th,
.tableWrap table tfoot td {
  background: #0c1217;
}

@media (max-width: 1200px) {
  .tableWrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .tableWrap table,
  .tableWrap .dataTables_wrapper {
    min-width: 600px;
  }
}

.table-footer__label {
  font-weight: 600;
  border-right: none;
}

.table-footer__spacer {
  border-left: none;
  color: transparent;
  pointer-events: none;
  user-select: none;
}

.table-footer__spacer::before {
  content: '';
}

.num-head,
td.num {
  text-align: right;
}

.tableWrap.tableWrap--expenses .dataTables_wrapper,
.tableWrap.tableWrap--income .dataTables_wrapper {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.tableWrap.tableWrap--expenses .dataTables_length,
.tableWrap.tableWrap--income .dataTables_length,
.tableWrap.tableWrap--expenses .dataTables_filter,
.tableWrap.tableWrap--income .dataTables_filter,
.tableWrap.tableWrap--expenses .dataTables_info,
.tableWrap.tableWrap--income .dataTables_info,
.tableWrap.tableWrap--expenses .dataTables_paginate,
.tableWrap.tableWrap--income .dataTables_paginate {
  margin: 0;
}

.tableWrap.tableWrap--expenses .dataTables_length label,
.tableWrap.tableWrap--income .dataTables_length label,
.tableWrap.tableWrap--expenses .dataTables_filter label,
.tableWrap.tableWrap--income .dataTables_filter label {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.tableWrap.tableWrap--expenses .dataTables_filter input,
.tableWrap.tableWrap--income .dataTables_filter input,
.tableWrap.tableWrap--expenses .dataTables_length select,
.tableWrap.tableWrap--income .dataTables_length select {
  max-width: 220px;
}

/* INCOMING TABLE */
#incomingTable td .subtle { display: block; font-size: .85rem; }
#incomingTable td .status-type-hint {
  margin: 0 0 .35rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted) !important;
}

#incomingTable th:nth-child(1),
#incomingTable td:nth-child(1) {
  width: 78px;
  min-width: 78px;
  white-space: nowrap;
}

#incomingTable th:nth-child(2),
#incomingTable td:nth-child(2) {
  width: 90%;
  min-width: 220px;
  word-break: break-word;
}

#incomingTable th:nth-child(3),
#incomingTable td:nth-child(3) {
  width: 110px;
  min-width: 110px;
  white-space: nowrap;
}

#incomingTable th:nth-child(4),
#incomingTable td:nth-child(4) {
  width: 90px;
  min-width: 90px;
  word-break: break-word;
}

#incomingTable th:nth-child(5),
#incomingTable td:nth-child(5) {
  width: 88px;
  min-width: 88px;
  text-align: center;
}

/* EXPENSE TABLE */
#expenseTable thead th:nth-child(2) {
  padding-left: calc(.7rem + 2.1rem + .75rem);
}

#expenseTable th:nth-child(1),
#expenseTable td:nth-child(1) {
  width: 78px;
  min-width: 78px;
  white-space: nowrap;
}

#expenseTable th:nth-child(2),
#expenseTable td:nth-child(2) {
  width: 90%;
  min-width: 220px;
  word-break: break-word;
}

#expenseTable th:nth-child(3),
#expenseTable td:nth-child(3) {
  width: 110px;
  min-width: 110px;
  white-space: nowrap;
}

#expenseTable th:nth-child(4),
#expenseTable td:nth-child(4) {
  width: 90px;
  min-width: 90px;
  word-break: break-word;
}

#expenseTable th:nth-child(5),
#expenseTable td:nth-child(5) {
  width: 88px;
  min-width: 88px;
  text-align: center;
}
#expenseTable td .expense-note {
  display: block;
  margin-top: .3rem;
  font-size: .85rem;
  color: var(--muted);
}

#incomingTable td .incoming-note {
  display: block;
  margin-top: .3rem;
  font-size: .85rem;
  color: var(--muted);
}

.expense-meta { display: flex; flex-direction: column; gap: .2rem; }
.expense-meta__type {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--muted);
}
.expense-meta__interval {
  font-weight: 500;
  font-size: .88rem;
}
.expense-meta__end {
  font-size: .75rem;
  margin: 0;
  color: var(--muted) !important;
}
@media (max-width: 700px) {
  #expenseTable thead th:nth-child(2) {
    padding-left: .7rem;
  }
}
td.empty { text-align: center; color: var(--muted); font-style: italic; }
th.num, td.num { text-align: right; }
tbody tr:hover { background: #0d141a; }
.badge { display: inline-block; padding: .2rem .5rem; border-radius: 999px; font-size: .8rem; }
.badge.ok { background: rgba(53,194,139,.18); color: var(--ok); border: 1px solid rgba(53,194,139,.5); }
.badge.info { background: rgba(74,163,255,.18); color: var(--accent); border: 1px solid rgba(74,163,255,.45); }
.badge.warn { background: rgba(255,176,32,.18); color: var(--warn); border: 1px solid rgba(255,176,32,.5); }
.badge.bad { background: rgba(255,107,107,.18); color: var(--bad); border: 1px solid rgba(255,107,107,.5); }
.status-chip { display: inline-flex; align-items: center; padding: .2rem .6rem; border-radius: 999px; font-size: .85rem; font-weight: 600; letter-spacing: .01em; border: 1px solid transparent; text-transform: none; }
.status-chip.status-erledigt { background: rgba(53,194,139,.18); border-color: rgba(53,194,139,.45); color: var(--ok); }
.status-chip.status-offen { background: rgba(255,176,32,.18); border-color: rgba(255,176,32,.45); color: var(--warn); }
.help { color: var(--muted); font-size: .9rem; }
#expenseTable td.actions {
  display: table-cell;
  text-align: center;
}

#expenseTable td.actions .actions__inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  flex-wrap: wrap;
}

.actions { display: flex; gap: .25rem; justify-content: flex-end; flex-wrap: wrap; }
.actions-head { text-align: right; }
#incomingTable td.actions {
  border-bottom: none;
  flex-wrap: nowrap;
  justify-content: center;
  gap: .35rem;
}
.actions button:not(.icon-button) { padding: .45rem .6rem; font-size: .9rem; }
a.linkish { color: var(--accent); text-decoration: none; }
a.linkish:hover { text-decoration: underline; }
canvas { width: 100%; height: auto; background: #0b0f14; border: 1px solid var(--border); border-radius: 12px; }
.importLabel {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
  padding: .75rem .95rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(12, 18, 24, 0.65);
  font-size: .95rem;
  line-height: 1.4;
}

.importLabel--success {
  color: var(--ok);
  background: rgba(53, 194, 139, 0.16);
  border-color: rgba(53, 194, 139, 0.45);
}

.importLabel--warning {
  color: var(--warn);
  background: rgba(255, 176, 32, 0.18);
  border-color: rgba(255, 176, 32, 0.45);
}

.importLabel--error {
  color: var(--bad);
  background: rgba(255, 107, 107, 0.14);
  border-color: rgba(255, 107, 107, 0.35);
}

.importLabel__headline {
  font-weight: 600;
}

.importLabel__meta {
  font-size: .85rem;
  color: inherit;
  opacity: .9;
}

.importLabel__errors {
  margin: 0;
  padding-left: 1.2rem;
  font-size: .85rem;
}

.importLabel__errors li {
  margin: 0;
  padding: 0;
}


/* Privacy lightbox */
body.no-scroll {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(.75rem, 1.8vw, 2rem);
  background: rgba(5, 9, 14, 0.82);
  backdrop-filter: blur(12px);
  z-index: 1080;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
}

.lightbox.is-visible {
  opacity: 1;
  visibility: visible;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__dialog {
  width: min(960px, 100%);
  max-height: min(96vh, 1040px);
  background: linear-gradient(185deg, rgba(255, 255, 255, 0.05) 0%, rgba(10, 15, 21, 0.92) 65%), var(--card);
  border: 1px solid rgba(138, 166, 191, 0.22);
  border-radius: 22px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.lightbox__dialog--chart {
  width: min(860px, 100%);
  max-height: min(82vh, 680px);
}

.lightbox__head {
  padding: 1.4rem 2rem 0;
  padding-right: calc(2rem + 3.5rem);
}

.lightbox__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  flex-wrap: wrap;
}

.lightbox__title-row h2 {
  flex: 1;
}

.lightbox__title-row .year-switcher {
  flex-shrink: 0;
}

.lightbox__head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.lightbox__close {
  appearance: none;
  border: 0;
  background: rgba(18, 24, 31, 0.7);
  color: #fff;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, color .2s ease;
}

.lightbox__close span {
  font-size: 1.7rem;
  line-height: 1;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  background: rgba(74, 163, 255, 0.25);
  color: var(--accent);
  transform: scale(1.05);
  outline: none;
}

.lightbox__body {
  padding: 1.1rem 1.8rem 1.9rem;
  overflow-y: auto;
  display: grid;
  gap: 1.35rem;
  scrollbar-width: thin;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
}

#chatgptExampleContent {
  width: 100%;
}

#chatgptExampleContent .container {
  width: min(100%, 820px);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

#chatgptExampleContent pre {
  overflow-x: auto;
}

#privacyLightboxContent .container {
  width: min(100%, 820px);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

#privacyLightboxContent pre {
  overflow-x: auto;
}

.lightbox__body::-webkit-scrollbar {
  width: 8px;
}

.lightbox__body::-webkit-scrollbar-thumb {
  background: rgba(140, 160, 185, 0.35);
  border-radius: 999px;
}

.privacy-modal__content {
  color: var(--text);
  display: grid;
  gap: 1.25rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.privacy-modal__content header {
  display: grid;
  gap: .4rem;
  background: linear-gradient(160deg, rgba(74, 163, 255, 0.2), rgba(18, 28, 43, 0.85));
  border: 1px solid rgba(138, 166, 191, 0.35);
  border-radius: 20px;
  padding: 1.2rem 1.45rem;
  box-shadow: 0 24px 60px -36px rgba(0, 0, 0, 0.75);
}

.privacy-modal__content header h1 {
  margin: 0;
  font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  letter-spacing: .01em;
  color: #f7fbff;
}

.privacy-modal__content header p {
  margin: 0;
  color: rgba(210, 224, 240, 0.78);
  line-height: 1.6;
}

.privacy-modal__content .legal-section,
.privacy-modal__content .guide-section {
  position: relative;
  display: grid;
  gap: .9rem;
  background: rgba(10, 16, 23, 0.85);
  border: 1px solid rgba(138, 166, 191, 0.28);
  border-radius: 20px;
  padding: 1.45rem 1.6rem;
  box-shadow: 0 30px 60px -40px rgba(5, 10, 16, 0.85);
  max-width: 100%;
  width: 100%;
  min-width: 0;
}

.privacy-modal__content .legal-section::before,
.privacy-modal__content .guide-section::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(74, 163, 255, 0.35), rgba(53, 194, 139, 0.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: .55;
}

.privacy-modal__content .legal-section h2,
.privacy-modal__content .guide-section h2 {
  margin: 0;
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
  color: #f4f9ff;
  font-weight: 600;
}

.privacy-modal__content .legal-section h3,
.privacy-modal__content .legal-section h4,
.privacy-modal__content .guide-section h3,
.privacy-modal__content .guide-section h4 {
  margin: 1rem 0 .3rem;
  color: rgba(222, 235, 255, 0.88);
  font-weight: 600;
}

.privacy-modal__content .legal-section h3:first-child,
.privacy-modal__content .legal-section h4:first-child,
.privacy-modal__content .guide-section h3:first-child,
.privacy-modal__content .guide-section h4:first-child {
  margin-top: 0;
}

.privacy-modal__content .legal-section p,
.privacy-modal__content .guide-section p {
  margin: 0;
  line-height: 1.6;
  color: rgba(186, 198, 213, 0.9);
}

.privacy-modal__content .legal-section p + p,
.privacy-modal__content .guide-section p + p {
  margin-top: .5rem;
}

.privacy-modal__content .legal-section strong,
.privacy-modal__content .guide-section strong {
  color: #f8fbff;
}

.privacy-modal__content .legal-section em,
.privacy-modal__content .guide-section em {
  color: rgba(222, 235, 255, 0.82);
}

.privacy-modal__content ul,
.privacy-modal__content ol {
  margin: 0;
  padding-left: 1.35rem;
  display: grid;
  gap: .4rem;
  color: rgba(186, 198, 213, 0.9);
}

.privacy-modal__content li::marker {
  color: rgba(74, 163, 255, 0.7);
}

.privacy-modal__content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(74, 163, 255, 0.45);
  text-underline-offset: 3px;
}

.privacy-modal__content a:hover {
  color: #90c9ff;
  text-decoration-color: currentColor;
}

.privacy-modal__content .border.rounded {
  background: rgba(8, 14, 20, 0.82);
  border: 1px solid rgba(138, 166, 191, 0.32);
  border-radius: 18px;
  padding: 1.3rem 1.4rem;
  display: grid;
  gap: .85rem;
  box-shadow: inset 0 0 0 1px rgba(74, 163, 255, 0.08);
}

.privacy-modal__content .border.rounded h4 {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(222, 235, 255, 0.95);
}

.privacy-modal__content .border.rounded p {
  margin: 0;
}

.privacy-modal__content pre {
  background: rgba(5, 10, 16, 0.85);
  border: 1px solid rgba(74, 163, 255, 0.25);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  color: rgba(220, 232, 247, 0.92);
  box-shadow: inset 0 0 0 1px rgba(74, 163, 255, 0.08);
  overflow-x: auto;
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.privacy-modal__content code {
  color: var(--accent);
  font-family: "JetBrains Mono", "SFMono-Regular", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.privacy-modal__content code.copy {
  user-select: all;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.privacy-modal__content .guide-section + .guide-section {
  margin-top: .75rem;
}

.privacy-modal__content .lead {
  color: rgba(210, 224, 240, 0.78);
}

.privacy-modal__content .schema-note {
  font-size: .85rem;
  color: rgba(154, 165, 179, 0.78);
}

.privacy-modal__content .step-list {
  counter-reset: steps;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  list-style: none;
}

.privacy-modal__content .step-list > li {
  counter-increment: steps;
  display: grid;
  gap: .4rem;
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  background: rgba(16, 25, 36, 0.75);
  border: 1px solid rgba(138, 166, 191, 0.22);
  box-shadow: inset 0 0 0 1px rgba(74, 163, 255, 0.08);
}

.privacy-modal__content .step-list > li::before {
  content: counter(steps) '.';
  font-weight: 600;
  color: var(--accent);
  background: rgba(74, 163, 255, 0.12);
  border: 1px solid rgba(74, 163, 255, 0.35);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1rem;
  margin-bottom: .25rem;
  align-self: flex-start;
  justify-self: flex-start;
}

.privacy-modal__content .step-list > li > *:first-child {
  margin-top: 0;
}

.privacy-modal__content .step-title {
  font-weight: 600;
  color: rgba(222, 235, 255, 0.92);
}

.privacy-modal__content .step-list p {
  color: rgba(186, 198, 213, 0.86);
}

.privacy-modal__content .small {
  font-size: .85rem;
  color: rgba(186, 198, 213, 0.75);
}

.privacy-modal__content .text-muted {
  color: rgba(154, 165, 179, 0.72) !important;
}

.privacy-modal__content .text-center {
  text-align: center;
}

.privacy-modal__content .py-4 {
  padding-block: 1.6rem;
}

.privacy-modal__content .mt-3 {
  margin-top: 1.1rem;
}

.privacy-modal__content .mb-4 {
  margin-bottom: 1.4rem;
}

.privacy-modal__content .mb-3 {
  margin-bottom: 1.1rem;
}

.privacy-modal__content .mb-2 {
  margin-bottom: .75rem;
}

.privacy-modal__content .mb-0 {
  margin-bottom: 0;
}

.privacy-modal__content .p-3 {
  padding: 1.3rem;
}

.privacy-modal__content .link-secondary {
  color: rgba(210, 224, 240, 0.78);
}

.privacy-modal__content .text-decoration-none {
  text-decoration: none;
}

.privacy-modal__content .alert {
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.35);
  color: rgba(255, 199, 199, 0.92);
}

.privacy-modal__content .alert-danger {
  background: rgba(255, 107, 107, 0.14);
}

.privacy-modal__content .alert a,
.privacy-modal__content .alert-link {
  color: #fff;
  font-weight: 600;
}

.privacy-modal__content .alert-link:hover {
  color: #d8e9ff;
}

@media (max-width: 640px) {
  .lightbox {
    padding: .85rem;
  }

  .lightbox__dialog {
    max-height: 98vh;
  }

  .lightbox__body {
    padding: .95rem 1.15rem 1.45rem;
    gap: 1.1rem;
  }
}

.app-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: flex-start;
  margin-top: 1.75rem;
}

.app-sidebar {
  position: sticky;
  top: 6.5rem;
  background: rgba(12, 17, 22, 0.72);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.5rem 1.35rem;
  box-shadow: 0 32px 60px -44px rgba(4, 8, 14, 0.9);
  display: grid;
  gap: 1.3rem;
}

.app-sidebar__heading {
  margin: 0;
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(198, 212, 228, .7);
}

.app-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .6rem;
}

.app-sidebar__item {
  margin: 0;
}

.app-sidebar__button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .75rem;
  background: linear-gradient(135deg, rgba(74, 163, 255, .98) 0%, rgba(123, 195, 255, 1) 100%) no-repeat padding-box,
              rgba(8, 12, 18, 0.6);
  background-size: 0% 100%, 100% 100%;
  background-position: left center, left center;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: .75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(209, 220, 233, .78);
  cursor: pointer;
  transition: color .2s ease, box-shadow .2s ease, border-color .2s ease,
              background-size .38s cubic-bezier(0.22, 1, 0.36, 1);
}

.app-sidebar__button:hover:not(.active) {
  color: #fff;
  background-size: 100% 100%, 100% 100%;
  border-color: rgba(92, 136, 178, .32);
}

.app-sidebar__button:focus-visible {
  outline: 3px solid rgba(74, 163, 255, 0.45);
  outline-offset: 3px;
  background-size: 100% 100%, 100% 100%;
}

.app-sidebar__button.active {
  color: #071019;
  background-size: 100% 100%, 100% 100%;
  box-shadow: 0 28px 45px -28px rgba(74, 163, 255, .82);
  border-color: rgba(118, 182, 255, .55);
}

.app-sidebar__button .app-sidebar__icon,
.app-sidebar__button .app-sidebar__label {
  transition: transform .38s cubic-bezier(0.22, 1, 0.36, 1), color .2s ease;
}

.app-sidebar__button:hover .app-sidebar__icon,
.app-sidebar__button.active .app-sidebar__icon {
  transform: translateX(.15rem);
}

.app-sidebar__button:hover .app-sidebar__label,
.app-sidebar__button.active .app-sidebar__label {
  transform: translateX(.05rem);
}

@media (prefers-reduced-motion: reduce) {
  .app-sidebar__button {
    transition: color .2s ease, box-shadow .2s ease, border-color .2s ease;
  }

  .app-sidebar__button .app-sidebar__icon,
  .app-sidebar__button .app-sidebar__label {
    transition: none;
  }

  .app-sidebar__button:hover .app-sidebar__icon,
  .app-sidebar__button.active .app-sidebar__icon,
  .app-sidebar__button:hover .app-sidebar__label,
  .app-sidebar__button.active .app-sidebar__label {
    transform: none;
  }
}

.app-sidebar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  color: currentColor;
}

.app-sidebar__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.app-sidebar__label {
  flex: 1;
  text-align: left;
}

.app-content {
  min-width: 0;
}

.app-content .tab-content {
  padding-top: 0;
}

.tab-pane {
  padding-top: .25rem;
}

.tab-pane .card:first-of-type {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .app-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-sidebar {
    position: static;
    padding: 1.2rem 1rem 1.4rem;
  }

  .app-sidebar__list {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
  }

  .app-sidebar__item {
    flex: 1 1 150px;
  }

  .app-sidebar__button {
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .app-sidebar {
    padding: 1rem;
    background: rgba(8, 12, 18, 0.62);
  }

  .app-sidebar__list {
    flex-direction: column;
  }

  .app-sidebar__button {
    justify-content: flex-start;
  }

  .tableWrap .security-logo {
    display: none !important;
  }

  .tableWrap .security-source {
    gap: .4rem;
  }
}

@media (max-width: 520px) {
  .app-layout {
    gap: 1.25rem;
  }

  .app-sidebar {
    padding: .85rem .75rem 1rem;
    border-radius: 18px;
    gap: .9rem;
  }

  .app-sidebar__heading {
    font-size: .78rem;
    letter-spacing: .09em;
  }

  .app-sidebar__list {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: .5rem;
    overflow-x: auto;
    padding-bottom: .3rem;
    margin: 0 -.25rem;
    padding-inline: .25rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .app-sidebar__list::-webkit-scrollbar {
    display: none;
  }

  .app-sidebar__item {
    flex: 0 0 auto;
  }

  .app-sidebar__button {
    min-width: max(150px, 52vw);
    padding: .65rem .85rem;
    border-radius: 14px;
    font-size: .95rem;
    gap: .6rem;
    scroll-snap-align: center;
  }

  .app-sidebar__icon {
    width: 1.1rem;
    height: 1.1rem;
  }

  .app-sidebar__label {
    white-space: nowrap;
  }
}


/* DataTables dark theme adjustments */
.dataTables_wrapper {
  color: var(--text);
  font-size: .95rem;
}

.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_info {
  color: var(--muted);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  background: #0c1116;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .35rem .6rem;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
  outline: 2px solid var(--accent-weak);
  border-color: var(--accent);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  background: #0c1116;
  border: 1px solid var(--border);
  color: var(--muted) !important;
  border-radius: 8px;
  padding: .35rem .65rem;
  margin: 0 .15rem;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button:focus {
  color: var(--text) !important;
  border-color: var(--accent);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--accent);
  color: #fff !important;
  border-color: var(--accent);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:focus {
  opacity: .45;
  cursor: default;
  color: var(--muted) !important;
  border-color: var(--border);
}

table.dataTable.no-footer {
  border-bottom: 1px solid var(--border);
}

table.dataTable tbody tr {
  background-color: transparent;
}

table.dataTable tbody tr:hover {
  background-color: #0d141a;
}
.tableWrap .dataTables_wrapper {
  padding: .75rem;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  margin: .45rem 0;
  color: white !important;
}
.table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: .6rem;
}

.table-controls .dataTables_length,
.table-controls .dataTables_filter {
  margin: 0;
}

.table-controls .dataTables_length,
.table-controls .dataTables_filter {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.table-controls .dataTables_filter input {
  width: 100%;
  max-width: 220px;
}

.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .6rem;
}

.table-footer .dataTables_info,
.table-footer .dataTables_paginate {
  margin: 0;
}

.table-footer .dataTables_paginate {
  display: flex;
  align-items: center;
  gap: .3rem;
}




.expense-table tbody td {
  vertical-align: top;
}

.chatgpt-logs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chatgpt-logs__item {
  background: var(--card-glass);
  border: 1px solid var(--card-glass-border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}

.chatgpt-logs__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.chatgpt-logs__details {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chatgpt-logs__section {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}

.chatgpt-logs__section > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.chatgpt-logs__payload {
  margin: 0.5rem 0 0;
  font-family: ui-monospace, SFMono-Regular, SFMono, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}

.chatgpt-logs__refresh,
.chatgpt-logs__clear {
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.chatgpt-logs__refresh {
  background: var(--accent);
  border: none;
  color: #fff;
}

.chatgpt-logs__refresh:not(:disabled):hover {
  background: var(--accent-weak);
}

.chatgpt-logs__clear {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  margin-left: 0.5rem;
}

.chatgpt-logs__clear:not(:disabled):hover {
  background: rgba(0, 0, 0, 0.05);
}

.chatgpt-logs__refresh:disabled,
.chatgpt-logs__clear:disabled {
  opacity: 0.5;
  cursor: default;
}

#chatgptLogsStatus[data-state="error"] {
  color: var(--bad);
}

#chatgptLogsStatus[data-state="success"] {
  color: var(--ok);
}

#chatgptLogsStatus[data-state="loading"] {
  color: var(--accent);
}
.openai-form {
  margin-bottom: 1.5rem;
  max-width: 520px;
}

.openai-form__input {
  display: flex;
  gap: .5rem;
}

.openai-form__input input {
  flex: 1;
}

.openai-form textarea {
  width: 100%;
  min-height: 7rem;
  resize: vertical;
  line-height: 1.4;
}

.openai-form__toggle {
  margin-top: auto;
  margin-bottom: auto;
}

.openai-form__actions {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
}

.openai-form__meta {
  margin-top: .75rem;
}

.openai-form__divider {
  border: 0;
  border-top: 1px solid rgba(229, 236, 243, .12);
  margin: 2rem 0 1.5rem;
}

.openai-form__logs-title {
  margin-bottom: .75rem;
}
