/* Shortcuts: the pop-up sheet the phone's bottom bar opens over the page (shortcuts.js). On a phone it rises from the bottom; on a computer it is a card in the middle. */
dialog.shortcuts-sheet{position:fixed;inset:auto 0 0;width:100vw;max-width:100vw;max-height:100dvh;height:auto;margin:0;padding:0;border:0;border-radius:0;background:transparent;overflow:visible;color:var(--ink,#24212d)}
dialog.shortcuts-sheet::backdrop{background:#0005}
.sc-panel{position:relative;display:flex;flex-direction:column;max-height:min(78dvh,680px);background:var(--surface,#fff);border-radius:20px 20px 0 0;box-shadow:0 -10px 40px #1c142b33;padding-bottom:env(safe-area-inset-bottom);transition:transform .15s ease-out}
[data-theme=dark] .sc-panel{background:#1d1926;color:#f1eff7}
@media (min-width:701px){dialog.shortcuts-sheet{inset:0;margin:auto;width:min(460px,calc(100vw - 32px));height:fit-content}.sc-panel{border-radius:18px;max-height:min(720px,88dvh);box-shadow:0 24px 60px #0004}.sc-handle{display:none}}
/* The sheet rises from the bottom to its height in one motion (Shortcuts and Work alike). */
@media (max-width:700px){dialog.shortcuts-sheet[open]>.sc-panel{animation:sc-rise .24s cubic-bezier(.2,.8,.2,1)}}
@media (prefers-reduced-motion:reduce){dialog.shortcuts-sheet[open]>.sc-panel{animation:none}}
@keyframes sc-rise{from{transform:translateY(100%)}to{transform:none}}
/* Work's place the person is on. */
.sc-open[aria-current=page] .sc-name{color:var(--purple,#6d28b5)}
[data-theme=dark] .sc-open[aria-current=page] .sc-name{color:#c9a7f5}
.sc-handle{display:grid;place-items:center;height:18px;touch-action:none;cursor:grab}
.sc-handle span{width:40px;height:4px;border-radius:2px;background:var(--line,#d9d6e2)}
.sc-head{display:flex;align-items:center;gap:6px;min-height:52px;padding:0 10px 4px 16px;touch-action:none}
.sc-head h2{flex:1;margin:0;font-size:1.15rem;font-weight:700}
.sc-back{display:inline-grid;place-items:center;width:44px;height:44px;margin-inline-start:-10px;border:0;border-radius:50%;background:none;color:inherit;cursor:pointer}
[dir=rtl] .sc-back .icon{transform:scaleX(-1)}
.sc-views{display:inline-flex;gap:2px;padding:2px;border-radius:12px;background:color-mix(in srgb,currentColor 6%,transparent)}
.sc-view{display:inline-grid;place-items:center;width:40px;height:36px;border:0;border-radius:10px;background:none;color:var(--muted,#686577);cursor:pointer}
.sc-view .icon{width:18px;height:18px}
.sc-view[aria-pressed=true]{background:var(--surface,#fff);color:var(--ink,#24212d);box-shadow:0 1px 3px #0002}
[data-theme=dark] .sc-view[aria-pressed=true]{background:#2b2536;color:#f1eff7}
.sc-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 0 12px}
.sc-status{margin:12px 16px;color:var(--muted,#686577)}
.sc-list,.sc-grid{list-style:none;margin:0;padding:0}
.sc-item{display:flex;align-items:center;min-height:60px;padding:0 4px;background:var(--surface,#fff)}
[data-theme=dark] .sc-item{background:#1d1926}
.sc-item+.sc-item{border-top:1px solid color-mix(in srgb,currentColor 7%,transparent)}
.sc-item.sc-lifted{position:relative;z-index:2;box-shadow:0 8px 24px #0003;border-radius:12px}
.sc-grip,.sc-more{flex:none;display:inline-grid;place-items:center;width:40px;height:48px;border:0;border-radius:10px;background:none;color:var(--muted,#686577);cursor:pointer}
.sc-grip{touch-action:none;cursor:grab}
.sc-grip .icon{width:20px;height:20px;stroke-width:3.2}
.sc-more .icon{width:20px;height:20px}
.sc-grip:hover,.sc-more:hover,.sc-more[aria-expanded=true]{background:color-mix(in srgb,currentColor 7%,transparent)}
.sc-open{flex:1;min-width:0;display:flex;align-items:center;gap:12px;min-height:56px;padding:6px 8px;border:0;border-radius:12px;background:none;color:inherit;font:inherit;text-align:start;cursor:pointer}
.sc-open:hover{background:color-mix(in srgb,currentColor 4%,transparent)}
.sc-open:disabled{opacity:.5;cursor:default}
.sc-copy{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sc-name{font-weight:700}
.sc-dot,.sc-kind{color:var(--muted,#686577);font-weight:500}
.sc-go{flex:none;display:inline-grid;place-items:center;width:28px;height:28px;color:var(--muted,#686577)}
.sc-go .icon{width:20px;height:20px}
[dir=rtl] .sc-go .icon{transform:scaleX(-1)}
.sc-face{flex:none;position:relative;width:40px;height:40px;border-radius:12px;overflow:hidden;display:grid;place-items:center;background:color-mix(in srgb,currentColor 6%,transparent);color:var(--ink,#24212d);font-weight:700}
[data-theme=dark] .sc-face{color:#f1eff7}
.sc-face .portrait-box,.sc-face [data-portrait]{width:40px!important;height:40px!important;border-radius:12px}
.sc-face:has(.sc-faces){background:none;overflow:visible}
.sc-face.sc-plus .icon{width:22px;height:22px}
.sc-letter,.sc-page{display:grid;place-items:center;width:100%;height:100%;font-weight:700}
.sc-page .icon{width:22px;height:22px}
/* A room's face: up to three of its members, or its initial. */
.sc-faces{position:relative;display:block;width:100%;height:100%}
.sc-mini{position:absolute;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:color-mix(in srgb,currentColor 8%,var(--surface,#fff));font-weight:700;font-size:.7rem;border:2px solid var(--surface,#fff);box-sizing:border-box}
[data-theme=dark] .sc-mini{border-color:#1d1926}
.sc-mini .portrait-box,.sc-mini [data-portrait]{width:100%!important;height:100%!important;border-radius:50%}
.sc-n1 .sc-mini{inset:0}
.sc-n2 .sc-mini{width:66%;height:66%}.sc-n2 .sc-mini:nth-child(1){top:0;inset-inline-start:0}.sc-n2 .sc-mini:nth-child(2){bottom:0;inset-inline-end:0}
.sc-n3 .sc-mini{width:57%;height:57%}.sc-n3 .sc-mini:nth-child(1){top:0;inset-inline-start:21.5%}.sc-n3 .sc-mini:nth-child(2){bottom:0;inset-inline-start:0}.sc-n3 .sc-mini:nth-child(3){bottom:0;inset-inline-end:0}
/* Add shortcut: always the last row. */
.sc-add-wrap{padding:4px 4px 0 44px;border-top:1px solid color-mix(in srgb,currentColor 7%,transparent)}
.sc-add-wrap.sc-add-wide{padding-inline-start:4px;margin-top:6px}
.sc-add-row .sc-name{font-weight:600}
.sc-cap{margin:4px 12px 0;font-size:.85rem;color:var(--muted,#686577)}
.sc-empty>p{margin:4px 16px 8px;color:var(--muted,#686577)}
.sc-section{margin:10px 16px 2px;font-size:.8rem;font-weight:700;color:var(--muted,#686577)}
/* Grid: tiles. */
.sc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:6px;padding:4px 10px}
.sc-tile{position:relative;min-width:0}
.sc-tile .sc-open{flex-direction:column;justify-content:flex-start;gap:4px;width:100%;min-height:104px;padding:10px 4px 8px;text-align:center}
.sc-tile .sc-face{width:48px;height:48px}
.sc-tile .sc-face .portrait-box,.sc-tile .sc-face [data-portrait]{width:48px!important;height:48px!important}
.sc-tile .sc-name,.sc-tile .sc-kind{display:block;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:.82rem;line-height:1.25}
.sc-tile .sc-kind{font-size:.75rem}
.sc-tile .sc-face+.sc-kind{font-size:.82rem;font-weight:600;color:inherit}
.sc-tile .sc-more{position:absolute;top:0;inset-inline-end:0;width:32px;height:36px}
/* ⋮'s menu. */
.sc-menu{position:absolute;z-index:5;min-width:190px;padding:6px;border:1px solid var(--line,#e7e5ee);border-radius:12px;background:var(--surface,#fff);color:var(--ink,#24212d);box-shadow:0 14px 34px -10px rgba(20,12,40,.35);display:flex;flex-direction:column}
[data-theme=dark] .sc-menu{background:#2b2536;color:#f1eff7;border-color:#3a3347}
.sc-menu [role=menuitem]{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 12px;border:0;border-radius:8px;background:none;color:inherit;font:inherit;font-size:.9375rem;font-weight:550;text-align:start;cursor:pointer}
.sc-menu [role=menuitem] .icon{width:18px;height:18px;color:var(--muted,#686577)}
.sc-menu [role=menuitem]:hover:not([aria-disabled=true]),.sc-menu [role=menuitem]:focus-visible{background:color-mix(in srgb,currentColor 7%,transparent);outline:none}
.sc-menu [role=menuitem][aria-disabled=true]{opacity:.4;cursor:default}
.sc-menu [data-sc-menu=remove]{color:#bd2d3d}
.sc-menu [data-sc-menu=remove] .icon{color:inherit}
/* The add page: a search, the Chief, then what matches. */
.sc-search{position:relative;padding:4px 12px 8px}
.sc-search svg{position:absolute;inset-inline-start:24px;top:calc(50% - 2px);transform:translateY(-50%);color:var(--muted,#686577)}
.sc-search input{width:100%;min-height:42px;border-radius:21px;border:1px solid transparent;padding:0 16px 0 42px;background:color-mix(in srgb,currentColor 6%,transparent);color:inherit;font:inherit;box-sizing:border-box}
[dir=rtl] .sc-search input{padding:0 42px 0 16px}
.sc-search input:focus{outline:none;border-color:var(--line,#c9c4d6)}
.sc-add-body{padding:0 4px 12px}
.sc-hint{margin:2px 12px 8px;font-size:.85rem;color:var(--muted,#686577)}
/* The tab while its sheet is open looks like any chosen tab; no focus ring left behind by a finger. */
body .bottom-nav.tab-bar>:is([data-nav=shortcuts],[data-nav=work]):focus:not(:focus-visible){outline:none}
/* A room's member faces keep to their own small circles, whatever the face's size. */
.sc-face .sc-mini .portrait-box,.sc-face .sc-mini [data-portrait]{width:100%!important;height:100%!important;border-radius:50%}
/* A finger leaves no ring in the sheet: not on a row, not on the chosen List or Grid (the Founder, 17 October 2026,
   07:12 and 07:33); the chosen view is its filled ground alone. The keyboard's ring stays. */
.sc-panel:focus{outline:none}
dialog.shortcuts-sheet :focus:not(:focus-visible){outline:none}
dialog.shortcuts-sheet :is(.sc-open,.sc-view,.sc-more,.sc-grip,.sc-back):focus-visible{outline:2px solid var(--purple,#6d28b5);outline-offset:-2px}

/* List rows: the drag handle on the right; swiped left, a red trash can (the Founder, 18 October 2026). */
.sc-swipe{position:relative;overflow:hidden;padding:0}
.sc-row{position:relative;z-index:1;display:flex;align-items:center;flex:1;min-width:0;padding:0 4px;background:var(--surface,#fff);transition:transform .18s ease-out;touch-action:pan-y}
[data-theme=dark] .sc-row{background:#1d1926}
.sc-trash{position:absolute;top:0;bottom:0;inset-inline-end:0;width:80px;display:grid;place-items:center;border:0;background:#bd2d3d;color:#fff;cursor:pointer}
.sc-trash .icon{width:24px;height:24px}
.sc-swipe.sc-lifted .sc-row{box-shadow:0 8px 24px #0003}
