*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}
body{margin:0;font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#1d2433;background:#f5f7fb}
a{color:#1f4fd1}h1{font-size:1.45em;margin:.4em 0}h2{font-size:1.05em;margin:1.2em 0 .5em}h2 small{color:#7a8496;font-weight:400}
main{max-width:1200px;margin:0 auto;padding:12px 16px 96px}main.narrow{max-width:30em;padding-top:3em}
header{display:flex;gap:12px;align-items:center;padding:10px 16px;background:#fff;border-bottom:1px solid #e3e7ef;position:sticky;top:0;z-index:5}
.brand{color:#1f4fd1;font-weight:700}.office{font-weight:600}.switch{display:flex;gap:6px}.out{margin-left:auto;white-space:nowrap}
.tabs{display:flex;gap:4px;padding:6px 12px;background:#fff;border-bottom:1px solid #e3e7ef}
.tab{padding:8px 14px;border-radius:10px;text-decoration:none;color:#3b4456;display:flex;gap:6px;align-items:center}
.tab.on{background:#e8eefc;color:#1f4fd1;font-weight:600}
.muted{color:#6b7385}.err{color:#b42318;font-weight:600}.ok{color:#05603a;font-weight:600}
input,select,textarea,button{font:inherit}input,select,textarea{width:100%;padding:10px;border:1px solid #cdd4e0;border-radius:10px;background:#fff}
button{padding:10px 16px;border:0;border-radius:10px;background:#1f4fd1;color:#fff;font-weight:600;cursor:pointer}
button.link{background:none;color:#1f4fd1;padding:4px;font-weight:400}button.mini{padding:5px 10px;font-size:.85em;background:#e8eefc;color:#1f4fd1}
button.mini.done{background:#dcfae6;color:#05603a}button.mini.blocked,button.danger{background:#fee4e2;color:#b42318}
.stack{display:flex;flex-direction:column;gap:10px}.stack label,.row label{display:flex;flex-direction:column;gap:4px;font-size:.9em;color:#3b4456}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end}.row>*{flex:1 1 140px}
.cards{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.card{background:#fff;border:1px solid #e3e7ef;border-radius:12px;padding:10px 12px}
.card.done .title{text-decoration:line-through;color:#6b7385}.card.paused{opacity:.6}
.ref{color:#7a8496;font-size:.85em}.meta{display:flex;gap:10px;font-size:.85em;color:#6b7385;margin-top:4px;flex-wrap:wrap}
.who{font-weight:600;color:#3b4456}.due.late{color:#b42318;font-weight:600}.rep{color:#7a8496}
.moves,.inline{display:inline-flex;gap:6px;margin-top:8px;margin-right:6px}
.late h2{color:#b42318}.donesec{opacity:.75}
details.new{background:#fff;border:1px dashed #b9c3d6;border-radius:12px;padding:10px 12px;margin:12px 0}
details.new summary{cursor:pointer;font-weight:600;color:#1f4fd1}details.new form{margin-top:10px}
.filter a,.monthnav a{margin-right:6px;padding:4px 10px;border-radius:8px;text-decoration:none}.filter a.on{background:#1f4fd1;color:#fff}
.monthnav{display:flex;justify-content:space-between;align-items:center;max-width:24em}
.board{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:12px;align-items:start}
.col{background:#eef1f7;border-radius:14px;padding:4px 10px 10px}
.cal{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.dow{font-size:.8em;color:#6b7385;text-align:center}
.day{background:#fff;border:1px solid #e3e7ef;border-radius:8px;min-height:92px;padding:4px;overflow:hidden}
.day.other{opacity:.45}.day.today{border:2px solid #1f4fd1}.num{font-size:.85em;font-weight:600}.num .wd{display:none}
.day ul{list-style:none;padding:0;margin:2px 0 0}.chip{font-size:.75em;padding:2px 4px;border-radius:5px;margin-bottom:2px;background:#e8eefc;
white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chip.done{background:#dcfae6;text-decoration:line-through}
.chip.blocked{background:#fee4e2}.chip.repeat,.chip.reminder{background:#fef0c7}.more{font-size:.75em;color:#6b7385}
.plain{list-style:none;padding:0}.plain li{padding:6px 0;border-bottom:1px solid #e3e7ef}.time{color:#6b7385;min-width:5em;display:inline-block}
.org{list-style:none;padding-left:0;margin:4px 0}.org .org{padding-left:18px;border-left:2px solid #e3e7ef;margin-left:6px}
.org li{padding:4px 0}.check{flex-direction:row!important;align-items:center;gap:4px!important}.check input{width:auto}
.sync{margin-top:24px;background:#fff;border:1px solid #e3e7ef;border-radius:12px;padding:4px 14px 14px}.links a{margin-right:14px}
@media (max-width:700px){
 header{padding:8px 12px}.switch select{max-width:46vw}
 .tabs{position:fixed;bottom:0;left:0;right:0;z-index:9;justify-content:space-around;border-top:1px solid #e3e7ef;border-bottom:0;
  padding:4px 4px calc(4px + env(safe-area-inset-bottom))}
 .tab{flex-direction:column;gap:0;font-size:.75em;padding:6px 8px}.tab span{font-size:1.4em}
 .board{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;padding-bottom:8px}
 .col{flex:0 0 86%;scroll-snap-align:start}
 .cal{display:block}.dow,.day.empty,.day.other{display:none}.day{min-height:0;margin-bottom:6px;padding:8px}
 .num .wd{display:inline}.chip{font-size:.9em;white-space:normal;padding:4px 6px}
 button{min-height:44px}button.mini{min-height:36px}
}
