:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #1b1b1b;
  --muted: #4b5563;
  --accent: #1f6feb;
  --border: #e5e7eb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.5;
}

.auth-body {
  min-height: 100vh;
  background: var(--bg);
  position: relative;
}

.auth-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("/static/meteor.png") no-repeat center;
  background-size: 420px;
  opacity: 0.08;
  pointer-events: none;
}

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.auth-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.container {
  max-width: 1100px;
  margin: 24px auto 48px;
  padding: 0 18px;
}

.gathering-page .container {
  max-width: 1280px;
}

header {
  margin-bottom: 8px;
}

.site-header {
  position: relative;
  padding-right: 70px;
  min-height: 60px;
  padding-bottom: 2px;
}

.header-art {
  position: absolute;
  right: 0;
  top: 0;
  width: 60px;
  height: 60px;
  opacity: 1;
  z-index: 0;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
}

.header-art--default {
  border-radius: 8px;
}

.header-art--default img {
  object-fit: contain;
  background: transparent;
}

.has-default-profile .site-header {
  min-height: 32px;
  padding-right: 40px;
}

.has-default-profile .header-art {
  width: 27px;
  height: 27px;
  border-radius: 8px;
}

.header-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 720px) {
  .header-art {
    width: 48px;
    height: 48px;
    opacity: 1;
  }
  .site-header {
    min-height: 48px;
    padding-right: 60px;
  }
  .has-default-profile .site-header {
    min-height: 32px;
    padding-right: 40px;
  }
  .has-default-profile .header-art {
    width: 27px;
    height: 27px;
  }
}

.site-title,
.subtitle {
  position: relative;
  z-index: 1;
}

h1 {
  margin: 0 0 6px 0;
  font-size: 26px;
}

.site-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.title-logo {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.subtitle { color: var(--muted); }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.nav-link {
  color: #0f172a;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
  background: #e2e8f0;
}

.nav-link.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 12px rgba(30, 64, 175, 0.25);
}

.nav-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 4px;
}

.nav-user {
  font-size: 13px;
  color: var(--muted);
}

.logout-link {
  background: #f3f4f6;
}

.nav-button {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 12px rgba(30, 64, 175, 0.25);
}

.nav-button:hover {
  background: #1d4ed8;
}

@media (max-width: 720px) {
  .nav-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.gil-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  vertical-align: text-bottom;
  margin-left: 4px;
}

.footer {
  margin-top: 16px;
  padding: 12px 0 24px;
  border-top: 1px solid var(--border);
}

.admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.admin-actions {
  align-self: end;
}

.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.admin-table input[type="text"],
.admin-table input[type="password"],
.admin-table select {
  width: 100%;
}

.table-form {
  display: contents;
}

.log-view {
  background: #f8fafc;
  color: var(--text);
  padding: 10px;
  border-radius: 12px;
  font-size: 12px;
  max-height: 420px;
  overflow: auto;
  display: grid;
  gap: 6px;
  border: 1px solid var(--border);
}

.log-entry {
  display: grid;
  grid-template-columns: minmax(240px, auto) 1fr;
  gap: 8px 12px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  background: #ffffff;
}

.log-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.log-stamp,
.log-source {
  color: var(--muted);
  font-family: "JetBrains Mono", "Consolas", monospace;
}

.log-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: #dbeafe;
  color: #1d4ed8;
}

.log-message {
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.4;
}

.log-level-warning .log-badge {
  background: #fef3c7;
  color: #b45309;
}

.log-level-error .log-badge,
.log-level-critical .log-badge {
  background: #fee2e2;
  color: #b91c1c;
}

.log-level-debug .log-badge,
.log-level-raw .log-badge {
  background: #e5e7eb;
  color: #4b5563;
}

