/* The Projects tab's Open work card and its way into Work, Home's Up next, the Work view and Brain's Saved section
   and search (web/tracker.js, web/resources.js, web/feed.js). Work and Saved sit on one paper sheet and reuse the
   tracker rows of a project's page (.tk-*). */
.db-back{align-self:flex-start;display:inline-flex;align-items:center;gap:4px;padding:8px 14px 8px 8px;margin:0 0 2px;border-radius:99px;font-size:14px;font-weight:600;color:#fff;background:rgba(255,255,255,.16);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)}
.db-back svg{width:18px;height:18px}
.db-back:active{transform:scale(.96)}
.db-work .card-body{padding:18px 16px 12px}
.db-work .kind{margin-bottom:12px}
.db-work .tk-list{box-shadow:inset 0 0 0 1px rgba(40,20,60,.08)}
.db-all{display:flex;align-items:center;justify-content:center;gap:4px;width:100%;margin-top:10px;padding:8px;border-radius:12px;font-size:14px;font-weight:600;color:var(--frost-ink)}
.db-all svg{width:16px;height:16px;opacity:.6}
.db-all:hover{background:rgba(40,20,60,.06)}

/* Home: Up next, between Your day and the approvals */
.un-wrap{margin-top:12px}
.un{display:flex;flex-direction:column;gap:8px}
.un-h{display:flex;align-items:baseline;justify-content:space-between;padding:0 6px}
.un-h b{font-size:12px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.86)}
.un-all{display:inline-flex;align-items:center;gap:2px;font-size:13px;font-weight:600;color:rgba(255,255,255,.8)}
.un-all svg{width:14px;height:14px}
.un .tk-list{color:var(--paper-ink);box-shadow:0 18px 40px -24px rgba(0,0,0,.6)}
.db-work .tk-list{color:var(--paper-ink)}

/* Brain: its title, one search box over everything, the results while it has text */
.br-top{display:flex;flex-direction:column;gap:12px;padding:0 4px 14px}
.br-find{display:flex;align-items:center;gap:10px;height:46px;padding:0 12px 0 16px;border-radius:16px;background:rgba(255,255,255,.18);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}
.br-find svg{width:18px;height:18px;opacity:.8}
.br-find input{flex:1;min-width:0;border:0;background:none;font:inherit;font-size:16px;color:#fff;outline:none;-webkit-appearance:none;appearance:none}
.br-find input::placeholder{color:rgba(255,255,255,.7)}
.br-find input::-webkit-search-cancel-button{filter:invert(1)}
.br-find:focus-within{box-shadow:inset 0 0 0 2px rgba(255,255,255,.7)}
.br-kbd{display:none;font:600 11.5px var(--f-sans);padding:3px 7px;border-radius:7px;color:rgba(255,255,255,.75);box-shadow:inset 0 0 0 1px rgba(255,255,255,.3)}
@media (hover:hover) and (pointer:fine){.br-kbd{display:inline-block}}
.br-hits{display:flex;flex-direction:column;gap:14px;padding:16px 14px 22px;border-radius:30px;background:var(--paper);color:var(--paper-ink);box-shadow:0 18px 50px rgba(0,0,0,.2)}
.br-hits .wk-none{margin:8px 6px}
#arc-saved .wk-sheet{margin-top:14px}
.rs-count{margin:0 6px;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--paper-muted)}

