/* Turismo: interactive trip demo (#tour-app, built by tour-app.js). A product UI inside the marketing page: it may
   depart slightly from the site (SaaS look, Nunito Sans only, no monospace). Every colour is a vf.css token or a
   color-mix of tokens; status tints derive from --ok, --sea, --sunset and --blue. Scoped under .ta-scope (the app
   root plus the body-level toast). Round 3 (Michael, 24 Nov): vertical days with a hotel bar, inline supplier
   drawer, compact payments, no overlays. */

.ta-scope {
  --ta-bg: var(--white);
  --ta-subtle: color-mix(in srgb, var(--paper) 55%, var(--white));
  --ta-hover: color-mix(in srgb, var(--paper-2) 55%, var(--white));
  --ta-line: color-mix(in srgb, var(--ink) 11%, transparent);
  --ta-line-soft: color-mix(in srgb, var(--ink) 7%, transparent);
  --ta-ink: var(--ink);
  --ta-text: color-mix(in srgb, var(--ink) 86%, transparent);
  --ta-muted: color-mix(in srgb, var(--ink) 68%, transparent);
  --ta-ok-ink: color-mix(in srgb, var(--ok) 62%, var(--ink));
  --ta-ok-bg: color-mix(in srgb, var(--ok) 10%, var(--white));
  --ta-sea: var(--sea);
  --ta-sea-bg: color-mix(in srgb, var(--sea) 10%, var(--white));
  --ta-sea-ink: color-mix(in srgb, var(--sea) 80%, var(--ink));
  --ta-sun: var(--sunset);
  --ta-sun-bg: color-mix(in srgb, var(--sunset) 16%, var(--white));
  --ta-sun-icon: color-mix(in srgb, var(--sunset) 55%, var(--ink));
  --ta-blue: var(--blue);
  --ta-blue-ink: var(--blue-dark);
  --ta-blue-bg: color-mix(in srgb, var(--blue) 8%, var(--white));
  --ta-cost: color-mix(in srgb, var(--blue) 30%, var(--white));
  --ta-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 5%, transparent);
  --ta-radius: 12px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 450;
  color: var(--ta-text);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
.ta-scope *, .ta-scope *::before, .ta-scope *::after { box-sizing: border-box; }
.ta-scope :where(h3, h4, p, ul, ol, dl, dd, figure) { margin: 0; padding: 0; }
.ta-scope :where(ul, ol) { list-style: none; }
.ta-scope :where(b) { font-weight: 700; color: var(--ta-ink); }
.ta-scope :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
.ta-scope :where(a) { color: inherit; text-decoration: none; }
.ta-scope :focus { outline: none; }
.ta-scope :focus-visible { outline: 2px solid var(--ta-blue); outline-offset: 2px; }
.ta-i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ta-i-up { transform: rotate(180deg); }
.ta-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ta-muted { color: var(--ta-muted); font-weight: 500; }

/* ---------- Frame ---------- */
.ta { position: relative; width: 100%; max-width: 1056px; margin-inline: auto; background: var(--ta-bg); border: 1px solid var(--ta-line); border-radius: 18px; box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 5%, transparent), 0 24px 56px -28px color-mix(in srgb, var(--ink) 28%, transparent); overflow: hidden; text-align: left; }
.ta[tabindex="-1"]:focus { outline: none; }

.ta-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 8px 20px; background: var(--ta-subtle); border-bottom: 1px solid var(--ta-line-soft); }
.ta-crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; white-space: nowrap; }
.ta-logo { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--ta-blue); color: var(--white); font-size: 12px; font-weight: 800; flex: none; }
.ta-ws { font-weight: 700; color: var(--ta-ink); }
.ta-sep { color: color-mix(in srgb, var(--ink) 30%, transparent); }
.ta-crumb-muted { color: var(--ta-muted); }
.ta-crumb-cur { color: var(--ta-ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.ta-team { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ta-muted); min-width: 0; }
.ta-team-txt { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ta-team-txt b { color: var(--ta-ink); font-weight: 700; }
.ta-avatars { display: flex; padding: 2px; border-radius: 999px; transition: transform .15s ease; }
.ta-avatars:hover { transform: translateY(-1px); }
.ta-av { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ta-subtle); color: var(--white); font-size: 12px; font-weight: 800; }
.ta-av + .ta-av { margin-left: -7px; }
.ta-av--c { background: var(--ta-blue-ink); }
.ta-av--m { background: var(--ta-sea); }
.ta-av--e { background: var(--ta-sun-icon); }
.ta-live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 16%, transparent); flex: none; }

