:root{
  --bg:#f6f5fb; --surface:#ffffff; --surface2:#efedf7; --text:#1d1b2e; --muted:#6c6987; --line:#e6e3f1;
  --accent:#6a5ae0; --accent-soft:#ebe8fd; --accent-ink:#ffffff;
  --red:#e0525e; --red-soft:#fde9eb; --amber:#e39a2d; --amber-soft:#fdf1de; --blue:#4c8ef0; --blue-soft:#e4eefd; --green:#2fb57d; --green-soft:#e0f5ec;
  --shadow:0 1px 2px rgba(30,24,70,.04),0 6px 20px rgba(30,24,70,.06);
  --shadow-lg:0 20px 50px rgba(30,24,70,.18);
  --radius:18px; --tabbar:68px;
  --safe-b:env(safe-area-inset-bottom,0px); --safe-t:env(safe-area-inset-top,0px);
  color-scheme:light;
}
:root[data-theme="dark"]{
  --bg:#14141c; --surface:#1e1e29; --surface2:#262634; --text:#f1f0f7; --muted:#9d9bb4; --line:#2e2e3e;
  --accent:#9187ff; --accent-soft:#2b2850; --accent-ink:#14141c;
  --red:#ff7680; --red-soft:#3b2026; --amber:#f2b35a; --amber-soft:#3a2e1b; --blue:#78a9ff; --blue-soft:#1d2a42; --green:#4fd39b; --green-soft:#183429;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 6px 20px rgba(0,0,0,.25);
  --shadow-lg:0 20px 50px rgba(0,0,0,.5);
  color-scheme:dark;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;background:var(--bg);color:var(--text)}
body{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:17px;line-height:1.4;-webkit-font-smoothing:antialiased;overscroll-behavior-y:none;transition:background .3s,color .3s}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none;padding:0}
svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-radius:10px}
[hidden]{display:none!important}
.app{max-width:640px;margin:0 auto;min-height:100vh;min-height:100dvh;padding-bottom:calc(var(--tabbar) + var(--safe-b) + 90px)}

