@font-face { font-family: "Poppins"; font-weight: 300; font-display: block; src: url("fonts/poppins-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: block; src: url("fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: block; src: url("fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: block; src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); }

/* ---------- themes ---------- */
body, body[data-theme="emerald"] {
  --g1: #d1fae5; --g2: #34d399; --g3: #059669;
  --acc: 52, 211, 153; --acc2: 167, 243, 208; --acc3: 5, 150, 105;
  --acc-text: #6ee7b7; --ink: #022c1e; --title: #ecfdf5;
}
body[data-theme="gold"] {
  --g1: #f7e6c4; --g2: #d8b276; --g3: #a67641;
  --acc: 216, 178, 118; --acc2: 230, 199, 147; --acc3: 166, 118, 65;
  --acc-text: #e6c793; --ink: #23180a; --title: #f6ecd9;
}
body[data-theme="sun"] {
  --g1: #fef9c3; --g2: #facc15; --g3: #ca8a04;
  --acc: 250, 204, 21; --acc2: 254, 240, 138; --acc3: 202, 138, 4;
  --acc-text: #fde047; --ink: #2a2000; --title: #fefce8;
}
body[data-theme="ocean"] {
  --g1: #dbeafe; --g2: #60a5fa; --g3: #4f46e5;
  --acc: 96, 165, 250; --acc2: 191, 219, 254; --acc3: 79, 70, 229;
  --acc-text: #93c5fd; --ink: #0b1638; --title: #eff6ff;
}
/* relax: during breaks everything turns sea blue */
body[data-mode="short"], body[data-mode="long"] {
  --g1: #cffafe; --g2: #38bdf8; --g3: #2563eb;
  --acc: 56, 189, 248; --acc2: 165, 243, 252; --acc3: 37, 99, 235;
  --acc-text: #7dd3fc; --ink: #04203a; --title: #e0f7ff;
}
body[data-theme="ocean"][data-mode="short"], body[data-theme="ocean"][data-mode="long"] {
  --g1: #ccfbf1; --g2: #2dd4bf; --g3: #0891b2;
  --acc: 45, 212, 191; --acc2: 153, 246, 228; --acc3: 8, 145, 178;
  --acc-text: #5eead4; --ink: #042f2e; --title: #f0fdfa;
}

:root {
  --text: #f3f4f1;
  --muted: rgba(243, 244, 241, 0.55);
  --faint: rgba(243, 244, 241, 0.3);
  --line: rgba(255, 255, 255, 0.07);
  --red: #ff7a6b;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
body {
  --grad: linear-gradient(135deg, var(--g1) 0%, var(--g2) 50%, var(--g3) 100%);
  --soft: rgba(var(--acc), 0.14);
  --edge: rgba(var(--acc2), 0.3);
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 800px; height: 600px; overflow: hidden; }
html.tab, html.tab body { width: 100vw; height: 100vh; }

body {
  font-family: "Poppins", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  background:
    radial-gradient(560px 420px at -8% -14%, rgba(var(--acc), 0.18), transparent 62%),
    radial-gradient(560px 460px at 110% 115%, rgba(var(--acc3), 0.24), transparent 60%),
    linear-gradient(160deg, #111214 0%, #0a0b0c 55%, #070808 100%);
  user-select: none;
  transition: background 0.6s;
}

button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
.muted { color: var(--muted); font-size: 12px; }
.small { font-size: 12px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; display: block; }

.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.022));
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 196px 1fr; grid-template-rows: 60px 1fr; height: 100%; position: relative; }

.topbar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 0 18px 0 22px; }
.brand { display: flex; align-items: center; gap: 11px; }
.logo { width: 32px; height: 32px; filter: drop-shadow(0 0 10px rgba(var(--acc), 0.35)); }
.brand-name { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--title); line-height: 1; }
.brand-sub { font-size: 10.5px; color: var(--muted); margin-top: 4px; letter-spacing: 0.04em; }
.top-actions { display: flex; gap: 8px; }
.round-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  color: var(--faint);
  transition: color 0.2s, background 0.2s, transform 0.15s;
}
.round-btn .ic { width: 17px; height: 17px; }
.round-btn.on, .round-btn:hover { color: var(--text); }
.round-btn:hover { background: rgba(255, 255, 255, 0.08); }
.round-btn:active { transform: scale(0.94); }

/* sidebar */
.sidebar { padding: 2px 8px 14px 14px; overflow-y: auto; scrollbar-width: none; }
.sidebar::-webkit-scrollbar { display: none; }
.side-item {
  width: 100%; height: 33px; border-radius: 10px;
  display: flex; align-items: center; gap: 10px; padding: 0 10px;
  font-size: 12.8px; color: var(--muted); text-align: left;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.side-item .ic { width: 17px; height: 17px; }
.side-item:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.side-item.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(var(--acc), 0.2), rgba(var(--acc), 0.06));
  border-color: var(--edge);
}
.side-item.active .ic { color: var(--acc-text); }
.side-item .lbl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-item .cnt { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.side-item.active .cnt { color: var(--acc-text); }
.side-item .live { font-size: 11px; color: var(--acc-text); font-variant-numeric: tabular-nums; }
.side-item .del { display: none; width: 18px; height: 18px; border-radius: 6px; color: var(--muted); place-items: center; }
.side-item .del .ic { width: 12px; height: 12px; }
.side-item:hover .del { display: grid; }
.side-item:hover .del + .cnt, .side-item:hover .cnt.hide-hover { display: none; }
.side-item .del:hover { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.side-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
  padding: 14px 10px 6px;
}
.side-label button { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; color: var(--muted); }
.side-label button:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.side-label .ic { width: 13px; height: 13px; stroke-width: 2.2; }
.ldot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; box-shadow: 0 0 8px currentColor; }
.ldot.lg { width: 12px; height: 12px; }
.side-input {
  width: 100%; height: 33px; border-radius: 10px; padding: 0 10px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--edge);
  color: var(--text); font: inherit; font-size: 12.8px; outline: 0; user-select: text;
}

main { position: relative; padding: 2px 18px 18px 6px; min-height: 0; min-width: 0; }
.view { height: 100%; animation: fade 0.35s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

.icon-btn { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); background: rgba(255, 255, 255, 0.04); transition: color 0.2s, background 0.2s; }
.icon-btn .ic { width: 15px; height: 15px; }
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.09); }
.icon-btn.xs { width: 22px; height: 22px; border-radius: 7px; background: transparent; }
.icon-btn.xs .ic { width: 12px; height: 12px; }
.link-btn { font-size: 12px; color: var(--acc-text); }
.link-btn:hover { opacity: 0.75; }

.view-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; min-height: 32px; }
.view-head h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.015em; color: var(--title); }
.view-head .vh-ic { color: var(--acc-text); display: grid; place-items: center; }
.view-head .vh-ic .ic { width: 22px; height: 22px; }
.view-head .count { font-size: 18px; color: var(--faint); font-weight: 300; }
.view-head .right { margin-left: auto; }

/* segmented */
.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 13px; background: rgba(0, 0, 0, 0.32); border: 1px solid var(--line); --n: 2; }
.seg button { position: relative; z-index: 1; height: 32px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--muted); border-radius: 10px; transition: color 0.25s; }
.seg button .ic { width: 16px; height: 16px; }
.seg button.active { color: var(--ink); font-weight: 600; }
.seg-ind { position: absolute; top: 3px; left: 3px; height: 32px; width: calc((100% - 6px) / var(--n)); border-radius: 10px; background: var(--grad); box-shadow: 0 6px 18px rgba(var(--acc), 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform 0.4s var(--ease), background 0.4s; }

/* ---------- timer ---------- */
.timer-view { display: grid; grid-template-columns: 1fr 226px; gap: 14px; }
.stage { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4); }
.scene-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: opacity 1s var(--ease), transform 8s linear; }
.scene-img.s-relax { opacity: 0; }
.scene-img.s-focus { background-position: center 62%; }
body[data-mode="short"] .scene-img.s-relax, body[data-mode="long"] .scene-img.s-relax { opacity: 1; }
body[data-mode="short"] .scene-img.s-focus, body[data-mode="long"] .scene-img.s-focus { opacity: 0; }
body[data-status="running"] .scene-img { transform: scale(1.04); }
.scene-shade { position: absolute; inset: 0; background: radial-gradient(circle at 50% 46%, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55) 75%), linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.6)); }
.stage-inner { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px; }

