/* Orbita — vista Oggi (today.js). Solo token del design system, chiaro/scuro automatici. */
@keyframes td-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes td-pulse { 50% { opacity: .35; transform: scale(.7); } }
.td-in { animation: td-in .32s cubic-bezier(.2,.8,.2,1) both; }
@media (prefers-reduced-motion: reduce) { .td-in, .td-now .dot { animation: none; } }

/* hero */
.td-hero h1 { line-height: 1.1; }
.td-next { min-height: 20px; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--fg2); font-variant-numeric: tabular-nums; }
.td-wx { min-height: 36px; margin-top: 8px; }
.td-wxpill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 8px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; color: var(--fg2); transition: .15s; max-width: 100%; }
.td-wxpill.on { border-color: var(--accent); }
.td-wxpill .e { font-size: 18px; } .td-wxpill b { color: var(--fg); font-size: 15px; } .td-wxpill .d { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-wxpill .mm, .td-wxpill .rn { font-variant-numeric: tabular-nums; color: var(--fg3); white-space: nowrap; }
.td-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 10px; padding: 10px 8px 8px; border-radius: var(--r); background: var(--bg2); border: 1px solid var(--line); }
.td-day { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--fg3); font-weight: 700; text-transform: uppercase; }
.td-day .e { font-size: 20px; text-transform: none; } .td-day .t { color: var(--fg); font-weight: 700; font-size: 13px; text-transform: none; font-variant-numeric: tabular-nums; }
.td-day .t small { color: var(--fg3); font-weight: 500; margin-left: 2px; } .td-day .r { color: var(--accent); text-transform: none; font-size: 10px; }
.td-wxfoot { grid-column: 1 / -1; text-align: center; margin-top: 4px; }

/* brief */
.td-brief .lbl { margin-bottom: 0; } .td-brief .row { margin-bottom: 4px; }
.td-ask { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--jarvis); color: #fff; }
.td-ask svg { width: 13px; height: 13px; }
.td-off { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line2); }

/* adesso / prossimo */
.td-now { position: relative; width: 100%; text-align: left; margin: 12px 0 0; padding: 14px 16px; border-radius: var(--r2); background: var(--bg2); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.td-now::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.td-now.live { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 10%, var(--bg2)), var(--bg2) 70%); }
.td-now .hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.td-now .lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.td-now .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--today); animation: td-pulse 1.4s infinite; }
.td-now .cd { font-size: 13px; font-weight: 700; color: var(--fg2); font-variant-numeric: tabular-nums; }
.td-now .t { font-size: 18px; font-weight: 800; letter-spacing: -.02em; padding-right: 72px; } .td-now .sub { font-size: 13px; color: var(--fg2); margin-top: 2px; padding-right: 72px; }
.td-now .who { position: absolute; right: 14px; bottom: 14px; display: flex; }
.td-now .prog { height: 4px; border-radius: 4px; background: var(--bg3); margin-top: 10px; overflow: hidden; }
.td-now .prog i { display: block; height: 100%; background: var(--c); border-radius: 4px; transition: width 1s linear; }

/* timeline oggi */
.td-past { opacity: .5; }
.td-nowline { display: flex; align-items: center; gap: 8px; margin: 2px 0; color: var(--today); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.td-nowline::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--today); box-shadow: 0 0 0 3px color-mix(in srgb, var(--today) 25%, transparent); }
.td-nowline::after { content: ""; flex: 1; height: 2px; background: var(--today); border-radius: 2px; }
.td-nowline + div .ev, .td-nowline + .ev { border-top: 0; }
.td-meal { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg2); }
.td-link { color: var(--accent); font-weight: 700; font-size: 13px; margin-top: 6px; }
.td-card .empty { padding: 14px 0; }

/* dalle app */
.td-apps { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .td-apps { grid-template-columns: 1fr 1fr; } }
.td-app { position: relative; padding: 12px 14px; border-radius: var(--r2); background: var(--bg2); border: 1px solid var(--line); box-shadow: var(--shadow); border-top: 3px solid var(--c, var(--accent)); min-height: 64px; }
.td-app .hd { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; } .td-app .hd .e { font-size: 18px; }
.td-app .it { display: flex; gap: 8px; padding: 4px 0; font-size: 14px; line-height: 1.4; } .td-app .it .k { flex: none; } .td-app .it .v { color: var(--fg); }
.td-app .up { margin-top: 4px; }
.td-soon { margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--fg3); background: var(--bg3); padding: 3px 7px; border-radius: 999px; }

/* da fare */
.td-todo { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.td-todo:first-child { border-top: 0; }
.td-todo .chk { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line2); display: grid; place-items: center; flex: none; transition: .15s; color: #fff; }
.td-todo.done .chk { background: var(--ok); border-color: var(--ok); } .td-todo.done .tx { text-decoration: line-through; color: var(--fg3); }
.td-todo.spesa .e { font-size: 20px; width: 24px; text-align: center; } .td-todo.spesa svg { width: 18px; height: 18px; color: var(--fg3); }
.td-more { display: block; padding-top: 8px; font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; }

/* compleanni */
.td-bdays { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; } .td-bdays::-webkit-scrollbar { display: none; }
.td-bday { flex: none; display: flex; align-items: center; gap: 10px; min-width: 200px; padding: 10px 12px; border-radius: var(--r); background: color-mix(in srgb, var(--c) 10%, var(--bg2)); border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line)); }
.td-bday .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: var(--c); flex: none; }