/* Header */
.ta-head { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px 32px; padding: 24px 28px 20px; }
.ta-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ta-title { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; color: var(--ta-ink); }
.ta-trip-status { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--ta-blue-bg); color: var(--ta-blue-ink); font-size: 12px; font-weight: 700; }
.ta-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ta-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; color: var(--ta-muted); font-size: 13.5px; }
.ta-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.ta-meta .ta-i { width: 15px; height: 15px; }
.ta-soon { color: var(--ta-ink); font-weight: 700; }
.ta-soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ta-sun); }
.ta-price { display: grid; justify-items: end; align-content: start; text-align: right; user-select: none; }
.ta-price-label { font-size: 12px; color: var(--ta-muted); font-weight: 600; }
.ta-price b { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.ta-price > span:last-child { font-size: 13px; color: var(--ta-muted); }
.ta-progress { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ta-segs { display: flex; gap: 3px; flex: 1 1 280px; max-width: 420px; }
.ta-seg { flex: 1; height: 8px; border-radius: 3px; transition: background-color .3s ease; }
.ta-seg:first-child { border-radius: 999px 3px 3px 999px; }
.ta-seg:last-child { border-radius: 3px 999px 999px 3px; }
.ta-seg--ok { background: var(--ok); }
.ta-seg--req { background: var(--ta-sun); }
.ta-seg--todo { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--ta-blue); }
.ta-prog-txt { font-size: 13.5px; color: var(--ta-muted); }
.ta-prog-txt b { font-weight: 800; white-space: nowrap; }
.ta-prog-sep { margin-inline: 2px; color: color-mix(in srgb, var(--ink) 35%, transparent); }
.ta-prog-req, .ta-prog-todo { color: var(--ta-ink); font-weight: 600; white-space: nowrap; }

/* Body */
.ta-body { display: grid; grid-template-columns: minmax(0,1fr) 300px; border-top: 1px solid var(--ta-line-soft); }
.ta-main { min-width: 0; }
.ta-aside { border-left: 1px solid var(--ta-line-soft); background: var(--ta-subtle); padding: 22px 22px 24px; }

/* Tabs */
.ta-tabs-wrap { border-bottom: 1px solid var(--ta-line-soft); }
/* Tabs never capture scroll: no overflow on desktop/tablet (they wrap if ever needed); horizontal swipe only on phones. */
.ta-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 22px 0; }
.ta-tabs::-webkit-scrollbar { display: none; }
.ta-tab { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; margin-top: 3px; border-radius: 8px 8px 0 0; color: var(--ta-muted); font-size: 14px; font-weight: 650; white-space: nowrap; }
.ta-tab:hover { color: var(--ta-ink); background: var(--ta-hover); }
.ta-tab[aria-selected="true"] { color: var(--ta-ink); font-weight: 750; }
.ta-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ta-blue); }
.ta-tab:focus-visible { outline-offset: -3px; border-radius: 8px; }
.ta-tab-count { display: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ta-sun-bg); color: var(--ta-ink); font-size: 12px; font-weight: 800; line-height: 18px; text-align: center; }
.ta-tab-count.is-on { display: inline-block; }
.ta-panel { padding: 22px 28px 28px; }
.ta-panel:focus-visible { outline-offset: -3px; border-radius: 4px; }
.ta-panel:not([hidden]) { animation: ta-in .22s ease both; }
@keyframes ta-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Shared bits */
.ta-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 15px; font-weight: 800; color: var(--ta-ink); letter-spacing: -.005em; }
.ta-h .ta-i { color: var(--ta-muted); }
.ta-sub { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 13px; color: var(--ta-muted); }
.ta-sub .ta-i { width: 14px; height: 14px; }
.ta-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.ta-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ta-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--ta-line); background: var(--white); color: var(--ta-ink); font-size: 13.5px; font-weight: 700; white-space: nowrap; box-shadow: var(--ta-shadow); transition: background-color .15s, border-color .15s; }
.ta-btn:hover { background: var(--ta-hover); border-color: color-mix(in srgb, var(--ink) 20%, transparent); color: var(--ta-ink); }
.ta-btn--primary { background: var(--ta-blue); border-color: var(--ta-blue); color: var(--white); }
.ta-btn--primary:hover { background: var(--ta-blue-ink); border-color: var(--ta-blue-ink); color: var(--white); }
.ta-btn--primary[aria-disabled="true"] { background: var(--ta-ok-bg); border-color: transparent; color: var(--ta-ok-ink); box-shadow: none; cursor: default; }
.ta-btn--sm { min-height: 32px; padding: 0 11px; font-size: 13px; }
.ta-btn--sm .ta-i, .ta-btn--xs .ta-i { width: 14px; height: 14px; }
.ta-btn--xs { min-height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.ta-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--white); color: var(--ta-blue-ink); font-size: 12px; font-weight: 800; }
.ta-icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--ta-line); background: var(--white); color: var(--ta-ink); flex: none; }
.ta-icon-btn:hover { background: var(--ta-hover); }
.ta-ready { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: 999px; background: var(--ta-ok-bg); color: var(--ta-ok-ink); font-size: 12.5px; font-weight: 700; }
.ta-ready .ta-i { width: 14px; height: 14px; }
.ta-card { border: 1px solid var(--ta-line); border-radius: 16px; padding: 18px 20px; background: var(--white); }
.ta-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; background: var(--ta-subtle); border: 1px solid var(--ta-line-soft); color: var(--ta-text); font-size: 12.5px; font-weight: 600; }

/* Status pills (the visual code) */
.ta-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 3px 10px 3px 7px; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.ta-pill .ta-i { width: 15px; height: 15px; }
.ta-pill--sm { min-height: 24px; padding: 2px 9px 2px 6px; font-size: 12px; }
.ta-pill--sm .ta-i { width: 14px; height: 14px; }
.ta-pill-note { font-weight: 550; }
.ta-pill--ok { background: var(--ta-ok-bg); color: var(--ta-ok-ink); }
.ta-pill--req { background: var(--ta-sun-bg); color: var(--ta-ink); }
.ta-pill--req .ta-i { color: var(--ta-sun-icon); }
.ta-pill--todo { background: var(--white); color: var(--ta-blue-ink); box-shadow: inset 0 0 0 1px var(--ta-blue); }

/* Channel: plain icon + text in muted ink (statuses are the only chips) */
.ta-chan { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ta-muted); white-space: nowrap; }
.ta-chan .ta-i { width: 15px; height: 15px; }

/* Confirmed = a small green check; full pills only for open statuses */
.ta-okmark { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ta-ok-bg); color: var(--ta-ok-ink); flex: none; }
.ta-okmark .ta-i { width: 15px; height: 15px; }

/* Icon bubbles */
.ta-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: var(--ta-blue-bg); color: var(--ta-blue-ink); flex: none; }
.ta-ico .ta-i { width: 17px; height: 17px; }
.ta-ico--bed, .ta-ico--boat, .ta-ico--train { background: var(--ta-sea-bg); color: var(--ta-sea-ink); }
.ta-ico--fork, .ta-ico--chef, .ta-ico--flag { background: var(--ta-sun-bg); color: var(--ta-sun-icon); }
.ta-ico--land, .ta-ico--takeoff { background: var(--ta-subtle); color: var(--ta-muted); }

