/* Deadlines, links, sharing, repeats, report. Reuses the existing tokens. */
.dlr{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--muted);margin-top:3px}
.dlr .ic{width:12px;height:12px}
.dlr.soon{color:#e3a83f}
:root[data-theme=light] .dlr.soon{color:#a06a0a}
.dlr.late{color:var(--red)}
.ag.done .dlr{opacity:.5}

button.chip.lnk{display:inline-flex;align-items:center;gap:4px;max-width:180px}
button.chip.lnk .ic{width:12px;height:12px;flex:none}
button.chip.lnk span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chip.shr{color:var(--gTxt);border-color:rgba(var(--gRGB),.4);background:var(--greenSoft);display:inline-flex;align-items:center;gap:4px}
.chip.shr .ic{width:12px;height:12px}
button.chip.sendteam{background:var(--green);border-color:var(--green);color:#fff;font-weight:700}
.ag.done .mt>button.sendteam{opacity:1}
button.chip.notshared{border-style:dashed}
.addsub.shareb.on{color:var(--gTxt);border-color:rgba(var(--gRGB),.45);background:var(--greenSoft)}
.n .shi{width:13px;height:13px;margin-inline-end:5px;color:var(--green2);vertical-align:-2px}

.shrow{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border:1px solid var(--line2);border-radius:10px;background:var(--panel2);text-align:start;margin:6px 0 10px}
.shrow b{display:block;font-size:14px}
.shrow small{display:block;color:var(--muted);font-size:12px;margin-top:2px;line-height:1.4}
.shrow .tg{margin-inline-start:auto;flex:none;width:34px;height:20px;border-radius:999px;background:var(--line2);position:relative;transition:background .12s}
.shrow .tg::after{content:"";position:absolute;top:2px;inset-inline-start:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:inset-inline-start .12s}
.shrow.on{border-color:var(--green2);background:var(--greenSoft)}
.shrow.on .tg{background:var(--green)}
.shrow.on .tg::after{inset-inline-start:16px}
.shrow .ic{width:18px;height:18px;flex:none;color:var(--green2)}

.xrow{display:flex;gap:8px;align-items:center}
.xrow input{min-width:0}
.xrow .clr{flex:none;width:40px;height:40px;border-radius:10px;border:1px solid var(--line2);background:var(--panel2);color:var(--muted);display:grid;place-items:center}
.xrow .clr .ic{width:16px;height:16px}
.xnote{color:var(--muted);font-size:12px;margin:6px 0 0;line-height:1.5}
textarea.nts{min-height:72px;resize:vertical;line-height:1.5}

.lkrow{display:flex;align-items:center;gap:8px;margin:0 0 6px}
.lkrow input{padding:8px 10px;font-size:13.5px;min-width:0;flex:1}
.lkrow small{color:var(--muted);font-size:11.5px;max-width:34%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;direction:ltr}
.lkrow .sx{flex:none;width:30px;height:30px;display:grid;place-items:center;color:var(--muted)}
.lkrow .sx .ic{width:14px;height:14px}

.lkl{display:grid;gap:6px;margin:4px 0 12px}
.lkr{display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid var(--line2);border-radius:10px;background:var(--panel2);color:var(--text);text-decoration:none}
.lkr:hover{border-color:var(--green2)}
.lkr .ic{width:15px;height:15px;flex:none;color:var(--green2)}
.lkr b{font-weight:600;font-size:14px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lkr small{color:var(--muted);font-size:12px;direction:ltr;flex:none;max-width:40%;overflow:hidden;text-overflow:ellipsis}

.seemore{display:block;margin:14px auto 6px;padding:9px 16px;border-radius:10px;border:1px solid var(--line2);background:var(--panel2);color:var(--muted);font-size:13px;font-weight:600}
.seemore:hover{border-color:var(--green2);color:var(--text)}

.repbox{margin:8px 0 4px;padding:10px 12px;border:1px solid var(--line2);border-radius:10px;background:var(--panel2)}
.repbox .dchips button{padding:7px 10px;font-size:12.5px}
.repbox .xnote{margin-top:2px}
.repbox .rstop{margin-top:8px;color:var(--redTxt,var(--red));font-size:12.5px;text-decoration:underline}

.tm-day .td-r .td-n{flex:1}
.td-m{color:var(--muted);font-size:11.5px;display:block}
.tm-board h4{font-size:12.5px;color:var(--muted);margin:10px 0 4px;font-weight:600}

/* report */
.repov{position:fixed;inset:0;z-index:90;background:var(--bg);display:flex;flex-direction:column}
.repov header.rh{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--line)}
.repov header.rh h2{font-size:16px;flex:1;min-width:0}
.repov .rb{flex:1;overflow:auto;padding:14px 16px 40px}
.repsum{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 14px}
.repsum div{flex:1 1 110px;border:1px solid var(--line2);border-radius:10px;padding:10px 12px;background:var(--panel)}
.repsum b{display:block;font-size:20px}
.repsum small{color:var(--muted);font-size:12px}
.reptbl{width:100%;border-collapse:collapse;font-size:13px;min-width:860px}
.reptbl th{position:sticky;top:0;background:var(--panel);text-align:start;padding:8px 10px;border-bottom:1px solid var(--line2);font-size:12px;color:var(--muted);font-weight:600;white-space:nowrap}
.reptbl td{padding:8px 10px;border-bottom:1px solid var(--line);vertical-align:top}
.reptbl tr.dd td{opacity:.75}
.reptbl .tt{font-weight:600;min-width:160px}
.reptbl .ok{color:var(--gTxt)}
.reptbl .bad{color:var(--red)}
.reptbl a{color:var(--green2);text-decoration:underline;overflow-wrap:anywhere}
.reptbl .sbs{color:var(--muted);font-size:12px}
.rpmonths{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:6px 0 4px}
.rpmonths button{padding:9px 0;border-radius:10px;background:var(--panel2);border:1px solid var(--line2);font-size:13px;color:var(--muted)}
.rpmonths button.in{background:var(--greenSoft);border-color:var(--green2);color:var(--text)}
.rpmonths button.on{background:var(--green);border-color:var(--green);color:#fff}
.rpyear{display:flex;align-items:center;justify-content:space-between;margin:4px 0}
.rpyear b{font-size:15px}
.rpyear button{width:34px;height:34px;border-radius:10px;border:1px solid var(--line2);background:var(--panel2);display:grid;place-items:center}
.rpyear .ic{width:16px;height:16px}
.rprange{margin:10px 0 4px;font-size:15px;font-weight:700}
.rprange small{display:block;font-weight:400;color:var(--muted);font-size:12.5px;margin-top:2px}
.ntq{display:flex;gap:8px;margin:8px 0 0}
.ntdiag{margin:0 0 8px;color:var(--muted);font-size:12.5px;line-height:1.6}
.ntdiag b{color:var(--text);font-weight:600}
.ntfix{margin:8px 0 0;padding:10px 12px;border-left:2px solid var(--line2);color:var(--muted);font-size:12.5px;line-height:1.6}
.ntfix ol{margin:6px 0 0;padding-inline-start:18px}
.repov header.rh .btn{flex:none;width:auto;display:inline-flex;align-items:center;gap:6px;margin:0}
.repov header.rh .btn .ic{width:15px;height:15px}

header #themeBtn{flex:none;width:44px;height:44px}
@media (max-width:520px){header #themeBtn{width:38px;height:38px}}

#brand{cursor:pointer}

.whrow{margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.whtop{display:flex;align-items:center;gap:12px}
.whtop b{width:44px;font-size:14px}
.whoff{padding:8px 16px;border-radius:10px;border:1px solid var(--line2);background:var(--panel2);font-size:13px;color:var(--muted)}
.whrow.dayoff .whoff{background:var(--redSoft);border-color:var(--red);color:var(--redTxt,var(--red))}
.whrow.dayoff .whtimes{display:none}
.whtimes{margin:8px 0 0}
.whb{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--line2);border-radius:10px;background:var(--panel2);margin-bottom:6px}
.whb span{flex:1;min-width:0}.whb b{display:block;font-size:13.5px}.whb small{color:var(--muted);font-size:12px}
.whb .sx{flex:none;width:30px;height:30px;display:grid;place-items:center;color:var(--muted)}.whb .sx .ic{width:14px;height:14px}

button.chip.sendto{display:inline-flex;align-items:center;gap:4px;background:var(--green);border-color:var(--green);color:#fff;font-weight:700}
button.chip.sendto .ic{width:12px;height:12px}
.ag.done .mt>button.sendto{opacity:1}

.cmbox{display:flex;flex-direction:column;gap:6px;max-height:300px;overflow:auto;padding:2px}
.cmb{align-self:flex-start;max-width:88%;padding:8px 12px;border-radius:16px 16px 16px 4px;background:var(--green);color:#fff;font-size:14px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.cmb a{color:#fff;text-decoration:underline}

/* phones (Home Screen app): the strips under the status bar and the home indicator are painted with the header / tab bar color, so no two-tone band or blur shows there */
body::before,body::after{content:"";position:fixed;left:0;right:0;background:var(--panel);z-index:1;pointer-events:none}
body::before{top:0;height:env(safe-area-inset-top)}
body::after{bottom:0;height:env(safe-area-inset-bottom)}
/* the floating Today button is solid, not see-through blur */
.todayfab{background:var(--green) !important;backdrop-filter:none !important;-webkit-backdrop-filter:none !important}

/* Home Screen app: header a little lower (it was glued to the top and the phone blurred it), tab bar lower (it left a big empty gap under it) */
/* phone-size window (a phone, or a narrow window): a calmer header. The phone shows its own clock, so ours is hidden; desktop keeps everything as it was. */
@media (max-width:700px){
  header{gap:8px;padding-left:12px;padding-right:12px;min-height:0}
  header .clock{display:none}
  header .brandgrp{min-width:0;gap:8px}
  header .brand img{height:32px;max-width:112px}
  header .brand .bname,header .brand.has .bname{font-size:17px}
  header .brandgrp .bsep{margin:0 2px}
  header .brandgrp .brand{min-width:0;flex:0 1 auto}
  header .brand img{min-width:0;flex:0 1 auto;object-fit:contain;object-position:left center}
  header .brand .bname{flex:none;padding-right:5px}   /* the slanted end of the p in Up sticks out past the text box and the header was cutting it off */
  #syncDot{display:none !important}
  header .iconbtn,header #themeBtn,header #stHdr{width:36px;height:36px}
}
/* Home Screen app on a phone: a bit more room above the header so it does not sit under the status bar blur */
@media (pointer:coarse){html.standalone header{padding-top:18px;padding-bottom:6px}}
html.standalone body{padding-bottom:0}
html.standalone body::after{display:none}
html.standalone nav.tabs{padding-bottom:max(0px,calc(env(safe-area-inset-bottom) - 24px))}

header .brand .bname{padding-right:5px}
