/* Vesta: caldo, chiaro, leggibile dal telefono */
:root {
  --bg: #faf6f1;
  --card: #ffffff;
  --line: #eadfd3;
  --text: #292524;
  --muted: #78716c;
  --brand: #c2410c;
  --brand-dark: #9a3412;
  --brand-soft: #fff1e6;
  --over: #dc2626;
  --over-soft: #fef2f2;
  --soon: #ea8a0c;
  --soon-soft: #fff7ed;
  --ok: #16a34a;
  --ok-soft: #f0fdf4;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(41, 37, 36, .04), 0 4px 16px rgba(41, 37, 36, .04);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1917; --card: #262220; --line: #3a3330; --text: #f5f0eb; --muted: #a8a29e;
    --brand: #f97316; --brand-dark: #fb923c; --brand-soft: #3b2417;
    --over-soft: #3a1d1d; --soon-soft: #3a2a17; --ok-soft: #17301f;
    --shadow: none; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 1.02rem; margin: 0 0 .75rem; }
h3 { font-size: .95rem; margin: 1.1rem 0 .5rem; }
code { background: var(--brand-soft); padding: 0 .3em; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.right { float: right; }
[hidden] { display: none !important; }

/* ---- layout ---- */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 232px; flex-shrink: 0; background: var(--card); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--brand); padding: 4px 10px 18px; }
.brand:hover { text-decoration: none; }
.nav-link, .nav-sub { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text); font-weight: 500; }
.nav-link:hover, .nav-sub:hover { background: var(--bg); text-decoration: none; }
.nav-link.on { background: var(--brand-soft); color: var(--brand-dark); font-weight: 650; }
.nav-ico { width: 22px; text-align: center; }
.nav-sub { font-size: .9rem; padding: 6px 12px; color: var(--muted); font-weight: 400; }
.nav-sep { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 12px 4px; }
.badge { margin-left: auto; background: var(--over); color: #fff; font-size: .72rem; border-radius: 99px; padding: 1px 7px; font-weight: 700; }
.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.me { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.main { flex: 1; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 28px; position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); z-index: 5; }
.search { flex: 1; max-width: 520px; }
.search input { width: 100%; }
.brand-mobile, .avatar-mobile { display: none; }
.content { padding: 8px 28px 48px; max-width: 1180px; }
.bottomnav, .more-sheet { display: none; }

/* ---- componenti ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; box-shadow: var(--shadow); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.page-head, .detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 8px 0 18px; flex-wrap: wrap; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crumb { font-size: .86rem; margin-bottom: 2px; }
.hello { margin: 8px 0 18px; }
.hello p { margin: 2px 0 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-weight: 600; padding: 9px 15px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: var(--brand); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; }
.btn-danger-ghost { background: transparent; color: var(--over); border-color: transparent; }
.btn-danger-ghost:hover { border-color: var(--over); }
.btn-sm { padding: 5px 10px; font-size: .86rem; }
.btn-block { width: 100%; }
.linkbtn { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 4px; }

.avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.avatar:hover { text-decoration: none; }
.avatar.xs { width: 22px; height: 22px; font-size: .7rem; }
.avatar.both { background: linear-gradient(135deg, #c2410c 50%, #7c3aed 50%); }
.chip-person { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--muted); white-space: nowrap; }

.notice { background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; }
.notice-ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.notice-err { background: var(--over-soft); border-color: color-mix(in srgb, var(--over) 30%, transparent); color: var(--over); }

/* stat */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--text); display: flex; flex-direction: column; box-shadow: var(--shadow); }
.stat:hover { text-decoration: none; }
.stat b { font-size: 1.7rem; line-height: 1.1; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .86rem; }
.stat-over { border-left: 4px solid var(--over); } .stat-over b { color: var(--over); }
.stat-soon { border-left: 4px solid var(--soon); } .stat-soon b { color: var(--soon); }
.stat-ok { border-left: 4px solid var(--ok); } .stat-ok b { color: var(--ok); }