.session { display: flex; align-items: center; gap: 8px; height: 30px; max-width: 100%; padding: 0 6px 0 14px; border-radius: 15px; background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.08); }
.session-name { font-size: 13.5px; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 250px; }
.session-tag { color: var(--acc-text); }
.session-tag .ic { width: 15px; height: 15px; }
.session .icon-btn { width: 22px; height: 22px; background: transparent; }
.session .icon-btn .ic { width: 13px; height: 13px; }
.label-input { font: inherit; font-size: 13.5px; font-weight: 500; color: #fff; background: transparent; border: 0; outline: 0; width: 200px; user-select: text; }

.ring-wrap { display: flex; align-items: center; gap: 14px; margin: 14px 0 18px; }
.arrow { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.7); transition: color 0.2s, background 0.2s; }
.arrow .ic { width: 16px; height: 16px; }
.arrow:hover { color: #fff; background: rgba(0, 0, 0, 0.45); }

.ring { position: relative; width: 214px; height: 214px; }
.ring::before { content: ""; position: absolute; inset: 15px; border-radius: 50%; background: radial-gradient(circle, rgba(6, 8, 9, 0.5), rgba(6, 8, 9, 0.22) 70%); backdrop-filter: blur(3px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.45); }
.ring > svg { position: absolute; inset: 0; transform: rotate(-90deg); overflow: visible; }
.ring .track { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 7; }
.ring .prog { fill: none; stroke: url(#acc); stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(var(--acc), 0.6)); transition: stroke-dashoffset 0.3s linear; }
.breath { position: absolute; inset: 30px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--acc), 0.32) 0%, rgba(var(--acc), 0.08) 55%, transparent 72%); opacity: 0; transform: scale(0.8); animation: breathe 8s ease-in-out infinite; transition: opacity 0.8s; pointer-events: none; }
body[data-mode="short"][data-status="running"] .breath, body[data-mode="long"][data-status="running"] .breath { opacity: 1; }
@keyframes breathe { 0%, 100% { transform: scale(0.78); } 50% { transform: scale(1.06); } }
.ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mode-ic { color: var(--acc-text); margin-bottom: 2px; }
.mode-ic .ic { width: 22px; height: 22px; stroke-width: 1.5; }
.mode-lb { font-size: 11.5px; color: rgba(255, 255, 255, 0.65); }
.time { display: flex; font-size: 50px; font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; color: #fff; text-shadow: 0 2px 18px rgba(var(--acc), 0.25); }
.time .d { display: inline-block; width: 0.62em; text-align: center; }
.time .c { display: inline-block; width: 0.3em; text-align: center; transform: translateY(-0.04em); }
.sub { font-size: 11.5px; color: rgba(255, 255, 255, 0.6); margin-bottom: 8px; }
body[data-status="running"] .sub { color: var(--acc-text); }
.dots { display: flex; gap: 7px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); transition: background 0.3s; }
.dots i.on { background: var(--grad); box-shadow: 0 0 8px rgba(var(--acc), 0.6); }
.dots i.cur { background: rgba(var(--acc2), 0.5); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.dots.lg { gap: 8px; }
.dots.lg i { width: 10px; height: 10px; background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.22); }
.dots.lg i.on { background: var(--grad); border-color: transparent; }
.dots.lg i.cur { border-color: rgba(var(--acc2), 0.7); background: transparent; }

.controls { display: flex; align-items: center; gap: 22px; }
.ctl { width: 54px; height: 54px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: rgba(0, 0, 0, 0.32); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.12); color: #fff; transition: transform 0.15s var(--ease), background 0.2s; }
.ctl:hover { background: rgba(0, 0, 0, 0.45); }
.ctl:active { transform: scale(0.94); }
.ctl .ic { width: 18px; height: 18px; }
.ctl-lb { font-size: 9.5px; color: rgba(255, 255, 255, 0.65); }
.ctl-ic { display: grid; place-items: center; }
.ctl.main { width: 72px; height: 72px; background: var(--grad); border: 0; color: var(--ink); box-shadow: 0 14px 34px rgba(var(--acc), 0.4), 0 0 0 6px rgba(var(--acc), 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -3px 8px rgba(0, 0, 0, 0.25); }
.ctl.main .ic { width: 22px; height: 22px; }
.ctl.main .ctl-lb { color: var(--ink); font-weight: 600; font-size: 11px; }
.ctl.main:hover { filter: brightness(1.06); }

.side { padding: 13px 14px; display: flex; flex-direction: column; }
.blk { padding: 12px 2px; border-bottom: 1px solid var(--line); }
.blk.last { border: 0; padding-bottom: 0; }
.blk-t { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 9px; }
.blk-t .ic { width: 15px; height: 15px; color: var(--acc-text); }
.cycle-row { display: flex; align-items: center; justify-content: space-between; }
.cycle-num { font-size: 22px; font-weight: 300; }
.break-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.bo { padding: 8px 6px; border-radius: 12px; text-align: center; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1px; transition: border-color 0.25s, background 0.25s; }
.bo span { font-size: 10.5px; color: var(--muted); }
.bo b { font-size: 14px; font-weight: 500; }
.bo:hover { background: rgba(255, 255, 255, 0.06); }
.bo.active { border-color: rgba(var(--acc2), 0.55); background: var(--soft); }
.bo.active b { color: var(--acc-text); }
.kv { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; font-size: 12px; }
.kv span { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.kv .ic { width: 14px; height: 14px; color: var(--acc-text); }
.kv b { font-weight: 500; font-variant-numeric: tabular-nums; }
.bar { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--grad); box-shadow: 0 0 10px rgba(var(--acc), 0.5); transition: width 0.6s var(--ease); }

/* ---------- list views ---------- */
.list-view { display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; }
.list-view .view-head { margin: 0; }
.mini-kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 16px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }
.mini-kpis div { padding: 9px 12px; display: flex; flex-direction: column; align-items: center; border-left: 1px solid var(--line); }
.mini-kpis div:first-child { border-left: 0; }
.mini-kpis b { font-size: 19px; font-weight: 500; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.3; }
.mini-kpis span { font-size: 10.5px; color: var(--muted); }
.list-panel { overflow-y: auto; scrollbar-width: none; padding: 4px 0; min-height: 0; }
.list-panel::-webkit-scrollbar { display: none; }

