:root{--dot-synced: var(--ok);--dot-pending: #b7791f;--dot-syncing: #2f7de1;--dot-off: var(--fg-muted);--dot-attention: var(--danger)}:root:where([data-scheme=dark]){--dot-pending: var(--warn);--dot-syncing: #5aa2f5}.sync-status{display:inline-flex;align-items:center;gap:6px;flex:none;min-width:7.2em;min-height:var(--tap);padding:0 6px;border:0;border-radius:10px;background:none;font-size:13px;font-variant-numeric:tabular-nums;color:var(--fg);white-space:nowrap;cursor:pointer}.sync-status--dot{min-width:var(--tap);justify-content:center}.topbar .topbar__title{min-width:4em}.sync-status__words--short{display:none}@media(max-width:379px){.sync-status__words--full{display:none}.sync-status__words--short{display:inline}}.sync-status__words--count{display:none}.topbar:has(.page-id) .sync-status:has(.sync-status__words--count){min-width:var(--tap);justify-content:center}.topbar:has(.page-id) .sync-status:has(.sync-status__words--count) .sync-status__words{display:none}.topbar:has(.page-id) .sync-status:has(.sync-status__words--count) .sync-status__words--count{display:inline}.sync-status[data-fit=short] .sync-status__words--full{display:none}.sync-status[data-fit=short] .sync-status__words--short{display:inline}.sync-status[data-fit=count],.sync-status[data-fit=dot]{min-width:var(--tap);justify-content:center}.sync-status[data-fit=count] .sync-status__words,.sync-status[data-fit=dot] .sync-status__words{display:none}.sync-status[data-fit=count] .sync-status__words--count{display:inline}.sync-dot{width:10px;height:10px;border-radius:50%;flex:none;background:var(--dot-synced)}.sync-dot--synced{background:var(--dot-synced)}.sync-dot--pending{background:var(--dot-pending)}.sync-dot--syncing{background:var(--dot-syncing);animation:sync-pulse 1s ease-in-out infinite}.sync-dot--attention{background:var(--dot-attention)}.sync-dot--off{background:transparent;box-shadow:inset 0 0 0 2px var(--dot-off)}@keyframes sync-pulse{50%{opacity:.35}}@media(prefers-reduced-motion:reduce){.sync-dot--syncing{animation:none}}.status-sheet__backdrop{position:fixed;inset:0;z-index:20;display:flex;align-items:flex-end;background:#00000059}.status-sheet{width:100%;max-height:80%;overflow:auto;padding:16px 16px calc(env(safe-area-inset-bottom,0px) + 16px);border-top:1px solid var(--border);border-radius:16px 16px 0 0;background:var(--bg-side);font-size:15px}.status-sheet p{margin:0 0 10px}.status-sheet__head{display:flex;align-items:center;gap:8px;font-size:17px}.status-sheet .rows{margin-bottom:12px}.status-sheet .stack{margin-bottom:14px}.review{display:flex;flex-direction:column;min-width:0;min-height:100%}.review--waiting,.review--off{justify-content:center;text-align:center}.review-slot,.review-host{display:flex;flex-direction:column}.review-slot{min-height:100%}.review-host,.review-host>.review{flex:1 0 auto}.screen--review>.review-slot{flex:1 1 0;min-height:0}.screen--review .review-host{flex:1 1 0;min-height:0}.screen--review .review-host>.review{flex:1 1 0;min-height:0}.search__box{margin:0 0 8px;-webkit-appearance:none;appearance:none}.search__bar{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:6px;min-height:36px;margin-bottom:8px}.pill{min-height:36px;padding:6px 14px;border:1px solid var(--border);border-radius:999px;background:var(--bg);color:var(--fg-muted);font-size:14px;cursor:pointer}.search__chip{padding:6px 10px}.pill[aria-expanded=true],.pill[aria-pressed=true]{border-color:transparent;background:var(--accent-soft);color:var(--fg)}.search__menu{margin-bottom:8px}.search__notice{margin:0 0 8px;padding:8px 12px;border-radius:10px;background:var(--bg-side);color:var(--fg-muted);font-size:14px}.search__rows .row__main{overflow-wrap:anywhere}.search__more{margin-top:10px}.search .row.row__button{width:100%;border-bottom:1px solid var(--border);color:inherit;cursor:pointer}.search__menu .row.row__button{padding:0 14px}.search__menu .row.row__button:last-child{border-bottom:0}.search__field{position:relative}.search__field .search__box{padding-right:var(--tap)}.search__box::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.search__clear{position:absolute;top:0;right:0;display:flex;align-items:center;justify-content:center;width:var(--tap);height:var(--tap);padding:0;border:0;background:transparent;cursor:pointer}.search__clear>span{display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:var(--fg-muted);color:var(--bg);font-size:11px;line-height:1}.search__fold{color:var(--fg-muted)}.tree{list-style:none;margin:0 -8px;padding:0}.search .tree__row{display:flex;align-items:center;gap:4px;width:100%;min-height:var(--tap);padding:0 8px 0 calc(8px + var(--tree-depth, 0) * 14px);border:0;border-radius:6px;background:transparent;color:var(--fg);font:inherit;font-size:16px;text-align:left;cursor:pointer}.search .tree__row:active{background:var(--bg-side)}.tree__label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree__chevron{position:relative;flex:none;width:14px;height:14px}.tree__chevron:not(.tree__chevron--none):before{content:"";position:absolute;left:4px;top:3px;width:7px;height:7px;border-right:1.75px solid var(--fg-muted);border-bottom:1.75px solid var(--fg-muted);transform:rotate(-45deg)}.tree__chevron.tree__chevron--open:before{top:1px;transform:rotate(45deg)}.search .file-icon{flex:none;display:inline-block;width:16px;height:16px;margin-right:4px}.search .row.search__row{gap:8px}.search .tree__row--context{color:var(--fg-muted)}.tree__mark{background:var(--mark-bg);border-radius:2px;color:inherit;font-weight:600}.search .tree__row .row__side{flex:none;margin-left:8px}.search .focus-folder__icon{color:var(--fg-muted)}.search .tree__id{flex:none;padding-left:6px;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--fg-muted)}.search .tree__row--dir{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.search .tree__row[data-pressing]{background:var(--bg-side);transform:scale(.985);transition:background .2s ease,transform .45s ease}.hold-menu{position:fixed;inset:0;z-index:60;display:flex;flex-direction:column;justify-content:flex-end}.hold-menu__dim{position:absolute;inset:0;background:#00000052}.hold-menu__sheet{position:relative;display:grid;gap:2px;margin:0 8px calc(8px + env(safe-area-inset-bottom,0px));padding:6px;border:1px solid var(--border);border-radius:14px;background:var(--bg);box-shadow:0 8px 24px #0003;animation:hold-menu-up .18s ease-out}.hold-menu__title{margin:6px 12px 4px;overflow:hidden;color:var(--fg-muted);font-size:13px;text-overflow:ellipsis;white-space:nowrap}.hold-menu__item{min-height:var(--tap);padding:0 12px;border:0;border-radius:8px;background:none;color:var(--fg);font:inherit;font-size:17px;text-align:left}.hold-menu__item:active{background:var(--bg-side)}.hold-menu__item--cancel{color:var(--fg-muted)}@keyframes hold-menu-up{0%{transform:translateY(24px);opacity:0}}@media(prefers-reduced-motion:reduce){.hold-menu__sheet,.search .tree__row[data-pressing]{animation:none;transition:none;transform:none}}.pill[data-on]{border-color:transparent;background:var(--accent-soft);color:var(--fg)}.search__menu .search__type{gap:10px}.update-line{position:fixed;left:calc(env(safe-area-inset-left,0px) + 12px);right:calc(env(safe-area-inset-right,0px) + 12px);bottom:calc(env(safe-area-inset-bottom,0px) + 64px);display:flex;align-items:center;gap:8px;padding:6px 6px 6px 14px;border:1px solid var(--border);border-radius:12px;background:var(--bg-side);font-size:14px;box-shadow:0 2px 10px #0000001f}.update-line p{flex:1;margin:0}.update-line .btn{min-height:var(--tap);border-radius:10px;color:var(--accent);font-weight:600}.update-line--inline{position:static;margin:8px 0 0;box-shadow:none}