/* ---------- Programma: vertical days, each anchored by tonight's hotel ---------- */
.ta-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 12px 14px; margin-bottom: 18px; border-radius: 14px; background: var(--ta-subtle); }
.ta-legend-item { display: inline-flex; align-items: center; gap: 8px; }
.ta-legend-n { font-weight: 800; color: var(--ta-ink); font-size: 13.5px; }
.ta-legend-help { font-size: 12.5px; color: var(--ta-muted); }
.ta-days { display: grid; gap: 16px; }
.ta-day { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--ta-line); border-radius: 20px; background: var(--white); box-shadow: var(--ta-shadow); }
.ta-day-head { display: flex; align-items: center; gap: 12px; }
.ta-day-date { display: grid; justify-items: center; width: 46px; padding: 5px 0 6px; border-radius: 14px; background: var(--ta-blue-bg); color: var(--ta-blue-ink); flex: none; }
.ta-day-dow { font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.ta-day-num { font-size: 20px; line-height: 1.05; font-weight: 800; }
.ta-day-title { display: grid; flex: 1; min-width: 0; }
.ta-day-title > span { font-size: 12.5px; font-weight: 700; color: var(--ta-muted); }
.ta-day-title b { font-size: 16px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.ta-day-sum { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 7px; border-radius: 999px; background: var(--ta-ok-bg); color: var(--ta-ok-ink); font-size: 12px; font-weight: 750; white-space: nowrap; }
.ta-day-sum .ta-i { width: 13px; height: 13px; }
.ta-day-sum.is-open { background: var(--ta-sun-bg); color: var(--ta-ink); }
.ta-day-sum.is-open .ta-i { color: var(--ta-sun-icon); }
/* Night strip: a soft dusk tint (periwinkle → a hint of sunset), not a status colour. Ink text keeps 4.5:1. */
.ta-scope { --ta-night: color-mix(in srgb, var(--blue) 13%, color-mix(in srgb, var(--sunset) 5%, var(--white))); --ta-dusk: color-mix(in srgb, var(--sunset) 15%, color-mix(in srgb, var(--blue) 6%, var(--white))); --ta-night-ink: color-mix(in srgb, var(--blue-dark) 70%, var(--ink)); }
.ta-night { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: 14px; background: linear-gradient(110deg, var(--ta-night) 30%, var(--ta-dusk)); color: var(--ta-ink); }
.ta-night.is-last { background: var(--ta-subtle); }
.ta-night-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--white); color: var(--ta-night-ink); flex: none; box-shadow: var(--ta-shadow); }
.ta-night.is-last .ta-night-ico { color: var(--ta-muted); }
.ta-night-k { font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; color: var(--ta-night-ink); }
.ta-night.is-last .ta-night-k { color: var(--ta-muted); }
.ta-night-txt b { font-size: 14.5px; font-weight: 800; color: var(--ta-ink); }
.ta-night-txt > span:last-child { font-size: 12.5px; color: var(--ta-muted); }
.ta-night-st { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--white); color: var(--ta-ok-ink); box-shadow: var(--ta-shadow); }
.ta-night-st--req, .ta-night-st--todo { background: var(--sunset); color: var(--ink); }
.ta-night-txt { display: grid; flex: 1; min-width: 0; }
.ta-night-st .ta-i { width: 14px; height: 14px; }
.ta-items { display: grid; gap: 2px; }
.ta-item { border-radius: 14px; transition: background-color .15s; }
.ta-item-row { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto 16px; align-items: center; gap: 10px; padding-right: 10px; border-radius: 14px; }
.ta-item-row:hover { background: var(--ta-subtle); }
.ta-item.is-open > .ta-item-row { background: color-mix(in srgb, var(--sunset) 7%, var(--white)); }
.ta-item.is-expanded { background: var(--ta-blue-bg); }
.ta-item.is-expanded > .ta-item-row { background: transparent; }
.ta-item-main { display: grid; grid-template-columns: 44px 34px minmax(0,1fr); align-items: center; gap: 12px; min-height: 50px; padding: 6px 0; text-align: left; }
.ta-item-main::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.ta-item-main:focus-visible { outline-offset: 2px; border-radius: 10px; }
.ta-time { font-size: 13px; font-weight: 750; color: var(--ta-muted); text-align: right; }
.ta-time-m { display: none; }
@media (min-width: 601px) {
  .ta-item-main:lang(en) { grid-template-columns: 64px 34px minmax(0,1fr); }
  .ta-time:lang(en) { white-space: nowrap; }
}
.ta-item-txt { display: grid; min-width: 0; }
.ta-item-txt b { font-size: 14px; font-weight: 700; line-height: 1.3; }
.ta-item-txt > span { font-size: 13px; color: var(--ta-muted); line-height: 1.35; }
.ta-item.is-flight .ta-item-txt b { font-weight: 650; color: var(--ta-text); }
.ta-item-st { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.ta-item-st .ta-btn { position: relative; z-index: 1; pointer-events: auto; }
.ta-item .ta-chev { pointer-events: none; }
.ta-item.is-expanded .ta-chev { transform: rotate(180deg); color: var(--ta-blue-ink); }
.ta-item-drawer { padding: 2px 10px 12px; animation: ta-in .2s ease both; }
.ta-idl { display: grid; gap: 6px; }
.ta-idl > div { display: grid; grid-template-columns: 84px minmax(0,1fr); gap: 8px; align-items: baseline; }
.ta-idl dt { font-size: 12.5px; font-weight: 650; color: var(--ta-muted); }
.ta-idl dt .ta-i { width: 14px; height: 14px; transform: translateY(2px); }
.ta-idl dd { font-size: 13px; font-weight: 600; color: var(--ta-ink); min-width: 0; overflow-wrap: anywhere; }
.ta-sd-col .ta-idl > div:has(dt > .ta-i) { grid-template-columns: 18px minmax(0,1fr); }
.ta-code { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--ta-subtle); font-weight: 750; letter-spacing: .02em; }
.ta-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.ta-iflag { display: flex; align-items: flex-start; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--ta-sun-bg); font-size: 13px; font-weight: 700; color: var(--ta-ink); }
.ta-iflag .ta-i { width: 15px; height: 15px; margin-top: 2px; color: var(--ta-sun-icon); }
.ta-idoc { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border-radius: 10px; border: 1px dashed color-mix(in srgb, var(--sea) 45%, transparent); font-size: 13px; font-weight: 700; color: var(--ta-sea-ink); }
.ta-idoc .ta-i:first-child { width: 15px; height: 15px; }
.ta-idoc .ta-i:last-child { margin-left: auto; width: 15px; height: 15px; }
.ta-idoc:hover { background: var(--ta-sea-bg); }
.ta-iacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ta-flight-tag { font-size: 12.5px; color: var(--ta-muted); font-weight: 600; }

