/* Header, collection tabs, and the sync panel. All colors follow the app's semantic theme roles. */
/* One glass surface prevents a blur seam between the title and collection tabs. */
.nook-header { position: sticky; top: 0; z-index: 30; pointer-events: none; }
.nook-header::before { content: ''; position: absolute; inset: 0; background: var(--bg-header); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); pointer-events: none; transition: bottom 200ms ease; }
.nook-header.tabs-hidden::before { bottom: 54px; }
.nook-header:has(> .nook-tabs-frame[style*="display: none"])::before { bottom: 0; }
.nook-header > * { pointer-events: auto; }
.nook-title-row { position: relative; z-index: 2; min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 16px; }
.nook-title-block { flex: 1; min-width: 0; }
.nook-title-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.nook-title-line h1 { font-size: calc(var(--font-size-base) * 1.333333); line-height: 24px; font-weight: 800; margin: 0; white-space: nowrap; }
/* The demo label reads as part of the title: same size and weight, recolored in the accent. */
.nook-demo-badge { color: var(--accent-color); font-size: calc(var(--font-size-base) * 1.333333); font-weight: 800; line-height: 24px; }
.nook-title-line { column-gap: 6px; }
.nook-sync { display: block; margin-top: 1px; color: var(--text-secondary); font-size: calc(var(--font-size-base) * .866667); line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nook-utilities { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.nook-back { margin-left: -8px; }
.nook-notice-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-full); background: var(--accent-color); color: var(--accent-text, #fff); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--bg-header, var(--bg-primary)); }
/* Equal tabs while they fit; below that the strip scrolls and fades at the clipped edge. */
.nook-search-wrap { padding: 12px 16px 4px; }
/* The feed search is a contenteditable line (search.css styles its tokens), so it
   wraps onto more lines instead of scrolling. */
.nook-search-field .nook-search-input { flex: 1; display: block; padding: 10px 0; overflow: hidden; white-space: pre-wrap; line-height: 22px; font-size: calc(var(--font-size-base) * .933333); }
/* Search suggestions follow the design.md menu recipe with the Sort menu's shadow. */
/* The list scrolls with the feed while it stays open, so it stacks under the sticky header (30) and above the feed's own layers, such as carousel arrows (25). */
.nook-suggest { position: absolute; top: 100%; left: 16px; right: 16px; z-index: 28; margin-top: 4px; max-height: min(440px, 60vh); overflow-y: auto; overscroll-behavior: contain; }
/* Rows run edge to edge so the highlight meets the rounded corners; the calendar keeps its inset. */
/* The month grid has a fixed height, so it never scrolls; a short window would otherwise clip the last weeks behind a scrollbar. */
.nook-suggest.is-calendar { right: auto; width: 320px; max-width: calc(100% - 32px); max-height: none; overflow: visible; padding: 4px 0 8px; }
.nook-suggest-row { font-size: var(--font-size-base); }
.nook-suggest-glyph { flex: 0 0 18.75px; display: flex; color: var(--text-secondary); }
.nook-suggest-glyph svg { width: 18.75px; height: 18.75px; }
.nook-suggest-row.is-active .nook-suggest-glyph { color: var(--text-primary); }
.nook-suggest-text { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.nook-suggest-text.is-person { align-items: center; gap: 12px; }
.nook-suggest-prefix { flex: none; color: var(--text-secondary); }
.nook-suggest-prefix + .nook-suggest-key { margin-left: -8px; }
.nook-suggest-key { flex: none; font-weight: 700; }
.nook-suggest-prefix.is-negative, .nook-suggest-key.is-negative { color: var(--destructive-color); }
.nook-suggest-desc { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-secondary); }
.nook-suggest-avatar { flex: 0 0 40px; width: 40px; height: 40px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; font-weight: 700; text-transform: uppercase; }
.nook-suggest-person { display: flex; flex-direction: column; min-width: 0; }
.nook-suggest-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nook-suggest-handle { color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nook-suggest-handle b, .nook-suggest-tag b { color: var(--text-primary); font-weight: 700; }
.nook-suggest-tag { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nook-suggest-count { flex: none; margin-left: auto; color: var(--text-secondary); font-size: calc(var(--font-size-base) * .866667); line-height: 16px; }
.nook-suggest-empty { padding: 12px 16px; color: var(--text-secondary); font-size: var(--font-size-base); line-height: 20px; }
.nook-suggest-empty b { color: var(--text-primary); }
/* since:/until: calendar: 15px numerals on 36px targets; the chosen day takes the accent, today only accent text. */
.nook-calendar-head { display: flex; align-items: center; gap: 4px; padding: 6px 8px 4px 16px; }
.nook-calendar-head h2 { flex: 1; min-width: 0; margin: 0; font-size: var(--font-size-base); line-height: 20px; font-weight: 700; }
.nook-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); padding: 0 8px; }
.nook-calendar-dow { height: 32px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: calc(var(--font-size-base) * .866667); }
.nook-calendar-cell { height: 40px; display: flex; align-items: center; justify-content: center; }
.nook-calendar-day { width: 36px; height: 36px; border: 0; border-radius: var(--radius-full); background: transparent; color: var(--text-primary); font-size: var(--font-size-base); cursor: pointer; }
.nook-calendar-day:hover { background: var(--bg-tertiary); }
.nook-calendar-day.is-outside { color: var(--text-secondary); }
.nook-calendar-day.is-today { color: var(--accent-color); font-weight: 700; }
.nook-calendar-day.is-selected { background: var(--accent-color); color: var(--accent-text); font-weight: 700; }
.nook-results-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 8px 4px 16px; border-bottom: 1px solid var(--border-color); }
.nook-count { color: var(--text-secondary); font-size: calc(var(--font-size-base) * .866667); line-height: 16px; }
/* Content updates belong to the feed, below its count and sort controls. */
.nook-feed-refresh { display: block; width: 100%; min-height: 48px; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--border-color); background: transparent; color: var(--accent-color); font-size: var(--font-size-base); line-height: 20px; font-weight: 500; text-align: center; cursor: pointer; }
.nook-feed-refresh:hover { background: var(--hover-bg); }
.nook-feed-refresh:focus-visible { outline: 2px solid var(--accent-color); outline-offset: -3px; }
.nook-feed-refresh:disabled { opacity: .5; cursor: wait; }
.feed-picker-trigger.nook-sort { min-height: 40px; font-size: calc(var(--font-size-base) * .933333); font-weight: 700; gap: 8px; padding: 8px 12px; }
.nook-sort svg { width: 16px; height: 16px; }
.feed-picker:first-child .nook-sort-menu { left: auto; right: 0; }
@media (max-width: 640px) {
  /* Solid on phones: layer the header tint over the page color so themes with their own
     header shade keep it, without the blur showing scrolled content through. */
  .nook-header::before { background: linear-gradient(var(--bg-header), var(--bg-header)), var(--bg-primary); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nook-header .nook-tab { --tab-pad: 12px; font-size: calc(var(--font-size-base) * .933333); }
  .nook-sort { min-height: 44px !important; }
  .nook-search-field .nook-search-input { font-size: max(16px, var(--font-size-base)); }
}
@media (max-width: 359px) {
  .nook-header .nook-tab { --tab-pad: 8px; font-size: calc(var(--font-size-base) * .866667); }
}
/* Sync activity lives in the top bar: the drawer opens as a panel anchored under its button. */
.nook-activity-button { color: var(--text-primary); }
.nook-activity-glyph { display: flex; }
.nook-activity-spinner { width: 18px; height: 18px; border: 2px solid color-mix(in srgb, var(--accent-color) 25%, transparent); border-top-color: var(--accent-color); border-radius: 50%; animation: nook-activity-spin .8s linear infinite; }
@keyframes nook-activity-spin { to { transform: rotate(360deg); } }

/* Sync panel: anchored under the top-bar sync button. Theme roles only. */
.nook-sync-panel { position: fixed; z-index: 70; top: var(--nook-activity-top, 64px); right: var(--nook-activity-right, 16px); width: min(380px, calc(100vw - 16px)); max-height: calc(100dvh - var(--nook-activity-top, 64px) - 16px); overflow-y: auto; animation: nook-activity-open 140ms ease-out; }
@keyframes nook-activity-open { from { opacity: 0; transform: translateY(-4px); } }
.cs-top { padding: 16px 16px 14px; }
.cs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cs-head strong { font-size: 17px; line-height: 22px; font-weight: 800; }
.cs-time { color: var(--text-secondary); font-size: 13px; font-variant-numeric: tabular-nums; }
/* Header strip: the collection tabs fill the bar under the title. */
.nook-header > .nook-tabs-frame { z-index: 1; border-bottom: 1px solid var(--border-color); transition: transform 200ms ease, opacity 200ms ease; }
.nook-header .nook-tabs { height: 53px; }
/* Jobs panel step strip: a status dot leads each step tab. */
.cs-tabs-frame { margin: 10px -16px 0; border-bottom: 1px solid var(--border-color); }
.cs-tabs { padding: 0 6px; }
.cs-step-tab::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--text-secondary); }
.cs-step-tab:is(.is-complete, .is-active)::before { background: var(--accent-color); }
.cs-step-tab:is(.is-failed, .is-cancelled)::before { background: var(--destructive-color); }
.cs-step-tab.is-pending::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--text-secondary); }
.cs-step-tab.is-active::before { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color) 30%, transparent); }
.cs-step-tab.is-overview::before { border-radius: 2px; background: var(--text-primary); }
.cs-caption { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 20px 16px; column-gap: 12px; margin: 12px 0 0; font-size: 15px; line-height: 20px; font-variant-numeric: tabular-nums; }
.cs-l { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.cs-r { color: var(--text-secondary); font-size: 14px; text-align: right; white-space: nowrap; }
.cs-r.is-danger { color: var(--destructive-color); }
.cs-line2 { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 6px; min-width: 0; margin-top: 2px; }
.cs-subline { flex: 1 1 auto; min-width: 0; height: 16px; margin: 0; overflow: hidden; color: var(--text-secondary); font-size: 13px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.cs-eta { flex: none; color: var(--text-secondary); font-size: 13px; line-height: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Every step reserves the same bar, count row and three-line status area. */
.cs-detail-host { height: 116px; margin-top: 12px; }
.cs-details-heading { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.bd-bar { height: 8px; }
.bd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 8px; height: 36px; margin: 12px 0 0; padding: 0; list-style: none; font-variant-numeric: tabular-nums; }
.bd-stat { min-width: 0; }
.bd-stat.is-placeholder { grid-column: 1 / -1; }
.bd-value { display: flex; align-items: center; gap: 6px; color: var(--text-primary); font-size: 15px; font-weight: 700; line-height: 20px; white-space: nowrap; }
.bd-value > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bd-label { display: block; overflow: hidden; color: var(--text-secondary); font-size: 13px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.bd-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.is-done > .bd-dot { background: var(--accent-color); }
.is-neutral > .bd-dot { background: var(--text-secondary); }
.is-failed > .bd-dot { background: var(--destructive-color); }
.is-rest > .bd-dot { box-shadow: inset 0 0 0 1.5px var(--text-secondary); }
.is-plain > .bd-dot { display: none; }
.cs-status { display: flex; align-items: flex-start; gap: 8px; height: 48px; margin: 12px 0 0; color: var(--text-secondary); font-size: 13px; line-height: 16px; }
.cs-status.is-failed { color: var(--text-primary); }
.cs-status-text { flex: 1; min-width: 0; max-height: 48px; overflow-y: auto; overflow-wrap: anywhere; }
.cs-status-text:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; }
.cs-status.is-active .cs-status-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-glyph { display: flex; align-items: center; justify-content: center; flex: none; width: 16px; height: 16px; color: var(--text-secondary); }
.cs-glyph svg { width: 16px; height: 16px; fill: currentColor; }
.cs-glyph.is-complete { color: var(--accent-color); }
.cs-glyph.is-failed { color: var(--destructive-color); }
.cs-menu { margin: 0; padding: 4px 0; list-style: none; border-top: 1px solid var(--border-color); }
.cs-menu.cs-flush { border-top: 0; padding-top: 0; }
.cs-menu.cs-last { padding-bottom: 8px; }
.cs-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 16px; border: 0; background: transparent; color: var(--text-primary); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.cs-row:hover { background: var(--hover-bg); }
.cs-row:focus-visible { outline: 2px solid var(--accent-color); outline-offset: -2px; }
.cs-row:disabled { opacity: .5; cursor: default; }
.cs-row svg { width: 20px; height: 20px; flex: 0 0 20px; fill: currentColor; }
.cs-row.is-danger { color: var(--destructive-color); }
.cs-grow { flex: 1; min-width: 0; }
.cs-two { display: flex; flex-direction: column; }
.cs-sub { color: var(--text-secondary); font-size: 13px; line-height: 16px; }
.cs-detail { color: var(--text-secondary); font-size: 13px; }
.cs-chev { display: flex; color: var(--text-secondary); }
.cs-chev svg { width: 16px; height: 16px; flex-basis: 16px; }
.cs-subhead { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border-color); }
.cs-subhead strong { font-size: 17px; line-height: 22px; font-weight: 800; }
.cs-label { padding: 12px 16px 2px; color: var(--text-secondary); font-size: 13px; font-weight: 700; }
/* Calmer top block (design.md): one bold line, blue only on the live step, quiet count labels. */
.cs-step-tab.is-complete::before { background: var(--text-secondary); }
.cs-l { font-weight: 400; }
/* Counts share one left edge; each legend dot sits beside its quiet label. */
.bd-label .bd-dot { display: inline-block; width: 6px; height: 6px; margin-right: 4px; vertical-align: 1px; }
.cs-tab-arrow { position: absolute; top: 0; bottom: 0; z-index: 2; display: none; align-items: center; width: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--text-primary); cursor: pointer; }
.cs-tab-arrow.is-start { left: 0; justify-content: flex-start; background: linear-gradient(to right, var(--tabs-surface, var(--bg-primary)) 55%, transparent); }
.cs-tab-arrow.is-end { right: 0; justify-content: flex-end; background: linear-gradient(to left, var(--tabs-surface, var(--bg-primary)) 55%, transparent); }
.cs-tab-arrow svg { box-sizing: content-box; width: 18px; height: 18px; padding: 5px; border-radius: var(--radius-full); fill: currentColor; }
.cs-tab-arrow:hover svg { background: var(--hover-bg); }
.cs-tab-arrow.is-start svg { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  .cs-tabs-frame.is-clipped-start .cs-tab-arrow.is-start, .cs-tabs-frame.is-clipped-end .cs-tab-arrow.is-end { display: flex; }
}
/* Jobs list: Scheduled rows focus the top block; On demand rows open their run options. */
.cs-jobs { padding: 4px 0; border-top: 1px solid var(--border-color); }
.cs-jobs > .cs-menu { padding: 0; }
.cs-section { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 64px 4px 16px; font-size: 15px; font-weight: 700; }
.cs-section-q { color: var(--text-secondary); font-size: 13px; font-weight: 400; }
.cs-job { position: relative; display: flex; align-items: center; gap: 4px; padding-right: 12px; }
.cs-job:hover { background: var(--hover-bg); }
.cs-job.is-sel { background: color-mix(in srgb, var(--text-primary) 5%, transparent); }
.cs-job.is-sel::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 3px; background: var(--accent-color); }
.cs-job-body { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 8px 6px 16px; border: 0; background: transparent; color: var(--text-primary); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.cs-job-body:focus-visible, .cs-more:focus-visible { outline: 2px solid var(--accent-color); outline-offset: -2px; }
.cs-job-body .cs-two > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-job-ic { display: flex; }
.cs-job-ic svg { width: 20px; height: 20px; fill: currentColor; }
.cs-job:is(.is-queued, .is-never, .is-off) .cs-job-ic { color: var(--text-secondary); }
.cs-job.is-failed .cs-job-ic { color: var(--destructive-color); }
.cs-job-next { flex: none; min-width: 52px; color: var(--text-secondary); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cs-more { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 12px 16px; border: 0; background: transparent; color: var(--text-primary); font: inherit; font-size: 15px; font-weight: 700; text-align: left; cursor: pointer; }
.cs-more:hover { background: var(--hover-bg); }
.cs-more-n { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--text-secondary); font-size: 13px; font-weight: 400; }
.cs-more-n svg { width: 16px; height: 16px; fill: currentColor; transition: transform .15s; }
.cs-more[aria-expanded="true"] .cs-more-n svg { transform: rotate(180deg); }
.cs-job-error { margin: 0; padding: 4px 16px 8px; color: var(--destructive-color); font-size: 13px; line-height: 16px; }
.cs-history .cs-two > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-history svg.is-danger { color: var(--destructive-color); }
.cs-empty { padding: 16px; color: var(--text-secondary); font-size: 15px; }
/* Run options: one control per CLI flag, the matching command, and Run. */
.cs-opts { padding: 4px 0 0; }
.cs-opt { display: flex; align-items: center; gap: 16px; padding: 10px 16px; }
.cs-opt.is-stack { flex-direction: column; align-items: stretch; gap: 8px; }
.cs-opt.is-off { opacity: .5; }
.cs-opt-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cs-opt-label { font-size: 15px; line-height: 20px; }
.cs-opt.is-danger .cs-opt-label { color: var(--destructive-color); }
.cs-opt-input { flex: none; width: 132px; }
.cs-opt-file { display: flex; align-items: center; gap: 12px; }
.cs-opt-file-name { flex: 1; min-width: 0; overflow: hidden; color: var(--text-secondary); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.cs-cli { margin: 8px 16px 0; padding: 10px 12px; border-radius: var(--radius-md); background: var(--bg-secondary); }
.cs-cli-k { display: block; margin-bottom: 4px; color: var(--text-secondary); font-size: 13px; line-height: 16px; }
.cs-cli code { display: block; color: var(--text-primary); font: 13px/18px ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.cs-opt-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 16px 16px; }
.cs-opt-foot > .cs-sub { margin-right: auto; }
.nook-sync-panel.cs-leave { transition: opacity 120ms ease-in, transform 120ms ease-in; }
.nook-sync-panel.cs-leave-end { opacity: 0; transform: translateY(-4px); }
.cs-grab, .nook-sync-scrim, .nook-sync-edge { display: none; }
.nook-sync-anchor { display: contents; }
@media (max-width: 640px) {
  /* Changing root/body overflow makes Safari unstick the archive header.
     Block background gestures in nookJobsSheet while keeping its scroll container. */
  html:is(.nook-jobs-open, .nook-jobs-shading) { overscroll-behavior-y: none; }
  html.nook-jobs-shading, html.nook-jobs-shading body { transition: none; }
  .nook-sync-scrim { display: block; position: fixed; inset: 0; z-index: 69; background: rgba(91, 112, 131, .4); opacity: 0; touch-action: none; }
  /* Safari needs a real element outside the fading scrim, with a box taller than 10px.
     Paint only its 1px content box so the tint surface cannot cover header text. */
  .nook-sync-edge { display: block; position: fixed; top: 0; left: 0; right: 0; z-index: 71; height: 16px; box-sizing: border-box; padding-bottom: 15px; background-clip: content-box; background-color: var(--bg-primary); pointer-events: none; }
  /* Paint beneath Safari's controls as part of the moving sheet, without fixed-edge tint sampling.
     Matching bottom padding keeps the last controls above the browser toolbar. */
  .nook-sync-anchor { display: none; position: absolute; top: var(--nook-jobs-page-top, 0px); left: 0; right: 0; height: calc(100dvh + var(--nook-jobs-bottom-bleed, 0px)); overflow: hidden; z-index: 70; pointer-events: none; }
  html:is(.nook-jobs-open, .nook-jobs-shading) .nook-sync-anchor { display: block; }
  .nook-sync-panel { position: absolute; top: auto; right: 0; bottom: 0; left: 0; width: 100%; max-height: calc(86dvh + var(--nook-jobs-bottom-bleed, 0px)); padding-bottom: calc(env(safe-area-inset-bottom) + var(--nook-jobs-bottom-bleed, 0px)); border-radius: var(--radius-xl) var(--radius-xl) 0 0; animation: cs-sheet-up 320ms cubic-bezier(.2, .9, .3, 1); overscroll-behavior: contain; pointer-events: auto; }
  .nook-sync-panel.cs-leave { transition: transform 220ms ease-in; }
  .nook-sync-panel.cs-leave-end { opacity: 1; transform: translateY(100%); }
  .nook-sync-panel { transform: translateY(var(--cs-sheet-y, 0px)); }
  .nook-sync-panel.cs-dragging { transition: none; user-select: none; }
  .nook-sync-panel.cs-settling { transition: transform 220ms cubic-bezier(.2, .9, .3, 1); }
  .cs-grab { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: center; min-height: 36px; background: var(--dialog-bg); cursor: grab; touch-action: none; }
  .cs-grab::before { content: ''; width: 36px; height: 4px; border-radius: var(--radius-full); background: var(--input-border); }
  .cs-view.is-push { animation: cs-push 280ms cubic-bezier(.2, .9, .3, 1); }
  .cs-view.is-pop { animation: cs-pop 280ms cubic-bezier(.2, .9, .3, 1); }
}
@keyframes cs-sheet-up { from { transform: translateY(100%); } }
@keyframes cs-push { from { transform: translateX(40%); opacity: 0; } }
@keyframes cs-pop { from { transform: translateX(-30%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nook-sync-panel, .cs-view { animation: none !important; } .nook-sync-panel.cs-leave, .nook-sync-panel.cs-settling, .cs-more-n svg { transition: none; } }
@media (prefers-reduced-motion: reduce) { .nook-sync-panel { animation: none; } }

@media (prefers-reduced-motion: reduce) { .nook-activity-spinner { animation: none; border-color: var(--accent-color); opacity: .6; } }
/* Like the search bar, the tabs get out of the way while reading: they tuck under the title row on scroll down and return on scroll up. */
.nook-header.tabs-hidden .nook-tabs-frame { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.nook-header.tabs-hidden .nook-title-row, .nook-header:has(> .nook-tabs-frame[style*="display: none"]) .nook-title-row { box-shadow: 0 1px 0 var(--border-color); }
@media (prefers-reduced-motion: reduce) { .nook-header::before, .nook-header *, .nook-header *::before, .nook-header *::after, .nook-sort-menu { transition: none !important; } }
