/* SecureFlare — pannello di controllo
   Palette: arancione di servizio su neutri freddi, come le console CDN. */

:root {
  --brand: #E8590C;
  --brand-hover: #C2410C;
  --brand-soft: #FDEEE3;
  --brand-ink: #8A3308;

  --topbar-bg: #12161C;
  --topbar-text: #E9ECEF;
  --topbar-muted: #9AA3AE;
  --topbar-border: #232A34;

  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --surface-2: #FAFAFB;
  --sunk: #F0F1F4;
  --border: #DDDFE4;
  --border-strong: #C3C8D0;

  --text: #1B1F24;
  --text-2: #575E67;
  --text-3: #858C95;

  --ok: #0E7A4D;      --ok-soft: #E3F4EB;
  --warn: #9A5600;    --warn-soft: #FCF0DC;
  --bad: #B5322A;     --bad-soft: #FBE9E7;
  --info: #1A5FB4;    --info-soft: #E9F1FD;

  --radius: 8px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(16, 22, 30, .06);
  --shadow: 0 1px 3px rgba(16, 22, 30, .08), 0 8px 24px -14px rgba(16, 22, 30, .28);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #FF8A3D;
    --brand-hover: #FFA063;
    --brand-soft: #2C1A0E;
    --brand-ink: #FFB183;

    --topbar-bg: #090C11;
    --topbar-text: #E6E9ED;
    --topbar-muted: #8B939E;
    --topbar-border: #1B212A;

    --bg: #0E1116;
    --surface: #161A21;
    --surface-2: #1A1F27;
    --sunk: #11151B;
    --border: #272D37;
    --border-strong: #39414D;

    --text: #E6E9ED;
    --text-2: #A2AAB4;
    --text-3: #79818C;

    --ok: #46C08A;      --ok-soft: #10261C;
    --warn: #E0A93C;    --warn-soft: #2A2113;
    --bad: #F0796C;     --bad-soft: #2C1613;
    --info: #6FA8F5;    --info-soft: #121D2E;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 3px rgba(0, 0, 0, .5), 0 8px 24px -14px rgba(0, 0, 0, .8);
  }
}

:root[data-theme="dark"] {
  --brand: #FF8A3D;
  --brand-hover: #FFA063;
  --brand-soft: #2C1A0E;
  --brand-ink: #FFB183;

  --topbar-bg: #090C11;
  --topbar-text: #E6E9ED;
  --topbar-muted: #8B939E;
  --topbar-border: #1B212A;

  --bg: #0E1116;
  --surface: #161A21;
  --surface-2: #1A1F27;
  --sunk: #11151B;
  --border: #272D37;
  --border-strong: #39414D;

  --text: #E6E9ED;
  --text-2: #A2AAB4;
  --text-3: #79818C;

  --ok: #46C08A;      --ok-soft: #10261C;
  --warn: #E0A93C;    --warn-soft: #2A2113;
  --bad: #F0796C;     --bad-soft: #2C1613;
  --info: #6FA8F5;    --info-soft: #121D2E;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 3px rgba(0, 0, 0, .5), 0 8px 24px -14px rgba(0, 0, 0, .8);
}

* { box-sizing: border-box; }

html { color-scheme: light dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 22px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ------------------------------------------------------------------ topbar */

.topbar {
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--topbar-border);
  position: sticky; top: 0; z-index: 40;
}
.topbar__inner {
  max-width: 1360px; margin: 0 auto; padding: 0 24px;
  height: 54px; display: flex; align-items: center; gap: 28px;
}

.brand {
  display: flex; align-items: center; gap: 9px;
  color: var(--topbar-text); text-decoration: none; flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }
.brand__mark { color: currentColor; flex: 0 0 auto; }
.brand__word { font-size: 15.5px; font-weight: 600; letter-spacing: -.015em; }
.brand__word b { color: var(--brand); font-weight: 600; }

.topnav { display: flex; gap: 4px; flex: 1 1 auto; }
.topnav__link {
  color: var(--topbar-muted); text-decoration: none;
  padding: 7px 12px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 500;
}
.topnav__link:hover { color: var(--topbar-text); background: rgba(255, 255, 255, .06); text-decoration: none; }
.topnav__link.is-active { color: var(--topbar-text); background: rgba(255, 255, 255, .10); }

.topbar__right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.icon-btn {
  display: grid; place-items: center; width: 32px; height: 32px;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm);
  color: var(--topbar-muted); cursor: pointer;
}
.icon-btn:hover { color: var(--topbar-text); background: rgba(255, 255, 255, .08); }