/* ---------- Fornitori: rows with an inline drawer ---------- */
.ta-cols { display: grid; grid-template-columns: 34px minmax(0,1fr) 112px 210px 16px; gap: 14px; padding: 0 14px 8px; font-size: 12px; font-weight: 700; color: var(--ta-muted); text-transform: uppercase; letter-spacing: .05em; }
.ta-cols span:first-child { grid-column: 2; }
.ta-sup-list { display: grid; border: 1px solid var(--ta-line); border-radius: 16px; overflow: hidden; }
.ta-sup-item + .ta-sup-item { border-top: 1px solid var(--ta-line-soft); }
.ta-sup-row { display: grid; grid-template-columns: 34px minmax(0,1fr) 112px 210px 16px; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 10px 14px; background: var(--white); transition: background-color .15s; }
.ta-sup-row:hover { background: var(--ta-subtle); }
.ta-sup-row:focus-visible { outline-offset: -3px; border-radius: 12px; }
.ta-sup-row.is-open { background: color-mix(in srgb, var(--sunset) 6%, var(--white)); }
.ta-sup-item.is-expanded .ta-sup-row { background: var(--ta-blue-bg); }
.ta-sup-name { display: grid; min-width: 0; }
.ta-sup-name b { font-size: 14px; font-weight: 700; }
.ta-sup-name > span { font-size: 13px; color: var(--ta-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ta-sup-meta { display: contents; }
.ta-sup-st { display: flex; }
.ta-chev { color: color-mix(in srgb, var(--ink) 45%, transparent); display: grid; transition: transform .2s ease; }
.ta-sup-row[aria-expanded="true"] .ta-chev { transform: rotate(180deg); color: var(--ta-blue-ink); }
.ta-sup-drawer { padding: 4px 14px 16px; background: var(--ta-blue-bg); animation: ta-in .2s ease both; }
.ta-sd-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.ta-sd-col { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; align-content: start; padding: 14px; border-radius: 14px; background: var(--white); box-shadow: var(--ta-shadow); }
.ta-sd-k { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--ta-ink); }
.ta-sd-k .ta-i { width: 14px; height: 14px; color: var(--ta-muted); }
.ta-person-line { display: flex; align-items: center; gap: 10px; }
.ta-person-line > span:last-child { display: grid; min-width: 0; }
.ta-person-line b { font-size: 14px; font-weight: 750; }
.ta-person-line > span:last-child > span { font-size: 12.5px; color: var(--ta-muted); }
.ta-contacts { display: grid; gap: 8px; }
.ta-contacts li { display: grid; grid-template-columns: 18px minmax(0,1fr); align-items: center; gap: 4px 8px; }
.ta-contact-k { display: grid; color: var(--ta-muted); }
.ta-contact-k .ta-i { width: 15px; height: 15px; }
.ta-contact-v { font-size: 13px; font-weight: 650; color: var(--ta-ink); overflow-wrap: anywhere; min-width: 0; }
.ta-contact-btns { grid-column: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.ta-copy.is-copied { background: var(--ta-ok-bg); border-color: transparent; color: var(--ta-ok-ink); }
.ta-preview { display: grid; gap: 4px; padding: 8px 10px; border-radius: 10px; background: var(--ta-subtle); }
.ta-preview > div { display: grid; grid-template-columns: 84px minmax(0,1fr); gap: 8px; }
.ta-preview dd { min-width: 0; overflow-wrap: anywhere; }
.ta-preview dt { font-size: 12.5px; color: var(--ta-muted); font-weight: 600; }
.ta-preview dd { font-size: 13px; color: var(--ta-ink); font-weight: 650; }
.ta-permalink { display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 10px; border: 1px solid var(--ta-line); border-radius: 10px; color: var(--ta-muted); }
.ta-permalink > .ta-i { width: 14px; height: 14px; }
.ta-permalink-url { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 650; color: var(--ta-blue-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ta-permalink-n { font-size: 12.5px; }
.ta-permalink-n b { color: var(--ta-sea-ink); font-weight: 700; }
.ta-sd-full { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px 12px; align-items: start; margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--white); box-shadow: var(--ta-shadow); animation: ta-in .2s ease both; }
.ta-sd-full > div { display: grid; gap: 2px; }
.ta-sd-full > div span { font-size: 12.5px; color: var(--ta-muted); font-weight: 600; }
.ta-sd-full > div b { font-size: 13px; font-weight: 650; }
.ta-sd-full > .is-extra b { color: var(--ta-ink); }
.ta-sd-full > .ta-btn { grid-column: 1 / -1; justify-self: start; }
.ta-sd-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; min-height: 32px; padding: 0 6px; border-radius: 8px; font-size: 13px; font-weight: 750; color: var(--ta-blue-ink); }
.ta-sd-more:hover { text-decoration: underline; text-underline-offset: .2em; }
.ta-sd-more .ta-i { width: 15px; height: 15px; }

/* ---------- Documenti ---------- */
.ta-ticket { border: 1px solid var(--ta-line); border-radius: 16px; background: var(--white); margin-bottom: 14px; }
.ta-ticket-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.ta-ticket-title { display: grid; flex: 1; min-width: 0; }
.ta-ticket-title b { font-size: 14px; font-weight: 750; }
.ta-ticket-title > span { font-size: 13px; color: var(--ta-muted); }
.ta-ticket-title > .ta-ticket-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ta-sea-ink); margin-bottom: 1px; }
.ta-ticket-kicker .ta-i { width: 14px; height: 14px; }
.ta-ticket--train { background: linear-gradient(180deg, var(--ta-sea-bg), var(--white) 70px); border-color: color-mix(in srgb, var(--sea) 28%, transparent); }
.ta-stubs { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; padding: 0 16px 16px; }
.ta-stub { display: grid; grid-template-columns: 64px minmax(0,1fr); align-items: center; gap: 10px; padding: 10px; border: 1px dashed color-mix(in srgb, var(--sea) 40%, transparent); border-radius: 12px; background: var(--white); }
.ta-stub-txt { display: grid; min-width: 0; font-size: 12.5px; color: var(--ta-muted); line-height: 1.35; }
.ta-stub-txt b { font-size: 13.5px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ta-qr { width: 64px; height: 64px; border-radius: 4px; fill: var(--ta-ink); flex: none; }
.ta-qr-bg { fill: var(--white); }
.ta-ticket--boat .ta-qr { width: 60px; height: 60px; border: 1px solid var(--ta-line-soft); }
.ta-docs { display: grid; border: 1px solid var(--ta-line); border-radius: 16px; overflow: hidden; }
.ta-doc { display: grid; grid-template-columns: 34px minmax(0,1fr) auto auto; align-items: center; gap: 12px; min-height: 58px; padding: 10px 12px 10px 14px; }
.ta-doc + .ta-doc { border-top: 1px solid var(--ta-line-soft); }
.ta-doc .ta-ico { background: var(--ta-subtle); color: var(--ta-text); }
.ta-doc-txt { display: grid; min-width: 0; }
.ta-doc-txt b { font-size: 14px; font-weight: 700; }
.ta-doc-txt > span { font-size: 13px; color: var(--ta-muted); }
.ta-doc-shared { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ta-muted); font-weight: 600; }
.ta-doc-shared .ta-i { width: 14px; height: 14px; }
.ta-doc.is-pending .ta-doc-txt b { color: var(--ta-muted); }
.ta-doc-pending { grid-column: 3 / -1; justify-self: end; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--ta-sun-bg); color: var(--ta-ink); }