.task { position: relative; display: flex; gap: 12px; padding: 10px 14px; transition: background 0.2s, opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.task::after { content: ""; position: absolute; left: 48px; right: 14px; bottom: 0; height: 1px; background: var(--line); }
.task:last-child::after { display: none; }
.task:hover { background: rgba(255, 255, 255, 0.02); }
.task.expanded { background: rgba(255, 255, 255, 0.045); }
.task.enter { animation: fade 0.4s var(--ease); }
.task.leaving { opacity: 0; transform: translateX(10px); }
.check { flex: none; width: 21px; height: 21px; border-radius: 50%; border: 1.6px solid rgba(255, 255, 255, 0.25); display: grid; place-items: center; transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease); margin-top: 1px; }
.check:hover { border-color: var(--acc-text); }
.check:active { transform: scale(0.88); }
.check .ic { width: 12px; height: 12px; stroke: var(--ink); stroke-width: 3; stroke-dasharray: 20; stroke-dashoffset: 20; }
.task.done .check, .task.completing .check { background: var(--grad); border-color: transparent; }
.task.done .check .ic { stroke-dashoffset: 0; }
.task.completing .check { animation: pop 0.35s var(--ease); }
.task.completing .check .ic { animation: draw 0.3s 0.05s var(--ease) forwards; }
@keyframes pop { 50% { transform: scale(1.15); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.body { flex: 1; min-width: 0; }
.t-title, .t-note { display: block; width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; padding: 0; margin: 0; user-select: text; }
.t-title { font-size: 13.8px; line-height: 22px; }
.task.done .t-title, .task.completing .t-title { color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.2); }
.t-note { font-size: 12px; line-height: 18px; color: var(--muted); resize: none; overflow: hidden; min-height: 18px; }
.t-note::placeholder { color: var(--faint); }
.task:not(.expanded) .t-note.no-note { display: none; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 2px; font-size: 11px; color: var(--muted); }
.meta:empty { display: none; }
.task.expanded .meta { display: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.chip .ic { width: 11px; height: 11px; stroke-width: 2; }
.chip .ldot { width: 7px; height: 7px; box-shadow: none; }
.chip.today, .chip.live { color: var(--acc-text); }
.chip.overdue { color: var(--red); }
.flag-mark .ic { width: 11px; height: 11px; stroke: #fbbf24; stroke-width: 2.2; }
.flag-mark .fl { fill: #fbbf24; }
.details { display: none; gap: 6px; margin-top: 9px; flex-wrap: wrap; align-items: center; }
.task.expanded .details { display: flex; animation: fade 0.25s var(--ease); }
.pill { position: relative; height: 26px; min-width: 26px; padding: 0 10px; border-radius: 13px; background: rgba(255, 255, 255, 0.06); font-size: 11.5px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 5px; transition: background 0.15s, color 0.15s; }
.pill:hover { background: rgba(255, 255, 255, 0.11); }
.pill.icon { padding: 0 8px; }
.pill .ic { width: 13px; height: 13px; stroke-width: 2; }
.pill.on { background: var(--soft); color: var(--acc-text); box-shadow: inset 0 0 0 1px var(--edge); }
.pill.flag-btn.on { background: rgba(251, 191, 36, 0.14); color: #fbbf24; box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.3); }
.pill.flag-btn.on .fl { fill: currentColor; }
.pill.del-btn { margin-left: auto; color: var(--red); }
.pill input[type="date"] { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
select.pill { appearance: none; -webkit-appearance: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 11.5px; font-weight: 500; padding: 0 22px 0 10px; max-width: 150px; cursor: pointer; background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 7px center / 11px; }
select.pill option { background: #1a1b1d; color: #eee; }
.focus-btn { flex: none; align-self: center; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--acc-text); background: var(--soft); opacity: 0; transform: scale(0.9); transition: opacity 0.2s, transform 0.2s var(--ease); }
.focus-btn .ic { width: 13px; height: 13px; }
.task:hover .focus-btn, .task.expanded .focus-btn, .task.active .focus-btn { opacity: 1; transform: none; }
.focus-btn:hover { background: var(--grad); color: var(--ink); }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .ic { width: 42px; height: 42px; margin: 0 auto 10px; stroke: var(--faint); stroke-width: 1.3; }
.empty p { margin: 0; font-size: 13px; }
.empty[hidden] { display: none; }

.add { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 12px; border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)); border: 1px solid var(--line); transition: border-color 0.2s, box-shadow 0.2s; }
.add:focus-within { border-color: var(--edge); box-shadow: 0 0 0 4px rgba(var(--acc), 0.08); }
.plus { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: var(--ink); display: grid; place-items: center; flex: none; box-shadow: 0 4px 12px rgba(var(--acc), 0.3); }
.plus .ic { width: 13px; height: 13px; stroke-width: 2.4; }
.add input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 13.5px; color: var(--text); user-select: text; }
.add input::placeholder { color: var(--faint); }
kbd { font: inherit; font-size: 11px; color: var(--muted); background: rgba(255, 255, 255, 0.07); border-radius: 6px; padding: 2px 7px; opacity: 0; transition: opacity 0.2s; }
.add:focus-within kbd { opacity: 1; }
.add.sm { height: 38px; border-radius: 12px; }
.add.sm .plus { width: 19px; height: 19px; }
.add.sm input { font-size: 12px; }

/* ---------- board ---------- */
.board-view { display: grid; grid-template-rows: auto auto minmax(0, 1fr); }
.board { display: flex; gap: 12px; overflow-x: auto; min-height: 0; padding-bottom: 4px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.15) transparent; }
.bcol { flex: 0 0 182px; display: flex; flex-direction: column; min-height: 0; border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line); transition: border-color 0.2s, background 0.2s; }
.bcol.over { border-color: var(--edge); background: linear-gradient(180deg, rgba(var(--acc), 0.1), rgba(var(--acc), 0.03)); }
.bcol-head { display: flex; align-items: center; gap: 7px; padding: 12px 10px 8px 14px; }
.bcol-ic { color: var(--acc-text); }
.bcol-ic .ic { width: 15px; height: 15px; }
.bcol-name { font-size: 13px; font-weight: 600; outline: 0; border-radius: 5px; padding: 0 2px; min-width: 20px; }
.bcol-name[contenteditable="true"] { background: rgba(255, 255, 255, 0.08); user-select: text; }
.bcol-count { font-size: 11px; color: var(--faint); background: rgba(255, 255, 255, 0.06); border-radius: 8px; padding: 1px 7px; }
.bcol-head .bcol-del { margin-left: auto; opacity: 0; }
.bcol:hover .bcol-del { opacity: 1; }
.bcol-cards { flex: 1; overflow-y: auto; padding: 2px 8px 8px; min-height: 50px; display: flex; flex-direction: column; gap: 7px; scrollbar-width: none; }
.bcol-cards::-webkit-scrollbar { display: none; }
.card { display: flex; gap: 8px; padding: 9px 9px 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.055); border: 1px solid var(--line); cursor: grab; transition: transform 0.15s, background 0.2s, box-shadow 0.2s, opacity 0.2s; position: relative; }
.card:hover { background: rgba(255, 255, 255, 0.085); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }
.card.dragging { opacity: 0.35; }
.card.active { border-color: var(--edge); }
.card.done .card-title { color: var(--faint); text-decoration: line-through; }
.card-body { flex: 1; min-width: 0; }
.card-title { font-size: 12.5px; line-height: 1.4; word-break: break-word; outline: 0; border-radius: 4px; }
.card-title[contenteditable="true"] { background: rgba(255, 255, 255, 0.08); user-select: text; cursor: text; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; font-size: 10.5px; color: var(--muted); }
.card-meta:empty { display: none; }
.card-actions { display: flex; flex-direction: column; gap: 2px; opacity: 0; transition: opacity 0.15s; }
.card:hover .card-actions { opacity: 1; }
.card-btn { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; color: var(--muted); }
.card-btn:hover { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.card-btn .ic { width: 11px; height: 11px; }
.mini-check { width: 17px; height: 17px; flex: none; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.25); display: grid; place-items: center; margin-top: 1px; }
.mini-check:hover { border-color: var(--acc-text); }
.mini-check .ic { width: 10px; height: 10px; stroke: var(--ink); stroke-width: 3; opacity: 0; }
.done > .mini-check, .card.done .mini-check { background: var(--grad); border-color: transparent; }
.done > .mini-check .ic, .card.done .mini-check .ic { opacity: 1; }
.bcol-add { padding: 0 8px 10px; }
.bcol-add input, .col-add input { width: 100%; height: 34px; border-radius: 10px; border: 1px dashed rgba(255, 255, 255, 0.14); background: transparent; color: var(--text); font: inherit; font-size: 12px; padding: 0 10px; outline: 0; user-select: text; transition: border-color 0.2s, background 0.2s; }
.bcol-add input:focus, .col-add input:focus { border-style: solid; border-color: var(--edge); background: rgba(255, 255, 255, 0.04); }
.bcol-add input::placeholder, .col-add input::placeholder { color: var(--faint); }
.col-add { flex: 0 0 190px; }
.more { text-align: center; margin: 4px 0; }

