/* Joint Operations brand: Midnight 132C3F, Daisy FCBA12, Petal FBEECF, Fern 235149, Slate 5B6170, Stone CCCCD1 */
@font-face { font-family: "Gotham Rounded"; font-weight: 400; src: url("brand/GothamRounded-Book.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Gotham Rounded"; font-weight: 600; src: url("brand/GothamRounded-Medium.otf") format("opentype"); font-display: swap; }
:root {
  --midnight: #132c3f; --midnight-2: #274660; --daisy: #fcba12; --petal: #fbeecf; --fern: #235149; --slate: #5b6170; --stone: #ccccd1;
  --bg: #f6f5f1; --panel: #fff; --line: #e4e2dc; --text: var(--midnight); --muted: var(--slate);
  --accent: var(--midnight); --accent-soft: var(--petal); --danger: #b3372b;
  --draft: #a9a9b0; --pending: var(--daisy); --changes: #b3372b; --approved: var(--midnight-2); --published: var(--fern);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 400 14px/1.45 "Gotham Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
h1, h2, h3 { margin: 0; font-weight: 600; }
b, strong { font-weight: 600; }
h2 { font-size: 18px; } h3 { font-size: 14px; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; background: #fff; width: 100%; }
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
input[type=checkbox] { width: auto; }
input[type=color] { padding: 2px; height: 34px; width: 50px; }
label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.btn { border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 7px 12px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.btn:hover { background: #f1f3f6; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--midnight-2); }
.btn.accent { background: var(--daisy); border-color: var(--daisy); color: var(--midnight); }
.btn.accent:hover { background: #eeab00; }
.btn.ok { background: var(--fern); border-color: var(--published); color: #fff; }
.btn.danger { color: var(--danger); }
.btn.small { padding: 3px 8px; font-size: 12px; }
.btn.link { border: 0; background: none; color: var(--accent); padding: 0; }
a { color: var(--midnight-2); }
.btn:disabled { opacity: .5; cursor: default; }
.muted { color: var(--muted); } .small { font-size: 12px; }
.row { display: flex; gap: 10px; align-items: center; } .row > .grow { flex: 1; min-width: 0; }
.field { margin-bottom: 12px; }
.spacer { flex: 1; }

/* auth */
.authwrap { min-height: 100vh; background: var(--midnight); padding: 9vh 16px; }
.authlogo { display: block; height: 44px; margin: 0 auto 30px; }
.auth { max-width: 380px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.auth h1 { font-size: 20px; margin-bottom: 4px; } .auth p { margin: 0 0 18px; color: var(--muted); }
.auth .btn { width: 100%; }
.error { color: var(--danger); font-size: 13px; min-height: 18px; margin: 6px 0; }

/* shell */
.top { background: var(--midnight); color: #fff; display: flex; align-items: center; gap: 14px; padding: 0 18px; height: 58px; position: sticky; top: 0; z-index: 5; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14px; margin-right: 10px; white-space: nowrap; color: var(--stone); }
.logo img { height: 28px; display: block; }
.logo span { border-left: 1px solid rgba(255,255,255,.25); padding-left: 12px; }
.nav button { white-space: nowrap; }
.top { flex-wrap: wrap; height: auto; min-height: 58px; row-gap: 6px; padding-top: 6px; padding-bottom: 6px; }
.nav { height: 46px; }
.nav { display: flex; gap: 2px; height: 100%; }
.nav button { border: 0; background: none; padding: 0 12px; cursor: pointer; font-weight: 600; color: var(--stone); border-bottom: 3px solid transparent; border-top: 3px solid transparent; }
.nav button:hover { color: #fff; }
.nav button.on { color: #fff; border-bottom-color: var(--daisy); }
.nav .count { background: var(--daisy); color: var(--midnight); border-radius: 9px; font-size: 11px; padding: 1px 6px; margin-left: 4px; }
.top select { width: auto; color: var(--midnight); border-color: transparent; }
.top .btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.top .btn:hover { background: var(--midnight-2); }
.top .btn.primary { background: var(--daisy); border-color: var(--daisy); color: var(--midnight); }
.top .btn.primary:hover { background: #eeab00; }
.top :focus-visible { outline-color: var(--daisy); }
main { padding: 18px; max-width: 1400px; margin: 0 auto; }
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar select { width: auto; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* badges */
.badge { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 4px; padding: 1px 5px; line-height: 1.4; }
.ch-instagram { background: #fde7f1; color: #b0246a; } .ch-linkedin { background: #e2effb; color: #0a5aa8; }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--draft); }
.status.pending::before { background: var(--pending); } .status.changes::before { background: var(--changes); }
.status.approved::before { background: var(--approved); } .status.published::before { background: var(--published); }
.label-tag { font-size: 11px; background: #eef0f3; border-radius: 4px; padding: 1px 6px; color: var(--muted); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--panel); border-radius: 10px; overflow: hidden; }
.cal .dow { padding: 6px 8px; font-size: 12px; font-weight: 600; color: var(--muted); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fafbfc; }
.day { min-height: 118px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px; position: relative; }
.day.other { background: #faf9f6; } .day.other .num { color: #b3b9c4; }
.day.today .num { background: var(--daisy); color: var(--midnight); }
.day.over { background: var(--accent-soft); }
.day .num { display: inline-block; min-width: 22px; text-align: center; border-radius: 11px; font-size: 12px; font-weight: 600; padding: 2px 5px; }
.day .add { position: absolute; top: 4px; right: 4px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; opacity: 0; padding: 2px 6px; border-radius: 5px; }
.day:hover .add, .day .add:focus-visible { opacity: 1; } .day .add:hover { background: #eef0f3; }
.chip { display: block; width: 100%; text-align: left; border: 1px solid var(--line); border-left: 4px solid var(--draft); background: #fff; border-radius: 5px; padding: 3px 6px; margin-top: 3px; cursor: pointer; font-size: 12px; overflow: hidden; }
.chip:hover { box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.chip.pending { border-left-color: var(--pending); } .chip.changes { border-left-color: var(--changes); }
.chip.approved { border-left-color: var(--approved); } .chip.published { border-left-color: var(--published); opacity: .8; }
.chip .meta { display: flex; gap: 4px; align-items: center; color: var(--muted); font-size: 11px; }
.chip .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.legend { display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; }

/* tables / lists */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 9px 12px; border-bottom: 1px solid var(--line); }
td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; } tr.click:hover td { background: #fafbfc; }
td .snip { max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
td select { width: auto; }

/* queue */
.qcard { padding: 14px; margin-bottom: 12px; display: flex; gap: 14px; }
.qcard .thumbs { display: flex; gap: 6px; flex-wrap: wrap; width: 150px; flex: none; }
.qcard .thumbs a { display: block; width: 70px; height: 70px; border-radius: 6px; overflow: hidden; background: #eef0f3; position: relative; }
.qcard img, .qcard video { width: 100%; height: 100%; object-fit: cover; }
.qcard pre { white-space: pre-wrap; font: inherit; margin: 6px 0 8px; background: #fafbfc; border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; max-height: 150px; overflow: auto; }
.overdue { color: var(--danger); font-weight: 600; }

/* media */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.mitem { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; position: relative; }
.mitem .pic { aspect-ratio: 1; background: #eef0f3; display: block; width: 100%; border: 0; padding: 0; cursor: pointer; }
.mitem img, .mitem video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mitem .cap { padding: 6px 8px; font-size: 12px; display: flex; gap: 6px; align-items: center; }
.mitem .cap span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mitem.sel { outline: 3px solid var(--accent); }
.vid-tag { position: absolute; left: 6px; top: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 10px; border-radius: 4px; padding: 1px 5px; }

/* modal */
.overlay { position: fixed; inset: 0; background: rgba(20,25,35,.45); z-index: 20; display: flex; align-items: flex-start; justify-content: center; padding: 3vh 16px; overflow: auto; }
.dialog { background: var(--panel); border-radius: 12px; width: 100%; max-width: 460px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.dialog.wide { max-width: 1060px; }
.dialog header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dialog .body { padding: 18px; }
.dialog footer { display: flex; gap: 8px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.x { border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--muted); line-height: 1; padding: 2px 6px; }

/* editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; }
@media (max-width: 880px) { .editor { grid-template-columns: 1fr; } .qcard { flex-direction: column; } }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checks { display: flex; gap: 14px; } .checks label { display: flex; gap: 6px; align-items: center; font-size: 14px; color: var(--text); font-weight: 500; margin: 0; }
.counter { font-size: 12px; color: var(--muted); text-align: right; margin-top: 3px; } .counter.bad { color: var(--danger); font-weight: 600; }
.picked { display: flex; gap: 8px; flex-wrap: wrap; }
.picked .p { width: 74px; height: 74px; border-radius: 7px; overflow: hidden; position: relative; background: #eef0f3; }
.picked img, .picked video { width: 100%; height: 100%; object-fit: cover; }
.picked .rm { position: absolute; top: 2px; right: 2px; border: 0; background: rgba(0,0,0,.65); color: #fff; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; line-height: 1; }
.picked .addm { width: 74px; height: 74px; border: 1px dashed #b3b9c4; border-radius: 7px; background: none; cursor: pointer; color: var(--muted); font-size: 12px; }
.warn { background: #fff6e0; border: 1px solid #f0d58a; color: #7a5500; border-radius: 7px; padding: 6px 10px; font-size: 12px; margin-top: 8px; }
.tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.tabs button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 4px 10px; cursor: pointer; font-weight: 600; }
.tabs button.on { background: var(--petal); border-color: var(--daisy); color: var(--midnight); }

/* previews */
.pv { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.pv .head { display: flex; gap: 9px; align-items: center; padding: 10px 12px; }
.pv .av { width: 34px; height: 34px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; flex: none; }
.pv.li .av { border-radius: 4px; width: 42px; height: 42px; }
.pv .name { font-weight: 600; font-size: 13px; } .pv .sub { font-size: 11px; color: var(--muted); }
.pv .mediabox { background: #eef0f3; position: relative; }
.pv.ig .mediabox { aspect-ratio: 1; }
.pv .mediabox img, .pv .mediabox video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv.li .mediabox img, .pv.li .mediabox video { height: auto; max-height: 420px; }
.pv .nomedia { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 120px; color: var(--muted); font-size: 12px; }
.pv .more-count { position: absolute; right: 8px; top: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; border-radius: 10px; padding: 2px 8px; }
.pv .text { padding: 10px 12px; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.pv .tag { color: #0a5aa8; }
label.btn.primary { color: #fff; }
.pv .bar { padding: 8px 12px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
.pv .morebtn { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; }

/* thread */
.thread { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.thread .item { margin-bottom: 8px; font-size: 13px; }
.thread .item.activity { color: var(--muted); font-size: 12px; }
.thread .item.comment { background: #f6f7f9; border-radius: 8px; padding: 8px 10px; }
.thread .who { font-weight: 600; }
.thread form { display: flex; gap: 8px; margin-top: 10px; }

#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--midnight); color: #fff; padding: 9px 16px; border-radius: 8px; z-index: 50; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 90vw; }
#toast.show { opacity: 1; } #toast.err { background: var(--danger); }

/* ---------- friendly touches ---------- */
.hero { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; background: var(--midnight); color: #fff; border-radius: 14px; padding: 20px 22px; margin-bottom: 16px; position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; background: var(--midnight-2); opacity: .55; pointer-events: none; }
.hero::before { width: 260px; height: 260px; right: -70px; top: -150px; transform: rotate(28deg); }
.hero::after { width: 180px; height: 180px; right: 150px; bottom: -140px; transform: rotate(-18deg); }
.hero .hello { flex: 1; min-width: 240px; position: relative; z-index: 1; }
.hero h1 { font-size: 22px; } .hero p { margin: 4px 0 0; color: var(--daisy); }
.wave { display: inline-block; transform-origin: 70% 70%; animation: wave 1.8s ease-in-out 1; }
.tiles { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.tile { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; border-radius: 12px; padding: 10px 14px; min-width: 122px; text-align: left; cursor: pointer; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; transition: transform .15s, background .15s; }
.tile:hover { transform: translateY(-3px); background: rgba(255,255,255,.16); }
.tile .emoji { font-size: 20px; grid-row: span 2; }
.tile .n { font-size: 24px; font-weight: 600; line-height: 1; color: var(--stone); }
.tile.has .n { color: var(--daisy); }
.tile .l { font-size: 11px; color: var(--stone); }
.tile:focus-visible { outline-color: var(--daisy); }

.chip { transition: transform .12s, box-shadow .12s; }
.chip:hover { transform: translateY(-1px) scale(1.02); }
.chipimg { display: block; width: 100%; height: 46px; object-fit: cover; border-radius: 4px; margin-top: 4px; }
.btn { transition: transform .08s, background .15s; } .btn:active { transform: scale(.96); }
.day .add { transition: opacity .15s, transform .15s; } .day .add:hover { transform: scale(1.25); color: var(--midnight); background: var(--daisy); }
.mitem, .qcard { transition: transform .15s, box-shadow .15s; }
.mitem:hover, .qcard:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(19,44,63,.12); }
.empty .big { display: block; font-size: 40px; margin-bottom: 8px; animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
.overlay { animation: fade .15s ease-out; } .dialog { animation: rise .22s cubic-bezier(.2,1.2,.4,1); }
main > * { animation: fade .2s ease-out; }
#toast { transform: translate(-50%, 12px); transition: opacity .2s, transform .25s cubic-bezier(.2,1.6,.4,1); border-left: 4px solid var(--daisy); }
#toast.show { transform: translate(-50%, 0); }
.avatar { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--daisy); color: var(--midnight); font-size: 10px; font-weight: 600; align-items: center; justify-content: center; margin-right: 6px; vertical-align: middle; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; overflow: hidden; }
.confetti i { position: absolute; top: -20px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--drift), 105vh) rotate(var(--spin)); opacity: .9; } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes pop { from { transform: scale(0); } }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- full-size media viewer ---------- */
#lightbox { position: fixed; inset: 0; z-index: 60; background: #0b1822; color: #fff; display: flex; flex-direction: column; }
.lb-bar { display: flex; gap: 10px; align-items: center; padding: 10px 14px; flex-wrap: wrap; background: var(--midnight); }
.lb-bar .btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); text-decoration: none; }
.lb-bar .btn:hover { background: var(--midnight-2); }
.lb-bar .btn.primary { background: var(--daisy); border-color: var(--daisy); color: var(--midnight); }
#lb-dims { color: var(--stone); font-size: 12px; } #lb-progress { color: var(--daisy); font-size: 12px; font-weight: 600; }
.lb-stage { flex: 1; min-height: 0; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 12px; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.lb-stage img { cursor: zoom-in; image-rendering: auto; }
.lb-stage.actual { display: block; } .lb-stage.actual img { max-width: none; max-height: none; cursor: zoom-out; }
.lb-foot { padding: 8px 14px; font-size: 12px; color: var(--stone); background: var(--midnight); }
.lb-warn { color: var(--daisy); }
.picked .pv-open, .qcard .thumbs button { display: block; width: 100%; height: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; }
.qcard .thumbs button { width: 70px; height: 70px; border-radius: 6px; overflow: hidden; background: #eef0f3; position: relative; }
.picked .seen { position: absolute; left: 2px; bottom: 2px; background: var(--fern); color: #fff; border-radius: 50%; width: 18px; height: 18px; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.zoomable { cursor: zoom-in; } .fullcheck { margin: 8px 12px; }
.hint { font-weight: 400; color: var(--muted); }
.checkline { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; font-weight: 400; color: var(--text); margin-bottom: 10px; }
.checkline input { margin-top: 3px; }

/* ---------- showcase motion and ambience ---------- */
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
#ambient { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#app { position: relative; z-index: 1; }
body { transition: background-color .8s ease; }
body[data-scene="auth"] { background-color: var(--midnight); }

/* sign-in */
.authwrap { background: radial-gradient(900px 520px at 50% 6%, rgba(84,140,180,.24), transparent 70%); display: flex; flex-direction: column; align-items: center; }
.authlogo { margin-bottom: 12px; animation: drop .7s cubic-bezier(.2,1.3,.4,1) backwards; }
.rot { position: relative; height: 24px; width: 100%; margin: 0 0 26px; text-align: center; color: var(--daisy); font-weight: 600; font-size: 16px; }
.rot span { position: absolute; inset: 0; opacity: 0; animation: rot 8s infinite; }
.rot span:nth-child(2) { animation-delay: 2s; } .rot span:nth-child(3) { animation-delay: 4s; } .rot span:nth-child(4) { animation-delay: 6s; }
.auth { width: 100%; border: 2px solid transparent; box-shadow: 0 30px 80px rgba(0,0,0,.42);
  background: linear-gradient(#fff, #fff) padding-box, conic-gradient(from var(--a), rgba(255,255,255,.22) 0 60%, var(--daisy) 80%, rgba(255,255,255,.22) 100%) border-box;
  animation: rise .6s .15s cubic-bezier(.2,1.2,.4,1) backwards, spin 6s linear infinite; }

/* buttons */
.btn { transition: transform .12s, background .15s, box-shadow .2s; }
.btn:not(.link):not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(19,44,63,.16); }
.btn:not(.link):active { transform: scale(.96); }
.btn.primary, .btn.accent, .btn.ok { position: relative; overflow: hidden; }
.btn.primary::after, .btn.accent::after, .btn.ok::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-20deg); pointer-events: none; }
.btn.primary:hover::after, .btn.accent:hover::after, .btn.ok:hover::after { animation: shine .75s ease; }

/* top bar */
.top { background: linear-gradient(90deg, #132c3f, #1d405b 50%, #132c3f); background-size: 220% 100%; animation: sheen 14s ease-in-out infinite alternate; box-shadow: 0 6px 24px rgba(19,44,63,.28); }
.nav button { position: relative; transition: color .2s; }
.nav button.on { border-bottom-color: transparent; }
.nav button::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 2px; background: var(--daisy); transform: scaleX(0); transition: transform .28s cubic-bezier(.2,1.4,.4,1); }
.nav button:hover::after { transform: scaleX(.45); }
.nav button.on::after { transform: scaleX(1); box-shadow: 0 0 14px rgba(252,186,18,.8); }
.nav .count { display: inline-block; animation: bob 2.4s ease-in-out infinite; }

/* hero */
.hero { background: radial-gradient(460px circle at var(--mx, 82%) var(--my, 0%), rgba(252,186,18,.17), transparent 62%), linear-gradient(120deg, #132c3f, #1d405b); box-shadow: 0 16px 44px rgba(19,44,63,.3); }
.hero::before { animation: drift1 16s ease-in-out infinite alternate; }
.hero::after { animation: drift2 21s ease-in-out infinite alternate; }
.hero .nextup { color: var(--stone); font-size: 12px; margin-top: 8px; min-height: 17px; } .hero .nextup b { color: #fff; }
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #7cb518; margin-right: 7px; animation: ping 1.8s infinite; }
.tile { background: radial-gradient(140px circle at var(--mx, 50%) var(--my, -40%), rgba(255,255,255,.2), rgba(255,255,255,.07) 70%); transition: transform .2s cubic-bezier(.2,1.4,.4,1), border-color .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-4px) scale(1.03); border-color: rgba(252,186,18,.6); box-shadow: 0 10px 24px rgba(0,0,0,.25); background: radial-gradient(140px circle at var(--mx, 50%) var(--my, -40%), rgba(255,255,255,.28), rgba(255,255,255,.1) 70%); }
.tile .emoji { transition: transform .3s cubic-bezier(.2,1.8,.4,1); } .tile:hover .emoji { transform: scale(1.3) rotate(-8deg); }
.tile.has .n { text-shadow: 0 0 18px rgba(252,186,18,.45); }
.ring { position: relative; z-index: 1; display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: center; }
.ring svg { width: 66px; height: 66px; transform: rotate(-90deg); grid-row: span 2; }
.ring circle { fill: none; stroke-width: 4; } .ring .bg { stroke: rgba(255,255,255,.14); }
.ring .fg { stroke: var(--daisy); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p)); filter: drop-shadow(0 0 4px rgba(252,186,18,.65)); }
.ring .fg[style*="--p:0"] { stroke: none; }
.ring b { font-size: 21px; color: var(--daisy); align-self: end; line-height: 1; } .ring .l { font-size: 11px; color: var(--stone); align-self: start; line-height: 1.25; }

/* screens arrive in sequence; only when the screen changes */
main > * { animation: none; }
.enter > * { animation: fade .3s ease-out backwards; }
.enter .hero { animation: rise .5s cubic-bezier(.2,1.2,.4,1) backwards; }
.enter .tile { animation: rise .5s cubic-bezier(.2,1.3,.4,1) backwards; }
.enter .tile:nth-child(1) { animation-delay: .12s; } .enter .tile:nth-child(2) { animation-delay: .2s; } .enter .tile:nth-child(3) { animation-delay: .28s; } .enter .tile:nth-child(4) { animation-delay: .36s; }
.enter .ring { animation: fade .5s .3s backwards; } .enter .ring .fg { animation: ringin 1.2s .35s cubic-bezier(.3,.9,.3,1) backwards; }
.enter .day { animation: cellin .45s cubic-bezier(.2,1.1,.4,1) backwards; animation-delay: calc(var(--i) * 9ms + 120ms); }
.enter.fwd .cal { animation: slidel .38s cubic-bezier(.2,1,.3,1) backwards; } .enter.back .cal { animation: slider .38s cubic-bezier(.2,1,.3,1) backwards; }
.enter .chip { animation: pop .42s cubic-bezier(.2,1.5,.4,1) backwards; animation-delay: calc(var(--i, 0) * 9ms + 320ms); }
.enter tr.click, .enter .qcard, .enter .mitem { animation: rise .42s cubic-bezier(.2,1.1,.4,1) backwards; animation-delay: calc(var(--i, 0) * 35ms + 60ms); }

/* calendar life */
.panel, .cal { box-shadow: 0 10px 32px rgba(19,44,63,.08); }
.day { transition: background .2s, box-shadow .2s; } .day:hover { background: #fffdf5; }
.day.today { box-shadow: inset 0 0 0 2px var(--daisy); } .day.today .num { animation: glow 2.4s ease-in-out infinite; }
.day.over { background: var(--petal); box-shadow: inset 0 0 0 2px var(--daisy); }
.chip.dragging { opacity: .35; transform: rotate(-2deg) scale(.96); }
.chip.pending { background: linear-gradient(100deg, #fff 40%, #fff3d0 50%, #fff 60%); background-size: 260% 100%; animation: shimmer 3.4s linear infinite; }
.enter .chip.pending { animation: pop .42s cubic-bezier(.2,1.5,.4,1) backwards, shimmer 3.4s linear infinite; animation-delay: calc(var(--i, 0) * 9ms + 320ms), 0s; }
.status.pending::before { animation: pingd 1.8s infinite; }
.chipimg, .mitem img, .mitem video { transition: transform .5s cubic-bezier(.2,.8,.3,1); }
.chip:hover .chipimg, .mitem:hover img, .mitem:hover video { transform: scale(1.07); }
.chip { overflow: hidden; }
.overlay { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.empty .big { animation: pop .5s cubic-bezier(.2,1.6,.4,1), floaty 3.6s .5s ease-in-out infinite; }
.lb-stage img, .lb-stage video { animation: fade .3s ease-out; }

@keyframes drop { from { opacity: 0; transform: translateY(-22px); } }
@keyframes rot { 0% { opacity: 0; transform: translateY(10px); } 4%, 21% { opacity: 1; transform: none; } 25%, 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes spin { to { --a: 360deg; } }
@keyframes shine { to { left: 130%; } }
@keyframes sheen { to { background-position: 100% 0; } }
@keyframes bob { 50% { transform: translateY(-2px) scale(1.08); } }
@keyframes drift1 { from { transform: rotate(28deg); } to { transform: translate(-46px, 34px) rotate(46deg); } }
@keyframes drift2 { from { transform: rotate(-18deg); } to { transform: translate(60px, -26px) rotate(-36deg); } }
@keyframes ping { from { box-shadow: 0 0 0 0 rgba(124,181,24,.7); } to { box-shadow: 0 0 0 9px rgba(124,181,24,0); } }
@keyframes pingd { from { box-shadow: 0 0 0 0 rgba(252,186,18,.75); } to { box-shadow: 0 0 0 7px rgba(252,186,18,0); } }
@keyframes ringin { from { stroke-dashoffset: 100; } }
@keyframes cellin { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes slidel { from { opacity: 0; transform: translateX(40px); } }
@keyframes slider { from { opacity: 0; transform: translateX(-40px); } }
@keyframes glow { 50% { box-shadow: 0 0 0 6px rgba(252,186,18,.28); } }
@keyframes shimmer { from { background-position: 130% 0; } to { background-position: -130% 0; } }
@keyframes floaty { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .rot span:first-child { opacity: 1; } }