/* ---------- Finanza ---------- */
.ta-kpis { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.ta-kpi { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--ta-line); border-radius: 16px; background: var(--white); }
.ta-kpi > span { font-size: 12.5px; font-weight: 700; color: var(--ta-muted); }
.ta-kpi b { font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.ta-kpi small { font-size: 12.5px; color: var(--ta-muted); }
.ta-kpi--cost b { color: var(--ta-blue-ink); }
.ta-kpi--margin { background: var(--ta-sea); border-color: var(--ta-sea); }
.ta-kpi--margin > span, .ta-kpi--margin small, .ta-kpi--margin b { color: var(--white); }
.ta-card--margin { margin-bottom: 14px; }
.ta-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.ta-card-sub { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 10px; }
.ta-insight { font-size: 13.5px; color: var(--ta-muted); }
.ta-insight b { color: var(--ta-sea-ink); }
.ta-mlegend { display: flex; gap: 14px; font-size: 12.5px; color: var(--ta-muted); font-weight: 600; }
.ta-mlegend > span { display: inline-flex; align-items: center; gap: 6px; }
.ta-sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ta-sw--cost { background: var(--ta-cost); }
.ta-sw--margin { background: var(--ta-sea); }
.ta-sort { display: inline-flex; align-items: center; gap: 8px; }
.ta-sort-l { font-size: 12.5px; font-weight: 700; color: var(--ta-muted); }
.ta-segctl { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--ta-subtle); }
.ta-seg-btn { min-height: 30px; padding: 0 14px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--ta-muted); transition: background-color .15s, color .15s; }
.ta-seg-btn:hover { color: var(--ta-ink); }
.ta-seg-btn[aria-pressed="true"] { background: var(--ta-blue-bg); color: var(--ta-blue-ink); }
.ta-seg-btn:focus-visible { outline: 2px solid var(--ta-blue); outline-offset: 2px; }
.ta-mrows { display: grid; gap: 6px; }
.ta-mrow { display: grid; grid-template-columns: 150px minmax(0,1fr) 92px; align-items: end; gap: 14px; padding-block: 2px; will-change: transform; }
.ta-mrow-name { min-height: 22px; display: flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--ta-text); overflow: hidden; white-space: nowrap; }
.ta-mrow-val { min-height: 22px; display: flex; justify-content: flex-end; align-items: center; gap: 6px; font-size: 13px; }
.ta-mrow-val b { font-weight: 800; }
.ta-mrow-val span { color: var(--ta-muted); font-size: 12.5px; min-width: 30px; text-align: right; }
.ta-mbar { position: relative; display: block; }
.ta-mrow.has-above .ta-mbar { padding-top: 17px; }
.ta-mbar-track { display: flex; width: var(--w); min-width: 8px; height: 22px; gap: 2px; }
.ta-mbar-cost { background: var(--ta-cost); border-radius: 6px 2px 2px 6px; }
.ta-mbar-margin { background: var(--ta-sea); border-radius: 2px 6px 6px 2px; min-width: 3px; }
.ta-mlabel { position: absolute; bottom: 0; height: 22px; line-height: 22px; font-size: 12px; font-weight: 750; white-space: nowrap; pointer-events: none; }
.ta-mlabel--cost { color: var(--ta-ink); }
.ta-mlabel--margin { color: var(--white); }
.ta-mlabel.is-out { bottom: auto; top: 0; height: 16px; line-height: 16px; }
.ta-mlabel--cost.is-out { color: var(--ta-blue-ink); }
.ta-mlabel--margin.is-out { color: var(--ta-sea-ink); }
.ta-pay-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); gap: 14px; align-items: start; margin-bottom: 14px; }
.ta-pay-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; }
.ta-meter { height: 8px; border-radius: 999px; background: var(--ta-subtle); box-shadow: inset 0 0 0 1px var(--ta-line-soft); margin-top: 10px; overflow: hidden; }
.ta-meter span { display: block; height: 100%; border-radius: 999px; }
.ta-meter--ok span { background: var(--ok); }
.ta-meter--blue span { background: var(--ta-blue); }
.ta-meter-txt { font-size: 13px; color: var(--ta-muted); }
.ta-pays { display: grid; margin-top: 8px; }
.ta-pay { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "txt amt" "txt tag"; align-items: center; gap: 2px 12px; padding: 9px 0; }
.ta-pay + .ta-pay { border-top: 1px solid var(--ta-line-soft); }
.ta-pay-txt { grid-area: txt; display: grid; min-width: 0; }
.ta-pay-txt b { font-size: 13.5px; font-weight: 700; }
.ta-pay-txt > span { font-size: 12.5px; color: var(--ta-muted); }
.ta-pay-amt { grid-area: amt; justify-self: end; font-weight: 800; color: var(--ta-ink); font-size: 14px; }
.ta-pay.is-paid .ta-pay-amt { color: var(--ta-ok-ink); }
.ta-pay .ta-tag { grid-area: tag; justify-self: end; }
.ta-tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 6px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.ta-tag .ta-i { width: 13px; height: 13px; }
.ta-tag--paid { background: var(--ta-ok-bg); color: var(--ta-ok-ink); }
.ta-tag--soon { background: var(--ta-sun-bg); color: var(--ta-ink); }
.ta-tag--soon .ta-i { color: var(--ta-sun-icon); }
.ta-tag.ta-tag--rule { background: var(--ta-subtle); color: var(--ta-ink); padding: 1px 8px 1px 6px; }
.ta-tag--rule .ta-i { color: var(--ta-muted); }
.ta-paid-sum { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 12px; padding: 7px 10px; border-radius: 10px; background: var(--ta-ok-bg); font-size: 13px; color: var(--ta-ink); }
.ta-paid-sum:hover { background: color-mix(in srgb, var(--ok) 15%, var(--white)); }
.ta-paid-sum .ta-tag { background: var(--white); }
.ta-paid-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ta-paid-sum > .ta-i { color: var(--ta-ok-ink); }
.ta-spay-group { margin-top: 12px; font-size: 12px; font-weight: 800; color: var(--ta-muted); text-transform: uppercase; letter-spacing: .05em; }
.ta-spays { display: grid; }
.ta-spays--paid { margin-top: 4px; }
.ta-spay { display: grid; grid-template-columns: minmax(0,1fr) auto 72px; align-items: center; gap: 10px; min-height: 36px; padding: 4px 0; border-bottom: 1px solid var(--ta-line-soft); }
.ta-spay-name { font-size: 13px; font-weight: 650; color: var(--ta-ink); line-height: 1.3; min-width: 0; }
.ta-spay-amt { font-size: 13.5px; font-weight: 800; color: var(--ta-ink); text-align: right; }
.ta-spay.is-paid .ta-spay-amt { color: var(--ta-ok-ink); }
.ta-more-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; min-height: 30px; padding: 0 6px; border-radius: 8px; font-size: 13px; font-weight: 750; color: var(--ta-blue-ink); }
.ta-more-btn:hover { text-decoration: underline; text-underline-offset: .2em; }
.ta-more-btn .ta-i { width: 15px; height: 15px; }