/* Top */
.topbar{position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:saturate(1.6) blur(18px);-webkit-backdrop-filter:saturate(1.6) blur(18px);padding:calc(var(--safe-t) + 14px) 20px 8px}
.topbar-row{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.eyebrow{margin:0;color:var(--muted);font-size:14px;font-weight:600;letter-spacing:.02em;text-transform:uppercase}
h1{margin:2px 0 0;font-size:34px;line-height:1.1;font-weight:800;letter-spacing:-.02em}
.top-actions{display:flex;gap:8px}
.icon-btn{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:var(--surface);box-shadow:var(--shadow);color:var(--text);transition:transform .15s}
.icon-btn:active{transform:scale(.92)}
.icon-btn svg{width:21px;height:21px}
.searchbar{margin-top:12px;display:flex;align-items:center;gap:10px;background:var(--surface);border-radius:14px;padding:0 6px 0 14px;box-shadow:var(--shadow);animation:drop .25s ease}
.searchbar svg{width:18px;height:18px;color:var(--muted);flex:none}
.searchbar input{flex:1;min-width:0;border:0;background:none;height:46px;outline:none;font-size:17px}
.text-btn{color:var(--accent);font-weight:600;padding:10px 10px;min-height:44px;border-radius:12px}
.chips{display:flex;gap:8px;overflow-x:auto;padding:14px 0 4px;margin:0 -20px;padding-left:20px;padding-right:20px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;display:flex;align-items:center;gap:7px;height:38px;padding:0 14px;border-radius:999px;background:var(--surface);color:var(--text);font-size:15px;font-weight:600;box-shadow:var(--shadow);transition:background .2s,color .2s,transform .15s}
.chip:active{transform:scale(.95)}
.chip .dot{width:9px;height:9px;border-radius:50%;flex:none}
.chip .n{color:var(--muted);font-weight:600;font-size:13px}
.chip.active{background:var(--text);color:var(--bg)}
.chip.active .n{color:inherit;opacity:.7}
.chip.add{color:var(--accent);box-shadow:none;background:var(--accent-soft)}
.progress-wrap{display:flex;align-items:center;gap:12px;padding:10px 0 2px}
.progress{flex:1;height:8px;border-radius:99px;background:var(--surface2);overflow:hidden}
.progress span{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,var(--accent),#b18cff);transition:width .6s cubic-bezier(.2,.8,.2,1)}
.progress-label{font-size:13px;color:var(--muted);font-weight:600;white-space:nowrap}

/* Main */
.main{padding:6px 16px 0;outline:none}
.toolbar{display:flex;justify-content:space-between;align-items:center;padding:6px 4px 10px}
.count{color:var(--muted);font-size:14px;font-weight:600}
.sort-btn{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:14px;font-weight:600;min-height:40px;padding:0 6px;border-radius:10px}
.sort-btn svg{width:17px;height:17px}
.section-title{display:flex;align-items:center;gap:8px;margin:18px 6px 8px;font-size:15px;font-weight:700;color:var(--muted)}
.section-title.overdue{color:var(--red)}
.section-title .badge{font-size:12px;background:var(--surface2);color:var(--muted);border-radius:99px;padding:2px 8px}
.section-title.overdue .badge{background:var(--red-soft);color:var(--red)}
.section-title:first-child{margin-top:4px}
.tasks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}

.task{position:relative;display:flex;align-items:flex-start;gap:12px;background:var(--surface);border-radius:var(--radius);padding:14px 14px 14px 12px;box-shadow:var(--shadow);border:1px solid transparent;transition:transform .25s cubic-bezier(.2,.8,.2,1),opacity .3s,box-shadow .2s,background .3s;animation:pop .35s cubic-bezier(.2,.8,.2,1) backwards;touch-action:pan-y}
.task.overdue{border-color:color-mix(in srgb,var(--red) 35%,transparent);background:linear-gradient(0deg,color-mix(in srgb,var(--red-soft) 55%,var(--surface)),color-mix(in srgb,var(--red-soft) 55%,var(--surface)))}
.task.overdue::before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:4px;border-radius:0 4px 4px 0;background:var(--red)}
.task:active{transform:scale(.985)}
.task.leaving{opacity:0;transform:translateX(40px) scale(.96)}
.task.dragging{z-index:5;box-shadow:var(--shadow-lg);transform:scale(1.03);transition:box-shadow .2s;opacity:.97}
.task-body{flex:1;min-width:0;padding-top:1px}
.task-title{font-size:17px;font-weight:600;line-height:1.3;word-wrap:break-word;overflow-wrap:anywhere;transition:color .3s}
.task.done .task-title{color:var(--muted);text-decoration:line-through;text-decoration-color:var(--muted)}
.task-notes{margin-top:3px;color:var(--muted);font-size:14px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.tag{display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:600;padding:3px 9px;border-radius:99px;background:var(--surface2);color:var(--muted)}
.tag svg{width:13px;height:13px;stroke-width:2.4}
.tag.due-today{background:var(--blue-soft);color:var(--blue)}
.tag.overdue{background:var(--red-soft);color:var(--red)}
.tag.p3{background:var(--red-soft);color:var(--red)}
.tag.p2{background:var(--amber-soft);color:var(--amber)}
.tag.p1{background:var(--blue-soft);color:var(--blue)}
.tag .dot{width:8px;height:8px;border-radius:50%}
.handle{align-self:center;width:36px;height:44px;margin:-8px -6px -8px 0;display:grid;place-items:center;color:var(--muted);touch-action:none;cursor:grab}
.handle svg{width:20px;height:20px}

/* Check */
.check{flex:none;position:relative;width:30px;height:30px;margin:-2px 0;border-radius:50%;border:2.5px solid color-mix(in srgb,var(--muted) 55%,transparent);display:grid;place-items:center;transition:border-color .2s,background .25s,transform .2s}
.check::after{content:"";position:absolute;inset:-9px}
.check.p3{border-color:var(--red)} .check.p2{border-color:var(--amber)} .check.p1{border-color:var(--blue)}
.check svg{width:18px;height:18px;stroke:#fff;stroke-width:3;stroke-dasharray:24;stroke-dashoffset:24;transition:stroke-dashoffset .35s .05s ease}
.check:active{transform:scale(.85)}
.check.on{background:var(--green);border-color:var(--green);animation:bounce .45s cubic-bezier(.3,1.6,.5,1)}
.check.on svg{stroke-dashoffset:0}
.check.big{width:34px;height:34px;margin-top:6px}
.check .ring{position:absolute;inset:-3px;border-radius:50%;border:3px solid var(--green);opacity:0;pointer-events:none}
.check.on .ring{animation:ring .6s ease-out}

.subprog{display:inline-flex;align-items:center;gap:5px}

/* Empty */
.empty{text-align:center;padding:46px 24px 20px;animation:pop .45s cubic-bezier(.2,.8,.2,1)}
.empty .art{width:150px;height:150px;margin:0 auto 14px}
.empty .art svg{width:100%;height:100%;stroke:none}
.empty h3{margin:0 0 6px;font-size:21px}
.empty p{margin:0 auto 18px;color:var(--muted);max-width:290px}
.empty .pill-btn{height:48px;padding:0 22px}

/* FAB + tabbar */
.fab{position:fixed;z-index:30;right:max(20px,calc(50vw - 300px));bottom:calc(var(--tabbar) + var(--safe-b) + 18px);width:62px;height:62px;border-radius:22px;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center;box-shadow:0 10px 28px color-mix(in srgb,var(--accent) 45%,transparent);transition:transform .2s cubic-bezier(.3,1.5,.5,1)}
.fab svg{width:28px;height:28px;stroke-width:2.6}
.fab:active{transform:scale(.9) rotate(90deg)}
.tabbar{position:fixed;z-index:25;left:0;right:0;bottom:0;display:flex;justify-content:center;gap:4px;padding:6px 10px calc(6px + var(--safe-b));background:color-mix(in srgb,var(--surface) 90%,transparent);backdrop-filter:saturate(1.6) blur(18px);-webkit-backdrop-filter:saturate(1.6) blur(18px);border-top:1px solid var(--line)}
.tab{flex:1;max-width:150px;height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:14px;color:var(--muted);font-size:12px;font-weight:600;transition:color .2s,background .2s}
.tab svg{width:24px;height:24px;transition:transform .25s cubic-bezier(.3,1.5,.5,1)}
.tab.active{color:var(--accent)}
.tab.active svg{transform:translateY(-1px) scale(1.08)}

/* Sheets */
.scrim{position:fixed;inset:0;z-index:40;background:rgba(15,12,35,.38);animation:fade .25s ease;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.sheet{position:fixed;z-index:50;left:0;right:0;bottom:0;margin:0 auto;max-width:640px;max-height:92vh;max-height:92dvh;display:flex;flex-direction:column;background:var(--bg);border-radius:26px 26px 0 0;box-shadow:var(--shadow-lg);animation:up .38s cubic-bezier(.2,.9,.25,1);padding-bottom:var(--safe-b)}
.sheet.closing{animation:down .25s ease forwards}
.sheet form{display:flex;flex-direction:column;min-height:0;flex:1}
.grabber{width:40px;height:5px;border-radius:9px;background:var(--line);margin:8px auto 0;flex:none}
.sheet-head{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:6px 12px 6px;flex:none}
.sheet-head > :first-child{justify-self:start}
.sheet-head > :last-child{justify-self:end}
.sheet-head h2{margin:0;font-size:17px;font-weight:700}
.sheet-body{overflow-y:auto;padding:4px 20px 28px;-webkit-overflow-scrolling:touch}
.pill-btn{background:var(--accent);color:var(--accent-ink);font-weight:700;height:40px;padding:0 18px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;transition:transform .15s,opacity .2s}
.pill-btn:active{transform:scale(.95)}
.pill-btn:disabled{opacity:.4}
.title-row{display:flex;gap:12px;align-items:flex-start;background:var(--surface);border-radius:var(--radius);padding:8px 14px;box-shadow:var(--shadow)}
#fTitle{flex:1;border:0;background:none;resize:none;outline:none;font-size:21px;font-weight:700;line-height:1.3;padding:8px 0;min-height:46px;overflow:hidden}
#fNotes{display:block;width:100%;margin:10px 0 0;border:0;border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);padding:13px 14px;resize:none;outline:none;font-size:16px;min-height:52px;overflow:hidden}
#fTitle::placeholder,#fNotes::placeholder,.add-sub input::placeholder,.new-list input::placeholder{color:color-mix(in srgb,var(--muted) 80%,transparent)}
.field-label{margin:20px 4px 8px;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.quick button{padding:0 4px;justify-content:center;white-space:nowrap;font-size:clamp(13px,3.6vw,15px);letter-spacing:-.01em}
.quick button,.list-pick button{height:40px;padding:0 15px;border-radius:999px;background:var(--surface);box-shadow:var(--shadow);font-size:15px;font-weight:600;display:inline-flex;align-items:center;gap:7px;transition:background .2s,color .2s,transform .15s}
.quick button:active,.list-pick button:active{transform:scale(.95)}
.quick button.on,.list-pick button.on{background:var(--accent);color:var(--accent-ink)}
.list-pick{display:flex;gap:8px;flex-wrap:wrap}
.list-pick .dot{width:9px;height:9px;border-radius:50%}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.input-box{display:flex;flex-direction:column;gap:2px;background:var(--surface);border-radius:14px;padding:8px 12px;box-shadow:var(--shadow);min-width:0}
.input-box span{font-size:12px;color:var(--muted);font-weight:600}
.input-box input{border:0;background:none;outline:none;font-size:16px;font-weight:600;min-height:30px;width:100%;min-width:0;-webkit-appearance:none;appearance:none}
.seg{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));background:var(--surface2);border-radius:14px;padding:4px;gap:4px}
.seg button{height:42px;border-radius:11px;font-size:15px;font-weight:600;color:var(--muted);transition:background .2s,color .2s,box-shadow .2s}
.seg button.on{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}
.seg button.p1.on{color:var(--blue)} .seg button.p2.on{color:var(--amber)} .seg button.p3.on{color:var(--red)}
.subtasks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px;background:var(--surface);border-radius:var(--radius) var(--radius) 0 0;box-shadow:var(--shadow)}
.subtasks:empty{display:none}
.subtasks:empty + .add-sub{border-radius:var(--radius)}
.subtask{display:flex;align-items:center;gap:12px;padding:8px 8px 8px 14px;border-bottom:1px solid var(--line);animation:pop .25s ease}
.subtask .check{width:26px;height:26px}
.subtask .check svg{width:15px;height:15px}
.subtask input{flex:1;min-width:0;border:0;background:none;outline:none;font-size:16px;min-height:36px}
.subtask.done input{text-decoration:line-through;color:var(--muted)}
.subtask .x{width:40px;height:40px;display:grid;place-items:center;color:var(--muted);border-radius:10px}
.subtask .x svg{width:18px;height:18px}
.add-sub{display:flex;align-items:center;gap:12px;background:var(--surface);border-radius:0 0 var(--radius) var(--radius);box-shadow:var(--shadow);padding:4px 14px}
.add-sub .plus{width:26px;height:26px;display:grid;place-items:center;color:var(--accent);font-size:24px;font-weight:500}
.add-sub input{flex:1;min-width:0;border:0;background:none;outline:none;font-size:16px;min-height:46px}
.danger-btn{display:block;width:100%;margin-top:26px;height:52px;border-radius:16px;background:var(--red-soft);color:var(--red);font-weight:700}

.card-group{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.row-btn{display:flex;flex-direction:column;align-items:flex-start;width:100%;text-align:left;padding:13px 16px;min-height:56px;border-bottom:1px solid var(--line);cursor:pointer}
.row-btn:last-child{border-bottom:0}
.row-btn span{font-weight:600}
.row-btn small{color:var(--muted);font-size:13px}
.row-btn.on span::after{content:"  ✓";color:var(--accent)}
.manage-lists{list-style:none;margin:0 0 10px;padding:0;background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.manage-lists li{display:flex;align-items:center;gap:10px;padding:6px 6px 6px 14px;border-bottom:1px solid var(--line)}
.manage-lists li:last-child{border-bottom:0}
.manage-lists .swatch{width:26px;height:26px;border-radius:50%;flex:none;border:3px solid var(--surface);box-shadow:0 0 0 1px var(--line)}
.manage-lists input{flex:1;min-width:0;border:0;background:none;outline:none;font-size:16px;font-weight:600;min-height:44px}
.manage-lists .x{width:44px;height:44px;display:grid;place-items:center;color:var(--muted)}
.manage-lists .x svg{width:19px;height:19px}
.new-list{display:flex;gap:8px}
.new-list input{flex:1;min-width:0;height:48px;border:0;border-radius:14px;background:var(--surface);box-shadow:var(--shadow);padding:0 14px;outline:none;font-size:16px}
.new-list .pill-btn{height:48px}
.install-card{margin-top:18px;padding:14px 16px}
.install-card p{margin:0 0 6px;font-size:15px}
.install-card p:not(:first-child){color:var(--muted)}
.fine{color:var(--muted);font-size:13px;text-align:center;margin:20px 10px 0}

/* Toast + confetti */
.toast{position:fixed;z-index:70;left:50%;bottom:calc(var(--tabbar) + var(--safe-b) + 96px);transform:translateX(-50%);display:flex;align-items:center;gap:6px;background:var(--text);color:var(--bg);padding:4px 6px 4px 18px;border-radius:16px;box-shadow:var(--shadow-lg);font-size:15px;font-weight:600;white-space:nowrap;animation:toast .3s cubic-bezier(.2,.9,.3,1.2)}
.toast .text-btn{color:color-mix(in srgb,var(--accent) 70%,var(--bg))}
.confetti{position:fixed;inset:0;pointer-events:none;z-index:70;overflow:hidden}
.confetti i{position:absolute;width:8px;height:8px;border-radius:2px;animation:burst .9s cubic-bezier(.15,.7,.3,1) forwards}

@keyframes pop{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
@keyframes fade{from{opacity:0}}
@keyframes up{from{transform:translateY(100%)}}
@keyframes down{to{transform:translateY(100%)}}
@keyframes drop{from{opacity:0;transform:translateY(-6px)}}
@keyframes bounce{0%{transform:scale(.7)}60%{transform:scale(1.15)}100%{transform:scale(1)}}
@keyframes ring{from{opacity:.7;transform:scale(1)}to{opacity:0;transform:scale(1.9)}}
@keyframes toast{from{opacity:0;transform:translate(-50%,16px)}}
@keyframes burst{0%{opacity:1;transform:translate(0,0) rotate(0)}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--r))}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media (min-width:700px){.sheet{bottom:auto;top:50%;transform:translateY(-50%);border-radius:26px;animation:fade .25s ease}.sheet.closing{animation:fade .2s reverse forwards}}

/* ---------- people ---------- */
.avatar{flex:none;display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;color:#fff;font-size:11px;font-weight:700;letter-spacing:.02em;line-height:1;box-shadow:0 0 0 2px var(--surface);user-select:none}
.avatar.lg{width:34px;height:34px;font-size:14px}
.avatar.all{background:var(--surface2);color:var(--muted);box-shadow:none}
.avatar.all svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.avatar.none{background:var(--surface2);color:var(--muted);box-shadow:none;font-size:13px}
.people-chips{padding-top:6px}
.people-chips .chip{height:36px;padding:0 13px 0 6px;font-size:14px;gap:7px}
.people-chips .chip.add{padding:0 13px}
.chip.active .avatar{box-shadow:0 0 0 2px var(--text)}
.chip.active .avatar.all,.chip.active .avatar.none{background:color-mix(in srgb,var(--bg) 22%,transparent);color:var(--bg)}
.assignee{flex:none;align-self:flex-start;display:grid;place-items:center;width:32px;height:32px;margin:-3px -4px -3px 0;cursor:pointer}
.assignee .avatar{width:28px;height:28px;font-size:12px}
.task.done .assignee{opacity:.55}
.person-pick button{padding:0 15px 0 7px}
.person-pick button .avatar{width:26px;height:26px}
.person-pick button.on .avatar{box-shadow:0 0 0 2px var(--accent-ink)}
.person-pick button.on .avatar.none{background:color-mix(in srgb,var(--accent-ink) 25%,transparent);color:var(--accent-ink)}
.person-pick button.add{padding:0 15px;color:var(--accent);background:var(--accent-soft);box-shadow:none}
.avatar-btn{flex:none;display:grid;place-items:center;width:44px;height:44px;margin-left:-6px;border-radius:50%}
.avatar-btn:active{transform:scale(.92)}
.manage-people li{padding-left:10px}
.fine.left{text-align:left;margin:10px 6px 0}
.sheet form.new-list{flex-direction:row;flex:none;align-items:center}

/* ---------- accounts: sign-in screens ---------- */
html.locked body{overflow:hidden}
html.locked .app,html.locked .sheet,html.locked .scrim,html.locked .toast:not(.keep),html.locked .fab{visibility:hidden}
.lock{position:fixed;inset:0;z-index:100;overflow-y:auto;background:var(--bg);display:flex;justify-content:center;padding:calc(var(--safe-t) + 48px) 22px calc(var(--safe-b) + 32px)}
.lock::before{content:"";position:fixed;inset:-20% -20% auto;height:60%;background:radial-gradient(60% 60% at 30% 30%,color-mix(in srgb,var(--accent) 22%,transparent),transparent 70%),radial-gradient(50% 50% at 80% 20%,color-mix(in srgb,#e8669a 16%,transparent),transparent 70%);pointer-events:none}
.lock-inner{position:relative;width:100%;max-width:400px;display:flex;flex-direction:column;align-items:stretch;animation:fadeUp .45s cubic-bezier(.2,.9,.25,1)}
@keyframes fadeUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.lock-brand{display:flex;flex-direction:column;align-items:center;gap:10px;margin-bottom:22px}
.lock-brand img{width:72px;height:72px;border-radius:20px;box-shadow:0 12px 30px color-mix(in srgb,var(--accent) 35%,transparent)}
.lock-app{margin:0;font-weight:700;color:var(--muted);font-size:15px;letter-spacing:.02em}
.lock-pane{display:flex;flex-direction:column}
.lock-title{margin:0 0 6px;text-align:center;font-size:28px;line-height:1.15;font-weight:800;letter-spacing:-.02em}
.lock-sub{margin:0 0 22px;text-align:center;color:var(--muted);font-size:16px}
.lock-fields,.sec-form,#personLoginForm .card-group{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.lf{display:flex;align-items:center;gap:8px;min-height:60px;padding:0 8px 0 16px;border-bottom:1px solid var(--line);position:relative}
.lf:last-child{border-bottom:0}
.lf>span{flex:none;width:96px;font-size:14px;font-weight:600;color:var(--muted);line-height:1.2}
.lf input{flex:1;min-width:0;height:58px;border:0;background:none;outline:none;font-size:17px}
.lf input::placeholder{color:color-mix(in srgb,var(--muted) 70%,transparent);font-size:15px}
.lf:focus-within{background:color-mix(in srgb,var(--accent) 5%,transparent)}
.eye{flex:none;width:44px;height:44px;display:grid;place-items:center;color:var(--muted);border-radius:12px}
.eye svg{width:21px;height:21px}
.eye .eye-shut,.eye[aria-pressed="true"] .eye-open{display:none}
.eye[aria-pressed="true"] .eye-shut{display:block}
.lock-err{min-height:22px;margin:10px 4px 6px;color:var(--red);font-size:15px;font-weight:600;text-align:center}
.lock-err:empty{min-height:8px;margin:6px 0}
.shake{animation:shake .35s}
@keyframes shake{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
.lock-btn{height:54px;border-radius:16px;background:var(--accent);color:var(--accent-ink);font-weight:700;font-size:17px;box-shadow:0 10px 24px color-mix(in srgb,var(--accent) 35%,transparent);transition:transform .15s,opacity .2s}
.lock-btn:active{transform:scale(.97)}
.lock-btn:disabled{opacity:.6}
.lock-link{align-self:center;margin-top:10px}
.lock-note{margin:14px 6px 0;text-align:center;color:var(--muted);font-size:13px}
.lock-card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:6px 18px;margin:8px 0 18px}
.lock-card p{margin:12px 0;font-size:15px;line-height:1.45}
.lock-loading{align-items:center;padding:40px 0}
.spinner{width:30px;height:30px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--accent);animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* account bits inside the app */
.user-btn{width:44px;height:44px;display:grid;place-items:center;border-radius:50%}
.user-btn .avatar{width:34px;height:34px;font-size:13px;box-shadow:0 0 0 3px var(--bg),0 0 0 4px var(--line)}
html[data-role="member"] .admin-only,html[data-role="guest"] .admin-only{display:none!important}
.acct-row{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line)}
.acct-row strong{display:block;font-size:16px}
.acct-row small{color:var(--muted);font-size:13px}
.sec-form{margin-top:10px}
.sec-form .lf>span{width:110px}
.sec-form .lock-err{margin:8px 12px 0}
.sec-actions{display:flex;justify-content:flex-end;gap:8px;padding:6px 10px 10px}
.login-chip{flex:none;display:inline-flex;align-items:center;gap:5px;height:32px;padding:0 11px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:13px;font-weight:700;max-width:120px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.login-chip svg{width:14px;height:14px;flex:none}
.login-chip.has{background:var(--green-soft);color:var(--green)}
.login-chip.own{background:var(--surface2);color:var(--muted)}
.login-who{display:flex;align-items:center;gap:12px;margin:6px 4px 16px}
.login-who strong{display:block;font-size:18px}
.login-who small{color:var(--muted);font-size:14px}
#personLoginForm .lf>span{width:86px}
.mini-btn{flex:none;height:34px;padding:0 12px;border-radius:999px;background:var(--surface2);color:var(--accent);font-size:14px;font-weight:700}
#personLoginForm .lock-btn,.login-result .lock-btn{width:100%}
.lr-title{margin:2px 4px 10px;font-weight:700;font-size:17px}
.lr-card{margin-bottom:14px}
.lr-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--line)}
.lr-row:last-child{border-bottom:0}
.lr-row small{color:var(--muted);font-size:14px}
.lr-row strong{font-size:18px;font-family:ui-monospace,"SF Mono",Menlo,monospace;letter-spacing:.01em;word-break:break-all;text-align:right}
html.offline .eyebrow::after{content:" · offline";color:var(--amber)}

.fine-link{color:var(--accent,#6a5ae0);text-decoration:underline;text-underline-offset:2px}

/* v3: several people per task + comments & activity */
.fl-hint{margin-left:6px;font-weight:500;text-transform:none;letter-spacing:0;opacity:.8}
.assignee.stack{width:auto;display:flex;align-items:center;padding-left:9px}
.assignee.stack .avatar{margin-left:-9px}
.avatar.more{background:var(--muted)}
.person-pick .tick{display:inline-grid;place-items:center;margin-left:6px;width:14px;height:14px}
.person-pick .tick svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.tag.unread{color:var(--accent)}
.tag .udot{display:inline-block;width:7px;height:7px;margin-left:4px;border-radius:50%;background:var(--accent)}
.tag.doneby{color:var(--green,#2fb57d)}
.timeline{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.tl-empty{color:var(--muted);font-size:14px;padding:2px 4px}
.tl-event{font-size:13px;line-height:1.4;color:var(--muted);padding:0 4px 0 40px}
.tl-event time{opacity:.8;white-space:nowrap}
.tl-comment{display:flex;gap:10px;align-items:flex-start}
.tl-comment .avatar{width:30px;height:30px;font-size:12px;margin-top:3px}
.tl-comment .bubble{flex:1;min-width:0;background:var(--surface);box-shadow:var(--shadow);border-radius:14px;padding:9px 12px}
.tl-head{display:flex;align-items:center;gap:5px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.tl-head strong{color:var(--text);font-weight:650}
.tl-del{margin-left:auto;border:0;background:none;color:var(--muted);font-size:12px;padding:2px 4px;cursor:pointer}
.tl-comment p{margin:3px 0 0;font-size:15px;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere}
.tl-comment p.tl-gone{font-style:italic;color:var(--muted)}
.comment-box{display:flex;align-items:flex-end;gap:8px;margin-top:12px;background:var(--surface);box-shadow:var(--shadow);border-radius:var(--radius);padding:6px 6px 6px 14px}
#fComment{flex:1;min-width:0;border:0;background:none;color:var(--text);font:inherit;font-size:16px;line-height:1.4;padding:7px 0;resize:none;outline:none;min-height:24px;overflow:hidden}
#fComment::placeholder{color:color-mix(in srgb,var(--muted) 80%,transparent)}
.send-btn{flex:none;display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:50%;background:var(--accent);color:#fff;cursor:pointer}
.send-btn:disabled{opacity:.35;cursor:default}
.send-btn svg{width:17px;height:17px;fill:currentColor}

/* v4: attachments */
.attach-btn{flex:none;display:grid;place-items:center;width:36px;height:36px;margin-left:-8px;border-radius:50%;color:var(--muted);cursor:pointer}
.attach-btn[hidden]{display:none}
.attach-btn svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tag.files svg{fill:none}
.tl-files{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.f-img,.f-doc{position:relative;display:inline-flex}
.f-thumb{display:block;padding:0;border:0;background:var(--line);border-radius:10px;overflow:hidden;width:96px;height:96px;cursor:zoom-in}
.f-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.f-doc a{display:flex;align-items:center;gap:10px;min-width:180px;max-width:240px;padding:9px 12px;border-radius:12px;background:var(--bg);color:var(--text);text-decoration:none;border:1px solid var(--line)}
.f-ico{flex:none;display:grid;place-items:center;width:34px;height:40px;border-radius:6px;background:#e0525e;color:#fff;font-size:10px;font-weight:800;letter-spacing:.04em}
.f-meta{display:flex;flex-direction:column;min-width:0}
.f-meta strong{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.f-meta small{font-size:12px;color:var(--muted)}
.f-del{position:absolute;top:-6px;right:-6px;width:22px;height:22px;border-radius:50%;border:0;background:var(--text);color:var(--surface);font-size:11px;line-height:22px;cursor:pointer;padding:0}
.f-gone{font-size:13px;font-style:italic;color:var(--muted)}
.pending-files{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.pending-files[hidden]{display:none}
.p-file{display:flex;align-items:center;gap:8px;max-width:100%;padding:6px 6px 6px 6px;border-radius:12px;background:var(--surface);box-shadow:var(--shadow);font-size:13px}
.p-file img{width:40px;height:40px;object-fit:cover;border-radius:8px}
.p-file .f-ico{width:30px;height:36px}
.p-name{display:flex;flex-direction:column;min-width:0;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}
.p-name small{font-weight:400;color:var(--muted)}
.p-file.err small{color:var(--red)}
.p-file button{border:0;background:none;color:var(--muted);font-size:13px;padding:4px 6px;cursor:pointer}
.viewer{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:rgba(0,0,0,.92);padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}
.viewer[hidden]{display:none}
.viewer img{max-width:100vw;max-height:100vh;object-fit:contain}
.viewer-close{position:absolute;top:calc(14px + env(safe-area-inset-top));right:14px;width:40px;height:40px;border-radius:50%;border:0;background:rgba(255,255,255,.18);color:#fff;font-size:17px;cursor:pointer}

/* v5: friendly sign-in, always in a warm light look (even when the phone is in dark mode) */
.lock{--bg:#fbfaff;--surface:#ffffff;--text:#1d1b2b;--muted:#6b6880;--line:#e6e3f2;--accent:#6a5ae0;--accent-soft:#ebe8fd;--accent-ink:#ffffff;--red:#d9485a;
  color-scheme:light;color:var(--text);background:linear-gradient(165deg,#f1edff 0%,#fbf0f8 52%,#fff6ea 100%)}
.lock::before{inset:-25% -30% auto;height:70%;background:radial-gradient(55% 55% at 28% 30%,rgba(124,108,240,.28),transparent 70%),radial-gradient(45% 45% at 82% 18%,rgba(232,102,154,.20),transparent 70%)}
.lock::after{content:"";position:fixed;left:-20%;right:-20%;bottom:-25%;height:50%;background:radial-gradient(50% 50% at 70% 60%,rgba(245,194,107,.25),transparent 70%),radial-gradient(40% 40% at 20% 50%,rgba(47,181,125,.12),transparent 70%);pointer-events:none}
.lock-brand{margin-bottom:26px}
.lock-brand img{width:96px;height:96px;border-radius:28px;box-shadow:0 16px 36px rgba(106,90,224,.35);animation:floaty 4s ease-in-out infinite}
@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
.lock-app{font-size:16px;color:#5b5873}
.lock-title{font-size:30px}
.lock-sub{font-size:17px;margin-bottom:26px;color:#5b5873}
.lock-fields2{display:flex;flex-direction:column;gap:16px}
.lfield{display:block}
.lfield[hidden]{display:none}
.lfield>span:first-child{display:block;margin:0 0 7px 6px;font-size:15px;font-weight:650;color:#4a4760}
.lfield .lin{position:relative;display:block}
.lfield input{display:block;width:100%;height:58px;border-radius:18px;border:1.5px solid var(--line);background:#fff;padding:0 18px;font-size:17px;color:var(--text);outline:none;box-shadow:0 3px 10px rgba(60,40,140,.06);transition:border-color .15s,box-shadow .15s}
.lfield input::placeholder{color:#a9a6bd}
.lfield input:focus{border-color:var(--accent);box-shadow:0 0 0 4px rgba(106,90,224,.16)}
.lfield .lin input{padding-right:58px}
.lfield .eye{position:absolute;right:7px;top:7px}
.remembered{display:flex;align-items:center;gap:12px;padding:10px 10px 10px 12px;border-radius:18px;background:#fff;border:1.5px solid var(--line);box-shadow:0 3px 10px rgba(60,40,140,.06)}
.remembered[hidden]{display:none}
.rem-avatar{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#8b7cf6,#6a5ae0);color:#fff;font-weight:800;font-size:17px}
.rem-who{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.rem-who small{color:var(--muted);font-size:13px}
.rem-who strong{font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lock .lock-err{font-weight:600;color:var(--red)}
.lock-btn{display:flex;align-items:center;justify-content:center;gap:10px;height:58px;border-radius:18px;font-size:18px;background:linear-gradient(135deg,#8172f3,#6a5ae0);box-shadow:0 12px 26px rgba(106,90,224,.38)}
.lock-btn .bspin{display:none;width:20px;height:20px;border-radius:50%;border:2.5px solid rgba(255,255,255,.45);border-top-color:#fff;animation:spin .8s linear infinite}
.lock-btn.loading .bspin{display:inline-block}
.lock .lock-link{font-size:16px;font-weight:600;color:var(--accent);margin-top:16px}
.lock .lock-card{border:1.5px solid var(--line)}

/* v5: @mentions, notifications, voice notes, update bar */
.bell-btn{position:relative}
.bell-btn svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.bell-btn[hidden],#settingsBtn[hidden]{display:none}
.nbadge{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;padding:0 5px;border-radius:99px;background:var(--red);color:#fff;font-size:12px;font-weight:800;line-height:20px;text-align:center;box-shadow:0 0 0 2px var(--bg)}
.nbadge[hidden]{display:none}
.tag.at-you{background:var(--blue);color:#fff;font-weight:800;letter-spacing:.01em}
.mention{display:inline;padding:1px 6px;border-radius:7px;background:var(--blue-soft);color:var(--blue);font-weight:700;white-space:nowrap}
.mention.me{background:var(--blue);color:#fff}
.comment-box{position:relative}
.comment-box[hidden]{display:none}
.cm-wrap{position:relative;flex:1;min-width:0;display:flex}
.cm-hl{position:absolute;inset:0;font:inherit;font-size:16px;line-height:1.4;padding:7px 0;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;color:transparent;pointer-events:none;overflow:hidden}
.cm-hl mark{color:transparent;background:var(--blue-soft);border-radius:6px;box-shadow:0 0 0 2px var(--blue-soft)}
#fComment{position:relative;z-index:1;background:transparent;overflow-wrap:break-word}
.mention-pop{position:absolute;left:0;right:0;bottom:calc(100% + 8px);z-index:30;max-height:236px;overflow-y:auto;-webkit-overflow-scrolling:touch;background:var(--surface);border-radius:16px;box-shadow:var(--shadow-lg);padding:6px}
.mention-pop[hidden]{display:none}
.mp-head{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);padding:8px 10px 4px}
.mp-row{display:flex;align-items:center;gap:10px;width:100%;border:0;background:none;color:var(--text);font:inherit;text-align:left;padding:8px 10px;border-radius:12px;cursor:pointer;min-height:48px}
.mp-row:active,.mp-row:hover{background:var(--surface2)}
.mp-row .avatar{width:32px;height:32px;font-size:13px;flex:none}
.mp-row > span:not(.avatar){display:flex;flex-direction:column;min-width:0}
.mp-row strong{font-size:16px;font-weight:650}
.mp-row small{font-size:12px;color:var(--muted)}
.mp-empty{padding:12px;color:var(--muted);font-size:14px}
.tl-comment.flash .bubble{animation:flash 2.4s ease}
@keyframes flash{0%,30%{box-shadow:0 0 0 3px var(--blue),var(--shadow);background:var(--blue-soft)}100%{box-shadow:var(--shadow)}}
/* notifications sheet */
.notif-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.n-row{display:flex;align-items:flex-start;gap:12px;width:100%;border:0;background:var(--surface);box-shadow:var(--shadow);border-radius:16px;padding:12px 14px;text-align:left;color:var(--text);font:inherit;cursor:pointer;position:relative}
.n-row.unread{background:color-mix(in srgb,var(--blue-soft) 70%,var(--surface))}
.n-row .avatar{width:38px;height:38px;font-size:14px;flex:none;margin-top:2px}
.n-main{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.n-line{font-size:15px;line-height:1.35}
.n-line strong{font-weight:700}
.n-snip{font-size:14px;color:var(--muted);line-height:1.35;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.n-when{font-size:12px;color:var(--muted);font-weight:600}
.n-dot{width:10px;height:10px;border-radius:50%;background:var(--blue);flex:none;margin-top:6px}
.n-empty{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:36px 20px;color:var(--muted)}
.n-empty span{font-size:34px}
.n-empty strong{color:var(--text);font-size:17px}
#notifAll[hidden]{visibility:hidden;display:inline-block}
/* add-to-task question */
.ask{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:24px;background:rgba(20,16,40,.42)}
.ask[hidden]{display:none}
.ask-card{width:min(340px,100%);background:var(--surface);border-radius:22px;box-shadow:var(--shadow-lg);padding:22px 20px 16px;text-align:center;animation:pop .18s ease}
@keyframes pop{from{transform:scale(.94);opacity:0}}
.ask-who{display:flex;justify-content:center;margin-bottom:10px}
.ask-who .avatar{width:56px;height:56px;font-size:20px}
.ask-card h3{margin:0 0 6px;font-size:19px}
.ask-card p{margin:0 0 16px;color:var(--muted);font-size:15px;line-height:1.4}
.ask-btns{display:flex;gap:10px}
.ask-btns button{flex:1;min-height:48px;border-radius:14px;border:0;font:inherit;font-weight:700;font-size:16px;cursor:pointer}
.ask-no{background:var(--surface2);color:var(--text)}
.ask-yes{background:var(--accent);color:#fff}
/* voice notes */
.mic-btn{flex:none;display:grid;place-items:center;width:36px;height:36px;margin-left:-6px;border:0;background:none;border-radius:50%;color:var(--muted);cursor:pointer;padding:0}
.mic-btn[hidden]{display:none}
.mic-btn svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.rec-bar{display:flex;align-items:center;gap:10px;margin-top:12px;background:var(--surface);box-shadow:var(--shadow);border-radius:var(--radius);padding:6px 6px 6px 8px;min-height:48px}
.rec-bar[hidden]{display:none}
.rec-x{width:36px;height:36px;border:0;border-radius:50%;background:var(--surface2);color:var(--muted);font-size:15px;cursor:pointer;flex:none}
.rec-dot{width:12px;height:12px;border-radius:50%;background:var(--red);flex:none;animation:recpulse 1.1s ease-in-out infinite}
@keyframes recpulse{50%{opacity:.25;transform:scale(.8)}}
.rec-time{font-weight:800;font-variant-numeric:tabular-nums;font-size:17px}
.rec-label{color:var(--muted);font-size:14px;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rec-stop{display:flex;align-items:center;gap:7px;border:0;border-radius:99px;background:var(--red);color:#fff;font:inherit;font-weight:700;font-size:15px;padding:0 16px 0 13px;height:38px;cursor:pointer;flex:none}
.rec-stop span{width:11px;height:11px;border-radius:3px;background:#fff}
.f-voice{position:relative;display:flex;align-items:center;gap:10px;width:min(260px,100%);padding:6px 12px 6px 6px;border-radius:99px;background:var(--accent-soft)}
.v-play{flex:none;display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:50%;background:var(--accent);color:#fff;cursor:pointer;padding:0}
.v-play svg{width:17px;height:17px;fill:currentColor}
.v-track{flex:1;height:6px;border-radius:9px;background:color-mix(in srgb,var(--accent) 22%,transparent);overflow:hidden;cursor:pointer;position:relative}
.v-track::before{content:"";position:absolute;inset:-12px 0}
.v-fill{display:block;height:100%;width:0;background:var(--accent);border-radius:9px;transition:width .2s linear}
.v-time{font-size:13px;font-weight:700;color:var(--accent);font-variant-numeric:tabular-nums;min-width:34px;text-align:right}
.f-voice .f-del{position:static;margin-left:-2px}
.p-voice .v-play{width:34px;height:34px}
/* update bar */
.update-bar{position:fixed;z-index:70;left:50%;transform:translateX(-50%);top:calc(var(--safe-t) + 10px);display:flex;align-items:center;gap:10px;background:var(--text);color:var(--bg);border-radius:99px;padding:6px 6px 6px 16px;box-shadow:var(--shadow-lg);font-weight:700;font-size:15px;white-space:nowrap}
.update-bar[hidden]{display:none}
/* v42: the one-line "what's new" note under the title */
.update-bar .upd-txt{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.update-bar .upd-note{font-weight:500;font-size:13px;opacity:.85;white-space:normal}
.update-bar .upd-note[hidden]{display:none}
.update-bar.has-note{white-space:normal;width:max-content;max-width:min(calc(100vw - 24px),520px);border-radius:18px;padding:8px 8px 8px 16px}
.update-bar.has-note button{flex:none}
.update-bar button{border:0;border-radius:99px;background:var(--accent);color:#fff;font:inherit;font-weight:700;padding:8px 14px;cursor:pointer}
@media (max-width:380px){.top-actions{gap:6px}.icon-btn,.user-btn{width:40px;height:40px}h1{font-size:30px}}

/* ---------- drag to reorder: lists + calendar ---------- */
.chips .chip.lchip,.manage-lists .lgrip,.cal-list .task{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
html.drag-on,html.drag-on *{-webkit-user-select:none;user-select:none;cursor:grabbing!important}
.chip.lchip.pressing{transform:scale(.96);transition:transform .45s ease}
.drag-gap{visibility:visible!important;position:relative}
.chip.drag-gap{background:transparent!important;box-shadow:none!important;color:transparent!important;outline:2px dashed color-mix(in srgb,var(--accent) 55%,transparent);outline-offset:-2px}
.chip.drag-gap>*{visibility:hidden}
.drag-ghost{position:fixed!important;z-index:200;margin:0!important;pointer-events:none;will-change:transform;box-sizing:border-box}
.chip-ghost{box-shadow:0 12px 26px rgba(20,16,60,.28)!important;transform:translate(0,-4px) scale(1.06);outline:2px solid var(--accent);outline-offset:1px}
.chips.reordering{scroll-snap-type:none;scroll-behavior:auto}
.drag-ghost.settling{box-shadow:var(--shadow)!important}
.manage-lists .move-btns{display:flex;gap:2px;flex:none}
.manage-lists .mv{width:32px;height:40px;display:grid;place-items:center;color:var(--muted);border-radius:10px}
.manage-lists .mv:not([disabled]):active{background:var(--surface2)}
.manage-lists .mv[disabled]{opacity:.25}
.manage-lists .mv svg{width:18px;height:18px}
.manage-lists .x{width:38px}
.manage-lists .lgrip{width:38px;height:44px;flex:none;display:grid;place-items:center;color:var(--muted);touch-action:none;cursor:grab;margin-right:-2px}
.manage-lists .lgrip svg{width:22px;height:22px}
.manage-lists li{gap:6px;background:var(--surface)}
.manage-lists li.drag-gap{background:var(--accent-soft)}
.manage-lists li.drag-gap>*{visibility:hidden}
.row-ghost{display:flex;align-items:center;gap:6px;padding:6px 6px 6px 14px;background:var(--surface);border-radius:14px;box-shadow:0 14px 30px rgba(20,16,60,.25);list-style:none;outline:2px solid var(--accent)}
.row-ghost input{flex:1;min-width:0;border:0;background:none;font-size:16px;font-weight:600}
.row-ghost .swatch{width:26px;height:26px;border-radius:50%;flex:none}
.row-ghost .x,.row-ghost .mv{width:32px;height:40px;display:grid;place-items:center;color:var(--muted)}
.row-ghost .lgrip{width:38px;display:grid;place-items:center;color:var(--accent)}
.row-ghost svg{width:18px;height:18px}
.row-ghost .move-btns{display:flex;gap:2px}

/* ---------- calendar ---------- */
.cal{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:10px 8px 8px;margin:2px 0 14px}
.cal-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 2px 10px}
.cal-head{display:flex;align-items:center;justify-content:space-between;gap:2px;padding:0 2px 8px}
.cal-title{margin:0 2px;flex:1;text-align:center;font-size:17px;font-weight:750;letter-spacing:-.01em;white-space:nowrap}
.cal-nav{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;color:var(--text)}
.cal-nav svg{width:20px;height:20px}
.cal-nav:active{background:var(--surface2)}
.cal-sp{flex:1}
.cal-today{height:34px;padding:0 14px;border-radius:999px;font-size:14px;font-weight:700;color:var(--accent);background:var(--accent-soft)}
.cal-today.on{opacity:.55}
.cal-seg{display:flex;background:var(--surface2);border-radius:12px;padding:3px}
.cal-seg button{height:30px;padding:0 16px;border-radius:9px;font-size:14px;font-weight:650;color:var(--muted)}
.cal-seg button.on{background:var(--surface);color:var(--text);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.cal-wk{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);padding:2px 0 4px}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;touch-action:pan-y}
.cal-grid.in-r{animation:calIn .22s ease}.cal-grid.in-l{animation:calInL .22s ease}
@keyframes calIn{from{opacity:.3;transform:translateX(18px)}}@keyframes calInL{from{opacity:.3;transform:translateX(-18px)}}
.cal-day{position:relative;height:48px;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding-top:5px;gap:4px;color:var(--text);transition:background .15s}
.cal.week .cal-day{height:58px}
.cal-day .num{font-size:15px;font-weight:650;width:27px;height:27px;line-height:27px;border-radius:50%;text-align:center}
.cal-day.other{color:var(--muted);opacity:.55}
.cal-day.is-today .num{color:var(--accent);font-weight:800;box-shadow:inset 0 0 0 2px var(--accent)}
.cal-day.sel .num{background:var(--accent);color:var(--accent-ink);box-shadow:none}
.cal-day.sel{background:var(--accent-soft)}
.cal-day.has-od .num:not(.x){color:var(--red)}
.cal-day.sel.has-od .num{color:var(--accent-ink);background:var(--red)}
.cal-day .dots{display:flex;align-items:center;gap:3px;height:7px}
.cal-day .dots i{width:6px;height:6px;border-radius:50%;background:var(--c)}
.cal-day .dots i.od{background:var(--red);box-shadow:0 0 0 1.5px var(--red-soft)}
.cal-day .dots i.done{background:transparent;box-shadow:inset 0 0 0 1.5px var(--c);opacity:.6}
.cal-day .dots b{font-size:10px;font-weight:700;color:var(--muted);line-height:7px}
.cal-day.drop-on{background:var(--accent)!important;transform:scale(1.08)}
.cal-day.drop-on .num{color:var(--accent-ink)!important;background:none!important}
.cal.dropping .cal-day:not(.other){box-shadow:inset 0 0 0 1px var(--line)}
.cal-below .section-title{display:flex;align-items:center;gap:8px}
.cal-add{margin-left:auto;display:flex;align-items:center;gap:4px;height:32px;padding:0 12px 0 9px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:13px;font-weight:700;text-transform:none;letter-spacing:0}
.cal-add svg{width:16px;height:16px}
.cal-empty{margin:4px 4px 14px;color:var(--muted);font-size:14px}
.cal-sec{scroll-margin-top:90px}
.cal-list .task.done .task-title{text-decoration:line-through;opacity:.6}
.cal-list .task.done{opacity:.75}
.task.pressing{transform:scale(.98);transition:transform .45s ease}
.task.drag-gap{opacity:.35}
.task-ghost{list-style:none;opacity:.95;box-shadow:0 16px 34px rgba(20,16,60,.3)!important;border-radius:var(--radius);background:var(--surface)}


/* Hebrew calendar (Gregorian / Hebrew / Both) */
.set-hint{margin:6px 4px 0;font-size:13px;color:var(--muted)}
.cal-type{margin:0 2px 10px;padding:3px;border-radius:12px;gap:3px}
.cal-type button{height:30px;font-size:13.5px;border-radius:9px}
.cal-title small{display:block;font-size:12.5px;font-weight:600;color:var(--muted);letter-spacing:0;margin-top:1px;direction:rtl;unicode-bidi:plaintext}
.cal-title.he{font-size:20px;font-family:"Arial Hebrew","Noto Sans Hebrew","Segoe UI",system-ui,sans-serif}
.cal-title.he small{direction:ltr;font-family:inherit}
.cal.ct-heb .cal-wk span:last-child,.cal.ct-both .cal-wk span:last-child{color:var(--accent)}
.cal.ct-heb .cal-day,.cal.ct-both .cal-day{height:60px;gap:1px}
.cal.week.ct-heb .cal-day,.cal.week.ct-both .cal-day{height:66px}
.cal-day .hd{font-size:10.5px;font-weight:600;line-height:13px;color:var(--muted);white-space:nowrap;max-width:100%;overflow:hidden}
.cal-day .hd.rc{color:var(--accent);font-weight:750;font-size:10px}
.cal.ct-heb .cal-day .num.hn{font-size:14.5px;font-weight:700;width:30px;letter-spacing:-.02em}
.cal.ct-heb .cal-day .hd{font-size:10px;font-weight:600}
.cal.ct-heb .cal-day .dots,.cal.ct-both .cal-day .dots{margin-top:2px}
.cal-day.shab{background:color-mix(in srgb,var(--accent-soft) 45%,transparent)}
.cal-day.shab.sel{background:var(--accent-soft)}
.cal-day i.hol{position:absolute;top:4px;right:4px;width:6px;height:6px;border-radius:50%;background:#e0a100}
.cal-day i.hol.fast{background:#8a8f9c}
.cal-day i.hol.chanukah{background:#2f7de1}
.cal-day i.hol.purim{background:#c14fd1}
.cal-day i.hol.minor{background:#e0a100;opacity:.5}
.cal-day i.hol.rc{width:5px;height:5px;background:transparent;box-shadow:inset 0 0 0 1.5px var(--accent)}
.section-title .heb-t{font-weight:650;color:var(--muted);font-size:.92em;margin-left:2px;unicode-bidi:isolate}
.cal-hol{display:flex;flex-wrap:wrap;gap:6px;margin:-2px 2px 10px}
.cal-hol span{font-size:12.5px;font-weight:650;padding:3px 9px;border-radius:999px;background:#fff3cf;color:#7a5600}
.cal-hol span.shabbos,.cal-hol span.erev{background:var(--accent-soft);color:var(--accent)}
.cal-hol span.chanukah{background:#e3eeff;color:#1d5bb0}
.cal-hol span.purim{background:#f6e3fa;color:#86309a}
.cal-hol span.fast{background:var(--surface2);color:var(--muted)}
.cal-hol span.rc{background:var(--surface2);color:var(--text)}
[data-theme="dark"] .cal-hol span{background:#3a3220;color:#f2d27a}
[data-theme="dark"] .cal-hol span.chanukah{background:#1d2c45;color:#9cc2ff}
[data-theme="dark"] .cal-hol span.purim{background:#3a2240;color:#e3a6f0}
.heb-date{margin:8px 4px 0;font-size:14px;font-weight:600;color:var(--muted)}
.heb-date span{color:var(--text);font-size:15px}

/* v13: parsha, Hebrew day header, comment edit */
.section-title.heb-sec{flex-wrap:wrap;row-gap:0}
.section-title .heb-h{color:var(--text);font-size:16px;font-weight:750;unicode-bidi:isolate}
.section-title.overdue .heb-h{color:var(--red)}
.section-title .civ{font-size:12.5px;font-weight:600;color:var(--muted)}
.cal.ct-heb .cal-day,.cal.ct-both .cal-day{height:64px}
.cal.week.ct-heb .cal-day,.cal.week.ct-both .cal-day{height:70px}
.cal-day .ps{font-size:9px;font-weight:700;line-height:11px;color:var(--accent);max-width:calc(100% - 2px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;letter-spacing:-.02em}
.cal-day.sel .ps{color:var(--accent)}
.cal-hol span.parsha{background:var(--accent-soft);color:var(--accent)}
.cal-hol span{unicode-bidi:isolate}
.cal-hol{direction:rtl;justify-content:flex-start}
.tl-del.nm{margin-left:2px}
.tl-edit{margin-top:6px}
.tl-edit textarea{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:12px;padding:8px 10px;font:inherit;font-size:16px;background:var(--surface);color:var(--text);resize:vertical}
.tl-edit-act{display:flex;justify-content:flex-end;gap:8px;margin-top:6px}

.section-title .hstack{display:flex;flex-direction:column;align-items:flex-start;gap:1px;min-width:0}
.section-title.heb-sec{flex-wrap:nowrap}
.section-title.heb-sec .cal-add{flex:none}
.cal-day .ps.long{font-size:7.5px;letter-spacing:-.04em;text-overflow:clip}

/* ---------- date picker sheet ---------- */
.date-btn{text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent}
.date-btn b{font-size:16px;font-weight:600;min-height:30px;line-height:30px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text)}
.date-btn b.empty{color:var(--muted);font-weight:500}
.date-btn b:lang(he){font-family:"Arial Hebrew","Noto Sans Hebrew","Segoe UI",system-ui,sans-serif;direction:rtl;text-align:left;unicode-bidi:plaintext}
.date-btn:active{transform:scale(.98)}
.dp-scrim{position:fixed;inset:0;z-index:60;background:rgba(15,12,35,.32);animation:fade .2s ease}
.dpsheet{position:fixed;z-index:70;left:0;right:0;bottom:0;margin:0 auto;max-width:560px;max-height:94vh;max-height:94dvh;display:flex;flex-direction:column;background:var(--bg);border-radius:26px 26px 0 0;box-shadow:var(--shadow-lg);animation:up .34s cubic-bezier(.2,.9,.25,1);padding-bottom:var(--safe-b);touch-action:manipulation}
.dpsheet.closing{animation:down .23s ease forwards}
.dp-head{touch-action:none}
.dp-head .text-btn:disabled{opacity:.35}
.dp-body{overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:2px 14px 14px}
.dp-type{margin:2px 2px 10px}
.dp-type button{height:38px;font-size:14.5px}
.dp-cal{margin:0 0 10px;padding:8px 6px 6px}
.dp-cal .cal-nav{width:46px;height:46px;border-radius:14px}
.dp-cal .cal-nav svg{width:22px;height:22px}
.dp-cal .cal-wk{font-size:11.5px}
.dp-cal .cal-day{height:50px;justify-content:center;padding-top:0;font-size:inherit}
.dp-cal.ct-heb .cal-day,.dp-cal.ct-both .cal-day{height:58px;justify-content:center;padding-top:2px}
.dp-cal .cal-day .num{font-size:17px;width:34px;height:34px;line-height:34px}
.dp-cal.ct-heb .cal-day .num.hn{font-size:17px;width:38px;height:34px;line-height:34px;border-radius:17px;font-family:"Arial Hebrew","Noto Sans Hebrew","Segoe UI",system-ui,sans-serif}
.dp-cal .cal-day .hd{font-size:11px}
.dp-cal .cal-day .ps{position:absolute;bottom:1px;left:1px;right:1px;font-size:8.5px;line-height:10px}
.dp-cal.ct-both .cal-day.shab,.dp-cal.ct-heb .cal-day.shab{padding-bottom:9px}
.dp-cal .cal-day:active{background:var(--surface2)}
.dp-sel{min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-align:center;padding:2px 6px 10px}
.dp-sel b{font-size:16.5px;font-weight:750}
.dp-sel .dp-heb{font-size:19px;font-family:"Arial Hebrew","Noto Sans Hebrew","Segoe UI",system-ui,sans-serif}
.dp-sel .dp-civ{font-size:13.5px;font-weight:600;color:var(--muted)}
.dp-sel .dp-hebsmall{font-family:"Arial Hebrew","Noto Sans Hebrew","Segoe UI",system-ui,sans-serif;font-size:14.5px}
.dp-sel .dp-none{font-size:15px;font-weight:600;color:var(--muted)}
.dp-sel .dp-hol{margin:4px 0 0;justify-content:center}
.dp-quick{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.dp-quick button{height:50px;border-radius:15px;font-size:16px;font-weight:700;background:var(--surface);color:var(--accent);box-shadow:var(--shadow)}
.dp-quick button.on{background:var(--accent);color:var(--accent-ink)}
.dp-quick button:active{transform:scale(.98)}
html.locked .dpsheet,html.locked .dp-scrim{visibility:hidden}

/* v15: update button */
.upd-status:empty{display:none}
.upd-status.ok{color:#2fb57d;font-weight:700}
.upd-status.err{color:#e5484d;font-weight:600}
#checkUpdBtn[disabled]{opacity:.55}
.update-bar button{min-height:40px}

/* v15: Hebrew date in the header */
.eyebrow .civ-date{display:block}
.eyebrow .heb-date{display:block;margin-top:2px;font-size:15px;font-weight:700;letter-spacing:0;text-transform:none;color:var(--accent);font-family:"Arial Hebrew","Noto Sans Hebrew",system-ui,sans-serif}
.section-title .sec-heb{font-size:.92em;font-weight:600;color:var(--muted);text-transform:none;letter-spacing:0;margin-inline-start:4px}
.update-bar{top:auto;bottom:calc(var(--tabbar) + var(--safe-b) + 96px);z-index:45;animation:toast .3s cubic-bezier(.2,.9,.3,1.2)}

/* ---------- holidays (v16) ---------- */
.cal.ct-greg.hols.month .cal-day{height:58px;gap:2px}
.cal.ct-greg.hols.week .cal-day{height:64px;gap:2px}
.cal-day .hmarks{position:absolute;top:4px;right:4px;display:flex;gap:2px}
.cal-day .hmarks i.hol{position:static;display:block}
.cal-day i.hol.special,.cal-day i.hol.mevarchim{width:5px;height:5px;background:transparent;box-shadow:inset 0 0 0 1.5px #e0a100}
.cal-day i.hol.us{background:#d23f3f}
.cal-day i.hol.us.us-obs{background:#e98a8a}
.cal-day .hl{font-size:9px;font-weight:700;line-height:11px;max-width:calc(100% - 2px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;letter-spacing:-.02em;color:#9a6700;hyphens:manual}
.cal-day .hl.long{font-size:8px;letter-spacing:-.04em}
.cal-day .hl.chanukah{color:#1d5bb0}
.cal-day .hl.purim{color:#86309a}
.cal-day .hl.fast{color:var(--muted)}
.cal-day .hl.rc,.cal-day .hl.minor,.cal-day .hl.special,.cal-day .hl.mevarchim{color:#a77a1c;font-weight:650}
.cal-day .hl.us{color:#c0392b}
.cal-day .hl.us.us-obs{color:#c7706a;font-weight:650}
[data-theme="dark"] .cal-day .hl{color:#f2c25a}
[data-theme="dark"] .cal-day .hl.chanukah{color:#8fb8ff}
[data-theme="dark"] .cal-day .hl.purim{color:#e3a6f0}
[data-theme="dark"] .cal-day .hl.us{color:#ff8a80}
[data-theme="dark"] .cal-day .hl.us.us-obs{color:#e0a29c}
[data-theme="dark"] .cal-day .hl.fast{color:var(--muted)}
.cal-hol span.us{background:#fde7e5;color:#a8322a}
.cal-hol span.us.us-obs{background:var(--surface2);color:var(--text)}
.cal-hol span.special,.cal-hol span.mevarchim{background:#fff3cf;color:#7a5600}
[data-theme="dark"] .cal-hol span.us{background:#45201d;color:#ffb0a8}
[data-theme="dark"] .cal-hol span.us.us-obs{background:var(--surface2);color:var(--text)}
.cal-hol.ltr{direction:ltr}
.hol-set{margin-top:10px}
.tog-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;min-height:52px;border-bottom:1px solid var(--line);cursor:pointer}
.tog-row:last-child{border-bottom:0}
.tog-row > span{display:flex;flex-direction:column;font-size:15.5px}
.tog-row small{color:var(--muted);font-size:12.5px;margin-top:2px}
.tog-row.sub{padding-left:28px;min-height:46px}
.tog-row.sub > span{font-size:15px}
.tog-row.off{opacity:.45}
.tog{appearance:none;-webkit-appearance:none;flex:none;width:51px;height:31px;border-radius:16px;background:var(--surface2);box-shadow:inset 0 0 0 1px var(--line);position:relative;cursor:pointer;transition:background .2s;margin:0}
.tog::after{content:"";position:absolute;top:2px;left:2px;width:27px;height:27px;border-radius:50%;background:#fff;box-shadow:0 2px 4px rgba(0,0,0,.25);transition:transform .2s}
.tog:checked{background:#34c759;box-shadow:none}
.tog:checked::after{transform:translateX(20px)}
.tog:disabled{cursor:default}

/* paste / drop a picture (v16) */
.paste-btn{margin-left:-10px}
.paste-btn svg{width:20px;height:20px}
#taskSheet.drop-file{box-shadow:inset 0 0 0 3px var(--accent)}
#taskSheet.drop-file::after{content:"Drop the picture to attach it";position:fixed;left:50%;bottom:120px;transform:translateX(-50%);background:var(--accent);color:var(--accent-ink);font-weight:700;padding:10px 16px;border-radius:999px;z-index:5;pointer-events:none}

/* ===================== v17: spaces, sidebar, table / board, My Work, Team ===================== */
.app{max-width:none}
.content{max-width:760px;margin:0 auto;min-width:0}
.menu-btn{flex:none;align-self:center}
.topbar-row{align-items:center}
.titles{flex:1;min-width:0}
.titles h1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crumb{color:var(--accent);font-weight:800;text-transform:none;font-size:14px;padding:2px 0;letter-spacing:0}
.crumb-sep{margin:0 6px}
#listChips{display:none}
/* sidebar */
.sidebar{background:var(--surface);display:flex;flex-direction:column;overscroll-behavior:contain}
.sb-top{display:flex;align-items:center;gap:10px;padding:18px 18px 10px}
.sb-top img{border-radius:9px}
.sb-app{font-weight:800;font-size:19px;flex:1;letter-spacing:-.01em}
.sb-close{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--surface2)}
.sb-close svg{width:18px;height:18px}
.sb-main{display:flex;flex-direction:column;gap:2px;padding:6px 10px}
.sb-nav{display:flex;align-items:center;gap:12px;width:100%;min-height:46px;padding:0 12px;border-radius:12px;font-weight:650;font-size:16px;text-align:left}
.sb-nav svg{width:22px;height:22px;color:var(--muted);flex:none}
.sb-nav:hover,.sb-list:hover,.sb-srow:hover{background:var(--surface2)}
.sb-nav.on{background:var(--accent-soft);color:var(--accent)}
.sb-nav.on svg{color:var(--accent)}
.sb-n{margin-left:auto;font-size:13px;font-weight:700;color:var(--muted);min-width:22px;text-align:right}
.sb-nav .sb-n{background:var(--surface2);border-radius:999px;padding:1px 8px;text-align:center}
.sb-nav.on .sb-n{background:var(--accent);color:#fff}
.sb-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px 6px 22px;font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.sb-plus{font-size:14px;font-weight:750;color:var(--accent);padding:7px 12px;border-radius:10px;background:var(--accent-soft);text-transform:none;letter-spacing:0}
.sb-spaces,.sb-lists,.sb-folder ul{list-style:none;margin:0;padding:0}
.sb-spaces{padding:0 10px;flex:1}
.sb-space{margin-bottom:4px}
.sb-srow{display:flex;align-items:center;border-radius:12px}
.sb-space.on>.sb-srow{background:color-mix(in srgb,var(--sc) 16%,transparent)}
.sb-caret{width:28px;height:44px;display:grid;place-items:center;color:var(--muted);flex:none}
.sb-caret svg{width:16px;height:16px;transition:transform .2s}
.sb-space.open .sb-caret svg{transform:rotate(90deg)}
.sb-space-btn{flex:1;display:flex;align-items:center;gap:10px;min-height:44px;padding:0 4px;font-weight:750;font-size:16px;text-align:left;min-width:0}
.sb-emoji{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:var(--sc);font-size:17px;flex:none;color:#fff;font-weight:800}
.sb-sn{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sb-more{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;color:var(--muted);flex:none}
.sb-more:hover{background:var(--surface)}
.sb-more svg{width:20px;height:20px}
.sb-lists{padding:2px 0 8px 28px}
.sb-list{display:flex;align-items:center;gap:10px;width:100%;min-height:42px;padding:0 10px;border-radius:10px;font-size:15.5px;text-align:left}
.sb-list .dot{width:11px;height:11px;border-radius:4px;flex:none;display:inline-block}
.sb-list.on{background:var(--accent-soft);font-weight:750;color:var(--accent)}
.sb-ln{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sb-fname{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:750;color:var(--muted);padding:8px 10px 2px}
.sb-fname svg{width:16px;height:16px}
.sb-folder ul{padding-left:12px}
.sb-addlist{width:100%;text-align:left;min-height:40px;padding:0 10px;border-radius:10px;color:var(--accent);font-weight:650;font-size:15px}
.sb-none{padding:6px 10px;color:var(--muted);font-size:14px}
.sb-foot{padding:10px;border-top:1px solid var(--line);margin-top:14px}
@media (min-width:900px){
  .app{display:grid;grid-template-columns:276px minmax(0,1fr);padding-bottom:40px}
  .sidebar{position:sticky;top:0;height:100vh;height:100dvh;overflow:auto;border-right:1px solid var(--line)}
  .content{max-width:1180px;width:100%;padding:0 18px}
  .tabbar,.menu-btn,.sb-close,.drawer-scrim,.fab{display:none!important}
  .topbar{padding-top:22px}
}
@media (max-width:899px){
  .sidebar{position:fixed;top:0;bottom:0;left:0;width:min(86vw,330px);z-index:60;transform:translateX(-105%);transition:transform .25s ease;overflow:auto;padding-top:var(--safe-t);padding-bottom:var(--safe-b);box-shadow:var(--shadow-lg);visibility:hidden}
  .sidebar.open{transform:none;visibility:visible}
  .drawer-scrim{position:fixed;inset:0;background:rgba(20,16,50,.38);z-index:59;animation:fadeIn .2s}
  body.drawer-on{overflow:hidden}
  .topbar{padding-left:14px;padding-right:14px}
  .topbar .titles h1{font-size:30px}
}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
/* view bar */
.viewbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;flex-wrap:wrap}
.vseg{display:flex;background:var(--surface2);border-radius:14px;padding:4px;gap:2px}
.vseg button{display:flex;align-items:center;gap:7px;height:42px;padding:0 16px;border-radius:11px;font-weight:750;font-size:15px;color:var(--muted)}
.vseg button svg{width:19px;height:19px}
.vseg button.on{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}
.vb-actions{display:flex;gap:8px}
.soft-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:0 15px;border-radius:12px;background:var(--surface);box-shadow:var(--shadow);font-weight:650;font-size:15px;color:var(--text);text-decoration:none}
.soft-btn svg{width:18px;height:18px}
.soft-btn:disabled{opacity:.45}
.new-btn{min-height:44px;padding:0 18px}
@media (max-width:560px){ .vseg{flex:1} .vseg button{flex:1;justify-content:center;padding:0 6px;font-size:14px} .vb-actions .new-btn{display:none} .vb-actions .soft-btn span{display:none} .vb-actions .soft-btn{width:50px;padding:0} }
/* table */
.table{display:flex;flex-direction:column;gap:18px;padding:6px 0 24px;--cols:52px minmax(0,1fr) 150px 92px 112px 104px}
.tg-head{display:flex;align-items:center;gap:8px;min-height:40px;padding:0 2px;font-size:18px;font-weight:800;color:var(--gc);text-align:left}
.tg-caret{display:grid;place-items:center}
.tg-caret svg{width:18px;height:18px;transform:rotate(90deg);transition:transform .2s}
.tgroup.closed .tg-caret svg{transform:none}
.tg-n{font-size:13px;font-weight:750;color:var(--muted);background:var(--surface2);border-radius:999px;padding:2px 9px}
.tg-name small{font-size:13px;color:var(--muted);font-weight:600;margin-left:6px}
.tg-empty{color:var(--muted);margin:4px 2px}
.thead{display:none}
.trows{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.trow{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:8px 8px;background:var(--surface);border-radius:16px;box-shadow:var(--shadow);padding:10px 12px 10px 10px;border-left:6px solid var(--gc);transition:opacity .25s,transform .25s}
.trow.leaving{opacity:0;transform:translateX(20px)}
.trow>.check{flex:none}
.tmain{flex:1 1 calc(100% - 52px);min-width:0;cursor:pointer;display:flex;flex-direction:column;gap:3px;padding:2px 0}
.ttitle{font-size:17px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.trow.done .ttitle{text-decoration:line-through;color:var(--muted)}
.tsub{display:flex;flex-wrap:wrap;gap:6px 10px;font-size:13px;color:var(--muted)}
.ti,.tl-tag{display:inline-flex;align-items:center;gap:4px}
.ti svg{width:14px;height:14px}
.ti.unread{color:var(--accent);font-weight:700}
.ti.at-you{color:#fff;background:var(--accent);border-radius:999px;padding:0 7px;font-weight:700}
.tl-tag .dot{width:9px;height:9px;border-radius:3px;display:inline-block}
.tcell{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:34px;border-radius:999px;font-size:14px;font-weight:700}
.trow>.tstatus{margin-left:44px}
.tstatus{background:var(--sc);color:#fff;padding:0 14px;min-width:96px;text-shadow:0 1px 1px rgba(0,0,0,.12)}
.tppl{min-width:34px;padding:0 2px}
.tppl .avatar{width:30px;height:30px;font-size:12px}
.tppl .assignee.stack .avatar{margin-left:-8px;border:2px solid var(--surface)}
.tppl .assignee.stack .avatar:first-child{margin-left:0}
.av-add{width:30px;height:30px;border-radius:50%;border:2px dashed var(--line);display:grid;place-items:center;color:var(--muted)}
.av-add svg{width:16px;height:16px}
.tdue{background:var(--surface2);padding:0 11px;color:var(--text)}
.tdue svg{width:15px;height:15px}
.tdue.empty{color:var(--muted);font-weight:600}
.tdue.od{background:var(--red-soft);color:var(--red)}
.tdue.today{background:var(--green-soft);color:var(--green)}
.tprio{padding:0 11px;color:var(--pc);background:color-mix(in srgb,var(--pc) 15%,transparent)}
.tprio.empty{color:var(--muted);background:var(--surface2);min-width:36px}
.tadd{display:flex;align-items:center;gap:10px;min-height:52px;padding:0 8px 0 16px;border-radius:14px;border:2px dashed var(--line);margin-top:8px;transition:border-color .15s,background .15s}
.tadd:focus-within{border-style:solid;border-color:var(--gc,var(--accent));background:var(--surface)}
.tadd .plus{font-size:22px;font-weight:600;color:var(--gc,var(--accent))}
.tadd input{flex:1;min-width:0;border:0;background:none;height:48px;font-size:16px;outline:none}
.tadd-go{height:36px;padding:0 14px;border-radius:10px;background:var(--gc,var(--accent));color:#fff;font-weight:750;font-size:14px;opacity:0;pointer-events:none;transition:opacity .15s}
.tadd:focus-within .tadd-go{opacity:1;pointer-events:auto}
.tadd:has(input:not(:placeholder-shown)) .tadd-go{opacity:1;pointer-events:auto}   /* v29: typed text stays addable after the iPad keyboard is closed */
.tadd:has(input:not(:placeholder-shown)){border-style:solid}
/* scoped by layout (v19) */
  html[data-layout="table"] .thead{display:grid;grid-template-columns:var(--cols);font-size:13px;font-weight:700;color:var(--muted);padding:6px 0 0 6px}
  html[data-layout="table"] .thead span{text-align:center}
  html[data-layout="table"] .thead span:nth-child(2){text-align:left;padding-left:2px}
  html[data-layout="table"] .trows{gap:0;background:var(--surface);border-radius:14px;box-shadow:var(--shadow);overflow:hidden;border-left:6px solid var(--gc)}
  html[data-layout="table"] .trow{display:grid;grid-template-columns:var(--cols);align-items:stretch;gap:0;min-height:54px;border-radius:0;box-shadow:none;padding:0;border-left:0;border-bottom:1px solid var(--line);background:none}
  html[data-layout="table"] .trow:last-child{border-bottom:0}
  html[data-layout="table"] .trow:hover{background:color-mix(in srgb,var(--gc) 6%,var(--surface))}
  html[data-layout="table"] .trow>.check{align-self:center;justify-self:center}
  html[data-layout="table"] .tmain{padding:8px 10px 8px 2px;justify-content:center}
  html[data-layout="table"] .ttitle{font-size:16px}
  html[data-layout="table"] .trow>.tstatus{margin:0}
  html[data-layout="table"] .tcell{height:auto;border-radius:0;border-left:1px solid var(--line);font-size:14px;margin:0}
  html[data-layout="table"] .tstatus{border-left:2px solid var(--surface);min-width:0}
  html[data-layout="table"] .tstatus:hover{filter:brightness(1.06)}
  html[data-layout="table"] .tdue,html[data-layout="table"] .tdue.today,html[data-layout="table"] .tdue.od,html[data-layout="table"] .tdue.empty{background:none}
  html[data-layout="table"] .tdue:hover,html[data-layout="table"] .tppl:hover,html[data-layout="table"] .tprio.empty:hover{background:var(--surface2)}
  html[data-layout="table"] .tprio{border-radius:0}
  html[data-layout="table"] .tprio.empty{background:none}
/* board */
.board{display:flex;gap:14px;overflow-x:auto;padding:8px 20px 28px;margin:0 -20px;scroll-snap-type:x proximity;align-items:flex-start}
.bcol{flex:0 0 78vw;max-width:310px;background:var(--surface2);border-radius:18px;padding:10px;scroll-snap-align:start;display:flex;flex-direction:column;gap:10px;border-top:6px solid var(--sc);transition:background .15s}
@media (min-width:900px){ .board{margin:0;padding:8px 0 28px} .bcol{flex:0 0 280px} }
.bcol-head{display:flex;align-items:center;justify-content:space-between;padding:4px 6px;font-weight:800;font-size:16px}
.bcol-name{display:inline-flex;align-items:center;gap:8px}
.bcol-name::before{content:'';width:12px;height:12px;border-radius:50%;background:var(--sc)}
.bcol-n{font-size:13px;color:var(--muted);background:var(--surface);border-radius:999px;padding:1px 9px}
.bcards{display:flex;flex-direction:column;gap:10px;min-height:64px}
.bcard{background:var(--surface);border-radius:14px;padding:12px 14px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:8px;cursor:grab;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;border-left:5px solid var(--sc)}
.bcard.pressing{transform:scale(.98);transition:transform .2s}
.bcard.placeholder{opacity:.3}
.bcard.done .bc-title{text-decoration:line-through;color:var(--muted)}
.bcol.drop-on{background:color-mix(in srgb,var(--sc) 20%,var(--surface2));outline:3px dashed var(--sc);outline-offset:-3px}
.bc-title{font-weight:650;font-size:16px;line-height:1.3;overflow-wrap:anywhere}
.bc-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.bc-due{display:inline-flex;align-items:center;gap:4px}
.bc-due svg{width:14px;height:14px}
.bc-due.od{color:var(--red);font-weight:700}
.bc-prio{color:var(--pc);background:color-mix(in srgb,var(--pc) 15%,transparent);border-radius:999px;padding:1px 8px;font-weight:700}
.bc-who{margin-left:auto;display:flex}
.bc-who .avatar{width:26px;height:26px;font-size:11px;margin-left:-6px;border:2px solid var(--surface)}
.bc-list{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px;font-weight:600}
.bc-list .dot{width:9px;height:9px;border-radius:3px;display:inline-block}
.bcol-empty{color:var(--muted);font-size:14px;text-align:center;padding:14px 0;border:2px dashed var(--line);border-radius:12px;margin:0}
.bcol .tadd{margin-top:0;min-height:46px;background:transparent}
.drag-ghost.card-ghost{position:fixed;z-index:95;pointer-events:none;margin:0;box-shadow:var(--shadow-lg)}
/* My Work */
.mw-hello h2{margin:4px 0 2px;font-size:22px;font-weight:800;letter-spacing:-.01em}
.mw-hello p{margin:0 0 14px;color:var(--muted)}
.mw-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:20px}
.mw-tile{background:color-mix(in srgb,var(--gc) 12%,var(--surface));border-radius:16px;padding:12px 10px 10px;display:flex;flex-direction:column;align-items:flex-start;gap:0;text-align:left;border:2px solid color-mix(in srgb,var(--gc) 22%,transparent)}
.mw-emo{font-size:18px}
.mw-num{font-size:28px;font-weight:850;color:var(--gc);line-height:1.15}
.mw-lbl{font-size:13px;font-weight:750;color:var(--text);white-space:nowrap}
@media (max-width:380px){ .mw-lbl{font-size:12px} .mw-tiles{gap:7px} }
.empty.small{padding:30px 16px}
.empty.small h3{margin-top:0}
/* Team */
.team-intro{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;background:var(--surface);border-radius:18px;padding:16px 18px;box-shadow:var(--shadow);margin:8px 0 16px}
.team-intro h2{margin:0 0 4px;font-size:20px}
.team-intro p{margin:0;color:var(--muted);font-size:15px;max-width:540px}
.pill-btn.big{min-height:48px;padding:0 22px;font-size:16px}
.team-grid{display:grid;gap:14px}
@media (min-width:900px){ .team-grid{grid-template-columns:repeat(auto-fill,minmax(360px,1fr))} }
.team-card{background:var(--surface);border-radius:18px;padding:16px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:12px}
.tc-top{display:flex;align-items:center;gap:12px}
.tc-who{flex:1;display:flex;flex-direction:column;min-width:0}
.tc-who strong{font-size:17px}
.tc-who small{color:var(--muted);font-weight:500}
.tc-login{color:var(--muted);font-size:14px}
.role-pill{min-height:36px;padding:0 14px;border-radius:999px;font-weight:800;font-size:14px;background:var(--surface2)}
.role-pill:disabled{cursor:default}
.r-admin{background:var(--accent);color:#fff}
.r-manager{background:#ffe8c7;color:#8f5300}
.r-member{background:#dcf1ff;color:#0b6aa8}
.r-guest{background:#efe2ff;color:#6b3fb0}
.tc-spaces{display:flex;flex-wrap:wrap;gap:8px}
.acc-chip{display:inline-flex;align-items:center;gap:9px;min-height:48px;padding:6px 14px 6px 6px;border-radius:14px;border:2px solid color-mix(in srgb,var(--sc) 50%,transparent);background:color-mix(in srgb,var(--sc) 10%,var(--surface));text-align:left}
.acc-chip:disabled{opacity:.6}
span.acc-chip{padding:8px 14px;font-weight:750;color:var(--accent)}
.acc-chip.off{border-style:dashed;border-color:var(--line);background:var(--surface)}
.acc-emo{width:32px;height:32px;border-radius:10px;background:var(--sc);display:grid;place-items:center;font-size:17px;flex:none}
.acc-chip.off .acc-emo{filter:grayscale(1);opacity:.55}
.acc-name{font-weight:750;font-size:15px}
.acc-state{font-size:13px;font-weight:750;color:color-mix(in srgb,var(--sc) 75%,var(--text));margin-left:2px}
.acc-chip.off .acc-state{color:var(--accent)}
.tc-actions{display:flex;gap:8px;flex-wrap:wrap}
.team-deleted{margin-top:20px;background:var(--surface);border-radius:18px;padding:14px 16px;box-shadow:var(--shadow)}
.team-deleted h3{margin:0 0 6px;font-size:16px}
.td-row{display:flex;justify-content:space-between;align-items:center;padding:6px 0;font-weight:650}
/* picker */
.pick-scrim{position:fixed;inset:0;z-index:80;background:transparent}
.picker{position:fixed;z-index:81;background:var(--surface);border-radius:16px;box-shadow:var(--shadow-lg);padding:8px;max-height:70vh;overflow:auto;border:1px solid var(--line)}
.picker.as-sheet{left:0;right:0;bottom:0;top:auto;border-radius:22px 22px 0 0;padding:10px 14px calc(16px + var(--safe-b));animation:sheetUp .22s ease;max-height:80vh}
@media (max-width:899px){ .pick-scrim{background:rgba(20,16,50,.32)} }
.pk-head{display:flex;justify-content:space-between;align-items:center;min-height:36px;padding:2px 6px 8px;font-weight:800;font-size:15px;color:var(--muted)}
.pk-items{display:flex;flex-direction:column;gap:7px}
.pk-item{display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 12px;border-radius:12px;text-align:left;font-weight:650;background:var(--surface2)}
.pk-item.on{box-shadow:inset 0 0 0 3px var(--accent)}
.pk-status{background:var(--pc);color:#fff;justify-content:center;font-weight:800;text-shadow:0 1px 1px rgba(0,0,0,.12)}
.pk-status.on{box-shadow:inset 0 0 0 3px rgba(0,0,0,.25)}
.pk-status.on::after{content:'✓';margin-left:6px}
.pk-rich{flex-direction:column;align-items:flex-start;justify-content:center;gap:1px}
.pk-rich small{color:var(--muted);font-weight:500;font-size:13px}
.pk-person .avatar{width:30px;height:30px;font-size:12px}
.pk-item .tick{margin-left:auto;color:var(--accent);display:grid}
.pk-item .tick svg{width:20px;height:20px}
@keyframes sheetUp{from{transform:translateY(100%)}to{transform:none}}
/* general sheet */
.gs-field{display:flex;flex-direction:column;gap:6px;margin:8px 0 12px}
.gs-field>span{font-size:14px;font-weight:750;color:var(--muted)}
.gs-field input{height:50px;border-radius:14px;border:2px solid var(--line);background:var(--surface);padding:0 14px;font-size:17px;outline:none;min-width:0}
.gs-field input:focus{border-color:var(--accent)}
.gs-label{font-size:13px;font-weight:800;color:var(--muted);margin:18px 0 8px;text-transform:uppercase;letter-spacing:.05em}
.gs-label small{text-transform:none;font-weight:600;letter-spacing:0;margin-left:6px}
.emoji-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:6px}
.em{height:44px;border-radius:12px;font-size:22px;background:var(--surface2)}
.em.on{box-shadow:inset 0 0 0 3px var(--accent);background:var(--accent-soft)}
.swatches{display:flex;flex-wrap:wrap;gap:10px}
.sw{width:40px;height:40px;border-radius:50%}
.sw.on{outline:3px solid var(--text);outline-offset:3px}
.st-edit,.fold-edit{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-direction:column;gap:8px}
.st-edit li,.fold-edit li{display:flex;align-items:center;gap:10px;background:var(--surface2);border-radius:14px;padding:6px 8px}
.fold-edit li>span{display:grid;place-items:center;width:34px;color:var(--muted)}
.st-color{width:36px;height:36px;border-radius:10px;flex:none}
.st-edit input,.fold-edit input{flex:1;min-width:0;border:0;background:none;font-size:16px;font-weight:650;height:40px;outline:none}
.st-done{font-size:12px;color:var(--muted);font-weight:700;white-space:nowrap;padding-right:6px}
.st-del{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;color:var(--muted);flex:none}
.st-del svg{width:18px;height:18px}
.gs-row{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}
.opt-row{display:flex;flex-wrap:wrap;gap:8px}
.opt{min-height:44px;padding:0 15px;border-radius:12px;background:var(--surface2);font-weight:650;display:inline-flex;align-items:center;gap:6px}
.opt svg{width:16px;height:16px}
.opt.on{background:var(--accent);color:#fff}
.opt.add{color:var(--accent);background:transparent;border:2px dashed var(--line)}
.role-opts{display:grid;gap:8px}
.role-opt{display:flex;flex-direction:column;align-items:flex-start;padding:12px 14px;border-radius:14px;background:var(--surface2);text-align:left;border:2px solid transparent}
.role-opt small{color:var(--muted)}
.role-opt.on{border-color:var(--accent);background:var(--accent-soft)}
.sp-toggles{display:flex;flex-direction:column;gap:8px}
.sp-tog{display:flex;align-items:center;gap:12px;min-height:52px;padding:6px 12px;border-radius:14px;background:var(--surface2);cursor:pointer}
.spt-name{flex:1;font-weight:700}
.seg2{display:flex;background:var(--surface2);border-radius:14px;padding:4px}
.seg2 button{flex:1;min-height:44px;border-radius:11px;font-weight:700;font-size:15px;color:var(--muted)}
.seg2 button.on{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}
.gs-two{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
@media (max-width:420px){ .gs-two{grid-template-columns:1fr} }
.gs-note{color:var(--muted);font-size:14px;margin:6px 0}
.share-box{width:100%;border-radius:14px;border:2px solid var(--line);padding:12px;font-size:15px;background:var(--surface2);resize:none;font-family:inherit}
input.switch{appearance:none;-webkit-appearance:none;width:52px;height:32px;border-radius:999px;background:var(--line);position:relative;transition:background .2s;flex:none;cursor:pointer;margin:0}
input.switch::after{content:'';position:absolute;top:3px;left:3px;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .2s}
input.switch:checked{background:var(--green)}
input.switch:checked::after{transform:translateX(20px)}
/* task sheet: status */
.status-pick{display:flex;flex-wrap:wrap;gap:8px}
.status-pick button{min-height:42px;padding:0 15px;border-radius:999px;font-weight:750;font-size:15px;background:color-mix(in srgb,var(--sc) 16%,var(--surface));border:2px solid transparent}
.status-pick button.on{background:var(--sc);color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.12)}
.lp-sp{margin-right:3px}
.person-pick.locked{opacity:.75}

/* v17 fixes after the first look */
.tppl .assignee{display:flex;align-items:center;margin:0;position:static;align-self:center;width:auto;height:auto;opacity:1}
.trow.done .tppl .assignee{opacity:.6}
/* scoped by layout (v19) */
  html[data-layout="cards"] .trow{padding:10px 10px 10px 8px;gap:8px 6px}
  html[data-layout="cards"] .trow>.tstatus{margin-left:40px}
  html[data-layout="cards"] .tmain{padding-right:38px}
  html[data-layout="cards"] .tppl{position:absolute;top:9px;right:9px}
  html[data-layout="cards"] .tstatus{min-width:0;padding:0 12px;font-size:13.5px;height:32px}
  html[data-layout="cards"] .tdue,html[data-layout="cards"] .tprio{height:32px;padding:0 10px;font-size:13.5px}
html[data-view="team"] .fab,html[data-view="mywork"] .fab.hide-mw{display:none}
.eyebrow .heb-date{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.eyebrow{overflow:hidden}

/* ===================== v18: properties, group by, toolbar, monday-style table ===================== */
.pthumb{width:28px;height:28px;border-radius:8px;object-fit:cover;flex:none;display:inline-grid;place-items:center;background:var(--surface2);font-size:16px;line-height:1}
.pthumb.xs{width:20px;height:20px;border-radius:6px;font-size:12px}
.pthumb.sm{width:26px;height:26px;border-radius:7px}
.pthumb.md{width:44px;height:44px;border-radius:12px;font-size:24px}
.pthumb.lg{width:48px;height:48px;border-radius:13px;font-size:26px}
.pthumb.all,.pthumb.none{color:var(--muted);font-weight:800}
/* picker search */
.pk-search{display:flex;align-items:center;gap:8px;background:var(--surface2);border-radius:12px;padding:0 12px;margin:0 2px 10px;height:46px}
.pk-search svg{width:18px;height:18px;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round;flex:none}
.pk-search input{flex:1;min-width:0;border:0;background:none;font-size:16px;outline:none;height:44px;color:var(--text)}
.picker.pk-tall{max-height:min(560px,80vh)}
.picker.as-sheet.pk-tall{height:78vh;display:flex;flex-direction:column}
.picker.as-sheet.pk-tall .pk-items{overflow:auto;flex:1;padding-bottom:8px}
.pk-x{font-size:18px;min-width:40px}
.pk-item{flex-wrap:wrap}
.pk-prop{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:12px;row-gap:0;align-items:center}
.pk-prop .pthumb{grid-row:1/3;width:40px;height:40px;border-radius:10px}
.pk-prop .pk-pn{font-weight:750;font-size:16px}
.pk-pn em{font-weight:500;color:var(--muted)}
.pk-sub{color:var(--muted);font-weight:550;font-size:13px}
.pk-none{color:var(--muted);text-align:center;padding:18px 6px;margin:0}
/* task panel: Property */
.prop-btn{display:flex;align-items:center;gap:12px;width:100%;min-height:64px;padding:8px 14px 8px 8px;border-radius:16px;background:var(--surface2);text-align:left;border:2px solid transparent}
.prop-btn:hover{border-color:color-mix(in srgb,var(--accent) 35%,transparent)}
.prop-btn .pb-t{display:flex;flex-direction:column;flex:1;min-width:0}
.prop-btn .pb-t b{font-size:17px;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.prop-btn .pb-t small{color:var(--muted);font-size:13.5px}
.prop-btn.empty .pb-t b{color:var(--accent)}
.prop-btn .pb-ch{color:var(--muted);font-weight:700;font-size:14px;white-space:nowrap}
/* My Work: group-by pills */
.gb-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:0 0 14px}
.gb-lbl{font-weight:800;font-size:15px;color:var(--muted)}
.gb-seg{display:inline-flex;background:var(--surface2);border-radius:999px;padding:4px;gap:4px}
.gb-seg button{height:44px;padding:0 18px;border-radius:999px;font-weight:800;font-size:16px;color:var(--muted);display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.gb-seg button.on{background:var(--accent);color:#fff;box-shadow:0 2px 8px color-mix(in srgb,var(--accent) 40%,transparent)}
.gb-seg.who{margin-left:auto}
.gb-seg.who button.on{background:var(--text);color:var(--surface)}
@media (max-width:560px){ .gb-row{gap:8px} .gb-lbl{width:100%;font-size:14px;margin-bottom:-2px} .gb-seg{flex:1 1 auto} .gb-seg button{flex:1;justify-content:center;padding:0 10px;font-size:15px} .gb-seg.who{margin-left:0;flex:1 1 100%} }
.mw-tiles{grid-template-columns:repeat(auto-fit,minmax(78px,1fr))}
.mw-lbl{white-space:normal;line-height:1.15}
/* toolbar row */
.wtools{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 6px;margin:0 0 10px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.wtools::-webkit-scrollbar{display:none}
.wt-btn{flex:none;display:inline-flex;align-items:center;gap:7px;height:42px;padding:0 14px;border-radius:999px;background:var(--surface);box-shadow:var(--shadow);font-weight:700;font-size:15px;color:var(--text);white-space:nowrap;max-width:260px}
.wt-btn .wt-l{overflow:hidden;text-overflow:ellipsis}
.wt-btn b{font-weight:800}
.wt-btn.on{background:color-mix(in srgb,var(--accent) 14%,var(--surface));box-shadow:inset 0 0 0 2px var(--accent);color:var(--accent)}
.wt-ic{font-size:16px}
.wt-x{flex:none;width:42px;height:42px;border-radius:50%;background:var(--surface2);font-weight:800;color:var(--muted);margin-left:-4px}
/* My Work quick add */
.mw-add{margin:0 0 16px;background:var(--surface);border-style:solid;border-color:var(--line)}
.mw-add .mw-list{flex:none;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px;border-radius:999px;background:var(--surface2);font-weight:700;font-size:14px;max-width:38%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mw-add .mw-list .dot{width:9px;height:9px;border-radius:3px;flex:none}
.mw-add .mw-list span:not(.dot){overflow:hidden;text-overflow:ellipsis}
/* group header: coloured bar + name */
.tg-head{border-left:6px solid var(--gc);padding-left:10px;border-radius:4px;font-size:19px}
.tg-name{display:inline-flex;align-items:center;gap:8px;min-width:0}
.tg-name .pthumb{width:26px;height:26px}
.tg-name small{font-size:13px;color:var(--muted);font-weight:600}
/* table cells (shared) */
.tppl .tp-name{font-weight:750;font-size:14.5px;color:var(--text);white-space:nowrap}
.tppl .tp-name em{font-style:normal;color:var(--muted);font-weight:700}
.tppl .tp-name.muted{color:var(--muted);font-weight:600}
.tp-add{color:var(--muted);font-weight:600}
.tprop{gap:7px;padding:0 10px;background:var(--surface2);color:var(--text);max-width:100%}
.tprop .tp-n{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
.tprop .pthumb{width:24px;height:24px;border-radius:7px}
.tdue small{font-weight:600;color:var(--muted)}
.tdue.today span{font-weight:850}
.tsum{display:none}
.bc-prop{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:var(--text);background:var(--surface);border-radius:999px;padding:2px 9px 2px 3px;align-self:flex-start;max-width:100%}
.bc-prop span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* desktop: a full monday-style table */
/* scoped by layout (v19) */
  html[data-layout="table"] .table{--cols:52px minmax(0,1fr) 180px 160px 128px 104px}
  html[data-layout="table"] .table.with-prop{--cols:52px minmax(0,1fr) 180px 160px 128px 104px 200px}
  html[data-layout="table"] .thead span:nth-child(3){text-align:left;padding-left:14px}
  html[data-layout="table"] .thead span:nth-child(7){text-align:left;padding-left:12px}
  html[data-layout="table"] .trow{min-height:52px}
  html[data-layout="table"] .ttitle{font-size:16.5px;font-weight:650}
  html[data-layout="table"] .tppl{justify-content:flex-start;padding:0 12px;gap:8px}
  html[data-layout="table"] .tppl .assignee{flex:none}
  html[data-layout="table"] .tppl .tp-name{overflow:hidden;text-overflow:ellipsis}
  html[data-layout="table"] .tstatus{font-size:15px;font-weight:800;color:#fff;border-left:2px solid var(--surface)}
  html[data-layout="table"] .tdue{font-size:14.5px;font-weight:700}
  html[data-layout="table"] .tdue.od span{color:var(--red);font-weight:850}
  html[data-layout="table"] .tdue.today span{color:var(--green)}
  html[data-layout="table"] .tdue.empty span{color:var(--muted);font-weight:500}
  html[data-layout="table"] .tprop{justify-content:flex-start;border-radius:0;background:none;padding:0 12px}
  html[data-layout="table"] .tprop.empty .tp-add,html[data-layout="table"] .tprio.empty .tp-add{opacity:0;transition:opacity .15s}
  html[data-layout="table"] .trow:hover .tprop.empty .tp-add,html[data-layout="table"] .trow:hover .tprio.empty .tp-add{opacity:1}
  html[data-layout="table"] .tprop.off{background:none}
  html[data-layout="table"] .tprop:hover{background:var(--surface2)}
  html[data-layout="table"] .tsum{display:grid;grid-template-columns:var(--cols);min-height:40px;align-items:center;background:color-mix(in srgb,var(--gc) 4%,var(--surface));border-top:1px solid var(--line);font-size:13px;color:var(--muted);font-weight:700}
  html[data-layout="table"] .tsum-n{padding-left:2px}
  html[data-layout="table"] .tsum-bar{display:flex;height:22px;margin:0 10px;border-radius:5px;overflow:hidden;gap:2px}
  html[data-layout="table"] .tsum-bar span{min-width:6px}
  html[data-layout="table"] .tsum-dates{text-align:center}
/* phone + iPad portrait: cards with a full-width solid status strip */
/* scoped by layout (v19) */
  html[data-layout="cards"] .trow{display:flex;flex-wrap:wrap;align-items:center;gap:7px 6px;padding:10px 10px 0 8px;overflow:hidden;border-left:6px solid var(--gc)}
  html[data-layout="cards"] .trow>.check{flex:none;align-self:flex-start}
  html[data-layout="cards"] .tmain{flex:1 1 calc(100% - 50px);padding-right:0}
  html[data-layout="cards"] .trow .tcell{height:34px;flex:none}
  html[data-layout="cards"] .trow>.tppl{position:static;order:1;margin-left:42px;padding:0 11px 0 3px;background:var(--surface2);border-radius:999px;gap:6px;min-width:0}
  html[data-layout="cards"] .trow>.tppl.empty{padding:0 11px 0 4px}
  html[data-layout="cards"] .trow>.tppl .avatar{width:28px;height:28px}
  html[data-layout="cards"] .trow>.tdue{order:2}
  html[data-layout="cards"] .trow>.tprop{order:3;max-width:min(52vw,320px);padding:0 11px 0 4px}
  html[data-layout="cards"] .trow>.tprio{order:4}
  html[data-layout="cards"] .trow>.tprio.empty,html[data-layout="cards"] .trow>.tprop.empty,html[data-layout="cards"] .trow>.tprop.off{display:none}
  html[data-layout="cards"] .trow>.tstatus{order:10;flex:1 1 100%;margin:4px -10px 0 -8px;height:40px;border-radius:0;font-size:15.5px;font-weight:800;min-width:0;justify-content:center;letter-spacing:.01em}
  html[data-layout="cards"] .trow.done{opacity:.85}
  html[data-layout="cards"] .tdue.od{background:var(--red-soft);color:var(--red);font-weight:850}
  html[data-layout="cards"] .tdue.today{background:var(--green-soft);color:var(--green)}
  html[data-layout="cards"] .tsum{display:flex;align-items:center;gap:10px;padding:4px 4px 0;font-size:13px;color:var(--muted);font-weight:700}
  html[data-layout="cards"] .tsum>span:empty{display:none}
  html[data-layout="cards"] .tsum-bar{display:flex;flex:1;height:10px;border-radius:5px;overflow:hidden;gap:2px}
@media (max-width:420px){
  html[data-layout="cards"] .ttitle{font-size:16.5px}
  html[data-layout="cards"] .trow>.tppl{margin-left:40px}
  html[data-layout="cards"] .trow>.tprop{max-width:46vw}
}
/* Settings → Properties */
.prop-spaces{padding:6px 0}
.ps-h{margin:0;padding:10px 16px 4px;display:flex;flex-direction:column}
.ps-h small{color:var(--muted);font-size:13px}
.set-search{margin:10px 0 8px}
.manage-props li{display:flex;align-items:center;gap:10px;padding:8px 10px}
.manage-props li.arch{opacity:.7}
.pr-ph{flex:none;border-radius:12px}
.pr-txt{flex:1;min-width:0;display:flex;flex-direction:column}
.pr-txt input{border:0;background:none;font-size:16px;font-weight:700;padding:2px 0;min-width:0;color:var(--text)}
.pr-txt input.pr-loc{font-size:13.5px;font-weight:500;color:var(--muted)}
.pr-n{font-size:13px;color:var(--muted);font-weight:700;min-width:16px;text-align:right}
.pr-arch{height:36px;padding:0 12px;font-size:14px}
.pr-empty{color:var(--muted);padding:14px}
.arch-btn{margin:6px 0 0}

.thead[hidden]{display:none!important}

/* ===================== v19: List / Table layout ===================== */
.tscroll{min-width:0}
.lsub{display:none}
/* the switch (My Work row, side menu); in lists it is the view buttons: List · Table · Board · Calendar */
.lseg{display:inline-flex;align-items:center;background:var(--surface2);border-radius:14px;padding:4px;gap:2px}
.lseg-l{font-size:13px;font-weight:800;color:var(--muted);padding:0 8px;text-transform:uppercase;letter-spacing:.05em}
.lseg button{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:40px;min-width:44px;padding:0 14px;border-radius:11px;font-weight:750;font-size:15px;color:var(--muted)}
.lseg button svg,.vseg button svg{width:19px;height:19px}
.lseg button.on{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}
.lseg-mw{margin-left:auto}
.sb-lay{padding:2px 14px 4px;display:flex;flex-direction:column;gap:6px}
.sb-lay .lseg{display:flex;width:100%}
.sb-lay .lseg-l{display:none}
.sb-lay .lseg button{flex:1}
.sb-lay small{color:var(--muted);font-size:12.5px;padding-left:6px}
@media (max-width:560px){
  .gb-row .gb-seg.who{flex:1 1 0}
  .lseg-mw{flex:1 1 0;margin:0;border-radius:999px}
  .lseg-mw .lseg-l{display:none}
  .lseg-mw button{flex:1;height:44px;border-radius:999px;padding:0 8px}
}
@media (max-width:440px){ .vseg button svg{display:none} .vseg button{font-size:14px;padding:0 4px} }

/* calmer chrome (both layouts) */
.wt-btn{box-shadow:none;background:var(--surface2);height:40px;font-size:14.5px;font-weight:650}
.wt-btn.on{box-shadow:inset 0 0 0 1.5px var(--accent)}
.wt-x{width:40px;height:40px}
.gb-seg button{height:42px;font-size:15px;font-weight:750}
.gb-seg button.on{box-shadow:none}

/* List (default on phone + iPad): calm rows like the Personal app — tick, title, one quiet line, a small status pill */
html[data-layout="list"] .tg-head{border-left:0;padding-left:2px;font-size:18px}
html[data-layout="list"] .trows{gap:8px}
html[data-layout="list"] .tsum{display:none}
html[data-layout="list"] .trow{display:flex;flex-wrap:wrap;align-items:flex-start;column-gap:10px;row-gap:0;padding:13px 12px 13px 12px;background:var(--surface);border:0;border-radius:16px;box-shadow:var(--shadow);overflow:visible}
html[data-layout="list"] .trow>.check{order:0;margin:-2px 0 0}
html[data-layout="list"] .trow>.tmain{order:1;flex:1 1 0;min-width:0;padding:1px 0 0;gap:0}
html[data-layout="list"] .trow>.tmain .tsub{display:none}
html[data-layout="list"] .ttitle{font-size:16.5px;font-weight:600;line-height:1.3}
html[data-layout="list"] .trow>.tstatus{order:2;flex:none;margin:0;height:26px;padding:0 11px;min-width:0;max-width:44%;border-radius:999px;font-size:12.5px;font-weight:750;letter-spacing:.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:26px;text-align:center}
html[data-layout="list"] .trow::before{content:"";order:3;flex-basis:100%;height:0}
html[data-layout="list"] .trow::after{content:"";order:4;width:30px;height:0;flex:none}
html[data-layout="list"] .trow>.tdue{order:5}
html[data-layout="list"] .trow>.tppl{order:6}
html[data-layout="list"] .trow>.tprop{order:7}
html[data-layout="list"] .trow>.tprio{order:8}
html[data-layout="list"] .trow>.lsub{order:9;display:inline-flex;align-items:center;gap:4px 10px;height:24px;margin-top:6px;font-size:12.5px;color:var(--muted)}
html[data-layout="list"] .trow>.tcell:not(.tstatus){position:static;height:24px;margin:6px 12px 0 0;padding:0;border-radius:999px;font-size:13px;font-weight:600;background:none;color:var(--muted);gap:5px;min-width:0;max-width:62%;flex:none;border:0}
html[data-layout="list"] .trow>.tdue svg{width:13px;height:13px}
html[data-layout="list"] .trow>.tdue.today{background:var(--green-soft);color:var(--green);padding:0 8px;font-weight:750}
html[data-layout="list"] .trow>.tdue.od{background:var(--red-soft);color:var(--red);padding:0 8px;font-weight:750}
html[data-layout="list"] .trow>.tppl{padding:0}
html[data-layout="list"] .trow>.tppl .avatar{width:20px;height:20px;font-size:9px}
html[data-layout="list"] .trow>.tppl .assignee.stack .avatar{margin-left:-6px;border-width:1.5px}
html[data-layout="list"] .trow>.tppl .assignee.stack .avatar:first-child{margin-left:0}
html[data-layout="list"] .tppl .tp-name{font-size:12.5px;font-weight:650;color:var(--muted)}
html[data-layout="list"] .trow>.tppl.empty{background:none;padding:0}
html[data-layout="list"] .trow>.tppl.empty .tp-name{display:none}
html[data-layout="list"] .trow>.tppl.empty .av-add{width:22px;height:22px;border-width:1.5px}
html[data-layout="list"] .trow>.tppl.empty .av-add svg{width:12px;height:12px}
html[data-layout="list"] .trow>.tprop .pthumb{width:16px;height:16px;border-radius:5px}
html[data-layout="list"] .trow>.tprop .tp-n{font-weight:650}
html[data-layout="list"] .trow>.tcell.tprio{background:none;color:var(--pc);font-weight:750}
html[data-layout="list"] .trow>.tprio.p1,html[data-layout="list"] .trow>.tprio.p2{display:none}
html[data-layout="list"] .trow>.tdue.empty,html[data-layout="list"] .trow>.tprio.empty,html[data-layout="list"] .trow>.tprop.empty,html[data-layout="list"] .trow>.tprop.off{display:none}
html[data-layout="list"] .trow.done{opacity:.8}
@media (max-width:480px){ html[data-layout="list"] .trow>.tppl:not(.empty) .tp-name{display:none} html[data-layout="list"] .trow>.tcell:not(.tstatus){margin-right:10px} }
html[data-layout="list"] .trow.done>.tstatus{opacity:.75}
@media (min-width:900px){
  html[data-layout="list"] .trows{gap:6px}
  html[data-layout="list"] .trow{padding:12px 16px}
  html[data-layout="list"] .trow:hover{box-shadow:var(--shadow),inset 0 0 0 1.5px color-mix(in srgb,var(--gc) 35%,transparent)}
  html[data-layout="list"] .trow>.tstatus{max-width:180px}
}

/* Table on phone / iPad portrait: the same monday-style table, Task column pinned, swipe sideways for the rest */
@media (max-width:899px){
  html[data-layout="table"] .table{--cols:44px clamp(150px,42vw,250px) 122px 136px 116px 100px}
  html[data-layout="table"] .table.with-prop{--cols:44px clamp(150px,42vw,250px) 122px 136px 116px 100px 184px}
  html[data-layout="table"] .tscroll{container-type:inline-size;margin-top:6px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scroll-behavior:smooth;background:var(--surface);border-radius:14px;box-shadow:var(--shadow);border-left:6px solid var(--gc);scrollbar-width:thin}
  html[data-layout="table"] .thead{width:max-content;min-width:100%;padding:0;background:var(--surface2);border-bottom:1px solid var(--line);font-size:12.5px}
  html[data-layout="table"] .thead span{display:flex;align-items:center;justify-content:center;min-height:34px;padding:0 6px}
  html[data-layout="table"] .thead span:nth-child(3),html[data-layout="table"] .thead span:nth-child(7){justify-content:flex-start;padding-left:12px}
  html[data-layout="table"] .trows{width:max-content;min-width:100%;margin-top:0;background:none;border-radius:0;box-shadow:none;border-left:0;overflow:visible}
  html[data-layout="table"] .trow{min-height:58px;overflow:visible;padding:0}
  /* Status sits right next to the task name; then Owner, Due date, Priority, Property (explicit cells, so the pinned backdrop can sit under the Task column) */
  html[data-layout="table"] .trow>*,html[data-layout="table"] .thead>span{grid-row:1}
  html[data-layout="table"] .trow>.check,html[data-layout="table"] .thead span:nth-child(1){grid-column:1}
  html[data-layout="table"] .trow>.tmain,html[data-layout="table"] .thead span:nth-child(2){grid-column:2}
  html[data-layout="table"] .trow>.tstatus,html[data-layout="table"] .thead span:nth-child(4){grid-column:3}
  html[data-layout="table"] .trow>.tppl,html[data-layout="table"] .thead span:nth-child(3){grid-column:4}
  html[data-layout="table"] .trow>.tdue,html[data-layout="table"] .thead span:nth-child(5){grid-column:5}
  html[data-layout="table"] .trow>.tprio,html[data-layout="table"] .thead span:nth-child(6){grid-column:6}
  html[data-layout="table"] .trow>.tprop,html[data-layout="table"] .thead span:nth-child(7){grid-column:7}
  /* pinned Task column (tick + name) */
  html[data-layout="table"] .trow>.check{position:sticky;left:0;z-index:3;align-self:center;justify-self:center}
  html[data-layout="table"] .trow::before{content:"";grid-row:1;grid-column:1/3;position:sticky;left:0;z-index:2;background:var(--surface);border-right:1px solid var(--line);pointer-events:none}
  html[data-layout="table"] .trow>.tmain{position:sticky;left:44px;z-index:3;padding:8px 10px 8px 2px;justify-content:center;min-height:58px}
  html[data-layout="table"] .thead span:nth-child(1),html[data-layout="table"] .thead span:nth-child(2){position:sticky;z-index:3;background:var(--surface2)}
  html[data-layout="table"] .thead span:nth-child(1){left:0}
  html[data-layout="table"] .thead span:nth-child(2){left:44px;justify-content:flex-start;padding-left:2px;border-right:1px solid var(--line)}
  html[data-layout="table"] .tscroll.scrolled .trow::before,html[data-layout="table"] .tscroll.scrolled .thead span:nth-child(2){box-shadow:6px 0 8px -4px rgba(20,16,50,.18)}
  html[data-layout="table"] .ttitle{font-size:16px;font-weight:650;line-height:1.28;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  html[data-layout="table"] .tsub{font-size:12.5px;gap:4px 8px}
  html[data-layout="table"] .trow>.tppl{position:static;margin:0}
  html[data-layout="table"] .tcell{font-size:14.5px;min-height:58px}
  html[data-layout="table"] .tstatus{font-size:14.5px;font-weight:800;padding:0 8px;text-align:center;line-height:1.15}
  html[data-layout="table"] .tdue,html[data-layout="table"] .tprio{height:auto;padding:0 8px;font-size:14px}
  html[data-layout="table"] .tprio.empty .tp-add,html[data-layout="table"] .tprop.empty .tp-add{opacity:1;font-size:13.5px}
  html[data-layout="table"] .tppl{padding:0 10px}
  html[data-layout="table"] .tsum{position:sticky;left:0;display:flex;align-items:center;gap:10px;width:calc(100vw - 50px);width:100cqw;max-width:100cqw;box-sizing:border-box;padding:0 10px;min-height:38px;border-top:1px solid var(--line);background:color-mix(in srgb,var(--gc) 4%,var(--surface))}
  html[data-layout="table"] .tsum>span:empty{display:none}
  html[data-layout="table"] .tsum-bar{flex:1;height:12px;margin:0}
  html[data-layout="table"] .tsum-dates{white-space:nowrap}
}

/* v20: Property off in this task's space — calm, muted, never a dead blank */
.tprop.off .tp-off{color:var(--muted,#8a8fa3);font-weight:550;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tprop.off.can{cursor:pointer}
.tprop.off.can .tp-off{opacity:.75}
.tprop.off.can:hover .tp-off,.tprop.off.can:focus-visible .tp-off{opacity:1;color:var(--accent)}
.tprop.off:not(.can){cursor:help}
.pk-note{margin:2px 4px 10px;color:var(--muted,#8a8fa3);font-size:14px;line-height:1.35}
.pk-item.pk-turnon{background:var(--accent);color:#fff;justify-content:center}
.pk-item.pk-turnon .pthumb{background:rgba(255,255,255,.2)}
#propField.off .prop-btn{background:none;box-shadow:inset 0 0 0 1.5px var(--line,#e3e5ee)}
#propField.off .prop-btn .pb-t b{color:var(--muted,#8a8fa3);font-weight:650}
#propField.off .prop-btn .pb-ch{color:var(--accent)}
#propField.off .prop-btn:disabled{opacity:.85;cursor:default}

/* v20: My Work board */
.mw-board{margin-top:6px}
.mw-board .bc-list{font-size:12.5px}

/* v21: per-list Property setting (Edit list) and the quiet dash in My Work */
.lp-seg .opt{flex-direction:column;justify-content:center;align-items:flex-start;gap:0;padding:6px 15px;line-height:1.2}
.lp-seg .opt small{display:block;font-size:11.5px;font-weight:500;color:var(--muted);margin-top:1px}
.lp-seg .opt.on small{color:inherit;opacity:.85}
.lp-note{margin-top:4px}
.tcell.tprop.off.quiet{cursor:default}
.tcell.tprop.off.quiet .tp-off{color:var(--muted);opacity:.7}

/* ---------- v22: property chip on the right of List rows (beside the status pill), tappable on Board cards ---------- */
html[data-layout="list"] .trow>.tcell.tprop{order:2;flex:0 1 auto;align-self:flex-start;height:26px;margin:0;padding:0 11px 0 3px;max-width:min(200px,28%);gap:6px;border-radius:999px;background:var(--surface2);color:var(--text);font-size:12.5px;font-weight:700;border:0;cursor:pointer;transition:background .15s,box-shadow .15s}
html[data-layout="list"] .trow>.tstatus{order:3}
html[data-layout="list"] .trow::before,html[data-layout="list"] .trow::after{order:4}
html[data-layout="list"] .trow>.tcell.tprop .pthumb{width:20px;height:20px;border-radius:999px}
html[data-layout="list"] .trow>.tcell.tprop .tp-n{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
html[data-layout="list"] .trow>.tcell.tprop.empty{display:inline-flex;padding:0 11px;background:none;box-shadow:inset 0 0 0 1.5px var(--line);color:var(--muted)}
html[data-layout="list"] .trow>.tcell.tprop.empty .tp-add{font-weight:650;opacity:.9;white-space:nowrap}
html[data-layout="list"] .trow>.tcell.tprop.ro{cursor:default}
html[data-layout="list"] .trow>.tcell.tprop.empty.ro,html[data-layout="list"] .trow.done>.tcell.tprop.empty,html[data-layout="list"] .trow>.tcell.tprop.off{display:none}
@media (hover:hover){
  html[data-layout="list"] .trow>.tcell.tprop:not(.ro):hover{box-shadow:inset 0 0 0 1.5px var(--accent)}
  html[data-layout="list"] .trow>.tcell.tprop.empty:not(.ro):hover{color:var(--accent)}
}
/* phone: keep the top line calm (title + status); the chip sits on the right of the meta line, under the status pill */
@media (max-width:600px){
  html[data-layout="list"] .trow>.tcell.tprop{order:10;margin:6px 0 0 auto;height:24px;max-width:52%}
  html[data-layout="list"] .trow>.tcell.tprop .pthumb{width:18px;height:18px}
  html[data-layout="list"] .trow>.tcell.tprop.empty{padding:0 10px}
  html[data-layout="list"] .trow>.lsub{flex:0 1 auto;min-width:0;overflow:hidden}
  html[data-layout="list"] .trow>.lsub .tl-tag{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html[data-layout="list"] .trow>.lsub>*{flex:none}
  html[data-layout="list"] .trow>.lsub>.tl-tag{flex:0 1 auto}
  html[data-layout="list"] .trow.has-prop>.lsub .tl-tag{display:none}   /* the property chip takes the list name's place on a phone */
  html[data-layout="list"] .trow.has-prop>.lsub:not(:has(>:not(.tl-tag))){display:none}
}
.tprop.empty.ro .tp-add{visibility:hidden}
button.bc-prop{border:0;font:inherit;font-size:13px;font-weight:700;cursor:pointer;min-height:26px;transition:box-shadow .15s}
button.bc-prop.ro{cursor:default}
button.bc-prop.empty{background:none;box-shadow:inset 0 0 0 1.5px var(--line);color:var(--muted);padding:2px 10px;font-weight:650}
@media (hover:hover){ button.bc-prop:not(.ro):hover{box-shadow:inset 0 0 0 1.5px var(--accent)} button.bc-prop.empty:hover{color:var(--accent)} }
.pk-item.pk-remove{position:sticky;bottom:0;z-index:2;background:var(--surface);color:var(--red);box-shadow:inset 0 0 0 1.5px var(--red-soft),0 -10px 14px -6px var(--surface);justify-content:center;margin-top:4px;font-weight:700;flex:none}
.pk-item.pk-remove .pk-rm-x{font-size:13px}

/* ---------- v23: subtasks (rows, panel) ---------- */
.ti.sub-tog{border:0;background:none;padding:2px 6px 2px 2px;margin:-2px 0;border-radius:8px;color:var(--muted);font:inherit;font-weight:700;display:inline-flex;align-items:center;gap:2px;cursor:pointer}
.ti.sub-tog svg{width:14px;height:14px;transition:transform .15s;stroke:currentColor;fill:none;stroke-width:2.4}
.ti.sub-tog.open svg{transform:rotate(90deg)}
.ti.sub-tog:hover{background:var(--surface2);color:var(--text)}
.ti.sub-n svg,.bc-meta .sub-n svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:2.2}
.ti.sub-of{color:var(--muted);font-weight:600;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block}
.sub-wrap{display:flex;flex-direction:column;gap:6px;margin:-2px 0 4px 34px;padding-left:12px;border-left:2px solid var(--line)}
html[data-layout="list"] .trow.sub{box-shadow:none;background:var(--surface);padding:10px 12px;border-radius:12px}
html[data-layout="list"] .trow.sub .ttitle{font-size:15px;font-weight:600}
html[data-layout="table"] .sub-wrap{margin:0 0 0 28px;gap:0;border-left-width:2px}
.sub-add{display:flex;align-items:center;gap:8px;padding:6px 10px;color:var(--muted)}
.sub-add input{flex:1;border:0;background:none;font:inherit;font-size:14.5px;padding:6px 0;color:var(--text);outline:none}
.sub-add .plus{font-weight:700}
.bc-sub-of{font-size:12px;color:var(--muted);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sub-crumb{display:inline-flex;align-items:center;gap:6px;border:0;background:var(--surface2);color:var(--muted);font:inherit;font-size:13.5px;font-weight:650;padding:6px 12px;border-radius:999px;margin:0 0 10px;max-width:100%;cursor:pointer}
.sub-crumb .sc-t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sub-crumb:hover{color:var(--accent)}
.real-subs{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.rsub{display:flex;align-items:center;gap:8px;min-height:44px;padding:2px 0;border-bottom:1px solid var(--line)}
.rsub:last-child{border-bottom:0}
.rsub .check{flex:none}
.rs-title{flex:1;min-width:0;text-align:left;border:0;background:none;font:inherit;font-size:15px;font-weight:600;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:8px 0;cursor:pointer}
.rsub.done .rs-title{color:var(--muted);text-decoration:line-through}
.rs-due{border:0;background:none;font:inherit;font-size:12.5px;font-weight:650;color:var(--muted);padding:4px;cursor:pointer}
.rs-due.od{color:var(--red)}
.rs-who{border:0;background:none;padding:0;display:inline-flex;cursor:pointer}
.rs-who .avatar{width:22px;height:22px;font-size:10px}
.rs-st{border:0;font:inherit;font-size:11.5px;font-weight:750;color:#fff;background:var(--sc);border-radius:999px;padding:3px 9px;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;flex:none}
.real-add{margin-top:2px}
.subtask .x.conv svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2.2}
.subtask .x.conv{opacity:.55}
.subtask .x.conv:hover{opacity:1;color:var(--accent)}

/* ---------- v23: Reports ---------- */
.rp{display:flex;flex-direction:column;gap:14px;padding-bottom:40px}
.rp-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.rp-h{margin:0;font-size:17px}
.rp-seg{display:inline-flex;background:var(--surface2);border-radius:12px;padding:3px}
.rp-seg button{border:0;background:none;font:inherit;font-size:14px;font-weight:700;color:var(--muted);padding:7px 14px;border-radius:9px;cursor:pointer}
.rp-seg button.on{background:var(--surface);color:var(--text);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.rp-acts{display:flex;align-items:center;gap:6px}
.rp-pick{display:inline-flex;align-items:center;gap:6px;border:0;background:var(--surface);font:inherit;font-size:14px;font-weight:650;color:var(--text);padding:6px 12px 6px 6px;border-radius:999px;box-shadow:inset 0 0 0 1.5px var(--line);cursor:pointer}
.rp-pick .avatar{width:24px;height:24px;font-size:10px}
.rp-all{width:24px;height:24px;display:inline-grid;place-items:center;font-size:14px}
.rp-more{border:0;background:none;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;color:var(--muted);cursor:pointer}
.rp-more svg{width:20px;height:20px}
.rp-more:hover{background:var(--surface2)}
.rp-period{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
.rp-period button{border:0;background:none;font:inherit;font-size:13.5px;font-weight:650;color:var(--muted);padding:6px 12px;border-radius:999px;white-space:nowrap;cursor:pointer}
.rp-period button.on{background:var(--text);color:var(--surface)}
.rp-custom{display:flex;align-items:center;gap:8px;color:var(--muted)}
.rp-custom button{border:0;background:var(--surface2);font:inherit;font-size:14px;font-weight:650;color:var(--text);padding:7px 14px;border-radius:10px;cursor:pointer}
.rp-filters{display:flex;gap:4px;flex-wrap:wrap;margin-top:-6px}
.rp-filters button{border:0;background:none;font:inherit;font-size:13px;font-weight:600;color:var(--muted);padding:4px 8px;border-radius:8px;cursor:pointer}
.rp-filters button.on{color:var(--accent)}
.rp-filters button:hover{background:var(--surface2)}
.rp-back{align-self:flex-start;border:0;background:none;font:inherit;font-size:14px;font-weight:650;color:var(--accent);padding:2px 0;cursor:pointer}
.rp-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
@media (min-width:900px){ .rp-tiles{grid-template-columns:repeat(6,1fr)} }
.rp-tile{background:var(--surface);border-radius:14px;padding:12px 12px 10px;display:flex;flex-direction:column;gap:2px;box-shadow:var(--shadow)}
.rp-tile b{font-size:24px;font-weight:800;line-height:1.1;color:var(--text)}
.rp-tile span{font-size:12px;font-weight:650;color:var(--muted);display:flex;align-items:center;gap:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rp-tile span::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--tc);flex:none}
.rp-sec{display:flex;flex-direction:column;gap:6px}
.rp-sec h3{margin:8px 0 2px;font-size:16px;display:flex;align-items:center;gap:8px}
.rp-sec h3 span{font-size:13px;color:var(--muted);font-weight:650}
.rp-sec h4{margin:8px 0 0;font-size:12.5px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.rp-none{color:var(--muted);font-size:14px;margin:2px 0}
.rp-task{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:0;background:var(--surface);border-radius:14px;padding:11px 14px;font:inherit;color:var(--text);box-shadow:var(--shadow);cursor:pointer}
.rp-tt{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.rp-of{font-size:12px;color:var(--muted);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rp-title{font-size:15px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rp-task.done .rp-title{color:var(--muted)}
.rp-meta{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:12.5px;color:var(--muted);align-items:center}
.rp-p{display:inline-flex;align-items:center;gap:5px;font-weight:650;color:var(--text)}
.rp-p .pthumb{width:16px;height:16px;border-radius:50%}
.rp-due{font-weight:700}
.rp-due.od{color:var(--red)}
.rp-due.today{color:var(--green)}
.rp-st{flex:none;font-size:11.5px;font-weight:750;color:#fff;background:var(--sc);border-radius:999px;padding:4px 10px;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rp-ok{flex:none;width:24px;height:24px;border-radius:50%;background:var(--green-soft);color:var(--green);display:grid;place-items:center}
.rp-ok svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:3}
.rp-team{background:var(--surface);border-radius:16px;box-shadow:var(--shadow);overflow:hidden}
.rp-trow{display:grid;grid-template-columns:minmax(0,2.2fr) repeat(4,minmax(44px,.7fr)) minmax(60px,1.2fr);align-items:center;gap:6px;width:100%;border:0;background:none;font:inherit;color:var(--text);padding:12px 14px;text-align:center;border-bottom:1px solid var(--line);cursor:pointer;font-size:14.5px;font-weight:650}
.rp-trow:last-child{border-bottom:0}
.rp-trow:disabled{cursor:default;color:var(--muted)}
.rp-trow:not(.rp-thead):not(:disabled):hover{background:var(--surface2)}
.rp-thead{font-size:12px;color:var(--muted);font-weight:700;cursor:default;padding:9px 14px}
.rp-trow .red{color:var(--red)}
.rp-pn{display:flex;align-items:center;gap:8px;text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.rp-pn .avatar{width:26px;height:26px;font-size:11px;flex:none}
.rp-bar{height:6px;border-radius:99px;background:var(--surface2);overflow:hidden;display:block}
.rp-bar i{display:block;height:100%;background:#00c875;border-radius:99px}
@media (max-width:600px){ .rp-trow{grid-template-columns:minmax(0,1.6fr) repeat(4,minmax(30px,.6fr));font-size:14px;padding:12px 10px} .rp-trow .rp-bar,.rp-thead span:last-child{display:none} .rp-tile b{font-size:21px} }
@media print{
  #sidebar,.tabbar,#fab,.topbar .icon-btn,.rp-acts,.rp-seg,.rp-period button:not(.on),.rp-filters,.rp-back,#toast,#viewBar{display:none !important}
  body{background:#fff} .rp-task,.rp-tile,.rp-team{box-shadow:none;border:1px solid #ddd} .rp-task{break-inside:avoid}
}

/* ---------- v23: Search · Filter · Sort ---------- */
.wt-clear{border:0;background:none;font:inherit;font-size:13px;font-weight:650;color:var(--accent);padding:4px 6px;cursor:pointer;margin-left:-4px}
.fsheet .sheet-body{padding-bottom:20px}
.fsheet{max-width:560px}
.fsec{margin:6px 0 14px}
.fsec-h{display:flex;align-items:center;justify-content:space-between;font-size:12.5px;font-weight:750;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin:0 0 8px}
.fsec-h .text-btn{font-size:13px;text-transform:none;letter-spacing:0}
.fchips{display:flex;flex-wrap:wrap;gap:7px}
.fchips.fprops{max-height:212px;overflow:auto;padding:2px}
.fchip{display:inline-flex;align-items:center;gap:7px;border:0;background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--line);font:inherit;font-size:14px;font-weight:650;color:var(--text);padding:7px 12px;border-radius:999px;cursor:pointer;max-width:100%}
.fchip span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fchip .avatar{width:22px;height:22px;font-size:10px}
.fchip .pthumb.xs{width:22px;height:22px;border-radius:50%}
.fchip.on{background:var(--accent-soft);box-shadow:inset 0 0 0 2px var(--accent);color:var(--accent)}
.fdot{width:10px;height:10px;border-radius:50%;flex:none}
.fsearch{margin:0 0 8px}
.fnote{font-size:13px;color:var(--muted);margin:4px 0 0}

/* ---------- v23: delete a list (calm choice) ---------- */
.dl-q{font-size:15.5px;margin:0 0 12px;line-height:1.4}
.dl-opts{display:flex;flex-direction:column;gap:8px}
.dl-opt{display:flex;align-items:flex-start;gap:12px;text-align:left;border:0;background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--line);border-radius:14px;padding:13px 14px;font:inherit;color:var(--text);cursor:pointer}
.dl-opt b{display:block;font-size:15px}
.dl-opt small{display:block;color:var(--muted);font-size:13px;margin-top:2px;line-height:1.35}
.dl-opt .dl-warn{color:var(--amber,#c77700);font-weight:650}
.dl-r{flex:none;width:20px;height:20px;border-radius:50%;box-shadow:inset 0 0 0 2px var(--line);margin-top:1px}
.dl-opt.on{box-shadow:inset 0 0 0 2px var(--accent)}
.dl-opt.on .dl-r{box-shadow:inset 0 0 0 6px var(--accent)}
.dl-opt.danger.on{box-shadow:inset 0 0 0 2px var(--red)}
.dl-opt.danger.on .dl-r{box-shadow:inset 0 0 0 6px var(--red)}
.dl-opt.danger b{color:var(--red)}
.dl-sure{display:flex;align-items:center;gap:10px;margin:12px 2px 0;font-weight:650;color:var(--red)}
.dl-sure input{width:20px;height:20px;accent-color:var(--red)}
.gs-note{font-size:13.5px;color:var(--muted);margin:10px 0 0}
.rp-thead span:first-child{text-align:left}

.fsp{display:flex;flex-wrap:wrap;gap:7px;width:100%;padding-bottom:4px}
.fsp .fchip:not(:first-child){font-weight:600;background:none}
.fsp .fchip.on:not(:first-child){background:var(--accent-soft)}
html[data-view="reports"] #fab{display:none}

/* v24: one calm header — the layout switch is a small icon at the end of Search · Filter · Sort */
.wt-lay{margin-left:auto;gap:4px;padding:0 12px}
.wt-lay svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round}
.wt-lay .wt-caret{font-size:11px;color:var(--muted)}
.pk-lay svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;vertical-align:-3px}
.mw-hello p{margin-bottom:12px}
.gb-row{margin-bottom:16px}
.mw-tiles{margin-bottom:18px}

/* v24: reminders + repeat in the task panel */
.rem-field{margin:10px 0 2px}
.rem-chips{display:flex;flex-wrap:wrap;gap:8px}
.rem-chips:empty{display:none}
.rem-chips + .rem-acts{margin-top:8px}
.rem-chip{display:inline-flex;align-items:center;background:color-mix(in srgb,var(--accent) 10%,var(--surface));border-radius:12px;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 25%,transparent);max-width:100%}
.rem-chip.warn{background:color-mix(in srgb,#fdab3d 14%,var(--surface));box-shadow:inset 0 0 0 1px color-mix(in srgb,#fdab3d 40%,transparent)}
.rc-main{display:flex;flex-direction:column;align-items:flex-start;padding:7px 4px 7px 12px;font-weight:700;font-size:14.5px;text-align:left;min-height:44px;justify-content:center}
.rc-main small{font-weight:600;font-size:12px;color:var(--muted)}
.rc-x{width:36px;height:44px;display:grid;place-items:center;color:var(--muted)}
.rc-x svg{width:14px;height:14px}
.rem-hint{width:100%;margin:2px 2px 0;font-size:12.5px;color:#b26b00}
.rem-acts{display:flex;gap:8px;flex-wrap:wrap}
.rem-add{display:inline-flex;align-items:center;gap:7px;height:42px;padding:0 14px;border-radius:999px;background:var(--surface2);font-weight:700;font-size:14.5px;color:var(--text)}
.rem-add.on{box-shadow:inset 0 0 0 1.5px var(--accent);color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,var(--surface))}
.rem-custom{display:flex;gap:8px;align-items:center;margin-top:8px;flex-wrap:wrap}
.rem-custom input{height:44px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--text);padding:0 10px;font-size:16px}
.t-rep{font-size:12px;opacity:.75}
/* v24: Settings → Notifications */
.nt-card{margin-bottom:4px}
.nt-push,.nt-email,.nt-slack{display:flex;align-items:center;gap:12px;padding:12px 16px;min-height:60px;border-bottom:1px solid var(--line)}
.nt-ic{font-size:20px;width:26px;text-align:center;flex:none}
.nt-pt,.nt-et{flex:1;min-width:0;display:flex;flex-direction:column}
.nt-pt small{color:var(--muted);font-size:13px}
.nt-et input{border:0;background:none;outline:none;font-size:16px;padding:4px 0 0;color:var(--text);min-width:0}
.nt-pbtn{flex:none;height:38px;padding:0 16px}
.nt-pbtn.ghost{background:var(--surface2);color:var(--text);box-shadow:none}
.nt-grid{padding:4px 16px 8px;border-bottom:1px solid var(--line)}
.nt-gh,.nt-gr{display:grid;grid-template-columns:1fr 64px 64px;align-items:center;gap:4px}
.nt-gh{font-size:12px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;padding:6px 0 2px}
.nt-gh span{text-align:center}
.nt-gr{min-height:50px;border-top:1px solid color-mix(in srgb,var(--line) 60%,transparent)}
.nt-gn{display:flex;gap:10px;align-items:center;font-weight:650;font-size:15px}
.nt-gn small{display:block;font-weight:500;font-size:12px;color:var(--muted)}
.nt-cb{display:grid;place-items:center}
.tog.sm{transform:scale(.82)}
.tog:disabled{opacity:.35}
/* v30: Settings → Slack */
.sl-head{border-bottom:1px solid var(--line)}
.sl-card .tog-row.sub{padding-left:16px}
.sl-card .tog-row small{display:block;font-weight:500;font-size:12px;color:var(--muted)}
.sl-code{padding:12px 16px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:6px}
.sl-code p{margin:0;font-size:14px;color:var(--muted)}
.sl-code code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:18px;font-weight:700;letter-spacing:.04em;background:var(--surface2);padding:8px 12px;border-radius:10px;align-self:flex-start;user-select:all;-webkit-user-select:all}
.sl-code small{font-size:12px;color:var(--muted)}
.sl-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;padding:12px 16px;min-height:52px;border-bottom:1px solid var(--line)}
.sl-k{font-weight:650;font-size:15px;flex:1 1 150px}
.sl-v{color:var(--muted);font-size:14px;text-align:right}
.sl-remind{margin:0;padding:0;overflow:visible;flex-wrap:wrap;flex:1 1 100%}
.sl-remind .chip{height:34px;padding:0 12px;font-size:14px;box-shadow:none;background:var(--surface2)}
.sl-remind .chip[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink)}
.sl-unlink{display:block;width:100%;padding:12px 16px;text-align:left;color:var(--red);font-weight:600}
.src-crumb{text-decoration:none;color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,var(--surface2));margin-left:8px}
.src-crumb:first-child{margin-left:0}
.nt-esf{padding:4px 12px 12px}
#emailSetup{margin-top:10px}

/* v25: Sort — direction toggle in the sheet, the sorted column marked, rows slide when the order changes */
.pk-hx{margin-left:auto;margin-right:2px;display:flex}
.pk-dir{font-weight:700;font-size:14px;white-space:nowrap;color:var(--accent);padding:6px 10px;border-radius:999px;background:var(--accent-soft)}
.th-sorted{color:var(--text)!important;font-weight:800}
.th-sorted i{font-style:normal;color:var(--accent)}
.trow.sort-moved{position:relative;z-index:2}
#taskArea[data-sort="property"] .tprop.set .tp-n,#taskArea[data-sort="property"] .bc-prop.set span,#taskArea[data-sort="person"] .tppl .tp-name:not(.muted),#taskArea[data-sort="due"] .tdue:not(.empty)>span,#taskArea[data-sort="priority"] .tprio:not(.empty){font-weight:750}
.trow-ghost{position:fixed;z-index:80;pointer-events:none;background:var(--surface);border-radius:12px;box-shadow:0 14px 30px rgba(20,16,60,.22);outline:2px solid var(--accent);overflow:hidden}
.trow.drag-gap{opacity:.35}
.trow.pressing{background:var(--accent-soft)}

/* ---------- v26: all layouts ---------- */
.vseg6{overflow-x:auto;scrollbar-width:none;max-width:100%}
.vseg6::-webkit-scrollbar{display:none}
.vseg6 button{flex:0 0 auto;white-space:nowrap}
@media (max-width:1180px){ .vseg6 button{padding:0 11px} .vseg6 button:not(.on) span{display:none} .vseg6 button.on{padding:0 14px} }
@media (max-width:560px){ .vseg6 button{flex:1 1 auto;padding:0 4px;min-width:40px} .vseg6 button.on{flex:2 1 auto} }
.wt-lay .wt-layn{font-weight:750}
@media (max-width:560px){ .wt-lay .wt-layn{display:none} }
/* sidebar switcher: six calm tiles, icon over label */
.sb-lay .lseg-all{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:5px;border-radius:16px}
.sb-lay .lseg-all button{flex-direction:column;gap:3px;height:auto;min-height:56px;padding:8px 2px 7px;font-size:12.5px;font-weight:750;line-height:1.1}
.sb-lay .lseg-all button svg{width:20px;height:20px}
/* board by person / property */
.bcol-name.has-ic::before{display:none}
.bcol-name .avatar{width:24px;height:24px;font-size:11px}
.bcol-name .pthumb{width:24px;height:24px;border-radius:7px}
.bcol-name span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:200px}
.bcol-pick{border-top-style:dashed;opacity:.85}
.bcol-pick .bcol-empty{padding:28px 10px}
/* cards (gallery) */
.gal-wrap{display:flex;flex-direction:column;gap:14px;padding-bottom:10px}
.gal{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;padding:6px 0 4px}
@media (max-width:560px){ .gal{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px} }
.gcard{position:relative;background:var(--surface);border-radius:16px;padding:12px 14px 12px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:7px;min-width:0;cursor:pointer;border-top:4px solid var(--sc);transition:transform .12s, box-shadow .12s}
.gcard:hover{transform:translateY(-1px);box-shadow:0 2px 4px rgba(30,24,70,.06),0 10px 26px rgba(30,24,70,.1)}
.gcard.done{opacity:.6}
.gcard.done .gc-title{text-decoration:line-through}
.gc-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.gc-status{font-size:12px;font-weight:800;color:#fff;background:var(--sc);border-radius:999px;padding:2px 9px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gc-prio{font-size:12px;font-weight:800;color:var(--pc);border:1.5px solid var(--pc);border-radius:999px;padding:1px 8px}
.gc-title{margin:0;font-size:16px;line-height:1.3;font-weight:750;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;word-break:break-word}
.gc-sub{font-size:12.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gc-prop,.gc-list{display:flex;align-items:center;gap:7px;font-size:13.5px;color:var(--muted);min-width:0}
.gc-prop span,.gc-list span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gc-list .dot{width:9px;height:9px;border-radius:50%;flex:none;display:inline-block}
.gc-prop .pthumb{width:22px;height:22px;border-radius:6px;flex:none}
.gc-foot{display:flex;align-items:center;gap:8px;margin-top:auto;padding-top:4px;font-size:13px;color:var(--muted);min-height:26px}
.gc-due{display:inline-flex;align-items:center;gap:4px;font-weight:700}
.gc-due svg,.gc-ic svg{width:14px;height:14px}
.gc-due.od{color:var(--red)} .gc-due.today{color:var(--green)}
.gc-due .muted{font-weight:600;opacity:.8}
.gc-ic{display:inline-flex;gap:8px}.gc-ic span{display:inline-flex;align-items:center;gap:3px}
.gc-who{margin-left:auto;display:flex}.gc-who .avatar{width:24px;height:24px;font-size:11px;margin-left:-6px;box-shadow:0 0 0 2px var(--surface)}
/* calendar layout */
.lcal-wrap{display:flex;flex-direction:column;gap:12px;padding-bottom:16px}
.lc-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.lc-nav{display:flex;align-items:center;gap:6px}
.lc-title{margin:0;font-size:20px;font-weight:800;min-width:150px;text-align:center;display:flex;flex-direction:column;line-height:1.15}
.lc-title small{font-size:13px;font-weight:650;color:var(--muted)}
.lc-ctl{display:flex;align-items:center;gap:8px}
.lc-body{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:14px;align-items:start}
@media (max-width:1100px){ .lc-body{grid-template-columns:minmax(0,1fr)} }
.lcal{background:var(--surface);border-radius:18px;box-shadow:var(--shadow);overflow:hidden}
.lc-wk{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-bottom:1px solid var(--line)}
.lc-wk span{font-size:12px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;padding:8px 8px 6px}
.lc-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.lc-day{min-height:104px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:5px 5px 6px;display:flex;flex-direction:column;gap:3px;min-width:0;cursor:pointer;transition:background .12s}
.lc-day:nth-child(7n){border-right:0}
.lc-day.we{background:color-mix(in srgb,var(--surface2) 45%,var(--surface))}
.lc-day.other{background:color-mix(in srgb,var(--surface2) 75%,var(--surface))}
.lc-day.other .lc-dn{opacity:.45}
.lc-day.sel{box-shadow:inset 0 0 0 2px var(--accent)}
.lc-day.drop-on{background:var(--accent-soft);box-shadow:inset 0 0 0 2px var(--accent)}
.lc-dh{display:flex;align-items:baseline;gap:5px;padding:0 2px}
.lc-wd{display:none;font-size:12px;font-weight:800;color:var(--muted);text-transform:uppercase}
.lc-dn{font-size:14px;font-weight:800}
.lc-day.today .lc-dn{background:var(--accent);color:var(--accent-ink);border-radius:999px;min-width:24px;height:24px;display:inline-grid;place-items:center;padding:0 6px}
.lc-hd{margin-left:auto;font-size:11.5px;color:var(--muted);font-weight:650}
.lc-chips{display:flex;flex-direction:column;gap:3px;min-width:0}
.lchip{display:flex;align-items:center;gap:6px;min-width:0;background:color-mix(in srgb,var(--cc) 16%,var(--surface));border-left:4px solid var(--cc);border-radius:7px;padding:3px 7px;font-size:12.5px;font-weight:650;line-height:1.25;cursor:grab;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.lchip-t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}
.lchip-t small{font-weight:800;color:var(--muted)}
.lchip.od{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--red) 50%,transparent)}
.lchip.od .lchip-t{color:var(--red)}
.lchip.done{opacity:.55}.lchip.done .lchip-t{text-decoration:line-through}
.lchip.wide{font-size:14px;padding:7px 10px;border-radius:10px}
.lchip-who{display:flex}.lchip-who .avatar{width:20px;height:20px;font-size:10px;margin-left:-5px;box-shadow:0 0 0 2px var(--surface)}
.lchip.pressing{transform:scale(.97)}
.lchip.drag-gap{opacity:.3}
.lchip-ghost{position:fixed;z-index:200;pointer-events:none;box-shadow:var(--shadow-lg);opacity:.95}
.lc-more{font-size:12px;font-weight:750;color:var(--accent);text-align:left;padding:1px 4px}
.lc-tray{background:var(--surface);border-radius:18px;box-shadow:var(--shadow);padding:12px;display:flex;flex-direction:column;gap:8px;position:sticky;top:120px;transition:background .12s}
.lc-tray.drop-on{background:var(--accent-soft);box-shadow:inset 0 0 0 2px var(--accent)}
.lc-tray-h{display:flex;align-items:center;justify-content:space-between;font-size:15px}
.lc-tray-p{margin:0;font-size:12.5px;color:var(--muted)}
.lc-tray-list{display:flex;flex-direction:column;gap:6px;max-height:60vh;overflow:auto}
@media (max-width:1100px){ .lc-tray{position:static} .lc-tray-list{flex-direction:row;flex-wrap:wrap;max-height:none} .lc-tray-list .lchip{max-width:100%} }
.lcal-wrap.dropping .lc-tray{outline:2px dashed var(--line);outline-offset:-2px}
.lc-legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;font-size:12.5px;color:var(--muted);padding:0 4px}
.lc-lg-l{font-weight:800;text-transform:uppercase;letter-spacing:.04em;font-size:11.5px}
.lc-lg{display:inline-flex;align-items:center;gap:5px}.lc-lg i{width:10px;height:10px;border-radius:3px}
.lc-daylist{background:var(--surface);border-radius:18px;box-shadow:var(--shadow);padding:12px 14px;display:flex;flex-direction:column;gap:8px}
.lc-dl-h{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:16px}
.lc-dl-list{display:flex;flex-direction:column;gap:6px}
.lc-none{margin:0;color:var(--muted);font-size:14px}
.lcal.week .lc-day{min-height:260px}
@media (max-width:600px){
  .lc-day{min-height:72px;padding:3px 2px}
  .lc-wk span{padding:7px 2px 5px;text-align:center;font-size:11px}
  .lc-dh{justify-content:center}.lc-hd{display:none}
  .lc-dn{font-size:13px}
  .lchip{font-size:10.5px;padding:2px 4px;border-left-width:3px;border-radius:5px}
  .lchip.wide{font-size:14px;padding:7px 10px}
  .lc-more{font-size:10.5px;padding:0 2px}
  .lcal.week .lc-wk{display:none}
  .lcal.week .lc-grid{grid-template-columns:1fr}
  .lcal.week .lc-day{min-height:54px;border-right:0;flex-direction:row;align-items:flex-start;gap:8px;padding:8px 10px}
  .lcal.week .lc-dh{flex-direction:column;align-items:center;gap:0;min-width:40px}
  .lcal.week .lc-wd{display:block}
  .lcal.week .lc-chips{flex:1}
  .lcal.week .lchip{font-size:13.5px;padding:6px 9px}
  .lc-title{font-size:18px;min-width:120px}
}
/* timeline */
.gt-tools{display:flex;align-items:center;gap:12px;margin:2px 0 8px}
.gt-tip-txt{font-size:12.5px;color:var(--muted)}
.gt-scroll{overflow-x:auto;background:var(--surface);border-radius:18px;box-shadow:var(--shadow);-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;margin-bottom:16px}
.gt-inner{position:relative;min-width:100%}
.gt-head{display:flex;position:relative;border-bottom:1px solid var(--line)}
.gt-corner{position:sticky;left:0;z-index:4;width:var(--lw);flex:none;background:var(--surface);display:flex;align-items:flex-end;padding:0 12px 8px;font-size:12px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;border-right:1px solid var(--line)}
.gt-cal{position:relative;height:54px;flex:none}
.gt-months,.gt-days{position:relative;height:27px}
.gt-m{position:absolute;top:0;height:27px;padding:6px 0 0;font-size:12.5px;color:var(--muted);border-left:1px solid var(--line);white-space:nowrap;overflow:clip}
.gt-m>span{position:sticky;left:calc(var(--lw) + 8px);padding:0 8px;display:inline-block}
.gt-m b{color:var(--text);font-weight:800}
.gt-d{position:absolute;top:0;height:27px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:11.5px;font-weight:700;color:var(--muted);line-height:1}
.gt-d small{font-size:9px;font-weight:700;opacity:.8}
.gt-d.we{color:color-mix(in srgb,var(--muted) 70%,transparent)}
.gt-d.td{color:var(--accent-ink);background:var(--accent);border-radius:8px}
.gt-rows{position:relative}
.gt-group.tgroup{margin:0}
.gt-grow,.gtrow{display:flex;min-height:44px;border-bottom:1px solid var(--line)}
.gt-glab,.gt-lab{position:sticky;left:0;z-index:3;width:var(--lw);flex:none;background:var(--surface);border-right:1px solid var(--line);display:flex;align-items:center;min-width:0}
.gt-glab{padding:2px 8px}
.gt-glab .tg-head{min-height:36px;font-size:15px;max-width:100%;overflow:hidden}
.gt-glab .tg-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.gt-lab{gap:8px;padding:6px 10px 6px 14px;cursor:pointer}
.gt-dot{width:9px;height:9px;border-radius:50%;flex:none}
.gt-tt{display:flex;flex-direction:column;min-width:0;flex:1}
.gt-name{font-size:14.5px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gt-tt small{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gt-who{display:flex}.gt-who .avatar{width:22px;height:22px;font-size:10px;margin-left:-5px;box-shadow:0 0 0 2px var(--surface)}
.gtrow.done .gt-name{text-decoration:line-through;color:var(--muted)}
.gt-track{position:relative;flex:1 0 auto;background-image:repeating-linear-gradient(90deg,var(--gtwe) 0 var(--dw),transparent var(--dw) calc(var(--dw)*6),var(--gtwe) calc(var(--dw)*6) calc(var(--dw)*7));--gtwe:color-mix(in srgb,var(--surface2) 55%,transparent)}
.gt-gtrack{background-color:color-mix(in srgb,var(--gc) 6%,transparent)}
.gt-track.empty{cursor:copy}
.gt-hint{position:absolute;top:50%;transform:translateY(-50%);font-size:12.5px;color:var(--muted);white-space:nowrap;pointer-events:none;font-style:italic}
.gt-bar{position:absolute;top:8px;bottom:8px;min-height:26px;background:var(--bc);border-radius:8px;display:flex;align-items:center;color:#fff;font-size:12.5px;font-weight:750;box-shadow:0 1px 2px rgba(0,0,0,.12);user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:pointer;touch-action:pan-x pan-y}
.gt-bar.can{cursor:grab}
.gt-bar.od{box-shadow:0 0 0 2px var(--red)}
.gt-bar.done{opacity:.5}
.gt-bt{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 4px}
.gt-h{flex:none;width:8px;align-self:stretch;position:relative}
.gt-bar.can .gt-h::after{content:'';position:absolute;top:30%;bottom:30%;left:3px;width:2px;border-radius:2px;background:rgba(255,255,255,.7);opacity:0;transition:opacity .15s}
.gt-bar.can:hover .gt-h::after,.gt-bar.dragging .gt-h::after{opacity:1}
.gt-bar.can .gt-h.l{cursor:ew-resize}.gt-bar.can .gt-h.r{cursor:ew-resize}
.gt-bar.pressing{filter:brightness(.95)}
.gt-bar.dragging{z-index:5;box-shadow:0 8px 22px rgba(30,24,70,.28);cursor:grabbing}
.gt-out{position:absolute;top:50%;transform:translateY(-50%);font-size:12.5px;font-weight:700;color:var(--text);white-space:nowrap;pointer-events:none;max-width:260px;overflow:hidden;text-overflow:ellipsis}
.gt-today{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:var(--accent);opacity:.55;pointer-events:none;z-index:2}
.gt-tip{position:fixed;z-index:300;background:var(--text);color:var(--bg);font-size:13px;font-weight:750;padding:5px 10px;border-radius:9px;pointer-events:none;white-space:nowrap;box-shadow:var(--shadow-lg)}
/* start date in the task panel */
.start-row{display:flex;align-items:center;gap:8px;margin:2px 0 10px}
.start-add{font-size:14.5px;font-weight:700;color:var(--accent);padding:4px 2px}
.start-set{display:flex;align-items:center;gap:6px;flex:1}
.start-set .date-btn{flex:1}
.start-x{width:36px;height:36px;border-radius:50%;color:var(--muted);font-size:15px}
.start-x:hover{background:var(--surface2)}

@media (max-width:440px){ .vseg6 button:not(.on) svg{display:block;width:19px;height:19px} .vseg6 button{min-width:38px;padding:0 3px} .vseg6 button.on{padding:0 10px} }
@media (max-width:600px){ .gt-who{display:none} .gt-lab{padding:6px 6px 6px 10px;gap:6px} .gt-name{font-size:14px} }

/* v26: grouping chips on every screen (Date · Status · Property · Person · None), or one small Group button */
.gb-kinds{max-width:100%;overflow-x:auto;scrollbar-width:none}
.gb-kinds::-webkit-scrollbar{display:none}
.gb-kinds button{flex:0 0 auto}
@media (max-width:1180px){ .gb-kinds button{padding:0 14px} }
@media (max-width:560px){ .gb-row .gb-kinds{flex:1 1 100%} .gb-kinds button{flex:1 0 auto;padding:0 10px} .gb-kinds button span[aria-hidden]{display:none} }
.gb-row.gb-who-only{justify-content:flex-end}
@media (max-width:560px){ .gb-row.gb-who-only .gb-seg.who{flex:1 1 100%} }
.tgroup.flat{border-left:0}
.tgroup.flat > .tscroll{margin-top:0}
.gal-group.flat{margin-top:0}
.gt-group.flat .gt-grow{display:none}
.wt-btn.wt-lay{gap:4px;padding-left:12px;padding-right:10px}
.wt-btn.wt-lay svg{width:19px;height:19px}
.wt-caret{font-size:11px;opacity:.6;margin-left:1px}
.sort-btn.lay-btn{display:inline-flex;align-items:center;gap:3px;margin-left:6px}
.sort-btn.lay-btn svg{width:18px;height:18px}
#viewBar .vb-actions{margin-left:auto}

.gb-row .vb-actions{margin-left:auto;display:flex;gap:8px;align-items:center}
@media (max-width:1180px){ .gb-row .vb-actions .soft-btn span{display:none} .gb-row .vb-actions .soft-btn{width:44px;padding:0;justify-content:center} }
@media (max-width:560px){ .gb-row .vb-actions{display:none} }
.pk-check{margin-left:auto;color:var(--accent);font-weight:800}

/* v26 phone: the toolbar keeps Search · Filter · Sort · (Group) · Layout on one row — words give way to icons */
@media (max-width:560px){ .wtools{gap:6px} .wtools .wt-btn{padding:0 11px;gap:5px} .wtools .wt-w{display:none} .wtools .wt-btn[data-act="filter"] .wt-l:empty{display:none} }

.wtools .wt-lay{position:sticky;right:0;z-index:1;box-shadow:-10px 0 12px -4px var(--bg)}
.wt-btn .wt-ic svg{width:16px;height:16px}

.wtools .vb-actions{display:flex;gap:8px;flex:none;align-items:center}
.wtools .vb-actions .soft-btn span{display:none}
.wtools .vb-actions .soft-btn{width:42px;height:40px;padding:0;justify-content:center}
@media (max-width:899px){ .wtools .vb-actions .new-btn{display:none} }
@media (max-width:560px){ .wtools .vb-actions{display:none} }
@media (min-width:561px){ .wtools .wt-lay:not(:last-child){position:static;box-shadow:none} }
.wtools .vb-actions .soft-btn{background:var(--surface2);box-shadow:none;border-radius:999px;color:var(--text)}

/* ---- v27: inline date chip — faint calendar placeholder (icon only) where the date sits; tap = compact date popover ---- */
.dph{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;border:1.5px dashed var(--line);color:var(--muted);opacity:.85;flex:none}
.dph svg{width:12px;height:12px}
.tdue.empty{color:var(--muted)}
.tdue.empty.ro{visibility:hidden;pointer-events:none}
html[data-layout="list"] .trow>.tdue.empty:not(.ro){display:inline-flex;background:none;padding:0}
html[data-layout="list"] .trow>.tdue.empty.ro{display:none}
/* v28 fix: in v27 the list row's "position:static" rule (html[data-layout="list"] .trow>.tcell:not(.tstatus)) out-ranked the relative one, so the
   invisible tap area grew to the whole row and every tap on it (title, status, property, person) opened the date popover.
   The tap area now stays inside each chip's own box: 34px tall, no wider than the chip. */
html[data-layout="list"] .trow>.tcell.tdue:not(.tstatus),html[data-layout="list"] .trow>.tcell.tppl:not(.tstatus){position:relative}
html[data-layout="list"] .trow>.tdue::after,html[data-layout="list"] .trow>.tppl::after{content:"";position:absolute;inset:-5px 0}
html[data-layout="table"] .tdue.empty .dph,html[data-layout="cards"] .tdue.empty .dph{opacity:.7}
html[data-layout="cards"] .trow>.tdue.empty{background:none;padding:0 4px}
.tdue.span span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dchip{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;position:relative;-webkit-tap-highlight-color:transparent}
.dchip::after{content:"";position:absolute;inset:-5px 0}
.dchip:not(.empty){border-radius:999px;padding:3px 7px;margin:-3px -7px}
.dchip:not(.empty):hover{background:var(--surface2)}
.bc-due.dchip.empty .dph,.gc-due.dchip.empty .dph{width:22px;height:22px}
.bc-due.today{color:var(--green);font-weight:700}
#picker[data-kind="pk-date"] .pk-item{min-height:40px}
#picker[data-kind="pk-date"] .pk-item .pk-sub{margin-left:auto;color:var(--muted);font-weight:600}
#picker[data-kind="pk-date"] .pk-item:not(.pk-start)+.pk-start{margin-top:8px}
#picker[data-kind="pk-date"] .pk-clear{color:var(--red);margin-top:8px}
#picker[data-kind="pk-date"] .pk-item{flex-wrap:nowrap}

/* ---- v28: Cards and Board chips are their own inline pickers (status, property, person), never the task panel ---- */
:where(button.ichip){font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;text-align:inherit;-webkit-tap-highlight-color:transparent}
button.ichip{position:relative!important}
button.ichip::after{content:"";position:absolute;inset:-4px 0}
button.gc-status{font-size:12px;font-weight:800;color:#fff;background:var(--sc);border-radius:999px;padding:2px 9px;min-height:24px}
.gc-pbtn{display:inline-flex;align-items:center;gap:7px;min-width:0;max-width:100%;min-height:26px;border-radius:999px;padding:0 8px 0 0!important;color:var(--muted)}
.gc-pbtn span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gc-pbtn.empty{padding:0 10px!important;box-shadow:inset 0 0 0 1.5px var(--line);font-size:12.5px;font-weight:650}
button.gc-who,button.bc-who{display:flex;align-items:center;min-height:26px;border-radius:999px}
button.gc-who.empty .av-add,button.bc-who.empty .av-add{width:24px;height:24px;border-width:1.5px}
button.gc-who.empty .av-add svg,button.bc-who.empty .av-add svg{width:12px;height:12px}
@media (hover:hover){ .gc-pbtn:hover,button.gc-who:hover,button.bc-who:hover{box-shadow:inset 0 0 0 1.5px var(--accent)} button.gc-status:hover{filter:brightness(1.06)} }

/* v30: swipe left to delete */
.task,.trow,#subtaskList .subtask,#timeline .tl-comment,#timeline .f-img,#timeline .f-doc,#timeline .f-voice,#manageProps li,#manageLists li,#managePeople li,#sidebar .sb-lists > li,#sidebar .sb-srow{touch-action:pan-y}
@media (max-width:899px){html[data-layout="table"] .trow{touch-action:auto}}
.sw-open,.sw-moving{position:relative}
.sw-moving,.sw-moving *{user-select:none;-webkit-user-select:none}
.sw-del{position:absolute;top:0;right:0;bottom:0;width:0;overflow:hidden;z-index:3;display:flex;align-items:center;justify-content:center;background:var(--red);color:#fff;font-weight:800;font-size:15px;border:0;border-radius:inherit;transition:width .18s ease;white-space:nowrap;cursor:pointer}
.sw-moving > .sw-del{transition:none}
.sw-del span{opacity:0;transition:opacity .12s}
.sw-del[style*="width"]:not([style*="width: 0px"]) span{opacity:1}
.sw-del.ready{background:color-mix(in srgb,var(--red) 85%,#000)}
.sw-del.ready span{transform:scale(1.08)}
.sw-open.task,.sw-open.trow{box-shadow:var(--shadow),inset 0 0 0 1px color-mix(in srgb,var(--red) 35%,transparent)}
#manageProps li.sw-open,#manageLists li.sw-open,#managePeople li.sw-open,#subtaskList .subtask.sw-open{border-radius:12px}
@media (hover:hover){
  .task:hover::after,#manageProps li:hover::after,#manageLists li:hover::after,#managePeople li:hover::after,#subtaskList .subtask:hover::after,#sidebar .sb-lists > li:hover::after,#sidebar .sb-srow:hover::after{content:'🗑';position:absolute;right:6px;top:50%;transform:translateY(-50%);width:28px;height:28px;display:grid;place-items:center;font-size:13px;opacity:.45;border-radius:8px;pointer-events:none}
  .task:hover,.trow:hover,#manageProps li:hover,#manageLists li:hover,#managePeople li:hover,#subtaskList .subtask:hover,#sidebar .sb-lists > li:hover,#sidebar .sb-srow:hover{position:relative}
  .sw-open:hover::after{content:none}
}

/* v31: Reports */
.rp-hero{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:4px}
.rp-big{background:var(--surface);border-radius:16px;padding:16px 16px 14px;display:flex;flex-direction:column;gap:2px;box-shadow:var(--shadow);border:0;font:inherit;color:var(--text);text-align:left;min-height:96px}
.rp-big b{font-size:40px;font-weight:800;line-height:1;letter-spacing:-.02em}
.rp-big.done b{color:#00a35f}.rp-big.todo b{color:var(--text)}
.rp-big span{font-size:14px;font-weight:700;margin-top:6px}
.rp-big small{font-size:12px;color:var(--muted);font-weight:600}
button.rp-big{cursor:pointer}button.rp-big:active{transform:scale(.98)}
.rp-prog{height:10px;border-radius:99px;background:var(--surface2);overflow:hidden;margin-top:12px}
.rp-prog i{display:block;height:100%;background:#00c875;border-radius:99px;transition:width .3s}
.rp-pct{margin:6px 2px 0;font-size:12.5px;color:var(--muted)}.rp-pct b{color:var(--text)}
.rp-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
@media (min-width:700px){ .rp-counts{grid-template-columns:repeat(4,1fr)} }
@media (min-width:1000px){ .rp-counts{grid-template-columns:repeat(7,1fr)} }
.rp-cnt{background:var(--surface);border-radius:14px;padding:12px 12px 10px;display:flex;flex-direction:column;gap:2px;box-shadow:var(--shadow);border:0;font:inherit;color:var(--text);text-align:left;cursor:pointer}
.rp-cnt b{font-size:24px;font-weight:800;line-height:1.1}.rp-cnt.red b{color:var(--red)}
.rp-cnt span{font-size:12px;font-weight:650;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rp-cnt:active{transform:scale(.97)}
.rp-hint{margin:6px 2px 0;font-size:12px;color:var(--muted)}
.rp-props .rp-trow{grid-template-columns:minmax(0,2.4fr) repeat(3,minmax(44px,.7fr)) minmax(60px,1.2fr)}
.rp-who{display:inline-flex;align-items:center;gap:4px;font-weight:650}.rp-who .avatar{width:16px;height:16px;font-size:8px}
.rp-sec h4 span{color:var(--muted);font-weight:600;margin-left:4px}

/* v32: sign-ups */
.lock-new{margin-top:14px}.lock-new .text-btn{font-weight:700;color:var(--accent)}
.ad-row{display:flex;align-items:center;gap:10px;padding:10px 14px;border-top:1px solid var(--line)}.ad-row:first-child{border-top:0}
.ad-row .avatar{width:34px;height:34px;font-size:13px;flex:none}.ad-who{flex:1;min-width:0;display:flex;flex-direction:column}.ad-who small{color:var(--muted);font-size:12px}
.ad-row .pill-btn,.ad-row .soft-btn{flex:none;min-height:36px}.ad-row.past{padding:8px 14px}
.ad-past{padding:8px 14px}.ad-past summary{font-size:13px;color:var(--muted);cursor:pointer}
.ad-none{padding:12px 14px;margin:0}
.sb-pend{background:var(--red)!important;color:#fff!important}
#adminLabel .badge{font-size:12px;background:var(--red);color:#fff;border-radius:99px;padding:1px 7px;margin-left:6px;vertical-align:middle}
#adminHint{padding:4px 14px 12px;margin:0;font-size:12.5px;color:var(--muted)}

/* v33: Slack how-to (inline, short) and Integrations */
.sl-how{padding:12px 16px 12px;border-bottom:1px solid var(--line)}
.sl-how-t{margin:0 0 6px;font-weight:700;font-size:15px}
.sl-how ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px}
.sl-how li{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.35}
.sl-how .sl-ic{flex:0 0 24px;height:24px;border-radius:7px;background:var(--surface2);display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;color:var(--muted)}
.sl-how code,.int-key code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px;background:var(--surface2);padding:1px 6px;border-radius:6px;word-break:break-word}
.sl-how small{display:block;margin-top:8px;font-size:12px;color:var(--muted)}
.sl-how small code{white-space:nowrap}
.int-key{padding:12px 16px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
.int-key p{margin:0;font-size:14px;color:var(--muted)}
.int-key code{font-size:13px;padding:8px 10px;border-radius:10px;user-select:all;-webkit-user-select:all;word-break:break-all}
.int-key small{font-size:12px;color:var(--muted)}
.int-acts{display:flex;gap:8px}

.sl-select{font:inherit;font-size:15px;padding:8px 10px;border-radius:10px;border:1px solid var(--line);background:var(--surface2);color:var(--text);max-width:100%;min-height:40px}

/* ---------- v34: email logins, Settings → Email, banner, invites, how-to videos ---------- */
.em-row{display:flex;align-items:center;gap:12px;padding:12px 16px;min-height:60px;border-bottom:1px solid var(--line)}
.em-ic{font-size:20px;width:26px;text-align:center;flex:none}
.em-t{flex:1;min-width:0;display:flex;flex-direction:column}
.em-t strong{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.em-t small{color:var(--muted);font-size:13px;margin-top:2px}
.em-t small .text-btn,.pl-mail .text-btn,.pend-mail .text-btn{font-size:inherit;padding:0;min-height:0;height:auto;font-weight:700;color:var(--accent)}
.em-row.need .em-btn{background:var(--accent);color:#fff}
.em-btn{flex:none}
.em-form{border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--surface2) 55%,transparent)}
.em-form .lf{border-bottom:0}
.em-form .sec-actions,.mail-acts{padding:4px 12px 12px}
.em-ok{color:var(--green);font-weight:700}
.unv{color:var(--amber);font-weight:700;font-style:normal}
.lc-tag{margin-left:5px;padding:1px 6px;border-radius:999px;background:var(--amber-soft);color:var(--amber);font-size:11px;font-weight:800}
.login-chip.needmail{max-width:190px}
.pl-mail{margin:10px 6px 0;color:var(--muted);font-size:14px;line-height:1.4}
.pend-mail{margin-top:8px;font-size:14px}
.invite-mail-btn{margin:10px 2px 4px;height:40px;padding:0 14px}
.seg3 button{font-size:13.5px;padding:0 4px}
.mail-card .lf>span{width:110px}
.mail-card .lf select{flex:1;min-width:0;height:44px;border:0;background:none;font-size:16px;color:var(--text);outline:none}
.mail-body{display:flex;flex-direction:column}
.mail-how{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:12px 16px;border-bottom:1px solid var(--line)}
.mail-seg{flex:1 1 260px;margin:0}
.mail-pane{border-bottom:1px solid var(--line)}
.mail-pane>.set-hint{margin:12px 16px 4px}
.mail-two{display:grid;grid-template-columns:1fr 1fr}
.mail-two .lf>span{width:auto;min-width:44px}
.mail-redirect{margin:8px 16px;font-size:13px;color:var(--muted);word-break:break-all}
.mail-redirect code{font-size:12px;background:var(--surface2);padding:2px 6px;border-radius:6px}
.mail-google{display:flex;align-items:center;justify-content:center;gap:10px;margin:8px 16px 14px;height:46px;font-weight:700}
.mail-google svg{width:20px;height:20px}
.mail-dot{width:10px;height:10px;border-radius:50%;flex:none;background:var(--line)}
.mail-dot.on{background:var(--green)}.mail-dot.warn{background:var(--amber)}.mail-dot.off{background:var(--muted);opacity:.45}
#mlErr.ok,#vfErr.ok{color:var(--green)}
.mail-banner{display:flex;align-items:center;gap:8px;margin:0 16px 8px;padding:8px 8px 8px 14px;border-radius:14px;background:var(--amber-soft);color:var(--text);font-size:14px;font-weight:600}
.mail-banner[hidden]{display:none}
.mail-banner span{flex:1;min-width:0}
.mail-banner .text-btn{flex:none;font-weight:800;color:var(--accent);min-height:36px}
.mb-x{flex:none;width:32px;height:32px;border-radius:50%;font-size:20px;line-height:1;color:var(--muted)}
.team-invites{margin-top:20px;background:var(--surface);border-radius:18px;padding:14px 16px;box-shadow:var(--shadow)}
.team-invites h3{margin:0 0 6px;font-size:16px}
.ti-row{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--line)}
.ti-row:first-of-type{border-top:0}
.ti-who{flex:1;min-width:0;display:flex;flex-direction:column}
.ti-who small{color:var(--muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ti-acts{display:flex;gap:6px;flex:none;align-items:center}
.vid-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px;padding-bottom:20px}
.vid-card{background:var(--surface);border-radius:18px;box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column}
.vid-frame{background:#0d0e12;display:flex;justify-content:center}
.vid-frame video{width:100%;max-height:min(62vh,560px);aspect-ratio:9/16;object-fit:contain;background:#0d0e12;display:block}
.vid-meta{padding:12px 16px 4px}
.vid-meta h3{margin:0;font-size:16px;line-height:1.3}
.vid-meta small{color:var(--muted);font-size:13px}
.vid-ch{list-style:none;margin:4px 0 10px;padding:0 8px}
.vid-ch button{display:flex;gap:10px;width:100%;text-align:left;padding:8px;border-radius:10px;font-size:14px;min-height:38px;align-items:center}
.vid-ch button:active,.vid-ch button:hover{background:var(--surface2)}
.vt{flex:none;width:40px;color:var(--accent);font-weight:700;font-variant-numeric:tabular-nums}
.sb-help{opacity:.85}

.ch-temp{margin:0;padding:12px 16px;background:var(--amber-soft);font-size:14px;font-weight:600;border-bottom:1px solid var(--line)}
.ch-temp[hidden]{display:none}
.priv-row{display:flex;align-items:center;gap:12px;margin:14px 0 4px;padding:12px 14px;border-radius:16px;background:var(--surface);box-shadow:var(--shadow);cursor:pointer}
.priv-row[hidden]{display:none}
.priv-ic{font-size:20px;width:26px;text-align:center;flex:none}
.priv-t{flex:1;min-width:0;display:flex;flex-direction:column}
.priv-t strong{font-size:16px}
.priv-t small{color:var(--muted);font-size:13px;margin-top:2px}
.ti-priv{font-size:11px;filter:saturate(.6)}

/* v35: two-step sign-in + Security */
.mfa-badge{font-size:40px;text-align:center;margin:0 0 6px}
.mfa-code-in{letter-spacing:.28em;font-variant-numeric:tabular-nums;text-align:center;font-size:24px !important}
.mfa-trust{display:flex;align-items:center;gap:10px;margin:2px 6px 0;font-size:15px;color:var(--muted);cursor:pointer}
.mfa-trust input{width:20px;height:20px;accent-color:var(--accent);flex:none}
.mfa-box{display:flex;flex-direction:column;gap:12px;padding:4px 0}
.card-group .mfa-box{padding:14px 16px;border-bottom:1px solid var(--line)}
.mfa-wait{display:flex;justify-content:center;padding:18px}
.mfa-step{display:flex;gap:10px;margin:0;font-size:15px;line-height:1.4}
.mfa-step>b{flex:none;width:24px;height:24px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:13px}
.mfa-qr{align-self:center;width:188px;height:188px;padding:6px;border-radius:14px;background:#fff;box-shadow:0 0 0 1px var(--line)}
.mfa-qr svg{display:block;width:100%;height:100%}
.mfa-open{align-self:center;font-size:14px;font-weight:650;color:var(--accent)}
.mfa-key{font-size:14px;color:var(--muted)}
.mfa-key summary{cursor:pointer;font-weight:600;color:var(--accent);list-style:none;text-align:center}
.mfa-key summary::-webkit-details-marker{display:none}
.mfa-keyrow{display:flex;align-items:center;gap:8px;justify-content:center;margin:8px 0 4px}
.mfa-keyrow code{font:600 15px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.04em;color:var(--text);background:var(--surface2);padding:7px 10px;border-radius:10px;word-break:break-all}
.mfa-key small{display:block;text-align:center}
.mfa-in{height:54px;border-radius:14px;border:1.5px solid var(--line);background:var(--surface);text-align:center;font-size:24px;letter-spacing:.28em;font-variant-numeric:tabular-nums;outline:none;width:100%}
.mfa-in:focus{border-color:var(--accent)}
.mfa-done-h{font-size:18px;font-weight:800;text-align:center}
.mfa-p{margin:0;font-size:14.5px;color:var(--muted);line-height:1.45}
.mfa-codes{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.mfa-codes code{font:600 16px ui-monospace,SFMono-Regular,Menlo,monospace;text-align:center;padding:9px 4px;border-radius:10px;background:var(--surface2);letter-spacing:.05em}
.mfa-acts{display:flex;gap:8px;justify-content:center}
.sec-loading{display:flex;justify-content:center;padding:40px}
.sec-pill{flex:none;font-size:12.5px;font-weight:700;padding:4px 10px;border-radius:999px;background:var(--surface2);color:var(--muted)}
.sec-pill.on{background:color-mix(in srgb,#00c875 16%,transparent);color:#0a8f55}
.sec-note{margin:0;padding:12px 16px;font-size:13.5px;color:var(--muted)}
.sec-danger span{color:var(--red)}
.sec-more span{color:var(--accent)}
.sec-ask{padding:14px 16px;display:flex;flex-direction:column;gap:10px;border-top:1px solid var(--line)}
.sec-ask-t{margin:0;font-size:14.5px}
.sess-row .text-btn,.team-row .text-btn{flex:none;font-weight:650}
.team-row{gap:10px}
.sg-row{display:flex;gap:12px;align-items:flex-start;padding:10px 16px;border-bottom:1px solid var(--line)}
.sg-row:last-child{border-bottom:0}
.sg-ic{flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:800;background:color-mix(in srgb,#00c875 16%,transparent);color:#0a8f55;margin-top:1px}
.sg-row.bad .sg-ic{background:var(--red-soft);color:var(--red)}
.sg-t{flex:1;min-width:0;display:flex;flex-direction:column}
.sg-t strong{font-size:14.5px;font-weight:600}
.sg-t small{font-size:12.5px;color:var(--muted);overflow-wrap:anywhere}
.sec-teamlog{border-top:1px solid var(--line)}

/* v36: task drafts */
.draft-chip{display:inline-flex;align-items:center;gap:7px;margin:0 0 12px;padding:0 14px;height:36px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-weight:600;font-size:15px}
.draft-chip svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.draft-chip[hidden]{display:none}
.draft-ask-scrim{position:fixed;inset:0;z-index:80;background:rgba(15,12,35,.36);animation:fade .2s ease}
.draft-ask{position:fixed;z-index:81;left:50%;top:50%;transform:translate(-50%,-50%);width:min(340px,calc(100vw - 40px));background:var(--bg);border-radius:22px;box-shadow:var(--shadow-lg);padding:22px 16px 10px;text-align:center}
.draft-ask[hidden],.draft-ask-scrim[hidden]{display:none}
.draft-ask h3{margin:0 0 6px;font-size:19px}
.draft-ask p{margin:0 0 14px;color:var(--muted);font-size:15px}
.da-btn{display:block;width:100%;height:50px;border-radius:14px;font-weight:700;margin-top:8px;font-size:16px}
.da-keep{background:var(--accent);color:var(--accent-ink)}
.da-discard{background:var(--red-soft);color:var(--red)}
.da-edit{color:var(--accent);font-weight:600;margin-top:2px}
.dr-hint{margin:0 2px 12px;color:var(--muted);font-size:14px}
.dr-list{list-style:none;margin:0;padding:0}
.dr-row{display:flex;align-items:center;gap:6px;background:var(--surface);border-radius:16px;box-shadow:var(--shadow);margin-bottom:10px;padding:2px 4px 2px 16px}
.dr-open{flex:1;min-width:0;text-align:left;padding:12px 0;display:flex;flex-direction:column;gap:3px;min-height:56px}
.dr-open strong{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dr-open small{color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dr-del{flex:none;width:46px;height:46px;border-radius:12px;display:grid;place-items:center;color:var(--muted)}
.dr-del svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dr-del:active{background:var(--red-soft);color:var(--red)}
.dr-empty{text-align:center;color:var(--muted);padding:40px 10px;font-size:15px}
.sb-drafts[hidden]{display:none}

/* v38: Text to task */
.sms-card .nt-push .tog{margin-left:auto}
.sms-how{margin:12px 16px 8px}
.sms-card .lf>span{width:110px}
.sms-card #smsProvider{color:var(--muted)}
.sms-allowed,.sms-hook{padding:12px 16px;border-bottom:1px solid var(--line)}
.sms-allowed .sl-k,.sms-hook .sl-k{margin:0 0 8px;display:block;flex:none}
.sms-row{display:flex;align-items:center;gap:6px;margin:0 0 8px}
.sms-row input{flex:1 1 auto;min-width:148px;width:0;height:42px;border:1px solid var(--line);border-radius:10px;padding:0 10px;font-size:16px;background:var(--surface2);color:var(--text)}
.sms-row select{flex:1 1 0;min-width:84px;max-width:150px;height:42px}
.sms-row .icon-btn{flex:none;width:40px;height:40px}
.sms-hook code{display:block;font-size:12px;background:var(--surface2);padding:8px 10px;border-radius:8px;word-break:break-all;user-select:all}
.sms-hook-acts{display:flex;gap:8px;align-items:center;margin:8px 0 6px}
.sms-hook small{color:var(--muted);font-size:12.5px;line-height:1.35;display:block}
.sms-priv{margin:10px 16px 0;font-size:13px;color:var(--muted)}
.sms-test{margin:8px 16px 0;padding:10px 12px;border-radius:12px;background:var(--surface2);font-size:14px;line-height:1.45}
.sms-test b{font-weight:700}

/* v40: Text to task (one shared number) */
.sms-num{margin:4px 16px 10px;padding:12px 14px;border-radius:12px;background:var(--surface2);display:flex;flex-direction:column;gap:2px}
.sms-num .sl-k{margin:0;font-size:12px;flex:none;text-transform:uppercase;letter-spacing:.4px;color:var(--muted)}
.sms-num b{font-size:22px;letter-spacing:.3px;color:var(--text)}
.sms-num small{color:var(--muted);font-size:12.5px;line-height:1.35}
.sms-warn{margin:8px 16px 0;padding:10px 12px;border-radius:10px;background:#fff4e0;color:#7a4b00;font-size:13.5px;line-height:1.35}
[data-theme="dark"] .sms-warn{background:#3a2a10;color:#ffd79a}
.sms-allowed .sl-k small,.sms-log .sl-k small{color:var(--muted);font-weight:400}
.sms-alias{display:flex;align-items:center;gap:8px;margin:0 0 8px}
.sms-alias span{flex:0 0 96px;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sms-alias input{flex:1 1 auto;min-width:0;height:40px;border:1px solid var(--line);border-radius:10px;padding:0 10px;font-size:16px;background:var(--surface2);color:var(--text)}
.sms-try{margin-top:4px}
.sms-log{padding:12px 16px 14px;border-top:1px solid var(--line);margin-top:12px}
.sms-log .sl-k{margin:0 0 8px;display:block;flex:none}
.sms-li{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-bottom:1px solid var(--line);font-size:13.5px;line-height:1.3}
.sms-li:last-child{border-bottom:0}
.sms-li .t{flex:0 0 64px;color:var(--muted);font-size:12px}
.sms-li .m{flex:1 1 auto;min-width:0}
.sms-li .m a{color:var(--accent);text-decoration:none;font-weight:600;word-break:break-word}
.sms-li .m small{display:block;color:var(--muted);font-size:12px;margin-top:2px}
.sms-li .m .d{text-decoration:line-through;opacity:.7}
.sms-empty{color:var(--muted);font-size:13px;margin:0}
.sms-test .rp{margin-top:8px;padding:8px 10px;border-radius:14px 14px 14px 4px;background:var(--surface);border:1px solid var(--line);font-size:13.5px;display:inline-block;max-width:100%}

/* v44: Admin settings section (owner + Admins only) */
.admin-settings{margin-top:26px;padding-top:6px;border-top:2px solid var(--line)}
.admin-settings-head{display:flex;flex-direction:column;gap:2px;margin:14px 4px 6px}
.admin-settings-head h3{margin:0;font-size:20px;font-weight:750;letter-spacing:-.01em}
.admin-settings-head small{color:var(--muted,#8a8a99);font-size:13px}
html[data-role="member"] .admin-settings,html[data-role="guest"] .admin-settings{display:none!important}