/* menu account */
.menu { position: relative; }
.menu__trigger {
  display: flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm);
  color: var(--topbar-text); padding: 5px 9px 5px 5px; cursor: pointer;
  font: inherit; font-size: 13.5px;
}
.menu__trigger:hover { background: rgba(255, 255, 255, .08); }
.menu__label { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
}
.menu__panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 232px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; z-index: 50;
}
.menu__head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu__email { font-size: 13px; font-weight: 500; word-break: break-all; }
.menu__role { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.menu__item {
  display: block; width: 100%; text-align: left;
  padding: 8px 10px; border-radius: var(--radius-sm);
  background: transparent; border: 0; color: var(--text);
  font: inherit; font-size: 13.5px; cursor: pointer; text-decoration: none;
}
.menu__item:hover { background: var(--sunk); text-decoration: none; }
.menu__item--danger { color: var(--bad); }

/* -------------------------------------------------------------- zone header */

.zonehead { background: var(--surface); border-bottom: 1px solid var(--border); }
.zonehead__inner { max-width: 1360px; margin: 0 auto; padding: 18px 24px 16px; }
.zonehead__back {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--text-3); font-size: 12.5px; margin-bottom: 8px;
}
.zonehead__back:hover { color: var(--text); text-decoration: none; }
.zonehead__title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.zonehead__title h1 { font-size: 21px; }
.zonehead__meta { color: var(--text-3); font-size: 12.5px; margin-top: 6px; }
.zonehead__meta b { color: var(--text-2); font-weight: 600; text-transform: capitalize; }

/* -------------------------------------------------------------------- page */

.page { max-width: 1360px; margin: 0 auto; padding: 26px 24px 60px; }
.page--zone { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 30px; align-items: start; }

.zonenav { display: flex; flex-direction: column; gap: 1px; position: sticky; top: 78px; }
.zonenav__link {
  padding: 8px 11px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 13.5px; font-weight: 500;
  border-left: 2px solid transparent;
}
.zonenav__link:hover { background: var(--sunk); color: var(--text); text-decoration: none; }
.zonenav__link.is-active {
  background: var(--brand-soft); color: var(--brand-ink);
  border-left-color: var(--brand); font-weight: 600;
}

.content { min-width: 0; }

.pagehead {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 20px;
}
.pagehead p { margin: 5px 0 0; color: var(--text-2); max-width: 62ch; }

.foot {
  max-width: 1360px; margin: 0 auto; padding: 0 24px 30px;
  display: flex; gap: 14px; color: var(--text-3); font-size: 12px;
}
.foot__env {
  border: 1px solid var(--border); border-radius: 20px; padding: 1px 9px;
  color: var(--warn); background: var(--warn-soft);
}

/* ------------------------------------------------------------------ blocchi */

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 18px; }
.card__head {
  padding: 15px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.card__head p { margin: 4px 0 0; color: var(--text-2); font-size: 13px; max-width: 68ch; }
.card__body { padding: 18px; }
.card__body > :first-child { margin-top: 0; }
.card__body > :last-child { margin-bottom: 0; }
.card__foot {
  padding: 13px 18px; border-top: 1px solid var(--border);
  background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius);
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 15px 17px; box-shadow: var(--shadow-sm);
}
.stat__label {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-3); font-weight: 600;
}
.stat__value { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin-top: 5px; font-variant-numeric: tabular-nums; }
.stat__hint { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }

/* ------------------------------------------------------------------ tabelle */

.tablewrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th, table.data td { padding: 11px 16px; text-align: left; vertical-align: middle; }
table.data thead th {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-3); font-weight: 600; background: var(--surface-2);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.data tbody tr { border-bottom: 1px solid var(--border); }
table.data tbody tr:last-child { border-bottom: 0; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data td.mono, table.data td .mono { font-family: var(--mono); font-size: 12.5px; }
table.data td.actions { text-align: right; white-space: nowrap; }
table.data .rowlink { font-weight: 600; color: var(--text); }
table.data .rowlink:hover { color: var(--brand-ink); }
.num { font-variant-numeric: tabular-nums; }
.truncate { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }

/* -------------------------------------------------------------------- pill */

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 600;
  border: 1px solid transparent; white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--ok    { color: var(--ok);   background: var(--ok-soft);   border-color: color-mix(in srgb, var(--ok) 28%, transparent); }
.pill--warn  { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 28%, transparent); }
.pill--bad   { color: var(--bad);  background: var(--bad-soft);  border-color: color-mix(in srgb, var(--bad) 28%, transparent); }
.pill--muted { color: var(--text-3); background: var(--sunk); border-color: var(--border); }

