@font-face{font-family:Fraunces;src:url(assets/fraunces.woff2);font-weight:100 900}
@font-face{font-family:DM;src:url(assets/dmsans.woff2);font-weight:100 1000}
:root{--forest:#173c31;--deep:#0f2a22;--sage:#b2c9ac;--blush:#f7d7e6;--cream:#fbf8f1;--beige:#dccbaa;--butter:#f0e2a0;--ink:#1e2a22;--mute:#657260;--line:#dde2d3}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0}body{background:var(--cream);color:var(--ink);font:15px/1.45 DM,Arial,sans-serif;padding-bottom:calc(86px + env(safe-area-inset-bottom))}
h1,h2,h3{font-family:Fraunces,Georgia,serif;font-weight:900;letter-spacing:-.02em;margin:0;color:var(--forest)}
button{font:inherit;cursor:pointer;border:0;background:none;color:inherit}
.top{background:var(--forest);padding:calc(12px + env(safe-area-inset-top)) 18px 12px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:20}
.logos{display:flex;align-items:center;gap:18px}.logos img{height:34px;width:auto;display:block}
.ghost{color:#fff;border:1px solid #ffffff66;border-radius:20px;padding:7px 14px;font-size:13px}
.eyebrow{font-size:11px;letter-spacing:.16em;text-transform:uppercase;margin:0 0 8px;color:var(--mute);font-weight:700}
#login{max-width:460px;margin:34px auto;padding:0 18px}.panel{background:#fff;border-radius:22px;padding:28px 24px;box-shadow:0 8px 30px #173c3118}
.panel h1{font-size:38px;line-height:1.05;margin-bottom:12px}
label{display:block;font-weight:700;font-size:13px;margin:16px 0 6px}
input,textarea,select{width:100%;font:16px DM,Arial;border:1.5px solid #c8d2bd;border-radius:12px;padding:12px;background:#fff;color:var(--ink)}
textarea{min-height:92px;resize:vertical}
.primary{background:var(--forest);color:#fff;border-radius:26px;padding:14px 22px;font-weight:700;min-height:48px;width:100%;margin-top:16px}
.primary:disabled{opacity:.5}.sec{background:#e8eedf;color:var(--forest);border-radius:22px;padding:10px 16px;font-weight:700;min-height:44px}
.danger{color:#9b3b3b;font-weight:700;padding:12px}.msg{font-size:13px;color:var(--forest);margin:12px 0 0;min-height:18px}
main{max-width:980px;margin:0 auto;padding:18px 14px}
.head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:14px}.head h2{font-size:30px;line-height:1.05}
.head small{display:block;color:var(--mute);font-size:13px;margin-top:4px}
.nav{display:flex;gap:6px}.nav button{background:#fff;border:1px solid var(--line);border-radius:20px;padding:8px 13px;font-weight:700;color:var(--forest);min-height:40px}
.days{display:grid;gap:12px}@media(min-width:760px){.days{grid-template-columns:repeat(5,1fr);align-items:start}}
.day{background:#fff;border-radius:16px;border:1px solid var(--line);overflow:hidden}
.dayh{padding:11px 13px;display:flex;justify-content:space-between;align-items:center;gap:8px}
.dayh b{font:900 17px Fraunces,Georgia,serif;display:block;line-height:1.1}.dayh span{font-size:11px;letter-spacing:.1em;text-transform:uppercase;font-weight:700;opacity:.85}
.dayh .add{width:34px;height:34px;border-radius:50%;background:#ffffff88;font-size:22px;line-height:1;font-weight:700}
.today .dayh::after{content:"TODAY";font-size:10px;letter-spacing:.12em;font-weight:800;background:var(--forest);color:#fff;border-radius:10px;padding:3px 7px;margin-left:auto;margin-right:6px}
.list{padding:8px;display:flex;flex-direction:column;gap:8px;min-height:54px}
.list:empty::before,.list.empty::before{content:"Nothing planned";color:#9aa593;font-size:13px;padding:10px 4px}
.card{display:flex;gap:10px;align-items:center;background:var(--cream);border-radius:12px;padding:8px;border:1px solid var(--line);cursor:grab;touch-action:manipulation}
.card .th{width:54px;height:68px;border-radius:8px;flex:none;background-size:cover;background-position:center;display:flex;align-items:center;justify-content:center;font:900 10px Fraunces,serif;text-align:center;padding:3px;overflow:hidden}
.card .tx{min-width:0;flex:1}.card .tt{font-weight:700;font-size:14px;line-height:1.25;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.chip{display:inline-block;font-size:10px;letter-spacing:.08em;text-transform:uppercase;font-weight:800;border-radius:10px;padding:3px 8px;margin-top:4px}
.s-planned{background:#ece7d8;color:#6a5f3f}.s-scheduled{background:var(--sage);color:var(--forest)}.s-posted{background:var(--forest);color:#fff}
.sortable-ghost{opacity:.35}.sortable-chosen{box-shadow:0 6px 18px #0003}
.tray{margin-top:20px}.tray h3{font-size:21px;margin-bottom:4px}.tray p{margin:0 0 10px;color:var(--mute);font-size:13px}
.tray .list{background:#fff;border:1.5px dashed #bcc8b4;border-radius:14px;flex-direction:row;flex-wrap:wrap}.tray .card{width:calc(50% - 4px)}@media(min-width:760px){.tray .card{width:calc(25% - 6px)}}
.pgrid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.dow{text-align:center;font-size:11px;letter-spacing:.1em;font-weight:800;color:var(--mute);padding:4px 0}
.cell{background:#fff;border:1px solid var(--line);border-radius:10px;min-height:76px;padding:4px;text-align:left;display:flex;flex-direction:column;gap:3px;overflow:hidden}
.cell.out{opacity:.4}.cell.wk{background:#f3f0e6}.cell .n{font-size:12px;font-weight:700}.cell.today .n{background:var(--forest);color:#fff;border-radius:10px;padding:0 6px;align-self:flex-start}
.mini{height:22px;border-radius:5px;background-size:cover;background-position:center;font-size:9px;font-weight:800;padding:2px 4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.legend{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}.legend span{font-size:12px;font-weight:700;border-radius:14px;padding:4px 10px}
.prof{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;margin-bottom:12px;display:flex;gap:14px;align-items:center}
.av{width:64px;height:64px;border-radius:50%;background:var(--forest);display:flex;align-items:center;justify-content:center;flex:none}.av img{width:42px}
.prof h3{font-size:20px}.prof small{color:var(--mute)}.stats{display:flex;gap:16px;margin-top:6px;font-size:13px}.stats b{font-size:16px;display:block}
.bar{display:flex;gap:8px;margin:0 0 12px;flex-wrap:wrap;align-items:center}
.seg{display:flex;background:#e8eedf;border-radius:22px;padding:3px}.seg button{padding:7px 13px;border-radius:19px;font-weight:700;font-size:13px;color:var(--forest)}.seg .on{background:var(--forest);color:#fff}
#grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;background:#fff;padding:3px;border-radius:6px;max-width:520px;margin:auto;border:1px solid var(--line)}
.tile{aspect-ratio:3/4;background-size:cover;background-position:center;position:relative;display:flex;align-items:center;justify-content:center;text-align:center;padding:8px;font:900 15px/1.15 Fraunces,Georgia,serif;overflow:hidden;cursor:grab;touch-action:manipulation}
.tile .b{position:absolute;left:5px;top:5px;font:800 9px DM;letter-spacing:.08em;text-transform:uppercase;border-radius:8px;padding:2px 6px}
.tile .d{position:absolute;right:5px;bottom:5px;font:800 10px DM;background:#fffd;color:var(--forest);border-radius:8px;padding:2px 6px}
.hint{font-size:12px;color:var(--mute);text-align:center;margin:10px 0}
#tabs{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid var(--line);display:flex;justify-content:space-around;align-items:center;padding:6px 10px calc(8px + env(safe-area-inset-bottom));z-index:30}
#tabs button[data-tab]{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;font-weight:700;color:#8a9684;min-width:70px;min-height:44px}
#tabs button.on{color:var(--forest)}#tabs svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8}
#fab{width:58px;height:58px;border-radius:50%;background:var(--forest);color:#fff;font-size:32px;margin-top:-26px;box-shadow:0 6px 16px #173c3155}
#modal{position:fixed;inset:0;background:#0f2a2299;z-index:50;display:flex;align-items:flex-end;justify-content:center}@media(min-width:760px){#modal{align-items:center}}
.sheet{background:var(--cream);width:100%;max-width:520px;max-height:94vh;overflow:auto;border-radius:22px 22px 0 0;padding:20px 18px calc(24px + env(safe-area-inset-bottom))}@media(min-width:760px){.sheet{border-radius:22px}}
.sheet h2{font-size:26px;margin-bottom:4px}.sheet .x{float:right;font-size:26px;line-height:1;padding:4px 8px;color:var(--mute)}
.pick{display:flex;gap:12px;align-items:center;margin-top:12px}
.preview{width:96px;height:128px;border-radius:12px;background:#e8eedf center/cover;flex:none;display:flex;align-items:center;justify-content:center;color:var(--mute);font-size:12px;text-align:center;padding:6px}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pills{display:flex;flex-wrap:wrap;gap:6px}.pills button{border:1.5px solid #c8d2bd;border-radius:18px;padding:7px 12px;font-size:13px;font-weight:700;background:#fff}.pills .on{border-color:var(--forest);box-shadow:inset 0 0 0 1.5px var(--forest)}
.prog{height:8px;background:#e1e8d8;border-radius:5px;overflow:hidden;margin:14px 0}.prog i{display:block;height:100%;background:var(--forest);width:0;transition:width .2s}
.pbadge{display:flex;gap:8px;align-items:center;font-size:13px;margin:6px 0}.pbadge i{width:9px;height:9px;border-radius:50%;background:var(--sage);display:inline-block}
#toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(100px + env(safe-area-inset-bottom));background:var(--forest);color:#fff;padding:10px 18px;border-radius:22px;font-size:14px;z-index:60;opacity:0;pointer-events:none;transition:opacity .2s}#toast.on{opacity:1}
[hidden]{display:none!important}
.dayh>div{flex:1}.dayh .add{order:3;flex:none}.today .dayh::after{order:2;margin-left:0}
.nav button{white-space:nowrap}
.today .dayh::after{display:none}.today{box-shadow:0 0 0 2.5px var(--forest)}
main{max-width:1100px}
@media(min-width:760px){#tabs{left:50%;right:auto;transform:translateX(-50%);width:460px;bottom:14px;border:1px solid var(--line);border-radius:30px;box-shadow:0 8px 24px #173c3122}body{padding-bottom:110px}}