/* ---------- stats ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { padding: 12px 14px; border-radius: 18px; }
.kpi-t { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.kpi-t .ic { width: 13px; height: 13px; color: var(--acc-text); }
.kpi-v { font-size: 23px; font-weight: 300; margin-top: 6px; }
.kpi-v small { font-size: 11px; color: var(--muted); }
.kpi-s { font-size: 10.5px; color: var(--faint); margin-top: 1px; }
.chart-panel { margin-top: 10px; padding: 15px 18px 10px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; gap: 10px; }
.chart { position: relative; display: flex; gap: 12px; height: 236px; margin-top: 10px; }
.plot { position: absolute; left: 0; right: 0; top: 0; bottom: 26px; pointer-events: none; }
.col { flex: 1; display: flex; flex-direction: column; align-items: center; }
.col-track { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.col-bar { position: relative; width: 100%; max-width: 36px; border-radius: 10px 10px 6px 6px; background: linear-gradient(180deg, rgba(var(--acc2), 0.5), rgba(var(--acc3), 0.25)); transition: height 0.6s var(--ease); }
.col.today .col-bar { background: var(--grad); box-shadow: 0 0 22px rgba(var(--acc), 0.35); }
.col-bar em { position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, -5px); font-style: normal; font-size: 10px; color: var(--muted); white-space: nowrap; }
.col.today .col-bar em { color: var(--acc-text); }
.col-lb { height: 26px; line-height: 26px; font-size: 11px; color: var(--muted); text-transform: lowercase; }
.col.today .col-lb { color: var(--acc-text); font-weight: 600; }
.goal-line { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(var(--acc2), 0.3); }
.goal-line span { position: absolute; left: 0; top: -15px; font-size: 10px; color: rgba(var(--acc2), 0.7); }
.chart-foot { text-align: right; font-size: 11px; }

/* ---------- calendar ---------- */
.cal-view { display: grid; grid-template-columns: 1fr 214px; gap: 14px; }
.month { padding: 13px 14px 11px; display: flex; flex-direction: column; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head h2 { margin: 0; font-size: 19px; font-weight: 600; color: var(--title); text-transform: capitalize; }
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-nav .link-btn { margin-right: 6px; }
.wk, .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wk span { text-align: center; font-size: 10px; color: var(--faint); font-weight: 600; padding-bottom: 4px; }
.cd { height: 52px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12.5px; background: rgba(var(--acc), var(--heat)); border: 1px solid transparent; transition: background 0.2s; }
.cd:hover { background: rgba(255, 255, 255, 0.07); }
.cd.out { opacity: 0.28; }
.cd.today { border-color: rgba(var(--acc2), 0.55); color: var(--acc-text); }
.cd.sel { background: var(--grad); color: var(--ink); font-weight: 600; box-shadow: 0 8px 20px rgba(var(--acc), 0.3); }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--acc-text); display: inline-block; }
.dot.none { visibility: hidden; }
.cd.sel .dot { background: var(--ink); }
.legend { display: flex; gap: 16px; margin-top: auto; padding-top: 8px; font-size: 10.5px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend .heat { width: 12px; height: 8px; border-radius: 3px; background: linear-gradient(90deg, rgba(var(--acc), 0.08), rgba(var(--acc), 0.4)); }
.day-panel { padding: 15px 14px 12px; display: flex; flex-direction: column; }
.day-title { font-size: 15px; font-weight: 600; color: var(--title); margin-bottom: 8px; }
.day-title::first-letter { text-transform: uppercase; }
.day-sub { margin: 12px 0 4px; }
.day-list { overflow-y: auto; flex: 1; min-height: 0; margin-bottom: 10px; scrollbar-width: none; }
.dtask { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 12.5px; border-bottom: 1px solid var(--line); }
.dtask:last-child { border: 0; }
.dtask span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.dtask.done span { color: var(--faint); text-decoration: line-through; }

/* ---------- settings sheet ---------- */
.sheet { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; background: rgba(4, 5, 5, 0.6); backdrop-filter: blur(8px); animation: fadeIn 0.25s var(--ease); }
.sheet[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.sheet-card { width: 430px; max-height: 560px; overflow-y: auto; scrollbar-width: none; padding: 18px 20px 20px; border-radius: 24px; background: linear-gradient(180deg, #1c1e20, #141516); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06); animation: rise 0.35s var(--ease); }
@keyframes rise { from { transform: translateY(14px) scale(0.98); opacity: 0; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sheet-head h2 { margin: 0; font-size: 19px; font-weight: 600; color: var(--title); }
.sheet-group { background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); border-radius: 16px; padding: 2px 14px; margin-top: 10px; }
.srow { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: 12.5px; border-bottom: 1px solid var(--line); gap: 10px; }
.srow.tall { min-height: 70px; }
.srow:last-child { border: 0; }
.stepper { display: flex; align-items: center; gap: 4px; background: rgba(0, 0, 0, 0.3); border-radius: 10px; padding: 3px; }
.stepper button { width: 26px; height: 24px; border-radius: 7px; font-size: 15px; color: var(--muted); }
.stepper button:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.stepper b { min-width: 64px; text-align: center; font-weight: 500; font-size: 12.5px; }
.stepper small { color: var(--muted); font-weight: 400; font-size: 10.5px; }
.switch { width: 42px; height: 25px; border-radius: 13px; background: rgba(255, 255, 255, 0.14); position: relative; transition: background 0.25s; flex: none; }
.switch i { position: absolute; top: 2px; left: 2px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); transition: transform 0.3s var(--ease); }
.switch.on { background: var(--grad); }
.switch.on i { transform: translateX(17px); }
.swatches { display: flex; gap: 8px; }
.sw { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4); transition: transform 0.2s var(--ease); position: relative; }
.sw:hover { transform: scale(1.08); }
.sw.on::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.8); }
.scene-pick { display: flex; align-items: center; gap: 8px; }
.thumb { width: 72px; height: 50px; border-radius: 10px; background-size: cover; background-position: center; border: 1px solid rgba(255, 255, 255, 0.1); }
.hint { font-size: 11px; color: var(--muted); margin: 8px 2px 0; line-height: 1.5; }

/* ---------- toast ---------- */
.toast { position: absolute; left: 50%; bottom: 22px; z-index: 20; transform: translate(-50%, 12px); display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 16px; border-radius: 22px; background: rgba(36, 38, 40, 0.96); border: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(20px); font-size: 12.5px; white-space: nowrap; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5); opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease), transform 0.35s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast-undo { color: var(--ink); font-weight: 600; padding: 5px 12px; border-radius: 14px; background: var(--grad); }