/* righe */
.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); color: var(--text); border-radius: 8px; }
.row:last-child { border-bottom: 0; }
a.row:hover, .row a.row-main:hover { background: var(--bg); text-decoration: none; }
.row-main { display: flex; flex-direction: column; min-width: 0; flex: 1; color: var(--text); }
.row-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: .84rem; color: var(--muted); }
.row-cost { font-weight: 600; font-size: .9rem; white-space: nowrap; }
.row-ico { font-size: 1.3rem; width: 28px; text-align: center; }
.rows.compact .row { padding: 7px 4px; }
.snippet { font-size: .8rem; color: var(--muted); font-style: italic; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: var(--muted); }
.lvl-over .dot { background: var(--over); box-shadow: 0 0 0 3px var(--over-soft); }
.lvl-soon .dot { background: var(--soon); box-shadow: 0 0 0 3px var(--soon-soft); }
.lvl-ok .dot { background: var(--ok); }
.lvl-done .dot { background: var(--line); }
.lvl-done .row-title { color: var(--muted); text-decoration: line-through; }
.lvl-over .row-sub { color: var(--over); }
.txt-over { color: var(--over); }

.empty { text-align: center; padding: 28px 10px; }
.empty-ok { text-align: center; }
.big { font-size: 2.6rem; }