.wk-sheet{flex:none;display:flex;flex-direction:column;gap:14px;margin-top:6px;padding:16px 14px 22px;border-radius:30px;background:var(--paper);color:var(--paper-ink);box-shadow:0 18px 50px rgba(0,0,0,.2);user-select:text;-webkit-user-select:text}
.wk-add{display:grid;grid-template-columns:22px 1fr auto;column-gap:12px;align-items:center;padding:0 6px 0 14px;border-radius:18px;background:#fff;box-shadow:inset 0 0 0 1px var(--paper-line)}
.wk-add input{font:inherit;font-size:15.5px;padding:14px 0;border:0;background:none;outline:none;color:var(--paper-ink);width:100%;min-width:0}
.wk-add input::-webkit-search-cancel-button{display:none}
.wk-add select{font:inherit;font-size:13px;font-weight:600;max-width:42cqw;padding:8px 10px;border:0;border-radius:12px;background:#f3eff6;color:var(--paper-ink);outline:none;text-overflow:ellipsis}
.wk-add:focus-within{box-shadow:inset 0 0 0 1.5px var(--lilac)}
.wk-add .tk-x{padding:8px 10px}
.wk-bar{display:flex;justify-content:space-between;align-items:center;gap:10px}
.wk-seg{display:inline-flex;gap:2px;padding:3px;border-radius:99px;background:#efeaf3}
.wk-seg button{padding:6px 14px;border-radius:99px;font-size:13px;font-weight:600;color:var(--paper-muted)}
.wk-seg button.on{background:#fff;color:var(--paper-ink);box-shadow:0 1px 4px rgba(40,20,60,.12)}
.wk-chips{display:flex;gap:6px;overflow-x:auto;margin:0 -14px;padding:0 14px 2px;scrollbar-width:none}
.wk-chips::-webkit-scrollbar{display:none}
.wk-chip{flex:none;display:inline-flex;align-items:baseline;gap:6px;padding:7px 12px;border-radius:99px;font-size:13px;font-weight:550;background:#fff;color:var(--paper-ink);box-shadow:inset 0 0 0 1px var(--paper-line);white-space:nowrap}
.wk-chip i{font-style:normal;font-size:12px;color:var(--paper-muted);font-variant-numeric:tabular-nums}
.wk-chip.on{background:var(--paper-ink);color:#fff;box-shadow:none}
.wk-chip.on i{color:rgba(255,255,255,.7)}
.wk-sec{display:flex;flex-direction:column;gap:8px}
.wk-h{display:flex;justify-content:space-between;align-items:baseline;margin:6px 4px 0;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--paper-muted)}
.wk-h b{font-weight:600}
.wk-h span{letter-spacing:0;font-variant-numeric:tabular-nums}
.wk-sh{display:flex;justify-content:space-between;align-items:baseline;margin:8px 4px -2px;font-size:13.5px;font-weight:650;color:var(--paper-ink)}
.wk-sh span{font-size:12.5px;font-weight:500;color:var(--paper-muted);font-variant-numeric:tabular-nums}
.tk .wk-sh:first-of-type{margin-top:2px}
.tk .tk-list+.wk-sh{margin-top:14px}
.tk .wk-sh+.tk-list{margin-top:8px}
.wk-ph{display:grid;grid-template-columns:auto 1fr auto 16px;gap:8px;align-items:center;margin:6px 2px 0;text-align:left}
.wk-ph span{font-size:17px}
.wk-ph b{font-size:16px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wk-ph small{font-size:12.5px;color:var(--paper-muted)}
.wk-ph svg{width:16px;height:16px;color:#b3abb9}
.wk-none{margin:18px 6px;font-size:14.5px;line-height:1.45;color:var(--paper-muted);text-align:center}

/* More on a tracker row: who's on it, its link, the short fields of the editor */
.tk-who{font-weight:600;color:var(--paper-ink)}
.tk-pj{color:var(--paper-ink)}
.tk-lk{display:inline-flex;align-items:center;gap:3px}
.tk-lk svg{width:11px;height:11px}
.tk-short{width:auto;flex:1;min-width:120px;max-width:220px}
.tk-grow{flex:1;min-width:0;width:auto}
select.tk-in{appearance:none;-webkit-appearance:none}

/* Resources */
.rs-list{list-style:none;margin:0;padding:0;border-radius:18px;background:#fff;box-shadow:inset 0 0 0 1px var(--paper-line);overflow:hidden}
.rs{display:grid;grid-template-columns:1fr 36px;align-items:start}
.rs+.rs,.rs+.tk-addrow{border-top:1px solid var(--paper-line)}
.rs-main{display:grid;grid-template-columns:52px 1fr;gap:12px;align-items:start;padding:12px 0 12px 12px;text-align:left;min-width:0}
.rs-th{position:relative;width:52px;height:52px;border-radius:13px;overflow:hidden;display:grid;place-items:center;background:linear-gradient(150deg,#e9e2f2,#d8cfe6);color:#5b4a70}
.rs-th::before{content:attr(data-l);font-family:var(--f-display);font-size:24px;line-height:1}
.rs-th.txt{background:linear-gradient(150deg,#f6ead9,#ecd9bd);color:#7a5a26}
.rs-th img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#fff}
.rs-txt{display:flex;flex-direction:column;gap:3px;min-width:0}
.rs-txt b{font-size:15px;font-weight:600;line-height:1.3;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.rs-txt b svg{width:12px;height:12px;margin-right:5px;vertical-align:-1px;color:var(--lilac)}
.rs-txt small{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px;font-size:12.5px;color:var(--paper-muted)}
.rs-txt small i{font-style:normal;opacity:.6}
.rs-txt small em{font-style:normal;color:var(--lilac);font-weight:550}
.rs-note{font-size:13.5px;line-height:1.4;color:#4a4352;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.rs-wait{color:var(--paper-muted);font-weight:500;animation:rswait 1.4s ease-in-out infinite}
@keyframes rswait{50%{opacity:.45}}
.rs-more{width:36px;height:44px;display:grid;place-items:center;color:#b3abb9;margin-top:6px}
.rs-more svg{width:18px;height:18px}
.rs.open .rs-more{color:var(--paper-ink)}
.rs-ed{grid-column:1/-1;display:flex;flex-direction:column;gap:10px;padding:2px 12px 14px}
.rs-desc{margin:0;font-size:13px;line-height:1.45;color:var(--paper-muted)}
.rs-acts{display:inline-flex;gap:14px;flex-wrap:wrap}
.rs-empty{padding:26px 18px;border-radius:18px;background:#fff;box-shadow:inset 0 0 0 1px var(--paper-line);text-align:center}
.rs-empty b{font-family:var(--f-display);font-weight:400;font-size:22px}
.rs-empty p{margin:8px auto 0;max-width:32ch;font-size:14.5px;line-height:1.5;color:var(--paper-muted)}
.rs-hit div span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.d-body .rs-list{margin-top:0}
@media (prefers-reduced-motion:reduce){.rs-wait{animation:none}.db-switch button{transition:none}}