/* ---------- music + google ---------- */
.music-btn { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.12); transition: background 0.2s, color 0.2s; }
.music-btn .ic { width: 17px; height: 17px; }
.music-btn:hover { background: var(--grad); color: var(--ink); }
.set-input { flex: 1; min-width: 0; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); color: var(--text); font: inherit; font-size: 12px; padding: 0 10px; outline: 0; user-select: text; }
.set-input:focus { border-color: var(--edge); }
.srow > span:first-child .ic { width: 17px; height: 17px; color: var(--acc-text); }
.g-label { display: flex; align-items: center; gap: 9px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-label .ic { width: 16px; height: 16px; color: var(--acc-text); }
.dots-row { display: flex; gap: 3px; height: 4px; }
.dot.g { background: #93c5fd; }
.cd.sel .dot.g { background: var(--ink); opacity: 0.6; }
.day-sub .icon-btn { margin-left: auto; }
.ev-list { max-height: 120px; overflow-y: auto; scrollbar-width: none; }
.ev { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12px; }
.ev i { width: 3px; height: 16px; border-radius: 2px; flex: none; }
.ev-t { color: var(--muted); font-size: 11px; flex: none; min-width: 42px; }
.ev-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- subtasks + backup ---------- */
.subs { margin-top: 6px; }
.task:not(.expanded) .subs { display: none; }
.sub { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.sub .mini-check { width: 15px; height: 15px; margin: 0; }
.sub .mini-check .ic { width: 9px; height: 9px; }
.sub.done .mini-check { background: var(--grad); border-color: transparent; }
.sub.done .mini-check .ic { opacity: 1; }
.sub-title { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 12.5px; padding: 0; user-select: text; }
.sub.done .sub-title { color: var(--faint); text-decoration: line-through; }
.sub .card-btn { opacity: 0; }
.sub:hover .card-btn { opacity: 1; }
.sub-add { display: flex; align-items: center; gap: 8px; padding: 3px 0; color: var(--faint); }
.sub-add .ic { width: 13px; height: 13px; margin: 0 1px; }
.sub-new, .note-new { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 12.5px; padding: 0; user-select: text; }
.sub-new::placeholder, .note-new::placeholder { color: var(--faint); }
.warn { font-size: 12px; line-height: 1.4; }

/* ---------- notes, reminders, board details ---------- */
.sub.note .bullet, .csub.note .bullet { width: 5px; height: 5px; border-radius: 50%; background: var(--acc-text); flex: none; margin: 0 5px; opacity: 0.8; }
.sub.note .sub-title { color: var(--muted); }
.pill .x { margin-left: 2px; opacity: 0.6; font-size: 13px; line-height: 1; }
.pill .x:hover { opacity: 1; }
.pill input[type="time"] { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.card-wrap { display: flex; flex-direction: column; border-radius: 12px; }
.card-wrap:has(.card-more) .card { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.card-more { padding: 6px 10px 8px 12px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; animation: fade 0.25s var(--ease); }
.card-note { margin: 2px 0 6px; font-size: 11.5px; color: var(--muted); line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.csub { display: flex; align-items: center; gap: 7px; padding: 3px 0; font-size: 11.5px; }
.csub .mini-check { width: 14px; height: 14px; margin: 0; }
.csub .mini-check .ic { width: 8px; height: 8px; }
.csub.done .mini-check { background: var(--grad); border-color: transparent; }
.csub.done .mini-check .ic { opacity: 1; }
.csub.done span { color: var(--faint); text-decoration: line-through; }
.csub.note span:last-child { color: var(--muted); }
.csub-new { width: 100%; margin-top: 4px; height: 26px; border-radius: 8px; border: 1px dashed rgba(255, 255, 255, 0.14); background: transparent; color: var(--text); font: inherit; font-size: 11.5px; padding: 0 8px; outline: 0; user-select: text; }
.csub-new:focus { border-style: solid; border-color: var(--edge); }
.card-more-btn { align-self: flex-start; display: flex; align-items: center; gap: 3px; font-size: 10.5px; color: var(--muted); padding: 3px 4px 0 6px; }
.card-more-btn .ic { width: 12px; height: 12px; transition: transform 0.2s; }
.card-more-btn.open .ic { transform: rotate(180deg); }
.card-more-btn:hover { color: var(--acc-text); }
.card-more-btn.empty { opacity: 0; transition: opacity 0.15s; }
.card-wrap:hover .card-more-btn.empty { opacity: 1; }

/* ---------- resizable window / tab ---------- */
html.tab .app { grid-template-columns: clamp(64px, 20vw, 230px) 1fr; }
html.tab main { overflow: auto; }
@media (max-width: 900px) {
  html.tab .timer-view { grid-template-columns: 1fr; }
  html.tab .timer-view .side { display: none; }
  html.tab .cal-view { grid-template-columns: 1fr; }
  html.tab .cal-view .day-panel { display: none; }
  html.tab .kpis, html.tab .mini-kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  html.tab .app { grid-template-columns: 62px 1fr; }
  html.tab .sidebar { padding: 2px 6px 14px 10px; }
  html.tab .side-item { justify-content: center; padding: 0; }
  html.tab .side-item .lbl, html.tab .side-item .cnt, html.tab .side-item .live, html.tab .side-item .del,
  html.tab .side-label, html.tab .side-input, html.tab .brand-sub { display: none; }
  html.tab .topbar { padding: 0 12px 0 16px; }
  html.tab .mini-kpis { display: none; }
  html.tab .list-view { grid-template-rows: auto 1fr auto; }
}
@media (max-height: 600px) {
  html.tab .ring { width: 176px; height: 176px; }
  html.tab .time { font-size: 42px; }
  html.tab .ring-wrap { margin: 8px 0 10px; }
  html.tab .ctl { width: 46px; height: 46px; }
  html.tab .ctl.main { width: 60px; height: 60px; }
}
@media (min-height: 820px) {
  html.tab .ring { width: 260px; height: 260px; }
  html.tab .time { font-size: 62px; }
}

/* ===== Bacheca colorata ===== */
.board-view .view-head { flex-wrap: wrap; row-gap: 8px; }
.board-sum { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.bs-cols { display: flex; gap: 6px; flex-wrap: wrap; }
.bs-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px 0 8px; border-radius: 9px; font-size: 11.5px; color: var(--muted);
  background: color-mix(in srgb, var(--cc) 9%, rgba(255, 255, 255, 0.03)); border: 1px solid color-mix(in srgb, var(--cc) 22%, transparent); }
.bs-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--cc); box-shadow: 0 0 8px var(--cc); }
.bs-chip b { font-weight: 600; color: var(--text); }
.bs-prog { display: flex; align-items: center; gap: 8px; }
.bs-bar { width: 120px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bs-bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #60A5FA, #A78BFA 45%, #34D399); transition: width 0.5s var(--ease); }
.bs-pct { font-size: 12px; font-weight: 600; color: var(--text); min-width: 32px; }

.bcol { --cc: #60A5FA; position: relative; overflow: visible;
  background: linear-gradient(180deg, color-mix(in srgb, var(--cc) 11%, rgba(255, 255, 255, 0.03)) 0, rgba(255, 255, 255, 0.035) 120px, rgba(255, 255, 255, 0.018) 100%);
  border-color: color-mix(in srgb, var(--cc) 18%, rgba(255, 255, 255, 0.06)); }
.bcol::before { content: ""; position: absolute; left: 14px; right: 14px; top: -1px; height: 3px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, var(--cc) 20%, var(--cc) 80%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--cc) 70%, transparent); }
.bcol.over { border-color: color-mix(in srgb, var(--cc) 55%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--cc) 18%, transparent), color-mix(in srgb, var(--cc) 6%, transparent)); }
.bcol-head { position: relative; padding: 14px 10px 10px 12px; }
.bcol-dot { width: 18px; height: 18px; border-radius: 7px; display: grid; place-items: center; flex: 0 0 auto;
  background: color-mix(in srgb, var(--cc) 22%, transparent); border: 1px solid color-mix(in srgb, var(--cc) 55%, transparent); color: var(--cc); transition: transform 0.15s; }
.bcol-dot:empty::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cc); box-shadow: 0 0 8px var(--cc); }
.bcol-dot:hover { transform: scale(1.12); }
.bcol-dot .ic { width: 12px; height: 12px; }
.bcol-name { font-size: 13.5px; }
.bcol-count { color: var(--cc); background: color-mix(in srgb, var(--cc) 14%, transparent); font-weight: 600; }
.col-palette { position: absolute; top: 40px; left: 8px; z-index: 30; display: grid; grid-template-columns: repeat(4, 22px); gap: 7px; padding: 10px; border-radius: 14px;
  background: rgba(22, 22, 24, 0.97); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); animation: fade 0.18s var(--ease); }