.tag {
  display: inline-block; padding: 1px 7px; border-radius: 4px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  background: var(--sunk); border: 1px solid var(--border); color: var(--text-2);
}
.tag--type { color: var(--text); font-weight: 600; min-width: 46px; text-align: center; }

/* proxy */
.proxy { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; white-space: nowrap; }
.proxy--on  { color: var(--brand); }
.proxy--off { color: var(--text-3); }
.proxy--na  { color: var(--text-3); opacity: .5; }

/* ----------------------------------------------------------------- bottoni */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 7px 14px; border-radius: var(--radius-sm);
  font: inherit; font-size: 13.5px; font-weight: 500; line-height: 1.3;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--sunk); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.btn--primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn--danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--border)); }
.btn--danger:hover { background: var(--bad-soft); }
.btn--ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn--ghost:hover { background: var(--sunk); color: var(--text); }
.btn--sm { padding: 4px 10px; font-size: 12.5px; }
.btn-row { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }

/* ------------------------------------------------------------------- form */

.field { margin-bottom: 15px; }
.field:last-child { margin-bottom: 0; }
.label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 5px; color: var(--text); }
.hint { font-size: 12.5px; color: var(--text-3); margin-top: 5px; }
.hint--warn { color: var(--warn); }

.input, .select, .textarea {
  width: 100%; padding: 8px 11px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font: inherit; font-size: 13.5px;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
.input::placeholder { color: var(--text-3); }
.input--mono { font-family: var(--mono); font-size: 13px; }
.select { appearance: none; padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 15px) 51%, calc(100% - 10px) 51%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}

.formgrid { display: grid; gap: 15px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.formgrid .field { margin-bottom: 0; }
.formgrid .field--wide { grid-column: 1 / -1; }

/* interruttore */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  width: 38px; height: 22px; border-radius: 20px; flex: 0 0 auto;
  background: var(--border-strong); position: relative; transition: background .15s ease;
}
.switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  transition: transform .15s ease; box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
.switch input:checked + .switch__track { background: var(--brand); }
.switch input:checked + .switch__track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--brand); outline-offset: 2px; }
.switch__text { font-size: 13.5px; }
.switch__text small { display: block; color: var(--text-3); font-size: 12.5px; }

/* ---------------------------------------------------------------- banner */

.banner {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 15px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  margin-bottom: 18px; font-size: 13.5px;
}
.banner__text { flex: 1 1 auto; }
.banner__close {
  background: transparent; border: 0; color: inherit; opacity: .6;
  font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px;
}
.banner__close:hover { opacity: 1; }
.banner--success { background: var(--ok-soft);   border-color: color-mix(in srgb, var(--ok) 32%, transparent);   color: var(--ok); }
.banner--error   { background: var(--bad-soft);  border-color: color-mix(in srgb, var(--bad) 32%, transparent);  color: var(--bad); }
.banner--info    { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 32%, transparent); color: var(--info); }

.notice {
  border-left: 3px solid var(--brand); background: var(--brand-soft);
  padding: 13px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 13.5px;
}
.notice--info { border-left-color: var(--info); background: var(--info-soft); }
.notice p { margin: 0; }
.notice p + p { margin-top: 7px; }

/* ------------------------------------------------------------------ vuoto */

.empty { padding: 54px 24px; text-align: center; }
.empty__icon { color: var(--text-3); opacity: .55; margin-bottom: 14px; }
.empty h3 { font-size: 16px; margin-bottom: 6px; }
.empty p { color: var(--text-2); margin: 0 auto 18px; max-width: 46ch; }

/* -------------------------------------------------------- passi nameserver */

.steps { counter-reset: step; display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 26px 1fr; gap: 13px; align-items: start; }
.step__num {
  counter-increment: step; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
}
.step__num::before { content: counter(step); }
.step h4 { font-size: 13.5px; margin-bottom: 3px; }
.step p { margin: 0; color: var(--text-2); font-size: 13px; }