@media (max-width: 720px) {
  .log-entry {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.tab-bar {
  display: inline-flex;
  gap: 6px;
  margin-top: 12px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.tab-button {
  background: transparent;
  color: #0f172a;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
}

.tab-button.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 12px rgba(30, 64, 175, 0.25);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}


.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: 20px;
}

.modal.show {
  display: flex;
}

.modal-card {
  width: min(520px, 95vw);
  background: var(--panel);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 18px 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 12px 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
}

.add-item-grid {
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
}

@media (max-width: 780px) {
  .grid { grid-template-columns: 1fr; }
  .table-wrap .table { min-width: 0; }
  #watchlist-table { table-layout: fixed; }
  .actions-col { width: 150px; }
  .col-note { min-width: 160px; }
  .hide-mobile { display: none; }
  .action-buttons {
    gap: 6px;
    flex-wrap: wrap;
  }
  .action-buttons .secondary,
  .action-buttons .action-link {
    padding: 6px 8px;
    font-size: 12px;
  }
  .action-icon { width: 14px; height: 14px; }
  .action-text { display: inline; }
  .action-icon-glyph { display: none; }

  .chart-table,
  .chart-table thead,
  .chart-table tbody,
  .chart-table tr,
  .chart-table td {
    display: block;
    width: 100%;
  }
  .chart-table thead {
    display: none;
  }
  .chart-table td {
    padding: 0;
  }
  .chart-wrap {
    height: 220px;
  }
  .chart-caption-mobile {
    display: block;
  }

  .tax-table th,
  .tax-table td {
    font-size: 12px;
    padding: 6px 6px;
  }
  .tax-flag {
    width: 22px;
    height: 22px;
  }
}

label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
input[type="text"], input[type="number"], input[type="password"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}

textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}

input[type="datetime-local"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}

select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}

button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

button.secondary {
  background: #f3f4f6;
  color: #111;
  border: 1px solid var(--border);
  min-height: 32px;
}

button.danger {
  background: #dc2626;
  color: #fff;
}

button.danger:hover {
  background: #b91c1c;
}

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

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table-wrap .table {
  min-width: 640px;
}

#watchlist-table {
  table-layout: auto;
  width: 100%;
}

.col-item,
.col-note {
  overflow-wrap: anywhere;
}

.actions-col {
  min-width: 200px;
}

.table th, .table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.badge {
  display: inline-block;
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #e0e7ff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
}

.alert {
  padding: 8px 10px;
  border-radius: 8px;
  margin-top: 8px;
  font-size: 13px;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.accordion-toggle {
  width: 100%;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  padding: 12px 14px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.accordion-toggle:hover {
  background: #f1f5f9;
}

.accordion-body {
  margin-top: 10px;
  display: none;
}

.accordion-body.show {
  display: block;
}

.purchase-row {
  cursor: pointer;
}

.purchase-row:hover {
  background: #f8fafc;
}

.purchase-sales {
  display: none;
}

.purchase-sales.show {
  display: table-row;
}

.sales-inner {
  padding: 12px 6px 6px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #111827;
  color: #f9fafb;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  z-index: 1300;
  font-size: 13px;
  opacity: 1;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.toast-success {
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.toast.hide {
  opacity: 0;
  transform: translateY(-8px);
}

.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.note-form {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap;
}

.note-display {
  display: flex;
  gap: 8px;
  align-items: center;
}

.note-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap;
}

.card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.card-actions button,
.card-actions .secondary {
  min-height: 32px;
}

.card-actions-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.card-actions-split button,
.card-actions-split .secondary {
  min-height: 32px;
}

.action-buttons {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}

.action-buttons .secondary,
.action-buttons .action-link {
  min-height: 32px;
}

.inline-form {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.inline-form input[type="number"] {
  width: 100px;
  margin: 0;
}

.note-actions .secondary,
.action-buttons .secondary,
.action-buttons .action-link {
  white-space: nowrap;
}

.col-note {
  min-width: 220px;
}

.hide-mobile {
  display: table-cell;
}

.action-icon-glyph {
  display: none;
}

.action-icon-only {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.action-icon-svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

.favorite-form {
  display: inline-flex;
}

.favorite-btn {
  color: #d97706;
  font-size: 15px;
  line-height: 1;
}

.favorite-btn.is-favorite {
  color: #b45309;
}

.action-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  padding: 6px 10px;
  background: #f3f4f6;
  color: #111;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.action-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

.status-cell {
  font-weight: 600;
  color: #111;
}

th.status-col,
td.status-cell {
  width: 120px;
  white-space: nowrap;
}

.muted {
  color: rgba(15, 23, 42, 0.5);
}

.scrip-icon {
  width: 20px;
  height: 20px;
  vertical-align: text-bottom;
  margin-left: 4px;
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin: 4px 0;
}

.filter-grid {
  display: inline-grid;
  grid-template-columns: max-content max-content;
  gap: 6px 24px;
  margin-top: 6px;
  align-items: start;
}

.filter-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-grid-3 {
  display: grid;
  grid-template-columns: max-content max-content;
  grid-template-rows: auto auto;
  column-gap: 28px;
  row-gap: 8px;
  margin-top: 6px;
  align-items: start;
}

.filter-grid-3 .cell-a { grid-column: 1 / span 2; grid-row: 1; }
.filter-grid-3 .cell-b { grid-column: 1; grid-row: 2; }
.filter-grid-3 .cell-c { grid-column: 2; grid-row: 2; }

@media (max-width: 720px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }
  .filter-grid-3 {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }
  .filter-grid-3 .cell-a,
  .filter-grid-3 .cell-b,
  .filter-grid-3 .cell-c {
    grid-column: auto;
    grid-row: auto;
  }
}

.checkbox-field input {
  width: auto;
  margin: 0;
}

.gathering-locked td {
  color: var(--muted);
  opacity: 0.6;
}

.folklore-cell {
  border-bottom: 1px dotted rgba(15, 23, 42, 0.35);
  cursor: help;
}

.tome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 6px;
}

@media (max-width: 780px) {
  .tome-grid {
    grid-template-columns: 1fr;
  }
}

.tome-table th,
.tome-table td {
  vertical-align: top;
}

.table tr.is-favorite td {
  background: #fff7ed;
}

.table th.cell-right,
.table td.cell-right {
  text-align: right;
}

.table th.cell-center,
.table td.cell-center {
  text-align: center;
}

.tax-table th,
.tax-table td {
  text-align: center;
}

.tax-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.tax-table {
  min-width: 560px;
}

.tax-flag {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: inline-block;
}

.city-flag {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: inline-block;
}

.job-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

.retainer-hero {
  position: relative;
  overflow: hidden;
}

.retainer-flag-bg {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  opacity: 0.22;
  pointer-events: none;
}

.retainer-flag-bg img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1), rgba(0,0,0,0));
  mask-image: linear-gradient(to right, rgba(0,0,0,1), rgba(0,0,0,0));
}