/* ---------- Spazio cliente ---------- */
.ta-space-on { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--ta-ok-bg); color: var(--ta-ok-ink); font-size: 12.5px; font-weight: 700; }
.ta-people { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.ta-person { border: 1px solid var(--ta-line); border-radius: 16px; padding: 14px 16px 12px; background: var(--white); }
.ta-person.has-alert { border-color: color-mix(in srgb, var(--sunset) 70%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sunset) 14%, transparent); }
.ta-person-head { display: flex; align-items: center; gap: 10px; }
.ta-person-head > span:last-child { display: grid; min-width: 0; }
.ta-person-head b { font-size: 14px; font-weight: 750; }
.ta-person-head > span:last-child > span { font-size: 12.5px; color: var(--ta-muted); }
.ta-person-av { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 12.5px; font-weight: 800; flex: none; color: var(--white); }
.ta-person-av--0 { background: var(--ta-blue-ink); }
.ta-person-av--1 { background: var(--ta-sea); }
.ta-person-av--2 { background: color-mix(in srgb, var(--blue) 55%, var(--ink)); }
.ta-person-av--3 { background: var(--ta-sun-icon); }
.ta-person-av--s { background: var(--ta-ink); width: 36px; height: 36px; }
.ta-person-dl { display: grid; gap: 7px; margin-top: 12px; }
.ta-person-dl > div { display: grid; grid-template-columns: 84px minmax(0,1fr); gap: 10px; align-items: baseline; }
.ta-person-dl dt { font-size: 12.5px; font-weight: 700; color: var(--ta-muted); }
.ta-person-dl dd { font-size: 13px; color: var(--ta-text); min-width: 0; }
.ta-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ta-allergy { display: grid; justify-items: start; gap: 4px; }
.ta-alert { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 10px 2px 7px; border-radius: 999px; background: var(--ta-sun-bg); color: var(--ta-ink); font-weight: 750; font-size: 12.5px; transition: transform .15s ease; }
.ta-alert:hover { transform: translateY(-1px); }
.ta-alert .ta-i { width: 14px; height: 14px; color: var(--ta-sun-icon); }
.ta-alert-hint { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ta-muted); }
.ta-alert-hint .ta-i { width: 12px; height: 12px; }
.ta-none { color: var(--ta-muted); }
.ta-pass { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.ta-up { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--ta-ok-ink); }
.ta-up .ta-i { width: 13px; height: 13px; }

/* ---------- Aside: one continuous timeline ---------- */
.ta-aside .ta-h { margin-bottom: 14px; }
.ta-tl { display: grid; }
.ta-tl > li { position: relative; padding-left: 44px; }
.ta-tl > li::before { content: ""; position: absolute; left: 16px; top: 0; bottom: 0; border-left: 2px dashed color-mix(in srgb, var(--ink) 22%, transparent); }
.ta-tl > li:first-child::before { top: 17px; }
.ta-tl > li:last-child::before { bottom: auto; height: 17px; }
.ta-tl-ico { position: absolute; left: 0; top: 0; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--white); border: 1px solid var(--ta-line); color: var(--ta-blue-ink); }
.ta-tl-gap { padding-block: 12px; font-size: 12.5px; font-weight: 700; color: var(--ta-muted); }
.ta-move-body { display: grid; min-width: 0; padding: 14px; border: 1px solid var(--ta-line); border-radius: 16px; background: var(--white); }
.ta-move-k { font-size: 12.5px; font-weight: 700; color: var(--ta-muted); }
.ta-move-time { font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.ta-move-where { font-size: 13.5px; font-weight: 700; color: var(--ta-ink); }
.ta-move-from { font-size: 12.5px; color: var(--ta-muted); }
.ta-move-tr { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--ta-line); }
.ta-move-tr .ta-pill { justify-self: start; }
.ta-move-tr-txt { display: flex; align-items: flex-start; gap: 8px; }
.ta-move-tr-txt .ta-i { margin-top: 2px; color: var(--ta-muted); }
.ta-move-tr-txt > span { display: grid; }
.ta-move-tr-txt b { font-size: 13px; font-weight: 700; }
.ta-move-tr-txt > span > span { font-size: 12.5px; color: var(--ta-muted); }
.ta-contact { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 16px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--ta-line); background: var(--white); text-align: left; transition: background-color .15s, transform .15s; }
.ta-contact:hover { background: var(--ta-ok-bg); transform: translateY(-1px); }
.ta-contact-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ta-ok-bg); color: var(--ta-ok-ink); flex: none; }
.ta-contact-txt { display: grid; flex: 1; min-width: 0; font-size: 12.5px; color: var(--ta-muted); }
.ta-contact-txt b { font-size: 13.5px; }
.ta-contact-num { color: var(--ta-ok-ink); font-weight: 700; }
.ta-contact-go { color: var(--ta-ok-ink); }