.nslist { display: grid; gap: 8px; margin-top: 11px; }
.nsrow {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--sunk); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 12px;
  font-family: var(--mono); font-size: 13px;
}
.copy {
  background: transparent; border: 1px solid var(--border-strong);
  border-radius: 4px; color: var(--text-2); cursor: pointer;
  font: inherit; font-size: 11.5px; padding: 2px 8px; font-family: var(--font);
}
.copy:hover { background: var(--surface); color: var(--text); }

/* ------------------------------------------------------------------- auth */

.body--auth { background: var(--bg); }
.auth { max-width: 396px; margin: 0 auto; padding: 66px 20px 40px; }
.brand--auth { justify-content: center; margin-bottom: 26px; color: var(--text); }
.brand--auth .brand__mark { color: var(--text); }
.auth .card__body { padding: 24px; }
.auth h1 { font-size: 19px; margin-bottom: 4px; }
.auth__sub { color: var(--text-2); margin: 0 0 20px; font-size: 13.5px; }
.auth__foot { text-align: center; color: var(--text-3); font-size: 12px; margin-top: 22px; }
.auth .btn { width: 100%; }

/* --------------------------------------------------------------- utilità */

.row-form { background: var(--surface-2); }
.row-form > td { padding: 0 !important; }
.row-form__inner { padding: 16px 18px; border-top: 1px solid var(--border); }
.stack { display: grid; gap: 16px; }
.muted { color: var(--text-3); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); }
.right { text-align: right; }
.sep { height: 1px; background: var(--border); margin: 18px 0; border: 0; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media (max-width: 900px) {
  .page--zone { grid-template-columns: 1fr; gap: 18px; }
  .zonenav { flex-direction: row; overflow-x: auto; position: static; padding-bottom: 4px; }
  .zonenav__link { border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .zonenav__link.is-active { border-left: 0; border-bottom-color: var(--brand); }
  .menu__label { display: none; }
  .topbar__inner { gap: 16px; padding: 0 16px; }
  .page { padding: 20px 16px 50px; }
}

.kv-block {
  background: var(--sunk); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 15px; overflow-x: auto; white-space: pre; line-height: 1.6;
}

/* Selettore di lingua: stessa pillola del sito pubblico, così passando dal
   sito al pannello il comando è riconoscibile. */
.langswitch {
  display: inline-flex; align-items: center; gap: 2px; padding: 2px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; flex: 0 0 auto;
}
.langswitch__opt {
  padding: 4px 9px; border-radius: 999px;
  color: var(--topbar-muted); text-decoration: none;
  font-size: 12px; font-weight: 700; letter-spacing: .05em; line-height: 1.2;
}
.langswitch__opt:hover { color: var(--topbar-text); background: rgba(255, 255, 255, .09); text-decoration: none; }
.langswitch__opt.is-active { color: var(--topbar-text); background: rgba(255, 255, 255, .15); }

/* Nelle pagine di accesso la barra scura non c'è: gli stessi ruoli, con i
   colori del tema. */
.auth__lang { display: flex; justify-content: center; margin-bottom: 18px; }
.auth__lang .langswitch { border-color: var(--border); }
.auth__lang .langswitch__opt { color: var(--text-3); }
.auth__lang .langswitch__opt:hover { color: var(--text); background: var(--sunk); }
.auth__lang .langswitch__opt.is-active { color: var(--text); background: var(--sunk); }

/* Il cloud nella tabella DNS è un pulsante: accende e spegne il proxy senza
   aprire il form di modifica. */
.proxy--btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px 3px 7px; border-radius: 20px;
  background: transparent; border: 1px solid transparent;
  font: inherit; font-size: 12.5px; cursor: pointer; color: inherit;
}
.proxy--btn:hover { border-color: currentColor; background: color-mix(in srgb, currentColor 10%, transparent); }
.proxy--btn:active { transform: translateY(1px); }
.proxy--btn.proxy--on { color: var(--brand); }
.proxy--btn.proxy--off { color: var(--text-3); }
.proxy--btn.proxy--off:hover { color: var(--text-2); }

/* Grafico a barre delle query giornaliere. Niente librerie: sono pochi valori
   e una barra è un div. */
.chart { display: flex; align-items: flex-end; gap: 10px; min-height: 190px; overflow-x: auto; padding-bottom: 4px; }
.chart__col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 54px; flex: 1 1 0; }
.chart__bar {
  width: 100%; max-width: 46px; min-height: 3px; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 55%, transparent));
}
.chart__lab { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart__val { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Barra di quota nelle tabelle */
.meter { height: 8px; background: var(--sunk); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; min-width: 90px; }
.meter__fill { height: 100%; background: var(--brand); }