.col-palette button { width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; transition: transform 0.12s; }
.col-palette button:hover { transform: scale(1.15); }
.col-palette button.on { border-color: #fff; }
.bcol-empty { margin: 4px 2px; padding: 22px 10px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--cc) 30%, rgba(255, 255, 255, 0.08));
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 11.5px; color: var(--faint); }
.be-ic { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; color: var(--cc); background: color-mix(in srgb, var(--cc) 12%, transparent); }
.be-ic .ic { width: 16px; height: 16px; }
.card.has-lc::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--lc); box-shadow: 0 0 8px color-mix(in srgb, var(--lc) 60%, transparent); }
.bcol-add input:focus, .col-add input:focus { border-color: color-mix(in srgb, var(--cc, var(--acc-hex, #34D399)) 60%, transparent); }
html.tab .bcol { flex-basis: clamp(220px, 21vw, 300px); }
html.tab .col-add { flex-basis: clamp(200px, 18vw, 260px); }
@media (max-width: 900px) { .bh-hint { display: none; } .bs-bar { width: 80px; } }
html:not(.tab) .bs-cols, html:not(.tab) .bh-hint { display: none; }
.card-more-btn.empty { max-height: 0; padding-top: 0; overflow: hidden; transition: opacity 0.15s, max-height 0.2s var(--ease), padding 0.2s; }
.card-wrap:hover .card-more-btn.empty { max-height: 22px; padding-top: 3px; }

/* ===== Priorità e tempo ===== */
.pri-chip { display: inline-flex; align-items: center; gap: 3px; color: var(--pc); font-weight: 600; }
.pri-chip .ic { width: 11px; height: 11px; }
.pri-chip .ic .fl { fill: var(--pc); }
.chip.over { color: #FB923C; }
.pri-sel { color: var(--pc) !important; }
.card { cursor: pointer; }
.card:active { cursor: grabbing; }

/* ===== Statistiche: tempo per progetto ===== */
.tb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.tb-panel { padding: 14px 16px; }
.tb-row { display: grid; grid-template-columns: minmax(80px, 140px) 1fr auto; align-items: center; gap: 10px; margin-top: 10px; font-size: 12.5px; }
.tb-name { display: flex; align-items: center; gap: 7px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); }
.tb-bar { height: 7px; border-radius: 7px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.tb-bar span { display: block; height: 100%; border-radius: 7px; opacity: 0.85; }
.tb-row b, .tb-task b { font-weight: 600; font-size: 12.5px; }
.tb-task { width: 100%; display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 7px 8px; border-radius: 10px; text-align: left; font-size: 12.5px; color: var(--text); }
.tb-task:hover { background: rgba(255, 255, 255, 0.05); }
.tb-t { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tb-task .muted { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; }
.tb-task .muted .ic { width: 11px; height: 11px; }
html:not(.tab) .tb-grid { grid-template-columns: 1fr; }

/* ===== Pannello dettaglio ===== */
#detail { position: fixed; inset: 0; z-index: 60; }
#detail[hidden] { display: none; }
.dt-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.22s; }
.dt-panel { position: absolute; top: 10px; right: 10px; bottom: 10px; width: min(440px, calc(100vw - 20px)); overflow-y: auto; padding: 16px 18px 18px;
  border-radius: 22px; background: linear-gradient(180deg, rgba(28, 28, 31, 0.98), rgba(17, 17, 19, 0.98)); border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); transform: translateX(30px); opacity: 0; transition: transform 0.25s var(--ease), opacity 0.22s; scrollbar-width: thin; }
#detail.open .dt-backdrop { opacity: 1; }
#detail.open .dt-panel { transform: none; opacity: 1; }
.dt-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.dt-check { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.3); display: grid; place-items: center; color: #0b0b0c; transition: all 0.2s; }
.dt-check .ic { width: 14px; height: 14px; opacity: 0; }
.dt-check:hover { border-color: var(--acc-text); }
.dt-check.on { background: var(--grad); border-color: transparent; }
.dt-check.on .ic { opacity: 1; }
.dt-crumb { flex: 1; font-size: 11.5px; color: var(--faint); letter-spacing: .03em; text-transform: uppercase; font-weight: 600; }
.dt-title { width: 100%; resize: none; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 20px; font-weight: 600; line-height: 1.3; padding: 4px 0 10px; user-select: text; overflow: hidden; }
.dt-grid { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 8px 10px; padding: 12px 0 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dt-grid label { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.dt-grid label .ic { width: 14px; height: 14px; opacity: .8; }
.dt-in { height: 32px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--text); font: inherit; font-size: 12.5px; padding: 0 10px; outline: 0; color-scheme: dark; min-width: 0; }
.dt-in:focus { border-color: var(--edge); }
.dt-row { display: flex; gap: 6px; align-items: center; }
.dt-row .dt-in[type="date"] { flex: 1; min-width: 0; }
.dt-panel select.dt-in { width: 100%; }
.dt-row .dt-in[type="time"] { width: 92px; }
.dt-pri { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.dt-pri button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 28px; padding: 0 4px; border-radius: 9px; font-size: 12px; color: var(--muted); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); transition: all 0.15s; }
.dt-pri button i { width: 7px; height: 7px; border-radius: 50%; background: var(--pc); }
.dt-pri button:hover { color: var(--text); }
.dt-pri button.on { color: var(--pc); border-color: color-mix(in srgb, var(--pc) 55%, transparent); background: color-mix(in srgb, var(--pc) 14%, transparent); font-weight: 600; }
.dt-time { margin: 14px 0 4px; padding: 14px; }
.dt-time-h { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 600; }
.dt-time-h > span { display: flex; align-items: center; gap: 7px; }
.dt-time-h .ic { width: 15px; height: 15px; }
.btn-mini { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 9px; font-size: 12px; font-weight: 600; color: #0b0b0c; background: var(--grad); }
.btn-mini .ic { width: 12px; height: 12px; }
.btn-mini.danger { color: #F87171; background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.25); font-weight: 500; }
.dt-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.dt-stats > div { padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); display: flex; flex-direction: column; gap: 3px; }
.dt-stats b { font-size: 18px; font-weight: 600; }
.dt-stats span { font-size: 10.5px; color: var(--faint); }
.dt-step { display: flex; align-items: center; justify-content: space-between; }
.dt-step button { width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, 0.07); color: var(--text); font-size: 14px; line-height: 1; }
.dt-step button:disabled { opacity: .3; }
.dt-prog { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 11px; }
.dt-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.dt-bar span { display: block; height: 100%; background: var(--grad); border-radius: 6px; }
.dt-bar.over span { background: linear-gradient(90deg, #FBBF24, #FB923C); }
.dt-sec { display: flex; align-items: center; gap: 7px; margin: 16px 0 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.dt-sec .ic { width: 14px; height: 14px; }
.dt-sec .muted { margin-left: auto; font-weight: 500; }
.dt-note { width: 100%; resize: none; min-height: 70px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--text); font: inherit; font-size: 13px; line-height: 1.5; padding: 10px 12px; outline: 0; user-select: text; }
.dt-note:focus { border-color: var(--edge); }
.dt-subs { display: flex; flex-direction: column; gap: 2px; }
.dt-sub { display: flex; align-items: center; gap: 9px; padding: 5px 6px; border-radius: 9px; }
.dt-sub:hover { background: rgba(255, 255, 255, 0.04); }
.dt-sub input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; user-select: text; }
.dt-sub.done input { color: var(--faint); text-decoration: line-through; }
.dt-sub.done .mini-check { background: var(--grad); border-color: transparent; }
.dt-sub.done .mini-check .ic { opacity: 1; }
.dt-sub.note input { color: var(--muted); }
.dt-sub .card-btn { opacity: 0; }
.dt-sub:hover .card-btn { opacity: 1; }
.dt-sub.add { color: var(--faint); }
.dt-sub.add .ic { width: 14px; height: 14px; margin: 0 2px; }
.dt-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11.5px; }
@media (max-width: 560px) { .dt-panel { top: auto; left: 6px; right: 6px; bottom: 6px; width: auto; max-height: 88dvh; transform: translateY(40px); } .dt-grid { grid-template-columns: 92px minmax(0, 1fr); } .dt-pri { grid-template-columns: repeat(2, 1fr); } .dt-stats b { font-size: 16px; } }

/* ===== Sincronizzazione ===== */
.sync-box { padding: 14px 14px 12px; }
.sync-h { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.sync-h .ic { width: 15px; height: 15px; color: var(--acc-text); }
.sync-h b { font-weight: 600; }
.sync-st { margin-left: auto; font-size: 11.5px; color: var(--acc-text); }
.sync-st.err { color: #F87171; }
.sync-p { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 8px 0 10px; }
.sync-p b { color: var(--text); font-weight: 600; }
.sync-join { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.sync-join .set-input { flex: 1 1 220px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; }
.sync-login .link-btn { justify-self: start; padding: 2px 0; }
.sync-links { display: flex; gap: 18px; flex-wrap: wrap; }
.sync-login .set-input.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; }
.sync-rec { margin: 8px 0 12px; padding: 12px 14px; border-radius: 14px; background: rgba(var(--acc), .08); border: 1px solid rgba(var(--acc), .35); }
.sync-rec > b { display: block; margin-bottom: 8px; font-size: 13px; color: var(--title); }
.sync-rec .sync-code { font-size: 14px; }
.sync-more { margin: 10px 0 12px; }
.sync-box .sync-login + .sync-msg { margin-top: 8px; }
.sync-login { display: grid; gap: 8px; margin-top: 4px; max-width: 420px; }
.sync-login .set-input { width: 100%; }
.sync-login .sync-msg { margin-top: 2px; color: var(--muted); line-height: 1.5; }
.sync-login .scene-pick { margin-top: 2px; }
.sync-msg { margin-top: 10px; font-size: 12px; color: var(--acc-text); }
.sync-qr { display: flex; gap: 14px; align-items: flex-start; margin-top: 10px; }
.sync-qr .qr { flex: 0 0 132px; width: 132px; height: 132px; padding: 6px; border-radius: 14px; background: #fff; }
.sync-qr .qr svg { width: 100%; height: 100%; display: block; }
.sync-side { flex: 1; min-width: 0; }
.sync-side .sync-p { margin-top: 0; }
.sync-code { display: block; margin-bottom: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; letter-spacing: .08em; color: var(--text); user-select: all; word-break: break-all; }
.sync-side .scene-pick { flex-wrap: wrap; }
@media (max-width: 520px) { .sync-qr { flex-direction: column; align-items: center; } .sync-side { width: 100%; } }

/* ===== Frasi motivazionali ===== */
.quote { max-width: 420px; min-height: 2.6em; margin: 18px auto 0; padding: 0 12px; text-align: center; font-size: 13px; line-height: 1.45; font-style: italic; color: rgba(255, 255, 255, 0.72); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55); opacity: 0; transform: translateY(4px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.quote.show { opacity: 1; transform: none; }
html:not(.tab) .quote { margin-top: 12px; font-size: 12px; min-height: 2.4em; }

/* ===== Inserimento intelligente e dettatura ===== */
.add .mic { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); transition: all 0.2s; }
.add .mic .ic { width: 15px; height: 15px; }
.add .mic:hover { color: var(--acc-text); border-color: var(--edge); }
.add .mic.rec { color: #fff; background: #ef4444; border-color: transparent; animation: micPulse 1.2s ease-in-out infinite; }
@keyframes micPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); } 50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); } }
.smart-prev { display: none; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 4px 0; font-size: 11.5px; color: var(--muted); }
.smart-prev.show { display: flex; animation: fade 0.2s var(--ease); }
.smart-prev .sp-t { color: var(--text); font-weight: 500; margin-right: 2px; }
.smart-prev .chip, .smart-prev .pri-chip { display: inline-flex; align-items: center; gap: 4px; }
.smart-prev .ic { width: 12px; height: 12px; }
.auto-box .g-label .ic { color: #FBBF24; }
.auto-box input[type="time"] { color-scheme: dark; }

/* scene gallery */
.scene-gal { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.scene-gal:last-child { border: 0; }
.srow:has(+ .scene-gal) { border-bottom: 0; min-height: 52px; }
.scene-gal::-webkit-scrollbar { display: none; }
.sg { flex: 0 0 auto; width: 66px; height: 44px; border-radius: 10px; background-size: cover; background-position: center; border: 2px solid transparent; cursor: pointer; opacity: .78; transition: opacity .2s, transform .2s, border-color .2s; }
.sg:hover { opacity: 1; transform: translateY(-1px); }
.sg.on { border-color: #fff; opacity: 1; box-shadow: 0 0 0 3px rgba(255,255,255,.15); }

/* guided dictation */
#voice, .vc-ov { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.55); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .25s; }
#voice.show, .vc-ov.show { opacity: 1; pointer-events: auto; }
.vc-card { position: relative; width: min(440px, 100%); padding: 26px 24px 22px; border-radius: 22px; background: var(--panel, #141416); border: 1px solid var(--edge, rgba(255,255,255,.12)); box-shadow: 0 30px 80px rgba(0,0,0,.6); text-align: center; transform: translateY(10px); transition: transform .3s var(--ease, ease); }
#voice.show .vc-card, .vc-ov.show .vc-card { transform: none; }
.vc-steps { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; }
.vc-steps i { width: 22px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); }
.vc-steps i.on { background: rgb(var(--acc)); }
.vc-q { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.vc-hint { margin-top: 6px; font-size: 13px; color: var(--muted); }
.vc-mic { border: 0; cursor: pointer; position: relative; width: 74px; height: 74px; margin: 22px auto 14px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #ef4444; }
.vc-mic .ic { width: 28px; height: 28px; position: relative; }
.vc-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #ef4444; animation: vcRing 1.8s ease-out infinite; }
.vc-ring.r2 { animation-delay: .9s; }
@keyframes vcRing { from { transform: scale(1); opacity: .7; } to { transform: scale(1.8); opacity: 0; } }
.vc-text { min-height: 48px; font-size: 17px; line-height: 1.4; padding: 4px 6px; }
.vc-ph { color: var(--muted); font-size: 14px; }
.vc-sum { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin: 18px 0 6px; }
.vc-sum .sp-t { width: 100%; font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.vc-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.vc-actions .pill { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; }
.vc-actions .ic { width: 15px; height: 15px; }
.vc-ok { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 20px; border-radius: 12px; border: 0; font: inherit; font-weight: 600; color: #04140d; background: linear-gradient(180deg, rgb(var(--acc2)), rgb(var(--acc))); cursor: pointer; }
.vc-x { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 9px; border: 0; background: rgba(255,255,255,.06); color: var(--muted); display: grid; place-items: center; cursor: pointer; font-size: 18px; }
.vc-x .ic { width: 14px; height: 14px; }

/* board per project */
.board-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 0 0 10px; scrollbar-width: none; flex: 0 0 auto; }
.board-tabs::-webkit-scrollbar { display: none; }
.bt { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; transition: all .2s; }
.bt:hover { color: var(--text); border-color: var(--edge); }
.bt .ic { width: 14px; height: 14px; }
.bt b { font-weight: 600; font-size: 11px; opacity: .7; }
.bt.on { color: var(--text); background: rgba(var(--acc), .12); border-color: rgba(var(--acc), .45); }
.bt.on[style] { background: color-mix(in srgb, var(--lc) 16%, transparent); border-color: color-mix(in srgb, var(--lc) 55%, transparent); }
.bt.add { border-style: dashed; }
.bt-input { flex: 0 0 160px; height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(var(--acc), .5); background: rgba(255,255,255,.04); color: var(--text); font: inherit; font-size: 12.5px; outline: 0; }

/* intro guidata */
#tour { position: fixed; inset: 0; z-index: 90; opacity: 0; transition: opacity .3s; }
#tour.show { opacity: 1; }
#tour { background: transparent; transition: opacity .3s, background .4s; }
#tour.dim { background: rgba(0,0,0,.72); }
.tr-spot { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(0,0,0,.72), 0 0 0 2px rgba(var(--acc), .9), 0 0 40px rgba(var(--acc), .45); transition: all .45s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.tr-spot:after { content: ''; position: absolute; inset: -6px; border-radius: 20px; border: 2px solid rgba(var(--acc), .6); animation: trPulse 1.6s ease-out infinite; }
@keyframes trPulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.06); } }
.tr-card { position: fixed; padding: 20px 20px 16px; border-radius: 18px; background: #151517; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(var(--acc), .15); color: var(--text); transition: left .45s cubic-bezier(.2,.8,.2,1), top .45s cubic-bezier(.2,.8,.2,1); opacity: 0; transform: translateY(8px) scale(.98); }
.tr-card.in { opacity: 1; transform: none; transition: left .45s cubic-bezier(.2,.8,.2,1), top .45s cubic-bezier(.2,.8,.2,1), opacity .35s, transform .35s; }
.tr-card.center { text-align: center; padding: 30px 26px 22px; }
.tr-emoji { font-size: 44px; line-height: 1; margin-bottom: 10px; animation: trWave 1.2s ease-in-out 1; }
@keyframes trWave { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 50% { transform: rotate(12deg); } 75% { transform: rotate(-6deg); } }
.tr-count { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: rgb(var(--acc)); min-height: 4px; }
.tr-card h3 { margin: 4px 0 6px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.tr-card.center h3 { font-size: 22px; }
.tr-card p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.tr-bar { height: 3px; border-radius: 2px; background: rgba(255,255,255,.08); margin: 16px 0 14px; overflow: hidden; }
.tr-bar span { display: block; height: 100%; background: rgb(var(--acc)); border-radius: 2px; transition: width .45s; }
.tr-act { display: flex; align-items: center; gap: 8px; justify-content: center; }
.tr-act button { height: 34px; padding: 0 14px; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); }
.tr-act .tr-skip { border: 0; background: none; color: var(--muted); padding: 0 6px; }
.tr-act .tr-next { border: 0; font-weight: 600; color: #04140d; background: linear-gradient(180deg, rgb(var(--acc2)), rgb(var(--acc))); padding: 0 18px; }
.tr-card.center .tr-act .tr-next { height: 40px; padding: 0 24px; }
.tr-conf { position: fixed; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; animation: trConf 1.5s cubic-bezier(.2,.7,.4,1) forwards; }
@keyframes trConf { from { transform: translate(0,0) rotate(0); opacity: 1; } to { transform: translate(var(--dx), calc(var(--dy) + 420px)) rotate(var(--r)); opacity: 0; } }

/* app per telefono */
.mob-card { width: min(520px, 100%); text-align: center; }
.mob-ic { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; color: rgb(var(--acc)); background: rgba(var(--acc), .12); border: 1px solid rgba(var(--acc), .3); }
.mob-ic .ic { width: 24px; height: 24px; }
.mob-body { display: flex; gap: 18px; align-items: center; margin-top: 18px; text-align: left; }
.mob-qr { flex: 0 0 150px; height: 150px; padding: 8px; border-radius: 14px; background: #fff; }
.mob-qr svg { width: 100%; height: 100%; display: block; }
.mob-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.mob-steps li { display: flex; gap: 10px; }
.mob-steps b { flex: 0 0 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #04140d; background: rgb(var(--acc)); }
.side-mobile { position: relative; }
.side-mobile .new-dot { width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--acc)); box-shadow: 0 0 8px rgb(var(--acc)); margin-left: auto; }
@media (max-width: 560px) { .mob-body { flex-direction: column; text-align: left; } }

.vc-mic.idle { background: rgba(255,255,255,.08); color: var(--text); box-shadow: 0 0 0 2px rgba(239,68,68,.6); }
.vc-mic.idle:hover { background: #ef4444; color: #fff; }
.vc-actions .pill.ghost { background: none; border-color: transparent; color: var(--muted); }

/* phone quick dictation */
.fab { position: fixed; right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 90px); z-index: 40; width: 56px; height: 56px; border-radius: 18px; border: 0; display: grid; place-items: center; color: #04140d; background: linear-gradient(180deg, rgb(var(--acc2)), rgb(var(--acc))); box-shadow: 0 12px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.15) inset, 0 0 24px rgba(var(--acc), .35); cursor: pointer; transition: transform .2s; }
.fab:active { transform: scale(.94); }
.fab .ic { width: 24px; height: 24px; stroke-width: 2.2; }
@media (min-width: 721px) { .fab { bottom: 24px; right: 24px; } }

.vc-where { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 20px 0 4px; }
.vc-proj { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--lc, #888) 45%, transparent); background: color-mix(in srgb, var(--lc, #888) 12%, transparent); color: var(--text); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: transform .15s, background .2s; }
.vc-proj:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--lc, #888) 22%, transparent); }
.vc-proj i { width: 9px; height: 9px; border-radius: 50%; }
.vc-proj.none { --lc: #8a8a8a; color: var(--muted); }

/* richiesta recensione */
.rv-card { width: min(400px, 100%); }
.rv-stars { display: flex; justify-content: center; gap: 4px; margin: 4px 0 12px; font-size: 26px; color: #fbbf24; text-shadow: 0 0 18px rgba(251,191,36,.45); }
.rv-stars span { animation: rvPop .5s cubic-bezier(.2,1.6,.4,1) both; }
.rv-stars span:nth-child(2) { animation-delay: .07s; } .rv-stars span:nth-child(3) { animation-delay: .14s; } .rv-stars span:nth-child(4) { animation-delay: .21s; } .rv-stars span:nth-child(5) { animation-delay: .28s; }
@keyframes rvPop { from { transform: scale(0) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
.rv-p { margin: 12px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.rv-actions { margin-top: 18px; }
.rv-links { display: flex; justify-content: center; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--faint, #777); }
.rv-links button { border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; padding: 2px 4px; }
.rv-links button:hover { color: var(--text); }

/* timer per progetto */
.cyc { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 2px auto 0; padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.28); backdrop-filter: blur(6px); width: fit-content; max-width: 90%; font-size: 11px; font-weight: 500; letter-spacing: .02em; color: rgba(255,255,255,.62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cyc .ldot { width: 6px; height: 6px; border-radius: 50%; }
.cyc-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; transition: all .2s; }
.cyc-btn .ic { width: 14px; height: 14px; }
.cyc-btn:hover { color: var(--text); border-color: var(--edge); }
.cyc-btn.own { color: var(--text); border-color: rgba(var(--acc), .45); background: rgba(var(--acc), .1); }
.view-head .cyc-btn.right { margin-left: auto; }
.view-head .link-btn.right + .cyc-btn.right { margin-left: 8px; }
.cyc-panel { padding: 16px 18px; margin-bottom: 12px; display: grid; gap: 14px; }
.cyc-h { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.cyc-h .muted { font-size: 12px; }
.cyc-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cyc-pre { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--text); font: inherit; cursor: pointer; text-align: left; transition: all .2s; }
.cyc-pre b { font-size: 16px; font-weight: 600; }
.cyc-pre span { font-size: 11px; color: var(--muted); }
.cyc-pre:hover { border-color: var(--edge); }
.cyc-pre.on { border-color: rgba(var(--acc), .6); background: rgba(var(--acc), .12); }
.cyc-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: end; }
.cyc-f { display: flex; flex-direction: column; gap: 5px; font-size: 11px; color: var(--muted); }
.cyc-f input { height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); font: inherit; font-size: 14px; outline: 0; width: 100%; }
.cyc-f input:focus { border-color: rgba(var(--acc), .6); }
.cyc-actions { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.cyc-actions .pill, .cyc-actions .vc-ok { height: 34px; }
@media (max-width: 640px) { .cyc-presets { grid-template-columns: 1fr; } .cyc-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