/* ---------- Phone shortening (round 5): collapsed days and «Mostra tutti»; natural page flow at all widths ---------- */
.ta-day-toggle, .ta-sup-more { display: none; }
/* Phones: natural page flow, shortened instead of nested scroll */
@media (max-width: 899px) {
  .ta-day-toggle { display: inline-flex; align-items: center; gap: 6px; justify-self: start; min-height: 32px; padding: 0 6px; border-radius: 8px; font-size: 13px; font-weight: 750; color: var(--ta-blue-ink); }
  .ta-day-toggle .ta-i { width: 15px; height: 15px; }
  .ta-day.is-collapsed .ta-items { display: none; }
  .ta-sup-more { display: inline-flex; }
  .ta-sup-list:not(.is-all) .ta-sup-item.is-more { display: none; }
}

/* ---------- Cover: a soft, blurred preview of the app with a card that opens it ---------- */
.ta.is-covered { height: 560px; cursor: pointer; }
.ta.is-covered > :not(.ta-cover) { filter: blur(3px) saturate(.9); opacity: .55; pointer-events: none; user-select: none; }
.ta.is-opening { transition: max-height .6s cubic-bezier(.2,.7,.2,1); }
.ta.is-opening > :not(.ta-cover) { transition: filter .45s ease, opacity .45s ease; }
.ta-cover { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 24px; background: linear-gradient(180deg, color-mix(in srgb, var(--paper) 25%, transparent), color-mix(in srgb, var(--ta-night, var(--paper)) 70%, transparent) 70%); transition: opacity .45s ease, transform .45s ease; }
.ta:not(.is-covered) .ta-cover { opacity: 0; transform: scale(1.02); pointer-events: none; }
.ta-cover-card { display: grid; justify-items: center; gap: 12px; width: min(460px, 100%); padding: 28px 28px 26px; border: 1px solid var(--ta-line); border-radius: 22px; background: var(--white); text-align: center; box-shadow: 0 24px 60px -24px color-mix(in srgb, var(--ink) 35%, transparent); transition: transform .2s ease; }
.ta-cover:hover .ta-cover-card { transform: translateY(-2px); }
/* The top label is the opener (.demo-opener, 30 Nov): what the visitor is about to try. */
.ta-cover-opener { max-width: 36ch; }
.ta-cover-line { max-width: 40ch; font-size: 15px; line-height: 1.5; color: var(--ta-text); }
.ta-cover-small { margin-top: -4px; font-size: 13px; color: var(--ta-muted); }
.ta-cover-btn { min-height: 46px; padding: 0 22px; border-radius: 12px; font-size: 15px; }
.ta-cover-btn .ta-i { width: 18px; height: 18px; }
@media (max-width: 600px) {
  .ta.is-covered { height: 460px; }
  .ta-cover { padding: 16px; }
  .ta-cover-card { padding: 22px 18px; }
}

/* ---------- Notifications ---------- */
.ta-notif { position: relative; }
.ta-bell { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--ta-ink); }
.ta-bell:hover, .ta-bell[aria-expanded="true"] { background: var(--ta-hover); }
.ta-bell .ta-i { width: 18px; height: 18px; }
.ta-bell-badge { position: absolute; top: 2px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--sunset); color: var(--ink); font-size: 12px; font-weight: 800; line-height: 17px; text-align: center; display: none; }
.ta-bell.has-unread .ta-bell-badge { display: block; }
.ta-bell.is-ring .ta-i { animation: ta-ring .9s ease; transform-origin: 50% 10%; }
@keyframes ta-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
.ta-notif-pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 5; width: min(320px, calc(100vw - 48px)); padding: 8px; border: 1px solid var(--ta-line); border-radius: 14px; background: var(--white); box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--ink) 30%, transparent); animation: ta-in .18s ease both; white-space: normal; }
.ta-notif-h { padding: 6px 8px 8px; font-size: 13px; font-weight: 800; color: var(--ta-ink); }
.ta-notif-list { display: grid; gap: 2px; }
.ta-note { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 8px; border-radius: 10px; text-align: left; }
.ta-note:hover { background: var(--ta-subtle); }
.ta-note-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: transparent; flex: none; }
.ta-note.is-unread { background: var(--ta-blue-bg); }
.ta-note.is-unread .ta-note-dot { background: var(--ta-blue); }
.ta-note-txt { display: grid; min-width: 0; }
.ta-note-txt b { font-size: 13px; font-weight: 700; line-height: 1.35; }
.ta-note-txt span { font-size: 12px; color: var(--ta-muted); }
.ta-flash { animation: ta-flash 1.6s ease; }
@keyframes ta-flash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 40% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ok) 25%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.ta-meter span { transition: width .9s cubic-bezier(.2,.7,.2,1); }

/* ---------- Toast ---------- */
.ta-toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; width: max-content; max-width: calc(100vw - 32px); }
.ta-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ta-toast.is-on.is-action { pointer-events: auto; cursor: pointer; }
/* Toasts: light cards; AI and notification toasts get the dusk tint with a sparkle or bell in a white circle. */
.ta-toast-in { display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 9px; border-radius: 16px; border: 1px solid var(--ta-line); background: var(--white); color: var(--ta-ink); font-size: 13.5px; font-weight: 650; box-shadow: 0 14px 36px -12px color-mix(in srgb, var(--ink) 30%, transparent); }
.ta-toast-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ta-blue-bg); color: var(--ta-blue-ink); flex: none; }
.ta-toast-ico .ta-i { width: 16px; height: 16px; }
.ta-toast--ok .ta-toast-ico, .ta-toast--wa .ta-toast-ico { background: var(--ta-ok-bg); color: var(--ta-ok-ink); }
.ta-toast--fun .ta-toast-ico { background: var(--ta-sun-bg); color: var(--ta-sun-icon); }
.ta-toast--ai, .ta-toast--note { background: linear-gradient(110deg, var(--ta-night) 30%, var(--ta-dusk)); border-color: color-mix(in srgb, var(--blue) 18%, transparent); }
.ta-toast--ai .ta-toast-ico, .ta-toast--note .ta-toast-ico { background: var(--white); color: var(--ta-night-ink); box-shadow: var(--ta-shadow); }
.ta-toast-cta { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--white); color: var(--ta-night-ink); font-weight: 750; box-shadow: var(--ta-shadow); }