/* timeline */
.timeline { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; }
.tl-col { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: .76rem; }
.tl-col:hover { text-decoration: none; }
.tl-bar-wrap { height: 70px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.tl-bar { width: 70%; max-width: 26px; min-height: 3px; background: linear-gradient(var(--brand), #f59e0b); border-radius: 6px 6px 3px 3px; }
.tl-n { font-weight: 700; color: var(--text); min-height: 1em; }

/* veicoli */
.vlist { display: flex; flex-direction: column; gap: 6px; }
.vmini { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: var(--text); }
.vmini:hover { background: var(--bg); text-decoration: none; }
.vmini-ico, .vcard-ico { font-size: 1.6rem; }
.vcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.vcard.archived { opacity: .55; }
.vcard-head { display: flex; gap: 12px; align-items: center; color: var(--text); margin-bottom: 10px; }
.vcard-head:hover { text-decoration: none; }
.vcard-head b { font-size: 1.1rem; margin-right: 6px; }
.vcard-head .muted { display: block; }
.plate { display: inline-block; font-family: ui-monospace, monospace; font-size: .8rem; font-weight: 700; border: 2px solid #1e3a8a; border-left-width: 9px; border-radius: 4px; padding: 0 6px; color: var(--text); vertical-align: middle; letter-spacing: .05em; }
.km-form { display: flex; gap: 8px; align-items: center; margin: 12px 0 8px; }
.km-form input { width: 120px; }
.km-inline { display: flex; gap: 6px; }
.km-inline input { width: 100%; font-size: 1.3rem; font-weight: 700; padding: 4px 8px; }
.meter { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.meter:hover { text-decoration: none; }
.meter:last-child { border-bottom: 0; }
.meter-top { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; }
.meter-top span { color: var(--muted); text-align: right; }
.meter-bar { display: block; height: 8px; background: var(--bg); border-radius: 99px; margin-top: 6px; overflow: hidden; }
.meter-bar span { display: block; height: 100%; border-radius: 99px; background: var(--ok); }
.lvl-soon .meter-bar span { background: var(--soon); }
.lvl-over .meter-bar span { background: var(--over); width: 100% !important; }
.lvl-over .meter-top span { color: var(--over); }

/* moduli */
.form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inline { display: flex; gap: 8px; }
.num-sm { width: 80px; }
input, select, textarea { font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; width: 100%; font-weight: 400; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--brand); }
input[type=color] { padding: 2px; height: 40px; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 40%, transparent); border-color: var(--brand); }
.check { display: flex; gap: 8px; align-items: center; font-size: .92rem; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; font-weight: 500; color: var(--text); cursor: pointer; background: var(--card); }
.pill input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.inline-form { flex-direction: row; display: flex; gap: 8px; align-items: center; }
.inline-form select, .inline-form input { flex: 1; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filters select, .filters input { width: auto; }
.filters .grow { flex: 1; min-width: 200px; }
details.sub { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
details.sub summary { cursor: pointer; color: var(--brand); font-weight: 600; margin-bottom: 8px; }
form.sub { margin-top: 12px; }
.presets { border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.presets legend { font-size: .86rem; font-weight: 600; color: var(--muted); padding: 0 6px; }
.preset { display: grid; grid-template-columns: 1fr 170px; align-items: center; gap: 10px; }
.danger-zone { display: flex; gap: 8px; justify-content: flex-end; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.seg a { padding: 7px 14px; color: var(--text); font-weight: 500; }
.seg a.on { background: var(--brand); color: #fff; }
.seg a:hover { text-decoration: none; }

/* dettaglio */
.detail-head h1 { margin: 2px 0 6px; }
.status-line { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.lvl-over .status-line { color: var(--over); }
.lvl-soon .status-line { color: var(--soon); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.kv dt { color: var(--muted); font-size: .88rem; }
.kv dd { margin: 0; }
.notes { white-space: pre-wrap; background: var(--bg); padding: 10px 12px; border-radius: 10px; margin-top: 12px; }
.done-card { border: 2px solid color-mix(in srgb, var(--ok) 40%, transparent); }
.history { list-style: none; padding: 0; margin: 0; }
.history li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.history li:last-child { border-bottom: 0; }
.history li.exp { display: flex; align-items: center; gap: 10px; }
.history li.exp span { flex: 1; }
.activity { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.activity li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.activity a { color: var(--text); }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.qbtn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border: 1px solid var(--line); border-radius: 12px; font-size: 1.4rem; color: var(--text); }
.qbtn span { font-size: .84rem; font-weight: 600; }
.qbtn:hover { border-color: var(--brand); text-decoration: none; background: var(--brand-soft); }

/* calendario */
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cal-head h2 { margin: 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-dow { font-size: .76rem; color: var(--muted); text-align: center; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 600; }
.cal-day { min-height: 92px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px; display: flex; flex-direction: column; gap: 3px; }
.cal-day.out { background: var(--bg); }
.cal-day.out .cal-num { color: var(--muted); }
.cal-num { font-size: .8rem; font-weight: 600; color: var(--text); align-self: flex-end; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.cal-num:hover { background: var(--brand-soft); text-decoration: none; }
.cal-day.today .cal-num { background: var(--brand); color: #fff; }
.cal-item { font-size: .74rem; padding: 2px 5px; border-radius: 5px; background: var(--ok-soft); color: var(--text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-left: 3px solid var(--ok); }
.cal-item.lvl-soon { background: var(--soon-soft); border-color: var(--soon); }
.cal-item.lvl-over { background: var(--over-soft); border-color: var(--over); }
.cal-item.lvl-done { opacity: .5; text-decoration: line-through; border-color: var(--line); }

/* documenti */
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-bottom: 14px; }
.folder { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: 1.5rem; color: var(--text); position: relative; }
.folder span { font-size: .84rem; font-weight: 600; }
.folder small { position: absolute; top: 6px; right: 8px; font-size: .7rem; color: var(--muted); }
.folder.on, .folder:hover { border-color: var(--brand); background: var(--brand-soft); text-decoration: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag { font-size: .82rem; padding: 3px 10px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.tag.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.dropzone { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 110px; border: 2px dashed var(--line); border-radius: 12px; padding: 14px; cursor: pointer; font-weight: 600; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone.over, .dropzone:hover { border-color: var(--brand); background: var(--brand-soft); }
.preview { padding: 0; overflow: hidden; }
.preview img { display: block; max-width: 100%; margin: 0 auto; }
.preview iframe { display: block; width: 100%; height: 75vh; border: 0; }
.qr { display: block; width: 200px; height: 200px; background: #fff; border-radius: 8px; margin: 8px 0; }
.copy { display: flex; gap: 8px; }
.copy input { font-size: .8rem; }

/* spese */
.hbar { display: grid; grid-template-columns: 140px 1fr auto; gap: 10px; align-items: center; padding: 5px 0; font-size: .9rem; }
.hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 10px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.hbar-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #f59e0b); border-radius: 99px; }

/* contatti */
.contact { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact:last-child { border-bottom: 0; }
.contact-main { flex: 1; }
.contact-links { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 4px; }

/* login */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; background: radial-gradient(circle at 50% 0%, var(--brand-soft), var(--bg) 60%); }
.login-card { width: 100%; max-width: 360px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; text-align: center; box-shadow: 0 10px 40px rgba(194, 65, 12, .08); }
.login-card h1 { color: var(--brand); font-size: 2rem; margin-top: 8px; }
.login-card .form { text-align: left; margin-top: 18px; }

/* ---- telefono ---- */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .sidebar { display: none; }
  .topbar { padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top)); }
  .brand-mobile { display: flex; padding: 0; font-size: 1.15rem; }
  .brand-mobile span { display: none; }
  .avatar-mobile { display: inline-flex; }
  .btn-new span { display: none; }
  .content { padding: 4px 14px 100px; }
  h1 { font-size: 1.35rem; }
  .card { padding: 14px; border-radius: 12px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat b { font-size: 1.4rem; }
  .field-row { grid-template-columns: 1fr; }
  .row-who .chip-person { font-size: 0; gap: 0; }
  .row-cost { display: none; }
  .bottomnav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--card); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 10; }
  .bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; font-size: .7rem; color: var(--muted); position: relative; }
  .bottomnav a span { font-size: 1.25rem; }
  .bottomnav a.on { color: var(--brand); font-weight: 700; }
  .bottomnav a:hover { text-decoration: none; }
  .bottomnav .badge { position: absolute; top: -2px; right: 18%; }
  .more-sheet { position: fixed; bottom: 64px; right: 10px; left: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px; z-index: 11; box-shadow: 0 10px 40px rgba(0,0,0,.15); display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
  .more-sheet a, .more-sheet .linkbtn { padding: 10px 12px; color: var(--text); border-radius: 10px; text-align: left; }
  .cal-day { min-height: 64px; padding: 2px; }
  .cal-item { font-size: 0; padding: 0; height: 6px; border-left-width: 0; }
  .preset { grid-template-columns: 1fr; }
  .hbar { grid-template-columns: 100px 1fr auto; }
  .quick { grid-template-columns: repeat(4, 1fr); }
  .qbtn span { font-size: .7rem; }
}

/* impostazioni */
.newpw { border: 2px solid var(--brand); }
.mono { font-family: ui-monospace, monospace; font-size: 1.05rem !important; font-weight: 700; letter-spacing: .03em; }
details.user { border-bottom: 1px solid var(--line); padding: 8px 0; }
details.user:last-child { border-bottom: 0; }
details.user summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; padding: 4px 0; }
details.user summary::-webkit-details-marker { display: none; }
details.user[open] summary { margin-bottom: 10px; }
.badges { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.pilltag { font-size: .72rem; padding: 2px 8px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-dark); white-space: nowrap; }
.pilltag.ok { background: var(--ok-soft); color: var(--ok); }
.pilltag.warn { background: var(--soon-soft); color: var(--soon); }
.user-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
.steps { padding-left: 18px; margin: 4px 0 10px; }
.steps li { margin-bottom: 4px; }

/* spese da Oink */
.timeline.tall .tl-bar-wrap { height: 110px; }
.tl-stack { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; width: 100%; }
.tl-stack .tl-bar { border-radius: 0; }
.tl-stack .tl-bar:first-child { border-radius: 6px 6px 0 0; }
.tl-stack .tl-bar:last-child { border-radius: 0 0 3px 3px; }
.tl-stack .tl-bar:only-child { border-radius: 6px 6px 3px 3px; }
.tl-bar.sched { background: repeating-linear-gradient(45deg, var(--brand-soft), var(--brand-soft) 3px, color-mix(in srgb, var(--brand) 35%, transparent) 3px, color-mix(in srgb, var(--brand) 35%, transparent) 6px); }
details.catrow summary { list-style: none; cursor: pointer; }
details.catrow summary::-webkit-details-marker { display: none; }
details.catrow summary:hover .hbar-label { color: var(--brand); }
.subs { list-style: none; margin: 0 0 8px 0; padding: 4px 0 4px 18px; border-left: 2px solid var(--line); }
.subs li { display: flex; justify-content: space-between; font-size: .86rem; padding: 2px 0; color: var(--muted); }