@media (max-width: 720px) {
  .retainer-flag-bg img {
    width: 90px;
    height: 90px;
  }
}

.tax-flag-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.tax-flag-wrap::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #f9fafb;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  z-index: 10;
}

.tax-flag-wrap:hover::after {
  opacity: 1;
}

.hover-tip {
  position: relative;
  cursor: help;
  display: inline-block;
}

.hover-tip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #f9fafb;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  z-index: 10;
}

.hover-tip:hover::after {
  opacity: 1;
}

.hover-tip:focus-visible::after,
.hover-tip:focus::after {
  opacity: 1;
}

.tax-flag-wrap:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.tax-flag-wrap.is-selected {
  box-shadow: inset 0 0 0 2px rgba(31, 111, 235, 0.6);
  border-radius: 6px;
}


.note-input {
  width: 100%;
  min-width: 160px;
}

.is-hidden {
  display: none !important;
}

.link { color: var(--accent); text-decoration: none; }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.button-link {
  background: var(--accent);
  color: white;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
}

.header-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sort-icon {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 16px;
  margin-left: 6px;
  padding: 6px 8px;
}

.sort-icon:hover {
  text-decoration: underline;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.overlay.show {
  display: flex;
}

.overlay-card {
  width: min(520px, 90vw);
  background: #0f172a;
  color: #e5e7eb;
  padding: 18px 20px;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  transition: box-shadow 0.3s ease, border 0.3s ease;
}

.overlay-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.overlay-status {
  font-size: 14px;
  color: #cbd5f5;
  margin-bottom: 12px;
}

.overlay-message {
  font-size: 14px;
  margin-top: 8px;
}

.progress {
  width: 100%;
  height: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: #22c55e;
  transition: width 0.2s ease;
}

.progress-text {
  margin-top: 6px;
  font-size: 13px;
  color: #cbd5f5;
  text-align: right;
}

.overlay.complete .overlay-card {
  border: 1px solid rgba(34, 197, 94, 0.6);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2), 0 20px 60px rgba(0,0,0,0.35);
}

.chart-wrap { height: 260px; }
.chart-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

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

.chart-table th,
.chart-table td {
  border: none;
  padding: 0 8px;
  vertical-align: top;
  text-align: left;
  font-size: 14px;
}

.chart-table th {
  color: var(--muted);
  font-weight: 600;
  padding-bottom: 6px;
}

.chart-caption {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 6px;
}

.chart-caption-mobile {
  display: none;
}

.chart-label {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.chart-label:hover {
  text-decoration: underline;
}

.note { color: var(--muted); font-size: 13px; }

.chart-popout {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 20px;
}

.chart-popout.show {
  display: flex;
}

.chart-popout-card {
  width: min(1100px, 95vw);
  background: var(--panel);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 16px 18px 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.chart-popout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.chart-popout-title {
  font-size: 18px;
  font-weight: 600;
}

.popout-chart-wrap {
  height: min(70vh, 560px);
  min-height: 320px;
}

.popout-chart-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