/* ---------- Responsive ---------- */
@media (max-width: 899px) {
  .ta-body { grid-template-columns: minmax(0,1fr); }
  .ta-aside { border-left: 0; border-top: 1px solid var(--ta-line-soft); }
  .ta-pay-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 760px) {
  .ta-cols { display: none; }
  .ta-sup-row { grid-template-columns: 34px minmax(0,1fr) 16px; grid-template-areas: "ico name chev" "ico meta chev"; row-gap: 8px; align-items: start; }
  .ta-sup-row .ta-ico { grid-area: ico; }
  .ta-sup-name { grid-area: name; }
  .ta-sup-name > span { white-space: normal; }
  .ta-sup-meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  .ta-chev { grid-area: chev; align-self: center; }
  .ta-sup-drawer { padding: 4px 12px 14px; }
  .ta-sd-grid { grid-template-columns: minmax(0,1fr); }
  .ta-sd-full { grid-template-columns: minmax(0,1fr); }
  .ta-stubs { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ta-people { grid-template-columns: minmax(0,1fr); }
  .ta-mrow { grid-template-columns: 120px minmax(0,1fr) 80px; gap: 10px; }
}
@media (max-width: 600px) {
  .ta-scope { font-size: 13.5px; }
  .ta { border-radius: 16px; }
  .ta-bar { padding: 8px 14px; }
  .ta-crumbs .ta-crumb-muted, .ta-crumbs .ta-sep, .ta-crumbs .ta-crumb-cur { display: none; }
  .ta-team-txt { display: none; }
  .ta-notif { position: static; }
  .ta-notif-pop { left: 12px; right: 12px; width: auto; top: calc(100% + 4px); }
  .ta-head { grid-template-columns: minmax(0,1fr); padding: 18px 16px 16px; gap: 14px; }
  .ta-title { font-size: 21px; }
  .ta-meta { gap: 4px 14px; font-size: 13px; }
  .ta-price { justify-items: start; text-align: left; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; }
  .ta-price-label { grid-column: 1 / -1; }
  .ta-price b { font-size: 24px; }
  .ta-segs { flex-basis: 100%; max-width: none; }
  .ta-tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 4px 10px 0; }
  .ta-tab { padding: 0 10px; font-size: 13.5px; }
  .ta-panel { padding: 16px 12px 20px; }
  .ta-aside { padding: 18px 14px 20px; }
  .ta-legend { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px 10px; padding: 10px; }
  .ta-legend-help { display: none; }
  .ta-day { padding: 12px; border-radius: 18px; gap: 10px; }
  .ta-day-head { flex-wrap: wrap; }
  .ta-day-title { flex-basis: calc(100% - 58px); }
  .ta-day-sum { order: 3; margin-left: 58px; }
  .ta-night { flex-wrap: wrap; }
  .ta-night-txt { flex-basis: calc(100% - 46px); }
  .ta-item-row { grid-template-columns: minmax(0,1fr) 16px; grid-template-areas: "main chev" "st chev"; row-gap: 0; padding: 0 8px 8px 0; }
  .ta-item-main { grid-area: main; grid-template-columns: 34px minmax(0,1fr); gap: 10px; padding: 8px 0 4px 4px; align-items: start; }
  .ta-item .ta-time { display: none; }
  .ta-time-m { display: inline; color: var(--ta-blue-ink); }
  .ta-item-st { grid-area: st; justify-content: flex-start; padding-left: 48px; }
  .ta-item .ta-chev { grid-area: chev; }
  .ta-item-drawer { padding: 0 8px 10px; }
  .ta-night-st { margin-left: 46px; }
  .ta-pill { white-space: normal; }
  .ta-toolbar .ta-actions { width: 100%; }
  .ta-toolbar .ta-actions .ta-btn { flex: 1 1 auto; }
  .ta-preview > div { grid-template-columns: minmax(0,1fr); gap: 0; }
  .ta-ticket-head { flex-wrap: wrap; }
  .ta-ticket-head .ta-btn { width: 100%; }
  .ta-stubs { padding: 0 12px 12px; gap: 8px; }
  .ta-stub { grid-template-columns: minmax(0,1fr); justify-items: start; }
  .ta-qr { width: 56px; height: 56px; }
  .ta-doc { grid-template-columns: 34px minmax(0,1fr) auto; }
  .ta-doc-shared { display: none; }
  .ta-doc-pending { grid-column: 2 / -1; justify-self: start; }
  .ta-kpis { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .ta-kpi--margin { grid-column: 1 / -1; order: -1; }
  .ta-card { padding: 14px; }
  .ta-mrow { grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "name val" "bar bar"; gap: 2px 10px; }
  .ta-mrow .ta-mrow-name { grid-area: name; }
  .ta-mrow .ta-mbar { grid-area: bar; }
  .ta-mrow .ta-mrow-val { grid-area: val; }
  .ta-card-head { align-items: flex-start; }
  .ta-spay { grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "name amt" "tag tag"; gap: 2px 10px; padding: 6px 0; }
  .ta-spay-name { grid-area: name; }
  .ta-spay-amt { grid-area: amt; }
  .ta-spay .ta-tag { grid-area: tag; justify-self: start; }
  .ta-paid-txt .ta-muted { display: none; }
  .ta-person-dl > div { grid-template-columns: minmax(0,1fr); gap: 3px; }
  .ta-toast { bottom: 16px; }
}
@media (max-width: 360px) {
  .ta-team-txt span:not(.ta-live) { display: none; }
  .ta-kpis { grid-template-columns: minmax(0,1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .ta-scope *, .ta-scope *::before, .ta-scope *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-contrast: more) {
  .ta-scope { --ta-muted: var(--ink); --ta-line: var(--ink); --ta-line-soft: color-mix(in srgb, var(--ink) 40%, transparent); }
}
