:root {
  --bg: #FFF7F0;
  --card: #FFFFFF;
  --ink: #1E2235;
  --muted: #6B7089;
  --line: #EFE6DC;
  --blu: #2D6BF0;  --blu-soft: #E7EEFF;  --blu-ink: #1747B8;
  --rosa: #E0418F; --rosa-soft: #FDE8F2; --rosa-ink: #A8206A;
  --verde: #13A06B; --verde-soft: #DDF5EA; --verde-ink: #0B6E49;
  --oro: #F2B01E;  --oro-soft: #FFF2D2;  --oro-ink: #8A5B00;
  --rosso: #E5484D; --rosso-soft: #FDE7E7;
  --grad: linear-gradient(120deg, #2D6BF0 0%, #7A5AF0 50%, #E0418F 100%);
  --radius: 18px;
  --shadow: 0 6px 22px rgba(45, 35, 90, .08);
  --nav-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: 'Nunito', system-ui, sans-serif; font-size: 16px; line-height: 1.4; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
h1, h2, h3, .brand { font-family: 'Fredoka', 'Nunito', sans-serif; }
[hidden] { display: none !important; }

#app { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(var(--nav-h) + var(--safe-b) + 24px); }

/* ---------- testata ---------- */
.top {
  background: var(--grad); color: #fff; padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 18px;
  border-radius: 0 0 26px 26px; box-shadow: 0 8px 24px rgba(91, 92, 240, .25);
}
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand { font-size: 26px; font-weight: 700; letter-spacing: .5px; margin: 0; line-height: 1; }
.brand small { display: block; font-family: 'Nunito'; font-size: 12px; font-weight: 700; opacity: .85; letter-spacing: 0; margin-top: 4px; }
.icon-btn { width: 42px; height: 42px; border-radius: 14px; background: rgba(255,255,255,.18); color: #fff; font-size: 20px; display: grid; place-items: center; }
.icon-btn:active { transform: scale(.94); }
.sync-dot { width: 9px; height: 9px; border-radius: 50%; background: #7CF2B6; display: inline-block; margin-right: 6px; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.sync-dot.off { background: #FFC56B; }

.quick { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.quick button { flex: 0 0 auto; background: rgba(255,255,255,.95); color: var(--ink); border-radius: 999px; padding: 8px 13px; font-weight: 800; font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.quick b { color: var(--rosa); }

/* ---------- barra settimana ---------- */
.weekbar { display: flex; align-items: center; gap: 8px; padding: 14px 14px 6px; position: sticky; top: 0; z-index: 5; background: linear-gradient(var(--bg) 80%, transparent); }
.weekbar .title { flex: 1; text-align: center; font-family: 'Fredoka'; font-weight: 600; font-size: 18px; }
.weekbar .title small { display: block; font-family: 'Nunito'; font-size: 12px; color: var(--muted); font-weight: 700; }
.round { width: 40px; height: 40px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); font-size: 18px; font-weight: 800; display: grid; place-items: center; }
.pill-btn { background: var(--card); box-shadow: var(--shadow); border-radius: 999px; padding: 9px 14px; font-weight: 800; font-size: 14px; }
.toolbar { display: flex; gap: 8px; padding: 4px 14px 10px; flex-wrap: wrap; }
.toolbar .pill-btn.rosa { background: var(--rosa-soft); color: var(--rosa-ink); box-shadow: none; }
.toolbar .pill-btn.oro { background: var(--oro-soft); color: var(--oro-ink); box-shadow: none; }

.legend { display: flex; gap: 12px; flex-wrap: wrap; padding: 0 16px 10px; font-size: 13px; color: var(--muted); font-weight: 700; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; margin-right: 5px; vertical-align: -1px; }

/* ---------- card giorno ---------- */
.list { padding: 0 12px; display: grid; gap: 12px; }
.day { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 14px 12px; border: 2px solid transparent; }
.day.today { border-color: #C9C4FF; }
.day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.day-head h3 { margin: 0; font-size: 19px; font-weight: 600; }
.day-head h3 span { color: var(--muted); font-weight: 500; }
.badge { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.badge.oggi { background: var(--grad); color: #fff; }
.badge.free { background: var(--oro-soft); color: var(--oro-ink); }
.badge.busy { background: #F1EEF8; color: var(--muted); }

/* linea del tempo */
.tl { margin: 2px 0 12px; }
.tl-row { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 6px; margin-bottom: 4px; }
.tl-row > span { font-size: 11px; font-weight: 800; color: var(--muted); text-align: center; }
.tl-track { position: relative; height: 14px; background: #F5F1EC; border-radius: 7px; overflow: hidden; }
.tl-track .blk { position: absolute; top: 0; bottom: 0; border-radius: 5px; }
.blk.blu { background: var(--blu); } .blk.rosa { background: var(--rosa); } .blk.verde { background: var(--verde); }
.blk.oro { background: repeating-linear-gradient(45deg, var(--oro), var(--oro) 6px, #FFD46B 6px, #FFD46B 12px); }
.tl-hours { display: grid; grid-template-columns: 22px 1fr; gap: 6px; }
.tl-hours div { position: relative; height: 14px; }
.tl-hours b { position: absolute; transform: translateX(-50%); font-size: 10px; color: var(--muted); font-weight: 700; }

/* impegni */
.ev { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 10px; border-radius: 13px; margin-top: 6px; border-left: 5px solid; }
.ev.blu { background: var(--blu-soft); border-color: var(--blu); }
.ev.rosa { background: var(--rosa-soft); border-color: var(--rosa); }
.ev.verde { background: var(--verde-soft); border-color: var(--verde); }
.ev.libera { background: #FAF8F5; border-color: #D8D2CA; color: var(--muted); }
.ev .time { font-weight: 800; font-size: 14px; min-width: 92px; font-variant-numeric: tabular-nums; }
.ev .what { flex: 1; min-width: 0; }
.ev .what b { display: block; font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
.ev .what small { color: var(--muted); font-weight: 700; font-size: 12px; }
.who { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.who.alberto { background: var(--blu); } .who.oriana { background: var(--rosa); } .who.insieme { background: var(--verde); font-size: 10px; }
.empty-day { color: var(--muted); font-size: 14px; padding: 6px 2px; }

.notes { margin-top: 10px; display: grid; gap: 6px; }
.note { font-size: 13.5px; font-weight: 700; border-radius: 11px; padding: 7px 10px; }
.note.ok { background: var(--oro-soft); color: var(--oro-ink); }
.note.warn { background: var(--rosso-soft); color: #A42A2E; }
.note.info { background: #EFEDFB; color: #4A4790; }

/* ---------- liste ---------- */
.section-title { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 8px; }
.section-title h2 { margin: 0; font-size: 22px; font-weight: 600; }
.section-title p { margin: 2px 0 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.addbar { margin: 0 12px 12px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; }
.addbar .row { display: flex; gap: 8px; align-items: center; }
.addbar input[type=text] { flex: 1; min-width: 0; border: 2px solid var(--line); border-radius: 13px; padding: 11px 12px; font-weight: 700; background: #FFFCF9; outline: none; }
.addbar input[type=text]:focus { border-color: #B9B4FF; }
.tool { width: 44px; height: 44px; border-radius: 13px; background: #F3F0FA; font-size: 19px; display: grid; place-items: center; flex: 0 0 auto; }
.tool.on { background: var(--rosso); color: #fff; animation: pulse 1s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(229,72,77,.25); } }
.go { height: 44px; padding: 0 16px; border-radius: 13px; background: var(--grad); color: #fff; font-weight: 800; flex: 0 0 auto; }
.addbar .sub { display: flex; gap: 6px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.addbar .sub input[type=date] { border: 2px solid var(--line); border-radius: 11px; padding: 6px 8px; font-weight: 700; background: #FFFCF9; }
.pending { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

.chip { border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 13px; background: #F3F0FA; color: var(--muted); border: 2px solid transparent; }
.chip.sel.alberto { background: var(--blu-soft); color: var(--blu-ink); border-color: var(--blu); }
.chip.sel.oriana { background: var(--rosa-soft); color: var(--rosa-ink); border-color: var(--rosa); }
.chip.sel.insieme, .chip.sel.entrambi { background: var(--verde-soft); color: var(--verde-ink); border-color: var(--verde); }
.chip.sel.neutral { background: #E9E6FF; color: #3E3A9E; border-color: #8C86F5; }

.items { margin: 0 12px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.item { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.check { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid #CFC8E8; display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 900; margin-top: 1px; }
.check.on { background: var(--verde); border-color: var(--verde); }
.item .body { flex: 1; min-width: 0; }
.item .body .t { font-weight: 800; word-wrap: break-word; }
.item.done .body .t { text-decoration: line-through; color: var(--muted); }
.item .meta { font-size: 12.5px; color: var(--muted); font-weight: 700; margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tag { border-radius: 7px; padding: 1px 7px; font-size: 12px; font-weight: 800; }
.tag.alberto { background: var(--blu-soft); color: var(--blu-ink); } .tag.oriana { background: var(--rosa-soft); color: var(--rosa-ink); } .tag.entrambi { background: var(--verde-soft); color: var(--verde-ink); }
.tag.late { background: var(--rosso-soft); color: #A42A2E; } .tag.soon { background: var(--oro-soft); color: var(--oro-ink); }
.att { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.att img { width: 64px; height: 64px; object-fit: cover; border-radius: 11px; display: block; }
.att audio { height: 36px; max-width: 220px; }
.att .x { position: relative; }
.att .x button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 900; }
.more { padding: 6px 8px; border-radius: 10px; color: var(--muted); font-size: 20px; line-height: 1; }
.empty { text-align: center; color: var(--muted); padding: 28px 16px; font-weight: 700; }
.empty .big { font-size: 40px; display: block; margin-bottom: 6px; }
.subhead { margin: 18px 16px 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 800; display: flex; justify-content: space-between; }
.link { color: #4F4AD6; font-weight: 800; font-size: 13px; text-transform: none; letter-spacing: 0; }

/* bollette */
.bill { display: flex; gap: 12px; align-items: center; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.bill:last-child { border-bottom: 0; }
.bill .ico { width: 42px; height: 42px; border-radius: 13px; background: #F3F0FA; display: grid; place-items: center; font-size: 21px; flex: 0 0 auto; }
.bill .amt { font-family: 'Fredoka'; font-weight: 600; font-size: 18px; white-space: nowrap; }
.paybtn { background: var(--verde-soft); color: var(--verde-ink); border-radius: 10px; padding: 6px 10px; font-weight: 800; font-size: 13px; margin-top: 4px; }
.total { margin: 0 12px 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--grad); color: #fff; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow); }
.total b { font-family: 'Fredoka'; font-size: 26px; font-weight: 600; }

/* insieme */
.slot { display: inline-block; margin: 4px 6px 0 0; padding: 6px 10px; border-radius: 10px; font-weight: 800; font-size: 14px; }
.slot.free { background: var(--oro-soft); color: var(--oro-ink); }
.slot.both { background: #EFEDFB; color: #4A4790; }
.hero { margin: 14px 12px 4px; background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; }
.hero .n { white-space: nowrap; font-family: 'Fredoka'; font-size: 34px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }

/* ---------- navigazione ---------- */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.nav-inner { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); height: var(--nav-h); }
.nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11.5px; font-weight: 800; color: var(--muted); position: relative; }
.nav button .e { font-size: 22px; filter: grayscale(.6); opacity: .8; }
.nav button.on { color: var(--ink); }
.nav button.on .e { filter: none; opacity: 1; transform: translateY(-1px); }
.nav button.on::after { content: ''; position: absolute; top: 6px; width: 34px; height: 4px; border-radius: 4px; background: var(--grad); }
.nav .count { position: absolute; top: 8px; right: calc(50% - 22px); background: var(--rosa); color: #fff; font-size: 10px; border-radius: 999px; padding: 0 5px; min-width: 16px; line-height: 16px; }

.fab { position: fixed; right: max(16px, calc(50% - 264px)); bottom: calc(var(--nav-h) + var(--safe-b) + 16px); z-index: 19; width: 60px; height: 60px; border-radius: 20px; background: var(--grad); color: #fff; font-size: 32px; font-weight: 600; box-shadow: 0 10px 24px rgba(122, 90, 240, .4); display: grid; place-items: center; }
.fab:active { transform: scale(.95); }

/* ---------- finestre dal basso ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(20, 18, 40, .45); z-index: 40; animation: fade .2s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 560px; margin: 0 auto; background: var(--bg); border-radius: 26px 26px 0 0; max-height: 92vh; overflow-y: auto; padding: 8px 16px calc(20px + var(--safe-b)); animation: up .25s ease-out; }
.sheet .grab { width: 44px; height: 5px; border-radius: 5px; background: #D9D2C8; margin: 4px auto 12px; }
.sheet h2 { margin: 0 0 12px; font-size: 22px; font-weight: 600; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.field { margin-bottom: 12px; }
.field > label { display: block; font-size: 13px; font-weight: 800; color: var(--muted); margin: 0 0 5px 2px; }
.field input, .field select, .field textarea { width: 100%; border: 2px solid var(--line); border-radius: 13px; padding: 11px 12px; font-weight: 700; background: #fff; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #B9B4FF; }
.field textarea { min-height: 70px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg .chip { padding: 9px 14px; font-size: 14px; }
.btns { display: flex; gap: 10px; margin-top: 16px; }
.btn { flex: 1; height: 50px; border-radius: 15px; font-weight: 800; font-size: 16px; }
.btn.primary { background: var(--grad); color: #fff; }
.btn.ghost { background: #EEEAF6; color: var(--ink); }
.btn.danger { background: var(--rosso-soft); color: #A42A2E; flex: 0 0 auto; padding: 0 16px; }
.quickin { display: flex; gap: 8px; background: #fff; border: 2px dashed #C9C4FF; border-radius: 15px; padding: 8px; margin-bottom: 14px; }
.quickin input { flex: 1; border: 0; outline: none; font-weight: 700; padding: 6px; min-width: 0; background: transparent; }
.hint { font-size: 13px; color: var(--muted); font-weight: 700; margin: -6px 2px 12px; }
.box { background: #fff; border-radius: 15px; padding: 12px; margin-bottom: 12px; border: 2px solid var(--line); }
.box h4 { margin: 0 0 6px; font-family: 'Fredoka'; font-weight: 600; font-size: 16px; }
.box p, .box ol { margin: 4px 0; font-size: 14px; color: #4A4E66; font-weight: 600; }
.box ol { padding-left: 20px; }

.shift-row { display: grid; grid-template-columns: 52px 1fr; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.shift-row:last-child { border-bottom: 0; }
.shift-row .d { font-weight: 800; font-size: 14px; }
.shift-row .d small { display: block; color: var(--muted); font-size: 12px; }
.shift-row .r { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.shift-row .r [data-free] { width: 100%; text-align: left; width: auto; }
.shift-row .r .times { display: flex; gap: 6px; align-items: center; width: 100%; }
.shift-row input[type=time] { width: 112px; min-width: 0; border: 2px solid var(--line); border-radius: 10px; padding: 6px; font-weight: 700; background: #fff; }
.shift-row .r.off input { opacity: .35; pointer-events: none; }

.cal-item { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cal-item:last-child { border-bottom: 0; }
.cal-item .body { flex: 1; min-width: 0; font-size: 14px; }
.cal-item .body small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- accesso ---------- */
.login { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 24px; background: var(--grad); color: #fff; }
.login .logo { font-family: 'Fredoka'; font-weight: 700; font-size: 44px; line-height: 1; text-align: center; margin-bottom: 6px; }
.login p { text-align: center; opacity: .9; margin: 0 0 26px; }
.login .card { background: #fff; color: var(--ink); border-radius: 24px; padding: 20px; box-shadow: 0 20px 40px rgba(0,0,0,.18); max-width: 420px; width: 100%; margin: 0 auto; }
.login .who-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.login .who-pick button { padding: 16px 8px; border-radius: 18px; font-weight: 800; font-size: 17px; border: 3px solid transparent; background: #F3F0FA; }
.login .who-pick button.sel.alberto { background: var(--blu-soft); border-color: var(--blu); color: var(--blu-ink); }
.login .who-pick button.sel.oriana { background: var(--rosa-soft); border-color: var(--rosa); color: var(--rosa-ink); }
.login .who-pick span { display: block; font-size: 30px; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--safe-b) + 90px); z-index: 60; background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 14px; font-weight: 700; font-size: 14px; max-width: 90vw; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.spin { display: inline-block; width: 16px; height: 16px; border: 3px solid rgba(0,0,0,.15); border-top-color: currentColor; border-radius: 50%; animation: rot .8s linear infinite; vertical-align: -3px; }
@keyframes rot { to { transform: rotate(360deg); } }
.viewer { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.92); display: grid; place-items: center; }
.viewer img { max-width: 96vw; max-height: 90vh; border-radius: 10px; }

/* vista mese */
.modes { display: inline-flex; background: #EEEAF6; border-radius: 999px; padding: 3px; }
.modes button { padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--muted); }
.modes button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.month { margin: 0 12px 4px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 8px; }
.mhead, .mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mhead span { text-align: center; font-size: 12px; font-weight: 800; color: var(--muted); padding-bottom: 4px; }
.mcell { min-height: 66px; border-radius: 12px; background: #FAF7F3; display: flex; flex-direction: column; align-items: stretch; padding: 5px 4px; gap: 3px; position: relative; border: 2px solid transparent; }
.mcell .n { font-weight: 800; font-size: 14px; text-align: center; line-height: 22px; }
.mcell.other { opacity: .4; }
.mcell.today .n { background: var(--grad); color: #fff; border-radius: 999px; align-self: center; min-width: 24px; }
.mcell.sel { border-color: #7A5AF0; background: #fff; }
.mcell.free { background: var(--oro-soft); }
.mcell.free.sel { background: #FFF8E6; }
.mb { display: block; height: 5px; border-radius: 3px; }
.mb.blu { background: var(--blu); } .mb.rosa { background: var(--rosa); } .mb.verde { background: var(--verde); } .mb.libera { background: #D8D2CA; }
.mcell .plus { font-size: 10px; color: var(--muted); font-weight: 800; line-height: 1; text-align: center; }
.mcell .mbill { position: absolute; top: 2px; right: 2px; font-size: 10px; }

/* urgenze */
.quick .urg { background: #fff; color: #B3261E; }
.quick .urg b { color: #B3261E; }
.quick .urg.on { background: var(--rosso); color: #fff; animation: urgpulse 2.8s ease-in-out infinite; }
.quick .urg.on b { color: #fff; }
@keyframes urgpulse {
  0%, 62%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
  70% { transform: scale(1.09); box-shadow: 0 0 0 7px rgba(229,72,77,.35); }
  78% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229,72,77,0); }
  86% { transform: scale(1.05); box-shadow: 0 0 0 5px rgba(229,72,77,.25); }
}
@media (prefers-reduced-motion: reduce) { .quick .urg.on { animation: none; } }
.chip.sel.urg { background: var(--rosso); color: #fff; border-color: var(--rosso); }
.tag.urg { background: var(--rosso); color: #fff; }
.ev.urgent { box-shadow: inset 0 0 0 2px var(--rosso); }
.tool.urg-on { background: var(--rosso); color: #fff; }
.day-head .right { display: flex; gap: 8px; align-items: center; }
.dayplus { width: 34px; height: 34px; border-radius: 11px; background: var(--grad); color: #fff; font-size: 22px; font-weight: 700; display: grid; place-items: center; flex: 0 0 auto; line-height: 1; box-shadow: 0 4px 10px rgba(122,90,240,.3); }
.dayplus:active { transform: scale(.92); }
.mcell .murg { position: absolute; top: 4px; left: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--rosso); }
.plus-pick { display: grid; gap: 10px; }
.plus-pick button { display: grid; grid-template-columns: 46px 1fr; text-align: left; align-items: center; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; font-weight: 800; font-size: 17px; column-gap: 6px; }
.plus-pick button span { grid-row: span 2; font-size: 28px; }
.plus-pick button small { color: var(--muted); font-size: 13px; font-weight: 700; }

/* soldi */
.money-tag { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 800; border-radius: 7px; padding: 1px 7px; }
.money-tag.entrata { background: #DDF5EA; color: var(--verde-ink); }
.money-tag.uscita { background: var(--rosso-soft); color: #A42A2E; }
.money-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 12px 12px; }
.mc { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; }
.mc small { display: block; color: var(--muted); font-weight: 800; font-size: 13px; }
.mc b { font-family: 'Fredoka'; font-weight: 600; font-size: 22px; white-space: nowrap; }
.mc.in b { color: var(--verde-ink); } .mc.out b { color: #B3261E; }
.mc.bal { grid-column: span 2; background: var(--grad); color: #fff; display: flex; justify-content: space-between; align-items: center; }
.mc.bal small { color: rgba(255,255,255,.9); } .mc.bal b { font-size: 26px; }
.mov { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mov:last-child { border-bottom: 0; }
.mov.future { opacity: .6; }
.mov .ico { width: 40px; height: 40px; border-radius: 12px; background: #F3F0FA; display: grid; place-items: center; font-size: 20px; flex: 0 0 auto; }
.mov .body { flex: 1; min-width: 0; }
.mov .body b { display: block; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mov .body small { color: var(--muted); font-weight: 700; font-size: 12.5px; }
.mov .amt { font-family: 'Fredoka'; font-weight: 600; font-size: 17px; white-space: nowrap; }
.mov .amt.entrata { color: var(--verde-ink); } .mov .amt.uscita { color: #B3261E; }
.cbar { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.cbar:last-child { margin-bottom: 0; }
.cbar b { font-weight: 800; white-space: nowrap; }
.cbar i { grid-column: span 2; height: 8px; border-radius: 6px; background: #F5F1EC; overflow: hidden; }
.cbar em { display: block; height: 100%; background: var(--grad); border-radius: 6px; }
.nav button { font-size: 11px; }
