/* Design tokens: Todoist's palette (white, red-orange accent, warm light grey) with pastel tints. Change values here to rebrand. */
:root{
  --bg:#fff;--surface:#fcfaf8;--surface-hover:#f2efed;--border:#ebebeb;--border-input:#d9d9d9;
  --text:#202020;--muted:#666;--faint:#808080;--accent:#dc4c3e;--accent-hover:#c3392c;--accent-soft:#ffefe5;--on-accent:#fff;
  --danger:#dc4c3e;--success:#058527;
  /* priority: ring colour + pastel fill */
  --p1:#d1453b;--p2:#eb8909;--p3:#246fe0;--p4:#808080;
  --p1-soft:#fdeceb;--p2-soft:#fdf2e2;--p3-soft:#e9f1fd;--p4-soft:transparent;
  /* due dates */
  --due-today:#058527;--due-tomorrow:#ad6200;--due-week:#692ec2;--due-over:#d1453b;
  --shadow-card:0 1px 3px rgba(0,0,0,.06),0 4px 12px rgba(0,0,0,.06);
  --ease:cubic-bezier(.2,.8,.2,1);color-scheme:light;
}
/* Dark theme: follows the computer's setting, unless the account picked Light or Dark (Settings > General),
   which sets <html data-theme="light|dark">. */
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#1e1e1e;--surface:#262626;--surface-hover:#333;--border:#363636;--border-input:#4d4d4d;--text:#e8e8e8;--muted:#a6a6a6;--faint:#8c8c8c;--accent:#e5574b;--accent-hover:#f06a5f;--accent-soft:#3d2420;--on-accent:#fff;--danger:#ff7066;--success:#34c759;--p1:#ff7066;--p2:#ff9a14;--p3:#5297ff;--p4:#8c8c8c;--p1-soft:#3f2321;--p2-soft:#3d2d17;--p3-soft:#1d2b40;--p4-soft:transparent;--due-today:#34c759;--due-tomorrow:#f0a24a;--due-week:#a970ff;--due-over:#ff7066;--shadow-card:0 1px 3px rgba(0,0,0,.5);color-scheme:dark}}
:root[data-theme=dark]{--bg:#1e1e1e;--surface:#262626;--surface-hover:#333;--border:#363636;--border-input:#4d4d4d;--text:#e8e8e8;--muted:#a6a6a6;--faint:#8c8c8c;--accent:#e5574b;--accent-hover:#f06a5f;--accent-soft:#3d2420;--on-accent:#fff;--danger:#ff7066;--success:#34c759;--p1:#ff7066;--p2:#ff9a14;--p3:#5297ff;--p4:#8c8c8c;--p1-soft:#3f2321;--p2-soft:#3d2d17;--p3-soft:#1d2b40;--p4-soft:transparent;--due-today:#34c759;--due-tomorrow:#f0a24a;--due-week:#a970ff;--due-over:#ff7066;--shadow-card:0 1px 3px rgba(0,0,0,.5);color-scheme:dark}
*{box-sizing:border-box}
html{scroll-padding-top:env(safe-area-inset-top,0px)}
body{margin:0;background:var(--bg);color:var(--text);font:400 14px/20px Inter,"Noto Sans Malayalam",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
a{color:var(--accent)}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
h1{font:700 28px/34px Inter,"Noto Sans Malayalam",sans-serif;margin:0}
button,input,select,textarea{font:inherit;color:inherit}
.btn{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 16px;border-radius:8px;border:1px solid transparent;font-weight:500;cursor:pointer;text-decoration:none;transition:background 120ms var(--ease)}
.btn.sm{height:32px;padding:0 12px}
.primary{background:var(--accent);color:var(--on-accent)}.primary:hover{background:var(--accent-hover)}
.secondary{background:var(--surface);border-color:var(--border);color:var(--text)}.secondary:hover{background:var(--surface-hover)}
.danger{background:transparent;color:var(--danger);border-color:var(--danger)}
.link{background:none;border:0;color:var(--muted);cursor:pointer;padding:0;text-decoration:underline}
.in{width:100%;height:40px;border:1px solid var(--border-input);border-radius:8px;padding:0 12px;background:var(--bg)}
.in.sm{height:32px;padding:0 8px}
/* layout */
.app{display:grid;grid-template-columns:280px minmax(0,1fr);min-height:100vh}
.side{background:var(--surface);border-right:1px solid var(--border);padding:16px 12px;display:flex;flex-direction:column;gap:2px;position:sticky;top:0;height:100vh;overflow:auto}
.side > *{flex-shrink:0}   /* a long sidebar scrolls instead of squashing its rows */
.who{display:flex;align-items:center;gap:10px;margin-bottom:12px;padding:0 4px;flex-wrap:wrap}
.avatar{width:28px;height:28px;border-radius:999px;background:var(--av,#f9c6a8);color:#3d2a1e;display:grid;place-content:center;font-weight:600;flex:none}
.uname{font-weight:600;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.addbtn{margin-bottom:8px;justify-content:flex-start;gap:8px;background:none;color:var(--accent);font-weight:600;padding:0 6px}.addbtn:hover{background:var(--surface-hover)}
.addbtn .plusc{width:22px;height:22px;border-radius:999px;background:var(--accent);color:#fff;display:grid;place-content:center;font-size:17px;line-height:1}
.nav{display:flex;align-items:center;gap:8px;height:36px;flex-shrink:0;padding:0 10px;border-radius:8px;color:var(--text);text-decoration:none}
.nav:hover{background:var(--surface-hover)}
.nav.cur{background:var(--accent-soft);color:var(--accent);font-weight:600}
.nav .n{margin-left:auto;color:var(--muted);font-size:12px;font-weight:400}
.hash{font-weight:700}
.grp{color:var(--muted);font-size:12px;font-weight:500;padding:16px 10px 4px}
.newproj{flex-shrink:0;padding:4px 10px;color:var(--muted)}.newproj summary{cursor:pointer;height:28px;display:flex;align-items:center}
.newproj form{display:flex;gap:6px;align-items:center;margin-top:4px}.newproj input[type=color]{width:32px;height:32px;padding:0;border:1px solid var(--border-input);border-radius:8px;background:none}
.main{padding:40px 32px 80px;max-width:880px;width:100%;margin:0 auto}
.head{margin-bottom:20px}.sub{color:var(--muted);margin:4px 0 0}
.grpsec h2{font:600 14px/20px Inter,"Noto Sans Malayalam",sans-serif;margin:20px 0 4px;padding-bottom:6px;border-bottom:1px solid var(--border)}
.grpsec h2.over{color:var(--danger)}
/* tasks */
.task{display:flex;gap:12px;padding:10px 8px;border-bottom:1px solid var(--border);border-radius:8px}
.task:hover{background:var(--surface)}
.tg{margin:0}
.body{min-width:0;flex:1}
.t{color:var(--text);text-decoration:none;font-weight:500;overflow-wrap:anywhere}.t:hover{text-decoration:underline}
.task.done .t{color:var(--muted);text-decoration:line-through}
.desc{color:var(--muted);font-size:12px;line-height:16px;margin-top:2px}
.meta{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px;line-height:16px;margin-top:4px}
.due.over{color:var(--due-over)}.due.today{color:var(--due-today)}.due.tomorrow{color:var(--due-tomorrow)}.due.week{color:var(--due-week)}
.chk{--pc:var(--p4);--ps:var(--p4-soft);appearance:none;-webkit-appearance:none;width:20px;height:20px;border-radius:999px;border:1px solid var(--pc);margin:0;cursor:pointer;display:grid;place-content:center;background:var(--ps);flex:none}
.chk.p1{--pc:var(--p1);--ps:var(--p1-soft);border-width:2px}.chk.p2{--pc:var(--p2);--ps:var(--p2-soft);border-width:2px}.chk.p3{--pc:var(--p3);--ps:var(--p3-soft);border-width:2px}
.chk::after{content:"";width:5px;height:9px;border:solid var(--pc);border-width:0 2px 2px 0;transform:rotate(45deg) translate(-1px,-1px);opacity:0;transition:opacity 120ms var(--ease)}
.chk:hover:not(:checked)::after{opacity:.6}
.chk:checked{background:var(--pc);border-color:var(--pc)}
.chk:checked::after{border-color:#fff;opacity:1}
.add{display:flex;align-items:center;gap:8px;color:var(--muted);height:36px;padding:0 8px;background:none;border:0;margin-top:8px;border-radius:8px;cursor:pointer}
.add:hover{color:var(--accent)}
.card{border:1px solid var(--border);border-radius:12px;padding:12px;box-shadow:var(--shadow-card);margin-top:12px;background:var(--bg)}
.card[hidden]{display:none}
.title-in,.desc-in{width:100%;border:0;background:none;padding:4px 0;resize:vertical}
.title-in{font-weight:600;font-size:16px;line-height:24px}
.title-in:focus,.desc-in:focus{outline:none}
.row{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px}
.fld{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted);flex:1 1 140px}
.foot{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--border);margin-top:12px;padding-top:12px}
.delproj{margin-top:32px}
.empty{padding:32px 8px;color:var(--muted)}
.toast{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));background:var(--text);color:var(--bg);padding:12px 16px;border-radius:8px;box-shadow:0 12px 32px rgba(16,24,40,.25);z-index:10;transition:opacity 200ms var(--ease)}
/* auth */
.authbody{display:grid;place-items:center;min-height:100vh;padding:16px}
.auth{width:100%;max-width:380px}.auth h1{margin-bottom:16px}
.auth label{display:block;font-weight:500;margin:12px 0 4px}.auth .btn{width:100%;margin-top:20px}
.msg{color:var(--danger);margin:0 0 8px}.alt{color:var(--muted);margin-top:16px}
@media (max-width:760px){
  .app{grid-template-columns:1fr}
  .side{position:static;height:auto;border-right:0;border-bottom:1px solid var(--border)}
  .main{padding:20px 16px 80px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
/* Account, auth and settings additions */
.note{background:var(--accent-soft);border-radius:8px;padding:10px 12px;margin:0 0 12px}
.auth .oauth{margin-top:8px}.auth .oauth + form .btn{margin-top:20px}
.verifynote{font-size:12px;color:var(--muted);background:var(--surface);border-radius:8px;padding:8px;margin:0 0 12px}
.shared{color:var(--muted);font-size:12px}
.settings{padding:20px;margin-top:16px}.settings h2{font:600 16px/22px Inter,"Noto Sans Malayalam",sans-serif;margin:0 0 12px}
.settings form{display:flex;flex-direction:column;gap:12px;align-items:flex-start;margin:0 0 12px}.settings .fld{width:100%;max-width:420px;flex:none}
.settings .row form{margin:0}.chkrow{display:flex;gap:8px;align-items:center}
.tokenrow{flex-direction:row!important;align-items:center!important;justify-content:space-between;width:100%;max-width:520px}
code.token{word-break:break-all;font-size:13px}.over{color:var(--danger)}
/* Sections, sub-tasks, comments, reminders, sharing, labels, filters, activity */
.headrow{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.headrow h1{flex:1;min-width:0;overflow-wrap:anywhere}
.acts{display:flex;gap:8px;flex-wrap:wrap}.btn.on{color:var(--p2)}
.inl{display:inline-flex;gap:6px;align-items:center;margin:0;flex-wrap:wrap}
.crumbs{color:var(--muted);margin:0 0 6px;font-size:12px}.crumbs a{color:var(--muted)}
.tags{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.chip{background:color-mix(in srgb,var(--lc,#b8b8b8) 22%,var(--bg));border-radius:999px;padding:0 8px;color:var(--text)}
.sechead{display:flex;align-items:center;gap:8px;margin:20px 0 4px;padding-bottom:6px;border-bottom:1px solid var(--border)}
.sechead h2{margin:0;padding:0;border:0;flex:1}.sechead .n,.block h2 .n{color:var(--muted);font-weight:400;font-size:12px;margin-left:4px}
.secmenu{position:relative}.secmenu summary{list-style:none;cursor:pointer;color:var(--muted);padding:0 8px;border-radius:6px;font-weight:700}
.secmenu summary::-webkit-details-marker{display:none}.secmenu summary:hover{background:var(--surface-hover)}
.pop{position:absolute;right:0;top:28px;z-index:5;background:var(--bg);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow-card);padding:12px;display:flex;flex-direction:column;gap:8px;width:280px}
.inlineadd{display:flex;gap:6px;margin:6px 0 0;padding:0 8px}.inlineadd .in{border-color:var(--border);background:transparent}
.newsec{margin-top:24px;color:var(--muted)}.newsec summary{cursor:pointer;height:32px;display:flex;align-items:center}.newsec form{margin-top:6px}
.block{margin-top:28px}.block h2{font:600 14px/20px Inter,"Noto Sans Malayalam",sans-serif;margin:0 0 6px;padding-bottom:6px;border-bottom:1px solid var(--border)}
.comment{padding:10px 8px;border-bottom:1px solid var(--border)}.chead{margin-bottom:2px}.chead .sub{font-size:12px;margin-left:6px}
.cbody{overflow-wrap:anywhere}.cacts{display:flex;gap:12px;align-items:flex-start;margin-top:4px;font-size:12px}
.cacts details[open]{flex:1}.cacts form:not(.inl){display:flex;flex-direction:column;gap:6px;align-items:flex-start;margin-top:6px}
.in.area{height:auto;padding:8px 12px;resize:vertical}
.cform{display:flex;flex-direction:column;gap:8px;align-items:flex-end;margin-top:12px}
.remrow{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px;border-bottom:1px solid var(--border)}
.remform{margin-top:12px}.remform .in{width:auto}
.members{display:flex;flex-direction:column;gap:4px;margin-bottom:20px;width:100%}
.member{display:flex;align-items:center;gap:10px;padding:6px 0;border-bottom:1px solid var(--border);flex-wrap:wrap}
.who2{flex:1;min-width:160px;overflow-wrap:anywhere}.who2 .sub{font-size:12px}.role{color:var(--muted)}
.member .in{width:auto}.settings h2 + .note{margin-top:0}
.event{display:flex;gap:10px;align-items:baseline;padding:8px;border-bottom:1px solid var(--border)}
.evicon{width:20px;text-align:center;color:var(--muted);flex:none}.evtext{flex:1;min-width:0;overflow-wrap:anywhere}.evtext a{color:var(--text)}
.quickadd{margin:0 0 8px}.quickadd .in{background:var(--bg)}
.newproj form.stack{flex-direction:column;align-items:stretch}
.task .inl{align-self:center}
.fld[hidden]{display:none}
/* Add-task composer: one line of text, Project and Date chips, red send button */
.add .plus{color:var(--accent);font-size:18px;line-height:1}
.composer{border:1px solid var(--border);border-radius:10px;padding:10px 12px 10px;margin-top:8px;background:var(--bg);transition:border-color 120ms var(--ease),box-shadow 120ms var(--ease)}
.composer[hidden]{display:none}.composer:focus-within{border-color:var(--border-input);box-shadow:var(--shadow-card)}
.composer-in{width:100%;border:0;background:none;padding:4px 2px 10px;font-size:15px;line-height:22px}.composer-in:focus{outline:none}
.composer-in::placeholder{color:var(--muted)}
.composer-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.composer-bar .grow{flex:1}
.chip-btn{position:relative;display:inline-flex;align-items:center;gap:4px;height:30px;padding:0 8px;border:1px solid var(--border);border-radius:6px;color:var(--muted);font-size:13px;cursor:pointer;background:var(--bg)}
.chip-btn:hover{background:var(--surface)}.chip-btn:focus-within{outline:2px solid var(--accent);outline-offset:1px}
.chip-btn svg,.icon-btn svg,.send svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.chip-btn select{appearance:none;-webkit-appearance:none;border:0;background:none;color:inherit;font-size:13px;cursor:pointer;padding:0;max-width:160px}
.chip-btn select:focus{outline:none}.chip-btn.set{color:var(--accent);border-color:var(--accent)}
.sr{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;bottom:0;left:0}
.icon-btn{display:grid;place-content:center;width:36px;height:36px;border:0;border-radius:8px;background:none;color:var(--muted);cursor:pointer}
.icon-btn:hover{background:var(--surface);color:var(--text)}.icon-btn svg{width:20px;height:20px}
.send{display:grid;place-content:center;width:36px;height:36px;border:0;border-radius:8px;background:var(--accent);color:var(--on-accent);cursor:pointer}
.send:hover{filter:brightness(.92)}.send:disabled{opacity:.45;cursor:default;filter:none}.send svg{width:18px;height:18px;stroke-width:2.2}
.add[hidden]{display:none}
/* Share panel (project/<name>-<id>/share) */
.main{position:relative}
.sharepanel{position:absolute;top:24px;right:16px;width:min(460px,calc(100% - 32px));z-index:6;padding:16px 18px;margin:0;box-shadow:0 12px 32px rgba(16,24,40,.18)}
.sharehead{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.sharehead h2{font:600 16px/22px Inter,"Noto Sans Malayalam",sans-serif;margin:0;overflow-wrap:anywhere}
.sharepanel h3{font:600 14px/20px Inter,"Noto Sans Malayalam",sans-serif;margin:16px 0 6px}
.shareform{display:flex;flex-direction:column;gap:8px}.shareform .sub{font-size:12px;margin:0}
.sharebar{display:flex;gap:8px;justify-content:flex-end}.sharebar .in{width:auto}
.known{border:1px solid var(--border);border-radius:8px;padding:6px 10px;margin:0;max-height:180px;overflow:auto}
.known legend{font-size:12px;color:var(--muted);padding:0 4px}.known .chkrow{padding:4px 0;flex-wrap:wrap}.known .sub{font-size:12px}
.avatar.sm{width:22px;height:22px;font-size:11px}.avatar.ghost{background:var(--surface-hover);color:var(--muted)}
.access{display:flex;gap:10px;align-items:flex-start;margin:0;padding:8px 0;border-bottom:1px solid var(--border)}.access .sub{font-size:12px}
.member.pending .who2 b{font-weight:500}
.rolesel{border-color:transparent;background:transparent;color:var(--muted)}.rolesel:hover{border-color:var(--border)}
.linkrow{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:6px;flex-wrap:wrap;overflow-wrap:anywhere}
.sharefoot{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid var(--border);flex-wrap:wrap}.sharefoot .sub{font-size:12px}
@media (max-width:760px){.sharepanel{position:static;width:auto;margin-bottom:16px;box-shadow:var(--shadow-card)}}
/* Priority picker (task form) and composer chip */
.prio{display:flex;gap:6px;flex-wrap:wrap;border:0;padding:0;margin:0}.prio legend{font-size:12px;color:var(--muted);padding:0;margin-bottom:4px}
.prio label{display:inline-flex;align-items:center;gap:5px;height:30px;padding:0 10px;border:1px solid var(--border);border-radius:6px;cursor:pointer;font-size:13px;color:var(--text);background:var(--bg)}
.prio input{position:absolute;opacity:0;width:1px;height:1px}
.prio label:hover{background:var(--surface)}
.prio label:has(input:checked){background:var(--ps);border-color:var(--pc);font-weight:600}
.prio label:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:1px}
.flag{width:14px;height:14px;fill:var(--pc);stroke:var(--pc);stroke-width:1.6;stroke-linejoin:round}
.pv1{--pc:var(--p1);--ps:var(--p1-soft)}.pv2{--pc:var(--p2);--ps:var(--p2-soft)}.pv3{--pc:var(--p3);--ps:var(--p3-soft)}.pv4{--pc:var(--p4);--ps:var(--surface)}
.pv4 .flag{fill:none}
.chip-btn.pchip.set{color:var(--pc);border-color:var(--pc);background:var(--ps)}
.chip-btn .flag{width:16px;height:16px}
/* Pastel colour swatches (projects, labels, filters) */
.swatches{display:flex;flex-wrap:wrap;gap:6px;border:0;padding:0;margin:0}.swatches legend{font-size:12px;color:var(--muted);padding:0;margin-bottom:4px}
.swatches label{position:relative;cursor:pointer}
.swatches input{position:absolute;opacity:0;width:1px;height:1px}
.swatches span{display:block;width:24px;height:24px;border-radius:999px;background:var(--sw);border:2px solid var(--bg);box-shadow:0 0 0 1px var(--border)}
.swatches input:checked + span{box-shadow:0 0 0 2px var(--text)}
.swatches input:focus-visible + span{outline:2px solid var(--accent);outline-offset:2px}
.newproj .swatches{width:100%;margin:2px 0}.newproj .swatches span{width:20px;height:20px}
.newproj form.wrap{flex-wrap:wrap}
/* Admin dashboard */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin-bottom:20px}
.stat{border:1px solid var(--border);border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:2px;background:var(--bg)}
.stat b{font-size:22px;line-height:28px}.stat .sub{font-size:12px;margin:0}
.adminbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:8px}.adminbar input[type=search]{flex:1 1 220px;width:auto}
.tabs{display:flex;gap:4px;flex-wrap:wrap;margin-left:auto}
.tab{padding:4px 10px;border-radius:999px;color:var(--muted);text-decoration:none;font-size:13px}.tab:hover{background:var(--surface-hover)}
.tab.cur{background:var(--accent-soft);color:var(--accent);font-weight:600}
.utable{margin-top:8px;border-top:1px solid var(--border)}
.urow{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(0,1.2fr) minmax(0,1.3fr) minmax(0,.8fr) auto;gap:12px;align-items:center;padding:10px 4px;border-bottom:1px solid var(--border)}
.uhead{font-size:12px;color:var(--muted);font-weight:500;padding:6px 4px}
.ucell{min-width:0;overflow-wrap:anywhere}.ucell.sub{font-size:12px;margin:0}.uwho{display:flex;gap:10px;align-items:center}
.badge{display:inline-block;font-size:11px;line-height:18px;padding:0 7px;border-radius:999px;background:var(--surface-hover);color:var(--muted);font-weight:600}
.badge.pro{background:var(--accent-soft);color:var(--accent)}.badge.warn{background:var(--p2-soft);color:var(--due-tomorrow)}
.manage{position:relative}.manage summary{list-style:none}.manage summary::-webkit-details-marker{display:none}
.manage .pop{top:38px;width:300px}.manage .pop form{margin:0}.manage .stack{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.manage .pop .in{width:auto}.manage .pop hr{border:0;border-top:1px solid var(--border);width:100%;margin:2px 0}.manage .pop .sub{font-size:12px;margin:0}
.pager{display:flex;gap:10px;align-items:center;justify-content:center;margin-top:16px}
@media (max-width:760px){
  .urow{grid-template-columns:1fr auto}.uhead{display:none}
  .urow .ucell:nth-child(2),.urow .ucell:nth-child(3),.urow .ucell:nth-child(4){grid-column:1}
  .urow .ucell:nth-child(5){grid-column:2;grid-row:1}
  .manage .pop{right:0;width:min(300px,calc(100vw - 32px))}
}
/* Profile menu (sidebar header) */
.profile{position:relative;margin-bottom:12px}
.profile > summary{list-style:none;cursor:pointer;border-radius:8px;padding:4px;margin:0;flex-wrap:nowrap}
.profile > summary::-webkit-details-marker{display:none}
.profile > summary:hover{background:var(--surface-hover)}
.chev{width:16px;height:16px;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none;transition:transform 120ms var(--ease)}
.profile[open] .chev{transform:rotate(180deg)}
.pmenu{position:fixed;left:12px;top:60px;z-index:20;width:300px;max-width:calc(100vw - 24px);background:var(--bg);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 28px rgba(0,0,0,.14);padding:6px}
.pitem{display:flex;align-items:center;gap:12px;width:100%;min-height:36px;padding:6px 10px;border:0;border-radius:6px;background:none;color:var(--text);text-decoration:none;font:inherit;text-align:left;cursor:pointer}
.pitem:hover,.pitem:focus-visible{background:var(--surface-hover)}
.pitem > svg{width:18px;height:18px;fill:none;stroke:var(--muted);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.pitem kbd{margin-left:auto;font:400 12px/16px Inter,"Noto Sans Malayalam",sans-serif;color:var(--muted);background:none;border:0;white-space:nowrap}
.phead{align-items:flex-start;padding:10px}.phead .avatar{width:32px;height:32px}
.pgrow{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.pgrow b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pgrow .sub{font-size:12px;margin:0}
.pbar{display:block;height:4px;border-radius:999px;background:var(--surface-hover);overflow:hidden;margin-top:4px;width:120px}
.pbar span{display:block;height:100%;background:var(--due-today);border-radius:999px}
.psep{height:1px;background:var(--border);margin:6px 4px}
.pup{color:var(--text)}.pup > svg{stroke:var(--p2);fill:var(--p2-soft)}
.pform{margin:0}.pfoot{padding:4px 10px 6px}.pfoot .sub{font-size:12px;margin:0;overflow-wrap:anywhere}
@media (max-width:760px){.pmenu{width:calc(100vw - 24px)}}
/* Print: just the task list */
@media print{
  .side,.add,.composer,.acts,.newsec,.inlineadd,.secmenu,.toast,.delproj,.sharepanel,.tg noscript{display:none!important}
  .app{display:block}.main{max-width:none;padding:0}
  .task{break-inside:avoid}.chk{print-color-adjust:exact;-webkit-print-color-adjust:exact}
}
/* Settings: left menu + sections */
.setwrap{display:grid;grid-template-columns:220px minmax(0,1fr);padding:0;overflow:hidden;margin-top:0}
.setnav{background:var(--surface);border-right:1px solid var(--border);padding:16px 10px;display:flex;flex-direction:column;gap:2px}
.setnav h1{font-size:18px;line-height:24px;margin:0 8px 12px}
.setlink{display:flex;align-items:center;gap:10px;height:36px;padding:0 10px;border-radius:6px;color:var(--text);text-decoration:none}
.setlink:hover{background:var(--surface-hover)}.setlink.cur{background:var(--accent-soft);color:var(--accent);font-weight:600}
.setlink svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.setbody{padding:16px 24px 28px;min-width:0}
.sethead{font:600 16px/22px Inter,"Noto Sans Malayalam",sans-serif;margin:0 -24px 8px;padding:0 24px 14px;border-bottom:1px solid var(--border)}
.setsec{padding:14px 0;border-bottom:1px solid var(--border);max-width:520px}.setsec:last-child{border-bottom:0}
.setsec h3{font:600 14px/20px Inter,"Noto Sans Malayalam",sans-serif;margin:0 0 8px}.setsec h3 label{cursor:pointer}
.setsec p{margin:0 0 8px}.setsec .sub{font-size:12px;margin:0 0 4px}
.setsec form{display:flex;flex-direction:column;gap:10px;align-items:flex-start;margin:0}.setsec form .in{max-width:420px}
.setsec .inl form{flex-direction:row}
.countrow{display:flex;justify-content:space-between;align-items:center;width:100%;max-width:420px}
.setdetails > summary{list-style:none;display:inline-flex}.setdetails > summary::-webkit-details-marker{display:none}
.setdetails[open] > summary{margin-bottom:10px}
.photorow{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.photorow .inl{margin-bottom:8px}
.avatar.xl{width:88px;height:88px;font-size:34px}
img.avatar{object-fit:cover;background:var(--surface-hover)}
.filebtn{position:relative;overflow:hidden;cursor:pointer}
.filebtn input{position:absolute;inset:0;opacity:0;cursor:pointer;font-size:0}
.filebtn:focus-within{outline:2px solid var(--accent);outline-offset:2px}
@media (max-width:760px){
  .setwrap{grid-template-columns:1fr}
  .setnav{border-right:0;border-bottom:1px solid var(--border);flex-direction:row;flex-wrap:wrap;padding:10px}
  .setnav h1{width:100%;margin:0 4px 6px}.setlink{height:32px;padding:0 10px}
  .setbody{padding:14px 16px 20px}.sethead{margin:0 -16px 8px;padding:0 16px 12px}
}
/* Voice input in the add box (browser speech recognition: Chrome, Edge, Android, Safari) */
.voice{display:inline-flex;align-items:center;gap:2px}.voice[hidden]{display:none}
.voice-lang{appearance:none;-webkit-appearance:none;border:1px solid var(--border);border-radius:6px;background:var(--bg);color:var(--muted);font-size:12px;height:30px;padding:0 8px;cursor:pointer}
.mic.on{color:#fff;background:var(--accent);animation:micpulse 1.2s var(--ease) infinite}
@keyframes micpulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--accent) 45%,transparent)}100%{box-shadow:0 0 0 10px transparent}}
.voice-msg{margin:8px 2px 0;font-size:12px;color:var(--muted)}.voice-msg.err{color:var(--danger)}
.composer.listening{border-color:var(--accent)}
.titlerow{display:flex;align-items:center;gap:8px}.titlerow .title-in{flex:1;min-width:0}
.editform.listening{border-color:var(--accent)}
/* Install as an app */
.installbtn{gap:6px}.installbtn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.installbtn[hidden],.pitem[hidden]{display:none}
.installhelp{margin:10px 0 0}
/* Theme picker (Settings > General) */
.themes{border:0;padding:0;margin:0;display:flex;gap:10px;flex-wrap:wrap}.themes legend{padding:0}
.themeopt{display:flex;flex-direction:column;gap:8px;width:150px;padding:8px;border:1px solid var(--border);border-radius:10px;cursor:pointer;font-size:13px}
.themeopt:hover{background:var(--surface)}.themeopt:has(input:checked){border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.themeopt input{position:absolute;opacity:0;width:1px;height:1px}.themeopt:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
.themeopt .sub{font-size:11px;line-height:14px}
.tprev{display:flex;height:56px;border-radius:6px;overflow:hidden;border:1px solid var(--border)}
.tprev i{width:34%;background:#fcfaf8}.tprev b{flex:1;background:#fff;position:relative}
.tprev b::after{content:"";position:absolute;left:10px;right:14px;top:14px;height:5px;border-radius:3px;background:#dc4c3e;box-shadow:0 12px 0 #e6e6e6,0 22px 0 #e6e6e6}
.t-dark .tprev i{background:#262626}.t-dark .tprev b{background:#1e1e1e}.t-dark .tprev b::after{background:#e5574b;box-shadow:0 12px 0 #3a3a3a,0 22px 0 #3a3a3a}
.t-auto .tprev b{background:linear-gradient(90deg,#fff 50%,#1e1e1e 50%)}.t-auto .tprev i{background:linear-gradient(90deg,#fcfaf8 50%,#262626 50%)}
/* Welcome page (signed-out visitors) */
.landing{min-height:100vh;display:flex;flex-direction:column;background:radial-gradient(900px 500px at 85% -10%,var(--accent-soft),transparent 70%),var(--bg)}
.lhead{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px clamp(16px,4vw,48px);max-width:1180px;width:100%;margin:0 auto}
.lbrand{display:flex;align-items:center;gap:10px;color:var(--text);text-decoration:none;font-weight:700;font-size:18px}.lbrand img{border-radius:7px}
.lnav{display:flex;gap:8px}
.lmain{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:clamp(24px,5vw,64px);align-items:start;padding:24px clamp(16px,4vw,48px) 40px;max-width:1180px;width:100%;margin:0 auto}
.lhero h1{font:700 clamp(32px,4.6vw,52px)/1.1 Inter,"Noto Sans Malayalam",sans-serif;letter-spacing:-.02em;margin:12px 0 16px}.lhero h1 span{color:var(--accent)}
.lsub{font-size:17px;line-height:27px;color:var(--muted);max-width:560px;margin:0 0 24px}
.lcta{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:36px}
.lcard{padding:24px;margin:0;position:sticky;top:24px}.lcard h2{font:700 22px/28px Inter,sans-serif;margin:0 0 4px}
.lcard label{display:block;font-weight:500;margin:12px 0 4px}.lcard form .btn{width:100%;margin-top:18px}.lcard .oauth{width:100%;margin-top:10px}
.feats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:8px clamp(16px,4vw,48px) 48px;max-width:1180px;width:100%;margin:0 auto}
.feat{border:1px solid var(--border);border-radius:12px;padding:18px;background:var(--bg)}.feat b{display:block;margin:10px 0 4px}.feat p{margin:0;color:var(--muted);font-size:13px;line-height:20px}
.fico{width:36px;height:36px;border-radius:10px;display:grid;place-content:center}
.fico svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.f1{background:var(--p1-soft);color:var(--p1)}.f2{background:var(--p2-soft);color:var(--p2)}.f3{background:var(--p3-soft);color:var(--p3)}
.lfoot{margin-top:auto;padding:18px;text-align:center;color:var(--muted);font-size:12px;border-top:1px solid var(--border)}
@media (max-width:900px){.lmain{grid-template-columns:1fr}.lcard{position:static;max-width:440px}.feats{grid-template-columns:1fr}}

/* The demo card: 12-second loop. A task is typed, lands in the list, then tasks are ticked off. */
.demo{--loop:12s;max-width:520px;border:1px solid var(--border);border-radius:14px;background:var(--bg);box-shadow:0 18px 50px rgba(0,0,0,.08),0 2px 6px rgba(0,0,0,.04);overflow:hidden}
.demo-bar{display:flex;gap:6px;padding:10px 14px;background:var(--surface);border-bottom:1px solid var(--border)}
.demo-bar span{width:10px;height:10px;border-radius:999px;background:var(--border-input)}
.demo-bar span:nth-child(1){background:#ff8d85}.demo-bar span:nth-child(2){background:#f5d76e}.demo-bar span:nth-child(3){background:#b5d98a}
.demo-body{padding:16px 18px 10px}
.demo-head{display:flex;align-items:baseline;gap:8px;margin-bottom:10px}.demo-head b{font-size:20px}.demo-count{color:var(--muted);font-size:12px}
.demo-add{display:flex;align-items:center;gap:8px;height:40px;padding:0 12px;border:1px solid var(--border);border-radius:9px;margin-bottom:6px;color:var(--text);font-size:14px;overflow:hidden;white-space:nowrap}
.demo-plus{color:var(--accent);font-size:18px;line-height:1}
.demo-type{display:inline-block;overflow:hidden;max-width:0;animation:demo-type var(--loop) steps(28,end) infinite}
.demo-caret{width:2px;height:18px;background:var(--accent);animation:demo-caret .8s steps(1) infinite}
.demo-row{display:flex;gap:12px;align-items:flex-start;padding:10px 2px;border-bottom:1px solid var(--border)}
.demo-row:last-child{border-bottom:0}
.demo-txt{display:flex;flex-direction:column;gap:2px;min-width:0}.demo-txt b{font-weight:500;font-size:14px;position:relative;width:max-content;max-width:100%}
.demo-txt small{display:flex;gap:8px;font-size:12px}.demo-txt em{font-style:normal}
.d-today{color:var(--due-today)}.d-tom{color:var(--due-tomorrow)}.d-week{color:var(--due-week)}.d-proj,.d-label{color:var(--muted)}
.demo-chk{--pc:var(--p4);--ps:transparent;width:20px;height:20px;border-radius:999px;border:1.5px solid var(--pc);background:var(--ps);display:grid;place-content:center;flex:none;margin-top:1px}
.demo-chk.p1{--pc:var(--p1);--ps:var(--p1-soft);border-width:2px}.demo-chk.p2{--pc:var(--p2);--ps:var(--p2-soft);border-width:2px}.demo-chk.p3{--pc:var(--p3);--ps:var(--p3-soft);border-width:2px}
.demo-chk svg{width:12px;height:12px;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.demo-new{max-height:0;opacity:0;padding-top:0;padding-bottom:0;overflow:hidden;animation:demo-new var(--loop) var(--ease) infinite}
.demo-a .demo-chk{animation:demo-tick-a var(--loop) infinite}.demo-a .demo-chk svg{animation:demo-svg-a var(--loop) infinite}.demo-a .demo-txt{animation:demo-done-a var(--loop) infinite}
.demo-b .demo-chk{animation:demo-tick-b var(--loop) infinite}.demo-b .demo-chk svg{animation:demo-svg-b var(--loop) infinite}.demo-b .demo-txt{animation:demo-done-b var(--loop) infinite}
@keyframes demo-type{0%,6%{max-width:0;opacity:1}30%,34%{max-width:20em;opacity:1}37%,100%{max-width:20em;opacity:0}}
@keyframes demo-caret{50%{opacity:0}}
@keyframes demo-new{0%,36%{max-height:0;opacity:0;padding-top:0;padding-bottom:0;transform:translateY(-6px)}42%,90%{max-height:70px;opacity:1;padding-top:10px;padding-bottom:10px;transform:none}96%,100%{max-height:0;opacity:0;padding-top:0;padding-bottom:0}}
@keyframes demo-tick-a{0%,50%{background:var(--ps)}53%,90%{background:var(--pc);transform:scale(1)}51.5%{transform:scale(1.18)}96%,100%{background:var(--ps)}}
@keyframes demo-svg-a{0%,51%{opacity:0}53%,90%{opacity:1}96%,100%{opacity:0}}
@keyframes demo-done-a{0%,53%{opacity:1;text-decoration:none}56%,90%{opacity:.45;text-decoration:line-through}96%,100%{opacity:1;text-decoration:none}}
@keyframes demo-tick-b{0%,66%{background:var(--ps)}69%,90%{background:var(--pc)}67.5%{transform:scale(1.18)}96%,100%{background:var(--ps)}}
@keyframes demo-svg-b{0%,67%{opacity:0}69%,90%{opacity:1}96%,100%{opacity:0}}
@keyframes demo-done-b{0%,69%{opacity:1;text-decoration:none}72%,90%{opacity:.45;text-decoration:line-through}96%,100%{opacity:1;text-decoration:none}}
@media (prefers-reduced-motion:reduce){
  .demo *{animation:none!important}.demo-type{max-width:none}.demo-caret{display:none}
  .demo-new{max-height:none;opacity:1;padding-top:10px;padding-bottom:10px}
}
/* Installer (install.php) */
.instbody{min-height:100vh;display:grid;place-items:start center;padding:32px 16px;background:radial-gradient(800px 400px at 50% -10%,var(--accent-soft),transparent 70%),var(--bg)}
.inst{width:100%;max-width:560px;padding:24px 26px;margin:0}
.insthead{display:flex;gap:12px;align-items:center;margin-bottom:18px}.insthead img{border-radius:8px}.insthead div{display:flex;flex-direction:column}.insthead .sub{margin:0;font-size:12px}
.inststeps{display:flex;gap:6px;flex-wrap:wrap;list-style:none;padding:0;margin:0 0 20px}
.inststeps li{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);padding:4px 10px 4px 4px;border-radius:999px;background:var(--surface)}
.inststeps li span{width:20px;height:20px;border-radius:999px;display:grid;place-content:center;background:var(--surface-hover);font-weight:600}
.inststeps li.now{background:var(--accent-soft);color:var(--accent);font-weight:600}.inststeps li.now span{background:var(--accent);color:#fff}
.inststeps li.past span{background:var(--success);color:#fff}
.inst h1{font-size:22px;line-height:28px;margin:0 0 10px}.inst h2{font-size:15px;margin:18px 0 6px}
.inst .sub{display:block;font-size:12px;line-height:18px;margin:4px 0 0}
.instform{display:flex;flex-direction:column;gap:12px;margin-top:8px}
.instform label{display:flex;flex-direction:column;gap:4px;font-weight:500;font-size:13px}
.instform label.radio{flex-direction:row;align-items:flex-start;gap:8px;font-weight:400}
.instform fieldset{border:1px solid var(--border);border-radius:10px;padding:10px 12px;margin:0;display:flex;flex-direction:column;gap:8px}
.instform legend{font-weight:600;font-size:13px;padding:0 4px}
.mailfields{display:flex;flex-direction:column;gap:10px}.mailfields[hidden]{display:none}
.two{display:flex;gap:10px}.two label{flex:1}.two .short{flex:0 0 96px}
.instnav{display:flex;justify-content:space-between;gap:10px;margin-top:8px}
.checks{list-style:none;padding:0;margin:0 0 14px;display:flex;flex-direction:column;gap:2px}
.checks li{display:flex;gap:10px;align-items:flex-start;padding:8px 4px;border-bottom:1px solid var(--border)}
.checks .dot{width:22px;height:22px;border-radius:999px;display:grid;place-content:center;font-weight:700;font-size:12px;flex:none;color:#fff;background:var(--success)}
.checks .warn .dot{background:var(--p2)}.checks .fail .dot{background:var(--danger)}
.summary{list-style:none;padding:0;margin:8px 0 12px;display:flex;flex-direction:column;gap:6px}
.summary li{overflow-wrap:anywhere}.summary li > span{display:inline-block;width:110px;color:var(--muted)}
.envtext{font:12px/18px ui-monospace,Consolas,monospace;white-space:pre;overflow:auto;margin:8px 0}
.todo{padding-left:20px;display:flex;flex-direction:column;gap:10px}.todo code{display:inline-block;margin-top:4px;overflow-wrap:anywhere;white-space:normal}
/* Reporting (activity.php) */
.navico{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.repfilters{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:14px}
.repfilters .chip-btn{height:34px;color:var(--text)}.repfilters .chip-btn select{max-width:200px}
.repday h2{font:600 14px/20px Inter,"Noto Sans Malayalam",sans-serif;margin:24px 0 2px;padding-bottom:8px;border-bottom:1px solid var(--border)}
.repday h2 .n{color:var(--muted);font-weight:400;margin-left:4px}
.reprow{display:flex;align-items:center;gap:12px;padding:10px 6px;border-bottom:1px solid var(--border)}
.repwho{position:relative;flex:none}.repwho .avatar{width:30px;height:30px}
.repbadge{position:absolute;right:-4px;bottom:-4px;width:16px;height:16px;border-radius:999px;display:grid;place-content:center;border:2px solid var(--bg);background:var(--faint)}
.repbadge svg{width:12px;height:12px;fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.b-add,.b-done{background:var(--success)}.b-del{background:var(--danger)}.b-edit,.b-reopen{background:var(--p3)}.b-comment{background:var(--p2)}.b-share{background:#8a6cdf}
.reptext{flex:1;min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:6px;overflow-wrap:anywhere}
.reptext b{font-weight:500}
.repchip{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:3px 10px;border:1px solid var(--border);border-radius:6px;color:var(--text);text-decoration:none;font-size:13px}
a.repchip:hover{background:var(--surface)}
.repchip .rc{width:13px;height:13px;border-radius:999px;border:1px solid var(--faint);flex:none}
.repchip.done{color:var(--muted);text-decoration:line-through}.repchip.done .rc{background:var(--faint);border-color:var(--faint)}
.repchip.gone{color:var(--muted)}.repchip.proj{border-style:dashed}
.repmeta{display:flex;gap:14px;align-items:center;flex:none;color:var(--muted);font-size:12px;white-space:nowrap}
.repmeta a{color:var(--muted);text-decoration:none}.repmeta a:hover{color:var(--text)}
@media (max-width:760px){.reprow{flex-wrap:wrap}.repmeta{width:100%;padding-left:42px;justify-content:space-between}}
/* Search box (Ctrl+K) */
.navbtn{width:100%;border:0;background:none;font:inherit;cursor:pointer;text-align:left}
.navbtn kbd{font:400 11px/16px Inter,sans-serif;border:0;background:none}
.palette{width:min(720px,calc(100vw - 24px));max-height:min(620px,calc(100vh - 80px));padding:0;border:1px solid var(--border);border-radius:12px;background:var(--bg);color:var(--text);box-shadow:0 24px 70px rgba(0,0,0,.22);margin:12vh auto auto;overflow:hidden}
.palette[open]{display:flex;flex-direction:column}
.palette::backdrop{background:rgba(0,0,0,.25)}
.palhead{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--border)}
.palhead svg{width:20px;height:20px;fill:none;stroke:var(--muted);stroke-width:1.8;stroke-linecap:round;flex:none}
.palhead input{flex:1;min-width:0;border:0;background:none;font-size:16px;line-height:24px;color:var(--text)}.palhead input:focus{outline:none}
.palhead input::-webkit-search-cancel-button{display:none}
.palette kbd{font:500 11px/16px Inter,sans-serif;color:var(--muted);background:var(--surface);border:1px solid var(--border);border-radius:4px;padding:1px 5px}
.palbody{overflow:auto;padding:6px 8px 10px;flex:1}
.palgrp{font-size:12px;color:var(--muted);padding:12px 8px 4px}
.palitem{display:flex;align-items:center;gap:12px;width:100%;min-height:40px;padding:6px 10px;border:0;border-radius:8px;background:none;color:var(--text);font:inherit;text-align:left;cursor:pointer;text-decoration:none}
.palitem.sel,.palitem:hover{background:var(--surface-hover)}
.palitem .pi{width:20px;height:20px;display:grid;place-content:center;flex:none;color:var(--muted)}
.palitem .pi svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.palitem .pi.hash{font-weight:700;font-size:16px}
.palitem .pl{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.palitem .pl mark{background:var(--accent-soft);color:inherit;border-radius:3px}
.palitem .pr{display:flex;gap:6px;align-items:center;color:var(--muted);font-size:12px;flex:none}
.palitem .pring{width:16px;height:16px;border-radius:999px;border:1.5px solid var(--pc,var(--p4));background:var(--ps,transparent);flex:none}
.palitem.done .pl{text-decoration:line-through;color:var(--muted)}.palitem.done .pring{background:var(--pc,var(--p4))}
.palempty{padding:24px 10px;color:var(--muted);text-align:center}
.palfoot{display:flex;gap:16px;padding:8px 16px;border-top:1px solid var(--border);color:var(--muted);font-size:12px}
.palfoot kbd{margin-right:3px}
@media (max-width:760px){.palette{margin-top:12px}.palfoot{display:none}}
/* Notifications: bell in the sidebar + page */
.toprow{display:flex;align-items:center;gap:4px;margin-bottom:12px}.toprow .profile{flex:1;min-width:0;margin-bottom:0}
.bell{position:relative;width:34px;height:34px;border-radius:8px;display:grid;place-content:center;color:var(--muted);flex:none}
.bell:hover,.bell.cur{background:var(--surface-hover);color:var(--text)}
.bell svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.belldot{position:absolute;top:6px;right:7px;width:8px;height:8px;border-radius:999px;background:var(--p2);box-shadow:0 0 0 2px var(--surface)}
.ntabs{display:inline-flex;gap:2px;padding:3px;border:1px solid var(--border);border-radius:10px;margin-top:14px;background:var(--bg)}
.ntabs a{padding:5px 14px;border-radius:7px;color:var(--muted);text-decoration:none;font-weight:500}.ntabs a.cur{background:var(--surface-hover);color:var(--text)}
.ntabs .n{color:var(--muted);font-weight:400;margin-left:4px}
.nlist{display:flex;flex-direction:column;gap:6px;margin-top:6px}
.nitem{display:flex;gap:14px;align-items:flex-start;padding:14px 12px 12px 14px;border:1px solid var(--border);border-left:4px solid transparent;border-radius:10px;background:var(--bg)}
.nitem.unread{border-left-color:var(--accent);background:var(--surface)}
.avatar.lg{width:44px;height:44px;font-size:18px}.nitem .repbadge{width:18px;height:18px}
.nbody{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.nline{color:var(--text);text-decoration:none;overflow-wrap:anywhere}.nline:hover{text-decoration:underline}.nline b{font-weight:600}
.ntask{color:var(--muted);font-size:13px;overflow-wrap:anywhere;text-decoration:none;display:block}.ntask.done{text-decoration:line-through}
a.ntask:hover{color:var(--text)}
.nmore summary{cursor:pointer;color:var(--muted);font-size:13px;width:max-content}.nmore[open] summary{margin-bottom:2px}
.nbody time{font-size:12px;margin:2px 0 0}
.nmark{margin:0;align-self:center}.ndot{width:12px;height:12px;border-radius:999px;border:2px solid var(--faint);display:block}
.ndot.on{background:var(--accent);border-color:var(--accent)}
.nempty{border:1px dashed var(--border);border-radius:10px;margin-top:10px;text-align:center}
/* Help page */
.grpq{display:flex;align-items:center;gap:6px}
.qhelp{width:16px;height:16px;border-radius:999px;border:1px solid var(--border-input);color:var(--muted);font-size:10px;line-height:14px;text-align:center;text-decoration:none;font-weight:700}
.qhelp:hover{color:var(--accent);border-color:var(--accent)}
.helpwrap{display:grid;grid-template-columns:160px minmax(0,1fr);gap:28px;align-items:start}
.helptoc{position:sticky;top:20px;display:flex;flex-direction:column;gap:2px}
.helptoc a{padding:6px 10px;border-radius:6px;color:var(--muted);text-decoration:none;font-size:13px}.helptoc a:hover{background:var(--surface-hover);color:var(--text)}
.helpsec{padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid var(--border);scroll-margin-top:16px}.helpsec:last-child{border-bottom:0}
.helpsec h2{font:700 20px/26px Inter,"Noto Sans Malayalam",sans-serif;margin:0 0 10px}
.helpsec h3{font:600 15px/22px Inter,sans-serif;margin:20px 0 8px}
.helpsec p{margin:0 0 10px;line-height:22px}.helpsec .sub{display:block;font-size:12px;margin:2px 0 0}
code.q{font:13px/20px ui-monospace,Consolas,"Noto Sans Malayalam",monospace;background:var(--surface-hover);border-radius:5px;padding:1px 6px;white-space:pre-wrap;overflow-wrap:anywhere}
.helptable{border:1px solid var(--border);border-radius:10px;overflow:hidden}
.helptable [role=row]{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1.4fr);gap:12px;padding:8px 12px;border-bottom:1px solid var(--border);align-items:center}
.helptable [role=row]:last-child{border-bottom:0}.helptable [role=row]:nth-child(odd){background:var(--surface)}
.helptable.keys kbd{font:500 12px/18px Inter,sans-serif;background:var(--bg);border:1px solid var(--border);border-radius:4px;padding:1px 6px}
.examples{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.example{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid var(--border);border-radius:10px;padding:12px}
.example form{margin:0;flex:none}
.helplist{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px;line-height:22px}
@media (max-width:760px){.helpwrap{grid-template-columns:1fr}.helptoc{position:static;flex-direction:row;flex-wrap:wrap}.examples{grid-template-columns:1fr}.helptable [role=row]{grid-template-columns:1fr}}
/* Sidebar icons: the Today calendar shows today's date */
.navday{font:700 8px/1 Inter,sans-serif;fill:currentColor;stroke:none}
.nav .navico{color:var(--muted)}.nav.cur .navico,.nav:hover .navico{color:inherit}
.nav.cur .navico{color:var(--accent)}
/* Page titles stay on one line; the buttons move below when there isn't room (long names end in …). */
.headrow.oneline h1{flex:0 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.headrow.oneline h1 + *{margin-left:auto}
/* Sign-in buttons with logos, and Admin > Sign-in */
.btn.oauth{gap:10px;font-weight:600}.btn .brand{width:18px;height:18px;flex:none}
.signin h3{font:600 14px/20px Inter,sans-serif;margin:18px 0 8px}
.signhead{display:flex;gap:14px;align-items:center}.signhead > div{flex:1}.signhead h2{margin:0}.signhead .sub{margin:2px 0 0;font-size:12px}
.gicon{width:42px;height:42px;border-radius:10px;border:1px solid var(--border);display:grid;place-content:center;background:var(--bg)}.gicon .brand{width:22px;height:22px}
.steps{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:8px;line-height:21px}
.copyrow{display:flex;gap:8px;align-items:center;margin-top:6px;flex-wrap:wrap}.copyrow code{background:var(--surface-hover);border-radius:6px;padding:4px 8px;font-size:12px;overflow-wrap:anywhere}
.signform{max-width:560px}.signform .fld{max-width:none}.signform .sub{font-size:12px}
.removekeys{margin-top:-4px}.signin.muted{opacity:.85}
/* Add box: + menu and its extra fields */
.composer-top{display:flex;align-items:flex-start;gap:8px}.composer-top .composer-in{flex:1;min-width:0}
.qplus{position:relative;flex:none}
.qplus-btn{width:30px;height:30px;border-radius:7px;background:var(--surface-hover);color:var(--text)}.qplus-btn[aria-expanded=true]{background:var(--border)}
.qmenu{position:absolute;left:0;top:36px;z-index:30;width:270px;background:var(--bg);border:1px solid var(--border);border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.14);padding:6px}
.qmenu[hidden]{display:none}
.qitem{display:flex;align-items:center;gap:12px;width:100%;height:36px;padding:0 10px;border:0;border-radius:6px;background:none;color:var(--text);font:inherit;text-align:left;cursor:pointer}
.qitem:hover,.qitem:focus-visible{background:var(--surface-hover);outline:none}
.qitem svg{width:18px;height:18px;fill:none;stroke:var(--muted);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.qitem span{flex:1}.qitem kbd{font:500 11px/16px Inter,sans-serif;color:var(--muted);background:var(--surface);border:1px solid var(--border);border-radius:4px;padding:0 5px}
.qsep{height:1px;background:var(--border);margin:5px 2px}
.qextra{margin:2px 0 8px 38px}.qextra[hidden]{display:none}.qextra .area{width:100%}.qextra .sub{display:block;font-size:12px;margin-top:4px}
.qextra .desc-in{border:1px solid var(--border);border-radius:8px;padding:8px 10px}
.composer.bulkmode .qextra[data-extra=extract]{margin-left:0}
.qlabels{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.qlabels .in{width:180px}
.lpill{height:28px;padding:0 10px;border-radius:999px;border:1px solid var(--border);background:var(--bg);color:var(--text);font:inherit;font-size:13px;cursor:pointer}
.lpill[aria-pressed=true]{background:color-mix(in srgb,var(--lc,#b8b8b8) 30%,var(--bg));border-color:var(--lc,var(--border-input));font-weight:600}
.chip-btn[hidden]{display:none}.chipdate{border:0;background:none;color:inherit;font:inherit;font-size:13px;width:0;padding:0;opacity:0;position:absolute}
.deadline{display:inline-flex;align-items:center;gap:3px;color:var(--due-week)}.deadline.near{color:var(--due-over)}
.deadline svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2}
/* Attachments: paperclip count on task rows, the list on the task page, the + menu's file field */
.attcount{display:inline-flex;align-items:center;gap:2px}
.clip{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.attrow{display:flex;align-items:center;gap:10px;padding:8px;border-bottom:1px solid var(--border)}
.attic{color:var(--muted);display:flex}.attic .clip{width:16px;height:16px}
.attname{flex:1;min-width:0;overflow-wrap:anywhere}.attname a{color:var(--text);font-weight:500}.attname .sub{display:block;font-size:12px;margin:0}
.attform{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px}.attform input[type=file]{flex:1 1 220px;min-width:0;max-width:100%}
.qfiles input[type=file]{max-width:100%}
/* Priority menu in the add box: coloured flags, check on the chosen one */
.pdrop{position:relative;display:inline-flex}
.prilist{position:absolute;left:0;top:36px;z-index:30;min-width:170px;background:var(--bg);border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.14);padding:4px}
.prilist[hidden]{display:none}
.prio-opt{display:flex;align-items:center;gap:10px;width:100%;height:34px;padding:0 10px;border:0;border-radius:6px;background:none;color:var(--text);font:inherit;font-size:14px;text-align:left;cursor:pointer}
.prio-opt:hover,.prio-opt:focus-visible{background:var(--surface-hover);outline:none}
.prio-opt .flag{width:18px;height:18px}.prio-opt span{flex:1}
.pcheck{width:16px;height:16px;fill:none;stroke:var(--accent);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;visibility:hidden}
.prio-opt[aria-selected=true] .pcheck{visibility:visible}
/* "Task completed" toast with Undo, bottom left like Todoist */
.toast.undo{left:16px;right:auto;display:flex;align-items:center;gap:18px;padding:12px 10px 12px 18px;min-width:300px;max-width:calc(100vw - 32px);background:#202020;color:#fff;border-radius:10px}
.toastmsg{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.toastmsg b{font-weight:600}.toastmsg span{color:#d6d6d6;font-size:13px}
.toast.undo form{margin:0}
.toastundo{border:0;background:none;color:#ff8a7a;font:inherit;font-weight:600;cursor:pointer;padding:6px 8px;border-radius:6px}.toastundo:hover{background:rgba(255,255,255,.08)}
.toastx{width:30px;height:30px;border:0;border-radius:6px;background:none;color:#bdbdbd;display:grid;place-content:center;cursor:pointer}.toastx:hover{background:rgba(255,255,255,.08);color:#fff}
.toastx svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
/* Task row buttons and the task menu */
.task{position:relative}
.tacts{display:flex;gap:2px;align-items:flex-start;opacity:0;transition:opacity 100ms var(--ease);margin-left:-4px}
.task:hover .tacts,.task:focus-within .tacts,.task.menuopen .tacts{opacity:1}
.tact{width:28px;height:28px;border:0;border-radius:6px;background:none;color:var(--muted);display:grid;place-content:center;cursor:pointer}
.tact:hover,.tact[aria-expanded=true]{background:var(--surface-hover);color:var(--text)}
.tact svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media (hover:none){.tacts{opacity:1}.tacts .tact:not([data-tmenu=more]){display:none}}
.tmenu{position:fixed;z-index:60;width:290px;max-height:calc(100vh - 16px);overflow:auto;background:var(--bg);border:1px solid var(--border);border-radius:10px;box-shadow:0 12px 34px rgba(0,0,0,.16);padding:6px}
.tmenu[hidden],.tmenu [hidden]{display:none!important}
.titem{display:flex;align-items:center;gap:12px;width:100%;min-height:36px;padding:0 10px;border:0;border-radius:6px;background:none;color:var(--text);font:inherit;font-size:14px;text-align:left;text-decoration:none;cursor:pointer}
.titem:hover,.titem:focus-visible{background:var(--surface-hover);outline:none}.titem.cur{font-weight:600;color:var(--accent)}
.titem > svg{width:18px;height:18px;fill:none;stroke:var(--muted);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.titem span{flex:1}.titem.danger,.titem.danger > svg{color:var(--danger);stroke:var(--danger)}
.tinline{border:0;background:none;color:var(--muted);font:inherit;font-size:13px;max-width:130px;cursor:pointer}
.tlabel{font-size:12px;font-weight:600;color:var(--muted);padding:6px 10px 2px}
.ticons{display:flex;gap:4px;padding:4px 6px 6px}
.ticon{position:relative;width:36px;height:34px;border:0;border-radius:6px;background:none;color:var(--muted);display:grid;place-content:center;cursor:pointer}
.ticon:hover,.ticon:focus-visible{background:var(--surface-hover);color:var(--text);outline:none}
.ticon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ticon .flag{width:20px;height:20px}.ticon.cur{background:var(--surface-hover);box-shadow:inset 0 0 0 1.5px var(--border-input)}
.tsep{height:1px;background:var(--border);margin:5px 2px}
.tcomment{padding:4px 6px 6px}.tcomment .tlabel{padding:4px 2px 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tcomment textarea{width:100%}
.trow{display:flex;justify-content:space-between;align-items:center;margin-top:8px}
.ticon .flag{fill:var(--pc);stroke:var(--pc)}.ticon.pv4 .flag{fill:none}
/* Date shortcuts in the task menu: calendars showing their own date, colour-coded, with a caption */
.qdates{gap:2px;padding:4px 4px 6px;justify-content:space-between}
.ticon.qd{width:44px;height:auto;padding:6px 0 4px;display:flex;flex-direction:column;align-items:center;gap:1px;color:var(--muted)}
.ticon.qd svg{width:22px;height:22px}
.qnum{font:700 8.5px/1 Inter,sans-serif;fill:currentColor;stroke:none}
.qd .qtop{stroke-width:2.2}
.qcap{font-size:10px;line-height:12px;color:var(--text);white-space:nowrap}.qday{font-size:9px;line-height:11px;color:var(--muted)}
.qd-today{color:var(--due-today)}.qd-tom{color:var(--due-tomorrow)}.qd-wknd{color:var(--p3)}.qd-next{color:var(--due-week)}
.ticon.qd:hover{color:inherit}.ticon.qd-today:hover{color:var(--due-today)}.ticon.qd-tom:hover{color:var(--due-tomorrow)}.ticon.qd-wknd:hover{color:var(--p3)}.ticon.qd-next:hover{color:var(--due-week)}
.tmenu{width:330px}.ticon.qd{width:50px}.qcap{font-size:10.5px}
.ticon.qd-today{color:var(--due-today)}.ticon.qd-tom{color:var(--due-tomorrow)}.ticon.qd-wknd{color:var(--p3)}.ticon.qd-next{color:var(--due-week)}
/* Admin > Email */
.mailpick{border:0;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}.mailpick legend{padding:0}
.mopt{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--border);border-radius:10px;padding:10px 12px;cursor:pointer}
.mopt:has(input:checked){border-color:var(--accent);box-shadow:0 0 0 1px var(--accent);background:var(--accent-soft)}
.mopt input{margin-top:3px}.mopt .sub{font-size:12px}
.mfields{display:flex;flex-direction:column;gap:10px;width:100%}.mfields[hidden]{display:none}.mfields h3{margin:10px 0 0}
.mailset .two{display:flex;gap:10px;width:100%;max-width:560px}.mailset .two .fld{flex:1}.mailset .two .short{flex:0 0 130px}
/* Teams (companies) in the sidebar and on team.php */
.tbadge{width:18px;height:18px;border-radius:5px;background:var(--tc,#a4b0f5);color:#fff;display:inline-grid;place-content:center;font:700 10px/1 Inter,sans-serif;flex:none}
.tbadge.lg{width:30px;height:30px;border-radius:8px;font-size:16px;margin-right:10px;vertical-align:-4px}
.teamsec > summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px}.teamsec > summary::-webkit-details-marker{display:none}
.teamhead .tname{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;color:var(--text)}
.teamhead::after{content:"";width:6px;height:6px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg);margin:0 4px 3px 0;transition:transform 120ms var(--ease)}
.teamsec:not([open]) .teamhead::after{transform:rotate(-45deg)}
.tgear{width:24px;height:24px;border-radius:6px;display:grid;place-content:center;color:var(--muted);opacity:0}.teamhead:hover .tgear,.tgear:focus-visible{opacity:1}
.tgear:hover{background:var(--surface-hover);color:var(--text)}.tgear svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.newproj form.wrap select.in{width:100%}
.teamnew{border-top:1px solid var(--border);padding-top:12px;margin-top:8px}
/* Layout switch + board */
.layoutsw{display:inline-flex;gap:2px;padding:3px;border:1px solid var(--border);border-radius:9px;margin-top:12px}
.layoutsw a{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 12px;border-radius:6px;color:var(--muted);text-decoration:none;font-size:13px;font-weight:500}
.layoutsw a:hover{background:var(--surface-hover);color:var(--text)}.layoutsw a.cur{background:var(--accent-soft);color:var(--accent)}
.layoutsw svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.main:has(.board){max-width:none}
.board{display:flex;gap:14px;align-items:flex-start;overflow-x:auto;padding:4px 2px 24px;margin:0 -8px}
.bcol{flex:0 0 280px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:8px;max-height:calc(100vh - 220px)}
.bhead{display:flex;align-items:center;gap:6px;padding:2px 4px}.bhead h2{font:600 14px/20px Inter,"Noto Sans Malayalam",sans-serif;margin:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bhead .n{color:var(--muted);font-size:12px}
.bcards{display:flex;flex-direction:column;gap:8px;min-height:40px;overflow-y:auto;border-radius:8px;padding:2px}
.bcards.over{background:var(--accent-soft)}
.board .task{background:var(--bg);border:1px solid var(--border);border-radius:10px;padding:10px;box-shadow:0 1px 2px rgba(0,0,0,.04);cursor:grab;flex-wrap:wrap}
.board .task:hover{background:var(--bg);box-shadow:var(--shadow-card)}
.board .task.dragging{opacity:.45;cursor:grabbing}
.board .task .meta{flex-wrap:wrap}.board .task .proj{display:none}
.board .tacts{width:100%;justify-content:flex-end;margin:4px 0 -4px}
.badd .in,.bnew .in{width:100%;background:transparent;border-color:transparent}.badd .in:focus,.bnew .in:focus{background:var(--bg);border-color:var(--border-input)}
.bnew{background:transparent;border-style:dashed}
.board .tacts{position:absolute;top:6px;right:6px;width:auto;margin:0;background:var(--bg);border-radius:8px;box-shadow:0 0 0 4px var(--bg)}
.board .tacts{top:auto;bottom:4px}
/* Calendar layout */
.main:has(.cal){max-width:1180px}
.calbar{display:flex;align-items:center;gap:6px;margin:6px 0 10px}.calbar h2{font:700 18px/24px Inter,sans-serif;margin:0 10px 0 0;min-width:150px}
.layoutsw.small{margin-top:0}.layoutsw.small a{height:26px;padding:0 10px}
.calgrid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid var(--border);border-radius:10px;overflow:hidden;background:var(--border);gap:1px}
.calwd{background:var(--surface);font-size:12px;font-weight:600;color:var(--muted);padding:6px 8px}
.calday{background:var(--bg);min-height:110px;padding:4px 6px 6px;display:flex;flex-direction:column;gap:3px;min-width:0}
.cal.week .calday{min-height:340px}
.calday.other{background:var(--surface)}.calday.other .calnum span{opacity:.45}
.calday.over{background:var(--accent-soft)}
.calnum{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted)}
.calday.today .calnum span{background:var(--accent);color:#fff;border-radius:999px;min-width:22px;height:22px;display:inline-grid;place-content:center;font-weight:700;padding:0 6px}
.caladd{border:0;background:none;color:var(--muted);width:22px;height:22px;border-radius:6px;cursor:pointer;opacity:0;font-size:16px;line-height:1}
.calday:hover .caladd,.caladd:focus-visible{opacity:1}.caladd:hover{background:var(--surface-hover);color:var(--accent)}
.calitems{display:flex;flex-direction:column;gap:3px;min-width:0;overflow-y:auto}
.cchip{--pc:var(--p4);display:flex;align-items:center;gap:5px;font-size:12px;line-height:16px;padding:3px 6px;border-radius:6px;background:var(--surface);color:var(--text);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:grab;border-left:3px solid var(--pc)}
.cchip:hover{background:var(--surface-hover)}.cchip.dragging{opacity:.4}.cchip b{font-weight:600;color:var(--muted)}
.cchip.p1{--pc:var(--p1);background:var(--p1-soft)}.cchip.p2{--pc:var(--p2);background:var(--p2-soft)}.cchip.p3{--pc:var(--p3);background:var(--p3-soft)}
.cdot{display:none}
.caltray{margin-top:12px;border:1px dashed var(--border-input);border-radius:10px;padding:10px}.caltray .sub{font-size:12px}
.caltray .calitems{flex-direction:row;flex-wrap:wrap;margin-top:6px}.caltray .cchip{max-width:240px}
.caladdbox .in{width:100%;height:28px;font-size:12px}
@media (max-width:760px){.calday{min-height:72px;padding:3px}.cchip{font-size:11px;padding:2px 4px}.calbar{flex-wrap:wrap}}
.calgrid.week .calday{min-height:320px}.calgrid.week .cchip{white-space:normal;align-items:flex-start}
/* Templates, folders, team plan, AI assist */
.tplgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.tplcard{display:flex;flex-direction:column;gap:8px;align-items:flex-start}.tplcard h2{margin:0;font-size:16px}.tplcard .sub{margin:0}
.tpluse{width:100%}.tpluse summary{list-style:none;display:inline-flex}.tpluse summary::-webkit-details-marker{display:none}
.tpluse[open] summary{margin-bottom:8px}.tpluse form{display:flex;flex-direction:column;gap:8px}.tpluse .in{width:100%}
.foldersec > summary{list-style:none;cursor:pointer}.foldersec > summary::-webkit-details-marker{display:none}
.foldersec > a.nav{padding-left:28px}.foldhead .navico{width:16px;height:16px}
.planpill{display:inline-block;font-size:11px;line-height:18px;padding:0 8px;border-radius:999px;background:var(--surface-hover);color:var(--muted);font-weight:600}
.planpill.team{background:var(--accent-soft);color:var(--accent)}
.tablewrap{overflow-x:auto}.admintable{width:100%;border-collapse:collapse;font-size:13px}
.admintable th{text-align:left;font-weight:500;color:var(--muted);font-size:12px;padding:6px 8px;border-bottom:1px solid var(--border)}
.admintable td{padding:10px 8px;border-bottom:1px solid var(--border);vertical-align:middle}.admintable .inl{flex-wrap:nowrap}
.aiblock form[data-ai-form]{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.aiblock .sub{margin:0}
.aibtn svg,.aisug h2 svg,.aiicon svg{width:16px;height:16px;fill:currentColor;color:#a970ff}
.aibtn{gap:6px}.aibtn.busy{opacity:.7;cursor:progress}
.aisug{display:flex;flex-direction:column;gap:6px;border-color:#d9c6ff}.aisug h2{display:flex;gap:8px;align-items:center;margin:0 0 4px;font-size:15px}
.aiicon svg{width:22px;height:22px}.ptext.p1{color:var(--p1)}.ptext.p2{color:var(--p2)}.ptext.p3{color:var(--p3)}
.folderrow{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--border)}.folderrow .navico{width:18px;height:18px;flex:none;fill:none;stroke:var(--muted);stroke-width:1.7}
.settings form.frename,.frename{display:flex;flex-direction:row;margin:0;align-items:center;gap:8px;flex:1;min-width:0}.frename .in{flex:1;min-width:0}.frename .sub{margin:0;white-space:nowrap}
/* Team report */
.repstats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-bottom:16px}
.repstats .stat{text-decoration:none;color:var(--text)}.repstats .stat span{font-size:12px;color:var(--muted)}
.repstats .stat:hover{background:var(--surface-hover)}.repstats .stat.cur{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent) inset}
.repstats .stat.warn b{color:var(--due-over)}.repstats .stat.ok b{color:var(--due-today)}
.reptable td.overdue,.admintable a.due.overdue{color:var(--due-over);font-weight:500}
.reptable td:first-child{min-width:220px}.reptable a{color:var(--text)}.reptable a:hover{color:var(--accent)}
.pdot{display:inline-block;width:8px;height:8px;border-radius:999px;margin-right:8px;vertical-align:1px;background:var(--p4)}
.pdot.p1{background:var(--p1)}.pdot.p2{background:var(--p2)}.pdot.p3{background:var(--p3)}
.uwho .avatar.sm{width:24px;height:24px;font-size:11px}
.headrow .btn .navico{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7}
.headrow .btn{gap:6px;margin-left:auto;flex:none}
.settings form.repfilters{flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px}
/* AI providers (Admin > AI and Settings) */
.aiprov{display:grid;gap:8px;width:100%}
.aiopt{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid var(--border);border-radius:10px;cursor:pointer}
.aiopt:hover{background:var(--surface-hover)}.aiopt:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}
.aiopt input{margin-top:3px;accent-color:var(--accent)}.aiopt .sub{margin:0;font-size:12px}
.aikey{border:1px solid var(--border);border-radius:10px;padding:10px 12px 12px;margin:0;width:100%}
.aikey legend{font-weight:600;font-size:13px;padding:0 4px}.aikey legend a{font-weight:400;font-size:12px;margin-left:6px}
.aikey .row{gap:10px;flex-wrap:wrap}.aikey .fld{flex:1 1 220px}.aikey .in{width:100%}
.aiform .aikey:has(~ .aikey),.aiform .aikey{margin-bottom:4px}
.aiuser{display:flex;flex-direction:column;gap:10px;align-items:stretch}.aiuser .in{width:100%}
.aiuser .fld{flex:none;width:100%;max-width:420px}
/* Team workspace page (Todoist-style) */
.teampage{max-width:900px}
.tw-top{display:flex;justify-content:flex-end;gap:18px;margin:-8px 0 8px}
.tw-toplink{display:inline-flex;align-items:center;gap:6px;color:var(--muted);text-decoration:none;font-size:13px;font-weight:500;padding:4px 6px;border-radius:6px}
.tw-toplink:hover,.tw-toplink.cur{color:var(--text);background:var(--surface-hover)}
.ti{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}.ti.sm{width:15px;height:15px}.ti.muted{color:var(--muted)}
.tw-head h1{display:flex;align-items:center;gap:0;margin:0}.tw-head .sub{margin:6px 0 0}.tw-head .sub a{color:var(--muted)}
.seg{display:inline-flex;gap:2px;padding:4px;background:var(--surface);border:1px solid var(--border);border-radius:12px;margin:18px 0 0}
.seg a{padding:6px 14px;border-radius:8px;color:var(--muted);text-decoration:none;font-weight:600;font-size:14px}.seg a:hover{color:var(--text)}
.seg a.cur{background:var(--bg);color:var(--text);box-shadow:0 1px 2px rgba(0,0,0,.08)}
.tw-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:-38px 0 16px;flex-wrap:wrap;min-height:38px}
.tw-btn{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border-radius:8px;background:var(--surface);color:var(--text);font-weight:600;font-size:13px;cursor:pointer;list-style:none;text-decoration:none;border:0}
.tw-btn::-webkit-details-marker{display:none}.tw-btn:hover{background:var(--surface-hover)}.tw-btn.icon{padding:0 8px;background:transparent}.tw-btn.plain{background:transparent;color:var(--muted);font-weight:500}
.tw-menu{position:relative}.tw-menu .pop{position:absolute;top:40px;left:0;z-index:30;min-width:180px;background:var(--bg);border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow-card,0 4px 16px rgba(0,0,0,.12));padding:6px;display:flex;flex-direction:column}
.tw-menu.right .pop{left:auto;right:0}.tw-menu .pop.wide{min-width:260px}
.tw-menu .pop a{display:flex;align-items:center;gap:10px;padding:7px 10px;border-radius:6px;color:var(--text);text-decoration:none;font-size:14px}.tw-menu .pop a:hover{background:var(--surface-hover)}
.tw-search .pop{right:0;left:auto;min-width:240px}.tw-search .pop .in{width:100%}
.tw-switch{display:inline-flex;align-items:center;gap:8px;color:var(--muted);text-decoration:none;font-size:13px;margin-right:4px}
.sw{width:30px;height:18px;border-radius:999px;background:var(--border-input);position:relative;transition:background 120ms;flex:none}
.sw::after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:999px;background:#fff;transition:left 120ms}
.tw-switch.on .sw,.tw-lock input:checked + .sw{background:var(--accent)}.tw-switch.on .sw::after,.tw-lock input:checked + .sw::after{left:14px}
.tw-listhead{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);padding:8px 0;font-size:14px}
.tw-new{margin:10px 0}.tw-new > summary{list-style:none}.tw-new > summary::-webkit-details-marker{display:none}.tw-new[open] > summary{display:none}
.tw-addrow{display:flex;align-items:center;gap:8px;color:var(--muted);cursor:pointer;padding:6px 2px;font-size:14px}.tw-addrow:hover{color:var(--accent)}
.tw-newform{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center}
.tw-newbox{display:flex;align-items:center;gap:8px;border:1px solid var(--border-input);border-radius:8px;padding:0 6px 0 12px;height:38px;background:var(--bg)}
.tw-newbox:focus-within{border-color:var(--text)}.tw-newbox .hash{color:var(--muted);font-weight:600}
.tw-name{flex:1;min-width:0;border:0;background:none;height:100%;font-size:14px}.tw-name:focus{outline:none}
.tw-lock{display:inline-flex;align-items:center;gap:6px;color:var(--muted);cursor:pointer;padding-right:8px;border-right:1px solid var(--border)}.tw-lock input{position:absolute;opacity:0;width:1px;height:1px}
.tw-lock:focus-within .sw{outline:2px solid var(--accent);outline-offset:2px}
.tw-people .tw-btn{height:30px;padding:0 8px}.tw-people .pop{top:36px}.tw-people .pop .in{margin-bottom:4px;width:100%}
.tw-person{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:6px;cursor:pointer;font-size:13px;color:var(--text)}.tw-person:hover{background:var(--surface-hover)}
.tw-person input{accent-color:var(--accent)}
.tw-iconbtn{width:38px;height:38px;border-radius:8px;display:grid;place-content:center;background:var(--surface);color:var(--muted);border:0;cursor:pointer}
.tw-iconbtn:hover{background:var(--surface-hover);color:var(--text)}.tw-iconbtn.primary{background:var(--accent);color:var(--on-accent,#fff)}.tw-iconbtn.primary:hover{background:var(--accent-hover)}
.tw-iconbtn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tw-hint{grid-column:1/-1;display:flex;align-items:center;gap:6px;margin:0;font-size:12px}
.tw-folder{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;font-weight:600;padding:14px 4px 4px;text-transform:uppercase;letter-spacing:.03em}
.tw-proj{display:flex;align-items:center;gap:10px;padding:10px 4px;border-bottom:1px solid var(--border)}
.tw-proj .hash{font-size:16px}.tw-pname{flex:1;min-width:0;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.tw-pname a{color:var(--text);text-decoration:none;font-weight:500}.tw-pname a:hover{color:var(--accent)}.tw-pname .sub{margin:0 0 0 6px;font-size:12px}
.tw-proj.unjoined .tw-pname{color:var(--muted)}
.tw-empty{padding:40px 0}.tw-usage{margin-top:16px;font-size:12px}
.tw-filter{width:220px;max-width:100%}
.tw-info{font-size:13px;line-height:20px;color:var(--text)}
.tw-table{width:100%;border-collapse:collapse;font-size:14px}
.tw-table th{text-align:left;font-weight:600;padding:10px 12px;border-bottom:1px solid var(--border)}
.tw-table td{padding:10px 12px;border-bottom:1px solid var(--border);vertical-align:middle}.tw-table td.overdue{color:var(--due-over);font-weight:600}
.tw-table .uwho{display:flex;gap:10px;align-items:center}.tw-table .uwho .sub{font-size:12px;margin:0}.tw-table td.act{text-align:right;white-space:nowrap}
.tw-table tr.pending td{color:var(--muted)}.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.tw-invite{margin-top:16px}.tw-invite > summary{list-style:none;cursor:pointer}.tw-invite > summary::-webkit-details-marker{display:none}
.tw-invite h2{display:flex;align-items:center;gap:8px;margin:0}.tw-invite h2 svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}
.tw-invite[open] h2{margin-bottom:12px}
@media (max-width:760px){.tw-tools{margin:12px 0;justify-content:flex-start}.tw-top{gap:8px;flex-wrap:wrap}.tw-newform{grid-template-columns:1fr auto auto}.tw-lock .ti{display:none}}
/* Sidebar team: + menu and > link */
.teamwrap .tplus,.teamhead .tgo{width:24px;height:24px;border-radius:6px;display:grid;place-content:center;color:var(--muted);opacity:0}
.teamwrap:hover .tplus,.teamhead:hover .tgo,.teamwrap .tplus:focus-visible,.teamhead .tgo:focus-visible,.tmadd[open] .tplus{opacity:1}
.teamwrap .tplus:hover,.teamhead .tgo:hover{background:var(--surface-hover);color:var(--text)}
.teamwrap .tplus svg,.teamhead .tgo svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tmadd{position:relative}.tmadd > summary{list-style:none}.tmadd > summary::-webkit-details-marker{display:none}
.tmadd .pop{position:absolute;top:28px;right:-30px;z-index:40;min-width:200px;background:var(--bg);border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow-card,0 4px 16px rgba(0,0,0,.12));padding:6px;display:flex;flex-direction:column}
.tmadd .pop a{display:flex;align-items:center;gap:10px;padding:7px 10px;border-radius:6px;color:var(--text);text-decoration:none;font-size:14px;font-weight:400}.tmadd .pop a:hover{background:var(--surface-hover)}
.tmadd .pop svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.teamwrap{position:relative;flex-shrink:0}
.teamwrap > .tmadd{position:absolute;right:32px;top:6px;z-index:5}
.teamwrap:hover .tplus,.teamwrap .tmadd[open] .tplus{opacity:1}
.teamhead{padding-right:60px}.teamhead .tname{color:var(--text);text-decoration:none}.teamhead .tname:hover{text-decoration:underline}
.teamwrap.cur > .teamsec > .teamhead{background:var(--accent-soft);border-radius:8px}
.teamhead .tgo{margin-left:auto}
.teamwrap .tplus{cursor:pointer;list-style:none}
.tmadd .pop{right:-28px;min-width:0;width:200px}
.tw-order{margin:16px 0 8px}.tw-order + .tw-tools{margin-top:0}
/* Sidebar drag and drop */
.side .dz a[data-pid]{cursor:pointer}.side a.dragging,.side .foldersec.dragging{opacity:.4}
.sidedrag-project .side .dz{min-height:12px;border-radius:8px;transition:background 100ms}
.sidedrag-project .side .dz:empty{min-height:26px;outline:1px dashed var(--border-input);outline-offset:-3px}
.side .dzhot{background:var(--accent-soft)!important;border-radius:8px}
.folders[data-can-sort] > .foldersec > summary{cursor:grab}
.toast.dndtoast{transition:opacity 250ms}
/* "+ Add team (Company)" in the sidebar: its own colour so it stands out from "+ Add project" */
.newteam{padding:6px 0 4px}
.newteam > summary.addteam{height:auto;display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;
  background:#eef0ff;border:1px dashed #a4b0f5;color:#4b55a8;font-size:14px;list-style:none;cursor:pointer;transition:background 120ms,border-color 120ms}
.newteam > summary.addteam::-webkit-details-marker{display:none}
.newteam > summary.addteam:hover{background:#e2e6ff;border-color:#7d8cf0;border-style:solid}
.newteam[open] > summary.addteam{border-style:solid;margin-bottom:8px}
.addteam-ico{width:26px;height:26px;border-radius:7px;background:#a4b0f5;color:#fff;display:grid;place-content:center;flex:none}
.addteam-ico svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.addteam b{font-weight:600}.addteam-sub{font-weight:400;opacity:.8}
.addteam-plus{margin-left:auto;font-size:18px;line-height:1;font-weight:500}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .newteam > summary.addteam{background:#262a45;border-color:#5b66b8;color:#c3cbff}:root:not([data-theme=light]) .newteam > summary.addteam:hover{background:#2f3458}}
:root[data-theme=dark] .newteam > summary.addteam{background:#262a45;border-color:#5b66b8;color:#c3cbff}:root[data-theme=dark] .newteam > summary.addteam:hover{background:#2f3458}
.newteam{margin:0 0 6px}
/* Task timers */
.tmr{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:600;padding:1px 7px 1px 5px;border-radius:999px;white-space:nowrap;font-variant-numeric:tabular-nums}
.tmr svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.tmr.run{background:#e7f4ea;color:#1f7a3a}.tmr.run.soon{background:#fff1dc;color:#b25e00}
.tmr.run.over,.tmr.late{background:#fde4e2;color:#c62f2f}.tmr.run.over{animation:tmrpulse 1.6s ease-in-out infinite}
.tmr.ok{background:#e7f4ea;color:#1f7a3a}.tmr.wait{background:var(--surface-hover);color:var(--muted)}
@keyframes tmrpulse{50%{box-shadow:0 0 0 3px rgba(198,47,47,.18)}}
@media (prefers-reduced-motion:reduce){.tmr.run.over{animation:none}}
.tmr.big{font-size:14px;padding:4px 12px 4px 8px;gap:6px}.tmr.big svg{width:16px;height:16px}
.tmr.big .bar{display:inline-block;width:90px;height:5px;border-radius:999px;background:rgba(0,0,0,.08);overflow:hidden;margin-left:6px}
.tmr.big .bar i{display:block;height:100%;background:currentColor;border-radius:999px;transition:width 1s linear}
.timerbox{margin-bottom:12px}.timerhead{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.timerhead h2{margin:0;font-size:15px}
.timerbox .sub{margin:8px 0 0}.timeracts{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;margin-top:12px}
.timeracts .inl{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .tmr.run,:root:not([data-theme=light]) .tmr.ok{background:#1d3324;color:#6fd08c}:root:not([data-theme=light]) .tmr.run.soon{background:#3d2d17;color:#f0a24a}:root:not([data-theme=light]) .tmr.run.over,:root:not([data-theme=light]) .tmr.late{background:#3f2321;color:#ff7066}}
:root[data-theme=dark] .tmr.run,:root[data-theme=dark] .tmr.ok{background:#1d3324;color:#6fd08c}:root[data-theme=dark] .tmr.run.soon{background:#3d2d17;color:#f0a24a}:root[data-theme=dark] .tmr.run.over,:root[data-theme=dark] .tmr.late{background:#3f2321;color:#ff7066}
.timerbox .timeracts form.inl{display:flex;flex-direction:row;align-items:center;gap:6px;margin:0}.timerbox .timeracts select.in{width:auto}
/* Timer box details */
.timerfacts{display:grid;gap:6px;margin-top:12px;font-size:14px}
.timerfacts > div{display:grid;grid-template-columns:110px 1fr;gap:10px;align-items:center}
.timerfacts .k{color:var(--muted);font-size:13px}.timerfacts .v{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.timerfacts .v .sub{margin:0}
.timerfacts .saved{color:#1f7a3a}.timerfacts .lost{color:#c62f2f}
.timerhist{margin-top:10px}.timerhist summary{cursor:pointer;color:var(--muted);font-size:13px}.timerhist table{margin-top:6px;font-size:13px}
@media (max-width:600px){.timerfacts > div{grid-template-columns:1fr}}
/* Folder colour + "⋯" editor */
.fico{stroke:var(--fc,currentColor)!important;fill:color-mix(in srgb,var(--fc,transparent) 22%,transparent)}
.foldhead .fname{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fmore{width:24px;height:24px;border:0;background:none;border-radius:6px;color:var(--muted);cursor:pointer;font-size:16px;line-height:1;opacity:0;flex:none;padding:0}
.foldhead:hover .fmore,.fmore:focus-visible{opacity:1}.fmore:hover{background:var(--surface-hover);color:var(--text)}
.foldhead .n + .fmore{margin-left:2px}
.fpop{position:fixed;z-index:80;width:290px;background:var(--bg);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow-card,0 8px 24px rgba(0,0,0,.14));padding:14px}
.fpop form{display:flex;flex-direction:column;gap:10px}.fpop .fld .in{width:100%}.fpop .row{gap:8px}
.fpop .swatches{margin:0}.fpop .link.danger{margin-top:10px;display:inline-block}.fpop .sub{margin:0}
@media (hover:none){.fmore{opacity:1}}
.fpop .fld{flex:none}
/* Productivity */
.prodtiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:16px}
.ptile{border:1px solid var(--border);border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:6px;background:var(--bg)}
.ptile .k{font-size:12px;color:var(--muted);font-weight:500}.ptile b{font-size:26px;line-height:32px;color:var(--text)}.ptile b small{font-size:14px;color:var(--muted);font-weight:500}
.ptile .sub{margin:0;font-size:12px}
.pbar{height:6px;border-radius:999px;background:var(--surface-hover);overflow:hidden}.pbar i{display:block;height:100%;border-radius:999px;background:var(--accent)}
.pchart{margin:8px 0 4px}.pplot{position:relative;height:180px;display:flex;align-items:flex-end;gap:2px;border-bottom:1px solid var(--border)}
.pcol{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;position:relative;cursor:default;outline:none}
.pcol i{display:block;width:min(70%,28px);background:var(--accent);border-radius:4px 4px 0 0;min-height:0}
.pcol:hover i,.pcol:focus-visible i{filter:brightness(.9)}.pcol:focus-visible{box-shadow:0 0 0 2px var(--accent) inset;border-radius:4px}
.pcol b{position:absolute;font-size:11px;font-weight:500;color:var(--muted);bottom:calc(var(--h,0%) + 2px)}
.pcol.today i{background:color-mix(in srgb,var(--accent) 70%,#000 0%);outline:2px solid var(--bg);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 35%,transparent)}
.pgoal{position:absolute;left:0;right:0;border-top:1.5px dashed var(--muted);z-index:1;pointer-events:none}
.pgoal em{position:absolute;right:0;top:-18px;font-size:11px;font-style:normal;color:var(--muted);background:var(--bg);padding:0 4px}
.paxis{display:flex;gap:2px;margin-top:4px}.paxis span{flex:1;text-align:center;font-size:11px;line-height:14px;color:var(--muted)}.paxis span.off{opacity:.55;font-style:italic}
.pchart.mini{margin:0;width:120px}.pchart.mini .pplot{height:28px;border-bottom-color:var(--border)}.pchart.mini .pcol i{width:70%;border-radius:2px 2px 0 0}
.ctip{position:fixed;z-index:200;background:var(--text);color:var(--bg);font-size:12px;padding:4px 8px;border-radius:6px;pointer-events:none;white-space:nowrap}
.switchrow{display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-size:14px}.switchrow input{position:absolute;opacity:0;width:1px;height:1px}
.switchrow input:checked + .sw{background:var(--accent)}.switchrow input:checked + .sw::after{left:14px}.switchrow input:focus-visible + .sw{outline:2px solid var(--accent);outline-offset:2px}
.daysoff{display:flex;flex-wrap:wrap;gap:6px 16px}.prodform .fld{max-width:220px}
.celebrate{position:fixed;left:50%;top:18px;transform:translateX(-50%);z-index:150;background:var(--bg);border:1px solid var(--border);box-shadow:var(--shadow-card,0 8px 24px rgba(0,0,0,.14));border-radius:14px;padding:12px 18px;display:flex;gap:14px;align-items:center;overflow:hidden;transition:opacity .4s,transform .4s}
.celebrate b{font-size:15px}.celebrate a{font-size:13px}.celebrate.gone{opacity:0;transform:translate(-50%,-10px)}
.confetti{position:absolute;inset:0;pointer-events:none}.confetti i{position:absolute;top:-8px;width:6px;height:10px;border-radius:2px;animation:conf 1.6s ease-in forwards}
@keyframes conf{to{transform:translateY(80px) rotate(260deg);opacity:0}}
@media (prefers-reduced-motion:reduce){.confetti{display:none}}
.pbar.thin{height:4px;margin-top:4px;max-width:90px}.prodtable td{vertical-align:middle}.prodtable .saved{color:#1f7a3a;font-weight:600}.prodtable .lost{color:#c62f2f;font-weight:600}
.head .seg{margin:12px 0 4px}
.main:has(.prodtable){max-width:1180px}.prodtable th{font-size:12px;white-space:nowrap}.prodtable td{white-space:nowrap}
.prodtable .pchart.mini{width:100px;margin-top:4px}
.prodtable th,.prodtable td{padding:8px 8px}.prodtable td:first-child{white-space:normal;min-width:150px}
.b-time{background:var(--p2)}.b-late{background:var(--danger)}.b-other{background:var(--muted)}
.achip.set{background:var(--accent-soft);color:var(--accent);border-color:transparent}.achip select{max-width:150px}
/* Colour themes (Settings > Theme): <html data-ctheme="…"> changes the accent and the sidebar tint.
   The dark versions apply when the dark mode is on (Auto Dark Mode with a dark computer, or the Dark theme). */
:root[data-ctheme=moonstone]{--accent:#566173;--accent-hover:#434c5b;--accent-soft:#eceff3;--surface:#f6f7f9;--surface-hover:#eceef2}
:root[data-ctheme=tangerine]{--accent:#b35900;--accent-hover:#964a00;--accent-soft:#fff0dd;--surface:#fff8ef;--surface-hover:#fbeedd}
:root[data-ctheme=kale]{--accent:#2e7340;--accent-hover:#245c33;--accent-soft:#e3f2e7;--surface:#f4f9f5;--surface-hover:#e8f1ea}
:root[data-ctheme=blueberry]{--accent:#2a62c9;--accent-hover:#214fa6;--accent-soft:#e6eefc;--surface:#f4f7fd;--surface-hover:#e8eefa}
:root[data-ctheme=lavender]{--accent:#7352c4;--accent-hover:#5e40a8;--accent-soft:#efe9fb;--surface:#f8f5fd;--surface-hover:#eee8f9}
:root[data-ctheme=raspberry]{--accent:#b8325f;--accent-hover:#9a284f;--accent-soft:#fbe6ee;--surface:#fdf5f8;--surface-hover:#f8e8ee}
@media (prefers-color-scheme:dark){
  :root[data-ctheme]:not([data-theme=light]){--surface:#262626;--surface-hover:#333}
  :root[data-ctheme=moonstone]:not([data-theme=light]){--accent:#7d8aa0;--accent-hover:#98a4b8;--accent-soft:#2a2f37}
  :root[data-ctheme=tangerine]:not([data-theme=light]){--accent:#d9781f;--accent-hover:#ea8e3a;--accent-soft:#3a2a18}
  :root[data-ctheme=kale]:not([data-theme=light]){--accent:#3f9a57;--accent-hover:#52b06a;--accent-soft:#1d3324}
  :root[data-ctheme=blueberry]:not([data-theme=light]){--accent:#4f86e6;--accent-hover:#6b9bf0;--accent-soft:#1d2b40}
  :root[data-ctheme=lavender]:not([data-theme=light]){--accent:#9478dc;--accent-hover:#a98fe6;--accent-soft:#2c2540}
  :root[data-ctheme=raspberry]:not([data-theme=light]){--accent:#d9577f;--accent-hover:#e5709a;--accent-soft:#3d2029}
}
:root[data-theme=dark][data-ctheme]{--surface:#262626;--surface-hover:#333}
:root[data-theme=dark][data-ctheme=moonstone]{--accent:#7d8aa0;--accent-hover:#98a4b8;--accent-soft:#2a2f37}
:root[data-theme=dark][data-ctheme=tangerine]{--accent:#d9781f;--accent-hover:#ea8e3a;--accent-soft:#3a2a18}
:root[data-theme=dark][data-ctheme=kale]{--accent:#3f9a57;--accent-hover:#52b06a;--accent-soft:#1d3324}
:root[data-theme=dark][data-ctheme=blueberry]{--accent:#4f86e6;--accent-hover:#6b9bf0;--accent-soft:#1d2b40}
:root[data-theme=dark][data-ctheme=lavender]{--accent:#9478dc;--accent-hover:#a98fe6;--accent-soft:#2c2540}
:root[data-theme=dark][data-ctheme=raspberry]{--accent:#d9577f;--accent-hover:#e5709a;--accent-soft:#3d2029}
/* Settings > Theme cards */
.ctgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px;margin:8px 0 4px}
.ctcard{position:relative;display:flex;border:1px solid var(--border);border-radius:10px;overflow:hidden;cursor:pointer;background:#fff;min-height:70px}
.ctcard input{position:absolute;opacity:0;width:1px;height:1px}
.ctcard .rail{width:34px;flex:none;background:var(--rail);padding:8px 5px;display:flex;flex-direction:column;gap:4px}
.ctcard .rail i{display:block;height:4px;border-radius:2px;background:color-mix(in srgb,var(--ac) 30%,transparent)}.ctcard .rail i:first-child{background:var(--ac);height:5px}
.ctcard .body{flex:1;padding:8px 10px;display:flex;flex-direction:column;gap:7px}
.ctcard .name{font-size:13px;font-weight:600;color:var(--ac);display:flex;align-items:center;gap:6px}
.ctcard .ln{display:flex;align-items:center;gap:6px}.ctcard .ln b{width:9px;height:9px;border-radius:999px;border:1.5px solid #888;flex:none}.ctcard .ln i{height:5px;border-radius:3px;background:#e6e6e6;flex:1}
.ctcard .ln + .ln i{flex:0 0 70%;margin-left:15px}
.ctcard.dark{background:#1e1e1e}.ctcard.dark .ln i{background:#3a3a3a}.ctcard.dark .ln b{border-color:#777}
.ctcard .tick,.ctcard .lock{margin-left:auto;width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ctcard .lock{color:#888;stroke-width:1.8}.ctcard:hover{border-color:var(--border-input)}
.ctcard:has(input:checked){border-color:var(--ac);box-shadow:0 0 0 1px var(--ac) inset}.ctcard:has(input:focus-visible){outline:2px solid var(--ac);outline-offset:2px}
.ctcard.locked{cursor:not-allowed}.ctcard.locked .body{opacity:.8}
.ctpro{display:flex;align-items:center;gap:12px;border:1px solid var(--border);border-radius:10px;padding:12px 14px;background:var(--surface);margin:6px 0 8px}
.ctpro .star{width:22px;height:22px;border-radius:999px;background:#f0a020;color:#fff;display:grid;place-content:center;flex:none;font-size:13px}
.ctpro .sub{margin:2px 0 0}.ctpro .btn{margin-left:auto}
/* Settings > Notifications */
.ntable{width:100%;border-collapse:collapse;margin:14px 0 6px;font-size:14px}
.ntable th{text-align:left;font-weight:700;padding:10px 6px;border-bottom:1px solid var(--border)}
.ntable th:not(:first-child),.ntable td:not(:first-child){width:90px;text-align:center}
.ntable th svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;vertical-align:-3px;margin-right:5px;color:var(--muted)}
.ntable th:not(:first-child){font-weight:500}
.ntable td{padding:10px 6px;border-bottom:1px solid var(--border);vertical-align:middle}.ntable td .sub{font-size:12px;margin:0}
.ntable input[type=checkbox]{width:17px;height:17px;accent-color:var(--accent);cursor:pointer}
.nform .switchrow{margin-top:6px}.nform h3{margin-top:22px}
/* Add-task box: description line and always-visible chips */
.qdesc{padding:0 2px 6px 46px}.composer.bulkmode .qdesc{display:none}
.desc-line{width:100%;border:0;background:none;resize:none;font:inherit;font-size:13px;line-height:20px;color:var(--text);padding:0;min-height:20px;overflow:hidden}
.desc-line::placeholder{color:var(--muted)}.desc-line:focus{outline:none}
.composer-bar{flex-wrap:wrap;row-gap:8px}
.chip-btn.off{opacity:.55}.chip-btn.off select{cursor:not-allowed}
.chip-btn.set{background:var(--accent-soft);color:var(--accent);border-color:transparent}
.genform .in{max-width:340px}.genform h3{margin:16px 0 6px}.sethead2{font-size:16px;margin:4px 0 4px}.danger-outline{color:var(--danger);border-color:var(--danger)}
/* Settings > Reminders */
.remtest{display:grid;grid-template-columns:1fr 260px;gap:20px;align-items:start}.remtest .row{gap:8px;flex-wrap:wrap}.remtest form.inl{margin:0}
.rempreview .sub{font-size:12px}.remcard{display:flex;gap:10px;align-items:center;border:1px solid var(--border);border-radius:12px;padding:10px 12px;margin-top:6px;box-shadow:var(--shadow-card)}
.remcard > div{flex:1;font-size:13px}.remcard .sub{margin:0;font-size:12px}.remlogo{width:28px;height:28px;border-radius:7px;background:var(--accent);color:#fff;display:grid;place-content:center;font-weight:700}
@media (max-width:700px){.remtest{grid-template-columns:1fr}}
/* Settings > Integrations */
.intseg{margin:0 0 16px}
.intgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px;margin-bottom:18px}
.intcard{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--border);border-radius:10px;padding:12px;text-decoration:none;color:var(--text)}
.intcard:hover{border-color:var(--border-input);background:var(--surface)}.intcard .sub{margin:0;font-size:12px}.intcard > span:nth-child(2){flex:1}
.intico{width:34px;height:34px;border-radius:999px;border:1px solid var(--border);display:grid;place-content:center;flex:none;font-weight:700;font-size:14px;background:var(--bg);color:var(--accent)}
.intico.ai{color:#a970ff}.badge.beta{background:#fff1dc;color:#b25e00}
.intsearch{width:100%;margin-bottom:12px}
.intlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px;align-items:start}
.intitem{border:1px solid var(--border);border-radius:10px}.intitem[open]{grid-column:1/-1}
.intitem > summary{list-style:none;display:flex;gap:10px;align-items:flex-start;padding:12px;cursor:pointer}.intitem > summary::-webkit-details-marker{display:none}
.intitem > summary > span:nth-child(2){flex:1}.intitem .sub{margin:0;font-size:12px}.intitem:hover{border-color:var(--border-input)}
.inthow{padding:0 14px 12px 56px;font-size:14px}.inthow pre{white-space:pre-wrap;font-size:12px;background:var(--surface);padding:8px;border-radius:6px}
.bmlet{cursor:grab}
.hookrow{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-bottom:1px solid var(--border)}.hookrow > div{flex:1;min-width:0;overflow-wrap:anywhere}.hookrow .sub{margin:0;font-size:12px}
.hookform{margin-top:12px;display:flex;flex-direction:column;gap:10px;align-items:flex-start}.hookform .fld{width:100%;max-width:520px}.hookform .in{width:100%}
.hookevents{border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:4px 14px}
.devdoc pre{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:12px;overflow:auto;font-size:12px;line-height:18px}
.devdoc .mth{font-weight:700;font-size:12px;width:60px}.m-get{color:#058527}.m-post{color:#246fe0}.m-patch{color:#ad6200}.m-delete{color:#d1453b}
.addpage .main{max-width:560px}.addcard h1{font-size:20px;margin:0 0 12px}.addform{display:flex;flex-direction:column;gap:10px}.addform .in{width:100%}.addok{font-size:18px;color:#058527}
/* Admin > Users: sign-up method, suspension, user page */
.badge.mth-google{background:#e8f0fe;color:#1a56c4}.badge.mth-apple{background:#ececec;color:#222}.badge.mth-email{background:var(--surface-hover);color:var(--muted)}
.badge.susp{background:#fde4e2;color:#c62f2f}.ulink{color:inherit;text-decoration:none}.ulink:hover{text-decoration:underline}
.facts{display:grid;gap:8px;margin:0}.facts > div{display:grid;grid-template-columns:150px 1fr;gap:10px}.facts dt{color:var(--muted);font-size:13px}.facts dd{margin:0;font-size:14px;overflow-wrap:anywhere}
.actlist{list-style:none;padding:0;margin:0;display:grid;gap:6px;font-size:14px}.susp-note{border-color:#f3b8b3;background:#fdf1f0}
.danger-zone{border-color:#f3c7c3}.stackform{display:flex;flex-direction:column;gap:8px;align-items:flex-start}.stackform .fld{width:100%;max-width:420px}.stackform .in{width:100%}
@media (max-width:600px){.facts > div{grid-template-columns:1fr}}
.head h1:has(> .avatar){display:flex;align-items:center;gap:12px}
