:root {
  /* Lorenzo's brand since 2026-11-25: white and black like Apple, a light grey in between, NO blue ("i miei colori devono essere il bianco e il nero"). Was one blue #2457F5 from 2026-11-16. */
  --bg: #f5f5f7; --side: #fbfbfd; --panel: #f5f5f7; --card: #ffffff; --card2: #f0f0f2;
  --line: #e8e8ed; --line2: #d2d2d7; --text: #1d1d1f; --muted: #6e6e73; --dim: #a1a1a6;
  --y: #1d1d1f; --on-y: #ffffff; --ink: #121111; --green: #121111; --red: #d0392b; --blue: #121111;
  --r: 16px;
  --shadow: 0 1px 2px rgba(18,17,17,.05), 0 6px 22px rgba(18,17,17,.07);
  --shadow2: 0 2px 4px rgba(18,17,17,.06), 0 14px 36px rgba(18,17,17,.10);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mono: var(--sans);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--y); color: var(--on-y); }

/* layout */
.layout { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { background: var(--side); border-right: 1px solid var(--line); padding: 16px 12px 20px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.brand { background: var(--y); color: var(--on-y); border-radius: 12px; padding: 12px 14px 13px; margin-bottom: 8px; text-decoration: none; display: block; }
.brand .logo { display: block; width: 132px; height: auto; margin: 2px 0 10px; }
.brand small { display: block; font: 650 11px var(--sans); letter-spacing: .01em; opacity: .7; }
.brand b { display: block; font-size: 17px; letter-spacing: -.02em; line-height: 1.15; margin-top: 2px; }
.brand span { display: block; font-size: 12px; opacity: .75; margin-top: 2px; }
.wsel { margin: 4px 0 6px; }
.wsel select { font-size: 13px; padding: 7px 10px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav .sec { font: 650 11px var(--sans); letter-spacing: .02em; text-transform: uppercase; color: var(--dim); padding: 14px 10px 5px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover { background: var(--card2); color: var(--text); }
.nav a.on { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.nav a.on svg { color: var(--on-y); background: var(--y); border-radius: 6px; padding: 2px; }
.nav .badge { margin-left: auto; background: var(--y); color: var(--on-y); font: 700 10px var(--mono); border-radius: 20px; padding: 1px 7px; }
.side .foot { margin-top: auto; padding: 14px 10px 0; display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 12px; }
.side .foot button { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; }
.main { padding: 34px 44px 90px; width: 100%; max-width: 1260px; }

/* type */
.label { font: 600 12px var(--sans); letter-spacing: .01em; color: var(--muted); }
.label.y { color: var(--on-y); background: var(--y); border-radius: 6px; padding: 1px 7px; display: inline-block; }
h1.hello { font-size: 42px; letter-spacing: -.035em; line-height: 1.04; margin: 6px 0 14px; font-weight: 750; }
h1.page { font-size: 34px; letter-spacing: -.03em; margin: 4px 0 6px; font-weight: 750; }
h2 { font-size: 19px; letter-spacing: -.015em; margin: 0 0 12px; }
.sub { color: var(--muted); font-size: 14px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mt { margin-top: 16px; } .mt2 { margin-top: 28px; } .mb { margin-bottom: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }

/* blocks */
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid transparent; border-radius: var(--r); padding: 18px 20px; min-width: 0; box-shadow: var(--shadow); }
.card.link { text-decoration: none; display: block; transition: border-color .15s; }
.card.link:hover { box-shadow: var(--shadow2); }
.card.hi { border-color: var(--y); box-shadow: 0 0 0 2px var(--y), var(--shadow); }
.big { font-size: 36px; font-weight: 750; letter-spacing: -.035em; line-height: 1; margin-top: 12px; }
.big.sm { font-size: 30px; }
.delta { font: 600 12px var(--sans); }
.delta.up { color: var(--ink); } .delta.down { color: var(--red); }
.progress { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--y); border-radius: 4px; }
.weekline { justify-content: space-between; margin-bottom: 8px; }
.banner { background: var(--y); color: var(--on-y); border-radius: var(--r); padding: 22px 26px; display: flex; align-items: center; gap: 20px; }
.banner .n { font-size: 64px; font-weight: 800; letter-spacing: -.05em; line-height: .85; }
.banner b { font-size: 19px; letter-spacing: -.015em; }
.banner .sub { color: rgba(255,255,255,.78); }
.banner .btn { margin-left: auto; }
.empty { color: var(--dim); font-size: 14px; padding: 14px 0; }
.callbig { font-size: 26px; font-weight: 750; letter-spacing: -.025em; margin-top: 10px; line-height: 1.1; }
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.li:first-child { border-top: 0; }
.li .grow { flex: 1; min-width: 0; }
.li .t { font-weight: 550; }
.li.done .t { color: var(--dim); text-decoration: line-through; }

/* controls */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 9px 15px; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; background: var(--card); color: var(--text); border-color: var(--line2); }
.btn:hover { box-shadow: var(--shadow); }
.btn.y { background: var(--y); color: var(--on-y); border-color: var(--y); }
.btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.iconbtn { background: none; border: 0; color: var(--dim); cursor: pointer; padding: 4px; border-radius: 6px; display: inline-flex; }
.iconbtn:hover { color: var(--text); background: var(--card2); }
.check { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line2); background: transparent; display: inline-grid; place-items: center; cursor: pointer; flex: none; color: var(--ink); padding: 0; }
.check.on { background: var(--y); border-color: var(--y); color: var(--on-y); }
.check[disabled] { cursor: default; }
input, textarea, select { background: var(--card); border: 1px solid var(--line2); color: var(--text); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; width: 100%; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--y); }
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
textarea.code { font: 13px/1.6 Menlo, ui-monospace, monospace; min-height: 420px; }
label.f { display: block; margin-bottom: 12px; }
label.f > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
label.f > em.hint { display: block; font-style: normal; font-size: 12px; color: var(--muted); opacity: .8; margin: -2px 0 6px; }
.onb-sec { margin: 26px 0 12px; padding-top: 18px; border-top: 1px solid var(--line, #e6e6e6); }
.onb-sec:first-child { margin-top: 4px; padding-top: 0; border-top: 0; }
.onb-sec h3 { margin: 0 0 2px; font-size: 17px; }
.tabs { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; }
.tabs button { background: none; border: 0; padding: 7px 14px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; }
.tabs button.on { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.tag { display: inline-block; font: 650 11px var(--sans); letter-spacing: .01em; padding: 2px 8px; border-radius: 20px; border: 1px solid var(--line2); color: var(--muted); white-space: nowrap; }
.tag.y { background: var(--y); color: var(--on-y); border-color: var(--y); }
.tag.g { color: var(--ink); border-color: var(--ink); }
.tag.r { color: var(--red); border-color: rgba(208,57,43,.35); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--dim); flex: none; }
.dot.on { background: var(--y); box-shadow: 0 0 0 2px rgba(18,17,17,.12); } .dot.err { background: var(--red); }

/* kanban */
.board { display: grid; grid-template-columns: repeat(6, minmax(190px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; min-height: 360px; display: flex; flex-direction: column; gap: 8px; }
.col.drop { outline: 2px dashed var(--y); outline-offset: -2px; }
.col > .head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 6px; }
.kcard { background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(18,17,17,.05); border-radius: 11px; padding: 11px 12px; cursor: grab; }
.kcard:hover { border-color: var(--line2); }
.kcard .t { font-weight: 600; font-size: 14px; line-height: 1.3; margin: 7px 0 4px; }
.kcard .h { color: var(--muted); font-size: 12.5px; line-height: 1.35; }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .dow { padding: 2px 4px 6px; }
.cal .dow small { display: block; font: 600 10px var(--sans); color: var(--muted); letter-spacing: .04em; margin-top: 2px; }
.day { min-height: 112px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 7px 8px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.day:hover { border-color: var(--line2); }
.day.out { opacity: .35; }
.day.today { border-color: var(--y); }
.day .n { font: 600 12px var(--mono); color: var(--muted); }
.ev { font-size: 12px; line-height: 1.25; padding: 4px 6px; border-radius: 6px; background: var(--card2); border-left: 3px solid var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev.Reel { border-color: var(--ink); } .ev.YouTube { border-color: var(--y); } .ev.Vlog { border-color: #d5d3d0; }
.ev.Email, .ev.Story, .ev.Carousel, .ev.Ad { border-color: var(--dim); }
.week4 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.week4 .card { padding: 14px 16px; }
.week4 b { display: block; font-size: 16px; margin-top: 6px; letter-spacing: -.01em; }

/* table */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font: 650 12px var(--sans); color: var(--muted); padding: 8px; white-space: nowrap; }
.tbl td { border-top: 1px solid var(--line); padding: 10px 8px; vertical-align: middle; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: var(--panel); }
.scroll { overflow-x: auto; }

/* markdown */
.md { line-height: 1.65; max-width: 780px; }
.md h1 { font-size: 30px; letter-spacing: -.03em; margin: 0 0 14px; }
.md h2 { font-size: 20px; margin: 28px 0 10px; }
.md h3 { font-size: 16px; margin: 22px 0 8px; }
.md p { margin: 0 0 12px; color: #2b2928; }
.md ul, .md ol { margin: 0 0 14px; padding-left: 22px; color: #2b2928; }
.md li { margin: 3px 0; }
.md b { color: var(--text); }
.md code { font: 13px Menlo, ui-monospace, monospace; background: var(--card2); padding: 1px 6px; border-radius: 5px; }
.md blockquote { margin: 0 0 14px; padding: 10px 16px; border-left: 3px solid var(--y); background: var(--panel); border-radius: 0 10px 10px 0; color: var(--muted); }
.md table { border-collapse: collapse; margin: 6px 0 18px; font-size: 14px; width: 100%; }
.md th, .md td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.md th { background: var(--panel); }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.md a { color: var(--ink); text-decoration-color: var(--y); text-decoration-thickness: 2px; }

/* charts */
.chart { width: 100%; height: 170px; display: block; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

/* modal + toast */
#modal { position: fixed; inset: 0; background: rgba(18,17,17,.35); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 50; padding: 16px; }
#modal[hidden] { display: none; }
.dialog { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow2); border-radius: 18px; padding: 24px; width: min(580px, 100%); max-height: 90vh; overflow: auto; }
.dialog h2 { font-size: 22px; letter-spacing: -.02em; }
.keybox { font: 13px/1.5 Menlo, ui-monospace, monospace; background: var(--bg); border: 1px dashed var(--ink); border-radius: 10px; padding: 12px; word-break: break-all; color: var(--ink); }
pre.code { font: 12.5px/1.6 Menlo, ui-monospace, monospace; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; color: var(--text); margin: 8px 0 0; white-space: pre; }
#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; z-index: 60; box-shadow: var(--shadow2); }
#toast.err { background: var(--red); color: #fff; }
#toast[hidden] { display: none; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login .box { width: min(420px, 100%); }
.login h1 { font-size: 34px; letter-spacing: -.035em; margin: 20px 0 6px; }

/* course */
.module { padding: 0; overflow: hidden; }
.module > .head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.module .num { font: 700 12px var(--sans); color: var(--on-y); background: var(--y); border-radius: 8px; width: 30px; height: 30px; display: grid; place-items: center; flex: none; }
.module .lessons { border-top: 1px solid var(--line); padding: 4px 20px; }

/* clients */
.cbar { display: flex; align-items: center; gap: 8px; }
.cbar .progress { flex: 1; min-width: 60px; }

@media (max-width: 1000px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .week4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: column; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .nav .sec { display: none; }
  .nav a { white-space: nowrap; }
  .side .foot { display: none; }
  .main { padding: 22px 16px 70px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  h1.hello { font-size: 32px; }
  .banner { flex-wrap: wrap; }
  .banner .btn { margin-left: 0; }
  .cal { gap: 3px; }
  .day { min-height: 70px; padding: 5px; }
  .ev { font-size: 10px; padding: 2px 4px; }
}

/* contract */
.contract .md { max-width: 760px; }
.agree { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 16px; cursor: pointer; }
.agree input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--y); }
@media print {
  body { background: #fff !important; color: #000 !important; }
  .side, .noprint, #toast, #modal { display: none !important; }
  .layout { display: block; }
  .main { padding: 0; max-width: none; }
  .card { background: #fff !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
  .md, .md p, .md li, .md b, .md h1, .md h2, .sub, .label { color: #000 !important; }
  .md h1 { font-size: 22pt; }
  .md h2 { font-size: 13pt; break-after: avoid; }
  .sigbox { border-top: 1px solid #000 !important; padding-top: 14px !important; margin-top: 28px; break-inside: avoid; }
}

/* ---------- portal (the 1-1 client portal: onboarding package + side checklist) ---------- */
.tile { width: 30px; height: 30px; border-radius: 9px; background: var(--y); color: var(--on-y); display: grid; place-items: center; flex: none; }
.tile.lg { width: 38px; height: 38px; border-radius: 11px; }
.portal { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.portal .aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 24px; }
.hello-sub { color: var(--muted); font-size: 15px; margin: -6px 0 24px; }
.pkg { display: flex; flex-direction: column; gap: 12px; }
.pkg details { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .2s; }
.pkg details[open] { box-shadow: var(--shadow2); }
.pkg summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; user-select: none; }
.pkg summary::-webkit-details-marker { display: none; }
.pkg summary .t { font-weight: 650; font-size: 16px; letter-spacing: -.01em; }
.pkg summary .s { color: var(--muted); font-size: 13px; }
.pkg summary .tri { margin-left: auto; color: var(--ink); transition: transform .2s; }
.pkg details[open] summary .tri { transform: rotate(180deg); }
.pkg .body { padding: 4px 18px 18px 70px; }
.pkg .body .row.mt { margin-top: 12px; }
.mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mini > div { background: var(--panel); border-radius: 12px; padding: 12px 14px; }
.mini b { display: block; font-size: 22px; letter-spacing: -.03em; margin-top: 2px; }
.sline { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.sline:first-child { border-top: 0; }
.sline .grow { flex: 1; min-width: 0; }
.sline .t { font-weight: 550; font-size: 14px; }
.ready { background: var(--ink); color: #fff; }
.ready .label { color: rgba(255,255,255,.6); }
.ready .hours { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.ready .bar { flex: 1; height: 12px; background: rgba(255,255,255,.14); border-radius: 12px; overflow: hidden; }
.ready .bar i { display: block; height: 100%; background: var(--y); border-radius: 12px; }
.ready .hours b { font-size: 18px; font-variant-numeric: tabular-nums; }
.ready .sub { color: rgba(255,255,255,.65); }
.chk { display: flex; align-items: center; gap: 12px; padding: 9px 0; text-decoration: none; }
.chk .box { width: 22px; height: 22px; border-radius: 6px; border: 1.8px solid var(--line2); display: grid; place-items: center; flex: none; color: var(--ink); }
.chk.on .box { background: var(--y); border-color: var(--y); color: var(--on-y); }
.chk .t { font-size: 16px; font-weight: 550; }
.chk.on .t { color: var(--muted); }
.asset { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.asset:first-child { border-top: 0; }
.asset .t { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset a.t { text-decoration: underline; text-decoration-color: var(--y); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.steps .li .t { font-size: 15px; }

/* ---------- tracking dashboard ---------- */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.money .card { padding: 16px 18px; }
.money .k { display: inline-block; background: var(--ink); color: #fff; font: 600 11px var(--sans); border-radius: 6px; padding: 2px 8px; }
.money .v { font-size: 32px; font-weight: 750; letter-spacing: -.035em; margin-top: 10px; line-height: 1; font-variant-numeric: tabular-nums; }
.fcol { display: flex; flex-direction: column; align-items: stretch; }
.fstep { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 16px; text-align: center; }
.fstep .n { font-size: 26px; font-weight: 750; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.fstep .l { font-size: 12px; font-weight: 600; color: var(--muted); }
.fstep .c { font-size: 11.5px; color: var(--dim); margin-top: 2px; }
.flink { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 0; font-size: 12px; color: var(--muted); }
.flink::before { content: ''; width: 1.5px; height: 14px; background: var(--line2); }
.kpi { font: 650 11px var(--sans); border-radius: 20px; padding: 1px 8px; }
.kpi.on { background: var(--y); color: var(--on-y); }
.kpi.off { background: rgba(208,57,43,.1); color: var(--red); }
.area { width: 100%; height: 220px; display: block; }

@media (max-width: 1100px) {
  .portal, .dash { grid-template-columns: 1fr; }
  .portal .aside { position: static; }
}
@media (max-width: 860px) {
  .money, .mini { grid-template-columns: 1fr; }
  .pkg .body { padding-left: 18px; }
}

/* ---------- the whole funnel in one row ---------- */
.fl-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.fl-step { background: var(--panel); border-radius: 12px; padding: 10px 11px 11px; display: flex; flex-direction: column; min-width: 0; position: relative; }
.fl-step + .fl-step::before { content: ''; position: absolute; left: -7px; top: 50%; width: 6px; height: 6px; border-top: 1.6px solid var(--dim); border-right: 1.6px solid var(--dim); transform: translateY(-50%) rotate(45deg); }
.fl-top { display: flex; align-items: center; justify-content: space-between; min-height: 18px; }
.fl-n { font: 700 11px var(--sans); color: var(--dim); }
.fl-l { font-size: 12.5px; font-weight: 650; margin-top: 4px; line-height: 1.2; }
.fl-v { font-size: 24px; font-weight: 750; letter-spacing: -.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.fl-step.empty .fl-v { color: var(--dim); }
.fl-d { font-size: 11.5px; color: var(--muted); line-height: 1.3; margin-top: 2px; flex: 1; }
.src { align-self: flex-start; margin-top: 8px; font: 600 10.5px var(--sans); color: var(--muted); border: 1px solid var(--line2); border-radius: 20px; padding: 0 7px; }
.src.auto { background: var(--ink); color: #fff; border-color: var(--ink); }
.fl-money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.fl-money > div { background: var(--panel); border-radius: 12px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; }
.fl-money b { font-size: 18px; letter-spacing: -.02em; margin-left: auto; }
.fl-money .src { margin-top: 0; }
@media (max-width: 1100px) { .fl-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } .fl-step + .fl-step::before { display: none; } }
@media (max-width: 600px) { .fl-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fl-money { grid-template-columns: 1fr; } }

/* ---------- This week (simple) ---------- */
.weeknav { display: inline-flex; align-items: center; gap: 4px; background: var(--card); border-radius: 10px; padding: 3px 4px; box-shadow: var(--shadow); font-weight: 600; font-size: 14px; }
.weeknav span { padding: 0 6px; white-space: nowrap; }
.weeknav .iconbtn[disabled] { opacity: .3; pointer-events: none; }
.verdict { background: var(--card); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); font-size: 15px; border-left: 4px solid var(--line2); }
.verdict.bad { border-left-color: var(--red); }
.verdict.good { border-left-color: var(--y); }
.fl-l { font-size: 12.5px; font-weight: 650; color: var(--muted); line-height: 1.2; margin: 0; }
.fl-top { align-items: flex-start; gap: 4px; }
.fl-v { font-size: 28px; margin-top: 8px; }
.fl-d { font-size: 11.5px; color: var(--dim); margin-top: 2px; flex: none; }
.fl-d .up { color: var(--y); font-weight: 650; } .fl-d .down { color: var(--red); font-weight: 650; }
.money3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.money3 > div { background: var(--panel); border-radius: 12px; padding: 12px 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.money3 b { font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.col2 { display: flex; flex-direction: column; gap: 14px; }
.posts { display: flex; flex-direction: column; }
.post { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; }
.post:first-child { border-top: 0; }
.post:hover .t { text-decoration: underline; }
.post .thumb { width: 48px; height: 60px; border-radius: 8px; background: var(--panel); overflow: hidden; flex: none; display: grid; place-items: center; color: var(--dim); }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post .grow { flex: 1; min-width: 0; }
.post .t { font-weight: 550; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post .nums { display: flex; gap: 14px; }
.post .nums div { text-align: right; min-width: 44px; }
.post .nums b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.post .nums span { font-size: 11px; color: var(--muted); }
.profile .avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.profile .bio { white-space: pre-wrap; font-size: 14px; line-height: 1.45; margin: 12px 0 6px; background: var(--panel); border-radius: 10px; padding: 10px 12px; }
.profile .pv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.profile .pv div { background: var(--panel); border-radius: 10px; padding: 10px 12px; }
.profile .pv b { display: block; font-size: 22px; letter-spacing: -.02em; }
.profile .pv span { font-size: 12px; color: var(--muted); }
.ytline { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.hint { color: var(--dim); font-size: 12.5px; margin: 10px 0 0; }
.hint a { color: var(--muted); }
.setupbar { display: flex; align-items: center; gap: 10px; background: var(--y); color: var(--on-y); border-radius: 12px; padding: 10px 16px; margin-bottom: 18px; text-decoration: none; }
.setupbar span { flex: 1; }
.card.link.rtile { display: flex; align-items: center; gap: 14px; }
.rtile .t { font-weight: 650; font-size: 16px; }
.conn h2 { font-size: 17px; }
.conn .tile { width: 28px; height: 28px; }
.hook { display: flex; align-items: center; gap: 10px; background: var(--panel); border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.hook > div { flex: 1; min-width: 0; font-size: 13px; }
.hook code { display: block; font: 11.5px Menlo, ui-monospace, monospace; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
details.how { margin-top: 12px; }
details.how summary { cursor: pointer; font-size: 13px; color: var(--muted); }
details.how p { font-size: 13px; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }
label.f .src { font-style: normal; margin: 0 0 0 6px; vertical-align: 1px; }
.tbl td small { margin-left: 4px; font-size: 10px; } .tbl td small.up { color: var(--y); } .tbl td small.down { color: var(--red); }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .money3 { grid-template-columns: 1fr; } .post .nums div:nth-child(n+3) { display: none; } }

/* ---------- Phase 1, Foundations (2026-11-25) ---------- */
.nav .pnum { width: 20px; height: 20px; border-radius: 6px; display: inline-grid; place-items: center; font: 700 11px var(--sans); background: var(--card2); color: var(--muted); flex: none; }
.nav a.on .pnum { background: var(--y); color: var(--on-y); }
.nav .pcount { margin-left: auto; font: 600 11px var(--sans); color: var(--dim); }
.nav .soon { display: flex; align-items: center; gap: 11px; padding: 8px 10px; color: var(--dim); font-size: 14px; font-weight: 500; cursor: default; }
.nav .soon .tag { margin-left: auto; font-size: 10px; padding: 1px 6px; color: var(--dim); border-color: var(--line); }
.fsteps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.fstep { text-align: left; background: var(--card); border: 1px solid transparent; border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); cursor: pointer; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 2px; align-items: center; font: inherit; color: var(--text); }
.fstep .n { grid-row: span 2; width: 26px; height: 26px; border-radius: 8px; background: var(--card2); color: var(--muted); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.fstep .t { font-weight: 650; font-size: 14px; }
.fstep .s { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fstep .tag { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
.fstep.on { box-shadow: 0 0 0 2px var(--y), var(--shadow); }
.fstep.locked .n { background: var(--y); color: var(--on-y); }
.fsplit { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; align-items: start; }
.fsplit textarea[disabled] { background: var(--panel); color: var(--muted); }
.fwait { padding: 24px 0; }
.fwait .progress i { width: 40%; animation: fwait 1.4s ease-in-out infinite; }
@keyframes fwait { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
@media (max-width: 1100px) { .fsteps { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fsplit { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .fsteps { grid-template-columns: 1fr 1fr; } }
.fw { display: flex; align-items: flex-start; gap: 7px; margin: 10px 0 0; font-size: 13px; color: var(--ink); background: var(--panel); border-radius: 9px; padding: 8px 10px; line-height: 1.45; }
.fw svg { flex: none; margin-top: 2px; color: var(--y); }

/* login: Google button + "or" divider */
.gbtn { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.or { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 12px; margin: 16px 0 4px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* content pipeline (2026-11-25, Agency Base style) */
.ctbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ctbar select { width: auto; font-size: 13px; padding: 7px 10px; }
.tabs.scroll { overflow-x: auto; max-width: 100%; }
.tabs .cnt { margin-left: 6px; font-size: 11px; color: var(--dim); }
.kmeta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.kmeta span { display: inline-flex; align-items: center; gap: 4px; }
.kmeta .late, .tbl td.late { color: var(--red); }
.kmeta .chip { background: var(--card2); border-radius: 6px; padding: 1px 6px; font-size: 11px; color: var(--text); }
.avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--y); color: var(--on-y); font: 650 10px var(--sans); display: inline-grid; place-items: center; }
.addcard { border: 1px dashed var(--line2); background: none; border-radius: 10px; padding: 8px; color: var(--muted); font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: auto; }
.addcard:hover { color: var(--text); border-color: var(--text); }
.tbl select { width: auto; font-size: 13px; padding: 5px 8px; }
.cal .ev.done { opacity: .55; }
.tl { padding: 12px 14px; overflow-x: auto; }
.tl-row { display: grid; grid-template-columns: 220px 1fr; align-items: center; min-height: 34px; border-top: 1px solid var(--line); }
.tl-head { border-top: 0; min-height: 26px; }
.tl-name { font-size: 13px; font-weight: 600; padding-right: 10px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-name small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.tl-grid { display: grid; grid-template-columns: repeat(var(--n), minmax(22px, 1fr)); position: relative; height: 100%; align-items: center; min-width: 620px; }
.tl-d { font-size: 10.5px; color: var(--dim); text-align: center; }
.tl-d.mon { color: var(--text); font-weight: 650; }
.tl-bar { grid-row: 1; height: 20px; border-radius: 6px; background: var(--y); color: var(--on-y); font: 650 10px var(--sans); display: flex; align-items: center; padding: 0 6px; cursor: pointer; overflow: hidden; }
.tl-bar.done { background: var(--line2); color: var(--text); }
.tl-today { grid-row: 1; width: 2px; height: 100%; background: var(--red); opacity: .5; justify-self: center; }
fieldset.bset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; }
label.f.check { flex-direction: row; align-items: center; gap: 8px; padding-top: 24px; }
label.f.check input { width: auto; }
.dialog { max-height: 90vh; overflow-y: auto; }
.main { min-width: 0; }

/* ===== Redesign 2026-11-25 ("troppo confusionario"): AgencyBase-like, less text, colour instead of words ===== */
.side { background: #141414; border-right: 0; color: #fff; padding: 18px 12px; }
.brand.slim { background: none; padding: 4px 8px 14px; margin: 0; }
.brand.slim .logo { width: 124px; margin: 0; }
.search { display: flex; align-items: center; gap: 8px; width: 100%; background: #1f1f21; border: 1px solid #2a2a2d; color: #8a8a8e; border-radius: 9px; padding: 7px 10px; font-size: 13px; cursor: pointer; margin-bottom: 8px; }
.search kbd { margin-left: auto; font: 500 11px var(--sans); color: #6a6a70; }
.search:hover { color: #fff; }
.side .wsel select { background: #1f1f21; color: #fff; border-color: #2a2a2d; }
.side .nav .sec { color: #6a6a70; padding: 16px 10px 5px; }
.side .nav a { color: #c7c7cc; font-size: 14px; padding: 7px 10px; }
.side .nav a svg { opacity: .8; }
.side .nav a:hover { background: #1f1f21; color: #fff; }
.side .nav a.on { background: #26262a; color: #fff; box-shadow: none; }
.side .nav .badge { background: #F5756A; color: #141414; }
.side .foot { display: flex; align-items: center; gap: 4px; border-top: 1px solid #2a2a2d; padding: 12px 6px 0; margin-top: auto; color: #8a8a8e; }
.side .foot a, .side .foot button { color: #8a8a8e; background: none; border: 0; padding: 6px; border-radius: 7px; display: inline-grid; place-items: center; cursor: pointer; }
.side .foot a:hover, .side .foot button:hover { color: #fff; background: #1f1f21; }
.side .foot .spacer { flex: 1; }

/* overview */
.focus { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid #F5756A; border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--text); margin-bottom: 16px; font-size: 15px; }
.focus.ok { border-left-color: #4CAF7A; }
.focus span { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ktile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
.ktile:hover { border-color: var(--line2); }
.ktile b { font-size: 32px; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; margin-top: 4px; }
.ktile b small { font-size: 18px; color: var(--dim); font-weight: 600; }
.goal { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.goalbar { flex: 1; height: 8px; background: var(--card2); border-radius: 99px; overflow: hidden; }
.goalbar i { display: block; height: 100%; background: #141414; border-radius: 99px; min-width: 2px; }
.split2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.split2 h2 { font-size: 17px; margin: 0 0 10px; }
.today-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-top: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.today-row:first-child { border-top: 0; }
.today-row:hover { background: var(--panel); }
.today-row .meta { color: var(--muted); font-size: 12.5px; }
.today-row .late { color: var(--red); }
.week7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day7 { text-align: center; text-decoration: none; color: var(--text); border-radius: 10px; padding: 8px 2px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-height: 76px; }
.day7.today { border-color: #141414; }
.day7 .dn { font-size: 11px; color: var(--muted); }
.day7 .dd { font-weight: 650; font-size: 16px; }
.day7 .dots { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; margin-top: 4px; }
.day7 .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line2); }
.day7 .dots i.on { background: #4CAF7A; }
.nextcall { display: flex; gap: 8px; align-items: center; margin-top: 14px; font-size: 13.5px; }

/* pipeline cards: colour, less text */
.col { background: transparent; border: 0; padding: 4px 2px; min-height: 300px; }
.col > .head { padding: 2px 4px 8px; }
.colname { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 13.5px; }
.colname i { width: 8px; height: 8px; border-radius: 50%; }
.col .count { font-size: 11.5px; color: var(--muted); background: var(--card2); border-radius: 6px; padding: 1px 7px; }
.kcard { padding: 12px; border-radius: 12px; }
.kcard .t { margin: 0 0 8px; font-size: 14px; }
.kcard .kmeta { margin-top: 0; align-items: center; }
.who { width: 22px; height: 22px; border-radius: 50%; background: #141414; color: #fff; font: 650 10px var(--sans); display: inline-grid; place-items: center; flex: none; }
.kcard .kdate { font-size: 12px; color: var(--muted); margin-top: 8px; }
.kcard .kdate.late { color: var(--red); font-weight: 600; }
.kcard.is-late { border-color: #F5756A; }
.kcard.is-posted { opacity: .72; }
.ttag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; color: color-mix(in srgb, var(--c) 70%, #000); background: color-mix(in srgb, var(--c) 20%, #fff); }
.addcard { border-style: solid; border-color: transparent; justify-content: flex-start; }
.addcard:hover { border-color: var(--line); }

/* search palette */
.palette input { width: 100%; font-size: 16px; padding: 12px 14px; border-radius: 10px; }
#palette-list { margin-top: 8px; max-height: 50vh; overflow-y: auto; }
.pal-row { display: flex; width: 100%; justify-content: space-between; gap: 10px; background: none; border: 0; padding: 9px 10px; border-radius: 8px; cursor: pointer; text-align: left; font-size: 14px; }
.pal-row:hover, .pal-row.on { background: var(--panel); }
.pal-row small { color: var(--muted); }

@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split2 { grid-template-columns: 1fr; } }
.side .nav a.on svg { background: none; color: #fff; padding: 0; }
