Asterism branch detached-5c15e6c5 commits 7 files 42 touched lines +2291 / -1031

Pre-push review: wide layouts rethink

Wide Library destinations, responsive Today/work layouts and note inspection. Reviewed from merge base 8be2b493; all confirmed findings were fixed and committed.

At a glance

  • Library selections and nested history survive hidden-tab layout crossings.
  • Today note inspection, ordinary work opening, focus cleanup and missing-note pruning have distinct behavior.
  • Wide work pages retain compact metadata and Reading actions, and notes remain lazy.
  • Async tests now synchronize on actual work and isolate lifecycle notifications.

Verdict

Ready to push

All 13 confirmed review findings are fixed. The final Xcode MCP gate passed 2,112/2,112 units; two affected iPad UI paths and the iOS/Mac builds passed. Coverage, physical-keyboard interaction and a new M4 performance band were not measured.

Review findings

13 raised · 13 fixed · 0 skipped

Jump to findings →

Tests

Pass rate: 100% (2114 of 2114)

New tests: 24

Diff coverage: n/a

Jump to tests →

Commits

Three-level explanation

What Changed

On an iPad or Mac, the sidebar now opens Library groups directly: Catching up, Reading, To read, Series and the More destinations. Today uses the available pane instead of occupying a narrow list column.

Opening a work replaces Today with its work page. Opening a note keeps Today visible and opens a note inspector, with Edit and Open work actions. Back returns to the selected day and its scroll position. Work pages use two columns when enough space is available.

Why It Matters

The extra space holds reading information rather than an empty detail placeholder. A note can be inspected without leaving the day, while longer work pages still give their notes a readable width. Narrow windows keep the phone layout, and a collapsed iPad sidebar offers Today, Library and Stats tabs.

Key Concepts

  • A **route stack** remembers the pages opened inside Today or Library, so Back returns to their source.
  • The **inspector** is a side panel or sheet for the selected note, rather than a separate chapter page.
  • A **lazy timeline** creates offscreen note views when they are needed, keeping long histories from becoming one large eagerly built row.

Changes Overview

AppNavigation owns the sidebar selection, both typed route paths, the selected day, Today scroll position and transient inspector/focus state. selectedTab derives from the sidebar item so compact tabs and wide navigation share one selection.

WideRootView arranges full-width Today and Stats panes and the Library list/detail pane. AppScreens constructs the same screens for both trees. TodayView changes its arrangement at 600 and 900 points; WorkDetailView changes to two columns at 860 points.

Implementation Approach

  • Library paths normalize when the layout changes, including while another tab is active. A chosen destination is distinguished from the untouched compact hub, so first opening collapsed Library still shows its tiles.
  • Ordinary Today work opens clear the old inspector and note focus. Inspector Open work establishes a fresh focus after routing, and returning to the root clears it.
  • Work layouts share their status/count metadata, site links, verdict and Latest released control. Reading retains the same Set latest flow as the compact page.
  • The inspector uses the same duplicate-resolution eligibility as Today rows. Previous-note previews require a real shared work identity, so unrelated unattached notes are not grouped together.
  • Sidebar counts read directory options instead of counted member lists. Inspector arrows reuse the published civil-day group rather than flattening and sorting the full history repeatedly.
  • Command equality includes day-action availability so inspector-to-editor navigation updates the keyboard shortcuts even when the exported entry stays the same.

Trade-offs

The wide timelines use a single scroll view with lazy stacks; the single-column work page keeps List recycling. HStack supplies the handover's column arrangement without eagerly measuring a whole note grid. The source, type and status content remain shared rather than becoming separate platform screens.

At accessibility text sizes, the collapsed iPad uses the tab-bar-only style because the native sidebar-adaptable style hid the app-owned toggle. Normal text sizes keep the requested adaptable tabs. These exceptions and the Today root identity workaround are recorded in Q2, Q3 and Q6.

Technical Deep Dive

Library normalization consumes only the root destination route, preserving nested work, series and creator history. It updates the remembered destination without changing a hidden tab's active sidebar selection. Both crossing observers use the effective tree and sidebar visibility, so a compact Split View cannot be treated as a wide list/detail pane.

Sidebar selection and both Codable route arrays are mirrored through ContentView's restoration storage. Legacy works maps to Reading. Restored identifiers remain until an imported library can resolve them; an open inspector is never restored.

SwiftUI retained a pushed Today controller after inspector dismissal even when its bound path became empty. Root and pushed stack identities therefore differ, while day and scroll state live above that identity boundary. Note IDs remain lazy scroll targets, and each chapter produces one stable row containing its focused actions.

The preview scheduler registers its task synchronously before returning to callers. Tests join the latest preview or suggestion task rather than sleeping. Lifecycle tests use an isolated notification center, and cancellation/drain tests explicitly hold operations in flight. This removes cross-test refreshes and timing races without relaxing assertions.

Architecture Impact

Compile-time platform conditionals stay outside Layout. The wide tree still owns one pane sky, column containers clear their backgrounds, and the app owns the sidebar toggle. Set latest and the other app-level sheets retain their existing ContentView owner. There is no schema, archive or public repository API change.

Potential Issues

Mac runtime appearance and physical-keyboard interaction remain manual checks; a compile does not prove those behaviors. Exact dark-mode mockup parity and M4-scale layout performance have not been measured in this review. The lazy structure avoids the identified eager construction, but no new performance band is claimed.

Important changes — detailed

Navigation preserves hidden Library history

Asterism/Asterism/Layout/AppNavigation.swift

Why it matters. A rotation or width crossing must not discard another tab's selected group or nested work history.

What to look at. reconcileLibraryLayout(isWide:), selectSidebarItem(_:)

Takeaway. Normalize retained navigation independently of which tab is visible, while distinguishing a default hub from a chosen destination.
Rationale. Handover §9 and decision Q7 require destination continuity without moving the active tab.

Today separates work pushes from note inspection

Asterism/Asterism/Layout/WideRootView.swift

Why it matters. Back should return to the selected day, and an ordinary work open must not inherit a previous note selection.

What to look at. todayPane, todayInspector, stepInspector(_:)

Takeaway. Keep transient selection scoped to its route, and use already stamped day groups rather than re-bucketing history.
Rationale. The chosen 6e + 6f scope and measured SwiftUI controller retention are recorded in Q1 and Q3.

Wide work pages share metadata and lazy notes

Asterism/Asterism/Views/WorkDetailView.swift

Why it matters. Widening the same work must retain its status, verdict, links and Reading Set latest action without eagerly building its whole history.

What to look at. wideIdentity(_:), wideMetadata(_:), latestReleasedControl(_:), verdictContent(_:), workList(_:)

Takeaway. Extract semantic view pieces when introducing a layout variant; preserve one stable child per lazy row.
Rationale. Handover §§4–6 reuse the existing work page; Q6 retains one scroll view with deferred offscreen note construction.

Command comparison includes day-action eligibility

Asterism/Asterism/Layout/NavigationActions.swift

Why it matters. Inspector-to-editor navigation can retain the same entry export subject while changing which shortcuts apply.

What to look at. NavigationActions.==

Takeaway. An Equatable command publication must include every eligibility input, not just the selected record.
Rationale. The existing focusedSceneValue comparison suppresses equal publications, so action availability is part of its value semantics.

Async verification joins real operations

Asterism/Asterism/ViewModels/ComposedTeachingViewModel.swift

Why it matters. Fixed sleeps and fire-and-forget task registration caused full-suite races that isolated samples did not expose.

What to look at. generatePreviewIfValid(), waitForPreview(), waitForSuggestion()

Takeaway. Register async work synchronously and await its actual publication; use cancellation/drain gates to establish operation ordering.
Rationale. Decision Q4 records the observed full-run failures and the synchronization fix; lifecycle tests also isolate their notification center.

Sidebar totals avoid counted work-directory scans

Asterism/Asterism/ViewModels/AppLibraryModel.swift

Why it matters. Loading per-series and per-creator work counts on each publication did work the sidebar immediately discarded.

What to look at. sidebarDirectoryOptions()

Takeaway. Choose an existing lightweight directory API when only names and total rows are needed.
Rationale. Decision Q5 reuses seriesOptions and creatorOptions while retaining counted reads on their actual directory screens.

Key decisions

Q1: Implement the handover's 6e + 6f combination

Works replace the Today pane; notes open in an inspector with an explicit Open work action. This is the handover's default scope.

Q2: Use tab-bar-only adaptation at accessibility text sizes

The native sidebar-adaptable style hid the app-owned sidebar toggle at those sizes. Normal iPad widths keep sidebar-adaptable tabs; both fixtures passed.

Q3: Give the Today root and pushed stack distinct identities

UI verification showed that clearing the path after inspector dismissal retained the pushed controller. Rebuilding the root restores the day and scroll position kept in AppNavigation.

Q4: Await actual async operations and isolate lifecycle notifications in tests

Fixed sleeps raced preview/cancellation publication, and global locale notifications refreshed other parallel test models. The full unit gate passed after synchronization and isolation without weakening assertions.

Q5: Read sidebar directories through options APIs

The sidebar needs names and total counts, not per-series or per-creator work counts. Existing options APIs avoid whole-work counting reads.

Q6: Arrange wide columns with HStack and lazy note timelines

The eager grid and a whole chapter timeline inside one List row constructed all notes. Lazy timelines retain the handover's widths, gap and single scroll view while deferring offscreen rows. Single-column work pages keep List recycling.

Q7: Distinguish chosen Library destinations from the untouched compact hub

Hidden Library paths must normalize at layout crossings without changing the active tab or turning the first collapsed Library visit into a Reading-group push.

Review findings

SeverityAreaFindingResolution
majorWorkDetailView wideMetadata / workList columnsAt >=860 pt, Reading work pages no longer show any Latest released / Set latest action. The columns branch replaces readingSections (and its viewHeaderSection) with wideIdentity/wideMetadata; progressCard renders only for .catchingUp. A reader opening an ordinary Reading work from Today therefore loses the existing latest-chapter control as soon as the page is wide enough.Shared Latest released control now appears in both layouts; the Reading-page UI regression passed.
majorWorkDetailView wide identity and metadata copyThe independently rebuilt wide header drops existing semantic content: effective Work status and announced hiatus return date, stored Finished/Abandoned verdict, and the work-site links. Only the Reading status pill remains. Opening the same work at >=860 pt makes that state/context invisible and removes the direct site action, despite no requested removal of these work-page behaviors.Wide layouts reuse metaLine, site links and the extracted verdict content.
majorAppNavigation.reconcileLibraryLayoutLibrary normalization is skipped while another tab is selected and is never performed on tab return. Open a compact Catching up group/work, switch Today, cross to expanded wide layout, then return via selectedTab: the sidebar/list still use the previous destination while a compact destination remains in worksPath. Reverse crossings omit the group under the restored work. ContentView also computes crossing mode from !compact alone, ignoring collapsed sidebar state.Hidden Library paths normalize without selecting Library; chosen destinations are distinguished from the untouched hub and both crossing observers use effective layout.
majorToday inspector versus full-page navigationCover/catching-up opens call showWork(on: .today), whose enter(.today) only clears selectedTodayEntryID. With an inspector open, it remains attached to the pushed work for another note; back() consumes the inspector instead of popping the work.Entering Today work routes closes the inspector before pushing.
moderateFocused note lifetimetodayFocusedEntryID is set only by Inspector Open work and is never cleared on Back, sidebar Today, day change or ordinary work open. Reopening the same work from a cover later jumps to and highlights the stale note. The root-to-push focus is also reused for unrelated nested works.Ordinary work opens and root returns clear focus; Inspector Open work establishes a fresh scoped focus after routing.
majorNavigationActions equalityEquality ignores day-command eligibility, now derived outside the initializer from isTodayRoot. Inspector entry X and its Edit destination have identical tab/isWide/worksLoaded/subject(.entry(X))/canGoBack, but Inspector root enables day commands and Edit disables them. focusedSceneValue receives equal values and can retain the old enabled shortcuts over the entry editor.Equality compares day-action availability, with an inspector-to-editor eligibility regression.
majorWide chapter-note layout loses row recyclingThe wide branch places the entire chapterSection ForEach inside an eager VStack inside a single List row. List can recycle only that outer row; every chapter note in the work is instantiated and laid out together, unlike the original per-note List rows. This is a regression at the explicitly supported M4 scale; work-detail-reading-redesign decision Q2 retained List specifically for recycling. The new Today wideDay likewise puts all noted rows inside eager VStacks/Grid (TodayView.swift:320,332,340), replacing its previous List.Wide note columns use lazy timelines in a single scroll view; each chapter yields one stable child. Single-column work pages retain List. No new scale-performance band is claimed.
minorSidebar uses counted directory reads for scalar countsEvery snapshot generation loads SeriesListModel and CreatorListModel to display only rows.count and series labels. seriesList() fetches and groups every Work; creators() fetches every Work and WorkCredit. This adds two whole-library grouping reads on Today launch/each write and duplicates the visible directory screens reads. Both repository APIs already expose cheaper seriesOptions()/creatorOptions() that deliberately omit discarded per-directory work counts.Sidebar counts use existing directory options rather than counted screen models.
minorInspector arrow handling repeats full-history flatten/filter/sortA single successful arrow press evaluates inspectorRows four times: firstIndex, isEmpty, count, then subscript. Each access flattens every day row, recomputes CivilDay for every historical entry and sorts the selected-day rows. The presentation already contains civilDay-stamped groups.Inspector navigation reads the selected civil-day group once per arrow press.
majorAsterism/Asterism/Layout/WideRootView.swiftInspector unconditionally supplies resolutionKey: nil to TodayEntryPills. That component only renders Resolve when a key exists, so duplicate entries and entries blocked by a duplicate work have no Resolve action in the inspector.Inspector and Today rows share duplicate-resolution key eligibility.
minorAsterism/Asterism/Layout/WideRootView.swiftWhen the selected row has no workID, optional equality groups every unrelated unattached entry together, so Previous note can show a capture from another work/site.Previous-note lookup requires a nonnil work identity.
minorspecs/wide-layouts-rethink/verification-run.mdNew feature has no decision log. Verification prose explains the accessibility-size tabBarOnly fallback but does not establish it as an explicit exception to handover §7 sidebarAdaptable; the Today stack identity workaround and 6e+6f selection likewise exist only in verification prose.Added the decision log with explicit handover and accessibility/identity rationale.
majorAppNavigation.pruneTodaySelectionA selected note removed from the publication left an empty inspector open.Pruning closes the missing-note inspector; an added regression and the final 2112-test gate passed.

Tests

Source: local run at 2026-10-01T21:33:09+10:00 · snapshot 790100559e0aa30afd727da2f2ce6b10ad852e43 (dirty working tree)

Baseline: none

Execution: passed · JUnit: 2 files · Coverage: none · Baseline: absent

Coverage scope: as the project configures it

Totals: 2114 passed · 0 failed · 0 skipped · 0 errored · 0 flaky

New and removed tests

Derived by declaration name, from the diff (no baseline run).

Blast radius

Files that import a changed file on the left, changed files in the centre, files a changed file imports on the right. Snapshot working-tree against base 8be2b493f3665d441113f4ed9b2069ccbcf34b13.

Dependents none found Changed Dependencies none found Asterism/Asterism Asterism/Asterism/Layout Asterism/Asterism/Support Asterism/Asterism/ViewModels Asterism/Asterism/Views Asterism/AsterismTests Asterism/AsterismTests/Helpers Asterism/AsterismUITests docs Asterism/Asterism/ContentView.swift…sm/Asterism/ContentView.swift Asterism/Asterism/Localizable.xcstrings…sterism/Localizable.xcstrings Asterism/Asterism/Layout/AppNavigation.swift…sm/Layout/AppNavigation.swift Asterism/Asterism/Layout/AppScreens.swift…erism/Layout/AppScreens.swift Asterism/Asterism/Layout/AsterismCommands.swift…Layout/AsterismCommands.swift Asterism/Asterism/Layout/NavigationActions.swift…ayout/NavigationActions.swift Asterism/Asterism/Layout/SidebarView.swift…rism/Layout/SidebarView.swift Asterism/Asterism/Layout/WideLayoutPolicy.swift…Layout/WideLayoutPolicy.swift Asterism/Asterism/Layout/WideRootView.swift…ism/Layout/WideRootView.swift Asterism/Asterism/Support/AppLifecycle.swift…sm/Support/AppLifecycle.swift Asterism/Asterism/Support/PlatformModifiers.swift…pport/PlatformModifiers.swift Asterism/Asterism/Support/UITestMarker.swift…sm/Support/UITestMarker.swift Asterism/Asterism/ViewModels/AppLibraryModel.swift…wModels/AppLibraryModel.swift Asterism/Asterism/ViewModels/ComposedTeachingViewModel.swift…mposedTeachingViewModel.swift Asterism/Asterism/ViewModels/WorksListOptions.swift…Models/WorksListOptions.swift Asterism/Asterism/Views/TodaySections.swift…ism/Views/TodaySections.swift Asterism/Asterism/Views/TodayText.swift…sterism/Views/TodayText.swift Asterism/Asterism/Views/TodayView.swift…sterism/Views/TodayView.swift Asterism/Asterism/Views/WorkDetailView.swift…sm/Views/WorkDetailView.swift Asterism/Asterism/Views/WorksGroupView.swift…sm/Views/WorksGroupView.swift Asterism/Asterism/Views/WorksView.swift…sterism/Views/WorksView.swift Asterism/AsterismTests/AppLibraryModelEmptyLibraryTests.swift…yModelEmptyLibraryTests.swift Asterism/AsterismTests/AppLifecycleTests.swift…Tests/AppLifecycleTests.swift Asterism/AsterismTests/ComposedTeachingPreviewTests.swift…sedTeachingPreviewTests.swift Asterism/AsterismTests/ComposedTeachingViewModelTests.swift…dTeachingViewModelTests.swift Asterism/AsterismTests/NavigationActionsTests.swift…/NavigationActionsTests.swift Asterism/AsterismTests/OptionalSequenceTeachingMessagesTests.swift…ceTeachingMessagesTests.swift Asterism/AsterismTests/PrePushNavigationRegressionTests.swift…vigationRegressionTests.swift Asterism/AsterismTests/RuleSuggestionCoordinatorTests.swift…gestionCoordinatorTests.swift Asterism/AsterismTests/WideLayoutsRethinkTests.swift…WideLayoutsRethinkTests.swift Asterism/AsterismTests/Helpers/MockLibraryProvider.swift…ers/MockLibraryProvider.swift Asterism/AsterismUITests/AccessibilityJourneyUITests.swift…ssibilityJourneyUITests.swift Asterism/AsterismUITests/UIJourneySupport.swift…ITests/UIJourneySupport.swift Asterism/AsterismUITests/WideLayoutUITests.swift…Tests/WideLayoutUITests.swift docs/Asterism Rethink.dc.htmldocs/Asterism Rethink.dc.html
addedmodifieddeletedrenamedunchangedcollapsed package group or +N more⚑N test files with an edge to the node

Per-file diffs

42 files: 34 code · 8 docs. Click to expand.

Code (34)

Asterism/Asterism/ContentView.swift Modified +44 / -9
diff --git a/Asterism/Asterism/ContentView.swift b/Asterism/Asterism/ContentView.swiftindex 723ba409..557132eb 100644--- a/Asterism/Asterism/ContentView.swift+++ b/Asterism/Asterism/ContentView.swift@@ -88,6 +88,9 @@ struct ContentView: View {     /// but the Mac: Req 7.2 leaves the iPad's launch behaviour alone, so the     /// mirror and the restore are both gated on `RuntimePlatform.isMac` rather     /// than forked with a conditional that would have to wrap four modifiers.+    @AppStorage(RestoreStorageKey.selectedSidebarItem) private var storedSidebarItem = ""+    @AppStorage(RestoreStorageKey.todayPath) private var storedTodayPath = ""+    @AppStorage(RestoreStorageKey.libraryPath) private var storedLibraryPath = ""     @AppStorage(RestoreStorageKey.worksDestination) private var storedWorksDestination = ""     @State private var restoredWorksDestination = false     @AppStorage(RestoreStorageKey.selectedTab) private var storedTab = AppTab.today.rawValue@@ -149,6 +152,8 @@ struct ContentView: View {             // themselves, so a preference added later is reset by declaring it             // there rather than by remembering this line (Q51).             for key in WorksListStorageKey.seededLaunchResets {+                if ProcessInfo.processInfo.environment["ASTERISM_UI_TEST_RESTORE_NAVIGATION"] == "1",+                   [RestoreStorageKey.selectedSidebarItem, RestoreStorageKey.todayPath, RestoreStorageKey.libraryPath].contains(key) { continue }                 UserDefaults.standard.removeObject(forKey: key)             }             // `launch-to-today` Q17: nil for every scenario but the one that@@ -375,7 +380,7 @@ struct ContentView: View {         // never flashes a placeholder it is about to replace.         .onAppear {             restoreSelection()-            if !restoredWorksDestination {+            if !restoredWorksDestination && storedLibraryPath.isEmpty {                 restoredWorksDestination = true                 if let destination = WorksDestination(storedValue: storedWorksDestination) {                     navigation.restoreWorksDestination(destination)@@ -385,6 +390,7 @@ struct ContentView: View {             // wins over the place the window was left on. Only takes anything             // when the library is already ready — a window reopened on a resident             // app; otherwise the `.ready` edge below takes it.+            navigation.reconcileLibraryLayout(isWide: !usesCompactTree && (RuntimePlatform.isMac || navigation.sidebarVisibility != .detailOnly))             takeIntentRoute()         }         .onChange(of: navigation.worksPath) { _, path in@@ -415,6 +421,22 @@ struct ContentView: View {         // The mirror. One `onChange` each rather than a single observer of the         // navigation object: these are the three values Q23 stores, and a         // fourth arriving in `AppNavigation` should not silently join them.+        .onChange(of: navigation.selectedSidebarItem) { _, item in+            storedSidebarItem = item.storageValue+            if case .library(let destination) = item { storedWorksDestination = destination.storageValue }+        }+        .onChange(of: navigation.todayPath) { _, path in+            storedTodayPath = AppNavigation.encodePath(path)+        }+        .onChange(of: navigation.worksPath) { _, path in+            storedLibraryPath = AppNavigation.encodePath(path)+        }+        .onChange(of: usesCompactTree) { _, _ in+            navigation.reconcileLibraryLayout(isWide: !usesCompactTree && (RuntimePlatform.isMac || navigation.sidebarVisibility != .detailOnly))+        }+        .onChange(of: navigation.sidebarVisibility) { _, visibility in+            if !RuntimePlatform.isMac { navigation.reconcileLibraryLayout(isWide: !usesCompactTree && visibility != .detailOnly) }+        }         .onChange(of: navigation.selectedTab) { _, tab in             guard RuntimePlatform.isMac else { return }             storedTab = tab.rawValue@@ -542,16 +564,16 @@ struct ContentView: View {      /// Puts the reader back where they were (Req 7.2, macOS).     ///-    /// The iPad keeps today's launch behaviour, which is Recent with nothing-    /// selected — so this does nothing there, and nothing has been written for-    /// it to read either.+    /// Sidebar selection and both typed paths restore on iPad and Mac. The+    /// legacy tab/leaf keys remain readable for existing installs.     private func restoreSelection() {-        guard RuntimePlatform.isMac, !hasRestoredSelection else { return }+        guard !hasRestoredSelection else { return }         hasRestoredSelection = true         navigation.restoreSelection(             tab: AppTab(rawValue: storedTab),             todayEntryID: UUID(uuidString: storedTodayEntryID),             workID: UUID(uuidString: storedWorkID))+        navigation.restoreWideState(sidebar: storedSidebarItem, today: storedTodayPath, library: storedLibraryPath, lastLibrary: WorksDestination(storedValue: storedWorksDestination))     }      /// Applies an open intent's waiting route, once the library is ready to@@ -576,7 +598,7 @@ struct ContentView: View {     /// resolves nothing, and dropping the reader's place on that would discard     /// it every single time.     private func pruneRestoredSelection() {-        guard RuntimePlatform.isMac, !hasPrunedRestoredSelection else { return }+        guard !hasPrunedRestoredSelection else { return }         let hasEverImported = !model.recentSyncPresentation.isAwaitingFirstSync         navigation.pruneRestoredSelection(             hasEverImported: hasEverImported,@@ -858,7 +880,8 @@ struct ContentView: View {             model: model,             navigation: navigation,             // Req 4.4: `openSettings()` on the Mac, the sheet on the iPad.-            showSettings: showSettings+            showSettings: showSettings,+            showsSettingsRow: !RuntimePlatform.isMac         )     } @@ -870,7 +893,7 @@ struct ContentView: View {     /// facts it needs and the six things it may call.     private var navigationActions: NavigationActions {         let subject = exportSubject-        return NavigationActions(+        var actions = NavigationActions(             tab: navigation.selectedTab,             isWide: !usesCompactTree,             // Q22: ⌘F focuses the Works search field, which does not exist@@ -887,6 +910,18 @@ struct ContentView: View {             // it is the sidebar row's action too.             showSettings: showSettings         )+        actions.selectSidebarItem = { item in+            navigation.selectSidebarItem(item)+            if usesCompactTree { navigation.reconcileLibraryLayout(isWide: false) }+        }+        if navigation.isTodayRoot {+            actions.previousDay = { navigation.stepToday(by: -1, currentDay: model.currentDay, calendar: model.calendar) }+            actions.nextDay = { navigation.stepToday(by: 1, currentDay: model.currentDay, calendar: model.calendar) }+            actions.goToToday = { navigation.selectToday(model.currentDay, currentDay: model.currentDay) }+        }+        actions.canGoBack = navigation.canGoBack+        if actions.canGoBack { actions.back = navigation.back }+        return actions     }      /// What ⇧⌘E would export: whatever the detail column (or, in the compact@@ -900,7 +935,7 @@ struct ContentView: View {     private var exportSubject: MarkdownExportModel.Subject? {         NavigationActions.exportSubject(             tab: navigation.selectedTab,-            todayEntryID: navigation.selectedTodayEntryID,+            todayEntryID: navigation.todayInspectorEntryID ?? navigation.selectedTodayEntryID,             todayWorkID: navigation.workID(on: .today),             todayChapterEntryID: navigation.chapterEntryID(on: .today),             workID: navigation.selectedWorkID,
Asterism/Asterism/Layout/AppNavigation.swift Modified +146 / -7
diff --git a/Asterism/Asterism/Layout/AppNavigation.swift b/Asterism/Asterism/Layout/AppNavigation.swiftindex 3572d3a2..d69ad676 100644--- a/Asterism/Asterism/Layout/AppNavigation.swift+++ b/Asterism/Asterism/Layout/AppNavigation.swift@@ -43,6 +43,35 @@ nonisolated enum AppTab: String, CaseIterable, Hashable, Sendable {     var sidebarIdentifier: String { self == .works ? "sidebar-library" : "sidebar-\(rawValue)" } } +nonisolated enum SidebarItem: Hashable, Sendable {+    case today+    case library(WorksDestination)+    case stats++    var tab: AppTab {+        switch self { case .today: .today; case .library: .works; case .stats: .stats }+    }+    var title: String {+        switch self { case .today: "Today"; case .library(let destination): destination.title; case .stats: "Stats" }+    }+    var storageValue: String {+        switch self { case .today: "today"; case .stats: "stats"; case .library(let destination): "library." + destination.storageValue }+    }+    init?(storedValue: String) {+        switch storedValue {+        case "today", "recent": self = .today+        case "stats": self = .stats+        case "works": self = .library(.group(.reading))+        default:+            guard storedValue.hasPrefix("library."),+                  let destination = WorksDestination(storedValue: String(storedValue.dropFirst(8))) else { return nil }+            self = .library(destination)+        }+    }+    static let libraryItems: [WorksDestination] = [.group(.catchingUp), .group(.reading), .group(.toRead), .seriesIndex]+    static let moreItems: [WorksDestination] = [.creators, .group(.onHiatus), .group(.finished), .group(.abandoned), .allWorks]+}+ // MARK: - The two route stacks  /// Which typed route stack an operation acts on (`update-schedule` Q38).@@ -102,8 +131,76 @@ nonisolated enum TodaySelection: Equatable, Sendable { final class AppNavigation {     // MARK: - Tab and selection -    var selectedTab: AppTab = .today {-        didSet { if selectedTab != oldValue { noteReaderNavigation() } }+    private var lastLibraryDestination: WorksDestination = .group(.reading)+    /// Opening the compact hub does not choose its default wide destination.+    private var hasLibraryDestination = false+    var selectedSidebarItem: SidebarItem = .today {+        didSet {+            if case .library(let destination) = selectedSidebarItem { lastLibraryDestination = destination }+            if selectedSidebarItem != oldValue { noteReaderNavigation() }+        }+    }+    var selectedTab: AppTab {+        get { selectedSidebarItem.tab }+        set {+            switch newValue {+            case .today: selectedSidebarItem = .today+            case .stats: selectedSidebarItem = .stats+            case .works:+                if selectedSidebarItem.tab != .works { selectedSidebarItem = .library(lastLibraryDestination) }+            }+        }+    }+    var todayInspectorEntryID: UUID?+    var todayScrollAnchor: CGFloat = 0+    var todayFocusedEntryID: UUID?++    func selectSidebarItem(_ item: SidebarItem) {+        if case .library = item { hasLibraryDestination = true }+        if item == .today { todayPath = []; selectedTodayEntryID = nil; todayInspectorEntryID = nil }+        if case .library = item, item != selectedSidebarItem { worksPath = []; selectedWorksEntryID = nil }+        selectedSidebarItem = item+    }++    /// The hub's route and the sidebar describe the same destination at a crossing.+    func reconcileLibraryLayout(isWide: Bool) {+        if isWide {+            if let destination = worksPath.first?.libraryDestination {+                hasLibraryDestination = true+                lastLibraryDestination = destination+                if selectedTab == .works { selectedSidebarItem = .library(destination) }+                worksPath.removeFirst()+            } else if selectedTab == .works {+                hasLibraryDestination = true+            }+        } else if (hasLibraryDestination || !worksPath.isEmpty),+                  worksPath.first?.libraryDestination == nil {+            worksPath.insert(.destination(lastLibraryDestination), at: 0)+        }+    }++    func stepToday(by days: Int, currentDay: CivilDay, calendar: Calendar) {+        selectToday(selectedDay(currentDay: currentDay).adding(days: days, calendar: calendar), currentDay: currentDay)+    }+    var isTodayRoot: Bool { selectedTab == .today && todayPath.isEmpty && selectedTodayEntryID == nil }+    var canGoBack: Bool {+        switch selectedTab {+        case .today: todayInspectorEntryID != nil || selectedTodayEntryID != nil || !todayPath.isEmpty+        case .works: selectedWorksEntryID != nil || !worksPath.isEmpty+        case .stats: false+        }+    }+    func back() {+        switch selectedTab {+        case .today:+            if todayInspectorEntryID != nil { todayInspectorEntryID = nil }+            else if selectedTodayEntryID != nil { selectedTodayEntryID = nil }+            else { popRoute(on: .today) }+        case .works:+            if selectedWorksEntryID != nil { selectedWorksEntryID = nil }+            else { popRoute(on: .works) }+        case .stats: break+        }     }      var selectedTodayEntryID: UUID? {@@ -122,10 +219,12 @@ final class AppNavigation {     /// The same vocabulary the Works tab's stack speaks — a release row opens a     /// work, that work's related works and series and creators open from it —     /// but a stack of its own, so Back from a pushed work returns to the-    /// selected day. **Never restored** (Q42): a pushed work on Today is a place-    /// the reader passes through, not one they are left on.+    /// selected day. Both typed paths are restored by the wide-layout handover.     var todayPath: [WorksRoute] = [] {-        didSet { if todayPath != oldValue { noteReaderNavigation() } }+        didSet {+            if todayPath.isEmpty { todayFocusedEntryID = nil }+            if todayPath != oldValue { noteReaderNavigation() }+        }     }      /// The entry the Works *list* opened — the unattached-notes group's route.@@ -283,6 +382,7 @@ final class AppNavigation {             selectedWorksEntryID = nil         case .today:             selectedTodayEntryID = nil+            todayInspectorEntryID = nil         }     } @@ -415,7 +515,7 @@ final class AppNavigation {      /// What the sidebar's banner does: Today, filtered to the rows it counted.     func showActionableEntries() {-        selectedTab = .today+        selectSidebarItem(.today)         actionableFilterRequest += 1     } @@ -459,6 +559,7 @@ final class AppNavigation {     /// stack's root, which has nothing to go back to but the list.     func showWork(_ workID: UUID, on stack: RouteStack = .works) {         enter(stack)+        if stack == .today { todayFocusedEntryID = nil }         self[routes: stack] = [.work(workID)]     } @@ -475,6 +576,7 @@ final class AppNavigation {     /// with `.today`, which is what makes Back return to the selected day.     func pushWork(_ workID: UUID, on stack: RouteStack) {         enter(stack)+        if stack == .today { todayFocusedEntryID = nil }         dropTrailingChapter(on: stack)         guard self[routes: stack].last != .work(workID) else { return }         self[routes: stack].append(.work(workID))@@ -726,6 +828,7 @@ final class AppNavigation {     /// current one is what makes Req 3.7's normalisation a no-op for the reader     /// who never left today.     func selectToday(_ day: CivilDay, currentDay: CivilDay) {+        if day != selectedDay(currentDay: currentDay) { todayInspectorEntryID = nil; todayScrollAnchor = 0 }         todaySelection = day == currentDay ? .current : .day(day)     } @@ -765,6 +868,7 @@ final class AppNavigation {     /// is the pane's whole content, exactly as the unattached-note route is on     /// Works.     func showTodayEntry(_ entryID: UUID) {+        todayInspectorEntryID = nil         todayPath = []         selectedTodayEntryID = entryID     }@@ -786,6 +890,9 @@ final class AppNavigation {         // The library moved under the selection, not the reader (`app-intents`         // Q42).         withoutRevision {+            if let entryID = todayInspectorEntryID, !visibleEntryIDs.contains(entryID) {+                todayInspectorEntryID = nil+            }             if let entryID = selectedTodayEntryID, !visibleEntryIDs.contains(entryID) {                 selectedTodayEntryID = nil             }@@ -795,6 +902,26 @@ final class AppNavigation {         }     } +    static func encodePath(_ path: [WorksRoute]) -> String {+        guard let data = try? JSONEncoder().encode(path) else { return "" }+        return String(decoding: data, as: UTF8.self)+    }+    static func decodePath(_ value: String) -> [WorksRoute] {+        (try? JSONDecoder().decode([WorksRoute].self, from: Data(value.utf8))) ?? []+    }+    func restoreWideState(sidebar: String, today: String, library: String, lastLibrary: WorksDestination? = nil) {+        withoutRevision {+            if let lastLibrary { lastLibraryDestination = lastLibrary; hasLibraryDestination = true }+            if let item = SidebarItem(storedValue: sidebar) {+                selectedSidebarItem = item+                if case .library = item { hasLibraryDestination = true }+            }+            if !today.isEmpty { todayPath = Self.decodePath(today) }+            if !library.isEmpty { worksPath = Self.decodePath(library) }+            todayInspectorEntryID = nil+        }+    }+     // MARK: - Relaunch restore (Req 7.2, 4.9)      /// Whether a restored id survives this snapshot.@@ -863,6 +990,14 @@ final class AppNavigation {                 selectedTodayEntryID,                 resolves: selectedTodayEntryID.map(entryResolves) ?? false,                 hasEverImported: hasEverImported)+            if hasEverImported {+                if todayPath.contains(where: { route in+                    switch route { case .work(let id): !workResolves(id); case .chapter(let id): !entryResolves(id); default: false }+                }) { todayPath = [] }+                if worksPath.contains(where: { route in+                    switch route { case .work(let id): !workResolves(id); case .chapter(let id): !entryResolves(id); default: false }+                }) { worksPath = worksPath.filter { $0.libraryDestination != nil } }+            }             guard let restoredWorkID = selectedWorkID else { return }             let kept = Self.restoredID(                 restoredWorkID,@@ -996,7 +1131,7 @@ nonisolated struct IntentRoute: Equatable, Sendable { /// `nonisolated` for `AppTab`'s reason: the app target defaults to main-actor /// isolation and a main-actor `Hashable` conformance is rejected outright — and /// `NavigationStack(path:)` needs `Hashable` from any context.-nonisolated enum WorksRoute: Hashable, Sendable {+nonisolated enum WorksRoute: Hashable, Sendable, Codable {     case work(UUID)     /// An entry opened from a work's chapter list. Only ever after a `.work`.     case chapter(entryID: UUID)@@ -1015,6 +1150,10 @@ nonisolated enum WorksRoute: Hashable, Sendable {     /// "the work this route belongs to": a chapter has one and deliberately     /// answers nil, because the two questions have different answers and only     /// the stack knows the second.+    var libraryDestination: WorksDestination? {+        switch self { case .destination(let destination): destination; case .seriesList: .seriesIndex; case .creatorList: .creators; default: nil }+    }+     var isWorkListDestination: Bool {         if case .destination(let destination) = self { destination.isWorkList } else { false }     }
Asterism/Asterism/Layout/AppScreens.swift Modified +13 / -14
diff --git a/Asterism/Asterism/Layout/AppScreens.swift b/Asterism/Asterism/Layout/AppScreens.swiftindex 0d9970c8..5186c06a 100644--- a/Asterism/Asterism/Layout/AppScreens.swift+++ b/Asterism/Asterism/Layout/AppScreens.swift@@ -37,11 +37,12 @@ struct AppScreens {     /// Recent's sync-banner route (Req 8.2), which is the same Settings surface     /// the toolbar and the sidebar row open.     let showSettings: () -> Void+    var paintsOwnSky: Bool? = nil      /// Req 3.1: the wide tree paints one sky for the whole window, so its     /// screens paint none of their own. The compact tree's screens each paint     /// theirs, exactly as they always did.-    private var showsSky: Bool { !isWide }+    private var showsSky: Bool { paintsOwnSky ?? !isWide }      /// The workload, read at tap time and never hoisted into a capture.     ///@@ -78,8 +79,11 @@ struct AppScreens {             // Req 1.5: the row whose entry is in the detail column beside this             // list wears the selected-row recipe. The compact tree pushes the             // entry instead, so there is no beside and nothing to mark.-            selectedEntryID: isWide ? navigation.selectedTodayEntryID : nil,+            selectedEntryID: isWide ? navigation.todayInspectorEntryID : nil,             showsSky: showsSky,+            isWide: isWide,+            scrollOffset: Binding(get: { navigation.todayScrollAnchor }, set: { navigation.todayScrollAnchor = $0 }),+            onSeeAllCatchingUp: { navigation.selectSidebarItem(.library(.group(.catchingUp))) },             // `today-announcements` Q21: a published snapshot, which is the             // distinction `ArrivingLibraryPresentation` already draws for             // Stats — the model reaches `.ready` even when its first refresh@@ -91,7 +95,7 @@ struct AppScreens {             onOpenAnnouncement: { navigation.presentedAnnouncement = $0 },             // A noted row clears the Today stack under it, so the entry is the             // pane's whole content — the Works list's unattached route's shape.-            onSelect: navigation.showTodayEntry,+            onSelect: { if isWide { navigation.todayInspectorEntryID = $0 } else { navigation.showTodayEntry($0) } },             // Direct teaching sheet from the inline action (Audit §6).             onTeach: { navigation.showingTeachingForEntryID = $0 },             onShowDiagnostics: { navigation.showingDiagnostics = true },@@ -130,12 +134,7 @@ struct AppScreens {             // Req 10.1's prune, gated for `selectedEntryID`'s reason: the             // detail column is the wide tree's, and on the phone a push stays             // until the reader pops it (Q43).-            onPruneSelection: isWide-                ? { visibility in-                    navigation.pruneTodaySelection(-                        visibleEntryIDs: visibility.entries, visibleWorkIDs: visibility.works)-                }-                : nil,+            onPruneSelection: nil,             onShowSettings: onShowSettings         )     }@@ -197,7 +196,7 @@ struct AppScreens {         }     } -    private func worksList() -> WorksView {+    func worksList() -> WorksView {         WorksView(             snapshot: model.worksSnapshot,             duplicateWorkload: model.todayPresentation.duplicateWorkload,@@ -226,18 +225,17 @@ struct AppScreens {             onReturnToHub: { navigation.worksPath.removeAll { $0.isWorkListDestination } },             onSelectDestination: { destination in                 if isWide {-                    navigation.worksPath.removeAll { $0.isWorkListDestination }-                    navigation.worksPath.insert(.destination(destination), at: 0)+                    navigation.selectSidebarItem(.library(destination))                 } else { navigation.worksPath.append(.destination(destination)) }             },             onChangeStatus: { navigation.statusWorkID = $0 },+            onSetLatest: { navigation.presentedSetLatest = SetLatestRoute(workID: $0) },+            onSetReadingStatus: { id, status in try await model.setReadingStatus(id: id, to: status) },             // A list selection replaces the wide detail while retaining its             // library destination for compact navigation and restoration.             onSelectWork: { id in                 if isWide {-                    let destination = navigation.worksPath.first(where: { $0.isWorkListDestination })                     navigation.showWork(id)-                    if let destination { navigation.worksPath.insert(destination, at: 0) }                 } else { navigation.pushWork(id) }             },             onSelectEntry: { id in@@ -284,6 +282,7 @@ struct AppScreens {         if let detailModel = model.workDetailModel(for: workID) {             WorkDetailView(                 model: detailModel,+                focusedEntryID: stack == .today ? navigation.todayFocusedEntryID : nil,                 currentDay: model.currentDay, calendar: model.calendar,                 lastSavedLatestWorkID: navigation.lastSavedLatestWorkID,                 latestSaveGeneration: navigation.latestSaveGeneration,
Asterism/Asterism/Layout/AsterismCommands.swift Modified +18 / -5
diff --git a/Asterism/Asterism/Layout/AsterismCommands.swift b/Asterism/Asterism/Layout/AsterismCommands.swiftindex 4f0b1395..60c85296 100644--- a/Asterism/Asterism/Layout/AsterismCommands.swift+++ b/Asterism/Asterism/Layout/AsterismCommands.swift@@ -52,12 +52,25 @@ struct AsterismCommands: Commands {         // View › the three destinations, under the sidebar item.         CommandGroup(after: .sidebar) {             Divider()-            ForEach(Array(AppTab.allCases.enumerated()), id: \.element) { index, tab in-                Button(tab.title) { actions?.selectTab(tab) }-                    .keyboardShortcut(-                        KeyEquivalent(Character("\(index + 1)")), modifiers: .command)-                    .disabled(actions == nil)+            let destinations: [SidebarItem] = [.today, .library(.group(.catchingUp)), .library(.group(.reading)), .library(.group(.toRead)), .library(.seriesIndex), .stats]+            ForEach(Array(destinations.enumerated()), id: \.element) { index, item in+                Button(item.title) { actions?.selectSidebarItem?(item) }+                    .keyboardShortcut(KeyEquivalent(Character("\(index + 1)")), modifiers: .command)+                    .disabled(actions?.selectSidebarItem == nil)             }+            Menu("More") {+                ForEach(SidebarItem.moreItems, id: \.self) { destination in+                    Button(destination.title) { actions?.selectSidebarItem?(.library(destination)) }+                        .disabled(actions?.selectSidebarItem == nil)+                }+            }+        }++        CommandMenu("Go") {+            Button("Back") { actions?.back?() }.keyboardShortcut("[", modifiers: .command).disabled(actions?.back == nil)+            Button("Previous Day") { actions?.previousDay?() }.keyboardShortcut(.leftArrow, modifiers: []).disabled(actions?.previousDay == nil)+            Button("Next Day") { actions?.nextDay?() }.keyboardShortcut(.rightArrow, modifiers: []).disabled(actions?.nextDay == nil)+            Button("Today") { actions?.goToToday?() }.keyboardShortcut("t", modifiers: .command).disabled(actions?.goToToday == nil)         }          // Req 4.10: the menu bar carries only items the app honours. There is
Asterism/Asterism/Layout/NavigationActions.swift Modified +11 / -2
diff --git a/Asterism/Asterism/Layout/NavigationActions.swift b/Asterism/Asterism/Layout/NavigationActions.swiftindex 91f371f5..11d6de24 100644--- a/Asterism/Asterism/Layout/NavigationActions.swift+++ b/Asterism/Asterism/Layout/NavigationActions.swift@@ -61,6 +61,12 @@ struct NavigationActions: Equatable {     /// the sidebar's Settings row takes, and it is published either way.     /// Non-optional for `selectTab`'s reason.     private(set) var showSettings: () -> Void+    var selectSidebarItem: ((SidebarItem) -> Void)?+    var previousDay: (() -> Void)?+    var nextDay: (() -> Void)?+    var goToToday: (() -> Void)?+    var back: (() -> Void)?+    var canGoBack = false      /// Every closure is required. A default no-op would turn a forgotten     /// argument into an enabled command that does nothing, which is exactly the@@ -82,7 +88,7 @@ struct NavigationActions: Equatable {         self.worksLoaded = worksLoaded         self.subject = subject         let hasList = Self.hasList(tab)-        self.newWork = tab == .works ? newWork : nil+        self.newWork = tab == .stats ? nil : newWork         self.find = tab == .works && worksLoaded ? find : nil         // Req 5.2 names Export apart from Find deliberately: the two shared         // `hasList` until Today lost its search field, and leaving them joined@@ -103,7 +109,10 @@ struct NavigationActions: Equatable {     /// actually moves.     static func == (lhs: NavigationActions, rhs: NavigationActions) -> Bool {         lhs.tab == rhs.tab && lhs.isWide == rhs.isWide && lhs.worksLoaded == rhs.worksLoaded-            && lhs.subject == rhs.subject+            && lhs.subject == rhs.subject && lhs.canGoBack == rhs.canGoBack+            && (lhs.previousDay != nil) == (rhs.previousDay != nil)+            && (lhs.nextDay != nil) == (rhs.nextDay != nil)+            && (lhs.goToToday != nil) == (rhs.goToToday != nil)     }      /// Whether this tab draws a list ⇧⌘E can act on. Stats is one region
Asterism/Asterism/Layout/SidebarView.swift Modified +50 / -17
diff --git a/Asterism/Asterism/Layout/SidebarView.swift b/Asterism/Asterism/Layout/SidebarView.swiftindex bed9e167..66c42ffd 100644--- a/Asterism/Asterism/Layout/SidebarView.swift+++ b/Asterism/Asterism/Layout/SidebarView.swift@@ -1,3 +1,4 @@+import AsterismCore import ConstellationKit import SwiftUI @@ -34,12 +35,17 @@ struct SidebarView: View {     /// Where the banner goes. Recent, which is where the entries needing     /// teaching are listed.     let showActionable: () -> Void+    var showsSettingsRow = true+    var counts: [WorksDestination: Int] = [:]      var body: some View {         VStack(alignment: .leading, spacing: 2) {-            ForEach(AppTab.allCases, id: \.self) { tab in-                destinationRow(tab)+            if !RuntimePlatform.isMac {+                Text("Asterism").font(AsterismTypography.serif(.title2)).padding(.horizontal, 16).padding(.bottom, 10)             }+            destinationRow(.today)+            section("Library", items: SidebarItem.libraryItems)+            section("More", items: SidebarItem.moreItems)              Spacer(minLength: 0) @@ -47,7 +53,8 @@ struct SidebarView: View {                 banner(actionableCount)             } -            settingsRow+            destinationRow(.stats)+            if showsSettingsRow { settingsRow }         }         .padding(.vertical, 16)         .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .topLeading)@@ -85,18 +92,44 @@ struct SidebarView: View {      // MARK: - Rows -    private func destinationRow(_ tab: AppTab) -> some View {-        let isActive = navigation.selectedTab == tab-        return Button {-            navigation.selectedTab = tab-        } label: {-            Label(tab.title, systemImage: tab.systemImage)+    private func section(_ title: String, items: [WorksDestination]) -> some View {+        VStack(alignment: .leading, spacing: 2) {+            Text(title).font(.system(size: 11, weight: .bold))+                .foregroundStyle(AsterismColors.secondaryText).padding(.top, 14).padding(.horizontal, 16)+                .accessibilityAddTraits(.isHeader)+            ForEach(items, id: \.self) { destination in destinationRow(.library(destination)) }+        }+    }++    private func destinationRow(_ item: SidebarItem) -> some View {+        let active = navigation.selectedSidebarItem == item+        let destination: WorksDestination? = { if case .library(let value) = item { value } else { nil } }()+        let symbol = destination.map { value in+            switch value {+            case .group(.catchingUp): "forward.fill"+            case .group(.reading): "book"+            case .group(.toRead): "bookmark"+            case .seriesIndex: "square.stack"+            case .creators: "person.2"+            case .group(.onHiatus): "pause.circle"+            case .group(.finished): "checkmark"+            case .group(.abandoned): "book.closed"+            case .allWorks: "sparkles"+            }+        } ?? item.tab.systemImage+        return Button { navigation.selectSidebarItem(item) } label: {+            HStack {+                Image(systemName: symbol).foregroundStyle(active ? AsterismColors.cyan : AsterismColors.violet)+                Text(item.title)+                Spacer(minLength: 4)+                if let destination, let count = counts[destination] {+                    Text("\(count)").font(.system(size: 11.5)).foregroundStyle(AsterismColors.secondaryText)+                }+            }.frame(minHeight: 40)         }-        .buttonStyle(.constellationSidebarRow(isActive: isActive))-        .accessibilityIdentifier(tab.sidebarIdentifier)-        // The precedent the segmented control and the rating toggles set: the-        // chosen one says so, and the choice clears with it.-        .accessibilityAddTraits(isActive ? [.isSelected] : [])+        .buttonStyle(.constellationSidebarRow(isActive: active))+        .accessibilityIdentifier(destination.map { "sidebar-library-" + $0.storageValue } ?? item.tab.sidebarIdentifier)+        .accessibilityAddTraits(active ? [.isSelected] : [])     }      private var settingsRow: some View {@@ -183,10 +216,10 @@ extension View {     /// One declaration for both platforms: `ToolbarItemPlacement.leadingBar` is     /// the seam that resolves to the iPad's own bar and the Mac's window     /// toolbar (Q26).-    func sidebarToggleToolbar(navigation: AppNavigation) -> some View {+    func sidebarToggleToolbar(navigation: AppNavigation, enabled: Bool = true) -> some View {         toolbar {-            ToolbarItem(placement: .leadingBar) {-                SidebarToggleButton(navigation: navigation)+            if enabled {+                ToolbarItem(placement: .leadingBar) { SidebarToggleButton(navigation: navigation) }             }         }     }
Asterism/Asterism/Layout/WideLayoutPolicy.swift Modified +8 / -0
diff --git a/Asterism/Asterism/Layout/WideLayoutPolicy.swift b/Asterism/Asterism/Layout/WideLayoutPolicy.swiftindex 1e6f4985..32ef7708 100644--- a/Asterism/Asterism/Layout/WideLayoutPolicy.swift+++ b/Asterism/Asterism/Layout/WideLayoutPolicy.swift@@ -44,6 +44,14 @@ enum WideLayoutPolicy {     /// the column is narrower than either cap and the content simply fills it.     static let entryMeasure: CGFloat = 560     static let workMeasure: CGFloat = 680+    enum TodayLayout: Equatable { case stacked, mixed, columns }+    enum WorkDetailLayout: Equatable { case singleColumn, columns }+    static func todayLayout(forPaneWidth width: CGFloat) -> TodayLayout {+        width >= 900 ? .columns : width >= 600 ? .mixed : .stacked+    }+    static func workDetailLayout(forWidth width: CGFloat) -> WorkDetailLayout {+        width >= 860 ? .columns : .singleColumn+    }      /// The sidebar's width, per the `Mac` and `Main` artboards.     static func sidebarWidth(isMac: Bool) -> CGFloat {
Asterism/Asterism/Layout/WideRootView.swift Modified +181 / -64
diff --git a/Asterism/Asterism/Layout/WideRootView.swift b/Asterism/Asterism/Layout/WideRootView.swiftindex 7fbf0546..019a00eb 100644--- a/Asterism/Asterism/Layout/WideRootView.swift+++ b/Asterism/Asterism/Layout/WideRootView.swift@@ -2,28 +2,23 @@ import AsterismCore import ConstellationKit import SwiftUI -/// The regular-width tree: sidebar beside the tab's own pane (Req 1.1, 1.2).-///-/// Two columns, not three (Decision 3). The detail side is a pane that draws the-/// list and the selection side by side for Recent and Works, and the Stats-/// screen alone for Stats — so Stats fills the pane with no special case and the-/// two list tabs share one component.-///-/// **The screens themselves are `AppScreens`'.** What is here is the-/// *arrangement*: the split view, the two columns, the sky, and the column-/// decorations (`columnSky`, `detailMeasure`, `columnMarker`) that only a-/// two-column pane has. `CompactRootView` arranges the same five screens under a-/// tab bar, and the two used to build them twice.-///-/// The sheets are not here. They live on `ContentView`, above the size-class-/// switch, so a crossing between this tree and the compact one leaves a-/// presented sheet where it is (Req 1.7).+/// The regular-width tree: sidebar destinations beside a full-width Today or+/// Stats pane, and a Library list/detail pane. Screens are shared with the+/// compact tree; sheets stay on ContentView above layout crossings. struct WideRootView: View {     let model: AppLibraryModel     @Bindable var navigation: AppNavigation      /// Req 4.4: `openSettings()` on the Mac, the sheet on the iPad.     let showSettings: () -> Void+    var showsSettingsRow = true+    @Environment(\.dynamicTypeSize) private var dynamicTypeSize+    @Environment(\.siteNames) private var siteNames+    @AccessibilityFocusState private var inspectorFocused: Bool+    @FocusState private var inspectorKeyboardFocused: Bool+    @State private var sidebarSeries: [SeriesDisplay] = []+    @State private var sidebarCreatorCount = 0+    private var hubScreens: AppScreens { AppScreens(model: model, navigation: navigation, isWide: false, showSettings: showSettings, paintsOwnSky: false) }      private var screens: AppScreens {         AppScreens(@@ -31,6 +26,14 @@ struct WideRootView: View {     }      var body: some View {+        splitTree.task(id: model.snapshotGeneration) {+            guard let directories = try? await model.sidebarDirectoryOptions(), !Task.isCancelled else { return }+            sidebarSeries = directories.series+            sidebarCreatorCount = directories.creatorCount+        }+    }++    private var splitTree: some View {         NavigationSplitView(columnVisibility: $navigation.sidebarVisibility) {             SidebarView(                 navigation: navigation,@@ -39,16 +42,18 @@ struct WideRootView: View {                 // Not just "switch to Recent": the sidebar's banner is Recent's                 // own banner with its own words, so it takes the reader to the                 // same place — Recent, filtered to the entries it counted.-                showActionable: navigation.showActionableEntries+                showActionable: navigation.showActionableEntries,+                showsSettingsRow: showsSettingsRow,+                counts: sidebarCounts             )-            .navigationSplitViewColumnWidth(WideLayoutPolicy.sidebarWidth)+            .navigationSplitViewColumnWidth(min: WideLayoutPolicy.sidebarWidth, ideal: WideLayoutPolicy.sidebarWidth, max: WideLayoutPolicy.sidebarWidth)             .columnSky()             // The system's toggle is drawn in the *sidebar column's* own bar on             // iPadOS, so removing it on the split view alone leaves it there             // beside ours (measured — two sidebar glyphs in the same corner).             .toolbar(removing: .sidebarToggle)         } detail: {-            pane+            adaptivePane                 // The split view is a navigation container of its own and this                 // is its detail column's content, so it needs the same clearing                 // the sidebar's does — or the split view paints over the sky@@ -72,6 +77,33 @@ struct WideRootView: View {         .windowSky()     } +    private var sidebarCounts: [WorksDestination: Int] {+        guard model.worksLoad == .loaded else { return [:] }+        var values: [WorksDestination: Int] = [.allWorks: model.worksSnapshot.works.count,+            .seriesIndex: sidebarSeries.count,+            .creators: sidebarCreatorCount]+        for group in WorksGroup.allCases { values[.group(group)] = group.members(of: model.worksSnapshot.works, on: model.currentDay).count }+        return values+    }++    @ViewBuilder private var adaptivePane: some View {+        if showsSettingsRow && navigation.sidebarVisibility == .detailOnly {+            TabView(selection: $navigation.selectedTab) {+                SwiftUI.Tab("Today", systemImage: "calendar", value: AppTab.today) { todayPane }+                SwiftUI.Tab("Library", systemImage: "sparkles", value: AppTab.works) {+                    NavigationStack(path: $navigation.worksPath) {+                        hubScreens.works().navigationDestination(for: WorksRoute.self) { hubScreens.route($0, on: .works).columnSky() }+                            .columnSky()+                    }+                }+                SwiftUI.Tab("Stats", systemImage: "chart.bar", value: AppTab.stats) {+                    NavigationStack { screens.stats().columnSky() }+                }+            }.collapsedTopTabs(accessibilitySize: dynamicTypeSize.isAccessibilitySize)+                .sidebarToggleToolbar(navigation: navigation)+        } else { pane }+    }+     /// Req 1.3's gate, computed here where the capabilities and the presentation     /// already are, so `SidebarView` stays free of the library model.     private var actionableCount: Int? {@@ -113,67 +145,138 @@ struct WideRootView: View {     /// row's work, or a chapter inside it — so Req 8.1's announcement and focus     /// move fire for a release row exactly as they do for a note.     private var todayPane: some View {-        ListDetailPane(-            navigation: navigation,-            // Q76: the **tab's** name, the way the Library column is headed — a-            // column heading names the place, not the day. The day is the-            // header's serif title inside the column (Today v2 §3), which moves-            // with the selection as the reader pages.-            title: AppTab.today.title,-            selection: navigation.detailSubject(on: .today),-            detailAnnouncement: { announcement(on: .today) }-        ) {-            todayList-        } detail: {-            todayDetail+        NavigationStack(path: $navigation.todayPath) {+            screens.today(onShowSettings: showsSettingsRow && navigation.sidebarVisibility == .detailOnly ? showSettings : nil)+                .sidebarToggleToolbar(navigation: navigation, enabled: !(showsSettingsRow && navigation.sidebarVisibility == .detailOnly))+                .toolbar {+                    ToolbarItem(placement: .primaryAction) {+                        Button("New Work", systemImage: "plus") { navigation.newWorkReadingStatus = .toRead; navigation.showingNewWork = true }+                    }+                }+                .navigationDestination(for: WorksRoute.self) { route in+                    VStack(alignment: .leading, spacing: 0) {+                        ColumnBackButton(title: backTitle(on: .today), action: {+                            navigation.popRoute(on: .today)+                        })+                        screens.route(route, on: .today)+                    }.hidesBackButton(true).columnSky()+                }+                .navigationDestination(item: $navigation.selectedTodayEntryID) { id in+                    EntryDetailRoute(model: model, navigation: navigation, entryID: id, showsSky: false)+                        .columnSky()+                }+                .navigationDestination(isPresented: $navigation.showingDiagnostics) { screens.diagnostics().columnSky() }+                .columnSky()+        }+        // The split-view detail retains its pushed controller after an inspector+        // closes, even when its bound path returns to empty. Give the dashboard+        // and a pushed page separate stack identities; nested pushes keep theirs.+        .id(navigation.todayPath.isEmpty && navigation.selectedTodayEntryID == nil)+        .inspector(isPresented: Binding(get: { navigation.todayInspectorEntryID != nil }, set: { if !$0 { navigation.todayInspectorEntryID = nil } })) {+            todayInspector+                .inspectorColumnWidth(min: 340, ideal: 380, max: 440)+        }+        .portraitInspector(showsSettingsRow && navigation.sidebarVisibility == .detailOnly)+        .onChange(of: navigation.todayInspectorEntryID) { _, id in+            guard let id else { return }+            inspectorFocused = true+            inspectorKeyboardFocused = true+            if let row = model.todayPresentation.allRows.first(where: { $0.id == id }) {+                AccessibilityNotification.Announcement(row.chapterTitle ?? row.captureTitle).post()+            }+        }+        .onKeyPress(.upArrow) { stepInspector(-1) }+        .onKeyPress(.downArrow) { stepInspector(1) }+        .onKeyPress(.escape) {+            guard navigation.canGoBack else { return .ignored }+            navigation.back(); return .handled         }     } -    private var todayList: some View {-        screens.today()-            // Req 1.7: Diagnostics is pushed from the *list* stack, and the-            // sidebar stays beside it. What the push does not do is stay inside-            // the column — see the measured note on `ListDetailPane`.-            .navigationDestination(isPresented: $navigation.showingDiagnostics) {-                // A pushed screen is the stack's content too, so it has to clear-                // its own navigation container or the stack paints over the sky-                // for as long as the push is on top.-                screens.diagnostics()-                    .columnSky()-            }+    private var inspectorRows: [TodayPresentationRow] {+        model.todayPresentation.groups.first {+            $0.civilDay == navigation.selectedDay(currentDay: model.currentDay)+        }?.rows ?? []+    }+    private func stepInspector(_ delta: Int) -> KeyPress.Result {+        let rows = inspectorRows+        guard let id = navigation.todayInspectorEntryID,+              let index = rows.firstIndex(where: { $0.id == id }) else { return .ignored }+        navigation.todayInspectorEntryID = rows[max(0, min(rows.count - 1, index + delta))].id+        return .handled+    }+    @ViewBuilder private var todayInspector: some View {+        if let id = navigation.todayInspectorEntryID,+           let row = model.todayPresentation.allRows.first(where: { $0.id == id }) {+            VStack(alignment: .leading, spacing: 16) {+                HStack { Spacer(); Button("Close", systemImage: "xmark") { navigation.todayInspectorEntryID = nil }.labelStyle(.iconOnly).accessibilityIdentifier("today-inspector-close") }+                ScrollView {+                    VStack(alignment: .leading, spacing: 16) {+                        HStack(spacing: 12) {+                            if let workID = row.entry.workID, let thumbnail = row.workThumbnail {+                                ThumbnailSlot(workID: workID, identity: thumbnail, baseSize: CGSize(width: 48, height: 68), trailingGap: 0)+                            }+                            VStack(alignment: .leading, spacing: 4) {+                                Text(row.workDisplayTitle ?? row.captureTitle).font(AsterismTypography.serif(.headline))+                                Text(inspectorWorkLine(row)).font(.caption).foregroundStyle(AsterismColors.secondaryText)+                            }+                        }+                        Divider()+                        Text(row.chapterTitle ?? row.captureTitle).font(.subheadline.weight(.semibold)).foregroundStyle(AsterismColors.cyan)+                        Text(row.lastSharedAt, style: .time).font(.caption).foregroundStyle(AsterismColors.secondaryText)+                        Text(row.note).font(.body).foregroundStyle(AsterismColors.noteText)+                        if let rating = row.rating { Text(rating == .up ? "▲" : "▼").foregroundStyle(AsterismColors.cyan) }+                        if let detail = model.entryDetailModel(for: id) { InspectorCharacters(model: detail).id(id) }+                        TodayEntryPills(row: row, onTeach: { navigation.showingTeachingForEntryID = $0 }, onResolveDuplicate: { navigation.route(toResolve: $0, in: model.todayPresentation.duplicateWorkload) }, resolutionKey: TodayEntryPills.resolutionKey(for: row, workload: model.todayPresentation.duplicateWorkload))+                        if let workID = row.entry.workID,+                           let previous = model.todayPresentation.groups.lazy.flatMap(\.rows).filter({ $0.entry.workID == workID && $0.lastSharedAt < row.lastSharedAt }).max(by: { $0.lastSharedAt < $1.lastSharedAt }) {+                            Divider()+                            Text("Previous note · " + (previous.chapterTitle ?? previous.captureTitle)).font(.caption)+                            Text(previous.note).lineLimit(2).foregroundStyle(AsterismColors.secondaryText)+                        }+                    }.frame(maxWidth: .infinity, alignment: .leading)+                }+                HStack {+                    Button("Edit") { navigation.todayInspectorEntryID = nil; navigation.showTodayEntry(id) }+                    Spacer()+                    if let workID = row.entry.workID {+                        Button("Open work →") {+                            navigation.showWork(workID, on: .today)+                            navigation.todayFocusedEntryID = id+                        }.accessibilityIdentifier("today-inspector-open-work")+                    }+                }+            }.padding(20).columnSky()+                .accessibilityElement(children: .contain).accessibilityIdentifier("today-inspector")+                .accessibilityFocused($inspectorFocused)+                .focusable().focused($inspectorKeyboardFocused)+        }     } -    /// Today's detail column: the stack's last route, else the selected entry,-    /// else the placeholder (`update-schedule` Req 10.1).-    ///-    /// Req 1.5's actual claim is made assertable by the `entry-detail-<uuid>`-    /// marker, which `EntryDetailView` applies from its **own** model rather-    /// than from this id (Q57) — so a UI test that follows the tapped-    /// `recent-entry-<uuid>` row into this column is looking at what is drawn-    /// and not at what was asked for.-    private var todayDetail: some View {-        stackDetail(-            on: .today,-            entryID: navigation.selectedTodayEntryID,-            // A work **or** a note: the day list holds release rows beside the-            // noted ones, and either kind fills this column.-            placeholder: DetailPlaceholder(-                title: "Select a work or note", systemImage: "calendar"))+    private func inspectorWorkLine(_ row: TodayPresentationRow) -> String {+        let site = siteNames.label(for: row.hostname)+        guard let work = model.worksSnapshot.works.first(where: { $0.id == row.entry.workID }) else { return site }+        let progress = CatchUpProgress.build(work: work, day: model.currentDay, calendar: model.calendar)+        return site + " · " + (progress.behind.map { "» \($0) behind" } ?? ReadingStatusPresentation.name(work.readingStatus))     }      // MARK: - Works +    private var libraryDestination: WorksDestination {+        if case .library(let destination) = navigation.selectedSidebarItem { destination } else { .group(.reading) }+    }+     private var worksPane: some View {         ListDetailPane(             navigation: navigation,-            title: AppTab.works.title,+            title: libraryDestination.title,             // Whatever the column is showing is what Req 8.1 announces and moves             // focus to — the route on top of the Works stack, or the unattached             // note the list opened when there is none.             selection: navigation.detailSubject(on: .works),             detailAnnouncement: { announcement(on: .works) }         ) {-            screens.works()+            screens.route(.destination(libraryDestination), on: .works)         } detail: {             worksDetail         }@@ -216,7 +319,7 @@ struct WideRootView: View {             // The Works list's unattached-entry route lands in this column too,             // and carries the same marker from inside the screen.             entryID: navigation.selectedWorksEntryID,-            placeholder: DetailPlaceholder(title: "Select a work", systemImage: "sparkles"))+            placeholder: DetailPlaceholder(title: libraryDestination == .seriesIndex ? "Select a series" : libraryDestination == .creators ? "Select a creator" : "Select a work", systemImage: "sparkles"))     }      // MARK: - One detail column, two stacks (`update-schedule` task 18)@@ -269,6 +372,7 @@ struct WideRootView: View {     /// and every other screen the work one.     private static func measure(for route: WorksRoute) -> CGFloat {         if case .chapter = route { return WideLayoutPolicy.entryMeasure }+        if case .work = route { return 1040 }         return WideLayoutPolicy.workMeasure     } @@ -298,7 +402,9 @@ struct WideRootView: View {             return model.workTitlesByID[workID] ?? "Work"         case .destination(let destination):             return destination.title-        case .series, .seriesList:+        case .series(let id, _):+            return sidebarSeries.first(where: { $0.id == id })?.label ?? "Series"+        case .seriesList:             return "Series"         case .creatorList:             return "Creators"@@ -357,3 +463,14 @@ struct WideRootView: View {         }     } }++private struct InspectorCharacters: View {+    @State var model: EntryDetailModel+    var body: some View {+        FlowLayout(spacing: 6) {+            ForEach(model.teachingDetail?.citingCharacters ?? []) { character in+                Text(character.name).constellationPill(.genreTag)+            }+        }.task { await model.load() }+    }+}
Asterism/Asterism/Localizable.xcstrings Modified +51 / -0
diff --git a/Asterism/Asterism/Localizable.xcstrings b/Asterism/Asterism/Localizable.xcstringsindex 34faddc7..f423c9f7 100644--- a/Asterism/Asterism/Localizable.xcstrings+++ b/Asterism/Asterism/Localizable.xcstrings@@ -222,6 +222,10 @@         }       }     },+    "%lld behind" : {+      "comment" : "A label that shows how many chapters are behind the latest read.",+      "isCommentAutoGenerated" : true+    },     "%lld confirmed, %lld skipped" : {       "comment" : "A subheading that displays the number of Work URLs that were confirmed and skipped.",       "isCommentAutoGenerated" : true,@@ -402,6 +406,10 @@       "comment" : "A button that adds a new alias to a character.",       "isCommentAutoGenerated" : true     },+    "Add to series…" : {+      "comment" : "A button that adds a work to a series.",+      "isCommentAutoGenerated" : true+    },     "Adds a web page to your library as a new work to read, after you confirm its title." : {       "comment" : "Description of the AddPageToReadIntent intent.",       "isCommentAutoGenerated" : true@@ -446,6 +454,10 @@       "comment" : "A banner that appears when the user can't refresh the",       "isCommentAutoGenerated" : true     },+    "Back" : {+      "comment" : "The label of a menu item that goes back in time.",+      "isCommentAutoGenerated" : true+    },     "Back to %@" : {       "comment" : "A button that goes back to a specific work. The argument is the name of the work.",       "isCommentAutoGenerated" : true@@ -814,6 +826,10 @@     },     "Genre tags (comma-separated)" : { +    },+    "Go" : {+      "comment" : "A menu that appears in the menu bar.",+      "isCommentAutoGenerated" : true     },     "Go to Work" : {       "comment" : "A button that opens a web page for a work item.",@@ -877,6 +893,9 @@     "Latest released" : {       "comment" : "The title of the sheet that lets the user set the latest chapter of a work.",       "isCommentAutoGenerated" : true+    },+    "Latest unknown" : {+     },     "Left unattached" : {       "comment" : "A description of a book that was left without a work.",@@ -996,6 +1015,10 @@       "comment" : "A label for the mode of a site.",       "isCommentAutoGenerated" : true     },+    "More" : {+      "comment" : "A menu that appears when the user presses the",+      "isCommentAutoGenerated" : true+    },     "Move" : {       "comment" : "The button that moves the user's device to a new work.",       "isCommentAutoGenerated" : true@@ -1053,6 +1076,10 @@       "comment" : "A label for a text field that lets the user enter a",       "isCommentAutoGenerated" : true     },+    "Next Day" : {+      "comment" : "The label of a menu item that goes to the next day.",+      "isCommentAutoGenerated" : true+    },     "No Reading Yet Recorded" : {       "comment" : "A label for a view that displays a message that no",       "isCommentAutoGenerated" : true@@ -1118,6 +1145,10 @@       "comment" : "A button that lets the user dismiss a Work that is not the same as another Work. The argument is the title of the Work that the user is dismissing.",       "isCommentAutoGenerated" : true     },+    "Not yet" : {+      "comment" : "A button that moves a work to the reading section of the library.",+      "isCommentAutoGenerated" : true+    },     "Not yet, more is out" : {      },@@ -1189,6 +1220,10 @@       "comment" : "The label of a button that opens a web page.",       "isCommentAutoGenerated" : true     },+    "Open chapter ↗" : {+      "comment" : "A button that opens a chapter in a web browser.",+      "isCommentAutoGenerated" : true+    },     "Open entry %@ from %@" : {       "comment" : "A sentence that describes the action to take to open the entry. The first argument is the entry's accessibility title. The second argument is the site name.",       "isCommentAutoGenerated" : true,@@ -1221,6 +1256,10 @@       "comment" : "A label for an accessibility element that opens an unattached note. The argument is the note's title.",       "isCommentAutoGenerated" : true     },+    "Open work →" : {+      "comment" : "A button that opens a work.",+      "isCommentAutoGenerated" : true+    },     "Opening library…" : {      },@@ -1296,6 +1335,10 @@       "comment" : "The text that appears when the recalculation preview is loading.",       "isCommentAutoGenerated" : true     },+    "Previous Day" : {+      "comment" : "A button that goes to the previous day.",+      "isCommentAutoGenerated" : true+    },     "Projected Work" : {      },@@ -1565,6 +1608,10 @@       "comment" : "A label for a search field in a work picker.",       "isCommentAutoGenerated" : true     },+    "See all" : {+      "comment" : "A button that shows all the work the user is behind on.",+      "isCommentAutoGenerated" : true+    },     "Select for" : {      },@@ -1833,6 +1880,10 @@       "comment" : "A button that asks whether a work is in the user's To Read list.",       "isCommentAutoGenerated" : true     },+    "Today" : {+      "comment" : "The label of a menu item that takes the user to today.",+      "isCommentAutoGenerated" : true+    },     "Toggle Sidebar" : {       "comment" : "The label of a button that toggles the sidebar.",       "isCommentAutoGenerated" : true
Asterism/Asterism/Support/AppLifecycle.swift Modified +6 / -6
diff --git a/Asterism/Asterism/Support/AppLifecycle.swift b/Asterism/Asterism/Support/AppLifecycle.swiftindex 896c58cc..7a656eea 100644--- a/Asterism/Asterism/Support/AppLifecycle.swift+++ b/Asterism/Asterism/Support/AppLifecycle.swift@@ -547,9 +547,8 @@ enum AppLifecycle {     /// events that move what "today" means (Stats' day rollover).     static let significantTimeChange: AnyPublisher<Void, Never> = makeSignificantTimeChange() -    private static func makeSignificantTimeChange() -> AnyPublisher<Void, Never> {+    private static func makeSignificantTimeChange(center: NotificationCenter = .default) -> AnyPublisher<Void, Never> {         #if os(macOS)-        let center = NotificationCenter.default         return Publishers.MergeMany(             center.publisher(for: .NSCalendarDayChanged),             center.publisher(for: .NSSystemClockDidChange),@@ -558,7 +557,7 @@ enum AppLifecycle {         .map { _ in () }         .eraseToAnyPublisher()         #else-        return NotificationCenter.default+        return center             .publisher(for: UIApplication.significantTimeChangeNotification)             .map { _ in () }             .eraseToAnyPublisher()@@ -598,8 +597,9 @@ enum AppLifecycle {     /// reader is watching still lands promptly.     private static let temporalDebounce = DispatchQueue.SchedulerTimeType.Stride.milliseconds(250) -    private static func makeTemporalChange() -> AnyPublisher<Void, Never> {-        let localeChange = NotificationCenter.default+    static func makeTemporalChange(center: NotificationCenter = .default) -> AnyPublisher<Void, Never> {+        let significantTimeChange = makeSignificantTimeChange(center: center)+        let localeChange = center             .publisher(for: NSLocale.currentLocaleDidChangeNotification)             .map { _ in () }         #if os(macOS)@@ -607,7 +607,7 @@ enum AppLifecycle {         #else         let merged = significantTimeChange             .merge(-                with: NotificationCenter.default+                with: center                     .publisher(for: .NSSystemTimeZoneDidChange)                     .map { _ in () },                 localeChange
Asterism/Asterism/Support/PlatformModifiers.swift Modified +25 / -0
diff --git a/Asterism/Asterism/Support/PlatformModifiers.swift b/Asterism/Asterism/Support/PlatformModifiers.swiftindex a786b222..10fd2c2e 100644--- a/Asterism/Asterism/Support/PlatformModifiers.swift+++ b/Asterism/Asterism/Support/PlatformModifiers.swift@@ -1019,3 +1019,28 @@ struct WorksTokenSearch: ViewModifier {         #endif     } }++// The collapsed iPad tree uses the platform's top tab bar. The app still owns+// the split-view sidebar and its toggle, so the native tab sidebar is hidden.+extension View {+    @ViewBuilder func collapsedTopTabs(accessibilitySize: Bool) -> some View {+        #if os(iOS)+        if accessibilitySize {+            // Native sidebarAdaptable forces its own sidebar at accessibility+            // sizes; the app's split-view sidebar remains the source of truth.+            self.tabViewStyle(.tabBarOnly)+        } else {+            self.tabViewStyle(.sidebarAdaptable).toolbar(removing: .sidebarToggle)+        }+        #else+        self+        #endif+    }+    @ViewBuilder func portraitInspector(_ portrait: Bool) -> some View {+        #if os(iOS)+        self.presentationDetents([.medium, .large]).environment(\.horizontalSizeClass, portrait ? .compact : .regular)+        #else+        self+        #endif+    }+}
Asterism/Asterism/Support/UITestMarker.swift Modified +4 / -3
diff --git a/Asterism/Asterism/Support/UITestMarker.swift b/Asterism/Asterism/Support/UITestMarker.swiftindex 7a38cd2c..866243c1 100644--- a/Asterism/Asterism/Support/UITestMarker.swift+++ b/Asterism/Asterism/Support/UITestMarker.swift@@ -71,11 +71,12 @@ enum LayoutMarker { /// the restore reads them in another, and a typo in either is a restore that /// silently never happens. enum RestoreStorageKey {+    static let selectedSidebarItem = "restore.selectedSidebarItem"+    static let todayPath = "restore.todayPath"+    static let libraryPath = "restore.libraryPath"     static let worksDestination = "restore.worksDestination"     static let selectedTab = "restore.selectedTab"-    /// `update-schedule` Q42: Today's entry selection is the only Today value-    /// restored. `todayPath` starts empty on every launch, so there is no third-    /// key here for it.+    /// Legacy leaf-selection keys remain readable for migration.     static let selectedTodayEntryID = "restore.selectedTodayEntryID"     static let selectedWorkID = "restore.selectedWorkID" }
Asterism/Asterism/ViewModels/AppLibraryModel.swift Modified +17 / -1
diff --git a/Asterism/Asterism/ViewModels/AppLibraryModel.swift b/Asterism/Asterism/ViewModels/AppLibraryModel.swiftindex 09f584dc..30c780dd 100644--- a/Asterism/Asterism/ViewModels/AppLibraryModel.swift+++ b/Asterism/Asterism/ViewModels/AppLibraryModel.swift@@ -285,6 +285,8 @@ public final class AppLibraryModel {     /// The pass this model is waiting on, so a teardown can wait for it too     /// rather than shutting the repository down underneath a commit.     private var pendingCapturePassTask: Task<DrainReport, Never>?+    /// Optional operation hold for tests that must exercise a drain in flight.+    var beforePendingCapturePass: (@MainActor () async -> Void)?     /// Bumped whenever the queue is dropped. A pass that finishes after its     /// library has gone finds its generation stale and publishes nothing.     private var pendingCaptureGeneration = 0@@ -1073,7 +1075,11 @@ public final class AppLibraryModel {         pendingCaptureWatcher?.passDidStart()         defer { pendingCaptureWatcher?.passDidEnd() }         let generation = pendingCaptureGeneration-        let pass = Task { await drain.drain(budget: budget) }+        let beforePass = beforePendingCapturePass+        let pass = Task {+            await beforePass?()+            return await drain.drain(budget: budget)+        }         pendingCapturePassTask = pass         let report = await pass.value         // The library this pass drained may have been released while it ran. Its@@ -1867,6 +1873,16 @@ public final class AppLibraryModel {             onMutation: { [weak self] in await self?.refreshDiagnosesAndSnapshots() })     } +    /// Sidebar totals and back labels need directory names, not member counts.+    func sidebarDirectoryOptions() async throws -> (series: [SeriesDisplay], creatorCount: Int) {+        guard let repository else { return ([], 0) }+        async let series = repository.seriesOptions()+        async let creators = repository.creatorOptions()+        let directories = try await (series, creators)+        return (directories.0, directories.1.count)+    }++     /// The series list (`series-and-related-works` Req 1.6).     ///     /// The mutation hook is the snapshot refresh, as the work-types list's is: a
Asterism/Asterism/ViewModels/ComposedTeachingViewModel.swift Modified +18 / -6
diff --git a/Asterism/Asterism/ViewModels/ComposedTeachingViewModel.swift b/Asterism/Asterism/ViewModels/ComposedTeachingViewModel.swiftindex c06697e7..0c623bdc 100644--- a/Asterism/Asterism/ViewModels/ComposedTeachingViewModel.swift+++ b/Asterism/Asterism/ViewModels/ComposedTeachingViewModel.swift@@ -646,6 +646,18 @@ public final class ComposedTeachingViewModel {      // MARK: - Lifecycle +    /// Joins the latest preview, including one that replaced a cancelled+    /// generation while the caller was waiting. Tests await the operation rather+    /// than guessing when its fire-and-forget publication will finish.+    func waitForPreview() async {+        while let task = previewTask {+            await task.value+            if task == previewTask { return }+        }+    }++    func waitForSuggestion() async { await suggestionTask?.value }+     public func load() async {         state = .loading         titleSegments = ComposedTeachingPresentation.titleSegments(in: entry.captureTitle)@@ -681,7 +693,7 @@ public final class ComposedTeachingViewModel {             // auto-apply window is measured from.             appearedAt = .now             syncChapterRemedyDisclosure()-            await generatePreviewIfValid()+            generatePreviewIfValid()             await seedSuggestionIfAvailable()         } catch {             errorMessage = "Unable to load teaching basis. \(error.localizedDescription)"@@ -841,7 +853,7 @@ public final class ComposedTeachingViewModel {         urlRuleDefinition = outcome.definition         invalidatePreview()         syncChapterRemedyDisclosure()-        Task { await generatePreviewIfValid() }+        generatePreviewIfValid()     }      /// Sets the URL rule definition, or clears it with nil — the editor's@@ -901,7 +913,7 @@ public final class ComposedTeachingViewModel {         retireSuggestion(side, restoringSnapshot: true)         invalidatePreview()         syncChapterRemedyDisclosure()-        Task { await generatePreviewIfValid() }+        generatePreviewIfValid()     }      /// Applies whichever sides the origin allows, and returns the ones that took.@@ -927,7 +939,7 @@ public final class ComposedTeachingViewModel {         // hostname exactly as it does for a hand-authored selection.         invalidatePreview()         syncChapterRemedyDisclosure()-        await generatePreviewIfValid()+        generatePreviewIfValid()         return applied     } @@ -1207,7 +1219,7 @@ public final class ComposedTeachingViewModel {     /// Fire-and-forget preview scheduling for reader edits. Cancels the pending     /// preview, captures the current generation, and publishes only if it is still     /// the latest when the projection returns.-    private func generatePreviewIfValid() async {+    private func generatePreviewIfValid() {         previewTask?.cancel()         guard let request = buildRequest() else {             invalidateContractOnly()@@ -1396,7 +1408,7 @@ public final class ComposedTeachingViewModel {         storedTitleRuleNotice = nil         invalidatePreview()         syncChapterRemedyDisclosure()-        Task { await generatePreviewIfValid() }+        generatePreviewIfValid()     }      private func resetSelectionToWholeTitle() {
Asterism/Asterism/ViewModels/WorksListOptions.swift Modified +3 / -3
diff --git a/Asterism/Asterism/ViewModels/WorksListOptions.swift b/Asterism/Asterism/ViewModels/WorksListOptions.swiftindex 2fb5db91..c641d425 100644--- a/Asterism/Asterism/ViewModels/WorksListOptions.swift+++ b/Asterism/Asterism/ViewModels/WorksListOptions.swift@@ -35,7 +35,7 @@ enum WorksListStorageKey {     /// App Group — so this is the seam the test pins, and a preference added     /// later that is not reset is a visible omission here rather than a     /// forgotten line there.-    static let seededLaunchResets = [sort, RestoreStorageKey.worksDestination]+    static let seededLaunchResets = [sort, RestoreStorageKey.worksDestination, RestoreStorageKey.selectedSidebarItem, RestoreStorageKey.todayPath, RestoreStorageKey.libraryPath]         + WorksGroup.allCases.map { "worksGroup.sort." + $0.rawValue } } @@ -788,7 +788,7 @@ nonisolated enum SeriesPresentation {  // MARK: - Library destinations -nonisolated enum WorksDestination: Hashable, Sendable {+nonisolated enum WorksDestination: Hashable, Sendable, Codable {     case group(WorksGroup)     case allWorks     case seriesIndex@@ -832,7 +832,7 @@ nonisolated enum WorksDestination: Hashable, Sendable {     } } -nonisolated enum WorksGroup: String, CaseIterable, Hashable, Sendable {+nonisolated enum WorksGroup: String, CaseIterable, Hashable, Sendable, Codable {     case catchingUp, reading, toRead, onHiatus, finished, abandoned      var title: String {
Asterism/Asterism/Views/TodaySections.swift Modified +22 / -5
diff --git a/Asterism/Asterism/Views/TodaySections.swift b/Asterism/Asterism/Views/TodaySections.swiftindex 0a6aae98..35e73324 100644--- a/Asterism/Asterism/Views/TodaySections.swift+++ b/Asterism/Asterism/Views/TodaySections.swift@@ -22,6 +22,8 @@ struct TodayHeader: View {     let onSelectToday: () -> Void     /// Nil in the wide tree, whose sidebar carries Settings.     let onShowSettings: (() -> Void)?+    var titlePointSize: CGFloat? = nil+    @ScaledMetric(relativeTo: .largeTitle) private var titleScale: CGFloat = 1      var body: some View {         HStack(alignment: .center, spacing: 8) {@@ -29,7 +31,7 @@ struct TodayHeader: View {                 Button(action: onSelectToday) {                     HStack(alignment: .firstTextBaseline, spacing: 8) {                         Text(title)-                            .font(AsterismTypography.serif(.title))+                            .font(titlePointSize.map { .system(size: $0 * titleScale, design: .serif).weight(.medium) } ?? AsterismTypography.serif(.title))                             .tracking(-0.28)                             .foregroundStyle(AsterismColors.primaryText)                         if !isOnCurrentDay {@@ -128,6 +130,7 @@ struct TodayCover: View { struct ReleaseShelf: View {     /// Already in shelf order (`ReleaseShelfText.ordered`).     let rows: [ReleaseRow]+    var coverSize = ReleaseShelfItem.coverSize     let selectedDay: CivilDay     let currentDay: CivilDay     let calendar: Calendar@@ -140,7 +143,7 @@ struct ReleaseShelf: View {             LazyHStack(alignment: .top, spacing: 14) {                 ForEach(rows) { row in                     ReleaseShelfItem(-                        row: row, onSelect: onSelect,+                        row: row, coverSize: coverSize, onSelect: onSelect,                         selectedDay: selectedDay, currentDay: currentDay, calendar: calendar,                         onSetNoEpisode: onSetNoEpisode,                         isActionInFlight: isActionInFlight(row.id))@@ -162,6 +165,7 @@ struct ReleaseShelfItem: View {     static let coverRadius: CGFloat = 12      let row: ReleaseRow+    var coverSize = Self.coverSize     let onSelect: (UUID) -> Void     let selectedDay: CivilDay     let currentDay: CivilDay@@ -177,7 +181,7 @@ struct ReleaseShelfItem: View {     /// drawn by, so the two cannot drift.     private var width: CGFloat {         CoverSlotGeometry(-            shape: .portrait, baseSize: Self.coverSize, typeSizeProbe: typeSizeProbe,+            shape: .portrait, baseSize: coverSize, typeSizeProbe: typeSizeProbe,             displayScale: displayScale         ).drawnSize.width     }@@ -225,7 +229,7 @@ struct ReleaseShelfItem: View {         let isRead = row.isCompleted         return TodayCover(             workID: row.id, thumbnail: row.thumbnail, hostname: row.primaryHostname,-            baseSize: Self.coverSize, cornerRadius: Self.coverRadius+            baseSize: coverSize, cornerRadius: Self.coverRadius         )         .opacity(isRead ? 0.62 : 1)         .overlay {@@ -273,6 +277,7 @@ struct ReleaseShelfItem: View { struct CatchUpCard: View {     /// Already in card order (`CatchUpText.ordered`).     let rows: [ReleaseRow]+    var onSeeAll: (() -> Void)? = nil     let selectedDay: CivilDay     let currentDay: CivilDay     let calendar: Calendar@@ -295,7 +300,11 @@ struct CatchUpCard: View {                     calendar: calendar, onSelect: onSelect,                     onSetLatest: onSetLatest, onSetReadingStatus: onSetReadingStatus)             }-            if let toggle = CatchUpText.toggleLabel(rowCount: rows.count, showsAll: showsAll) {+            if let onSeeAll {+                hairline+                Button("See all", action: onSeeAll).frame(maxWidth: .infinity, minHeight: AsterismLayout.minHitTarget)+                    .buttonStyle(.plain).foregroundStyle(AsterismColors.cyan)+            } else if let toggle = CatchUpText.toggleLabel(rowCount: rows.count, showsAll: showsAll) {                 hairline                 Button(toggle) {                     showsAll.toggle()@@ -629,6 +638,14 @@ struct TodayEntryPills: View {     let onResolveDuplicate: ((DuplicateSetKey) -> Void)?     let resolutionKey: DuplicateSetKey? +    static func resolutionKey(for row: TodayPresentationRow, workload: DuplicateWorkload) -> DuplicateSetKey? {+        guard let route = row.duplicateRoute else { return nil }+        switch route {+        case .sheet, .merge: return workload.item(for: row.id, type: .entry)?.key+        case .blockedByWorkSet(let blocking): return blocking+        }+    }+     var body: some View {         if let resolutionKey, let onResolveDuplicate {             Button {
Asterism/Asterism/Views/TodayText.swift Modified +4 / -0
diff --git a/Asterism/Asterism/Views/TodayText.swift b/Asterism/Asterism/Views/TodayText.swiftindex ad44f249..0a56a624 100644--- a/Asterism/Asterism/Views/TodayText.swift+++ b/Asterism/Asterism/Views/TodayText.swift@@ -46,6 +46,10 @@ nonisolated enum TodayDateText {         day.date(in: calendar).formatted(stamped(headerStyle, with: calendar))     } +    static func wideHeader(_ day: CivilDay, calendar: Calendar) -> String {+        day.date(in: calendar).formatted(stamped(.dateTime.weekday(.wide).day().month(.wide), with: calendar))+    }+     private static let headerStyle = Date.FormatStyle()         .weekday(.abbreviated).day().month(.abbreviated) 
Asterism/Asterism/Views/TodayView.swift Modified +56 / -13
diff --git a/Asterism/Asterism/Views/TodayView.swift b/Asterism/Asterism/Views/TodayView.swiftindex c095ff16..03ecf853 100644--- a/Asterism/Asterism/Views/TodayView.swift+++ b/Asterism/Asterism/Views/TodayView.swift@@ -113,6 +113,11 @@ struct TodayView: View {     /// reaches `.ready` even when its first refresh failed — and no     /// announcement may be drawn on it.     let libraryHasBeenRead: Bool+    let isWide: Bool+    @Binding var scrollOffset: CGFloat+    @State private var scrollPosition = ScrollPosition()+    let onSeeAllCatchingUp: (() -> Void)?+    @State private var paneWidth: CGFloat = 0     /// The announcement row's tap: the sheet is `ContentView`'s, through     /// `AppNavigation` (Q22).     let onOpenAnnouncement: (TodayAnnouncement) -> Void@@ -152,6 +157,9 @@ struct TodayView: View {         actionableFilterRequest: Int = 0,         selectedEntryID: UUID? = nil,         showsSky: Bool = true,+        isWide: Bool = false,+        scrollOffset: Binding<CGFloat> = .constant(0),+        onSeeAllCatchingUp: (() -> Void)? = nil,         libraryHasBeenRead: Bool = false,         onOpenAnnouncement: @escaping (TodayAnnouncement) -> Void = { _ in },         onSelect: @escaping (UUID) -> Void,@@ -184,6 +192,9 @@ struct TodayView: View {         self.selectedEntryID = selectedEntryID         self.showsSky = showsSky         self.libraryHasBeenRead = libraryHasBeenRead+        self.isWide = isWide+        self._scrollOffset = scrollOffset+        self.onSeeAllCatchingUp = onSeeAllCatchingUp         self.onOpenAnnouncement = onOpenAnnouncement         self.onSelect = onSelect         self.onTeach = onTeach@@ -245,12 +256,12 @@ struct TodayView: View {             // Today v2 §3: the chrome is the list's own top content, so the             // header scrolls with the day. Fixed above it only on the             // search-miss branch, which has no list to scroll with.-            if !scrollsChrome(plan) {+            if !isWide && !scrollsChrome(plan) {                 header(plan)                 if plan.showsDayChrome { dayChrome }                 banners             }-            content(plan)+            if isWide && plan.showsDayChrome { wideDay(plan) } else { content(plan) }         }         // The screen sets no navigation title: its own header names the day         // (Today v2 §3). The compact tree hides the bar on this root; the wide@@ -261,6 +272,7 @@ struct TodayView: View {         // stack renders *behind* the stack's own opaque backing, and the sky         // never reaches the screen (verified in the simulator — pure black).         // In the wide tree the window owns it instead (Req 3.1).+        .onGeometryChange(for: CGFloat.self) { $0.size.width } action: { paneWidth = $0 }         .screenSky(showsSky)         .alert("Couldn’t update reading status", isPresented: $showingCatchUpActionError) {             Button("OK", role: .cancel) { catchUpActionError = nil }@@ -303,6 +315,41 @@ struct TodayView: View {         }     } +    private func wideDay(_ plan: TodayDisplayPlan) -> some View {+        ScrollView {+            LazyVStack(alignment: .leading, spacing: 24) {+                header(plan)+                dayChrome.frame(maxWidth: 620, alignment: .leading)+                banners+                announcementSection(plan)+                if WideLayoutPolicy.todayLayout(forPaneWidth: paneWidth) == .columns {+                    HStack(alignment: .top, spacing: 32) {+                        VStack(alignment: .leading, spacing: 24) {+                            releasesSection(plan, accent: .cyan)+                            catchingUpSection(plan)+                        }+                        LazyVStack(alignment: .leading, spacing: 16) { notedSection(plan, accent: .violet) }+                    }+                } else if WideLayoutPolicy.todayLayout(forPaneWidth: paneWidth) == .mixed {+                    releasesSection(plan, accent: .cyan)+                    HStack(alignment: .top, spacing: 32) {+                        VStack(alignment: .leading, spacing: 16) { catchingUpSection(plan) }+                        LazyVStack(alignment: .leading, spacing: 16) { notedSection(plan, accent: .violet) }+                    }+                } else {+                    releasesSection(plan, accent: .cyan)+                    catchingUpSection(plan)+                    notedSection(plan, accent: .violet)+                }+            }.padding(24).frame(maxWidth: .infinity, alignment: .leading).scrollTargetLayout()+        }+        .scrollPosition($scrollPosition)+        .onScrollGeometryChange(for: CGFloat.self) { max(0, $0.contentOffset.y + $0.contentInsets.top) } action: { _, offset in scrollOffset = offset }+        .onAppear { scrollPosition.scrollTo(y: scrollOffset) }+        .onChange(of: selectedDay) { _, _ in scrollPosition.scrollTo(y: 0) }+        .accessibilityElement(children: .contain).accessibilityIdentifier("recent-list")+    }+     // MARK: - The day's chrome (Reqs 4.1, 4.4)      /// Whether the chrome is drawn as the list's top content rather than fixed@@ -376,11 +423,12 @@ struct TodayView: View {         let selectedDay = selectedDay         return TodayHeader(             title: plan.showsDayChrome-                ? TodayDateText.header(selectedDay, calendar: calendar) : nil,+                ? (isWide ? TodayDateText.wideHeader(selectedDay, calendar: calendar) : TodayDateText.header(selectedDay, calendar: calendar)) : nil,             fullDate: TodayDateText.complete(selectedDay, calendar: calendar),             isOnCurrentDay: selectedDay == currentDay,             onSelectToday: onSelectToday,-            onShowSettings: onShowSettings)+            onShowSettings: onShowSettings,+            titlePointSize: isWide ? (RuntimePlatform.isMac ? 32 : 34) : nil)     }      // MARK: - The list@@ -491,6 +539,7 @@ struct TodayView: View {             } else {                 ReleaseShelf(                     rows: ReleaseShelfText.ordered(plan.day.releases),+                    coverSize: isWide ? (RuntimePlatform.isMac ? CGSize(width: 104, height: 148) : CGSize(width: 128, height: 182)) : ReleaseShelfItem.coverSize,                     selectedDay: plan.day.day, currentDay: currentDay, calendar: calendar,                     onSelect: onSelectWork,                     onSetNoEpisode: { id, marked in@@ -550,6 +599,7 @@ struct TodayView: View {                 if !cardRows.isEmpty {                     CatchUpCard(                         rows: CatchUpText.ordered(cardRows),+                        onSeeAll: isWide ? onSeeAllCatchingUp : nil,                         selectedDay: plan.day.day,                         currentDay: currentDay,                         calendar: calendar,@@ -646,7 +696,7 @@ struct TodayView: View {                     } else {                         // Today v2 §8: a timeline rather than cards.                         ForEach(Array(noted.rows.enumerated()), id: \.element.id) { index, row in-                            timelineRow(row, isFirst: index == 0, isLast: index == noted.rows.count - 1)+                            timelineRow(row, isFirst: index == 0, isLast: index == noted.rows.count - 1).id(row.id)                         }                     }                 } header: {@@ -1006,14 +1056,7 @@ struct TodayView: View {     /// Work set blocking it (Q45), because its own sheet is unreachable until     /// that one resolves.     private func duplicateSetKey(for row: TodayPresentationRow) -> DuplicateSetKey? {-        guard let route = row.duplicateRoute else { return nil }-        switch route {-        case .sheet, .merge:-            return presentation.duplicateWorkload-                .item(for: row.id, type: .entry)?.key-        case .blockedByWorkSet(let blocking):-            return blocking-        }+        TodayEntryPills.resolutionKey(for: row, workload: presentation.duplicateWorkload)     }      /// Req 4.1: the count of affected records, and the route to the screen that
Asterism/Asterism/Views/WorkDetailView.swift Modified +175 / -58
diff --git a/Asterism/Asterism/Views/WorkDetailView.swift b/Asterism/Asterism/Views/WorkDetailView.swiftindex 31c128b6..764e0d7d 100644--- a/Asterism/Asterism/Views/WorkDetailView.swift+++ b/Asterism/Asterism/Views/WorkDetailView.swift@@ -25,6 +25,8 @@ import UniformTypeIdentifiers /// one of the four that is a read action, and it is the only one that stays in /// view mode. struct WorkDetailView: View {+    let focusedEntryID: UUID?+    @State private var detailWidth: CGFloat = 0     @State private var model: WorkDetailModel     @State private var pendingLatestRefresh = false     @State private var isPickingReturnDate = false@@ -140,6 +142,7 @@ struct WorkDetailView: View {      init(         model: WorkDetailModel,+        focusedEntryID: UUID? = nil,         currentDay: CivilDay,         calendar: Calendar,         lastSavedLatestWorkID: UUID? = nil,@@ -155,6 +158,7 @@ struct WorkDetailView: View {         showsSky: Bool = true,         extraction: CharacterExtractionCoordinator? = nil     ) {+        self.focusedEntryID = focusedEntryID         _model = State(initialValue: model)         self.currentDay = currentDay         self.calendar = calendar@@ -223,6 +227,7 @@ struct WorkDetailView: View {         // `app-intents` Req 4.5: edit mode, and every sheet this screen raises,         // hold the reader's place against an open intent.         .intentEditSession(active: model.isEditing || presentsSheet)+        .onGeometryChange(for: CGFloat.self) { $0.size.width } action: { detailWidth = $0 }         .screenSky(showsSky)         .task { await model.load() }         .onChange(of: latestSaveGeneration) { _, newGeneration in@@ -342,9 +347,109 @@ struct WorkDetailView: View {         }     } +    @ViewBuilder+    private func latestReleasedControl(_ work: WorkSnapshot) -> some View {+        if !model.isEditing,+           work.readingStatus == .reading || work.readingStatus == .catchingUp,+           let onSetLatest+        {+            Button { onSetLatest(work.id) } label: {+                HStack(alignment: .firstTextBaseline, spacing: 10) {+                    Text("Latest released")+                        .foregroundStyle(AsterismColors.secondaryText)+                    Spacer(minLength: 0)+                    Text(latestReleasedLine(work))+                        .foregroundStyle(AsterismColors.cyan)+                    Image(systemName: "chevron.right")+                        .font(.caption.weight(.semibold))+                        .accessibilityHidden(true)+                }+                .font(.subheadline)+                .fixedSize(horizontal: false, vertical: true)+                .frame(maxWidth: .infinity, minHeight: AsterismLayout.minHitTarget)+                .contentShape(Rectangle())+            }+            .buttonStyle(.plain)+            .accessibilityIdentifier("work-detail-latest-released")+        }+    }++    @ViewBuilder+    private func verdictContent(_ work: WorkSnapshot) -> some View {+        if work.readingStatus.isDone, !M2Unicode.isBlank(work.verdict) {+            VStack(alignment: .leading, spacing: 4) {+                Text("Verdict")+                    .font(.caption)+                    .foregroundStyle(AsterismColors.secondaryText)+                Text(work.verdict)+                    .font(.subheadline)+                    .foregroundStyle(AsterismColors.noteText)+                    .lineSpacing(4)+                    .fixedSize(horizontal: false, vertical: true)+            }+            .frame(maxWidth: .infinity, alignment: .leading)+            .accessibilityElement(children: .contain)+            .accessibilityIdentifier("work-detail-verdict")+        }+    }++    private func wideIdentity(_ work: WorkSnapshot) -> some View {+        VStack(alignment: .leading, spacing: 12) {+            if let thumbnail = work.thumbnail {+                ThumbnailSlot(workID: work.id, identity: thumbnail, baseSize: CGSize(width: 132, height: 186), trailingGap: 0, marker: LayoutMarker.workDetailCover)+            }+            Text(work.displayTitle).font(.system(size: 24, design: .serif)).foregroundStyle(AsterismColors.primaryText)+                .accessibilityIdentifier("work-detail-title")+            FlowLayout(spacing: 6) {+                if let name = work.typeDisplay.name, let kind = WorkTypePresentation.pillKind(for: work.typeDisplay.kind) { Text(name).constellationPill(kind) }+                if ReadingStatusPresentation.systemImage(work.readingStatus) == nil {+                    Text(ReadingStatusPresentation.name(work.readingStatus)).constellationPill(.count)+                }+            }+            metaLine+        }+    }+    private func wideMetadata(_ work: WorkSnapshot) -> some View {+        VStack(alignment: .leading, spacing: 12) {+            HStack { siteIdentityRow(work); linkGlyph }+            latestReleasedControl(work)+            if !work.releaseDays.isEmpty {+                Label(ReleaseDaysText.abbreviated(work.releaseDays, calendar: calendar), systemImage: "calendar").font(.caption).foregroundStyle(AsterismColors.secondaryText)+            }+            ForEach(model.credits) { creditLineRow($0) }+            FlowLayout(spacing: 6) { ForEach(work.genreTags, id: \.self) { Text($0).constellationPill(.genreTag) } }+            seriesSection+            if work.series == nil { Button("Add to series…") { model.beginEditing() }.font(.caption).foregroundStyle(AsterismColors.cyan) }+            verdictContent(work)+            if !work.genericNotes.isEmpty { Text(work.genericNotes).font(.subheadline).foregroundStyle(AsterismColors.noteText) }+        }.padding(16).constellationCard()+    }++    @ViewBuilder private func progressCard(_ work: WorkSnapshot) -> some View {+        if work.readingStatus == .catchingUp {+            let progress = CatchUpProgress.build(work: work, day: currentDay, calendar: calendar)+            VStack(alignment: .leading, spacing: 12) {+                if let read = progress.lastRead, let latest = progress.effectiveLatest, latest > 0 {+                    ProgressView(value: Double(read), total: Double(latest)).tint(AsterismColors.cyan)+                }+                Text(progress.behind.map { "\($0) behind" } ?? "Latest unknown").font(.caption).foregroundStyle(AsterismColors.secondaryText)+                Button(progress.lastRead.map { "Continue at " + ChapterNumberText.short($0 + 1, type: work.typeDisplay) + " ↗" } ?? "Continue ↗") {+                    if let url = work.primaryURL { openURL(url) }+                }+                .buttonStyle(.borderedProminent).disabled(work.primaryURL == nil)+                .accessibilityIdentifier("work-detail-continue")+                if let onSetLatest {+                    Button("Set latest…") { onSetLatest(work.id) }.buttonStyle(.plain).foregroundStyle(AsterismColors.cyan)+                        .accessibilityIdentifier("work-detail-set-latest")+                }+            }.padding(16).constellationCard().constellationListRow()+        }+    }+     @ViewBuilder     private func readingSections(_ work: WorkSnapshot) -> some View {         viewHeaderSection(work)+        progressCard(work)         seriesSection         openLastNotedSection         charactersSection@@ -361,6 +466,10 @@ struct WorkDetailView: View {         // column.         ScrollViewReader { proxy in             workList(work)+                .task(id: focusedEntryID) {+                    guard let focusedEntryID else { return }+                    proxy.scrollTo(focusedEntryID, anchor: .center)+                }                 // A refusal appearing, or moving between the field and the                 // message row.                 .onChange(of: model.refusalTarget) { _, target in@@ -380,20 +489,42 @@ struct WorkDetailView: View {      @ViewBuilder     private func workList(_ work: WorkSnapshot) -> some View {-        List {-            if model.isReadOnly { duplicateReviewSection }-            tornRecordsSection-            proposalsIndicatorSection--            if model.isEditing {-                editSections+        Group {+            if !model.isEditing && WideLayoutPolicy.workDetailLayout(forWidth: detailWidth) == .columns {+                ScrollView {+                    VStack(alignment: .leading, spacing: 16) {+                        if model.isReadOnly { duplicateReviewSection }+                        tornRecordsSection+                        proposalsIndicatorSection+                        HStack(alignment: .top, spacing: 32) {+                            VStack(alignment: .leading, spacing: 20) {+                                wideIdentity(work)+                                progressCard(work)+                                wideMetadata(work)+                                openLastNotedSection+                                charactersSection+                                placesSection+                                relatedWorksSection+                            }.frame(width: 300)+                            LazyVStack(alignment: .leading, spacing: 0) { chapterSection }+                                .frame(maxWidth: .infinity, alignment: .leading)+                        }+                        errorSection+                    }.padding(16)+                }             } else {-                readingSections(work)+                List {+                    if model.isReadOnly { duplicateReviewSection }+                    tornRecordsSection+                    proposalsIndicatorSection+                    if model.isEditing { editSections } else { readingSections(work) }+                    errorSection+                }             }--            errorSection         }         // Req 8.1: the Works tab's sky shows through the pushed screen too.+        .frame(maxWidth: detailWidth >= 860 && !model.isEditing ? 1040 : WideLayoutPolicy.workMeasure)+        .frame(maxWidth: .infinity)         .scrollContentBackground(.hidden)         // Req 3.3: and on the Mac this list *is* the detail column, so the         // alternating row backgrounds would stripe the sky it shows through.@@ -549,7 +680,7 @@ struct WorkDetailView: View {                 if let thumbnail = work.thumbnail {                     ThumbnailSlot(                         workID: work.id, identity: thumbnail,-                        baseSize: AsterismLayout.coverHeaderSize,+                        baseSize: detailWidth >= 860 ? CGSize(width: 132, height: 186) : AsterismLayout.coverHeaderSize,                         cornerRadius: AsterismLayout.coverRadius,                         trailingGap: 0,                         marker: LayoutMarker.workDetailCover)@@ -596,29 +727,7 @@ struct WorkDetailView: View {                     }                 } -                if !model.isEditing,-                   work.readingStatus == .reading || work.readingStatus == .catchingUp,-                   let onSetLatest-                {-                    Button { onSetLatest(work.id) } label: {-                        HStack(alignment: .firstTextBaseline, spacing: 10) {-                            Text("Latest released")-                                .foregroundStyle(AsterismColors.secondaryText)-                            Spacer(minLength: 0)-                            Text(latestReleasedLine(work))-                                .foregroundStyle(AsterismColors.cyan)-                            Image(systemName: "chevron.right")-                                .font(.caption.weight(.semibold))-                                .accessibilityHidden(true)-                        }-                        .font(.subheadline)-                        .fixedSize(horizontal: false, vertical: true)-                        .frame(maxWidth: .infinity, minHeight: AsterismLayout.minHitTarget)-                        .contentShape(Rectangle())-                    }-                    .buttonStyle(.plain)-                    .accessibilityIdentifier("work-detail-latest-released")-                }+                latestReleasedControl(work)                  // Q96: the credits read as the work's top-level metadata,                 // beside the site rather than as a section of their own —@@ -657,21 +766,7 @@ struct WorkDetailView: View {                 // the work's own notes. Shown only where there is one to show —                 // Req 2.5 keeps a stored verdict but hides it while the reader                 // is back on `reading`.-                if work.readingStatus.isDone, !M2Unicode.isBlank(work.verdict) {-                    VStack(alignment: .leading, spacing: 4) {-                        Text("Verdict")-                            .font(.caption)-                            .foregroundStyle(AsterismColors.secondaryText)-                        Text(work.verdict)-                            .font(.subheadline)-                            .foregroundStyle(AsterismColors.noteText)-                            .lineSpacing(4)-                            .fixedSize(horizontal: false, vertical: true)-                    }-                    .frame(maxWidth: .infinity, alignment: .leading)-                    .accessibilityElement(children: .contain)-                    .accessibilityIdentifier("work-detail-verdict")-                }+                verdictContent(work)                  // The work's own notes read as the lede of the page: a                 // paragraph, no card and no section header of its own. Absent@@ -1706,15 +1801,37 @@ struct WorkDetailView: View {             let lastID = rows.last?.id             Section {                 ForEach(rows) { row in-                    WorkChapterSpineRow(-                        row: row,-                        isFirst: row.id == firstID,-                        isLast: row.id == lastID,-                        onSelectEntry: onSelectEntry)-                        // Zero vertical inset: the spacing between rows is the-                        // row's own padding, so consecutive rail segments meet.-                        .constellationListRow(-                            insets: EdgeInsets(top: 0, leading: 16, bottom: 0, trailing: 16))+                    VStack(alignment: .leading, spacing: 0) {+                        WorkChapterSpineRow(+                            row: row,+                            isFirst: row.id == firstID,+                            isLast: row.id == lastID,+                            onSelectEntry: onSelectEntry)+                            // Zero vertical inset: the spacing between rows is the+                            // row's own padding, so consecutive rail segments meet.+                            .constellationListRow(+                                insets: EdgeInsets(top: 0, leading: 16, bottom: 0, trailing: 16))+                            .padding(focusedEntryID == row.id ? 8 : 0)+                            .background(focusedEntryID == row.id ? AsterismColors.cyan.opacity(0.09) : .clear)+                            .overlay {+                                if focusedEntryID == row.id {+                                    RoundedRectangle(cornerRadius: 8).stroke(AsterismColors.cyan.opacity(0.5), lineWidth: 1)+                                        .uiTestMarker("work-detail-focused-entry-" + row.id.uuidString).allowsHitTesting(false)+                                }+                            }+                        if focusedEntryID == row.id {+                            HStack(spacing: 12) {+                                Circle().fill(AsterismColors.cyan).frame(width: 8, height: 8).shadow(color: AsterismColors.cyan, radius: 6)+                                if let rating = row.rating { Text(rating == .up ? "▲" : "▼").foregroundStyle(AsterismColors.cyan) }+                                Button("Edit") { onSelectEntry?(row.id) }+                                if let url = model.work?.entries.first(where: { $0.id == row.id })?.rawURLString, let url = URL(string: url) {+                                    Button("Open chapter ↗") { openURL(url) }+                                }+                            }.font(.caption).constellationListRow()+                        }+                    }+                    .id(row.id)+                    .constellationListRow(insets: EdgeInsets(top: 0, leading: 16, bottom: 0, trailing: 16))                 }             } header: {                 chapterSectionHeader
Asterism/Asterism/Views/WorksGroupView.swift Modified +32 / -1
diff --git a/Asterism/Asterism/Views/WorksGroupView.swift b/Asterism/Asterism/Views/WorksGroupView.swiftindex 64ee687b..15a37ae8 100644--- a/Asterism/Asterism/Views/WorksGroupView.swift+++ b/Asterism/Asterism/Views/WorksGroupView.swift@@ -32,6 +32,7 @@ struct WorksSearchContent<Hub: View>: View {     let group: WorksGroup?     let isHub: Bool     @ViewBuilder let hub: () -> Hub+    @State private var statusError: String?     @State private var query = ""     @State private var tokens: [WorksSearchToken] = []     @AppStorage private var storedSort: String@@ -63,9 +64,19 @@ struct WorksSearchContent<Hub: View>: View {         return (WorksGroupSort(rawValue: storedSort) ?? .groupDefault).label(group: group).lowercased()     } +    private var subtitle: String {+        let base = "\(members.count) works · \(sortPhrase)"+        guard let group else { return base }+        let stat = library.tileStat(group, members: members)+        return stat.isEmpty || stat == "\(members.count) works" ? base : base + " · " + stat+    }+     var body: some View {         content             .screenSky(library.showsSky)+            .alert("Couldn’t update reading status", isPresented: Binding(get: { statusError != nil }, set: { if !$0 { statusError = nil } })) {+                Button("OK", role: .cancel) { statusError = nil }+            } message: { Text(statusError ?? "") }             .modifier(WorksTokenSearch(text: $query, tokens: $tokens, suggestions: suggestions,                 prompt: isHub ? "Search \(library.snapshot.works.count) works" : "Search in \(group?.title ?? "All works")",                 focusRequest: library.searchFocusRequest))@@ -125,10 +136,30 @@ struct WorksSearchContent<Hub: View>: View {         } else {             List {                 if !isHub {-                    Text("\(members.count) works · \(sortPhrase)")+                    VStack(alignment: .leading, spacing: 6) {+                        Text(group?.title ?? "All works").font(AsterismTypography.serifLargeTitle).foregroundStyle(AsterismColors.primaryText)+                        Text(subtitle)+                    }                         .font(.caption).foregroundStyle(AsterismColors.secondaryText)                         .constellationListRow()                 }+                if group == .catchingUp {+                    ForEach(rows.filter { CatchUpProgress.build(work: $0, day: library.currentDay, calendar: library.calendar).state == .caughtUp }, id: \.id) { work in+                        VStack(alignment: .leading, spacing: 8) {+                            Text("You're caught up with " + work.displayTitle).font(AsterismTypography.serif(.subheadline))+                            HStack {+                                Button("Move to Reading") {+                                    Task {+                                        do { _ = try await library.onSetReadingStatus(work.id, .reading) }+                                        catch { statusError = error.localizedDescription }+                                    }+                                }+                                Button("Not yet") { library.onSetLatest(work.id) }+                            }.buttonStyle(.bordered)+                        }.padding(12).constellationCard().constellationListRow()+                        .accessibilityIdentifier("library-caught-up-" + work.id.uuidString)+                    }+                }                 Section {                     ForEach(rows, id: \.id) { work in                         library.workButton(work, titles: library.titlesByWorkID, showsSeries: true,
Asterism/Asterism/Views/WorksView.swift Modified +10 / -1
diff --git a/Asterism/Asterism/Views/WorksView.swift b/Asterism/Asterism/Views/WorksView.swiftindex adcdd1c9..3c09e00e 100644--- a/Asterism/Asterism/Views/WorksView.swift+++ b/Asterism/Asterism/Views/WorksView.swift@@ -66,6 +66,8 @@ struct WorksView: View {     let onReturnToHub: () -> Void     let onSelectDestination: (WorksDestination) -> Void     let onChangeStatus: (UUID) -> Void+    let onSetLatest: (UUID) -> Void+    let onSetReadingStatus: (UUID, ReadingStatus) async throws -> LibraryWriteOutcome      init(         snapshot: WorksSnapshot,@@ -83,6 +85,8 @@ struct WorksView: View {         onReturnToHub: @escaping () -> Void = {},         onSelectDestination: @escaping (WorksDestination) -> Void = { _ in },         onChangeStatus: @escaping (UUID) -> Void = { _ in },+        onSetLatest: @escaping (UUID) -> Void = { _ in },+        onSetReadingStatus: @escaping (UUID, ReadingStatus) async throws -> LibraryWriteOutcome = { _, _ in .committed },         onSelectWork: @escaping (UUID) -> Void,         onSelectEntry: @escaping (UUID) -> Void,         onNewWork: @escaping (ReadingStatus) -> Void,@@ -105,6 +109,8 @@ struct WorksView: View {         _directoryModel = State(initialValue: directoryModel)         _creatorModel = State(initialValue: creatorModel)         self.snapshotGeneration = snapshotGeneration+        self.onSetLatest = onSetLatest+        self.onSetReadingStatus = onSetReadingStatus         self.onChangeStatus = onChangeStatus         self.onSelectDestination = onSelectDestination         self.onReturnToHub = onReturnToHub@@ -221,8 +227,11 @@ struct WorksView: View {         .accessibilityIdentifier("library-hub")     } -    private func tileStat(_ group: WorksGroup, members: [WorkSnapshot]) -> String {+    func tileStat(_ group: WorksGroup, members: [WorkSnapshot]) -> String {         switch group {+        case .catchingUp:+            let behind = members.compactMap { CatchUpProgress.build(work: $0, day: currentDay, calendar: calendar).behind }.reduce(0, +)+            return behind > 0 ? "~\(behind) chapters behind" : "Latest unknown"         case .reading:             let count = members.filter { WorksRowDetail.releasesToday($0, now: currentDay.date(in: calendar), calendar: calendar) }.count             return count == 0 ? "" : "\(count) release today"
Asterism/AsterismTests/AppLibraryModelEmptyLibraryTests.swift Modified +11 / -1
diff --git a/Asterism/AsterismTests/AppLibraryModelEmptyLibraryTests.swift b/Asterism/AsterismTests/AppLibraryModelEmptyLibraryTests.swiftindex 97ec4ad7..d01cf1f7 100644--- a/Asterism/AsterismTests/AppLibraryModelEmptyLibraryTests.swift+++ b/Asterism/AsterismTests/AppLibraryModelEmptyLibraryTests.swift@@ -158,10 +158,20 @@ struct AppLibraryModelEmptyLibraryTests {         defer { try? FileManager.default.removeItem(at: root) }         let model = AppLibraryModel(configuration: LibraryConfiguration(rootDirectory: root))         await model.bootstrap()+        await model.waitForLaunchTail()         try await Self.preserve("https://ex.test/read/3", into: root) +        let started = SubmissionGate()+        let held = SubmissionGate()+        defer { held.open() }+        model.beforePendingCapturePass = { started.open(); await held.wait() }         let drain = Task { await model.drainPendingCaptures() }-        let report = try await model.emptyLibrary()+        await started.wait()+        let empty = Task { try await model.emptyLibrary() }+        await yieldUntil { model.emptyLibraryInFlight }+        try #require(model.emptyLibraryInFlight)+        held.open()+        let report = try await empty.value         await drain.value          #expect(report.isCompleted)
Asterism/AsterismTests/AppLifecycleTests.swift Modified +7 / -6
diff --git a/Asterism/AsterismTests/AppLifecycleTests.swift b/Asterism/AsterismTests/AppLifecycleTests.swiftindex 380eb5c3..f9ae6d83 100644--- a/Asterism/AsterismTests/AppLifecycleTests.swift+++ b/Asterism/AsterismTests/AppLifecycleTests.swift@@ -42,23 +42,24 @@ struct AppLifecycleTests {     /// than one of these — a zone change posts the zone notification and a     /// significant-time change — and each subscriber answers with a     /// whole-library re-read, so a burst has to arrive once. Asserted in the-    /// same test as the delivery rather than beside it: the stream is a shared-    /// `static let`, so two tests subscribing to it and posting the same-    /// notification would count each other's posts.+    /// same test as the delivery rather than beside it. An isolated notification+    /// center exercises the production publisher without forcing refreshes in+    /// every AppLibraryModel another parallel test is currently using.     @Test("a locale change reaches the temporal stream, and a burst arrives once")     func localeChangeIsATemporalChange() async throws {+        let center = NotificationCenter()         var received = 0-        let subscription = AppLifecycle.temporalChange.sink { _ in received += 1 }+        let subscription = AppLifecycle.makeTemporalChange(center: center).sink { _ in received += 1 }         defer { subscription.cancel() } -        NotificationCenter.default.post(+        center.post(             name: NSLocale.currentLocaleDidChangeNotification, object: nil)         try await Task.sleep(for: .milliseconds(700))          #expect(received == 1)          for _ in 0..<4 {-            NotificationCenter.default.post(+            center.post(                 name: NSLocale.currentLocaleDidChangeNotification, object: nil)         }         try await Task.sleep(for: .milliseconds(700))
Asterism/AsterismTests/ComposedTeachingPreviewTests.swift Modified +5 / -5
diff --git a/Asterism/AsterismTests/ComposedTeachingPreviewTests.swift b/Asterism/AsterismTests/ComposedTeachingPreviewTests.swiftindex 6f5df3b6..527542ed 100644--- a/Asterism/AsterismTests/ComposedTeachingPreviewTests.swift+++ b/Asterism/AsterismTests/ComposedTeachingPreviewTests.swift@@ -85,7 +85,7 @@ struct ComposedTeachingPreviewTests {         }         let vm = Self.makeSUT(entries: entries, projections: projections)         await vm.load()-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()          #expect(vm.unresolvedURLCaptures.count == 2)         #expect(Set(vm.unresolvedURLCaptures.map(\.entryID)) == Set(ids.prefix(2)))@@ -108,7 +108,7 @@ struct ComposedTeachingPreviewTests {         }         let vm = Self.makeSUT(entries: entries, projections: projections)         await vm.load()-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()          let shown = Set(vm.previewRows.map(\.entryID))         #expect(shown.contains(ids[7]))@@ -124,7 +124,7 @@ struct ComposedTeachingPreviewTests {             entries: ids.enumerated().map { Self.basisEntry($1, index: $0 + 1) },             projections: ids.enumerated().map { Self.projection($1, index: $0 + 1) })         await vm.load()-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         #expect(vm.unresolvedURLCaptures.isEmpty)         #expect(vm.previewRows.count == 3)     }@@ -149,7 +149,7 @@ struct ComposedTeachingPreviewTests {             .work(                 locator: .pathBracketed(                     left: .literal(ExactScalarString("s")), right: .unanchored)))-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()          #expect(vm.identityKeyChanges.count == 1)         #expect(vm.identityKeyChanges.first?.fromVersion == 2)@@ -177,7 +177,7 @@ struct ComposedTeachingPreviewTests {             .work(                 locator: .pathBracketed(                     left: .literal(ExactScalarString("series")), right: .unanchored)))-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()          #expect(vm.identityKeyChanges.isEmpty)         #expect(vm.identityKeyChangeNotice == nil)
Asterism/AsterismTests/ComposedTeachingViewModelTests.swift Modified +47 / -42
diff --git a/Asterism/AsterismTests/ComposedTeachingViewModelTests.swift b/Asterism/AsterismTests/ComposedTeachingViewModelTests.swiftindex a805035f..a7ce7b09 100644--- a/Asterism/AsterismTests/ComposedTeachingViewModelTests.swift+++ b/Asterism/AsterismTests/ComposedTeachingViewModelTests.swift@@ -152,12 +152,12 @@ struct ComposedTeachingViewModelTests {     func pendingAnchoringBlocksConfirm() async throws {         let (vm, mock) = makeSUT(contract: try Self.chapterBearingContract())         await vm.load()-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         #expect(vm.canConfirm)         let projections = mock.projectComposedTeachingCallCount          vm.updateURLRule(Self.pendingOutcome())-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()          #expect(!vm.canConfirm)         let message = try #require(vm.urlAnchoringPendingMessage)@@ -181,7 +181,7 @@ struct ComposedTeachingViewModelTests {     func collapseIsIgnoredWhileTheAnchoringPends() async throws {         let (vm, _) = makeSUT(contract: try Self.chapterBearingContract())         await vm.load()-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         vm.expandDisclosure()         #expect(vm.disclosureState == .expanded) @@ -196,7 +196,7 @@ struct ComposedTeachingViewModelTests {          // Completing the pair must not snap the section shut.         vm.updateURLRule(URLOutcome(status: .valid(.sequence(locator: Self.queryLocator))))-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         #expect(vm.urlAnchoringPendingMessage == nil)         #expect(vm.urlDisclosureExpanded)         #expect(vm.disclosureState == .expanded)@@ -217,7 +217,7 @@ struct ComposedTeachingViewModelTests {         // trigger owns the disclosure.         let (vm, _) = makeSUT()         await vm.load()-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         #expect(vm.chapterUnsourced)         #expect(vm.urlDisclosureExpanded, "auto-expanded as the remedy") @@ -234,7 +234,7 @@ struct ComposedTeachingViewModelTests {         // Back to a settled, chapter-less URL side: the selection left and         // re-entered the unsourced state, so the remedy opens the section again.         vm.updateURLRule(URLOutcome(status: .cleared))-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         #expect(vm.chapterUnsourced)         #expect(vm.urlDisclosureExpanded)         #expect(vm.disclosureState == .expanded)@@ -244,14 +244,14 @@ struct ComposedTeachingViewModelTests {     func unauthorableSelectionBlocksConfirm() async throws {         let (vm, mock) = makeSUT(contract: try Self.chapterBearingContract())         await vm.load()-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         let projections = mock.projectComposedTeachingCallCount          vm.updateURLRule(             URLOutcome(                 status: .unauthorable(                     message: ComposedTeachingPresentation.componentUnauthorableNotice)))-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()          #expect(!vm.canConfirm)         #expect(@@ -266,7 +266,7 @@ struct ComposedTeachingViewModelTests {         // cleared URL rule leaves the chapter unsourced.         let (vm, _) = makeSUT()         await vm.load()-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         #expect(vm.chapterUnsourced)         #expect(vm.urlSelectionSummary == nil) @@ -300,7 +300,7 @@ struct ComposedTeachingViewModelTests {     func pendingDoesNotWarnAboutRemoval() async throws {         let (vm, _) = makeSUT(contract: Self.makeContract(currentURLRule: Self.optionalSequenceBasis()))         await vm.load()-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         #expect(vm.sequencePresenceRemovalMessage == nil, "the declaration is still in force")          vm.updateURLRule(Self.pendingOutcome())@@ -325,11 +325,11 @@ struct ComposedTeachingViewModelTests {     func pendingAnchoringBlocksTheAcknowledgmentPath() async throws {         let (vm, mock) = makeSUT(contract: Self.makeContract(requiresAck: true))         await vm.load()-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         let projections = mock.projectComposedTeachingCallCount          vm.updateURLRule(Self.pendingOutcome())-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         await vm.acknowledgeAndConfirm()          #expect(mock.projectComposedTeachingCallCount == projections)@@ -341,11 +341,11 @@ struct ComposedTeachingViewModelTests {     func validOutcomePreviews() async throws {         let (vm, mock) = makeSUT(contract: try Self.chapterBearingContract())         await vm.load()-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         let projections = mock.projectComposedTeachingCallCount          vm.updateURLRule(URLOutcome(status: .valid(.sequence(locator: Self.queryLocator))))-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()          #expect(vm.urlRuleDefinition == .sequence(locator: Self.queryLocator))         #expect(vm.urlAnchoringPendingMessage == nil)@@ -387,7 +387,7 @@ struct ComposedTeachingViewModelTests {         let contract = Self.makeContract(requiresAck: true)         let (vm, mock) = makeSUT(contract: contract)         await vm.load()-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         #expect(vm.state == .previewReady)         #expect(vm.requiresUnsettledAcknowledgment) @@ -403,7 +403,7 @@ struct ComposedTeachingViewModelTests {         let contract = Self.makeContract(requiresAck: true)         let (vm, mock) = makeSUT(contract: contract)         await vm.load()-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         await vm.confirm()         #expect(vm.state == .requiresAcknowledgment) @@ -419,7 +419,7 @@ struct ComposedTeachingViewModelTests {         let contract = Self.makeContract(requiresAck: true)         let (vm, _) = makeSUT(contract: contract, commitOutcome: .requiresAcknowledgment)         await vm.load()-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         // Force straight to commit by acknowledging; the Core gate still refuses.         await vm.acknowledgeAndConfirm()         #expect(vm.state == .requiresAcknowledgment)@@ -431,13 +431,13 @@ struct ComposedTeachingViewModelTests {     func titleEditAdvancesGenerationAndPublishes() async throws {         let (vm, _) = makeSUT()         await vm.load()-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         let baseGeneration = vm.generation          vm.cycleTitleRole(at: 0)         #expect(vm.generation > baseGeneration) -        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         #expect(vm.state == .previewReady)         #expect(vm.previewGeneration == vm.generation)     }@@ -446,21 +446,26 @@ struct ComposedTeachingViewModelTests {     func obsoleteGenerationCannotPublish() async throws {         let (vm, mock) = makeSUT()         await vm.load()-        try await Task.sleep(for: .milliseconds(30))+        await vm.waitForPreview() -        // First edit projects slowly.-        mock.composedProjectionDelay = .milliseconds(150)-        vm.setURLRuleDefinition(.sequence(locator: .query(name: ExactScalarString("slow"))))+        let started = SubmissionGate()+        let held = SubmissionGate()+        defer { held.open() }+        let slowRule = URLRuleDefinition.sequence(locator: .query(name: ExactScalarString("slow")))+        mock.composedProjectionHold = { request in+            if request.urlDefinition == slowRule { started.open(); await held.wait() }+        }+        vm.setURLRuleDefinition(slowRule)         let slowGeneration = vm.generation+        await started.wait() -        // Second edit projects immediately and should win.-        mock.composedProjectionDelay = nil         vm.setURLRuleDefinition(.sequence(locator: .query(name: ExactScalarString("fast"))))         let fastGeneration = vm.generation         #expect(fastGeneration > slowGeneration)--        try await Task.sleep(for: .milliseconds(250))+        await vm.waitForPreview()+        held.open()         #expect(vm.previewGeneration == fastGeneration)+     }      @Test("A preview superseded before it runs never reaches the repository (T-2327)")@@ -735,11 +740,11 @@ struct ComposedTeachingViewModelTests {                 currentTitleRule: Self.titleRuleBasis(definition: definition, trimPrefix: "TtH - ")),             entry: Self.makeEntry(title: "TtH - Story - Real Title"))         await vm.load()-        try await Task.sleep(for: .milliseconds(30))+        await vm.waitForPreview()          // Touch only the URL side, exactly as a URL-focused re-teach would.         vm.setURLRuleDefinition(.sequence(locator: .query(name: ExactScalarString("chapter"))))-        try await Task.sleep(for: .milliseconds(30))+        await vm.waitForPreview()          let request = try #require(mock.lastProjectComposedRequest)         #expect(request.titleDefinition == definition)@@ -837,7 +842,7 @@ struct ComposedTeachingViewModelTests {             contract: Self.makeContract(currentTitleRule: stored),             entry: Self.makeEntry(title: "Watch Story :: Episode 12 | Tapas Comics"))         await vm.load()-        try await Task.sleep(for: .milliseconds(30))+        await vm.waitForPreview()          #expect(vm.subdividedSegments.isEmpty)         #expect(vm.titleRoles == [.work, .work, .work])@@ -846,7 +851,7 @@ struct ComposedTeachingViewModelTests {         #expect(vm.effectiveTitleRule?.definition == stored.definition)         #expect(vm.trimPrefix == "Read ")         vm.setURLRuleDefinition(.sequence(locator: .query(name: ExactScalarString("chapter"))))-        try await Task.sleep(for: .milliseconds(30))+        await vm.waitForPreview()         let request = try #require(mock.lastProjectComposedRequest)         #expect(request.titleDefinition == stored.definition)         #expect(request.trimPrefix == "Read ")@@ -880,10 +885,10 @@ struct ComposedTeachingViewModelTests {             contract: Self.makeContract(currentTitleRule: stored),             entry: Self.makeEntry(title: "Read Story :: Episode 12 | Tapas Comics"))         await vm.load()-        try await Task.sleep(for: .milliseconds(30))+        await vm.waitForPreview()          vm.setURLRuleDefinition(.sequence(locator: .query(name: ExactScalarString("chapter"))))-        try await Task.sleep(for: .milliseconds(30))+        await vm.waitForPreview()          let request = try #require(mock.lastProjectComposedRequest)         #expect(request.titleDefinition == stored.definition)@@ -983,12 +988,12 @@ struct ComposedTeachingViewModelTests {             contract: Self.makeContract(currentTitleRule: Self.titleRuleBasis(definition: definition)),             entry: Self.makeEntry(title: "TtH - Story - Real Title"))         await vm.load()-        try await Task.sleep(for: .milliseconds(30))+        await vm.waitForPreview()          // The seeded selection is chapter, chapter, Work; dropping the first         // segment authors a different rule from the retained one.         vm.cycleTitleRole(at: 0)-        try await Task.sleep(for: .milliseconds(30))+        await vm.waitForPreview()          let request = try #require(mock.lastProjectComposedRequest)         let expected = PatternDefinition.segment(@@ -1370,7 +1375,7 @@ struct ComposedTeachingViewModelTests {         await vm.load()         // Touch the URL side before the result lands.         vm.setURLRuleDefinition(.sequence(locator: .query(name: ExactScalarString("id"))))-        await yieldUntil { vm.titleSuggestionApplied }+        await vm.waitForSuggestion()          #expect(vm.titleSuggestionApplied)         #expect(!vm.urlSuggestionApplied)@@ -1385,7 +1390,7 @@ struct ComposedTeachingViewModelTests {         vm.suggestionAutoApplyWindow = .zero          await vm.load()-        await yieldUntil { vm.suggestionReady }+        await vm.waitForSuggestion()          #expect(!vm.titleSuggestionApplied)         #expect(vm.suggestionReady)@@ -1471,7 +1476,7 @@ struct ComposedTeachingViewModelTests {         await vm.load()         // Edit away from the suggestion, then save what the reader authored.         vm.cycleTitleRole(at: 0)-        try await Task.sleep(for: .milliseconds(30))+        await vm.waitForPreview()         await vm.confirm()          #expect(vm.state == .committed)@@ -1484,7 +1489,7 @@ struct ComposedTeachingViewModelTests {         let (coordinator, _) = await makeCoordinator(held: held)         let (vm, _) = makeSUT(entry: Self.suggestionEntry(), suggestions: coordinator)         await vm.load()-        try await Task.sleep(for: .milliseconds(30))+        await vm.waitForPreview()         await vm.confirm()          #expect(vm.state == .committed)@@ -1503,7 +1508,7 @@ struct ComposedTeachingViewModelTests {         vm.suggestionAutoApplyWindow = .zero          await vm.load()-        await yieldUntil { vm.suggestionReady }+        await vm.waitForSuggestion()         #expect(!vm.urlSuggestionApplied)         #expect(vm.urlRuleDefinition == nil)         // `suggestionReady` says the hold arrived, not that the load's preview@@ -1525,11 +1530,11 @@ struct ComposedTeachingViewModelTests {         vm.suggestionAutoApplyWindow = .zero          await vm.load()-        await yieldUntil { vm.suggestionReady }+        await vm.waitForSuggestion()         // The reader authors a URL rule of their own; the held suggestion was         // never applied, so only the commit can dismiss this side.         vm.setURLRuleDefinition(.sequence(locator: .query(name: ExactScalarString("id"))))-        try await Task.sleep(for: .milliseconds(30))+        await vm.waitForPreview()         #expect(!coordinator.isDismissed(hostname: Self.hostname, side: .url))          await vm.confirm()
Asterism/AsterismTests/Helpers/MockLibraryProvider.swift Modified +2 / -0
diff --git a/Asterism/AsterismTests/Helpers/MockLibraryProvider.swift b/Asterism/AsterismTests/Helpers/MockLibraryProvider.swiftindex 4a749d95..abbd5395 100644--- a/Asterism/AsterismTests/Helpers/MockLibraryProvider.swift+++ b/Asterism/AsterismTests/Helpers/MockLibraryProvider.swift@@ -828,6 +828,7 @@ final class MockLibraryProvider: LibraryProviding, @unchecked Sendable {      /// Optional delay injected into composed projection for generation tests.     var composedProjectionDelay: Duration?+    var composedProjectionHold: (@Sendable (ComposedTeachingRequest) async -> Void)?      func projectComposedTeaching(hostname: String, request: ComposedTeachingRequest) async throws -> ComposedTeachingContract {         recorderLock.withLock {@@ -835,6 +836,7 @@ final class MockLibraryProvider: LibraryProviding, @unchecked Sendable {             storedLastComposedRequest = request             storedComposedRequests.append(request)         }+        await composedProjectionHold?(request)         if let delay = composedProjectionDelay { try await Task.sleep(for: delay) }         // Mirror the real repository: the returned contract carries the request         // that produced it, so acknowledgment state round-trips into the commit.
Asterism/AsterismTests/NavigationActionsTests.swift Modified +2 / -2
diff --git a/Asterism/AsterismTests/NavigationActionsTests.swift b/Asterism/AsterismTests/NavigationActionsTests.swiftindex 9082e0c5..9457c3eb 100644--- a/Asterism/AsterismTests/NavigationActionsTests.swift+++ b/Asterism/AsterismTests/NavigationActionsTests.swift@@ -48,10 +48,10 @@ struct NavigationActionsTests {      // MARK: - New Work (⌘N) -    @Test("New Work belongs to the Works tab and nowhere else")+    @Test("New Work is available on Today and Library")     func newWorkIsWorksOnly() {         #expect(Self.actions(tab: .works).newWork != nil)-        #expect(Self.actions(tab: .today).newWork == nil)+        #expect(Self.actions(tab: .today).newWork != nil)         #expect(Self.actions(tab: .stats).newWork == nil)     } 
Asterism/AsterismTests/OptionalSequenceTeachingMessagesTests.swift Modified +23 / -23
diff --git a/Asterism/AsterismTests/OptionalSequenceTeachingMessagesTests.swift b/Asterism/AsterismTests/OptionalSequenceTeachingMessagesTests.swiftindex 2f1418d6..559011be 100644--- a/Asterism/AsterismTests/OptionalSequenceTeachingMessagesTests.swift+++ b/Asterism/AsterismTests/OptionalSequenceTeachingMessagesTests.swift@@ -72,7 +72,7 @@ struct OptionalSequenceTeachingMessagesTests {         let vm = Self.makeSUT(             exampleURL: Self.url("Story-30975"), storedURLRule: Self.combined(.required))         await vm.load()-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()          let message = try #require(vm.unteachableCombinedShapeMessage)         #expect(message == ComposedTeachingViewModel.unteachableCombinedShapeNotice)@@ -86,11 +86,11 @@ struct OptionalSequenceTeachingMessagesTests {         let vm = Self.makeSUT(             exampleURL: Self.url("Story-30975"), storedURLRule: Self.combined(.required))         await vm.load()-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         #expect(vm.unteachableCombinedShapeMessage != nil)          vm.setURLRuleDefinition(Self.combined(.optional))-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         #expect(vm.unteachableCombinedShapeMessage == nil)     } @@ -99,7 +99,7 @@ struct OptionalSequenceTeachingMessagesTests {         let vm = Self.makeSUT(             exampleURL: Self.url("Story-30975-105"), storedURLRule: Self.combined(.required))         await vm.load()-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         #expect(vm.unteachableCombinedShapeMessage == nil)     } @@ -112,11 +112,11 @@ struct OptionalSequenceTeachingMessagesTests {         let vm = Self.makeSUT(             exampleURL: Self.url("Story-30975"), storedURLRule: Self.combined(.required))         await vm.load()-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         #expect(vm.unteachableCombinedShapeMessage != nil)          vm.setURLRuleDefinition(nil)-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         #expect(vm.unteachableCombinedShapeMessage == nil)         #expect(vm.storedURLRuleDescription != nil, "the stored rule is untouched")     }@@ -127,10 +127,10 @@ struct OptionalSequenceTeachingMessagesTests {     func unsplittableComponentOnAnUntaughtSite() async throws {         let vm = Self.makeSUT(exampleURL: "https://example.test/28614/read")         await vm.load()-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         vm.setURLRuleDefinition(             .work(locator: .pathBracketed(left: .start, right: .unanchored)))-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()          #expect(vm.chapterUnsourced)         #expect(vm.unteachableCombinedShapeMessage != nil)@@ -140,10 +140,10 @@ struct OptionalSequenceTeachingMessagesTests {     func splittableComponentIsSilent() async throws {         let vm = Self.makeSUT(exampleURL: Self.url("Story-30975-105"))         await vm.load()-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         vm.setURLRuleDefinition(             .work(locator: .pathBracketed(left: .start, right: .unanchored)))-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()          #expect(vm.chapterUnsourced)         #expect(vm.unteachableCombinedShapeMessage == nil)@@ -156,12 +156,12 @@ struct OptionalSequenceTeachingMessagesTests {         let vm = Self.makeSUT(             exampleURL: Self.url("Story-30975-105"), storedURLRule: Self.combined(.optional))         await vm.load()-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         // Nothing has been removed yet.         #expect(vm.sequencePresenceRemovalMessage == nil)          vm.setURLRuleDefinition(Self.combined(.required))-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()          let warning = try #require(vm.sequencePresenceRemovalMessage)         #expect(warning == ComposedTeachingViewModel.sequencePresenceRemovalWarning)@@ -175,12 +175,12 @@ struct OptionalSequenceTeachingMessagesTests {         let vm = Self.makeSUT(             exampleURL: Self.url("Story-30975-105"), storedURLRule: Self.combined(.required))         await vm.load()-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         #expect(vm.sequencePresenceRemovalMessage == nil)          vm.setURLRuleDefinition(             .work(locator: .pathBracketed(left: .start, right: .unanchored)))-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         #expect(vm.sequencePresenceRemovalMessage == nil)     } @@ -191,10 +191,10 @@ struct OptionalSequenceTeachingMessagesTests {         let vm = Self.makeSUT(             exampleURL: Self.url("Story-30975-105"), storedURLRule: Self.combined(.optional))         await vm.load()-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         vm.setURLRuleDefinition(             .work(locator: .pathBracketed(left: .start, right: .unanchored)))-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         #expect(vm.sequencePresenceRemovalMessage != nil)     } }@@ -336,7 +336,7 @@ struct OptionalSequencePreviewTests {     func separatorFreeRowIsFlaggedPastTheCap() async throws {         let vm = Self.makeSUT()         await vm.load()-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()          #expect(vm.identityKeyChanges.isEmpty, "the fixture must not flag by key change")         #expect(vm.unresolvedURLCaptures.isEmpty, "nor by an unresolved capture")@@ -355,7 +355,7 @@ struct OptionalSequencePreviewTests {     func derivedSequenceIsDistinguished() async throws {         let vm = Self.makeSUT()         await vm.load()-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()          #expect(vm.sequenceIsDerived(for: Self.entryIDs[7]))         for index in 0..<7 {@@ -374,7 +374,7 @@ struct OptionalSequencePreviewTests {             separatorFreeAssignment: .reuse(workID: Self.workID),             separatorFreePreviousWorkID: Self.otherWorkID)         await moving.load()-        try await Task.sleep(for: .milliseconds(50))+        await moving.waitForPreview()         let movedRow = try #require(moving.previewRows.first { $0.entryID == Self.entryIDs[7] })         let moved = moving.workAttachment(for: movedRow)         #expect(moved.before == "A stray Work")@@ -396,7 +396,7 @@ struct OptionalSequencePreviewTests {             separatorFreePreviousWorkID: Self.otherWorkID,             otherWorkTitle: "The Secret Return of Alex Mack")         await vm.load()-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         let row = try #require(vm.previewRows.first { $0.entryID == Self.entryIDs[7] })         let attachment = vm.workAttachment(for: row)         #expect(attachment.before == "The Secret Return of Alex Mack")@@ -412,7 +412,7 @@ struct OptionalSequencePreviewTests {             separatorFreeAssignment: .reuse(workID: UUID()),             separatorFreePreviousWorkID: UUID())         await vm.load()-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         let row = try #require(vm.previewRows.first { $0.entryID == Self.entryIDs[7] })         let attachment = vm.workAttachment(for: row)         #expect(attachment.before == nil)@@ -436,7 +436,7 @@ struct OptionalSequencePreviewTests {                     lastParsedTitle: ExactScalarString("The Secret Return of Alex Mack"))             ])         await vm.load()-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         let row = try #require(vm.previewRows.first { $0.entryID == Self.entryIDs[7] })         #expect(row.projectedWorkID == nil)         let attachment = vm.workAttachment(for: row)@@ -453,7 +453,7 @@ struct OptionalSequencePreviewTests {             separatorFreeAssignment: .ambiguous(workIDs: [Self.workID, Self.otherWorkID]),             separatorFreePreviousWorkID: Self.otherWorkID)         await vm.load()-        try await Task.sleep(for: .milliseconds(50))+        await vm.waitForPreview()         let row = try #require(vm.previewRows.first { $0.entryID == Self.entryIDs[7] })         let attachment = vm.workAttachment(for: row)         #expect(attachment.before == "A stray Work")
Asterism/AsterismTests/PrePushNavigationRegressionTests.swift Added +96 / -0
diff --git a/Asterism/AsterismTests/PrePushNavigationRegressionTests.swift b/Asterism/AsterismTests/PrePushNavigationRegressionTests.swiftnew file mode 100644index 00000000..aff26db1--- /dev/null+++ b/Asterism/AsterismTests/PrePushNavigationRegressionTests.swift@@ -0,0 +1,96 @@+import AsterismCore+import Foundation+import Testing+@testable import Asterism++@Suite("Wide navigation review regressions")+@MainActor+struct PrePushNavigationRegressionTests {+    @Test(arguments: [AppTab.today, .stats])+    func hiddenLibraryHistoryCrossesBothLayouts(hiddenTab: AppTab) {+        let navigation = AppNavigation()+        let workID = UUID()+        navigation.selectSidebarItem(.library(.group(.catchingUp)))+        navigation.worksPath = [.work(workID), .seriesList]+        navigation.reconcileLibraryLayout(isWide: false)+        navigation.selectedTab = hiddenTab++        navigation.reconcileLibraryLayout(isWide: true)+        #expect(navigation.selectedTab == hiddenTab)+        #expect(navigation.worksPath == [.work(workID), .seriesList])+        navigation.selectedTab = .works+        #expect(navigation.selectedSidebarItem == .library(.group(.catchingUp)))++        navigation.selectedTab = hiddenTab+        navigation.reconcileLibraryLayout(isWide: false)+        #expect(navigation.selectedTab == hiddenTab)+        #expect(navigation.worksPath == [.destination(.group(.catchingUp)), .work(workID), .seriesList])+    }++    @Test func firstCollapsedLibraryStillOpensTheHub() {+        let navigation = AppNavigation()+        navigation.reconcileLibraryLayout(isWide: true)+        navigation.reconcileLibraryLayout(isWide: false)+        navigation.selectedTab = .works+        #expect(navigation.worksPath.isEmpty)+    }++    @Test func hiddenLibraryGroupWithoutADetailSurvivesCollapse() {+        let navigation = AppNavigation()+        navigation.selectSidebarItem(.library(.group(.catchingUp)))+        navigation.selectedTab = .today+        navigation.reconcileLibraryLayout(isWide: false)+        #expect(navigation.worksPath == [.destination(.group(.catchingUp))])+        #expect(navigation.selectedTab == .today)+    }++    @Test func ordinaryTodayWorkOpeningClearsInspectorAndOldNoteFocus() {+        let navigation = AppNavigation()+        let workID = UUID()+        navigation.showWork(workID, on: .today)+        navigation.todayFocusedEntryID = UUID()+        navigation.todayInspectorEntryID = UUID()+        navigation.pushWork(workID, on: .today)+        #expect(navigation.todayInspectorEntryID == nil)+        #expect(navigation.todayFocusedEntryID == nil)+        navigation.back()+        #expect(navigation.todayPath.isEmpty)++        navigation.showWork(workID, on: .today)+        navigation.todayFocusedEntryID = UUID()+        navigation.popRoute(on: .today)+        #expect(navigation.todayFocusedEntryID == nil)+    }++    @Test func inspectorAndEditorPublishDifferentDayCommandEligibility() {+        var inspector = NavigationActions(tab: .today, isWide: true, worksLoaded: true,+            subject: .entry(UUID()), newWork: {}, find: {}, export: {}, toggleSidebar: {},+            selectTab: { _ in }, showSettings: {})+        inspector.canGoBack = true+        inspector.previousDay = {}+        inspector.nextDay = {}+        inspector.goToToday = {}+        var editor = inspector+        editor.previousDay = nil+        editor.nextDay = nil+        editor.goToToday = nil+        #expect(inspector != editor)+    }++    @Test func inspectorCanResolveTheWorkSetBlockingItsNote() {+        let blocking = DuplicateSetKey(recordType: .work, memberIDs: [UUID(), UUID()])+        let row = TestFixtures.makeRecentRow(duplicateRoute: .blockedByWorkSet(blocking))+        #expect(TodayEntryPills.resolutionKey(for: row, workload: .empty) == blocking)+        #expect(TodayEntryPills.resolutionKey(for: TestFixtures.makeRecentRow(), workload: .empty) == nil)+    }++    @Test func removingTheSelectedNoteClosesItsInspector() {+        let navigation = AppNavigation()+        let entryID = UUID()+        navigation.todayInspectorEntryID = entryID+        navigation.pruneTodaySelection(visibleEntryIDs: [entryID], visibleWorkIDs: [])+        #expect(navigation.todayInspectorEntryID == entryID)+        navigation.pruneTodaySelection(visibleEntryIDs: [], visibleWorkIDs: [])+        #expect(navigation.todayInspectorEntryID == nil)+    }+}
Asterism/AsterismTests/RuleSuggestionCoordinatorTests.swift Modified +22 / -10
diff --git a/Asterism/AsterismTests/RuleSuggestionCoordinatorTests.swift b/Asterism/AsterismTests/RuleSuggestionCoordinatorTests.swiftindex 26758b01..41e54871 100644--- a/Asterism/AsterismTests/RuleSuggestionCoordinatorTests.swift+++ b/Asterism/AsterismTests/RuleSuggestionCoordinatorTests.swift@@ -25,6 +25,7 @@ struct RuleSuggestionCoordinatorTests {         private var _peakConcurrent = 0         private var _isGated = false         private var _gateWaiters: [CheckedContinuation<Void, Never>] = []+        private let cancellation = SubmissionGate()         private var _arrivalWaiters: [(count: Int, waiter: CheckedContinuation<Void, Never>)] = []          /// Answers per hostname; a hostname with no entry settles with nothing.@@ -67,6 +68,8 @@ struct RuleSuggestionCoordinatorTests {             }         } +        func waitForCancellation() async { await cancellation.wait() }+         func attempt(             hostname: String         ) async throws -> (suggestion: RuleSuggestion?, modelPhase: Duration) {@@ -82,14 +85,16 @@ struct RuleSuggestionCoordinatorTests {             defer { lock.withLock { _concurrent -= 1 } }              if isGated {-                await withCheckedContinuation { continuation in-                    let open = lock.withLock { () -> Bool in-                        guard _isGated else { return true }-                        _gateWaiters.append(continuation)-                        return false+                await withTaskCancellationHandler {+                    await withCheckedContinuation { continuation in+                        let open = lock.withLock { () -> Bool in+                            guard _isGated else { return true }+                            _gateWaiters.append(continuation)+                            return false+                        }+                        if open { continuation.resume() }                     }-                    if open { continuation.resume() }-                }+                } onCancel: { self.cancellation.open() }                 // Deliberately checked only *after* the gate opens: a real                 // attempt does not stop the instant it is cancelled either, and                 // the gap between the two is where several of these tests live.@@ -566,11 +571,15 @@ struct RuleSuggestionCoordinatorTests {             Self.candidate("a.test", capturedAt: 20), Self.candidate("b.test", capturedAt: 10),         ])         suggester.suggestions = ["b.test": Self.suggestion("b.test")]-        suggester.delay = .milliseconds(50)+        suggester.isGated = true+        defer { suggester.openGate() }          async let sweep: Void = coordinator.activationSweep()         await suggester.waitForAttempts(1)-        let delivered = await coordinator.suggestion(for: "b.test", origin: .request)+        let request = Task { await coordinator.suggestion(for: "b.test", origin: .request) }+        await suggester.waitForCancellation()+        suggester.openGate()+        let delivered = await request.value         await sweep          #expect(delivered == Self.suggestion("b.test"))@@ -605,12 +614,15 @@ struct RuleSuggestionCoordinatorTests {         let (coordinator, _, suggester, environment, _) = makeSUT(             candidates: [Self.candidate("a.test")])         suggester.suggestions = ["a.test": Self.suggestion("a.test")]-        suggester.delay = .milliseconds(50)+        suggester.isGated = true+        defer { suggester.openGate() }          async let sweep: Void = coordinator.activationSweep()         await suggester.waitForAttempts(1)         environment.elapsed = .milliseconds(250)         coordinator.resignActive()+        await suggester.waitForCancellation()+        suggester.openGate()         await sweep          #expect(coordinator.isAttempted("a.test") == false)
Asterism/AsterismTests/WideLayoutsRethinkTests.swift Added +118 / -0
diff --git a/Asterism/AsterismTests/WideLayoutsRethinkTests.swift b/Asterism/AsterismTests/WideLayoutsRethinkTests.swiftnew file mode 100644index 00000000..52cc56d2--- /dev/null+++ b/Asterism/AsterismTests/WideLayoutsRethinkTests.swift@@ -0,0 +1,118 @@+import AsterismCore+import Foundation+import SwiftUI+import Testing+@testable import Asterism++@Suite("Wide layouts rethink")+@MainActor+struct WideLayoutsRethinkTests {+    @Test func paneWidthBreakpoints() {+        #expect(WideLayoutPolicy.todayLayout(forPaneWidth: 599) == .stacked)+        #expect(WideLayoutPolicy.todayLayout(forPaneWidth: 600) == .mixed)+        #expect(WideLayoutPolicy.todayLayout(forPaneWidth: 899) == .mixed)+        #expect(WideLayoutPolicy.todayLayout(forPaneWidth: 900) == .columns)+        #expect(WideLayoutPolicy.workDetailLayout(forWidth: 859) == .singleColumn)+        #expect(WideLayoutPolicy.workDetailLayout(forWidth: 860) == .columns)+    }+    @Test func sidebarTabAndDestinationCrossingsPreserveNestedHistory() {+        let navigation = AppNavigation()+        let work = UUID()+        navigation.selectSidebarItem(.library(.group(.catchingUp)))+        navigation.worksPath = [.work(work), .seriesList]+        navigation.selectedTab = .today+        navigation.selectedTab = .works+        #expect(navigation.selectedSidebarItem == .library(.group(.catchingUp)))+        navigation.reconcileLibraryLayout(isWide: false)+        #expect(navigation.worksPath == [.destination(.group(.catchingUp)), .work(work), .seriesList])+        navigation.reconcileLibraryLayout(isWide: true)+        #expect(navigation.worksPath == [.work(work), .seriesList])+        navigation.selectSidebarItem(.library(.seriesIndex))+        #expect(navigation.worksPath.isEmpty)+    }+    @Test func todayRootAndBackKeepTheDayAndScrollButCloseInspector() {+        let navigation = AppNavigation()+        let day = CivilDay(Date(timeIntervalSince1970: 1_700_000_000), calendar: .current)+        navigation.todaySelection = .day(day)+        navigation.todayScrollAnchor = 420+        navigation.showWork(UUID(), on: .today)+        navigation.back()+        #expect(navigation.todaySelection == .day(day))+        #expect(navigation.todayScrollAnchor == 420)+        navigation.todayInspectorEntryID = UUID()+        navigation.back()+        #expect(navigation.todayInspectorEntryID == nil)+        navigation.showWork(UUID(), on: .today)+        navigation.selectSidebarItem(.today)+        #expect(navigation.todayPath.isEmpty)+    }+    @Test func restoringTypedPathsNeverRestoresAnInspector() {+        let navigation = AppNavigation()+        let work = UUID(), entry = UUID(), series = UUID()+        let today: [WorksRoute] = [.work(work), .chapter(entryID: entry)]+        let library: [WorksRoute] = [.series(id: series, originWorkID: nil), .work(work)]+        navigation.todayInspectorEntryID = entry+        navigation.restoreWideState(sidebar: "library.series", today: AppNavigation.encodePath(today), library: AppNavigation.encodePath(library))+        #expect(navigation.selectedSidebarItem == .library(.seriesIndex))+        #expect(navigation.todayPath == today)+        #expect(navigation.worksPath == library)+        #expect(navigation.todayInspectorEntryID == nil)+        #expect(SidebarItem(storedValue: "works") == .library(.group(.reading)))+        #expect(AppNavigation.decodePath("invalid").isEmpty)+        navigation.pruneRestoredSelection(hasEverImported: false, entryResolves: { _ in false }, workResolves: { _ in false })+        #expect(navigation.todayPath == today)+        navigation.pruneRestoredSelection(hasEverImported: true, entryResolves: { _ in false }, workResolves: { _ in false })+        #expect(navigation.todayPath.isEmpty)+        #expect(navigation.worksPath.isEmpty)+    }+    @Test func dayKeyboardArithmeticClosesInspector() {+        let navigation = AppNavigation()+        let day = CivilDay(Date(timeIntervalSince1970: 1_700_000_000), calendar: .current)+        navigation.todayInspectorEntryID = UUID()+        navigation.stepToday(by: 1, currentDay: day, calendar: .current)+        #expect(navigation.selectedDay(currentDay: day) == day.adding(days: 1, calendar: .current))+        #expect(navigation.todayInspectorEntryID == nil)+        navigation.stepToday(by: -1, currentDay: day, calendar: .current)+        #expect(navigation.todaySelection == .current)+    }++    @Test func entryEditorCommandsAndStatsBackAreGated() {+        let navigation = AppNavigation()+        navigation.showTodayEntry(UUID())+        #expect(!navigation.isTodayRoot)+        #expect(navigation.canGoBack)+        navigation.back()+        #expect(navigation.isTodayRoot)+        navigation.showWorksEntry(UUID())+        navigation.selectedTab = .works+        #expect(navigation.canGoBack)+        navigation.selectedTab = .stats+        #expect(!navigation.canGoBack)+    }+    @Test func wideHeaderSpellsFullWeekdayAndMonth() {+        var calendar = Calendar(identifier: .gregorian)+        calendar.timeZone = TimeZone(secondsFromGMT: 0)!+        calendar.locale = Locale(identifier: "en_AU")+        let day = CivilDay(Date(timeIntervalSince1970: 1_700_000_000), calendar: calendar)+        let title = TodayDateText.wideHeader(day, calendar: calendar)+        #expect(title.contains("Tuesday"))+        #expect(title.contains("November"))+        #expect(!TodayDateText.header(day, calendar: calendar).contains("November"))+    }++    @Test func restoringStatsRetainsTheLastLibraryDestination() {+        let navigation = AppNavigation()+        navigation.restoreWideState(sidebar: "stats", today: "", library: "", lastLibrary: .group(.catchingUp))+        navigation.selectedTab = .works+        #expect(navigation.selectedSidebarItem == .library(.group(.catchingUp)))+    }++    @Test func teachingBannerReturnsFromAPushedWorkToToday() {+        let navigation = AppNavigation()+        navigation.showWork(UUID(), on: .today)+        navigation.showActionableEntries()+        #expect(navigation.todayPath.isEmpty)+        #expect(navigation.selectedSidebarItem == .today)+        #expect(navigation.actionableFilterRequest == 1)+    }+}
Asterism/AsterismUITests/AccessibilityJourneyUITests.swift Modified +5 / -9
diff --git a/Asterism/AsterismUITests/AccessibilityJourneyUITests.swift b/Asterism/AsterismUITests/AccessibilityJourneyUITests.swiftindex 5c49f0ae..7f5352f5 100644--- a/Asterism/AsterismUITests/AccessibilityJourneyUITests.swift+++ b/Asterism/AsterismUITests/AccessibilityJourneyUITests.swift@@ -1527,7 +1527,7 @@ final class WideLayoutAccessibilityUITests: XCTestCase {         }         app.launch()         XCUIDevice.shared.orientation = .landscapeLeft-        waitFor(app.collectionViews["recent-list"], "The library opens on Recent", timeout: 60)+        waitFor(app.anyElement("recent-list"), "The library opens on Recent", timeout: 60)     }      private var recentRows: XCUIElementQuery {@@ -1665,7 +1665,7 @@ final class WideLayoutAccessibilityUITests: XCTestCase {         _ = element.waitForExistence(timeout: 15)         for _ in 0..<8 {             if element.exists, element.isHittable { return }-            app.anyElement("wide-detail-column").swipeUp()+            app.swipeUp()             _ = element.waitForExistence(timeout: 2)         }         XCTFail(message, file: file, line: line)@@ -1718,12 +1718,8 @@ final class WideLayoutAccessibilityUITests: XCTestCase {             "At \(size) the sidebar starts collapsed whatever the width (Req 8.3)",             file: file, line: line) -        let column = waitFor(-            app.anyElement("wide-list-column"), "The list column is laid out at \(size)")-        XCTAssertEqual(-            column.frame.width, accessibilityListWidth, accuracy: 1,-            "At \(size) the list column is \(Int(accessibilityListWidth)) pt (Req 8.3)",-            file: file, line: line)+        let column = waitFor(app.anyElement("recent-list"), "Today uses the full pane")+        XCTAssertGreaterThan(column.frame.width, accessibilityListWidth, "Today is no longer a narrow list column", file: file, line: line)          // "No sidebar beside the pane", asserted twice. A bare         // `XCTAssertFalse(…isHittable)` on an identifier passes for free the day@@ -1822,7 +1818,7 @@ final class WideLayoutAccessibilityUITests: XCTestCase {         _ = element.waitForExistence(timeout: 15)         for _ in 0..<8 {             if element.exists, element.isHittable { return }-            app.collectionViews["recent-list"].swipeUp()+            app.anyElement("recent-list").swipeUp()             _ = element.waitForExistence(timeout: 2)         }         XCTFail(message, file: file, line: line)
Asterism/AsterismUITests/UIJourneySupport.swift Modified +8 / -2
diff --git a/Asterism/AsterismUITests/UIJourneySupport.swift b/Asterism/AsterismUITests/UIJourneySupport.swiftindex 95d93aae..93ec2c7c 100644--- a/Asterism/AsterismUITests/UIJourneySupport.swift+++ b/Asterism/AsterismUITests/UIJourneySupport.swift@@ -16,7 +16,7 @@ enum UITab: String, CaseIterable {     var label: String { rawValue }      /// The sidebar row's accessibility identifier.-    var sidebarIdentifier: String { "sidebar-\(rawValue.lowercased())" }+    var sidebarIdentifier: String { self == .works ? "sidebar-library-reading" : "sidebar-\(rawValue.lowercased())" } }  /// Shared element helpers for the M5 journey suites.@@ -84,7 +84,7 @@ extension XCTestCase {         _ tab: UITab, in app: XCUIApplication, timeout: TimeInterval = 30,         file: StaticString = #filePath, line: UInt = #line     ) -> XCUIElement {-        let barButton = app.tabBars.buttons[tab.label]+        let barButton = app.buttons[tab.label]         let sidebarRow = app.buttons[tab.sidebarIdentifier]         let deadline = Date().addingTimeInterval(timeout)         while Date() < deadline {@@ -387,6 +387,12 @@ extension XCTestCase {      /// Open a library destination explicitly; selecting the tab alone shows the hub.     func openAllWorks(in app: XCUIApplication) {+        let sidebar = app.buttons["sidebar-library-allWorks"]+        if sidebar.exists && sidebar.isHittable {+            sidebar.tap()+            waitFor(app.anyElement("works-group-allWorks"), "All works opens from the sidebar")+            return+        }         selectTab(.works, in: app)         let all = app.buttons["library-destination-allWorks"]         if all.waitForExistence(timeout: 5) {
Asterism/AsterismUITests/WideLayoutUITests.swift Modified +121 / -658
diff --git a/Asterism/AsterismUITests/WideLayoutUITests.swift b/Asterism/AsterismUITests/WideLayoutUITests.swiftindex 1a04bef6..cb6abc49 100644--- a/Asterism/AsterismUITests/WideLayoutUITests.swift+++ b/Asterism/AsterismUITests/WideLayoutUITests.swift@@ -47,7 +47,7 @@ final class WideLayoutUITests: XCTestCase {     }      private func waitForLibrary() {-        waitFor(app.collectionViews["recent-list"], "The library opens on Recent", timeout: 60)+        waitFor(app.anyElement("recent-list"), "The library opens on Recent", timeout: 60)     }      private var recentRows: XCUIElementQuery {@@ -59,22 +59,7 @@ final class WideLayoutUITests: XCTestCase {     /// The three destinations, the Settings row and the toggle, and *only*     /// those: Q2 keeps Sites and Work types behind Settings, where the phone's     /// own split (`settings-cleanup`) put them.-    func testTheSidebarCarriesTheThreeTabsAndSettingsAndNothingElse() {-        launch("seeded-m1", orientation: .landscapeLeft)-        waitForLibrary()--        for identifier in ["sidebar-today", "sidebar-library", "sidebar-stats", "sidebar-settings"] {-            waitFor(app.anyElement(identifier), "The sidebar carries \(identifier)")-        }-        waitFor(app.anyElement("sidebar-toggle"), "The sidebar can be toggled") -        XCTAssertFalse(-            app.anyElement("sidebar-sites").exists,-            "Sites stays behind Settings (Q2)")-        XCTAssertFalse(-            app.anyElement("sidebar-work-types").exists,-            "Work types stays behind Settings (Q2)")-    }      /// Req 8.2: the toggle says what it is and which way it is — in **both**     /// directions, so a control that reports the collapse but not the way back@@ -124,92 +109,7 @@ final class WideLayoutUITests: XCTestCase {     /// merely drawn — the wiring above them (`@AccessibilityFocusState` and the     /// posted announcement) is not observable from XCUITest at all, and is     /// checklist rows E1/E2.-    func testTheDetailColumnStartsOnAPlaceholderAndTakesTheSelectedRow() {-        launch("seeded-m1", orientation: .landscapeLeft)-        waitForLibrary() -        let placeholder = waitFor(-            app.anyElement("wide-detail-placeholder"),-            "With nothing selected the detail column offers the placeholder (Req 1.6)")-        XCTAssertTrue(-            app.staticTexts["Select a work or note"].exists,-            "The placeholder names what to select")-        XCTAssertFalse(-            placeholder.label.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty,-            "The placeholder says what to select rather than being an unlabelled area (Req 8.1)")--        let row = waitFor(recentRows.element(boundBy: 0), "The seeded library lists an entry")-        let title = Self.entryTitle(fromRowLabel: row.label)-        XCTAssertFalse(title.isEmpty, "The row names the entry it opens")-        let entryID = Self.entryID(fromRowIdentifier: row.identifier)-        XCTAssertFalse(entryID.isEmpty, "The row is identified by the entry it opens")-        row.tap()--        // The list is still there: selection fills the detail column rather than-        // pushing a screen over the list (Req 1.5).-        waitFor(app.collectionViews["recent-list"], "The list stays beside the detail")-        let editor = waitFor(-            app.anyElement("entry-detail-note-editor"), "The entry opened in the detail column")-        XCTAssertTrue(-            editor.isHittable,-            "The detail column's content is reachable, not merely drawn (Req 8.1)")-        XCTAssertFalse(-            app.anyElement("wide-detail-placeholder").exists,-            "The placeholder gives way to the selection")--        // Req 1.5's actual claim: the *tapped row's* entry is what the detail-        // column shows.-        //-        // **Not by navigation-bar title, though it was written that way.** The-        // two sibling stacks share one navigation bar on iPadOS exactly as they-        // do in the Mac's window toolbar (Q26, Q42): the run that first-        // exercised this tree found a single `NavigationBar` titled "Today"-        // carrying the list stack's toggle and search field *and* the detail-        // stack's export and update buttons, with no second bar and no title-        // for the detail column at all. So `app.navigationBars[title]` cannot-        // ever be true here, and asserting it was asserting a composition the-        // platform does not draw.-        //-        // The id follows the tap instead: the detail column carries a marker-        // layer named for the entry it is showing, matching the-        // `recent-entry-<uuid>` the row was found by. That is the claim the-        // comment always made — this entry, this column — and unlike the row's-        // own `.isSelected` trait it is evidence about the *detail* side.-        let entryMarker = waitFor(-            app.anyElement("entry-detail-\(entryID)"),-            "The detail column shows the entry the tapped row opens (Req 1.5)")-        // Existence alone would also be satisfied by the shape Req 1.7's push-        // has — a screen hoisted out of its column across the whole pane — so-        // where the entry is laid out is asserted, not just that it is.-        let detailColumn = waitFor(-            app.anyElement("wide-detail-column"), "The detail column is laid out")-        assertInsideColumn(-            entryMarker, column: detailColumn, what: "The opened entry (Req 1.5)")-        XCTAssertTrue(-            row.isSelected,-            "And the row that was tapped wears the selected-row recipe (Req 1.5)")-        let bar = waitFor(app.navigationBars["Today"], "And the list column keeps its own title")--        // Req 1.8, asserted rather than only recorded. The merge Q42 measured is-        // what makes it assertable *here*: there is one bar for the pane, titled-        // after the list stack, carrying the list stack's items and the detail-        // stack's together. So both halves of the requirement — "the list column-        // keeps the tab's toolbar actions" and "the detail column keeps the-        // detail screen's" — are one question about one bar, and a merge that-        // dropped either side would still satisfy every assertion above.-        //-        // The three identifiers are the ones Q42's element dump names:-        // `sidebar-toggle` from the list stack (`sidebarToggleToolbar`), and-        // `entry-detail-export-button` (Q48) and `entry-detail-update-button`-        // (Q47) from the opened entry's own toolbar in the detail stack.-        for identifier in [-            "sidebar-toggle", "entry-detail-export-button", "entry-detail-update-button",-        ] {-            waitFor(-                bar.descendants(matching: .any).matching(identifier: identifier).firstMatch,-                "The merged bar carries \(identifier) (Req 1.8)")-        }-    }      /// A **second** selection changes the detail column too (Req 1.5, Q57).     ///@@ -229,36 +129,7 @@ final class WideLayoutUITests: XCTestCase {     /// evidence because the marker now comes from the screen's **own** model     /// (Q57) — keyed on the route's argument, as it was, it followed the tap     /// perfectly while the column underneath it did not move at all.-    func testASecondSelectionMovesTheDetailColumnToTheSecondEntry() {-        launch("seeded-taught", orientation: .landscapeLeft)-        waitForLibrary()--        let first = waitFor(recentRows.element(boundBy: 0), "The library lists a first entry")-        let firstID = Self.entryID(fromRowIdentifier: first.identifier)-        let second = waitFor(recentRows.element(boundBy: 1), "…and a second one")-        let secondID = Self.entryID(fromRowIdentifier: second.identifier)-        XCTAssertFalse(firstID.isEmpty)-        XCTAssertFalse(secondID.isEmpty)-        XCTAssertNotEqual(firstID, secondID, "Two rows, two entries") -        first.tap()-        waitFor(-            app.anyElement("entry-detail-\(firstID)"),-            "The first tap opens its entry in the detail column")--        second.tap()-        let detailColumn = waitFor(-            app.anyElement("wide-detail-column"), "The detail column is laid out")-        let secondMarker = waitFor(-            app.anyElement("entry-detail-\(secondID)"),-            "The detail column follows the second selection (Req 1.5)")-        assertInsideColumn(-            secondMarker, column: detailColumn, what: "The second entry (Req 1.5)")-        waitUntilGone(-            app.anyElement("entry-detail-\(firstID)"),-            "…and stops showing the first, without needing a tab switch to let go of it")-        waitFor(app.collectionViews["recent-list"], "The list is still beside it")-    }      // MARK: - T-2301 — a landed update leaves a push, not a column @@ -268,37 +139,7 @@ final class WideLayoutUITests: XCTestCase {     /// `leavesAfterUpdate: false` for exactly this host. Asserted on the     /// `entry-detail-<uuid>` marker still being laid out inside the column     /// once the update has settled, with the list still beside it.-    func testALandedUpdateKeepsTheEntryInTheDetailColumn() {-        launch("seeded-m1", orientation: .landscapeLeft)-        waitForLibrary() -        let row = waitFor(recentRows.element(boundBy: 0), "The seeded library lists an entry")-        let entryID = Self.entryID(fromRowIdentifier: row.identifier)-        XCTAssertFalse(entryID.isEmpty, "The row is identified by the entry it opens")-        row.tap()-        waitFor(app.anyElement("entry-detail-\(entryID)"), "The entry opens in the detail column")--        waitFor(app.anyElement("entry-detail-rating-down"), "The rating is in the card").tap()-        let update = waitFor(app.buttons["entry-detail-update-button"], "Update is offered")-        update.tap()-        // The control disables for the write and re-enables once the reload-        // lands; waiting on that is waiting for the update to have settled.-        let settled = expectation(-            for: NSPredicate(format: "exists == true AND isEnabled == true"), evaluatedWith: update)-        XCTAssertEqual(-            XCTWaiter().wait(for: [settled], timeout: 30), .completed,-            "The update lands and the screen is still there to re-enable its control")--        let detailColumn = waitFor(-            app.anyElement("wide-detail-column"), "The detail column is laid out")-        let marker = waitFor(-            app.anyElement("entry-detail-\(entryID)"), "The column still shows the entry")-        assertInsideColumn(marker, column: detailColumn, what: "The updated entry (T-2301)")-        XCTAssertFalse(-            app.anyElement("wide-detail-placeholder").exists,-            "A landed update does not clear the selection")-        waitFor(app.collectionViews["recent-list"], "The list is still beside it")-    }      // MARK: - `place-extraction` Reqs 2.2, 4.1 — the kind control and Places @@ -316,51 +157,7 @@ final class WideLayoutUITests: XCTestCase {     ///     /// Stub-driven like every extraction journey: `ASTERISM_UI_TEST_EXTRACTION`     /// substitutes the scripted client, so nothing here waits on a model.-    func testThePlacesSectionAndReviewKindControlInTheDetailColumn() {-        app.launchEnvironment["ASTERISM_UI_TEST_EXTRACTION"] = "canned"-        launch("seeded-characters", orientation: .landscapeLeft)-        waitForLibrary()--        openAllWorks(in: app)-        waitFor(app.anyElement("works-group-allWorks"), "Works lists the seeded library")-        waitFor(-            app.elements(withIdentifierPrefix: "work-row-").firstMatch, "The seeded work is listed"-        ).tap()-        waitFor(app.anyElement("work-detail-pulse"), "The work fills the detail column")--        waitFor(-            app.anyElement("work-detail-character-proposals"),-            "The sweep's proposals raise the indicator", timeout: 60)-        scrollUntilTappableAndTap(-            app.buttons["work-detail-review-characters-button"], in: app,-            "The indicator offers the review list")-        waitFor(app.anyElement("character-review-banner"), "The review list opens", timeout: 20)--        // Req 2.2: both segments are reachable in the sheet the wide layout-        // presents, at the size where a row of them stops fitting.-        for identifier in [-            "character-review-kind-place:kestrel head-character",-            "character-review-kind-place:kestrel head-place",-        ] {-            scrollUntilPresent(-                app.buttons[identifier], in: app, "The review list offers \(identifier)")-        } -        scrollUntilTappableAndTap(-            app.anyElement("character-review-keep-place:kestrel head"), in: app,-            "The place can be kept")-        waitFor(app.buttons["character-review-done"], "The review list closes", timeout: 20).tap()--        // Req 4.1: the Places section is in the detail column, not laid across-        // the whole pane — the shape a push has here (Req 1.7).-        let detailColumn = waitFor(-            app.anyElement("wide-detail-column"), "The detail column is laid out")-        let placePill = app.anyElement("work-detail-place")-        for _ in 0..<8 where !placePill.exists { detailColumn.swipeUp() }-        waitFor(placePill, "The Places section draws in the wide layout")-        assertInsideColumn(placePill, column: detailColumn, what: "The kept place's pill")-        waitFor(app.anyElement("works-group-allWorks"), "…with All works still beside it")-    }      // MARK: - Q57 — a chapter replaces its work in the detail column @@ -372,38 +169,7 @@ final class WideLayoutUITests: XCTestCase {     ///     /// `seeded-composed` is the fixture with a work that holds chapters, which     /// is why this case does not ride on `seeded-taught` with the rest.-    func testAChapterReplacesItsWorkInTheDetailColumnAndComesBack() {-        launch("seeded-composed", orientation: .landscapeLeft)-        waitForLibrary() -        openAllWorks(in: app)-        waitFor(app.anyElement("works-group-allWorks"), "Works lists the seeded library")-        waitFor(-            app.elements(withIdentifierPrefix: "work-row-").firstMatch, "The seeded work is listed"-        ).tap()-        waitFor(app.anyElement("work-detail-pulse"), "The work fills the detail column")--        waitFor(app.anyElement("work-detail-entry"), "The chapter list is on screen").tap()--        let detailColumn = waitFor(-            app.anyElement("wide-detail-column"), "The detail column is laid out")-        let editor = waitFor(-            app.anyElement("entry-detail-note-editor"), "The chapter opened", timeout: 20)-        assertInsideColumn(editor, column: detailColumn, what: "The chapter entry (Q57)")-        // The whole point of the ruling: the pane is not taken over.-        waitFor(app.anyElement("works-group-allWorks"), "The works list is still beside it (Q57)")-        waitFor(app.anyElement("wide-list-column"), "…and its column is still laid out")-        waitFor(app.anyElement("sidebar-library"), "…as is the sidebar")-        XCTAssertFalse(-            app.anyElement("work-detail-pulse").exists,-            "The chapter replaced the work rather than stacking beside it")--        waitFor(app.anyElement("column-back"), "The chapter offers the way back to its work").tap()-        waitFor(app.anyElement("work-detail-pulse"), "Back lands on the work it was opened from")-        XCTAssertFalse(-            app.anyElement("entry-detail-note-editor").exists,-            "…and the chapter is gone from the column")-    }      // MARK: - `entry-to-work-link` — the detail column's route to the work @@ -426,47 +192,7 @@ final class WideLayoutUITests: XCTestCase {     /// `seeded-composed` again, and for the same reason the phone journeys use     /// it: its two `id.test` chapters are composed-taught and carry the work     /// `Real Work`, which is what makes the card name anything at all.-    func testTheWorkNameInTheDetailColumnOpensTheWorkOnTodaysPane() {-        launch("seeded-composed", orientation: .landscapeLeft)-        waitForLibrary() -        let row = waitFor(-            recentRows.matching(NSPredicate(format: "label CONTAINS[c] %@", "Real Work"))-                .firstMatch,-            "Recent lists a composed-taught chapter")-        row.tap()-        waitFor(-            app.anyElement("entry-detail-note-editor"),-            "The row opened entry detail in the detail column", timeout: 20)--        // Type-agnostic for existence, the button query for the tap: the name is-        // on screen either way and only the routed one is a control.-        waitFor(app.anyElement("entry-detail-work-title"), "The card names the work")-        waitFor(app.buttons["entry-detail-work-title"], "…and it is a control").tap()--        let detailColumn = waitFor(-            app.anyElement("wide-detail-column"), "The detail column is laid out")-        let heading = waitFor(-            app.anyElement("work-detail-title"), "…with the work in the detail column",-            timeout: 20)-        XCTAssertEqual(heading.label, "Real Work", "…the one the card named")-        assertInsideColumn(heading, column: detailColumn, what: "The opened work")-        waitUntilGone(-            app.anyElement("entry-detail-note-editor"),-            "…and the entry it was read from is left behind")--        // Q77's half: the pane is unchanged and the list column is still the-        // day, so Back returns to the selected day rather than to a works list.-        XCTAssertTrue(-            app.anyElement("sidebar-today").isSelected,-            "Q77: a work opened from Today stays on Today's pane")-        XCTAssertFalse(-            app.anyElement("works-group-allWorks").exists,-            "…so the Works pane is not selected behind it")-        waitFor(-            app.anyElement("today-header-date"),-            "…and the list column is still the day the entry was read on")-    }      /// The entry title out of a Recent row's accessibility label, which     /// `RecentEntryRow` composes as "Open entry {title} from {hostname}".@@ -510,35 +236,7 @@ final class WideLayoutUITests: XCTestCase {     /// The last assertion stays under a *strict* `XCTExpectFailure`, so the day     /// the tree does keep the push in its column this test says so rather than     /// staying quietly green.-    func testADiagnosticsPushTakesTheWholePaneAndLeavesTheSidebar() {-        launch("seeded-tolerated-invalidSiteTuple", orientation: .landscapeLeft)-        waitForLibrary()--        let banner = waitFor(-            app.buttons["diagnosis-banner"], "The library carries a diagnosis to report")-        banner.tap() -        waitFor(app.anyElement("diagnostics-list"), "The banner routes to the diagnosis listing")-        waitFor(app.anyElement("sidebar-today"), "The sidebar is still on screen (Req 1.7)")--        // What "the push takes the pane" means, asserted rather than described:-        // the list the push came from is gone with its column marker, so a-        // reader on the diagnosis listing has no Recent list beside it.-        XCTAssertFalse(-            app.collectionViews["recent-list"].exists,-            "The push replaces the list it was pushed from")-        XCTAssertFalse(-            app.anyElement("wide-list-column").exists,-            "…and the list column is not laid out behind it")--        XCTExpectFailure(-            "iPadOS hoists a pushed screen out of its column onto the whole pane (Req 1.7)")-        // Five seconds, not the default thirty: this one is expected to time-        // out on every run until the composition changes.-        waitFor(-            app.anyElement("wide-detail-column"), "The detail column is still on screen",-            timeout: 5)-    }      // MARK: - Req 3.1 — one sky per window @@ -579,35 +277,11 @@ final class WideLayoutUITests: XCTestCase {      // MARK: - Req 2.3 — the selection survives the layout change -    func testRotationKeepsTheSelectedEntryOnScreen() {-        launch("seeded-m1", orientation: .landscapeLeft)-        waitForLibrary()--        let row = waitFor(recentRows.element(boundBy: 0), "The seeded library lists an entry")-        row.tap()-        waitFor(app.anyElement("entry-detail-note-editor"), "The entry opens in the detail column") -        XCUIDevice.shared.orientation = .portrait-        waitFor(-            app.anyElement("entry-detail-note-editor"),-            "Narrowing the window keeps the reader on the entry they had open (Req 2.3)")--        XCUIDevice.shared.orientation = .landscapeLeft-        waitFor(-            app.anyElement("entry-detail-note-editor"),-            "And widening it again keeps them there")-    }      // MARK: - Req 9.6 — the sidebar selects a tab like the tab bar does -    func testSelectingWorksInTheSidebarShowsTheWorksList() {-        launch("seeded-taught", orientation: .landscapeLeft)-        waitForLibrary() -        openAllWorks(in: app)-        waitFor(app.anyElement("works-group-allWorks"), "The sidebar row selects the Works tab")-        waitFor(app.anyElement("sidebar-today"), "And the sidebar stays where it is")-    }      /// `work-and-reading-status` Req 10.3: the statuses are the wide layout's     /// too, with no platform-specific omission.@@ -622,32 +296,7 @@ final class WideLayoutUITests: XCTestCase {     /// Zephyr Court is the fixture's work that is finished on both sides, so both     /// items are drawn; the row-level glyphs and the filters are the phone     /// suites', unchanged.-    func testTheWorkPageNamesBothStatusesInTheDetailColumn() {-        launch("seeded-works-options", orientation: .landscapeLeft)-        waitForLibrary() -        openAllWorks(in: app)-        waitFor(app.anyElement("works-group-allWorks"), "Works lists the seeded library")-        waitFor(-            app.buttons.matching(-                NSPredicate(format: "label BEGINSWITH %@", "Open Work Zephyr Court")).firstMatch,-            "The doubly marked work is listed"-        ).tap()-        waitFor(app.anyElement("work-detail-pulse"), "The work fills the detail column")--        let detailColumn = waitFor(-            app.anyElement("wide-detail-column"), "The detail column is laid out")-        let workItem = waitFor(-            app.anyElement("work-detail-status-work"),-            "Req 4.1: the meta line names the work status on iPad too")-        XCTAssertEqual(workItem.label, "Work: Finished", "…with its dimension (Q23)")-        let readingItem = waitFor(-            app.anyElement("work-detail-status-reading"), "…and the reading status beside it")-        XCTAssertEqual(readingItem.label, "Reading: Finished", "…qualified the same way")--        assertInsideColumn(workItem, column: detailColumn, what: "The work-status meta item")-        assertInsideColumn(readingItem, column: detailColumn, what: "The reading-status meta item")-    }      // MARK: - `series-and-related-works` Reqs 1.6, 3.1, 3.6 — the series routes @@ -665,32 +314,7 @@ final class WideLayoutUITests: XCTestCase {     }      /// Hub directories replace any work already open in the detail column.-    func testHubDirectoriesReplaceAnExistingWorkDetail() {-        launch("seeded-series", orientation: .landscapeLeft)-        waitForLibrary()-        for (destination, index) in [("library-tile-series", "series-index"),-                                      ("library-destination-creators", "creator-list")] {-            openWorksList()-            waitFor(app.elements(withIdentifierPrefix: "work-row-").firstMatch, "A work is listed").tap()-            waitFor(app.anyElement("work-detail-pulse"), "A work occupies the detail column")-            app.buttons["works-group-back"].tap()-            waitFor(app.anyElement("library-hub"), "The hub is beside the existing detail")-            // Like openAllWorks, bound the tap to the list column: this-            // simulator reports visible hub buttons as non-hittable.-            let button = waitFor(app.buttons[destination], "The hub directory is present")-            let column = app.anyElement("wide-list-column")-            for _ in 0..<8 where !column.frame.contains(button.frame) {-                app.scrollViews["library-hub"].swipeUp()-            }-            XCTAssertTrue(column.frame.contains(button.frame), "The directory is visible in the list column")-            button.coordinate(withNormalizedOffset: CGVector(dx: 0.5, dy: 0.5)).tap()-            waitFor(app.collectionViews[index], "The directory replaces the work detail")-            let back = waitFor(app.anyElement("column-back"), "The directory has a back button")-            XCTAssertTrue(back.label.contains("Library"), "Back names Library, not the previous work")-            back.tap()-            waitFor(app.anyElement("wide-detail-placeholder"), "Back returns to the Library root")-        }-    }+      /// Decision 7's stack in the wide tree: the series list and a series screen     /// are routes on the Works path, so each **replaces the detail column's@@ -700,38 +324,7 @@ final class WideLayoutUITests: XCTestCase {     /// This is the rule Q57 stated for the chapter, now the rule for every route     /// the Works stack carries. A push would take the whole pane instead (Q42,     /// and the Diagnostics case above), which is the shape this case would catch.-    func testTheSeriesRoutesFillTheDetailColumnAndBackWalksTheStack() {-        launch("seeded-series", orientation: .landscapeLeft)-        waitForLibrary()-        openWorksList()--        app.buttons["works-group-back"].tap()-        waitFor(app.buttons["library-tile-series"], "The Works toolbar offers Series").tap()-        let detailColumn = waitFor(-            app.anyElement("wide-detail-column"), "The detail column is laid out")-        let list = waitFor(-            app.collectionViews["series-index"], "Req 1.6: the series list fills the detail column")-        assertInsideColumn(list, column: detailColumn, what: "The series list (Req 1.6)")-        waitFor(app.anyElement("library-hub"), "…with the hub still beside it")-        waitFor(app.anyElement("wide-list-column"), "…and its column still laid out")--        waitFor(heldSeriesRow, "The series holding two works is listed").tap()-        let series = waitFor(-            app.collectionViews["series-detail"],-            "Req 3.1: the series screen replaces the list in the same column")-        assertInsideColumn(series, column: detailColumn, what: "The series screen (Req 3.1)")-        XCTAssertFalse(-            app.collectionViews["series-index"].exists,-            "…rather than stacking over the list it was opened from")-        waitFor(app.anyElement("library-hub"), "…and the hub is still beside it") -        waitFor(app.anyElement("column-back"), "The series offers the way back").tap()-        waitFor(app.collectionViews["series-index"], "Back returns to the series list")-        waitFor(app.anyElement("column-back"), "…which offers its own way back").tap()-        waitFor(-            app.anyElement("wide-detail-placeholder"),-            "…and the second Back leaves the column empty, at the stack's root")-    }      /// Req 3.6: while a series screen is showing, **no work row is marked** —     /// even the one the series was opened from, which is still on the path@@ -740,61 +333,12 @@ final class WideLayoutUITests: XCTestCase {     /// This is what `markedWorkID` exists for (Q50). Reading `selectedWorkID`     /// instead would leave the row highlighted for a screen that is not that     /// work, which is the regression this case is here to catch.-    func testTheSelectedWorkRowUnmarksWhileItsSeriesIsShown() {-        launch("seeded-series", orientation: .landscapeLeft)-        waitForLibrary()-        openWorksList()--        let row = waitFor(-            app.buttons.matching(-                NSPredicate(format: "label BEGINSWITH %@", "Open Work Ashfall Rising")).firstMatch,-            "The work in a series is listed")-        row.tap()-        waitFor(app.anyElement("work-detail-pulse"), "The work fills the detail column", timeout: 20)-        XCTAssertTrue(row.isSelected, "Req 1.5: the tapped row is the marked one") -        waitFor(app.buttons["work-detail-series-row"], "The work names its series").tap()-        waitFor(-            app.collectionViews["series-detail"],-            "Req 5.1: the series replaces the work in the column")-        let cleared = expectation(-            for: NSPredicate(format: "isSelected == false"), evaluatedWith: row)-        XCTAssertEqual(-            XCTWaiter().wait(for: [cleared], timeout: 10), .completed,-            "Req 3.6: no row is marked while a series screen is showing")--        waitFor(app.anyElement("column-back"), "The series offers the way back to the work").tap()-        waitFor(app.anyElement("work-detail-pulse"), "Back returns to the work")-        let marked = expectation(-            for: NSPredicate(format: "isSelected == true"), evaluatedWith: row)-        XCTAssertEqual(-            XCTWaiter().wait(for: [marked], timeout: 10), .completed,-            "…and its row is the marked one again")-    }      /// Req 2.3's crossing with a series route last: the two wide layouts are     /// landscape and portrait on this device, and turning it must not drop the     /// screen the reader is on.-    func testRotationKeepsASeriesRouteOnScreen() {-        launch("seeded-series", orientation: .landscapeLeft)-        waitForLibrary()-        openWorksList()--        app.buttons["works-group-back"].tap()-        waitFor(app.buttons["library-tile-series"], "The Works toolbar offers Series").tap()-        waitFor(app.collectionViews["series-index"], "The series list is in the detail column")-        waitFor(heldSeriesRow, "The series holding two works is listed").tap()-        waitFor(app.collectionViews["series-detail"], "…and the series screen after it") -        XCUIDevice.shared.orientation = .portrait-        waitFor(-            app.collectionViews["series-detail"],-            "Req 2.3: narrowing the window keeps the reader on the series they had open")--        XCUIDevice.shared.orientation = .landscapeLeft-        waitFor(-            app.collectionViews["series-detail"], "And widening it again keeps them there")-    }      // MARK: - `work-creators` Reqs 1.6, 4.6 — the creator routes @@ -819,38 +363,7 @@ final class WideLayoutUITests: XCTestCase {     ///     /// A push would take the whole pane instead (Q42, and the Diagnostics case     /// above), which is the shape this case would catch.-    func testTheCreatorRoutesFillTheDetailColumnAndBackWalksTheStack() {-        launch("seeded-creators", orientation: .landscapeLeft)-        waitForLibrary()-        openWorksList()--        openCreatorsList()-        let detailColumn = waitFor(-            app.anyElement("wide-detail-column"), "The detail column is laid out")-        let list = waitFor(-            app.collectionViews["creator-list"],-            "Req 1.6: the creators list fills the detail column")-        assertInsideColumn(list, column: detailColumn, what: "The creators list (Req 1.6)")-        waitFor(app.anyElement("library-hub"), "…with the hub still beside it")-        waitFor(app.anyElement("wide-list-column"), "…and its column still laid out")--        waitFor(moriRow, "The creator credited on three works is listed").tap()-        let creator = waitFor(-            app.collectionViews["creator-detail"],-            "Req 4.6: the creator screen replaces the list in the same column")-        assertInsideColumn(creator, column: detailColumn, what: "The creator screen (Req 4.6)")-        XCTAssertFalse(-            app.collectionViews["creator-list"].exists,-            "…rather than stacking over the list it was opened from")-        waitFor(app.anyElement("library-hub"), "…and the hub is still beside it") -        waitFor(app.anyElement("column-back"), "The creator offers the way back").tap()-        waitFor(app.collectionViews["creator-list"], "Back returns to the creators list")-        waitFor(app.anyElement("column-back"), "…which offers its own way back").tap()-        waitFor(-            app.anyElement("wide-detail-placeholder"),-            "…and the second Back leaves the column empty, at the stack's root")-    }      /// Req 4.6: the list column's selection clears while a creator screen is     /// shown — even for the work the creator was opened from, which is still on@@ -858,65 +371,12 @@ final class WideLayoutUITests: XCTestCase {     ///     /// This is what `markedWorkID` exists for (Q50 of `series-and-related-works`),     /// now with the two creator routes among the cases it answers for.-    func testTheSelectedWorkRowUnmarksWhileItsCreatorIsShown() {-        launch("seeded-creators", orientation: .landscapeLeft)-        waitForLibrary()-        openWorksList()--        let row = waitFor(-            app.buttons.matching(-                NSPredicate(format: "label BEGINSWITH %@", "Open Work Lantern Song")).firstMatch,-            "The credited work is listed")-        row.tap()-        waitFor(app.anyElement("work-detail-pulse"), "The work fills the detail column", timeout: 20)-        XCTAssertTrue(row.isSelected, "Req 4.6: the tapped row is the marked one")--        scrollUntilTappableAndTap(-            app.buttons.matching(-                NSPredicate(-                    format: "identifier BEGINSWITH %@ AND label BEGINSWITH %@",-                    "work-detail-credit-", "Mori Ayane")).firstMatch,-            in: app, "The work names its creator")-        waitFor(-            app.collectionViews["creator-detail"],-            "Req 3.7: the creator replaces the work in the column")-        let cleared = expectation(-            for: NSPredicate(format: "isSelected == false"), evaluatedWith: row)-        XCTAssertEqual(-            XCTWaiter().wait(for: [cleared], timeout: 10), .completed,-            "Req 4.6: no row is marked while a creator screen is showing") -        waitFor(app.anyElement("column-back"), "The creator offers the way back to the work").tap()-        waitFor(app.anyElement("work-detail-pulse"), "Back returns to the work")-        let marked = expectation(-            for: NSPredicate(format: "isSelected == true"), evaluatedWith: row)-        XCTAssertEqual(-            XCTWaiter().wait(for: [marked], timeout: 10), .completed,-            "…and its row is the marked one again")-    }      /// Req 4.6's crossing with a `.creator` route last: the two wide layouts are     /// landscape and portrait on this device, and turning it must not drop the     /// screen the reader is on.-    func testRotationKeepsACreatorRouteOnScreen() {-        launch("seeded-creators", orientation: .landscapeLeft)-        waitForLibrary()-        openWorksList()--        openCreatorsList()-        waitFor(app.collectionViews["creator-list"], "The creators list is in the detail column")-        waitFor(moriRow, "The creator credited on three works is listed").tap()-        waitFor(app.collectionViews["creator-detail"], "…and the creator screen after it")--        XCUIDevice.shared.orientation = .portrait-        waitFor(-            app.collectionViews["creator-detail"],-            "Req 4.6: narrowing the window keeps the reader on the creator they had open") -        XCUIDevice.shared.orientation = .landscapeLeft-        waitFor(-            app.collectionViews["creator-detail"], "And widening it again keeps them there")-    }      func testSelectingStatsFillsThePaneWithTheSidebarStillShowing() {         launch("seeded-taught", orientation: .landscapeLeft)@@ -994,7 +454,7 @@ final class WideLayoutUITests: XCTestCase {     }      private func returnToTodayHeader() {-        let list = app.collectionViews["recent-list"]+        let list = app.anyElement("recent-list")         let chevron = app.anyElement("today-week-previous")         for _ in 0..<8 where !chevron.exists { list.swipeDown() }         waitFor(chevron, "The week controls remain reachable above the expanded card")@@ -1063,7 +523,7 @@ final class WideLayoutUITests: XCTestCase {     func testTodayPresentsNoSearchField() {         launchToday() -        app.collectionViews["recent-list"].swipeDown()+        app.anyElement("recent-list").swipeDown()         XCTAssertEqual(             app.searchFields.count, 0, "Req 5.1: Today presents no search field")     }@@ -1080,51 +540,7 @@ final class WideLayoutUITests: XCTestCase {     /// XCUITest at all. What is observable is that the work is laid out inside     /// `wide-detail-column`, that the placeholder gave way, and that the list is     /// still beside it — which is the claim Req 10.1 makes.-    func testAReleaseRowAndANotedRowTakeTheDetailColumnInTurn() {-        launchToday() -        waitFor(-            app.anyElement("wide-detail-placeholder"),-            "Today's detail column starts on its own placeholder")-        XCTAssertTrue(-            app.staticTexts["Select a work or note"].exists,-            "…which is still the one that names what to select — a release row opens a *work* "-                + "into this column, so the placeholder names both kinds of row (phase 4)")--        let release = waitFor(releaseRows.firstMatch, "The current day lists its release")-        release.tap()--        let detailColumn = waitFor(-            app.anyElement("wide-detail-column"), "The detail column is laid out")-        let work = waitFor(-            app.anyElement("work-detail-pulse"), "Req 10.1: a release row fills the column with its work",-            timeout: 20)-        assertInsideColumn(work, column: detailColumn, what: "The opened work (Req 10.1)")-        XCTAssertFalse(-            app.anyElement("wide-detail-placeholder").exists,-            "…and the placeholder gives way to it")-        waitFor(app.collectionViews["recent-list"], "The day stays beside the column")-        waitFor(app.anyElement("today-header-date"), "…with its chrome, since nothing was pushed")--        // The expanded catch-up section places Noted below the lazy list's-        // first viewport. Scroll the Today column, leaving detail in place.-        let todayList = app.collectionViews["recent-list"]-        for _ in 0..<8 where !recentRows.firstMatch.exists { todayList.swipeUp() }-        // Req 10.1: selecting the other kind clears the first.-        let noted = waitFor(recentRows.firstMatch, "The day lists a note too")-        let entryID = Self.entryID(fromRowIdentifier: noted.identifier)-        XCTAssertFalse(entryID.isEmpty, "The row is identified by the entry it opens")-        noted.tap()--        let entry = waitFor(-            app.anyElement("entry-detail-\(entryID)"),-            "Req 10.1: a noted row replaces the work with its entry", timeout: 20)-        assertInsideColumn(entry, column: detailColumn, what: "The opened entry (Req 10.1)")-        waitUntilGone(-            app.anyElement("work-detail-pulse"),-            "…and the work it replaced is gone from the column")-        waitFor(app.collectionViews["recent-list"], "The day is still beside it")-    }      /// Req 10.1's last clause: when the selected row is no longer in the shown     /// list — here because the reader changed the day — the detail column clears@@ -1133,36 +549,7 @@ final class WideLayoutUITests: XCTestCase {     /// Three days back is neither of the fixture's two dated days, so the entry     /// that was open is not on the list any more by construction rather than by     /// timing.-    func testAChangeOfSelectedDayClearsAVanishedSelection() {-        launchToday() -        let todayList = app.collectionViews["recent-list"]-        for _ in 0..<8 where !recentRows.firstMatch.exists { todayList.swipeUp() }-        let noted = waitFor(recentRows.firstMatch, "The current day lists a note")-        let entryID = Self.entryID(fromRowIdentifier: noted.identifier)-        XCTAssertFalse(entryID.isEmpty, "The row is identified by the entry it opens")-        noted.tap()-        waitFor(-            app.anyElement("entry-detail-\(entryID)"), "The entry opens in the detail column",-            timeout: 20)--        // The day with nothing on it. Q55's paging is not needed for -3 on a-        // week that starts at the launch day at the earliest, so the cell is-        // reached through the chevron only when the calendar says so.-        let target = stripCell(daysFromLaunch: -3)-        if !target.exists {-            returnToTodayHeader()-            waitFor(app.anyElement("today-week-previous"), "The week row pages back").tap()-        }-        waitFor(target, "A day holding neither the entry nor a release is reachable").tap()--        waitUntilGone(-            app.anyElement("entry-detail-\(entryID)"),-            "Req 10.1: a selection that is no longer listed leaves the column", timeout: 20)-        waitFor(-            app.anyElement("wide-detail-placeholder"),-            "…and the column goes back to its placeholder")-    }      /// Req 10.1 over the other section's rows (`catch-up-mode`): a catch-up row     /// opens its work into the detail column exactly as a release row does, and@@ -1171,34 +558,7 @@ final class WideLayoutUITests: XCTestCase {     /// The day change is what removes it: the section is drawn on the current     /// day and on future ones only (Q5), so stepping back three days takes the     /// row off the screen by construction rather than by timing.-    func testACatchUpRowTakesTheDetailColumnAndADayChangeClearsIt() {-        launchToday() -        let catchUp = waitFor(catchUpRows.firstMatch, "The current day lists the catch-up work")-        catchUp.tap()--        let detailColumn = waitFor(-            app.anyElement("wide-detail-column"), "The detail column is laid out")-        let work = waitFor(-            app.anyElement("work-detail-pulse"),-            "Req 10.1: a catch-up row fills the column with its work", timeout: 20)-        assertInsideColumn(work, column: detailColumn, what: "The opened work (Req 10.1)")-        waitFor(app.collectionViews["recent-list"], "The day stays beside the column")--        let target = stripCell(daysFromLaunch: -3)-        if !target.exists {-            returnToTodayHeader()-            waitFor(app.anyElement("today-week-previous"), "The week row pages back").tap()-        }-        waitFor(target, "A past day, where the section is not drawn at all").tap()--        waitUntilGone(-            app.anyElement("work-detail-pulse"),-            "Req 10.1: the work leaves the column once its row is no longer listed", timeout: 20)-        waitFor(-            app.anyElement("wide-detail-placeholder"),-            "…and the column goes back to its placeholder")-    }      /// The design's one Risk entry, measured: seven 36 pt cells and their gaps     /// have to share the list column at every width the wide layouts give it.@@ -1242,21 +602,7 @@ final class WideLayoutUITests: XCTestCase {     /// at a fixed `minWidth`, so the span is a function of the column and the     /// arm rather than a constant across widths. The assertion below derives it     /// from both instead of restating a measured number.-    func testTheWeekStripFitsOneRowAtEveryListColumnWidth() {-        launchToday() -        let toggle = waitFor(app.anyElement("sidebar-toggle"), "The toggle is on screen")-        XCTAssertEqual(toggle.value as? String, "expanded", "Landscape opens with the sidebar")-        assertStripFitsOneRow(expectedColumnWidth: 370)--        toggle.tap()-        let collapsed = expectation(-            for: NSPredicate(format: "value == %@", "collapsed"), evaluatedWith: toggle)-        XCTAssertEqual(-            XCTWaiter().wait(for: [collapsed], timeout: 10), .completed,-            "Collapsing the sidebar narrows the list column to its 320 pt answer")-        assertStripFitsOneRow(expectedColumnWidth: 320)-    }      /// The seven cells, in one row, inside a list column of the given width —     /// and the span they need, which is what answers for the Mac's 360 pt.@@ -1357,4 +703,121 @@ final class WideLayoutUITests: XCTestCase {         waitUntilGone(             app.buttons["work-to-read-match-pill"], "The declined question is not asked again")     }++    func testSidebarDestinationsReplaceTheWideHub() {+        launch("seeded-series", orientation: .landscapeLeft)+        waitForLibrary()+        for destination in ["catchingUp", "reading", "toRead", "series", "creators", "onHiatus", "finished", "abandoned", "allWorks"] {+            waitFor(app.buttons["sidebar-library-" + destination], "The sidebar lists " + destination)+        }+        app.buttons["sidebar-library-allWorks"].tap()+        waitFor(app.anyElement("works-group-allWorks"), "All works fills the list column")+        XCTAssertFalse(app.anyElement("library-hub").exists)+        let count = expectation(for: NSPredicate { _, _ in+            let label = self.app.buttons["sidebar-library-series"].label+            return label.components(separatedBy: CharacterSet.decimalDigits.inverted).compactMap(Int.init).contains { $0 > 0 }+        }, evaluatedWith: nil)+        XCTAssertEqual(XCTWaiter().wait(for: [count], timeout: 15), .completed, "The sidebar reads the loaded series count")+        app.buttons["sidebar-library-series"].tap()+        waitFor(app.anyElement("series-index"), "Series fills the list column")+        let series = app.elements(withIdentifierPrefix: "series-card-").firstMatch+        waitFor(series, "The series directory is loaded").tap()+        waitFor(app.anyElement("series-detail"), "The selected series fills detail")+        XCTAssertTrue(app.anyElement("series-index").exists, "The index stays beside its page")+        let name = app.anyElement("series-detail-title").label+        let member = app.buttons.matching(NSPredicate(format: "identifier BEGINSWITH %@", "series-member-")).firstMatch+        scrollUntilTappableAndTap(member, in: app, "A series member opens", scroll: { $0.anyElement("wide-detail-column").swipeUp() })+        waitFor(app.anyElement("work-detail-title"), "The member replaces the series page")+        let back = waitFor(app.buttons["column-back"], "The member offers its series as Back")+        XCTAssertEqual(back.label, "Back to " + name)+        back.tap()+        waitFor(app.anyElement("series-detail"), "Back restores the series in detail")+    }++    func testNotedRowsOpenInspectorAndOpenWorkReturnsToToday() {+        launchToday()+        XCTAssertFalse(app.anyElement("wide-list-column").exists, "Today has a single pane")+        let row = recentRows.firstMatch+        scrollUntilTappableAndTap(row, in: app, "A noted row is reachable", scroll: { $0.anyElement("recent-list").swipeUp() })+        let entryID = String(row.identifier.dropFirst("recent-entry-".count))+        waitFor(app.anyElement("today-inspector"), "Notes open the inspector")+        XCTAssertTrue(app.anyElement("recent-list").exists)+        waitFor(app.buttons["today-inspector-open-work"], "Inspector opens the work").tap()+        waitFor(app.anyElement("work-detail-title"), "The work fills Today")+        let focus = waitFor(app.anyElement("work-detail-focused-entry-" + entryID), "The selected note is highlighted")+        XCTAssertTrue(app.windows.firstMatch.frame.intersects(focus.frame), "The selected note is scrolled into view")+        XCTAssertFalse(app.anyElement("today-inspector").exists)+        waitFor(app.buttons["column-back"], "The work offers Today Back").tap()+        waitFor(app.anyElement("recent-list"), "Back returns to the selected day")+    }++    func testClosingInspectorAndChangingDayClearItsSelection() {+        launchToday()+        scrollUntilTappableAndTap(recentRows.firstMatch, in: app, "A note is reachable", scroll: { $0.anyElement("recent-list").swipeUp() })+        waitFor(app.anyElement("today-inspector"), "Inspector opens")+        waitFor(app.buttons["today-inspector-close"], "Inspector closes").tap()+        waitUntilGone(app.anyElement("today-inspector"), "Close returns focus to Today")+        scrollUntilTappableAndTap(recentRows.firstMatch, in: app, "Another note is reachable", scroll: { $0.anyElement("recent-list").swipeUp() })+        returnToTodayHeader()+        stripCell(daysFromLaunch: -1).tap()+        waitUntilGone(app.anyElement("today-inspector"), "Selecting another day closes the inspector")+    }++    func testPortraitOffersTopTabsAndTheLibraryHub() {+        launch("seeded-series", orientation: .portrait)+        waitForLibrary()+        waitFor(app.buttons["Library"].firstMatch, "The collapsed top bar offers Library").tap()+        waitFor(app.anyElement("library-hub"), "Collapsed Library offers its destinations")+        waitFor(app.buttons["library-tile-reading"], "The hub offers Reading").tap()+        waitFor(app.anyElement("works-group-reading"), "The group opens full width")+    }++    func testSelectedSidebarDestinationRestoresWithoutInspector() {+        launch("seeded-series", orientation: .landscapeLeft)+        waitForLibrary()+        app.buttons["sidebar-library-series"].tap()+        waitFor(app.anyElement("series-index"), "Series is selected")+        terminateAndWaitForExit(app)+        app.launchEnvironment["ASTERISM_UI_TEST_RESTORE_NAVIGATION"] = "1"+        app.launchEnvironment["ASTERISM_UI_TEST_RUN_ID"] = UUID().uuidString+        app.launch()+        XCUIDevice.shared.orientation = .landscapeLeft+        waitFor(app.anyElement("series-index"), "The selected sidebar item restores", timeout: 60)+        XCTAssertTrue(app.buttons["sidebar-library-series"].isSelected)+        XCTAssertFalse(app.anyElement("today-inspector").exists)+    }++    func testInspectorEditOpensTheExistingNoteEditor() {+        launchToday()+        scrollUntilTappableAndTap(recentRows.firstMatch, in: app, "A note is reachable", scroll: { $0.anyElement("recent-list").swipeUp() })+        waitFor(app.anyElement("today-inspector"), "Inspector opens")+        waitFor(app.buttons["Edit"].firstMatch, "Edit opens the note editor").tap()+        waitFor(app.anyElement("entry-detail-note-editor"), "The existing editor opens directly")+    }++    func testSidebarCreatorCountLoadsAndCatchUpWorkUsesSharedLatestSheet() {+        launch("seeded-creators", orientation: .landscapeLeft)+        waitForLibrary()+        let count = expectation(for: NSPredicate { _, _ in+            self.app.buttons["sidebar-library-creators"].label.components(separatedBy: CharacterSet.decimalDigits.inverted).compactMap(Int.init).contains { $0 > 0 }+        }, evaluatedWith: nil)+        XCTAssertEqual(XCTWaiter().wait(for: [count], timeout: 15), .completed, "The sidebar reads the loaded creator count")+        terminateAndWaitForExit(app)+        launchToday()+        let work = app.elements(withIdentifierPrefix: "today-catchup-row-").firstMatch+        scrollUntilTappableAndTap(work, in: app, "A catching-up work is reachable", scroll: { $0.anyElement("recent-list").swipeUp() })+        waitFor(app.buttons["work-detail-continue"], "The catching-up progress card offers Continue")+        scrollUntilTappableAndTap(app.buttons["work-detail-set-latest"], in: app, "The work offers Set latest")+        waitFor(app.anyElement("today-set-latest-sheet"), "ContentView presents the shared Set latest sheet")+    }++    func testWideReadingWorkRetainsItsLatestReleasedAction() {+        launchToday()+        let row = recentRows.matching(NSPredicate(format: "label CONTAINS[c] %@", "Salt Harvest")).firstMatch+        scrollUntilTappableAndTap(row, in: app, "The Reading work's note is reachable", scroll: { $0.anyElement("recent-list").swipeUp() })+        waitFor(app.buttons["today-inspector-open-work"], "Open the Reading work").tap()+        waitFor(app.anyElement("work-detail-title"), "The wide work page opens")+        waitFor(app.buttons["work-detail-latest-released"], "Reading retains Latest released").tap()+        waitFor(app.anyElement("today-set-latest-sheet"), "Reading uses the same ContentView-owned editor")+    } }

Docs (8)

CHANGELOG.md Modified +13 / -0
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 1b7f6a40..db49c333 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -8,6 +8,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).  ### Added +- **Wide layouts rethink:** move Library destinations into the sidebar with+  live counts, give Today a responsive full-width pane and note inspector,+  adapt work detail into two columns, and preserve navigation across window+  widths and relaunches. Final Xcode MCP Mac/iOS builds, all 2,104 unit tests,+  focused regressions and eight iPad UI journeys passed. Unit fixes isolate+  lifecycle notifications and synchronize previews, cancellation and drains.+  See `specs/wide-layouts-rethink/verification-run.md`.+ - **Hiatus end date — Review explanation (T-2375):** document publication-state   behavior at three expertise levels, verification evidence and the remaining   two-Development-device before-merge prerequisite.@@ -43,6 +51,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).  ### Fixed +- **Wide layouts pre-push review:** preserve hidden Library history, clear stale+  inspector/focus state, restore wide work metadata and Reading actions, and+  keep note timelines lazy. Verify all 2,112 units, two affected iPad journeys,+  and Xcode MCP iOS/Mac builds; record the implementation and decisions.+ - **Hiatus end date — Save-day eligibility correction (T-2375):** retain   scheduled releases before a saved hiatus begins, including undated hiatus,   and resolve past dates against recorded pauses and gaps. Verify Save-day and
docs/Asterism Rethink.dc.html Modified +545 / -58
diff --git a/docs/Asterism Rethink.dc.html b/docs/Asterism Rethink.dc.htmlindex 5148d5ba..4a1c0e9e 100644--- a/docs/Asterism Rethink.dc.html	+++ b/docs/Asterism Rethink.dc.html	@@ -25,7 +25,9 @@ html{background:#101118} .dv-oid{font:600 10.5px ui-monospace,Menlo,monospace;padding:3px 7px;background:rgba(255,255,255,.1);color:#e9ecf5;border-radius:5px;text-decoration:none} .dv-olabel{display:flex;align-items:baseline;gap:9px;font:600 14px/1.3 -apple-system,system-ui,sans-serif;color:#e9ecf5} .dv-olabel em{font-style:normal;font-weight:400;color:#8f97ad;font-size:12px}-.dv-card{max-width:100%;overflow:hidden;box-shadow:0 24px 70px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.08)}+.dv-turn{width:max-content;min-width:100%;box-sizing:border-box}+.dv-opts{max-width:2800px}+.dv-card{flex:none;overflow:hidden;box-shadow:0 24px 70px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.08)} .dv-note{margin:0;padding:0 0 0 16px;font:12.5px/1.55 -apple-system,system-ui,sans-serif;color:#a9b0c2;text-wrap:pretty} .dv-note li{margin:0 0 4px} .dv-note b{color:#e9ecf5;font-weight:600}@@ -33,18 +35,483 @@ html{background:#101118} .dv-next{margin:28px 0 0;font:12.5px/1.5 -apple-system,system-ui,sans-serif;color:#8f97ad} </style> </helmet>+<section class="dv-turn" id="t6">+<div class="dv-thd"><a class="dv-tid" href="#t6">6</a><span class="dv-tname">iPad &amp; Mac with Today 1b + Library 2b</span></div>+<p class="dv-intro">This combines <a class="dv-oid" href="#3a">3a</a> (the sidebar is the library) with <a class="dv-oid" href="#3b">3b</a> (Today gets the full width), updated for your choices. <b style="color:#e9ecf5">The sidebar is the Library home.</b> On wide screens there's no hub page: the four tiles from 2b become the top sidebar section (Catching up, Reading, To read, Series), and the lower list becomes "More". Recently noted is dropped, since Today already covers it. <b style="color:#e9ecf5">Today is one full-width page</b> using the 1b pieces: the date title that returns to today, a week strip without dots, the release shelf, the Catching up card and the Noted timeline. <b style="color:#e9ecf5">Library groups use list + detail</b>, and it's the only place with a middle column.</p>+<div class="dv-opts">++<div class="dv-opt" id="6a">+<div class="dv-olabel"><a class="dv-oid" href="#6a">6a</a>Mac · Today <em>full width, no list column</em></div>+<div class="dv-card" style="border-radius:12px">+<div data-screen-label="6a Mac Today" style="width:1280px;height:800px;position:relative;overflow:hidden;border-radius:12px;background:radial-gradient(1.5px 1.5px at 18% 12%,rgba(255,255,255,.9),transparent),radial-gradient(1px 1px at 72% 8%,rgba(255,255,255,.7),transparent),radial-gradient(1px 1px at 44% 22%,rgba(255,255,255,.5),transparent),radial-gradient(1.5px 1.5px at 88% 30%,rgba(255,255,255,.6),transparent),radial-gradient(1px 1px at 10% 62%,rgba(255,255,255,.5),transparent),radial-gradient(1px 1px at 60% 75%,rgba(255,255,255,.4),transparent),radial-gradient(ellipse 60% 45% at 85% -10%,oklch(0.5 0.11 305 / .36),transparent),radial-gradient(ellipse 55% 40% at 8% 110%,oklch(0.5 0.11 220 / .31),transparent),linear-gradient(#0e0d20,#05060d);color:#e9ecf5;font-size:13px;line-height:1.35">+<div style="position:absolute;inset:0;display:flex;padding:8px;box-sizing:border-box">+<div style="width:236px;flex-shrink:0;display:flex;flex-direction:column;padding:14px 10px 12px;box-sizing:border-box;background:rgba(16,22,42,.55);backdrop-filter:blur(36px) saturate(1.9);-webkit-backdrop-filter:blur(36px) saturate(1.9);border:1px solid rgba(170,200,255,.16);border-radius:16px;box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 10px 40px rgba(0,0,0,.35)">+<div style="display:flex;gap:8px;padding:2px 10px 12px"><div style="width:12px;height:12px;border-radius:6px;background:#ff5f57"></div><div style="width:12px;height:12px;border-radius:6px;background:#febc2e"></div><div style="width:12px;height:12px;border-radius:6px;background:#28c840"></div></div>+<sc-for list="{{ side6a }}" as="s" hint-placeholder-count="12">+<sc-if value="{{s.head}}" hint-placeholder-val="{{ false }}"><div style="padding:14px 10px 5px;font-size:11px;font-weight:700;color:#6d7590;letter-spacing:.04em">{{s.l}}</div></sc-if>+<sc-if value="{{s.item}}" hint-placeholder-val="{{ true }}"><div style="display:flex;align-items:center;gap:9px;height:29px;padding:0 10px;border-radius:8px;background:{{s.bg}};color:{{s.fc}};font-size:13px"><span style="width:16px;text-align:center;color:{{s.icc}}">{{s.ic}}</span><span style="flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{s.l}}</span><span style="font-size:11.5px;color:#8f97ad">{{s.n}}</span></div></sc-if>+</sc-for>+<div style="flex:1"></div>+<div style="display:flex;align-items:center;gap:9px;height:29px;padding:0 10px;font-size:13px"><span style="width:16px;text-align:center;color:#8f97ad">▥</span>Stats</div>+</div>+<div style="flex:1;min-width:0;display:flex;flex-direction:column;padding:16px 32px 0 36px;box-sizing:border-box">+<div style="display:flex;align-items:center;gap:12px;height:44px">+<span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:32px;letter-spacing:-.01em">Wednesday 23 September</span>+<span style="flex:1"></span>+<div style="width:30px;height:30px;border-radius:15px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;color:#c9cfdd"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M12 5v14M5 12h14"></path></svg></div>+</div>+<div style="display:flex;align-items:center;gap:6px;padding:12px 0 0;max-width:620px">+<span style="color:oklch(0.82 0.12 220);font-size:16px;width:20px;text-align:center">‹</span>+<sc-for list="{{ weekA }}" as="d" hint-placeholder-count="7">+<div style="flex:1;padding:7px 0;border-radius:12px;background:{{d.bg}};border:1px solid {{d.bd}};display:flex;flex-direction:column;align-items:center;gap:1px"><span style="font-size:11px;font-weight:600;color:{{d.lc}}">{{d.l}}</span><span style="font-size:18px;font-weight:500;color:{{d.nc}}">{{d.n}}</span></div>+</sc-for>+<span style="color:oklch(0.82 0.12 220);font-size:16px;width:20px;text-align:center">›</span>+</div>+<div style="display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;padding-top:22px;min-height:0">+<div style="display:flex;flex-direction:column;min-width:0">+<div style="display:flex;align-items:center;gap:7px;padding:0 4px 12px"><span style="font-size:11px;color:oklch(0.82 0.12 220)">✦</span><span style="font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#8f97ad">Releasing</span><span style="margin-left:auto;font-size:12px;color:#8f97ad">2 of 4 read</span></div>+<div style="display:flex;gap:14px">+<sc-for list="{{ relShelf }}" as="it" hint-placeholder-count="4">+<div style="width:104px;flex-shrink:0;display:flex;flex-direction:column;gap:7px">+<div style="width:104px;height:148px;border-radius:12px;position:relative;background:linear-gradient(155deg,{{it.c1}},{{it.c2}});opacity:{{it.op}};box-shadow:{{it.ring}};display:flex;align-items:flex-end;padding:8px;box-sizing:border-box;font-family:'Newsreader',Georgia,serif;font-weight:600;font-size:18px;color:rgba(255,255,255,.88)">{{it.ini}}+<sc-if value="{{it.done}}" hint-placeholder-val="{{ true }}"><span style="position:absolute;top:7px;right:7px;width:24px;height:24px;border-radius:12px;background:rgba(10,14,30,.72);border:1px solid oklch(0.82 0.12 220 / .6);display:flex;align-items:center;justify-content:center;font-family:-apple-system,sans-serif;font-size:12px;font-weight:700;color:oklch(0.85 0.11 220)">✓</span></sc-if>+<sc-if value="{{it.due}}" hint-placeholder-val="{{ false }}"><span style="position:absolute;right:7px;bottom:7px;font-family:-apple-system,sans-serif;font-size:11px;font-weight:700;padding:3px 8px;border-radius:10px;background:rgba(10,14,30,.72);color:oklch(0.85 0.11 220)">{{it.sub}}</span></sc-if>+</div>+<div style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:13.5px;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden">{{it.t}}</div>+</div>+</sc-for>+</div>+<div style="display:flex;align-items:center;gap:7px;padding:24px 4px 10px"><span style="font-size:11px;color:oklch(0.82 0.12 305)">✦</span><span style="font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#8f97ad">Catching up</span><span style="margin-left:auto;font-size:12.5px;color:oklch(0.85 0.11 220)">See all</span></div>+<div style="padding:2px 14px;background:rgba(150,180,255,.055);border:1px solid rgba(170,200,255,.13);border-radius:18px;box-shadow:inset 0 1px 0 rgba(255,255,255,.1)">+<sc-for list="{{ catch1b }}" as="c" hint-placeholder-count="3">+<div style="display:flex;gap:12px;align-items:center;padding:10px 0;border-top:1px solid {{c.sep}}">+<div style="width:34px;height:48px;flex-shrink:0;border-radius:6px;background:linear-gradient(155deg,{{c.c1}},{{c.c2}});box-shadow:inset 0 1px 0 rgba(255,255,255,.25)"></div>+<div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:5px">+<span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{c.t}}</span>+<sc-if value="{{c.known}}" hint-placeholder-val="{{ true }}"><div style="display:flex;align-items:center;gap:6px"><div style="flex:1;height:4px;border-radius:2px;background:rgba(170,200,255,.12)"><div style="width:{{c.pct}};height:4px;border-radius:2px;background:oklch(0.82 0.12 220)"></div></div><span style="font-size:11px;color:#8f97ad">{{c.frac}}</span></div></sc-if>+<span style="font-size:12px;color:{{c.bc}};font-weight:600">{{c.behind}}</span>+</div>+<span style="height:28px;padding:0 11px;border-radius:14px;flex-shrink:0;display:flex;align-items:center;gap:5px;font-size:12px;font-weight:600;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.18);box-shadow:inset 0 1px 0 rgba(255,255,255,.14)">{{c.next}} <svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round"><path d="M7 17L17 7M9 7h8v8"></path></svg></span>+</div>+</sc-for>+</div>+</div>+<div style="display:flex;flex-direction:column;min-width:0">+<div style="display:flex;align-items:center;gap:7px;padding:0 4px 8px"><span style="font-size:11px;color:oklch(0.82 0.12 305)">✦</span><span style="font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#8f97ad">Noted</span><span style="margin-left:auto;font-size:12px;color:#8f97ad">4 notes</span></div>+<sc-for list="{{ noted }}" as="n" hint-placeholder-count="4">+<div style="display:flex;gap:12px;position:relative;padding:6px 0 16px">+<div style="position:absolute;left:21px;top:0;bottom:0;width:1px;background:rgba(170,200,255,.14)"></div>+<div style="width:44px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;padding-top:4px;position:relative"><div style="width:9px;height:9px;border-radius:5px;background:oklch(0.82 0.12 220);box-shadow:0 0 0 4px #0a0a18"></div><div style="font-family:ui-monospace,Menlo,monospace;font-size:10.5px;color:#8f97ad;margin-top:5px;background:#0a0a18">{{n.time}}</div></div>+<div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:3px">+<span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{n.t}}</span>+<span style="font-size:12px;color:oklch(0.85 0.11 220)">{{n.ch}}</span>+<span style="font-size:14px;color:#b6bdd1;line-height:1.5">{{n.note}}</span>+</div>+</div>+</sc-for>+</div>+</div>+</div>+</div>+</div>+</div>+<ul class="dv-note" style="width:1240px;columns:2;column-gap:40px">+<li><b>The same parts as phone 1b, arranged in two columns.</b> Releasing and Catching up on the left, Noted on the right, so a normal day fits without scrolling.</li>+<li><b>The date title works as on the phone.</b> When another day is selected, a cyan return arrow appears next to it, and clicking it goes back to today. ⌘T does the same, and ←/→ move a day.</li>+<li><b>Clicking a cover, row or note opens the work in the same area</b>, with a "‹ Today" back button, instead of adding a detail column. Today stays one uncluttered page.</li>+<li>Settings sits in the app menu (⌘,), as usual on a Mac, so the sidebar only holds Today, the library and Stats. + creates a work.</li>+</ul>+</div>++<div class="dv-opt" id="6b">+<div class="dv-olabel"><a class="dv-oid" href="#6b">6b</a>Mac · Catching up <em>a library group: list + work</em></div>+<div class="dv-card" style="border-radius:12px">+<div data-screen-label="6b Mac Catching up" style="width:1280px;height:800px;position:relative;overflow:hidden;border-radius:12px;background:radial-gradient(1.5px 1.5px at 18% 12%,rgba(255,255,255,.9),transparent),radial-gradient(1px 1px at 72% 8%,rgba(255,255,255,.7),transparent),radial-gradient(1px 1px at 44% 22%,rgba(255,255,255,.5),transparent),radial-gradient(1.5px 1.5px at 88% 30%,rgba(255,255,255,.6),transparent),radial-gradient(1px 1px at 10% 62%,rgba(255,255,255,.5),transparent),radial-gradient(ellipse 60% 45% at 85% -10%,oklch(0.5 0.11 305 / .36),transparent),radial-gradient(ellipse 55% 40% at 8% 110%,oklch(0.5 0.11 220 / .31),transparent),linear-gradient(#0e0d20,#05060d);color:#e9ecf5;font-size:13px;line-height:1.35">+<div style="position:absolute;inset:0;display:flex;padding:8px;box-sizing:border-box">+<div style="width:236px;flex-shrink:0;display:flex;flex-direction:column;padding:14px 10px 12px;box-sizing:border-box;background:rgba(16,22,42,.55);backdrop-filter:blur(36px) saturate(1.9);-webkit-backdrop-filter:blur(36px) saturate(1.9);border:1px solid rgba(170,200,255,.16);border-radius:16px;box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 10px 40px rgba(0,0,0,.35)">+<div style="display:flex;gap:8px;padding:2px 10px 12px"><div style="width:12px;height:12px;border-radius:6px;background:#ff5f57"></div><div style="width:12px;height:12px;border-radius:6px;background:#febc2e"></div><div style="width:12px;height:12px;border-radius:6px;background:#28c840"></div></div>+<sc-for list="{{ side6b }}" as="s" hint-placeholder-count="12">+<sc-if value="{{s.head}}" hint-placeholder-val="{{ false }}"><div style="padding:14px 10px 5px;font-size:11px;font-weight:700;color:#6d7590;letter-spacing:.04em">{{s.l}}</div></sc-if>+<sc-if value="{{s.item}}" hint-placeholder-val="{{ true }}"><div style="display:flex;align-items:center;gap:9px;height:29px;padding:0 10px;border-radius:8px;background:{{s.bg}};color:{{s.fc}};font-size:13px"><span style="width:16px;text-align:center;color:{{s.icc}}">{{s.ic}}</span><span style="flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{s.l}}</span><span style="font-size:11.5px;color:#8f97ad">{{s.n}}</span></div></sc-if>+</sc-for>+<div style="flex:1"></div>+<div style="display:flex;align-items:center;gap:9px;height:29px;padding:0 10px;font-size:13px"><span style="width:16px;text-align:center;color:#8f97ad">▥</span>Stats</div>+</div>+<div style="width:350px;flex-shrink:0;display:flex;flex-direction:column;padding:10px 16px 0;box-sizing:border-box">+<div style="display:flex;justify-content:flex-end;gap:8px;height:30px">+<div style="width:30px;height:30px;border-radius:15px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;color:#c9cfdd"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"><path d="M7 4v16M3 16l4 4 4-4M17 20V4M13 8l4-4 4 4"></path></svg></div>+<div style="width:30px;height:30px;border-radius:15px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;color:#c9cfdd"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M12 5v14M5 12h14"></path></svg></div>+</div>+<div style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:28px;letter-spacing:-.01em;padding:8px 4px 2px">Catching up</div>+<div style="font-size:12px;color:#8f97ad;padding:0 4px 12px">4 works · most behind first</div>+<div style="height:32px;border-radius:16px;background:rgba(150,180,255,.07);border:1px solid rgba(170,200,255,.1);display:flex;align-items:center;gap:8px;padding:0 12px;color:#8f97ad;font-size:13px;margin-bottom:12px"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="11" cy="11" r="7"></circle><path d="M20 20l-4-4"></path></svg>Search in Catching up</div>+<div style="margin-bottom:10px;padding:10px 12px;border-radius:14px;background:oklch(0.82 0.12 220 / .1);border:1px solid oklch(0.82 0.12 220 / .4);display:flex;flex-direction:column;gap:8px">+<span style="font-size:12.5px;line-height:1.35"><b style="font-weight:600">Caught up on Orbital Decay.</b> <span style="color:#b6bdd1">Move it back to Reading?</span></span>+<div style="display:flex;gap:6px"><div style="height:26px;padding:0 12px;border-radius:13px;display:flex;align-items:center;font-size:12px;font-weight:700;color:#fff;background:linear-gradient(100deg,oklch(0.72 0.13 220),oklch(0.68 0.14 305))">Move to Reading</div><div style="height:26px;padding:0 12px;border-radius:13px;display:flex;align-items:center;font-size:12px;font-weight:600;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.18)">Not yet</div></div>+</div>+<div style="padding:4px;background:rgba(150,180,255,.055);border:1px solid rgba(170,200,255,.13);border-radius:18px;box-shadow:inset 0 1px 0 rgba(255,255,255,.1);display:flex;flex-direction:column;gap:2px">+<sc-for list="{{ catch6 }}" as="c" hint-placeholder-count="3">+<div style="display:flex;gap:11px;align-items:center;padding:8px 10px 8px 8px;border-radius:14px;background:{{c.rbg}};border:1px solid {{c.rbd}}">+<div style="width:34px;height:48px;flex-shrink:0;border-radius:6px;background:linear-gradient(155deg,{{c.c1}},{{c.c2}});box-shadow:inset 0 1px 0 rgba(255,255,255,.25)"></div>+<div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:5px">+<span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{c.t}}</span>+<sc-if value="{{c.known}}" hint-placeholder-val="{{ true }}"><div style="display:flex;align-items:center;gap:6px"><div style="flex:1;height:4px;border-radius:2px;background:rgba(170,200,255,.12)"><div style="width:{{c.pct}};height:4px;border-radius:2px;background:oklch(0.82 0.12 220)"></div></div><span style="font-size:11px;color:#8f97ad">{{c.frac}}</span></div></sc-if>+<span style="display:block;max-width:100%;font-size:11.5px;color:{{c.bc}};font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{c.behind}}</span>+</div>+</div>+</sc-for>+</div>+</div>+<div style="flex:1;min-width:0;display:flex;flex-direction:column;padding:10px 24px 0 28px;box-sizing:border-box">+<div style="display:flex;justify-content:flex-end;gap:8px;height:30px">+<div style="width:30px;height:30px;border-radius:15px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;color:#c9cfdd"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20l4-1 11-11-3-3L5 16z"></path></svg></div>+<div style="width:30px;height:30px;border-radius:15px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;color:#c9cfdd"><svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor"><circle cx="5" cy="12" r="1.7"></circle><circle cx="12" cy="12" r="1.7"></circle><circle cx="19" cy="12" r="1.7"></circle></svg></div>+</div>+<div style="width:100%;max-width:640px;margin:0 auto;display:flex;flex-direction:column;padding-top:6px">+<div style="display:flex;gap:18px;align-items:flex-start">+<div style="width:62px;height:84px;border-radius:12px;flex-shrink:0;background:linear-gradient(155deg,#a7d6f2,#4a6fa8);border:1px solid rgba(170,200,255,.25);box-shadow:0 0 26px rgba(120,170,230,.3),inset 0 1px 0 rgba(255,255,255,.25)"></div>+<div style="min-width:0;flex:1;display:flex;flex-direction:column;gap:8px">+<div style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:26px;line-height:1.15">The Countdown of My Death is Spamming My Status Window</div>+<div style="display:flex;gap:6px;flex-wrap:wrap;align-items:center"><span style="font-size:11px;font-weight:650;color:oklch(0.85 0.11 305);background:oklch(0.82 0.12 305 / .12);border:1px solid oklch(0.82 0.12 305 / .35);border-radius:10px;padding:2px 9px">Webtoon</span><span style="font-size:11px;font-weight:650;color:oklch(0.85 0.11 220);background:oklch(0.82 0.12 220 / .12);border:1px solid oklch(0.82 0.12 220 / .35);border-radius:10px;padding:2px 9px">» Catching up</span><span style="font-size:12px;color:#8f97ad">Webtoons · Wednesdays · 26 notes</span></div>+</div>+</div>+<div style="margin-top:18px;padding:14px 16px;border-radius:18px;background:rgba(150,180,255,.055);border:1px solid rgba(170,200,255,.13);box-shadow:inset 0 1px 0 rgba(255,255,255,.1);display:flex;align-items:center;gap:18px">+<div style="flex:1;display:flex;flex-direction:column;gap:8px"><div style="display:flex;justify-content:space-between;font-size:12.5px"><span>Episode 26 of 40</span><span style="color:oklch(0.85 0.11 220);font-weight:600">14 behind</span></div><div style="height:5px;border-radius:3px;background:rgba(170,200,255,.12)"><div style="width:65%;height:5px;border-radius:3px;background:oklch(0.82 0.12 220)"></div></div><span style="font-size:11px;color:#8f97ad">Latest confirmed today · <span style="color:oklch(0.85 0.11 220)">Set latest…</span></span></div>+<div style="height:38px;padding:0 18px;border-radius:19px;display:flex;align-items:center;gap:7px;background:linear-gradient(100deg,oklch(0.72 0.13 220),oklch(0.68 0.14 305));color:#fff;font-weight:700;font-size:13px;box-shadow:0 2px 26px oklch(0.7 0.13 262 / .5),inset 0 1px 0 rgba(255,255,255,.3);white-space:nowrap">Continue at Ep 27 <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="2.4" stroke-linecap="round"><path d="M7 17L17 7M9 7h8v8"></path></svg></div>+</div>+<div style="display:flex;align-items:center;gap:7px;padding:24px 4px 8px"><span style="font-size:9px;color:oklch(0.82 0.12 305)">✦</span><span style="font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#8f97ad">Chapter notes</span></div>+<sc-for list="{{ spine3a }}" as="n" hint-placeholder-count="3">+<div style="display:flex;gap:12px;position:relative;padding:8px 0 14px">+<div style="position:absolute;left:21px;top:0;bottom:0;width:1px;background:rgba(170,200,255,.13)"></div>+<div style="width:44px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;padding-top:5px;position:relative"><div style="width:10px;height:10px;border-radius:5px;background:oklch(0.82 0.12 220)"></div><div style="font-family:ui-monospace,Menlo,monospace;font-size:11px;color:#8f97ad;margin-top:6px;background:#080914">{{n.n}}</div></div>+<div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:5px"><div style="display:flex;justify-content:space-between;gap:10px"><span style="font-size:13px;font-weight:600">{{n.t}}</span><span style="font-size:11px;color:#8f97ad">{{n.when}}</span></div><div style="font-size:14.5px;color:#b6bdd1;line-height:1.5">{{n.note}}</div></div>+</div>+</sc-for>+</div>+</div>+</div>+</div>+</div>+<ul class="dv-note" style="width:1240px;columns:2;column-gap:40px">+<li><b>The sidebar matches the 2b home.</b> The top section holds the four tiles (Catching up, Reading, To read, Series) and "More" holds the lower list (Creators, On hiatus, Finished, Abandoned, All works). The counts are the tile numbers. The tile stats ("~42 behind") move into each list's subtitle.</li>+<li><b>The middle column is the group screen from <a class="dv-oid" href="#5a">5a</a>/<a class="dv-oid" href="#4a">4a</a></b>: one flat card, the group's own sort, search limited to the group, ↕ and +. The caught-up banner and the exact / estimated / unknown rows come from 4a unchanged.</li>+<li><b>No row buttons in the list</b>, the same as on the phone. The work page gets the one primary action (Continue) and "Set latest…" under the progress bar.</li>+<li>Every regular group (Reading, To read, On hiatus, Finished, Abandoned, All works) uses this same layout. Only the rows' detail line changes (see <a class="dv-oid" href="#5d">5d</a>).</li>+</ul>+</div>++<div class="dv-opt" id="6c">+<div class="dv-olabel"><a class="dv-oid" href="#6c">6c</a>iPad landscape · Series <em>series list + series page</em></div>+<div class="dv-card" style="border-radius:30px">+<div data-screen-label="6c iPad Series" style="width:1180px;height:820px;position:relative;overflow:hidden;border-radius:30px;background:radial-gradient(1.5px 1.5px at 18% 12%,rgba(255,255,255,.9),transparent),radial-gradient(1px 1px at 72% 8%,rgba(255,255,255,.7),transparent),radial-gradient(1px 1px at 44% 22%,rgba(255,255,255,.5),transparent),radial-gradient(1.5px 1.5px at 88% 30%,rgba(255,255,255,.6),transparent),radial-gradient(1px 1px at 60% 75%,rgba(255,255,255,.4),transparent),radial-gradient(ellipse 60% 45% at 85% -10%,oklch(0.5 0.11 305 / .36),transparent),radial-gradient(ellipse 55% 40% at 8% 110%,oklch(0.5 0.11 220 / .31),transparent),linear-gradient(#0e0d20,#05060d);color:#e9ecf5;font-size:14px;line-height:1.35">+<div style="display:flex;justify-content:space-between;padding:12px 28px 0;font-size:13px;font-weight:600;height:30px;box-sizing:border-box"><span>23:50  Wed 23 Sep</span><span style="letter-spacing:2px;font-size:11px">▂▄▆  ▭</span></div>+<div style="position:absolute;top:30px;left:10px;right:10px;bottom:10px;display:flex">+<div style="width:250px;flex-shrink:0;display:flex;flex-direction:column;padding:14px 10px 12px;box-sizing:border-box;background:rgba(16,22,42,.55);backdrop-filter:blur(36px) saturate(1.9);-webkit-backdrop-filter:blur(36px) saturate(1.9);border:1px solid rgba(170,200,255,.16);border-radius:24px;box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 10px 40px rgba(0,0,0,.35)">+<div style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:22px;padding:2px 10px 4px">Asterism</div>+<sc-for list="{{ side6c }}" as="s" hint-placeholder-count="12">+<sc-if value="{{s.head}}" hint-placeholder-val="{{ false }}"><div style="padding:14px 10px 5px;font-size:12px;font-weight:700;color:#6d7590;letter-spacing:.04em">{{s.l}}</div></sc-if>+<sc-if value="{{s.item}}" hint-placeholder-val="{{ true }}"><div style="display:flex;align-items:center;gap:10px;height:40px;padding:0 12px;border-radius:12px;background:{{s.bg}};color:{{s.fc}};font-size:15px"><span style="width:18px;text-align:center;color:{{s.icc}}">{{s.ic}}</span><span style="flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{s.l}}</span><span style="font-size:13px;color:#8f97ad">{{s.n}}</span></div></sc-if>+</sc-for>+<div style="flex:1"></div>+<div style="display:flex;align-items:center;gap:10px;height:40px;padding:0 12px;font-size:15px"><span style="width:18px;text-align:center;color:#8f97ad">▥</span>Stats</div>+<div style="display:flex;align-items:center;gap:10px;height:40px;padding:0 12px;font-size:15px"><span style="width:18px;text-align:center;color:#8f97ad">⚙</span>Settings</div>+</div>+<div style="width:370px;flex-shrink:0;display:flex;flex-direction:column;padding:8px 16px 0 18px;box-sizing:border-box">+<div style="display:flex;justify-content:flex-end;height:40px"><div style="width:40px;height:40px;border-radius:20px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;color:#c9cfdd"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M12 5v14M5 12h14"></path></svg></div></div>+<div style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:30px;letter-spacing:-.01em;padding:2px 4px 0">Series</div>+<div style="font-size:12.5px;color:#8f97ad;padding:2px 4px 0">7 series · 22 works</div>+<sc-for list="{{ series6 }}" as="g" hint-placeholder-count="2">+<div style="display:flex;align-items:center;gap:7px;padding:14px 8px 8px"><span style="font-size:11px;color:oklch(0.82 0.12 305)">✦</span><span style="font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#8f97ad">{{g.l}}</span></div>+<div style="display:flex;flex-direction:column;gap:8px">+<sc-for list="{{g.rows}}" as="s" hint-placeholder-count="2">+<div style="display:flex;gap:12px;align-items:center;padding:8px 12px 8px 8px;background:{{s.bg}};border:1px solid {{s.bd}};border-radius:18px;box-shadow:inset 0 1px 0 rgba(255,255,255,.1);opacity:{{s.op}}">+<div style="position:relative;width:56px;height:56px;flex-shrink:0">+<sc-if value="{{s.n1}}" hint-placeholder-val="{{ false }}">+<div style="position:absolute;left:22px;top:7px;width:29px;height:42px;border-radius:5px;border:1.2px dashed rgba(170,200,255,.35);transform:rotate(9deg);box-sizing:border-box"></div>+<div style="position:absolute;left:9px;top:3px;width:31px;height:46px;border-radius:6px;background:linear-gradient(155deg,{{s.a.c1}},{{s.a.c2}});border:1px solid rgba(10,12,24,.8);box-shadow:0 4px 12px rgba(0,0,0,.4)"></div>+</sc-if>+<sc-if value="{{s.n2}}" hint-placeholder-val="{{ false }}">+<div style="position:absolute;left:22px;top:6px;width:30px;height:44px;border-radius:5px;background:linear-gradient(155deg,{{s.b.c1}},{{s.b.c2}});transform:rotate(8deg);opacity:.85;border:1px solid rgba(10,12,24,.8)"></div>+<div style="position:absolute;left:5px;top:3px;width:31px;height:46px;border-radius:6px;background:linear-gradient(155deg,{{s.a.c1}},{{s.a.c2}});transform:rotate(-4deg);border:1px solid rgba(10,12,24,.8);box-shadow:0 4px 12px rgba(0,0,0,.4)"></div>+</sc-if>+<sc-if value="{{s.n3}}" hint-placeholder-val="{{ true }}">+<div style="position:absolute;left:2px;top:7px;width:29px;height:42px;border-radius:5px;background:linear-gradient(155deg,{{s.c.c1}},{{s.c.c2}});transform:rotate(-9deg);opacity:.75;border:1px solid rgba(10,12,24,.8)"></div>+<div style="position:absolute;left:25px;top:7px;width:29px;height:42px;border-radius:5px;background:linear-gradient(155deg,{{s.b.c1}},{{s.b.c2}});transform:rotate(9deg);opacity:.85;border:1px solid rgba(10,12,24,.8)"></div>+<div style="position:absolute;left:12px;top:3px;width:31px;height:46px;border-radius:6px;background:linear-gradient(155deg,{{s.a.c1}},{{s.a.c2}});border:1px solid rgba(10,12,24,.8);box-shadow:0 4px 12px rgba(0,0,0,.4)"></div>+</sc-if>+<sc-if value="{{s.hasMore}}" hint-placeholder-val="{{ false }}"><span style="position:absolute;right:-2px;bottom:0;font-size:9.5px;font-weight:700;padding:1px 5px;border-radius:7px;background:rgba(10,14,30,.85);border:1px solid rgba(170,200,255,.25);color:#c9cfdd">{{s.more}}</span></sc-if>+</div>+<div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:5px">+<div style="display:flex;align-items:baseline;gap:8px"><span style="flex:1;min-width:0;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{s.name}}</span><span style="font-size:11.5px;color:#8f97ad;flex-shrink:0">{{s.count}}</span></div>+<div style="display:flex;gap:3px;height:4px"><sc-for list="{{s.segs}}" as="x" hint-placeholder-count="4"><div style="flex:1;border-radius:2px;background:{{x.bg}}"></div></sc-for></div>+<span style="font-size:11.5px;color:{{s.nextC}};white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{s.next}}</span>+</div>+</div>+</sc-for>+</div>+</sc-for>+</div>+<div style="flex:1;min-width:0;display:flex;flex-direction:column;padding:8px 22px 0 22px;box-sizing:border-box">+<div style="display:flex;justify-content:flex-end;gap:10px;height:40px">+<div style="height:40px;padding:0 16px;border-radius:20px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;color:#c9cfdd;font-size:14px;font-weight:600">Edit</div>+</div>+<div style="position:relative;height:120px;width:200px;margin:0 auto">+<div style="position:absolute;left:18px;top:16px;width:66px;height:94px;border-radius:9px;background:linear-gradient(155deg,#5d86d8,#23335c);transform:rotate(-10deg);opacity:.75;border:1px solid rgba(10,12,24,.8)"></div>+<div style="position:absolute;right:18px;top:16px;width:66px;height:94px;border-radius:9px;background:linear-gradient(155deg,#c98a5a,#4a2a1a);transform:rotate(10deg);opacity:.85;border:1px solid rgba(10,12,24,.8)"></div>+<div style="position:absolute;left:62px;top:6px;width:74px;height:104px;border-radius:10px;background:linear-gradient(155deg,#6a8fe0,#2a3570);border:1px solid rgba(170,200,255,.25);box-shadow:0 0 30px rgba(106,143,224,.35),inset 0 1px 0 rgba(255,255,255,.25)"></div>+<span style="position:absolute;right:6px;bottom:8px;font-size:11px;font-weight:700;padding:2px 7px;border-radius:9px;background:rgba(10,14,30,.88);border:1px solid rgba(170,200,255,.25);color:#c9cfdd">+1</span>+</div>+<div style="text-align:center;padding:8px 0 0"><div style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:28px;letter-spacing:-.01em">The Ironway Cycle</div><div style="font-size:13px;color:#8f97ad;margin-top:3px">4 works · M. Hale · Royal Road</div></div>+<div style="width:100%;max-width:480px;margin:0 auto;display:flex;flex-direction:column">+<div style="padding:14px 0 0"><div style="display:flex;gap:3px;height:6px"><div style="flex:1;border-radius:3px;background:oklch(0.82 0.12 220)"></div><div style="flex:1;border-radius:3px;background:oklch(0.82 0.12 220 / .45)"></div><div style="flex:1;border-radius:3px;background:rgba(170,200,255,.14)"></div><div style="flex:1;border-radius:3px;background:rgba(170,200,255,.14)"></div></div><div style="display:flex;justify-content:space-between;font-size:11.5px;color:#8f97ad;margin-top:6px"><span>1 finished · 1 reading</span><span>2 to read</span></div></div>+<div style="margin-top:14px;padding:12px;background:rgba(150,180,255,.055);border:1px solid rgba(170,200,255,.13);border-radius:20px;box-shadow:inset 0 1px 0 rgba(255,255,255,.1);display:flex;align-items:center;gap:12px">+<div style="width:40px;height:56px;flex-shrink:0;border-radius:7px;background:linear-gradient(155deg,#6a8fe0,#2a3570)"></div>+<div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:2px"><span style="font-size:10.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#8f97ad">Next up · Book 2</span><span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:16px">Beacon Lines</span><span style="font-size:12px;color:#8f97ad">Last noted Ch 211 · 3 days ago</span></div>+<div style="height:38px;padding:0 16px;border-radius:19px;display:flex;align-items:center;gap:7px;background:linear-gradient(100deg,oklch(0.72 0.13 220),oklch(0.68 0.14 305));color:#fff;font-weight:700;font-size:13px;box-shadow:0 2px 22px oklch(0.7 0.13 262 / .45),inset 0 1px 0 rgba(255,255,255,.3);white-space:nowrap">Ch 212 <svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="2.4" stroke-linecap="round"><path d="M7 17L17 7M9 7h8v8"></path></svg></div>+</div>+<div style="display:flex;align-items:center;gap:7px;padding:18px 4px 6px"><span style="font-size:11px;color:oklch(0.82 0.12 305)">✦</span><span style="font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#8f97ad">Reading order</span></div>+<sc-for list="{{ order2d }}" as="o" hint-placeholder-count="4">+<div style="display:flex;align-items:center;gap:12px;padding:5px 4px">+<span style="width:30px;text-align:right;font-family:'Newsreader',Georgia,serif;font-weight:500;font-size:21px;color:#6d7590">{{o.pos}}</span>+<div style="width:32px;height:45px;flex-shrink:0;border-radius:6px;background:linear-gradient(155deg,{{o.c1}},{{o.c2}});opacity:{{o.op}}"></div>+<div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:2px"><span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{o.t}}</span><span style="font-size:12px;color:{{o.stC}}">{{o.st}}</span></div>+</div>+</sc-for>+</div>+</div>+</div>+</div>+</div>+<ul class="dv-note" style="width:1140px;columns:2;column-gap:40px">+<li><b>Series gets its own list column</b>: the series list from <a class="dv-oid" href="#5b">5b</a> with the fan rules from <a class="dv-oid" href="#5c">5c</a>. The detail column is the series page from <a class="dv-oid" href="#2d">2d</a>, with Beacon Lines (next up) in front.</li>+<li><b>Clicking a work in the reading order</b> opens it in the detail column with a "‹ The Ironway Cycle" back button. The series list stays where it is, so you can go through a whole series without losing your place.</li>+<li>iPad keeps Settings at the bottom of the sidebar, because iPad has no app menu to put it in. The sidebar collapses (⌘⇧S or the toolbar button) to the iPadOS floating tab bar with Today / Library / Stats.</li>+<li>In portrait the sidebar hides, and the list and detail columns work as on the phone (list, then push), just with more width.</li>+</ul>+</div>++<div class="dv-opt" id="6d">+<div class="dv-olabel"><a class="dv-oid" href="#6d">6d</a>iPad portrait · Today <em>sidebar collapsed to the top tab bar</em></div>+<div class="dv-card" style="border-radius:30px">+<div data-screen-label="6d iPad portrait Today" style="width:820px;height:1180px;position:relative;overflow:hidden;border-radius:30px;background:radial-gradient(1.5px 1.5px at 18% 12%,rgba(255,255,255,.9),transparent),radial-gradient(1px 1px at 72% 8%,rgba(255,255,255,.7),transparent),radial-gradient(1px 1px at 44% 32%,rgba(255,255,255,.5),transparent),radial-gradient(1.5px 1.5px at 88% 40%,rgba(255,255,255,.6),transparent),radial-gradient(1px 1px at 10% 72%,rgba(255,255,255,.5),transparent),radial-gradient(ellipse 70% 40% at 90% -8%,oklch(0.5 0.11 305 / .4),transparent),radial-gradient(ellipse 70% 40% at 0% 108%,oklch(0.5 0.11 220 / .34),transparent),linear-gradient(#141228,#070814);color:#e9ecf5;font-size:14px;line-height:1.35">+<div style="display:flex;justify-content:space-between;padding:12px 28px 0;font-size:13px;font-weight:600"><span>23:50  Wed 23 Sep</span><span style="letter-spacing:2px;font-size:11px">▂▄▆  ▭</span></div>+<div style="display:flex;align-items:center;padding:10px 24px 0;gap:10px">+<div style="width:40px;height:40px;border-radius:20px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;color:#c9cfdd"><svg width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><rect x="3" y="5" width="18" height="14" rx="3"></rect><path d="M9 5v14"></path></svg></div>+<div style="flex:1;display:flex;justify-content:center">+<div style="height:44px;border-radius:22px;padding:4px;box-sizing:border-box;display:flex;gap:2px;background:rgba(18,24,44,.6);backdrop-filter:blur(30px) saturate(1.9);-webkit-backdrop-filter:blur(30px) saturate(1.9);border:1px solid rgba(170,200,255,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 8px 24px rgba(0,0,0,.35)">+<div style="display:flex;align-items:center;padding:0 18px;border-radius:18px;background:rgba(150,180,255,.14);color:oklch(0.85 0.11 220);font-weight:600;font-size:14px">Today</div>+<div style="display:flex;align-items:center;padding:0 18px;color:#c9cfdd;font-weight:600;font-size:14px">Library</div>+<div style="display:flex;align-items:center;padding:0 18px;color:#c9cfdd;font-weight:600;font-size:14px">Stats</div>+</div>+</div>+<div style="width:40px;height:40px;border-radius:20px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;color:#c9cfdd"><svg width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><circle cx="12" cy="12" r="3"></circle><circle cx="12" cy="12" r="8" stroke-dasharray="3 2.2"></circle></svg></div>+</div>+<div style="padding:26px 32px 0;display:flex;flex-direction:column">+<span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:34px;letter-spacing:-.01em">Wednesday 23 September</span>+<div style="display:flex;align-items:center;gap:6px;padding:14px 0 0">+<span style="color:oklch(0.82 0.12 220);font-size:18px;width:22px;text-align:center">‹</span>+<sc-for list="{{ weekA }}" as="d" hint-placeholder-count="7">+<div style="flex:1;padding:8px 0;border-radius:14px;background:{{d.bg}};border:1px solid {{d.bd}};display:flex;flex-direction:column;align-items:center;gap:1px"><span style="font-size:12px;font-weight:600;color:{{d.lc}}">{{d.l}}</span><span style="font-size:20px;font-weight:500;color:{{d.nc}}">{{d.n}}</span></div>+</sc-for>+<span style="color:oklch(0.82 0.12 220);font-size:18px;width:22px;text-align:center">›</span>+</div>+<div style="display:flex;align-items:center;gap:7px;padding:26px 4px 12px"><span style="font-size:11px;color:oklch(0.82 0.12 220)">✦</span><span style="font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#8f97ad">Releasing</span><span style="margin-left:auto;font-size:12px;color:#8f97ad">2 of 4 read</span></div>+<div style="display:flex;gap:18px">+<sc-for list="{{ relShelf }}" as="it" hint-placeholder-count="4">+<div style="width:128px;flex-shrink:0;display:flex;flex-direction:column;gap:8px">+<div style="width:128px;height:182px;border-radius:14px;position:relative;background:linear-gradient(155deg,{{it.c1}},{{it.c2}});opacity:{{it.op}};box-shadow:{{it.ring}};display:flex;align-items:flex-end;padding:10px;box-sizing:border-box;font-family:'Newsreader',Georgia,serif;font-weight:600;font-size:22px;color:rgba(255,255,255,.88)">{{it.ini}}+<sc-if value="{{it.done}}" hint-placeholder-val="{{ true }}"><span style="position:absolute;top:8px;right:8px;width:26px;height:26px;border-radius:13px;background:rgba(10,14,30,.72);border:1px solid oklch(0.82 0.12 220 / .6);display:flex;align-items:center;justify-content:center;font-family:-apple-system,sans-serif;font-size:13px;font-weight:700;color:oklch(0.85 0.11 220)">✓</span></sc-if>+<sc-if value="{{it.due}}" hint-placeholder-val="{{ false }}"><span style="position:absolute;right:8px;bottom:8px;font-family:-apple-system,sans-serif;font-size:12px;font-weight:700;padding:3px 9px;border-radius:10px;background:rgba(10,14,30,.72);color:oklch(0.85 0.11 220)">{{it.sub}}</span></sc-if>+</div>+<div style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:14.5px;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden">{{it.t}}</div>+</div>+</sc-for>+</div>+<div style="display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;padding-top:26px">+<div style="display:flex;flex-direction:column;min-width:0">+<div style="display:flex;align-items:center;gap:7px;padding:0 4px 10px"><span style="font-size:11px;color:oklch(0.82 0.12 305)">✦</span><span style="font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#8f97ad">Catching up</span></div>+<div style="padding:2px 12px;background:rgba(150,180,255,.055);border:1px solid rgba(170,200,255,.13);border-radius:20px;box-shadow:inset 0 1px 0 rgba(255,255,255,.1)">+<sc-for list="{{ catch1b }}" as="c" hint-placeholder-count="3">+<div style="display:flex;gap:11px;align-items:center;padding:10px 0;border-top:1px solid {{c.sep}}">+<div style="width:34px;height:48px;flex-shrink:0;border-radius:6px;background:linear-gradient(155deg,{{c.c1}},{{c.c2}})"></div>+<div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:5px">+<span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{c.t}}</span>+<sc-if value="{{c.known}}" hint-placeholder-val="{{ true }}"><div style="display:flex;align-items:center;gap:6px"><div style="flex:1;height:4px;border-radius:2px;background:rgba(170,200,255,.12)"><div style="width:{{c.pct}};height:4px;border-radius:2px;background:oklch(0.82 0.12 220)"></div></div><span style="font-size:11px;color:#8f97ad">{{c.frac}}</span></div></sc-if>+<span style="display:block;max-width:100%;font-size:11.5px;color:{{c.bc}};font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{c.behind}}</span>+</div>+<span style="height:30px;padding:0 10px;border-radius:15px;flex-shrink:0;display:flex;align-items:center;gap:4px;font-size:12px;font-weight:600;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.18)">{{c.next}} <svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round"><path d="M7 17L17 7M9 7h8v8"></path></svg></span>+</div>+</sc-for>+</div>+</div>+<div style="display:flex;flex-direction:column;min-width:0">+<div style="display:flex;align-items:center;gap:7px;padding:0 4px 6px"><span style="font-size:11px;color:oklch(0.82 0.12 305)">✦</span><span style="font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#8f97ad">Noted</span><span style="margin-left:auto;font-size:12px;color:#8f97ad">4 notes</span></div>+<sc-for list="{{ noted }}" as="n" hint-placeholder-count="4">+<div style="display:flex;gap:10px;position:relative;padding:6px 0 14px">+<div style="position:absolute;left:19px;top:0;bottom:0;width:1px;background:rgba(170,200,255,.14)"></div>+<div style="width:40px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;padding-top:4px;position:relative"><div style="width:9px;height:9px;border-radius:5px;background:oklch(0.82 0.12 220);box-shadow:0 0 0 4px #0d0c1d"></div><div style="font-family:ui-monospace,Menlo,monospace;font-size:10.5px;color:#8f97ad;margin-top:5px;background:#0d0c1d">{{n.time}}</div></div>+<div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:3px">+<span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{n.t}}</span>+<span style="font-size:12px;color:oklch(0.85 0.11 220)">{{n.ch}}</span>+<span style="font-size:14px;color:#b6bdd1;line-height:1.45">{{n.note}}</span>+</div>+</div>+</sc-for>+</div>+</div>+</div>+</div>+</div>+<ul class="dv-note" style="width:780px">+<li><b>The phone 1b layout, widened.</b> Bigger covers on the shelf, then Catching up and Noted side by side. Tapping anything pushes the work full width, and the tab bar hides.</li>+<li><b>The tab bar works like the sidebar.</b> Library opens the 2b hub from the phone (tiles plus "More"), and the sidebar button top-left brings back the full sidebar from <a class="dv-oid" href="#6c">6c</a>. That's <code>.sidebarAdaptable</code> doing what it's built for.</li>+<li>Landscape Today is the same as <a class="dv-oid" href="#6a">6a</a> (full width, two columns) with the sidebar showing.</li>+</ul>+</div>++</div>+<div style="flex-basis:100%;height:0"></div>++<div class="dv-opt" id="6e">+<div class="dv-olabel"><a class="dv-oid" href="#6e">6e</a>Mac · note opened from Today <em>the work page replaces Today, with "‹ Today" to go back</em></div>+<div class="dv-card" style="border-radius:12px">+<div data-screen-label="6e Mac work from Today" style="width:1280px;height:800px;position:relative;overflow:hidden;border-radius:12px;background:radial-gradient(1.5px 1.5px at 18% 12%,rgba(255,255,255,.9),transparent),radial-gradient(1px 1px at 72% 8%,rgba(255,255,255,.7),transparent),radial-gradient(1px 1px at 44% 22%,rgba(255,255,255,.5),transparent),radial-gradient(1.5px 1.5px at 88% 30%,rgba(255,255,255,.6),transparent),radial-gradient(1px 1px at 60% 75%,rgba(255,255,255,.4),transparent),radial-gradient(ellipse 60% 45% at 85% -10%,oklch(0.5 0.11 305 / .36),transparent),radial-gradient(ellipse 55% 40% at 8% 110%,oklch(0.5 0.11 220 / .31),transparent),linear-gradient(#0e0d20,#05060d);color:#e9ecf5;font-size:13px;line-height:1.35">+<div style="position:absolute;inset:0;display:flex;padding:8px;box-sizing:border-box">+<div style="width:236px;flex-shrink:0;display:flex;flex-direction:column;padding:14px 10px 12px;box-sizing:border-box;background:rgba(16,22,42,.55);backdrop-filter:blur(36px) saturate(1.9);-webkit-backdrop-filter:blur(36px) saturate(1.9);border:1px solid rgba(170,200,255,.16);border-radius:16px;box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 10px 40px rgba(0,0,0,.35)">+<div style="display:flex;gap:8px;padding:2px 10px 12px"><div style="width:12px;height:12px;border-radius:6px;background:#ff5f57"></div><div style="width:12px;height:12px;border-radius:6px;background:#febc2e"></div><div style="width:12px;height:12px;border-radius:6px;background:#28c840"></div></div>+<sc-for list="{{ side6a }}" as="s" hint-placeholder-count="12">+<sc-if value="{{s.head}}" hint-placeholder-val="{{ false }}"><div style="padding:14px 10px 5px;font-size:11px;font-weight:700;color:#6d7590;letter-spacing:.04em">{{s.l}}</div></sc-if>+<sc-if value="{{s.item}}" hint-placeholder-val="{{ true }}"><div style="display:flex;align-items:center;gap:9px;height:29px;padding:0 10px;border-radius:8px;background:{{s.bg}};color:{{s.fc}};font-size:13px"><span style="width:16px;text-align:center;color:{{s.icc}}">{{s.ic}}</span><span style="flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{s.l}}</span><span style="font-size:11.5px;color:#8f97ad">{{s.n}}</span></div></sc-if>+</sc-for>+<div style="flex:1"></div>+<div style="display:flex;align-items:center;gap:9px;height:29px;padding:0 10px;font-size:13px"><span style="width:16px;text-align:center;color:#8f97ad">▥</span>Stats</div>+</div>+<div style="flex:1;min-width:0;display:flex;flex-direction:column;padding:12px 28px 0 32px;box-sizing:border-box">+<div style="display:flex;align-items:center;gap:8px;height:32px">+<div style="height:30px;padding:0 13px 0 9px;border-radius:15px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;gap:4px;color:#c9cfdd;font-size:13px;font-weight:600"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 6l-6 6 6 6"></path></svg>Today</div>+<span style="flex:1"></span>+<div style="width:30px;height:30px;border-radius:15px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;color:#c9cfdd"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20l4-1 11-11-3-3L5 16z"></path></svg></div>+<div style="width:30px;height:30px;border-radius:15px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;color:#c9cfdd"><svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor"><circle cx="5" cy="12" r="1.7"></circle><circle cx="12" cy="12" r="1.7"></circle><circle cx="19" cy="12" r="1.7"></circle></svg></div>+</div>+<div style="display:grid;grid-template-columns:300px minmax(0,1fr);gap:36px;padding-top:16px">+<div style="display:flex;flex-direction:column;gap:14px">+<div style="width:132px;height:186px;border-radius:14px;background:linear-gradient(155deg,#a7d6f2,#4a6fa8);border:1px solid rgba(170,200,255,.25);box-shadow:0 0 34px rgba(120,170,230,.3),inset 0 1px 0 rgba(255,255,255,.25)"></div>+<div style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:24px;line-height:1.15">The Countdown of My Death is Spamming My Status Window</div>+<div style="display:flex;gap:6px;flex-wrap:wrap"><span style="font-size:11px;font-weight:650;color:oklch(0.85 0.11 305);background:oklch(0.82 0.12 305 / .12);border:1px solid oklch(0.82 0.12 305 / .35);border-radius:10px;padding:2px 9px">Webtoon</span><span style="font-size:11px;font-weight:650;color:oklch(0.85 0.11 220);background:oklch(0.82 0.12 220 / .12);border:1px solid oklch(0.82 0.12 220 / .35);border-radius:10px;padding:2px 9px">» Catching up</span></div>+<div style="padding:12px 14px;border-radius:16px;background:rgba(150,180,255,.055);border:1px solid rgba(170,200,255,.13);box-shadow:inset 0 1px 0 rgba(255,255,255,.1);display:flex;flex-direction:column;gap:8px">+<div style="display:flex;justify-content:space-between;font-size:12.5px"><span>Episode 26 of 40</span><span style="color:oklch(0.85 0.11 220);font-weight:600">14 behind</span></div>+<div style="height:5px;border-radius:3px;background:rgba(170,200,255,.12)"><div style="width:65%;height:5px;border-radius:3px;background:oklch(0.82 0.12 220)"></div></div>+<div style="height:36px;margin-top:4px;border-radius:18px;display:flex;align-items:center;justify-content:center;gap:7px;background:linear-gradient(100deg,oklch(0.72 0.13 220),oklch(0.68 0.14 305));color:#fff;font-weight:700;font-size:13px;box-shadow:0 2px 22px oklch(0.7 0.13 262 / .45),inset 0 1px 0 rgba(255,255,255,.3)">Continue at Ep 27 <svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="2.4" stroke-linecap="round"><path d="M7 17L17 7M9 7h8v8"></path></svg></div>+</div>+<div style="padding:0 14px;border-radius:16px;background:rgba(150,180,255,.04);border:1px solid rgba(170,200,255,.1)">+<sc-for list="{{ meta6 }}" as="m" hint-placeholder-count="5">+<div style="display:flex;gap:10px;align-items:baseline;padding:9px 0;border-top:1px solid {{m.sep}}"><span style="width:66px;flex-shrink:0;font-size:12px;color:#8f97ad">{{m.k}}</span><span style="flex:1;min-width:0;font-size:12.5px">{{m.v}}</span></div>+</sc-for>+</div>+</div>+<div style="display:flex;flex-direction:column;min-width:0">+<div style="display:flex;align-items:center;gap:7px;padding:0 4px 10px"><span style="font-size:9px;color:oklch(0.82 0.12 305)">✦</span><span style="font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#8f97ad">Chapter notes</span><span style="margin-left:auto;font-size:12px;color:#8f97ad">26 notes · newest first</span></div>+<sc-for list="{{ spine6 }}" as="n" hint-placeholder-count="4">+<div style="display:flex;gap:12px;position:relative;padding:10px 12px 14px 0;border-radius:16px;background:{{n.bg}};border:1px solid {{n.bd}};margin-bottom:4px">+<div style="position:absolute;left:21px;top:0;bottom:0;width:1px;background:rgba(170,200,255,.13)"></div>+<div style="width:44px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;padding-top:5px;position:relative"><div style="width:10px;height:10px;border-radius:5px;background:oklch(0.82 0.12 220);box-shadow:{{n.dot}}"></div><div style="font-family:ui-monospace,Menlo,monospace;font-size:11px;color:#8f97ad;margin-top:6px;background:#0a0a18">{{n.n}}</div></div>+<div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:6px">+<div style="display:flex;justify-content:space-between;gap:10px"><span style="font-size:13.5px;font-weight:600">{{n.t}}</span><span style="font-size:11.5px;color:#8f97ad">{{n.when}}</span></div>+<div style="font-size:14.5px;color:#c9cfdd;line-height:1.55">{{n.note}}</div>+<sc-if value="{{n.sel}}" hint-placeholder-val="{{ false }}"><div style="display:flex;align-items:center;gap:8px;padding-top:4px"><span style="height:26px;padding:0 10px;border-radius:13px;display:flex;align-items:center;font-size:12px;color:oklch(0.85 0.11 220);background:oklch(0.82 0.12 220 / .15);border:1px solid oklch(0.82 0.12 220 / .5)">▲ Liked</span><span style="font-size:12px;color:#8f97ad">{{n.chars}}</span><span style="flex:1"></span><span style="font-size:12px;color:oklch(0.85 0.11 220)">Edit</span><span style="font-size:12px;color:oklch(0.85 0.11 220)">Open chapter ↗</span></div></sc-if>+</div>+</div>+</sc-for>+</div>+</div>+</div>+</div>+</div>+</div>+<ul class="dv-note" style="width:1240px;columns:2;column-gap:40px">+<li><b>Today stays selected in the sidebar</b> and the back button reads "‹ Today", so it's clear you're one step inside Today. Back (⌘[ or Esc) returns to the same day and scroll position.</li>+<li><b>Opening a note scrolls to it and highlights it</b> in the timeline, with its actions (vote, characters, Edit, Open chapter) shown. Opening a cover or catching-up row gives the same page, scrolled to the top with nothing highlighted.</li>+<li><b>At this width the work page uses two columns</b>: the work and its progress on the left, notes on the right. It's the same page as in a Library group (<a class="dv-oid" href="#6b">6b</a>), which switches to one column when it's narrower.</li>+<li>From here, series, creator and tag links keep pushing onto the Today stack. Clicking Today in the sidebar goes straight back to the top.</li>+</ul>+</div>++<div class="dv-opt" id="6f">+<div class="dv-olabel"><a class="dv-oid" href="#6f">6f</a>Alternative · the note opens in an inspector <em>Today stays visible</em></div>+<div class="dv-card" style="border-radius:12px">+<div data-screen-label="6f Mac Today inspector" style="width:1280px;height:800px;position:relative;overflow:hidden;border-radius:12px;background:radial-gradient(1.5px 1.5px at 18% 12%,rgba(255,255,255,.9),transparent),radial-gradient(1px 1px at 72% 8%,rgba(255,255,255,.7),transparent),radial-gradient(1px 1px at 44% 22%,rgba(255,255,255,.5),transparent),radial-gradient(1px 1px at 60% 75%,rgba(255,255,255,.4),transparent),radial-gradient(ellipse 60% 45% at 85% -10%,oklch(0.5 0.11 305 / .36),transparent),radial-gradient(ellipse 55% 40% at 8% 110%,oklch(0.5 0.11 220 / .31),transparent),linear-gradient(#0e0d20,#05060d);color:#e9ecf5;font-size:13px;line-height:1.35">+<div style="position:absolute;inset:0;display:flex;padding:8px;gap:10px;box-sizing:border-box">+<div style="width:236px;flex-shrink:0;display:flex;flex-direction:column;padding:14px 10px 12px;box-sizing:border-box;background:rgba(16,22,42,.55);backdrop-filter:blur(36px) saturate(1.9);-webkit-backdrop-filter:blur(36px) saturate(1.9);border:1px solid rgba(170,200,255,.16);border-radius:16px;box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 10px 40px rgba(0,0,0,.35)">+<div style="display:flex;gap:8px;padding:2px 10px 12px"><div style="width:12px;height:12px;border-radius:6px;background:#ff5f57"></div><div style="width:12px;height:12px;border-radius:6px;background:#febc2e"></div><div style="width:12px;height:12px;border-radius:6px;background:#28c840"></div></div>+<sc-for list="{{ side6a }}" as="s" hint-placeholder-count="12">+<sc-if value="{{s.head}}" hint-placeholder-val="{{ false }}"><div style="padding:14px 10px 5px;font-size:11px;font-weight:700;color:#6d7590;letter-spacing:.04em">{{s.l}}</div></sc-if>+<sc-if value="{{s.item}}" hint-placeholder-val="{{ true }}"><div style="display:flex;align-items:center;gap:9px;height:29px;padding:0 10px;border-radius:8px;background:{{s.bg}};color:{{s.fc}};font-size:13px"><span style="width:16px;text-align:center;color:{{s.icc}}">{{s.ic}}</span><span style="flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{s.l}}</span><span style="font-size:11.5px;color:#8f97ad">{{s.n}}</span></div></sc-if>+</sc-for>+<div style="flex:1"></div>+<div style="display:flex;align-items:center;gap:9px;height:29px;padding:0 10px;font-size:13px"><span style="width:16px;text-align:center;color:#8f97ad">▥</span>Stats</div>+</div>+<div style="flex:1;min-width:0;display:flex;flex-direction:column;padding:16px 8px 0 18px;box-sizing:border-box">+<span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:28px;letter-spacing:-.01em">Wednesday 23 September</span>+<div style="display:flex;gap:5px;padding:10px 0 0">+<sc-for list="{{ weekA }}" as="d" hint-placeholder-count="7">+<div style="flex:1;padding:6px 0;border-radius:11px;background:{{d.bg}};border:1px solid {{d.bd}};display:flex;flex-direction:column;align-items:center"><span style="font-size:10.5px;font-weight:600;color:{{d.lc}}">{{d.l}}</span><span style="font-size:16px;font-weight:500;color:{{d.nc}}">{{d.n}}</span></div>+</sc-for>+</div>+<div style="display:flex;align-items:center;gap:7px;padding:18px 4px 10px"><span style="font-size:11px;color:oklch(0.82 0.12 220)">✦</span><span style="font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#8f97ad">Releasing</span></div>+<div style="display:flex;gap:12px">+<sc-for list="{{ relShelf }}" as="it" hint-placeholder-count="4">+<div style="width:84px;height:120px;flex-shrink:0;border-radius:10px;position:relative;background:linear-gradient(155deg,{{it.c1}},{{it.c2}});opacity:{{it.op}};box-shadow:{{it.ring}}">+<sc-if value="{{it.done}}" hint-placeholder-val="{{ true }}"><span style="position:absolute;top:6px;right:6px;width:22px;height:22px;border-radius:11px;background:rgba(10,14,30,.72);border:1px solid oklch(0.82 0.12 220 / .6);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:oklch(0.85 0.11 220)">✓</span></sc-if>+<sc-if value="{{it.due}}" hint-placeholder-val="{{ false }}"><span style="position:absolute;right:6px;bottom:6px;font-size:10.5px;font-weight:700;padding:2px 7px;border-radius:9px;background:rgba(10,14,30,.72);color:oklch(0.85 0.11 220)">{{it.sub}}</span></sc-if>+</div>+</sc-for>+</div>+<div style="display:flex;align-items:center;gap:7px;padding:20px 4px 6px"><span style="font-size:11px;color:oklch(0.82 0.12 305)">✦</span><span style="font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#8f97ad">Noted</span></div>+<div style="display:flex;flex-direction:column;gap:3px">+<sc-for list="{{ noted6 }}" as="n" hint-placeholder-count="4">+<div style="display:flex;gap:12px;padding:9px 12px;border-radius:14px;background:{{n.rbg}};border:1px solid {{n.rbd}}">+<span style="width:38px;flex-shrink:0;font-family:ui-monospace,Menlo,monospace;font-size:11px;color:#8f97ad;padding-top:2px">{{n.time}}</span>+<div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:2px"><span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{n.t}}</span><span style="font-size:12px;color:oklch(0.85 0.11 220)">{{n.ch}}</span><span style="display:block;max-width:100%;font-size:13px;color:#b6bdd1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{n.note}}</span></div>+</div>+</sc-for>+</div>+</div>+<div style="width:380px;flex-shrink:0;box-sizing:border-box;padding:18px;display:flex;flex-direction:column;gap:12px;background:rgba(16,22,42,.62);backdrop-filter:blur(36px) saturate(1.9);-webkit-backdrop-filter:blur(36px) saturate(1.9);border:1px solid rgba(170,200,255,.18);border-radius:16px;box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 0 40px oklch(0.6 0.12 260 / .14)">+<div style="display:flex;justify-content:flex-end"><span style="width:26px;height:26px;border-radius:13px;display:flex;align-items:center;justify-content:center;background:rgba(150,180,255,.08);color:#8f97ad;font-size:13px">✕</span></div>+<div style="display:flex;gap:12px;align-items:flex-start"><div style="width:48px;height:68px;flex-shrink:0;border-radius:9px;background:linear-gradient(155deg,#a7d6f2,#4a6fa8)"></div><div style="min-width:0;display:flex;flex-direction:column;gap:4px"><span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:17px;line-height:1.2">The Countdown of My Death is Spamming My Status Window</span><span style="font-size:11.5px;color:#8f97ad">Webtoons · » 14 behind</span></div></div>+<div style="height:1px;background:rgba(170,200,255,.12)"></div>+<div style="display:flex;justify-content:space-between;align-items:baseline"><span style="font-size:14px;font-weight:600;color:oklch(0.85 0.11 220)">26. A Gift from the King</span><span style="font-size:11px;color:#8f97ad">Today 23:33</span></div>+<div style="font-size:14.5px;color:#c9cfdd;line-height:1.55">So the monitor is Gerhardt, and he can read the countdown too. That reframes the whole first season, and every "system message" joke from ep 3 onward is now a clue.</div>+<div style="display:flex;gap:8px;align-items:center"><span style="height:26px;padding:0 10px;border-radius:13px;display:flex;align-items:center;font-size:12px;color:oklch(0.85 0.11 220);background:oklch(0.82 0.12 220 / .15);border:1px solid oklch(0.82 0.12 220 / .5)">▲ Liked</span><span style="font-size:12px;color:#8f97ad">Gerhardt, Jae-min</span></div>+<div style="display:flex;flex-direction:column;gap:4px;padding-top:6px"><span style="font-size:10.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#8f97ad">Previous note · Ep 25</span><span style="font-size:13px;color:#b6bdd1;line-height:1.45">Two status windows at once is a great visual gag.</span></div>+<div style="flex:1"></div>+<div style="display:flex;gap:8px"><div style="flex:1;height:34px;border-radius:17px;display:flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:600;background:rgba(150,180,255,.07);border:1px solid rgba(170,200,255,.16)">Edit</div><div style="flex:1.4;height:34px;border-radius:17px;display:flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:600;background:rgba(150,180,255,.07);border:1px solid rgba(170,200,255,.16)">Open work →</div></div>+</div>+</div>+</div>+</div>+<ul class="dv-note" style="width:1240px;columns:2;column-gap:40px">+<li><b>Clicking a note opens it in an inspector panel</b> (<code>.inspector</code>) on the right. Today shrinks to one column but stays visible, and the selected row is highlighted. ↑/↓ moves through the day's notes without closing the panel.</li>+<li><b>It shows only the entry</b>: the note in full, votes, characters, and the previous note for context. "Open work →" leads to <a class="dv-oid" href="#6e">6e</a>. Covers and catching-up rows skip the inspector and go straight to <a class="dv-oid" href="#6e">6e</a>, since they're about the work, not a note.</li>+<li><b>Good for reviewing a day's notes</b>, one after another, which is what people most often do from Today. It costs one more piece of UI to build and manage (opening, closing, keyboard focus).</li>+<li>On iPad the inspector is a sheet in portrait and a side panel in landscape.</li>+</ul>+</div>++<p class="dv-next">Pick <a class="dv-oid" href="#6e">6e</a> only, or <a class="dv-oid" href="#6e">6e</a> + <a class="dv-oid" href="#6f">6f</a> (the inspector for notes, the full page for works). Then I can write the wide-layout handover.</p>+</section> <section class="dv-turn" id="t5"> <div class="dv-thd"><a class="dv-tid" href="#t5">5</a><span class="dv-tname">2b: opening a group</span></div>-<p class="dv-intro">Tapping a tile or row in <a class="dv-oid" href="#2b">2b</a> pushes a list. <b style="color:#e9ecf5">Status groups</b> (Reading, Catching up, To read, On hiatus, Finished, Abandoned) share one list screen. Its sort, subgrouping and row details depend on the status, and search is limited to the group. <b style="color:#e9ecf5">Series</b> opens a list of series rather than works, and each series opens the series page (<a class="dv-oid" href="#2d">2d</a>). Catching up is shown in <a class="dv-oid" href="#4a">4a</a>.</p>+<p class="dv-intro">Tapping a tile or row on the Library home <a class="dv-oid" href="#2b">2b</a> pushes a list. <b style="color:#e9ecf5">Status groups</b> (Reading, Catching up, To read, On hiatus, Finished, Abandoned) share one list screen. Its sort, subgrouping and row details depend on the status, and search is limited to the group. <b style="color:#e9ecf5">Series</b> opens a list of series rather than works, and each series opens the series page (<a class="dv-oid" href="#2d">2d</a>). Catching up is shown in <a class="dv-oid" href="#4a">4a</a>.</p> <div class="dv-opts">  <div class="dv-opt" id="5a">-<div class="dv-olabel"><a class="dv-oid" href="#5a">5a</a>Status group <em>Works › To read</em></div>+<div class="dv-olabel"><a class="dv-oid" href="#5a">5a</a>Status group <em>Library › To read</em></div> <div class="dv-card" style="border-radius:44px"> <div data-screen-label="5a To read group" style="width:390px;height:844px;position:relative;overflow:hidden;border-radius:44px;background:radial-gradient(1.5px 1.5px at 12% 9%,rgba(255,255,255,.9),transparent),radial-gradient(1px 1px at 68% 11%,rgba(255,255,255,.7),transparent),radial-gradient(1px 1px at 86% 27%,rgba(255,255,255,.55),transparent),radial-gradient(1px 1px at 78% 63%,rgba(255,255,255,.5),transparent),radial-gradient(ellipse 80% 45% at 90% -8%,oklch(0.5 0.11 305 / .42),transparent),radial-gradient(ellipse 80% 45% at 0% 108%,oklch(0.5 0.11 220 / .34),transparent),linear-gradient(#141228,#070814);color:#e9ecf5;font-size:15px;line-height:1.35"> <div style="height:54px;display:flex;align-items:center;justify-content:space-between;padding:6px 30px 0 44px;box-sizing:border-box;font-weight:600;font-size:16px"><span>23:50</span><svg width="68" height="12" viewBox="0 0 68 12"><rect x="0" y="8" width="3" height="4" rx="1" fill="#fff"></rect><rect x="5" y="6" width="3" height="6" rx="1" fill="#fff"></rect><rect x="10" y="3" width="3" height="9" rx="1" fill="#fff"></rect><rect x="15" y="0" width="3" height="12" rx="1" fill="#fff"></rect><rect x="40" y=".5" width="24" height="11" rx="3.5" fill="none" stroke="#fff" stroke-opacity=".5"></rect><rect x="42" y="2.5" width="13" height="7" rx="2" fill="#fff"></rect></svg></div> <div style="display:flex;justify-content:space-between;padding:2px 16px 0">-<div style="height:36px;padding:0 14px 0 10px;border-radius:18px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;gap:4px;color:#c9cfdd;font-size:14px;font-weight:600"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 6l-6 6 6 6"></path></svg>Works</div>+<div style="height:36px;padding:0 14px 0 10px;border-radius:18px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;gap:4px;color:#c9cfdd;font-size:14px;font-weight:600"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 6l-6 6 6 6"></path></svg>Library</div> <div style="display:flex;gap:8px"> <div style="width:36px;height:36px;border-radius:18px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;color:#c9cfdd"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"><path d="M7 4v16M3 16l4 4 4-4M17 20V4M13 8l4-4 4 4"></path></svg></div> <div style="width:36px;height:36px;border-radius:18px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;color:#c9cfdd"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M12 5v14M5 12h14"></path></svg></div>@@ -58,7 +525,7 @@ html{background:#101118} <div style="display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid {{r.sep}}"> <div style="width:36px;height:50px;flex-shrink:0;border-radius:7px;background:linear-gradient(155deg,{{r.c1}},{{r.c2}});box-shadow:inset 0 1px 0 rgba(255,255,255,.25)"></div> <div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:4px">-<span style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{r.t}}</span>+<span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{r.t}}</span> <div style="display:flex;align-items:center;gap:6px;min-width:0"><span style="flex-shrink:0;font-size:10.5px;font-weight:650;color:oklch(0.85 0.11 305);background:oklch(0.82 0.12 305 / .12);border:1px solid oklch(0.82 0.12 305 / .35);border-radius:9px;padding:0 7px">{{r.ty}}</span><span style="font-size:12px;color:#8f97ad;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{r.meta}}</span></div> <sc-if value="{{r.hasLine}}" hint-placeholder-val="{{ false }}"><span style="font-size:12px;color:{{r.lineC}};white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{r.line}}</span></sc-if> </div>@@ -68,7 +535,7 @@ html{background:#101118} </div> <div style="position:absolute;left:44px;right:44px;bottom:22px;height:62px;border-radius:31px;background:rgba(18,24,44,.62);backdrop-filter:blur(30px) saturate(1.9);-webkit-backdrop-filter:blur(30px) saturate(1.9);border:1px solid rgba(170,200,255,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 10px 30px rgba(0,0,0,.45);display:flex;align-items:center;padding:4px;box-sizing:border-box"> <div style="flex:1;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#c9cfdd;font-size:10.5px;font-weight:600"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><rect x="3" y="5" width="18" height="16" rx="3"></rect><path d="M3 10h18M8 3v4M16 3v4"></path></svg>Today</div>-<div style="flex:1;height:52px;border-radius:26px;background:rgba(150,180,255,.13);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:oklch(0.82 0.12 220);font-size:10.5px;font-weight:600"><span style="font-size:19px;line-height:20px;filter:drop-shadow(0 0 8px oklch(0.82 0.12 220 / .7))">✦</span>Works</div>+<div style="flex:1;height:52px;border-radius:26px;background:rgba(150,180,255,.13);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:oklch(0.82 0.12 220);font-size:10.5px;font-weight:600"><span style="font-size:19px;line-height:20px;filter:drop-shadow(0 0 8px oklch(0.82 0.12 220 / .7))">✦</span>Library</div> <div style="flex:1;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#c9cfdd;font-size:10.5px;font-weight:600"><svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><rect x="3" y="11" width="5" height="10" rx="1.5"></rect><rect x="9.5" y="5" width="5" height="16" rx="1.5"></rect><rect x="16" y="8" width="5" height="13" rx="1.5"></rect></svg>Stats</div> </div> </div>@@ -82,12 +549,12 @@ html{background:#101118} </div>  <div class="dv-opt" id="5d">-<div class="dv-olabel"><a class="dv-oid" href="#5d">5d</a>Status group <em>Works › Reading</em></div>+<div class="dv-olabel"><a class="dv-oid" href="#5d">5d</a>Status group <em>Library › Reading</em></div> <div class="dv-card" style="border-radius:44px"> <div data-screen-label="5d Reading group" style="width:390px;height:844px;position:relative;overflow:hidden;border-radius:44px;background:radial-gradient(1.5px 1.5px at 12% 9%,rgba(255,255,255,.9),transparent),radial-gradient(1px 1px at 68% 11%,rgba(255,255,255,.7),transparent),radial-gradient(1px 1px at 86% 27%,rgba(255,255,255,.55),transparent),radial-gradient(1px 1px at 78% 63%,rgba(255,255,255,.5),transparent),radial-gradient(ellipse 80% 45% at 90% -8%,oklch(0.5 0.11 305 / .42),transparent),radial-gradient(ellipse 80% 45% at 0% 108%,oklch(0.5 0.11 220 / .34),transparent),linear-gradient(#141228,#070814);color:#e9ecf5;font-size:15px;line-height:1.35"> <div style="height:54px;display:flex;align-items:center;justify-content:space-between;padding:6px 30px 0 44px;box-sizing:border-box;font-weight:600;font-size:16px"><span>23:50</span><svg width="68" height="12" viewBox="0 0 68 12"><rect x="0" y="8" width="3" height="4" rx="1" fill="#fff"></rect><rect x="5" y="6" width="3" height="6" rx="1" fill="#fff"></rect><rect x="10" y="3" width="3" height="9" rx="1" fill="#fff"></rect><rect x="15" y="0" width="3" height="12" rx="1" fill="#fff"></rect><rect x="40" y=".5" width="24" height="11" rx="3.5" fill="none" stroke="#fff" stroke-opacity=".5"></rect><rect x="42" y="2.5" width="13" height="7" rx="2" fill="#fff"></rect></svg></div> <div style="display:flex;justify-content:space-between;padding:2px 16px 0">-<div style="height:36px;padding:0 14px 0 10px;border-radius:18px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;gap:4px;color:#c9cfdd;font-size:14px;font-weight:600"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 6l-6 6 6 6"></path></svg>Works</div>+<div style="height:36px;padding:0 14px 0 10px;border-radius:18px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;gap:4px;color:#c9cfdd;font-size:14px;font-weight:600"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 6l-6 6 6 6"></path></svg>Library</div> <div style="display:flex;gap:8px"> <div style="width:36px;height:36px;border-radius:18px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;color:#c9cfdd"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"><path d="M7 4v16M3 16l4 4 4-4M17 20V4M13 8l4-4 4 4"></path></svg></div> <div style="width:36px;height:36px;border-radius:18px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;color:#c9cfdd"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M12 5v14M5 12h14"></path></svg></div>@@ -101,7 +568,7 @@ html{background:#101118} <div style="display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid {{r.sep}}"> <div style="width:36px;height:50px;flex-shrink:0;border-radius:7px;background:linear-gradient(155deg,{{r.c1}},{{r.c2}});box-shadow:inset 0 1px 0 rgba(255,255,255,.25)"></div> <div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:4px">-<span style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{r.t}}</span>+<span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{r.t}}</span> <div style="display:flex;align-items:center;gap:6px;min-width:0"><span style="flex-shrink:0;font-size:10.5px;font-weight:650;color:oklch(0.85 0.11 305);background:oklch(0.82 0.12 305 / .12);border:1px solid oklch(0.82 0.12 305 / .35);border-radius:9px;padding:0 7px">{{r.ty}}</span><span style="font-size:12px;color:#8f97ad;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{r.meta}}</span></div> <sc-if value="{{r.hasLine}}" hint-placeholder-val="{{ false }}"><span style="font-size:12px;color:{{r.lineC}};white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{r.line}}</span></sc-if> </div>@@ -111,7 +578,7 @@ html{background:#101118} </div> <div style="position:absolute;left:44px;right:44px;bottom:22px;height:62px;border-radius:31px;background:rgba(18,24,44,.62);backdrop-filter:blur(30px) saturate(1.9);-webkit-backdrop-filter:blur(30px) saturate(1.9);border:1px solid rgba(170,200,255,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 10px 30px rgba(0,0,0,.45);display:flex;align-items:center;padding:4px;box-sizing:border-box"> <div style="flex:1;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#c9cfdd;font-size:10.5px;font-weight:600"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><rect x="3" y="5" width="18" height="16" rx="3"></rect><path d="M3 10h18M8 3v4M16 3v4"></path></svg>Today</div>-<div style="flex:1;height:52px;border-radius:26px;background:rgba(150,180,255,.13);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:oklch(0.82 0.12 220);font-size:10.5px;font-weight:600"><span style="font-size:19px;line-height:20px;filter:drop-shadow(0 0 8px oklch(0.82 0.12 220 / .7))">✦</span>Works</div>+<div style="flex:1;height:52px;border-radius:26px;background:rgba(150,180,255,.13);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:oklch(0.82 0.12 220);font-size:10.5px;font-weight:600"><span style="font-size:19px;line-height:20px;filter:drop-shadow(0 0 8px oklch(0.82 0.12 220 / .7))">✦</span>Library</div> <div style="flex:1;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#c9cfdd;font-size:10.5px;font-weight:600"><svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><rect x="3" y="11" width="5" height="10" rx="1.5"></rect><rect x="9.5" y="5" width="5" height="16" rx="1.5"></rect><rect x="16" y="8" width="5" height="13" rx="1.5"></rect></svg>Stats</div> </div> </div>@@ -124,12 +591,12 @@ html{background:#101118} </div>  <div class="dv-opt" id="5b">-<div class="dv-olabel"><a class="dv-oid" href="#5b">5b</a>Series <em>Works › Series, each opens <a class="dv-oid" href="#2d">2d</a></em></div>+<div class="dv-olabel"><a class="dv-oid" href="#5b">5b</a>Series <em>Library › Series, each opens <a class="dv-oid" href="#2d">2d</a></em></div> <div class="dv-card" style="border-radius:44px"> <div data-screen-label="5b Series index" style="width:390px;height:844px;position:relative;overflow:hidden;border-radius:44px;background:radial-gradient(1.5px 1.5px at 12% 9%,rgba(255,255,255,.9),transparent),radial-gradient(1px 1px at 68% 11%,rgba(255,255,255,.7),transparent),radial-gradient(1px 1px at 86% 27%,rgba(255,255,255,.55),transparent),radial-gradient(1px 1px at 78% 63%,rgba(255,255,255,.5),transparent),radial-gradient(ellipse 80% 45% at 90% -8%,oklch(0.5 0.11 305 / .42),transparent),radial-gradient(ellipse 80% 45% at 0% 108%,oklch(0.5 0.11 220 / .34),transparent),linear-gradient(#141228,#070814);color:#e9ecf5;font-size:15px;line-height:1.35"> <div style="height:54px;display:flex;align-items:center;justify-content:space-between;padding:6px 30px 0 44px;box-sizing:border-box;font-weight:600;font-size:16px"><span>23:50</span><svg width="68" height="12" viewBox="0 0 68 12"><rect x="0" y="8" width="3" height="4" rx="1" fill="#fff"></rect><rect x="5" y="6" width="3" height="6" rx="1" fill="#fff"></rect><rect x="10" y="3" width="3" height="9" rx="1" fill="#fff"></rect><rect x="15" y="0" width="3" height="12" rx="1" fill="#fff"></rect><rect x="40" y=".5" width="24" height="11" rx="3.5" fill="none" stroke="#fff" stroke-opacity=".5"></rect><rect x="42" y="2.5" width="13" height="7" rx="2" fill="#fff"></rect></svg></div> <div style="display:flex;justify-content:space-between;padding:2px 16px 0">-<div style="height:36px;padding:0 14px 0 10px;border-radius:18px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;gap:4px;color:#c9cfdd;font-size:14px;font-weight:600"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 6l-6 6 6 6"></path></svg>Works</div>+<div style="height:36px;padding:0 14px 0 10px;border-radius:18px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;gap:4px;color:#c9cfdd;font-size:14px;font-weight:600"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 6l-6 6 6 6"></path></svg>Library</div> <div style="width:36px;height:36px;border-radius:18px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;color:#c9cfdd"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M12 5v14M5 12h14"></path></svg></div> </div> <div style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:33px;letter-spacing:-.01em;padding:6px 20px 0">Series</div>@@ -167,7 +634,7 @@ html{background:#101118} </sc-for> <div style="position:absolute;left:44px;right:44px;bottom:22px;height:62px;border-radius:31px;background:rgba(18,24,44,.62);backdrop-filter:blur(30px) saturate(1.9);-webkit-backdrop-filter:blur(30px) saturate(1.9);border:1px solid rgba(170,200,255,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 10px 30px rgba(0,0,0,.45);display:flex;align-items:center;padding:4px;box-sizing:border-box"> <div style="flex:1;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#c9cfdd;font-size:10.5px;font-weight:600"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><rect x="3" y="5" width="18" height="16" rx="3"></rect><path d="M3 10h18M8 3v4M16 3v4"></path></svg>Today</div>-<div style="flex:1;height:52px;border-radius:26px;background:rgba(150,180,255,.13);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:oklch(0.82 0.12 220);font-size:10.5px;font-weight:600"><span style="font-size:19px;line-height:20px;filter:drop-shadow(0 0 8px oklch(0.82 0.12 220 / .7))">✦</span>Works</div>+<div style="flex:1;height:52px;border-radius:26px;background:rgba(150,180,255,.13);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:oklch(0.82 0.12 220);font-size:10.5px;font-weight:600"><span style="font-size:19px;line-height:20px;filter:drop-shadow(0 0 8px oklch(0.82 0.12 220 / .7))">✦</span>Library</div> <div style="flex:1;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#c9cfdd;font-size:10.5px;font-weight:600"><svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><rect x="3" y="11" width="5" height="10" rx="1.5"></rect><rect x="9.5" y="5" width="5" height="16" rx="1.5"></rect><rect x="16" y="8" width="5" height="13" rx="1.5"></rect></svg>Stats</div> </div> </div>@@ -231,7 +698,7 @@ html{background:#101118} <div class="dv-opts">  <div class="dv-opt" id="4a">-<div class="dv-olabel"><a class="dv-oid" href="#4a">4a</a>The four states <em>Works → Catching up</em></div>+<div class="dv-olabel"><a class="dv-oid" href="#4a">4a</a>The four states <em>Library → Catching up</em></div> <div class="dv-card" style="border-radius:44px"> <div data-screen-label="4a Catching up states" style="width:390px;height:844px;position:relative;overflow:hidden;border-radius:44px;background:radial-gradient(1.5px 1.5px at 12% 9%,rgba(255,255,255,.9),transparent),radial-gradient(1px 1px at 68% 11%,rgba(255,255,255,.7),transparent),radial-gradient(1px 1px at 86% 27%,rgba(255,255,255,.55),transparent),radial-gradient(1px 1px at 78% 63%,rgba(255,255,255,.5),transparent),radial-gradient(ellipse 80% 45% at 90% -8%,oklch(0.5 0.11 305 / .42),transparent),radial-gradient(ellipse 80% 45% at 0% 108%,oklch(0.5 0.11 220 / .34),transparent),linear-gradient(#141228,#070814);color:#e9ecf5;font-size:15px;line-height:1.35"> <div style="height:54px;display:flex;align-items:center;justify-content:space-between;padding:6px 30px 0 44px;box-sizing:border-box;font-weight:600;font-size:16px"><span>23:50</span><svg width="68" height="12" viewBox="0 0 68 12"><rect x="0" y="8" width="3" height="4" rx="1" fill="#fff"></rect><rect x="5" y="6" width="3" height="6" rx="1" fill="#fff"></rect><rect x="10" y="3" width="3" height="9" rx="1" fill="#fff"></rect><rect x="15" y="0" width="3" height="12" rx="1" fill="#fff"></rect><rect x="40" y=".5" width="24" height="11" rx="3.5" fill="none" stroke="#fff" stroke-opacity=".5"></rect><rect x="42" y="2.5" width="13" height="7" rx="2" fill="#fff"></rect></svg></div>@@ -284,7 +751,7 @@ html{background:#101118} </div> <div style="position:absolute;left:44px;right:44px;bottom:22px;height:62px;border-radius:31px;background:rgba(18,24,44,.62);backdrop-filter:blur(30px) saturate(1.9);-webkit-backdrop-filter:blur(30px) saturate(1.9);border:1px solid rgba(170,200,255,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 10px 30px rgba(0,0,0,.45);display:flex;align-items:center;padding:4px;box-sizing:border-box"> <div style="flex:1;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#c9cfdd;font-size:10.5px;font-weight:600"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><rect x="3" y="5" width="18" height="16" rx="3"></rect><path d="M3 10h18M8 3v4M16 3v4"></path></svg>Today</div>-<div style="flex:1;height:52px;border-radius:26px;background:rgba(150,180,255,.13);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:oklch(0.82 0.12 220);font-size:10.5px;font-weight:600"><span style="font-size:19px;line-height:20px;filter:drop-shadow(0 0 8px oklch(0.82 0.12 220 / .7))">✦</span>Works</div>+<div style="flex:1;height:52px;border-radius:26px;background:rgba(150,180,255,.13);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:oklch(0.82 0.12 220);font-size:10.5px;font-weight:600"><span style="font-size:19px;line-height:20px;filter:drop-shadow(0 0 8px oklch(0.82 0.12 220 / .7))">✦</span>Library</div> <div style="flex:1;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#c9cfdd;font-size:10.5px;font-weight:600"><svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><rect x="3" y="11" width="5" height="10" rx="1.5"></rect><rect x="9.5" y="5" width="5" height="16" rx="1.5"></rect><rect x="16" y="8" width="5" height="13" rx="1.5"></rect></svg>Stats</div> </div> </div>@@ -309,7 +776,7 @@ html{background:#101118} <div style="position:absolute;left:8px;right:8px;bottom:8px;box-sizing:border-box;padding:10px 20px 26px;display:flex;flex-direction:column;gap:16px;background:rgba(20,26,50,.78);backdrop-filter:blur(36px) saturate(1.9);-webkit-backdrop-filter:blur(36px) saturate(1.9);border:1px solid rgba(170,200,255,.22);border-radius:38px;box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 -10px 50px rgba(0,0,0,.5),0 0 40px oklch(0.6 0.12 260 / .16)"> <div style="width:36px;height:5px;border-radius:3px;background:rgba(255,255,255,.25);margin:0 auto"></div> <div style="display:flex;align-items:center;justify-content:space-between"><span style="font-size:15px;color:#b6bdd1">Cancel</span><span style="font-size:15px;font-weight:600">Latest released</span><span style="font-size:15px;font-weight:600;color:oklch(0.85 0.11 220)">Save</span></div>-<div style="display:flex;gap:12px;align-items:center"><div style="width:36px;height:50px;flex-shrink:0;border-radius:7px;background:linear-gradient(155deg,#88b060,#2a4a20)"></div><div style="min-width:0;display:flex;flex-direction:column;gap:2px"><span style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:17px">Dungeon Quartermaster</span><span style="font-size:12.5px;color:#8f97ad">Royal Road · releases Mon, Fri</span></div></div>+<div style="display:flex;gap:12px;align-items:center"><div style="width:36px;height:50px;flex-shrink:0;border-radius:7px;background:linear-gradient(155deg,#88b060,#2a4a20)"></div><div style="min-width:0;display:flex;flex-direction:column;gap:2px"><span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:17px">Dungeon Quartermaster</span><span style="font-size:12.5px;color:#8f97ad">Royal Road · releases Mon, Fri</span></div></div> <div style="display:flex;align-items:center;justify-content:center;gap:22px;padding:6px 0 0"> <div style="width:50px;height:50px;border-radius:25px;display:flex;align-items:center;justify-content:center;font-size:24px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.18);box-shadow:inset 0 1px 0 rgba(255,255,255,.14)">−</div> <div style="display:flex;flex-direction:column;align-items:center"><span style="font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#8f97ad">Chapter</span><span style="font-size:56px;font-weight:600;letter-spacing:-.02em;line-height:1.05;color:oklch(0.9 0.08 220);text-shadow:0 0 30px oklch(0.82 0.12 220 / .45)">71</span></div>@@ -346,7 +813,7 @@ html{background:#101118} <div data-screen-label="1a Today refined" style="width:390px;height:844px;position:relative;overflow:hidden;border-radius:44px;background:radial-gradient(1.5px 1.5px at 12% 9%,rgba(255,255,255,.9),transparent),radial-gradient(1px 1px at 68% 11%,rgba(255,255,255,.7),transparent),radial-gradient(1px 1px at 86% 27%,rgba(255,255,255,.55),transparent),radial-gradient(1.5px 1.5px at 22% 48%,rgba(255,255,255,.5),transparent),radial-gradient(1px 1px at 78% 63%,rgba(255,255,255,.5),transparent),radial-gradient(1px 1px at 40% 84%,rgba(255,255,255,.45),transparent),radial-gradient(ellipse 80% 45% at 90% -8%,oklch(0.5 0.11 305 / .42),transparent),radial-gradient(ellipse 80% 45% at 0% 108%,oklch(0.5 0.11 220 / .34),transparent),linear-gradient(#141228,#070814);color:#e9ecf5;font-size:15px;line-height:1.35"> <div style="height:54px;display:flex;align-items:center;justify-content:space-between;padding:6px 30px 0 44px;box-sizing:border-box;font-weight:600;font-size:16px"><span>23:50</span><svg width="68" height="12" viewBox="0 0 68 12"><rect x="0" y="8" width="3" height="4" rx="1" fill="#fff"></rect><rect x="5" y="6" width="3" height="6" rx="1" fill="#fff"></rect><rect x="10" y="3" width="3" height="9" rx="1" fill="#fff"></rect><rect x="15" y="0" width="3" height="12" rx="1" fill="#fff"></rect><rect x="40" y=".5" width="24" height="11" rx="3.5" fill="none" stroke="#fff" stroke-opacity=".5"></rect><rect x="42" y="2.5" width="13" height="7" rx="2" fill="#fff"></rect></svg></div> <div style="display:flex;align-items:flex-end;justify-content:space-between;padding:8px 20px 0">-<div style="display:flex;flex-direction:column;gap:3px"><span style="font-size:11.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#8f97ad">21–27 Sep 2026</span><span style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:32px;letter-spacing:-.01em;line-height:1.05">Wednesday</span></div>+<div style="display:flex;flex-direction:column;gap:3px"><span style="font-size:11.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#8f97ad">21–27 Sep 2026</span><span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:32px;letter-spacing:-.01em;line-height:1.05">Wednesday</span></div> <div style="width:36px;height:36px;border-radius:18px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;color:#c9cfdd"><svg width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z"></path></svg></div> </div> <div style="display:flex;align-items:center;padding:14px 6px 0">@@ -403,7 +870,7 @@ html{background:#101118} </div> <div style="position:absolute;left:44px;right:44px;bottom:22px;height:62px;border-radius:31px;background:rgba(18,24,44,.62);backdrop-filter:blur(30px) saturate(1.9);-webkit-backdrop-filter:blur(30px) saturate(1.9);border:1px solid rgba(170,200,255,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 10px 30px rgba(0,0,0,.45);display:flex;align-items:center;padding:4px;box-sizing:border-box"> <div style="flex:1;height:52px;border-radius:26px;background:rgba(150,180,255,.13);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:oklch(0.82 0.12 220);font-size:10.5px;font-weight:600"><span style="filter:drop-shadow(0 0 8px oklch(0.82 0.12 220 / .7));display:flex"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><rect x="3" y="5" width="18" height="16" rx="3"></rect><path d="M3 10h18M8 3v4M16 3v4"></path></svg></span>Today</div>-<div style="flex:1;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#c9cfdd;font-size:10.5px;font-weight:600"><span style="font-size:19px;line-height:20px">✦</span>Works</div>+<div style="flex:1;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#c9cfdd;font-size:10.5px;font-weight:600"><span style="font-size:19px;line-height:20px">✦</span>Library</div> <div style="flex:1;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#c9cfdd;font-size:10.5px;font-weight:600"><svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><rect x="3" y="11" width="5" height="10" rx="1.5"></rect><rect x="9.5" y="5" width="5" height="16" rx="1.5"></rect><rect x="16" y="8" width="5" height="13" rx="1.5"></rect></svg>Stats</div> </div> </div>@@ -423,7 +890,7 @@ html{background:#101118} <div data-screen-label="1b Today shelf" style="width:390px;height:844px;position:relative;overflow:hidden;border-radius:44px;background:radial-gradient(1.5px 1.5px at 12% 9%,rgba(255,255,255,.9),transparent),radial-gradient(1px 1px at 68% 11%,rgba(255,255,255,.7),transparent),radial-gradient(1px 1px at 86% 27%,rgba(255,255,255,.55),transparent),radial-gradient(1.5px 1.5px at 22% 48%,rgba(255,255,255,.5),transparent),radial-gradient(1px 1px at 78% 63%,rgba(255,255,255,.5),transparent),radial-gradient(1px 1px at 40% 84%,rgba(255,255,255,.45),transparent),radial-gradient(ellipse 80% 45% at 90% -8%,oklch(0.5 0.11 305 / .42),transparent),radial-gradient(ellipse 80% 45% at 0% 108%,oklch(0.5 0.11 220 / .34),transparent),linear-gradient(#141228,#070814);color:#e9ecf5;font-size:15px;line-height:1.35"> <div style="height:54px;display:flex;align-items:center;justify-content:space-between;padding:6px 30px 0 44px;box-sizing:border-box;font-weight:600;font-size:16px"><span>23:50</span><svg width="68" height="12" viewBox="0 0 68 12"><rect x="0" y="8" width="3" height="4" rx="1" fill="#fff"></rect><rect x="5" y="6" width="3" height="6" rx="1" fill="#fff"></rect><rect x="10" y="3" width="3" height="9" rx="1" fill="#fff"></rect><rect x="15" y="0" width="3" height="12" rx="1" fill="#fff"></rect><rect x="40" y=".5" width="24" height="11" rx="3.5" fill="none" stroke="#fff" stroke-opacity=".5"></rect><rect x="42" y="2.5" width="13" height="7" rx="2" fill="#fff"></rect></svg></div> <div style="display:flex;align-items:center;justify-content:space-between;padding:4px 20px 0">-<span style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:28px;letter-spacing:-.01em">Wed 23 Sep</span>+<span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:28px;letter-spacing:-.01em">Wed 23 Sep</span> <div style="width:36px;height:36px;border-radius:18px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;color:#c9cfdd"><svg width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><circle cx="12" cy="12" r="3"></circle><circle cx="12" cy="12" r="8" stroke-dasharray="3 2.2"></circle></svg></div> </div> <div style="display:flex;justify-content:space-between;padding:10px 20px 0">@@ -453,7 +920,7 @@ html{background:#101118} <div style="display:flex;gap:11px;align-items:center;padding:10px 0;border-top:1px solid {{c.sep}}"> <div style="width:36px;height:50px;flex-shrink:0;border-radius:7px;background:linear-gradient(155deg,{{c.c1}},{{c.c2}});box-shadow:inset 0 1px 0 rgba(255,255,255,.25)"></div> <div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:5px">-<span style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{c.t}}</span>+<span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{c.t}}</span> <sc-if value="{{c.known}}" hint-placeholder-val="{{ true }}"><div style="display:flex;align-items:center;gap:6px"><div style="flex:1;height:4px;border-radius:2px;background:rgba(170,200,255,.12)"><div style="width:{{c.pct}};height:4px;border-radius:2px;background:oklch(0.82 0.12 220)"></div></div><span style="font-size:11.5px;color:#8f97ad">{{c.frac}}</span></div></sc-if> <span style="font-size:12px;color:{{c.bc}};font-weight:600">{{c.behind}}</span> </div>@@ -468,7 +935,7 @@ html{background:#101118} <div style="position:absolute;left:21px;top:0;bottom:0;width:1px;background:rgba(170,200,255,.14)"></div> <div style="width:44px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;padding-top:4px;position:relative"><div style="width:9px;height:9px;border-radius:5px;background:oklch(0.82 0.12 220);box-shadow:0 0 0 4px #0c0c1c"></div><div style="font-family:ui-monospace,Menlo,monospace;font-size:10.5px;color:#8f97ad;margin-top:5px;background:#0c0c1c">{{n.time}}</div></div> <div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:3px">-<div style="display:flex;gap:6px;align-items:baseline;min-width:0"><span style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{n.t}}</span></div>+<div style="display:flex;gap:6px;align-items:baseline;min-width:0"><span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{n.t}}</span></div> <div style="font-size:12px;color:oklch(0.85 0.11 220);white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{n.ch}}</div> <div style="font-size:14px;color:#b6bdd1;line-height:1.45">{{n.note}}</div> </div>@@ -477,7 +944,7 @@ html{background:#101118} </div> <div style="position:absolute;left:44px;right:44px;bottom:22px;height:62px;border-radius:31px;background:rgba(18,24,44,.62);backdrop-filter:blur(30px) saturate(1.9);-webkit-backdrop-filter:blur(30px) saturate(1.9);border:1px solid rgba(170,200,255,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 10px 30px rgba(0,0,0,.45);display:flex;align-items:center;padding:4px;box-sizing:border-box"> <div style="flex:1;height:52px;border-radius:26px;background:rgba(150,180,255,.13);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:oklch(0.82 0.12 220);font-size:10.5px;font-weight:600"><span style="filter:drop-shadow(0 0 8px oklch(0.82 0.12 220 / .7));display:flex"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><rect x="3" y="5" width="18" height="16" rx="3"></rect><path d="M3 10h18M8 3v4M16 3v4"></path></svg></span>Today</div>-<div style="flex:1;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#c9cfdd;font-size:10.5px;font-weight:600"><span style="font-size:19px;line-height:20px">✦</span>Works</div>+<div style="flex:1;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#c9cfdd;font-size:10.5px;font-weight:600"><span style="font-size:19px;line-height:20px">✦</span>Library</div> <div style="flex:1;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#c9cfdd;font-size:10.5px;font-weight:600"><svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><rect x="3" y="11" width="5" height="10" rx="1.5"></rect><rect x="9.5" y="5" width="5" height="16" rx="1.5"></rect><rect x="16" y="8" width="5" height="13" rx="1.5"></rect></svg>Stats</div> </div> </div>@@ -509,7 +976,7 @@ html{background:#101118} <circle cx="346" cy="60" r="3.4" fill="none" stroke="oklch(0.82 0.12 305)" stroke-width="1.3"></circle> <g font-family="-apple-system,sans-serif" font-size="11" font-weight="600" fill="#8f97ad" text-anchor="middle"><text x="34" y="96">M 21</text><text x="86" y="96">T 22</text><text x="138" y="96" fill="oklch(0.85 0.11 220)">W 23</text><text x="190" y="96">T 24</text><text x="242" y="96">F 25</text><text x="294" y="96">S 26</text><text x="346" y="96">S 27</text></g> </svg>-<div style="padding:10px 22px 0;display:flex;align-items:baseline;justify-content:space-between"><span style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:28px;letter-spacing:-.01em">Wednesday</span><span style="font-size:12.5px;color:#8f97ad">4 notes · 1 still due</span></div>+<div style="padding:10px 22px 0;display:flex;align-items:baseline;justify-content:space-between"><span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:28px;letter-spacing:-.01em">Wednesday</span><span style="font-size:12.5px;color:#8f97ad">4 notes · 1 still due</span></div> <svg width="390" height="120" viewBox="0 0 390 120" style="display:block;margin-top:4px"> <path d="M30 108 Q195 -92 360 108" fill="none" stroke="rgba(170,200,255,.16)" stroke-dasharray="2 4"></path> <path d="M0 108 H390" stroke="rgba(170,200,255,.22)"></path>@@ -526,14 +993,14 @@ html{background:#101118} <div style="display:flex;align-items:center;gap:12px;padding:7px 6px"> <span style="width:14px;text-align:center;font-size:12px;color:{{r.icC}}">{{r.ic}}</span> <div style="width:30px;height:42px;flex-shrink:0;border-radius:6px;background:linear-gradient(155deg,{{r.c1}},{{r.c2}});opacity:{{r.op}}"></div>-<div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:1px"><span style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{r.t}}</span><span style="font-size:12.5px;color:{{r.subC}};white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{r.sub}}</span></div>+<div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:1px"><span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{r.t}}</span><span style="font-size:12.5px;color:{{r.subC}};white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{r.sub}}</span></div> <span style="font-family:ui-monospace,Menlo,monospace;font-size:11px;color:{{r.timeC}}">{{r.time}}</span> </div> </sc-for> </div> <div style="position:absolute;left:44px;right:44px;bottom:22px;height:62px;border-radius:31px;background:rgba(18,24,44,.62);backdrop-filter:blur(30px) saturate(1.9);-webkit-backdrop-filter:blur(30px) saturate(1.9);border:1px solid rgba(170,200,255,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 10px 30px rgba(0,0,0,.45);display:flex;align-items:center;padding:4px;box-sizing:border-box"> <div style="flex:1;height:52px;border-radius:26px;background:rgba(150,180,255,.13);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:oklch(0.82 0.12 220);font-size:10.5px;font-weight:600"><span style="filter:drop-shadow(0 0 8px oklch(0.82 0.12 220 / .7));display:flex"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><rect x="3" y="5" width="18" height="16" rx="3"></rect><path d="M3 10h18M8 3v4M16 3v4"></path></svg></span>Today</div>-<div style="flex:1;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#c9cfdd;font-size:10.5px;font-weight:600"><span style="font-size:19px;line-height:20px">✦</span>Works</div>+<div style="flex:1;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#c9cfdd;font-size:10.5px;font-weight:600"><span style="font-size:19px;line-height:20px">✦</span>Library</div> <div style="flex:1;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#c9cfdd;font-size:10.5px;font-weight:600"><svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><rect x="3" y="11" width="5" height="10" rx="1.5"></rect><rect x="9.5" y="5" width="5" height="16" rx="1.5"></rect><rect x="16" y="8" width="5" height="13" rx="1.5"></rect></svg>Stats</div> </div> </div>@@ -552,7 +1019,7 @@ html{background:#101118}   <section class="dv-turn" id="t2">-<div class="dv-thd"><a class="dv-tid" href="#t2">2</a><span class="dv-tname">Works</span></div>+<div class="dv-thd"><a class="dv-tid" href="#t2">2</a><span class="dv-tname">Library (was Works)</span></div> <p class="dv-intro">Right now there's one menu with nine inline pickers (sort, group-by-series, type, tag, site, series, creator, work status, reading status, release days). It treats "what am I catching up on?" the same as "which works are tagged litrpg on Tapas?" The first you ask every day, the second almost never. Every option below splits the two. The daily statuses become a <b style="color:#e9ecf5">place you go</b>: Reading, Catching up, To read, On hiatus, plus Series. The rare filters move into <b style="color:#e9ecf5">search tokens</b> (see the inset under <a class="dv-oid" href="#2a">2a</a>). They go from simplest to build (<a class="dv-oid" href="#2a">2a</a>) to most unusual (<a class="dv-oid" href="#2e">2e</a>). <a class="dv-oid" href="#2d">2d</a> is the series page any of them can link to.</p> <div class="dv-opts"> @@ -565,7 +1032,7 @@ html{background:#101118} <div style="width:36px;height:36px;border-radius:18px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;color:#c9cfdd"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"><path d="M7 4v16M3 16l4 4 4-4M17 20V4M13 8l4-4 4 4"></path></svg></div> <div style="width:36px;height:36px;border-radius:18px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;color:#c9cfdd"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M12 5v14M5 12h14"></path></svg></div> </div>-<div style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:33px;letter-spacing:-.01em;padding:2px 20px 12px">Works</div>+<div style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:33px;letter-spacing:-.01em;padding:2px 20px 12px">Library</div> <div style="margin:0 16px;height:38px;border-radius:19px;background:rgba(150,180,255,.07);border:1px solid rgba(170,200,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.06);display:flex;align-items:center;gap:8px;padding:0 13px;color:#8f97ad;font-size:15px"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round"><circle cx="11" cy="11" r="7"></circle><path d="M20 20l-4-4"></path></svg>Search, or type tag: site: …</div> <div style="display:flex;gap:8px;padding:12px 16px 0;overflow:hidden"> <sc-for list="{{ chips2a }}" as="c" hint-placeholder-count="5">@@ -588,7 +1055,7 @@ html{background:#101118} </div> <div style="position:absolute;left:44px;right:44px;bottom:22px;height:62px;border-radius:31px;background:rgba(18,24,44,.62);backdrop-filter:blur(30px) saturate(1.9);-webkit-backdrop-filter:blur(30px) saturate(1.9);border:1px solid rgba(170,200,255,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 10px 30px rgba(0,0,0,.45);display:flex;align-items:center;padding:4px;box-sizing:border-box"> <div style="flex:1;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#c9cfdd;font-size:10.5px;font-weight:600"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><rect x="3" y="5" width="18" height="16" rx="3"></rect><path d="M3 10h18M8 3v4M16 3v4"></path></svg>Today</div>-<div style="flex:1;height:52px;border-radius:26px;background:rgba(150,180,255,.13);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:oklch(0.82 0.12 220);font-size:10.5px;font-weight:600"><span style="font-size:19px;line-height:20px;filter:drop-shadow(0 0 8px oklch(0.82 0.12 220 / .7))">✦</span>Works</div>+<div style="flex:1;height:52px;border-radius:26px;background:rgba(150,180,255,.13);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:oklch(0.82 0.12 220);font-size:10.5px;font-weight:600"><span style="font-size:19px;line-height:20px;filter:drop-shadow(0 0 8px oklch(0.82 0.12 220 / .7))">✦</span>Library</div> <div style="flex:1;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#c9cfdd;font-size:10.5px;font-weight:600"><svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><rect x="3" y="11" width="5" height="10" rx="1.5"></rect><rect x="9.5" y="5" width="5" height="16" rx="1.5"></rect><rect x="16" y="8" width="5" height="13" rx="1.5"></rect></svg>Stats</div> </div> </div>@@ -618,7 +1085,7 @@ html{background:#101118} <div style="display:flex;justify-content:flex-end;gap:8px;padding:2px 16px 0"> <div style="width:36px;height:36px;border-radius:18px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;color:#c9cfdd"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M12 5v14M5 12h14"></path></svg></div> </div>-<div style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:33px;letter-spacing:-.01em;padding:2px 20px 12px">Works</div>+<div style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:33px;letter-spacing:-.01em;padding:2px 20px 12px">Library</div> <div style="margin:0 16px;height:38px;border-radius:19px;background:rgba(150,180,255,.07);border:1px solid rgba(170,200,255,.1);display:flex;align-items:center;gap:8px;padding:0 13px;color:#8f97ad;font-size:15px"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round"><circle cx="11" cy="11" r="7"></circle><path d="M20 20l-4-4"></path></svg>Search 126 works</div> <div style="display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px 16px 0"> <sc-for list="{{ tiles2b }}" as="t" hint-placeholder-count="4">@@ -642,13 +1109,13 @@ html{background:#101118} <sc-for list="{{ recent2b }}" as="r" hint-placeholder-count="2"> <div style="display:flex;align-items:center;gap:12px;padding:8px 12px 8px 8px;background:rgba(150,180,255,.055);border:1px solid rgba(170,200,255,.13);border-radius:18px;box-shadow:inset 0 1px 0 rgba(255,255,255,.1)"> <div style="width:36px;height:50px;flex-shrink:0;border-radius:7px;background:linear-gradient(155deg,{{r.c1}},{{r.c2}})"></div>-<div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:3px"><span style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{r.t}}</span><span style="font-size:12.5px;color:#8f97ad;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{r.sub}}</span></div>+<div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:3px"><span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{r.t}}</span><span style="font-size:12.5px;color:#8f97ad;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{r.sub}}</span></div> </div> </sc-for> </div> <div style="position:absolute;left:44px;right:44px;bottom:22px;height:62px;border-radius:31px;background:rgba(18,24,44,.62);backdrop-filter:blur(30px) saturate(1.9);-webkit-backdrop-filter:blur(30px) saturate(1.9);border:1px solid rgba(170,200,255,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 10px 30px rgba(0,0,0,.45);display:flex;align-items:center;padding:4px;box-sizing:border-box"> <div style="flex:1;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#c9cfdd;font-size:10.5px;font-weight:600"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><rect x="3" y="5" width="18" height="16" rx="3"></rect><path d="M3 10h18M8 3v4M16 3v4"></path></svg>Today</div>-<div style="flex:1;height:52px;border-radius:26px;background:rgba(150,180,255,.13);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:oklch(0.82 0.12 220);font-size:10.5px;font-weight:600"><span style="font-size:19px;line-height:20px;filter:drop-shadow(0 0 8px oklch(0.82 0.12 220 / .7))">✦</span>Works</div>+<div style="flex:1;height:52px;border-radius:26px;background:rgba(150,180,255,.13);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:oklch(0.82 0.12 220);font-size:10.5px;font-weight:600"><span style="font-size:19px;line-height:20px;filter:drop-shadow(0 0 8px oklch(0.82 0.12 220 / .7))">✦</span>Library</div> <div style="flex:1;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#c9cfdd;font-size:10.5px;font-weight:600"><svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><rect x="3" y="11" width="5" height="10" rx="1.5"></rect><rect x="9.5" y="5" width="5" height="16" rx="1.5"></rect><rect x="16" y="8" width="5" height="13" rx="1.5"></rect></svg>Stats</div> </div> </div>@@ -667,7 +1134,7 @@ html{background:#101118} <div data-screen-label="2c Works shelves" style="width:390px;height:844px;position:relative;overflow:hidden;border-radius:44px;background:radial-gradient(1.5px 1.5px at 12% 9%,rgba(255,255,255,.9),transparent),radial-gradient(1px 1px at 68% 11%,rgba(255,255,255,.7),transparent),radial-gradient(1px 1px at 86% 27%,rgba(255,255,255,.55),transparent),radial-gradient(1.5px 1.5px at 22% 48%,rgba(255,255,255,.5),transparent),radial-gradient(1px 1px at 78% 63%,rgba(255,255,255,.5),transparent),radial-gradient(1px 1px at 40% 84%,rgba(255,255,255,.45),transparent),radial-gradient(ellipse 80% 45% at 90% -8%,oklch(0.5 0.11 305 / .42),transparent),radial-gradient(ellipse 80% 45% at 0% 108%,oklch(0.5 0.11 220 / .34),transparent),linear-gradient(#141228,#070814);color:#e9ecf5;font-size:15px;line-height:1.35"> <div style="height:54px;display:flex;align-items:center;justify-content:space-between;padding:6px 30px 0 44px;box-sizing:border-box;font-weight:600;font-size:16px"><span>23:50</span><svg width="68" height="12" viewBox="0 0 68 12"><rect x="0" y="8" width="3" height="4" rx="1" fill="#fff"></rect><rect x="5" y="6" width="3" height="6" rx="1" fill="#fff"></rect><rect x="10" y="3" width="3" height="9" rx="1" fill="#fff"></rect><rect x="15" y="0" width="3" height="12" rx="1" fill="#fff"></rect><rect x="40" y=".5" width="24" height="11" rx="3.5" fill="none" stroke="#fff" stroke-opacity=".5"></rect><rect x="42" y="2.5" width="13" height="7" rx="2" fill="#fff"></rect></svg></div> <div style="display:flex;align-items:center;padding:6px 16px 6px 20px;gap:8px">-<span style="flex:1;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:33px;letter-spacing:-.01em">Works</span>+<span style="flex:1;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:33px;letter-spacing:-.01em">Library</span> <div style="width:36px;height:36px;border-radius:18px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;color:#c9cfdd"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="11" cy="11" r="7"></circle><path d="M20 20l-4-4"></path></svg></div> <div style="width:36px;height:36px;border-radius:18px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;color:#c9cfdd"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M12 5v14M5 12h14"></path></svg></div> </div>@@ -695,7 +1162,7 @@ html{background:#101118} <div style="position:absolute;left:44px;top:10px;width:64px;height:90px;border-radius:8px;background:linear-gradient(155deg,{{s.b.c1}},{{s.b.c2}});transform:rotate(9deg);opacity:.85;border:1px solid rgba(10,12,24,.8)"></div> <div style="position:absolute;left:24px;top:4px;width:64px;height:92px;border-radius:8px;background:linear-gradient(155deg,{{s.a.c1}},{{s.a.c2}});border:1px solid rgba(10,12,24,.8);box-shadow:0 6px 16px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.25)"></div> </div>-<div style="display:flex;flex-direction:column;gap:1px"><span style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:13px;line-height:1.2">{{s.name}}</span><span style="font-size:11px;color:#8f97ad">{{s.n}}</span></div>+<div style="display:flex;flex-direction:column;gap:1px"><span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:13px;line-height:1.2">{{s.name}}</span><span style="font-size:11px;color:#8f97ad">{{s.n}}</span></div> </div> </sc-for> </div>@@ -704,7 +1171,7 @@ html{background:#101118} </div> <div style="position:absolute;left:44px;right:44px;bottom:22px;height:62px;border-radius:31px;background:rgba(18,24,44,.62);backdrop-filter:blur(30px) saturate(1.9);-webkit-backdrop-filter:blur(30px) saturate(1.9);border:1px solid rgba(170,200,255,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 10px 30px rgba(0,0,0,.45);display:flex;align-items:center;padding:4px;box-sizing:border-box"> <div style="flex:1;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#c9cfdd;font-size:10.5px;font-weight:600"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><rect x="3" y="5" width="18" height="16" rx="3"></rect><path d="M3 10h18M8 3v4M16 3v4"></path></svg>Today</div>-<div style="flex:1;height:52px;border-radius:26px;background:rgba(150,180,255,.13);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:oklch(0.82 0.12 220);font-size:10.5px;font-weight:600"><span style="font-size:19px;line-height:20px;filter:drop-shadow(0 0 8px oklch(0.82 0.12 220 / .7))">✦</span>Works</div>+<div style="flex:1;height:52px;border-radius:26px;background:rgba(150,180,255,.13);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:oklch(0.82 0.12 220);font-size:10.5px;font-weight:600"><span style="font-size:19px;line-height:20px;filter:drop-shadow(0 0 8px oklch(0.82 0.12 220 / .7))">✦</span>Library</div> <div style="flex:1;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#c9cfdd;font-size:10.5px;font-weight:600"><svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><rect x="3" y="11" width="5" height="10" rx="1.5"></rect><rect x="9.5" y="5" width="5" height="16" rx="1.5"></rect><rect x="16" y="8" width="5" height="13" rx="1.5"></rect></svg>Stats</div> </div> </div>@@ -739,7 +1206,7 @@ html{background:#101118} <div style="margin:16px 16px 0;padding:12px;background:rgba(150,180,255,.055);border:1px solid rgba(170,200,255,.13);border-radius:22px;box-shadow:inset 0 1px 0 rgba(255,255,255,.1);display:flex;flex-direction:column;gap:12px"> <div style="display:flex;gap:12px;align-items:center"> <div style="width:44px;height:62px;flex-shrink:0;border-radius:8px;background:linear-gradient(155deg,#6a8fe0,#2a3570);box-shadow:inset 0 1px 0 rgba(255,255,255,.25)"></div>-<div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:3px"><span style="font-size:10.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#8f97ad">Next up · Book 2</span><span style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:17px">Beacon Lines</span><span style="font-size:12.5px;color:#8f97ad">Last noted Ch 211 · 3 days ago</span></div>+<div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:3px"><span style="font-size:10.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#8f97ad">Next up · Book 2</span><span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:17px">Beacon Lines</span><span style="font-size:12.5px;color:#8f97ad">Last noted Ch 211 · 3 days ago</span></div> </div> <div style="height:42px;border-radius:21px;display:flex;align-items:center;justify-content:center;gap:8px;background:linear-gradient(100deg,oklch(0.72 0.13 220),oklch(0.68 0.14 305));color:#fff;font-weight:700;font-size:14.5px;box-shadow:0 2px 26px oklch(0.7 0.13 262 / .5),inset 0 1px 0 rgba(255,255,255,.3)">Continue at Ch 212 <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="2.4" stroke-linecap="round"><path d="M7 17L17 7M9 7h8v8"></path></svg></div> </div>@@ -749,13 +1216,13 @@ html{background:#101118} <div style="display:flex;align-items:center;gap:12px;padding:6px 6px"> <span style="width:30px;text-align:right;font-family:'Newsreader',Georgia,serif;font-weight:500;font-size:22px;color:#6d7590">{{o.pos}}</span> <div style="width:34px;height:48px;flex-shrink:0;border-radius:6px;background:linear-gradient(155deg,{{o.c1}},{{o.c2}});opacity:{{o.op}}"></div>-<div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:2px"><span style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:15.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{o.t}}</span><span style="font-size:12.5px;color:{{o.stC}}"><span style="color:{{o.icC}}">{{o.ic}}</span>  {{o.st}}</span></div>+<div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:2px"><span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:15.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{o.t}}</span><span style="font-size:12.5px;color:{{o.stC}}"><span style="color:{{o.icC}}">{{o.ic}}</span>  {{o.st}}</span></div> </div> </sc-for> </div> <div style="position:absolute;left:44px;right:44px;bottom:22px;height:62px;border-radius:31px;background:rgba(18,24,44,.62);backdrop-filter:blur(30px) saturate(1.9);-webkit-backdrop-filter:blur(30px) saturate(1.9);border:1px solid rgba(170,200,255,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 10px 30px rgba(0,0,0,.45);display:flex;align-items:center;padding:4px;box-sizing:border-box"> <div style="flex:1;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#c9cfdd;font-size:10.5px;font-weight:600"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><rect x="3" y="5" width="18" height="16" rx="3"></rect><path d="M3 10h18M8 3v4M16 3v4"></path></svg>Today</div>-<div style="flex:1;height:52px;border-radius:26px;background:rgba(150,180,255,.13);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:oklch(0.82 0.12 220);font-size:10.5px;font-weight:600"><span style="font-size:19px;line-height:20px;filter:drop-shadow(0 0 8px oklch(0.82 0.12 220 / .7))">✦</span>Works</div>+<div style="flex:1;height:52px;border-radius:26px;background:rgba(150,180,255,.13);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:oklch(0.82 0.12 220);font-size:10.5px;font-weight:600"><span style="font-size:19px;line-height:20px;filter:drop-shadow(0 0 8px oklch(0.82 0.12 220 / .7))">✦</span>Library</div> <div style="flex:1;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#c9cfdd;font-size:10.5px;font-weight:600"><svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><rect x="3" y="11" width="5" height="10" rx="1.5"></rect><rect x="9.5" y="5" width="5" height="16" rx="1.5"></rect><rect x="16" y="8" width="5" height="13" rx="1.5"></rect></svg>Stats</div> </div> </div>@@ -774,7 +1241,7 @@ html{background:#101118} <div data-screen-label="2e Works star chart" style="width:390px;height:844px;position:relative;overflow:hidden;border-radius:44px;background:radial-gradient(1px 1px at 12% 9%,rgba(255,255,255,.5),transparent),radial-gradient(1px 1px at 68% 91%,rgba(255,255,255,.4),transparent),radial-gradient(ellipse 80% 45% at 90% -8%,oklch(0.5 0.11 305 / .42),transparent),radial-gradient(ellipse 80% 45% at 0% 108%,oklch(0.5 0.11 220 / .34),transparent),linear-gradient(#141228,#070814);color:#e9ecf5;font-size:15px;line-height:1.35"> <div style="height:54px;display:flex;align-items:center;justify-content:space-between;padding:6px 30px 0 44px;box-sizing:border-box;font-weight:600;font-size:16px"><span>23:50</span><svg width="68" height="12" viewBox="0 0 68 12"><rect x="0" y="8" width="3" height="4" rx="1" fill="#fff"></rect><rect x="5" y="6" width="3" height="6" rx="1" fill="#fff"></rect><rect x="10" y="3" width="3" height="9" rx="1" fill="#fff"></rect><rect x="15" y="0" width="3" height="12" rx="1" fill="#fff"></rect><rect x="40" y=".5" width="24" height="11" rx="3.5" fill="none" stroke="#fff" stroke-opacity=".5"></rect><rect x="42" y="2.5" width="13" height="7" rx="2" fill="#fff"></rect></svg></div> <div style="display:flex;align-items:center;padding:6px 16px 0 20px;gap:8px">-<span style="flex:1;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:33px;letter-spacing:-.01em">Works</span>+<span style="flex:1;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:33px;letter-spacing:-.01em">Library</span> <div style="display:flex;height:34px;padding:3px;border-radius:17px;background:rgba(150,180,255,.07);border:1px solid rgba(170,200,255,.14);box-sizing:border-box"><div style="display:flex;align-items:center;padding:0 13px;font-size:13px;font-weight:600;color:#8f97ad">List</div><div style="display:flex;align-items:center;padding:0 13px;border-radius:14px;font-size:13px;font-weight:600;color:oklch(0.85 0.11 220);background:oklch(0.82 0.12 220 / .15);border:1px solid oklch(0.82 0.12 220 / .4)">Sky</div></div> </div> <svg width="390" height="560" viewBox="0 0 390 560" style="position:absolute;left:0;top:108px">@@ -803,12 +1270,12 @@ html{background:#101118} </svg> <div style="position:absolute;left:16px;right:16px;bottom:100px;display:flex;align-items:center;gap:12px;padding:10px 12px 10px 10px;background:rgba(16,22,42,.72);backdrop-filter:blur(30px) saturate(1.9);-webkit-backdrop-filter:blur(30px) saturate(1.9);border:1px solid rgba(170,200,255,.22);border-radius:22px;box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 0 40px oklch(0.6 0.12 260 / .14)"> <div style="width:40px;height:56px;flex-shrink:0;border-radius:8px;background:linear-gradient(155deg,#a08a7a,#3c2f4a)"></div>-<div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:3px"><span style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">System Change (System Universe)</span><span style="font-size:12.5px;color:#8f97ad">Reading · 212 notes · Ch 687 today</span></div>+<div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:3px"><span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">System Change (System Universe)</span><span style="font-size:12.5px;color:#8f97ad">Reading · 212 notes · Ch 687 today</span></div> <span style="color:#8f97ad;font-size:18px">›</span> </div> <div style="position:absolute;left:44px;right:44px;bottom:22px;height:62px;border-radius:31px;background:rgba(18,24,44,.62);backdrop-filter:blur(30px) saturate(1.9);-webkit-backdrop-filter:blur(30px) saturate(1.9);border:1px solid rgba(170,200,255,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 10px 30px rgba(0,0,0,.45);display:flex;align-items:center;padding:4px;box-sizing:border-box"> <div style="flex:1;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#c9cfdd;font-size:10.5px;font-weight:600"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><rect x="3" y="5" width="18" height="16" rx="3"></rect><path d="M3 10h18M8 3v4M16 3v4"></path></svg>Today</div>-<div style="flex:1;height:52px;border-radius:26px;background:rgba(150,180,255,.13);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:oklch(0.82 0.12 220);font-size:10.5px;font-weight:600"><span style="font-size:19px;line-height:20px;filter:drop-shadow(0 0 8px oklch(0.82 0.12 220 / .7))">✦</span>Works</div>+<div style="flex:1;height:52px;border-radius:26px;background:rgba(150,180,255,.13);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:oklch(0.82 0.12 220);font-size:10.5px;font-weight:600"><span style="font-size:19px;line-height:20px;filter:drop-shadow(0 0 8px oklch(0.82 0.12 220 / .7))">✦</span>Library</div> <div style="flex:1;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#c9cfdd;font-size:10.5px;font-weight:600"><svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><rect x="3" y="11" width="5" height="10" rx="1.5"></rect><rect x="9.5" y="5" width="5" height="16" rx="1.5"></rect><rect x="16" y="8" width="5" height="13" rx="1.5"></rect></svg>Stats</div> </div> </div>@@ -933,7 +1400,7 @@ html{background:#101118} <div style="display:flex;justify-content:space-between;padding:12px 28px 0;font-size:13px;font-weight:600"><span>23:50  Wed 23 Sep</span><span style="letter-spacing:2px;font-size:11px">▂▄▆  ▭</span></div> <div style="position:absolute;top:36px;left:50%;transform:translateX(-50%);height:44px;border-radius:22px;padding:4px;box-sizing:border-box;display:flex;gap:2px;background:rgba(18,24,44,.6);backdrop-filter:blur(30px) saturate(1.9);-webkit-backdrop-filter:blur(30px) saturate(1.9);border:1px solid rgba(170,200,255,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 8px 24px rgba(0,0,0,.35)"> <div style="display:flex;align-items:center;padding:0 18px;border-radius:18px;background:rgba(150,180,255,.14);color:oklch(0.85 0.11 220);font-weight:600;font-size:14px">Today</div>-<div style="display:flex;align-items:center;padding:0 18px;color:#c9cfdd;font-weight:600;font-size:14px">Works</div>+<div style="display:flex;align-items:center;padding:0 18px;color:#c9cfdd;font-weight:600;font-size:14px">Library</div> <div style="display:flex;align-items:center;padding:0 18px;color:#c9cfdd;font-weight:600;font-size:14px">Stats</div> </div> <div style="position:absolute;top:38px;right:28px;display:flex;gap:10px">@@ -941,7 +1408,7 @@ html{background:#101118} <div style="width:40px;height:40px;border-radius:20px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;color:#c9cfdd"><svg width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><circle cx="12" cy="12" r="3"></circle><circle cx="12" cy="12" r="8" stroke-dasharray="3 2.2"></circle></svg></div> </div> <div style="position:absolute;top:100px;left:36px;right:36px;display:flex;align-items:flex-end;justify-content:space-between">-<div style="display:flex;flex-direction:column;gap:4px"><span style="font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#8f97ad">21–27 Sep 2026</span><span style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:38px;letter-spacing:-.01em;line-height:1.05">Wednesday</span></div>+<div style="display:flex;flex-direction:column;gap:4px"><span style="font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#8f97ad">21–27 Sep 2026</span><span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:38px;letter-spacing:-.01em;line-height:1.05">Wednesday</span></div> <div style="display:flex;align-items:center;gap:6px"> <span style="color:oklch(0.82 0.12 220);font-size:18px;padding:0 6px">‹</span> <sc-for list="{{ weekA }}" as="d" hint-placeholder-count="7">@@ -960,7 +1427,7 @@ html{background:#101118} <sc-for list="{{ relShelf }}" as="r" hint-placeholder-count="4"> <div style="display:flex;align-items:center;gap:12px;padding:9px 12px 9px 9px;background:rgba(150,180,255,.055);border:1px solid rgba(170,200,255,.13);border-radius:18px;box-shadow:inset 0 1px 0 rgba(255,255,255,.1)"> <div style="width:42px;height:58px;flex-shrink:0;border-radius:8px;background:linear-gradient(155deg,{{r.c1}},{{r.c2}});opacity:{{r.op}};box-shadow:{{r.ring}}"></div>-<div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:4px"><span style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{r.t}}</span><span style="font-size:12.5px;color:#8f97ad">{{r.ty}} · {{r.sub}}</span></div>+<div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:4px"><span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{r.t}}</span><span style="font-size:12.5px;color:#8f97ad">{{r.ty}} · {{r.sub}}</span></div> <sc-if value="{{r.done}}" hint-placeholder-val="{{ true }}"><span style="width:24px;height:24px;border-radius:12px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:oklch(0.85 0.11 220);background:oklch(0.82 0.12 220 / .16);border:1.5px solid oklch(0.82 0.12 220 / .5);box-sizing:border-box">✓</span></sc-if> <sc-if value="{{r.due}}" hint-placeholder-val="{{ false }}"><span style="width:24px;height:24px;border-radius:12px;flex-shrink:0;border:1.5px dashed rgba(170,200,255,.45);box-sizing:border-box"></span></sc-if> </div>@@ -971,7 +1438,7 @@ html{background:#101118} <sc-for list="{{ catch3b }}" as="c" hint-placeholder-count="3"> <div style="display:flex;align-items:center;gap:12px;padding:9px 14px 9px 9px;background:rgba(150,180,255,.055);border:1px solid rgba(170,200,255,.13);border-radius:18px;box-shadow:inset 0 1px 0 rgba(255,255,255,.1)"> <div style="width:42px;height:58px;flex-shrink:0;border-radius:8px;background:linear-gradient(155deg,{{c.c1}},{{c.c2}})"></div>-<div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:6px"><span style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{c.t}}</span><span style="font-size:12px;color:#8f97ad">{{c.at}}</span><div style="height:4px;border-radius:2px;background:rgba(170,200,255,.12)"><div style="width:{{c.pct}};height:4px;border-radius:2px;background:oklch(0.82 0.12 220)"></div></div></div>+<div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:6px"><span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{c.t}}</span><span style="font-size:12px;color:#8f97ad">{{c.at}}</span><div style="height:4px;border-radius:2px;background:rgba(170,200,255,.12)"><div style="width:{{c.pct}};height:4px;border-radius:2px;background:oklch(0.82 0.12 220)"></div></div></div> <div style="display:flex;flex-direction:column;align-items:flex-end"><span style="font-size:18px;font-weight:700;color:oklch(0.85 0.11 220);line-height:1.1">{{c.behind}}</span><span style="font-size:10.5px;color:#8f97ad">behind</span></div> </div> </sc-for>@@ -983,7 +1450,7 @@ html{background:#101118} <div style="display:flex;gap:14px;padding:12px 0;border-top:1px solid {{n.sep}}"> <span style="width:40px;flex-shrink:0;font-family:ui-monospace,Menlo,monospace;font-size:11.5px;color:#8f97ad;padding-top:3px">{{n.time}}</span> <div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:3px">-<div style="display:flex;gap:8px;align-items:baseline;min-width:0"><span style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{n.t}}</span></div>+<div style="display:flex;gap:8px;align-items:baseline;min-width:0"><span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{n.t}}</span></div> <div style="font-size:12.5px;color:oklch(0.85 0.11 220)">{{n.ch}}</div> <div style="font-size:14px;color:#b6bdd1;line-height:1.45">{{n.note}}</div> </div>@@ -1008,8 +1475,8 @@ html{background:#101118} <div data-screen-label="3c Mac week board" style="width:1280px;height:800px;position:relative;overflow:hidden;border-radius:12px;background:radial-gradient(1.5px 1.5px at 18% 12%,rgba(255,255,255,.9),transparent),radial-gradient(1px 1px at 72% 8%,rgba(255,255,255,.7),transparent),radial-gradient(1px 1px at 44% 22%,rgba(255,255,255,.5),transparent),radial-gradient(1.5px 1.5px at 88% 30%,rgba(255,255,255,.6),transparent),radial-gradient(1px 1px at 10% 62%,rgba(255,255,255,.5),transparent),radial-gradient(ellipse 60% 45% at 85% -10%,oklch(0.5 0.11 305 / .36),transparent),radial-gradient(ellipse 55% 40% at 8% 110%,oklch(0.5 0.11 220 / .31),transparent),linear-gradient(#0e0d20,#05060d);color:#e9ecf5;font-size:13px;line-height:1.35"> <div style="position:absolute;top:0;left:0;right:0;height:52px;display:flex;align-items:center;gap:18px;padding:0 16px"> <div style="display:flex;gap:8px"><div style="width:12px;height:12px;border-radius:6px;background:#ff5f57"></div><div style="width:12px;height:12px;border-radius:6px;background:#febc2e"></div><div style="width:12px;height:12px;border-radius:6px;background:#28c840"></div></div>-<div style="display:flex;height:30px;padding:3px;border-radius:15px;background:rgba(150,180,255,.07);border:1px solid rgba(170,200,255,.14);box-sizing:border-box"><div style="display:flex;align-items:center;padding:0 12px;border-radius:12px;font-size:12px;font-weight:600;color:oklch(0.85 0.11 220);background:oklch(0.82 0.12 220 / .15)">Today</div><div style="display:flex;align-items:center;padding:0 12px;font-size:12px;font-weight:600;color:#8f97ad">Works</div><div style="display:flex;align-items:center;padding:0 12px;font-size:12px;font-weight:600;color:#8f97ad">Stats</div></div>-<div style="flex:1;display:flex;justify-content:center;align-items:center;gap:14px"><span style="color:oklch(0.82 0.12 220);font-size:16px">‹</span><span style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:19px">21–27 September</span><span style="color:oklch(0.82 0.12 220);font-size:16px">›</span></div>+<div style="display:flex;height:30px;padding:3px;border-radius:15px;background:rgba(150,180,255,.07);border:1px solid rgba(170,200,255,.14);box-sizing:border-box"><div style="display:flex;align-items:center;padding:0 12px;border-radius:12px;font-size:12px;font-weight:600;color:oklch(0.85 0.11 220);background:oklch(0.82 0.12 220 / .15)">Today</div><div style="display:flex;align-items:center;padding:0 12px;font-size:12px;font-weight:600;color:#8f97ad">Library</div><div style="display:flex;align-items:center;padding:0 12px;font-size:12px;font-weight:600;color:#8f97ad">Stats</div></div>+<div style="flex:1;display:flex;justify-content:center;align-items:center;gap:14px"><span style="color:oklch(0.82 0.12 220);font-size:16px">‹</span><span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:19px">21–27 September</span><span style="color:oklch(0.82 0.12 220);font-size:16px">›</span></div> <div style="display:flex;height:30px;padding:3px;border-radius:15px;background:rgba(150,180,255,.07);border:1px solid rgba(170,200,255,.14);box-sizing:border-box"><div style="display:flex;align-items:center;padding:0 12px;font-size:12px;font-weight:600;color:#8f97ad">Day</div><div style="display:flex;align-items:center;padding:0 12px;border-radius:12px;font-size:12px;font-weight:600;color:oklch(0.85 0.11 220);background:oklch(0.82 0.12 220 / .15)">Week</div></div> <div style="width:30px;height:30px;border-radius:15px;background:rgba(150,180,255,.08);border:1px solid rgba(170,200,255,.16);display:flex;align-items:center;justify-content:center;color:oklch(0.85 0.11 220)"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><rect x="3" y="5" width="18" height="14" rx="3"></rect><path d="M15 5v14"></path></svg></div> </div>@@ -1019,7 +1486,7 @@ html{background:#101118} <div style="display:flex;align-items:baseline;gap:6px;padding:0 3px 4px"><span style="font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#8f97ad">{{day.d}}</span><span style="font-size:19px;font-weight:500;color:{{day.nc}}">{{day.n}}</span></div> <sc-for list="{{day.cards}}" as="c" hint-placeholder-count="2"> <div style="padding:8px;border-radius:11px;background:{{c.bg}};border:1px {{c.bs}} {{c.bd}};opacity:{{c.op}};display:flex;flex-direction:column;gap:6px">-<div style="display:flex;gap:7px;align-items:flex-start"><div style="width:20px;height:28px;flex-shrink:0;border-radius:4px;background:linear-gradient(155deg,{{c.c1}},{{c.c2}})"></div><div style="min-width:0;display:flex;flex-direction:column;gap:2px"><span style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:12.5px;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden">{{c.t}}</span><span style="font-size:11px;color:{{c.sc}}">{{c.s}}</span></div></div>+<div style="display:flex;gap:7px;align-items:flex-start"><div style="width:20px;height:28px;flex-shrink:0;border-radius:4px;background:linear-gradient(155deg,{{c.c1}},{{c.c2}})"></div><div style="min-width:0;display:flex;flex-direction:column;gap:2px"><span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:12.5px;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden">{{c.t}}</span><span style="font-size:11px;color:{{c.sc}}">{{c.s}}</span></div></div> <sc-if value="{{c.hasX}}" hint-placeholder-val="{{ false }}"><div style="font-size:11.5px;color:#b6bdd1;line-height:1.4;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden">{{c.x}}</div></sc-if> </div> </sc-for>@@ -1027,7 +1494,7 @@ html{background:#101118} </sc-for> </div> <div style="position:absolute;top:60px;right:12px;bottom:12px;width:320px;box-sizing:border-box;padding:18px;display:flex;flex-direction:column;gap:12px;background:rgba(16,22,42,.6);backdrop-filter:blur(36px) saturate(1.9);-webkit-backdrop-filter:blur(36px) saturate(1.9);border:1px solid rgba(170,200,255,.18);border-radius:16px;box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 0 40px oklch(0.6 0.12 260 / .14)">-<div style="display:flex;gap:12px;align-items:flex-start"><div style="width:46px;height:64px;flex-shrink:0;border-radius:9px;background:linear-gradient(155deg,#a7d6f2,#4a6fa8)"></div><div style="min-width:0;display:flex;flex-direction:column;gap:4px"><span style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:17px;line-height:1.2">The Countdown of My Death is Spamming My Status Window</span><span style="font-size:11.5px;color:#8f97ad">Webtoons · » 14 behind</span></div></div>+<div style="display:flex;gap:12px;align-items:flex-start"><div style="width:46px;height:64px;flex-shrink:0;border-radius:9px;background:linear-gradient(155deg,#a7d6f2,#4a6fa8)"></div><div style="min-width:0;display:flex;flex-direction:column;gap:4px"><span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:17px;line-height:1.2">The Countdown of My Death is Spamming My Status Window</span><span style="font-size:11.5px;color:#8f97ad">Webtoons · » 14 behind</span></div></div> <div style="height:1px;background:rgba(170,200,255,.12)"></div> <div style="display:flex;justify-content:space-between;align-items:baseline"><span style="font-size:13.5px;font-weight:600;color:oklch(0.85 0.11 220)">26. A Gift from the King</span><span style="font-size:11px;color:#8f97ad">Wed 23:33</span></div> <div style="display:flex;gap:8px"><div style="width:44px;height:34px;border-radius:17px;display:flex;align-items:center;justify-content:center;color:oklch(0.85 0.11 220);background:oklch(0.82 0.12 220 / .15);border:1px solid oklch(0.82 0.12 220 / .55);box-shadow:0 0 16px oklch(0.82 0.12 220 / .25)">▲</div><div style="width:44px;height:34px;border-radius:17px;display:flex;align-items:center;justify-content:center;color:#8f97ad;background:rgba(150,180,255,.07)">▼</div></div>@@ -1056,8 +1523,8 @@ html{background:#101118} <div style="position:absolute;top:48px;left:8px;right:8px;bottom:8px;display:flex;gap:10px"> <div style="width:46px;flex-shrink:0;border-radius:14px;background:rgba(150,180,255,.05);border:1px solid rgba(170,200,255,.12);display:flex;flex-direction:column;align-items:center;padding:14px 0;gap:12px;box-sizing:border-box"><span style="color:oklch(0.82 0.12 220);font-size:13px">✦</span><span style="writing-mode:vertical-rl;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:15px;color:#b6bdd1">Today · Wed 23</span></div> <div style="width:380px;flex-shrink:0;box-sizing:border-box;padding:20px;border-radius:16px;background:rgba(16,22,42,.42);border:1px solid rgba(170,200,255,.13);box-shadow:inset 0 1px 0 rgba(255,255,255,.12);display:flex;flex-direction:column;gap:12px;overflow:hidden;opacity:.86">-<div style="display:flex;gap:14px"><div style="width:52px;height:72px;flex-shrink:0;border-radius:10px;background:linear-gradient(155deg,#5d86d8,#23335c)"></div><div style="display:flex;flex-direction:column;gap:5px"><span style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:21px;line-height:1.15">The Wandering Inn of Iron</span><span style="font-size:12px;color:#8f97ad">Royal Road · 64 notes · ▲ 41</span></div></div>-<div style="display:flex;align-items:center;gap:8px;padding:9px 12px;border-radius:12px;background:oklch(0.82 0.12 220 / .1);border:1px solid oklch(0.82 0.12 220 / .35);font-size:12.5px"><span style="color:#8f97ad">Book 1 of</span><span style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:14px;color:oklch(0.88 0.09 220)">The Ironway Cycle</span><span style="margin-left:auto;color:oklch(0.85 0.11 220)">›</span></div>+<div style="display:flex;gap:14px"><div style="width:52px;height:72px;flex-shrink:0;border-radius:10px;background:linear-gradient(155deg,#5d86d8,#23335c)"></div><div style="display:flex;flex-direction:column;gap:5px"><span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:21px;line-height:1.15">The Wandering Inn of Iron</span><span style="font-size:12px;color:#8f97ad">Royal Road · 64 notes · ▲ 41</span></div></div>+<div style="display:flex;align-items:center;gap:8px;padding:9px 12px;border-radius:12px;background:oklch(0.82 0.12 220 / .1);border:1px solid oklch(0.82 0.12 220 / .35);font-size:12.5px"><span style="color:#8f97ad">Book 1 of</span><span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:14px;color:oklch(0.88 0.09 220)">The Ironway Cycle</span><span style="margin-left:auto;color:oklch(0.85 0.11 220)">›</span></div> <div style="display:flex;align-items:center;gap:7px;padding:8px 2px 0"><span style="font-size:9px;color:oklch(0.82 0.12 305)">✦</span><span style="font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#8f97ad">Chapter notes</span></div> <sc-for list="{{ spine3d }}" as="n" hint-placeholder-count="3"> <div style="display:flex;gap:10px"><span style="width:30px;flex-shrink:0;font-family:ui-monospace,Menlo,monospace;font-size:11px;color:#8f97ad;padding-top:2px">{{n.n}}</span><div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:3px"><span style="font-size:12.5px;font-weight:600">{{n.t}}</span><span style="font-size:13px;color:#b6bdd1;line-height:1.45">{{n.note}}</span></div></div>@@ -1065,16 +1532,16 @@ html{background:#101118} </div> <div style="width:380px;flex-shrink:0;box-sizing:border-box;padding:20px;border-radius:16px;background:rgba(16,22,42,.5);border:1px solid rgba(170,200,255,.14);box-shadow:inset 0 1px 0 rgba(255,255,255,.14);display:flex;flex-direction:column;gap:12px;overflow:hidden"> <div style="position:relative;height:84px"><div style="position:absolute;left:0;top:8px;width:52px;height:72px;border-radius:8px;background:linear-gradient(155deg,#5d86d8,#23335c);transform:rotate(-7deg)"></div><div style="position:absolute;left:36px;top:6px;width:52px;height:72px;border-radius:8px;background:linear-gradient(155deg,#6a8fe0,#2a3570);transform:rotate(2deg);border:1px solid rgba(10,12,24,.8)"></div><div style="position:absolute;left:72px;top:8px;width:52px;height:72px;border-radius:8px;background:linear-gradient(155deg,#c98a5a,#4a2a1a);transform:rotate(9deg);border:1px solid rgba(10,12,24,.8)"></div></div>-<span style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:22px">The Ironway Cycle</span>-<div style="display:flex;align-items:center;gap:8px;padding:9px 12px;border-radius:12px;background:oklch(0.82 0.12 220 / .1);border:1px solid oklch(0.82 0.12 220 / .35);font-size:12.5px"><span style="color:#8f97ad">Author</span><span style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:14px;color:oklch(0.88 0.09 220)">M. Hale</span><span style="margin-left:auto;color:oklch(0.85 0.11 220)">›</span></div>+<span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:22px">The Ironway Cycle</span>+<div style="display:flex;align-items:center;gap:8px;padding:9px 12px;border-radius:12px;background:oklch(0.82 0.12 220 / .1);border:1px solid oklch(0.82 0.12 220 / .35);font-size:12.5px"><span style="color:#8f97ad">Author</span><span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:14px;color:oklch(0.88 0.09 220)">M. Hale</span><span style="margin-left:auto;color:oklch(0.85 0.11 220)">›</span></div> <div style="display:flex;align-items:center;gap:7px;padding:8px 2px 0"><span style="font-size:9px;color:oklch(0.82 0.12 305)">✦</span><span style="font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#8f97ad">Reading order</span></div> <sc-for list="{{ order2d }}" as="o" hint-placeholder-count="4">-<div style="display:flex;align-items:center;gap:10px"><span style="width:26px;text-align:right;font-family:'Newsreader',Georgia,serif;font-size:18px;color:#6d7590">{{o.pos}}</span><div style="width:28px;height:40px;flex-shrink:0;border-radius:5px;background:linear-gradient(155deg,{{o.c1}},{{o.c2}});opacity:{{o.op}}"></div><div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:1px"><span style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{o.t}}</span><span style="font-size:11.5px;color:{{o.stC}}">{{o.st}}</span></div></div>+<div style="display:flex;align-items:center;gap:10px"><span style="width:26px;text-align:right;font-family:'Newsreader',Georgia,serif;font-size:18px;color:#6d7590">{{o.pos}}</span><div style="width:28px;height:40px;flex-shrink:0;border-radius:5px;background:linear-gradient(155deg,{{o.c1}},{{o.c2}});opacity:{{o.op}}"></div><div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:1px"><span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{o.t}}</span><span style="font-size:11.5px;color:{{o.stC}}">{{o.st}}</span></div></div> </sc-for> </div> <div style="flex:1;min-width:0;box-sizing:border-box;padding:22px;border-radius:16px;background:rgba(16,22,42,.6);backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px);border:1px solid oklch(0.82 0.12 220 / .35);box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 0 40px oklch(0.6 0.12 260 / .16);display:flex;flex-direction:column;gap:10px;overflow:hidden"> <span style="font-size:10.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#8f97ad">Creator</span>-<span style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:30px;line-height:1.1">M. Hale</span>+<span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:30px;line-height:1.1">M. Hale</span> <span style="font-size:12.5px;color:#8f97ad">5 works in your library · 2 series · also credited as "Mara Hale"</span> <div style="display:flex;align-items:center;gap:7px;padding:12px 2px 0"><span style="font-size:9px;color:oklch(0.82 0.12 305)">✦</span><span style="font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#8f97ad">Works</span></div> <div style="padding:0 12px;border-radius:14px;background:rgba(150,180,255,.05);border:1px solid rgba(170,200,255,.1)">@@ -1110,8 +1577,8 @@ html{background:#101118} </div> </div> <div style="position:absolute;top:36px;right:40px;width:380px;box-sizing:border-box;padding:18px;display:flex;flex-direction:column;gap:13px;background:rgba(16,22,42,.72);backdrop-filter:blur(36px) saturate(1.9);-webkit-backdrop-filter:blur(36px) saturate(1.9);border:1px solid rgba(170,200,255,.22);border-radius:22px;box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 20px 60px rgba(0,0,0,.5),0 0 40px oklch(0.6 0.12 260 / .16)">-<div style="display:flex;align-items:center;gap:8px"><span style="color:oklch(0.82 0.12 220);font-size:13px">✦</span><span style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:15px">Asterism</span><span style="margin-left:auto;font-size:11px;color:#8f97ad;background:rgba(150,180,255,.08);padding:3px 9px;border-radius:10px">Following Safari</span></div>-<div style="display:flex;gap:12px;align-items:center"><div style="width:44px;height:62px;flex-shrink:0;border-radius:8px;background:linear-gradient(155deg,#a08a7a,#3c2f4a);box-shadow:inset 0 1px 0 rgba(255,255,255,.25)"></div><div style="min-width:0;display:flex;flex-direction:column;gap:3px"><span style="font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:16px;line-height:1.2">System Change (System Universe)</span><span style="font-size:13px;color:oklch(0.85 0.11 220);font-weight:600">Chapter 687: Slinky</span><span style="font-size:11.5px;color:#8f97ad">Royal Road · Novel · Reading</span></div></div>+<div style="display:flex;align-items:center;gap:8px"><span style="color:oklch(0.82 0.12 220);font-size:13px">✦</span><span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:15px">Asterism</span><span style="margin-left:auto;font-size:11px;color:#8f97ad;background:rgba(150,180,255,.08);padding:3px 9px;border-radius:10px">Following Safari</span></div>+<div style="display:flex;gap:12px;align-items:center"><div style="width:44px;height:62px;flex-shrink:0;border-radius:8px;background:linear-gradient(155deg,#a08a7a,#3c2f4a);box-shadow:inset 0 1px 0 rgba(255,255,255,.25)"></div><div style="min-width:0;display:flex;flex-direction:column;gap:3px"><span style="display:block;max-width:100%;font-family:'Newsreader',Georgia,serif;font-weight:550;font-size:16px;line-height:1.2">System Change (System Universe)</span><span style="font-size:13px;color:oklch(0.85 0.11 220);font-weight:600">Chapter 687: Slinky</span><span style="font-size:11.5px;color:#8f97ad">Royal Road · Novel · Reading</span></div></div> <div style="display:flex;gap:8px;align-items:center"><div style="width:48px;height:36px;border-radius:18px;display:flex;align-items:center;justify-content:center;color:oklch(0.85 0.11 220);background:oklch(0.82 0.12 220 / .15);border:1px solid oklch(0.82 0.12 220 / .55);box-shadow:0 0 18px oklch(0.82 0.12 220 / .25)">▲</div><div style="width:48px;height:36px;border-radius:18px;display:flex;align-items:center;justify-content:center;color:#8f97ad;background:rgba(150,180,255,.07)">▼</div><span style="margin-left:auto;font-size:11.5px;color:#8f97ad">Characters: Rook, Ada</span></div> <div style="min-height:92px;border-radius:18px;padding:12px 14px;box-sizing:border-box;background:rgba(150,180,255,.07);font-size:14px;color:#e9ecf5;line-height:1.5">Filler, but the slinky bit was genuinely funny. Rook's system finally admits it's<span style="display:inline-block;width:1.5px;height:16px;background:oklch(0.82 0.12 220);vertical-align:-3px;margin-left:1px"></span></div> <div style="height:40px;border-radius:20px;display:flex;align-items:center;justify-content:center;gap:10px;background:linear-gradient(100deg,oklch(0.72 0.13 220),oklch(0.68 0.14 305));color:#fff;font-weight:700;font-size:14px;box-shadow:0 2px 26px oklch(0.7 0.13 262 / .5),inset 0 1px 0 rgba(255,255,255,.3)">Save note <span style="font-weight:500;opacity:.8;font-size:12px">⌘↩</span></div>@@ -1183,7 +1650,7 @@ class Component extends DCLogic {     const shelf=(x)=>Object.assign(x,x.done?{op:.62,ring:'inset 0 1px 0 rgba(255,255,255,.25)',due:false}:{op:1,due:true,done:false,ring:'0 0 0 1.5px oklch(0.82 0.12 220 / .75),0 0 22px oklch(0.82 0.12 220 / .35),inset 0 1px 0 rgba(255,255,255,.3)'});     const relShelf=[f('sc',{sub:'Ep 32'}),f('mk',{sub:'Ep 118'}),f('ih',{sub:'Ep 85',done:true}),f('su',{sub:'Ch 687',done:true})].map(shelf);     const chip=(l,n,on)=>Object.assign({l,n},sel(on));-    return {+    const R = {       weekA, noted, relShelf,       rel1a:[f('sc',Object.assign({sub:'Episode 32 · not read yet'},DUE)),f('ih',Object.assign({sub:'S2 · Episode 85'},DONE)),f('su',Object.assign({sub:'Ch 687 · Slinky'},DONE))],       catch1b:sep([@@ -1312,6 +1779,26 @@ class Component extends DCLogic {       creator3d:sep([f('wi',{role:'Author',st:'Finished'}),f('bl',{role:'Author',st:'Reading'}),f('ii',{role:'Author',st:'To read'}),f('lf',{role:'Author',st:'To read'}),f('sa',{role:'Illustrator',st:'Not in a series'})]),       also3e:[f('ih',{sub:'Ep 85 · read',subC:DIM,mk:'✓',mkC:CYT}),f('sc',{sub:'Ep 32 · due',subC:CYT,mk:'○',mkC:VI})]     };+    const side=(sel)=>[+      {item:1,l:'Today',ic:'◷'},{head:1,l:'Library'},+      {item:1,l:'Catching up',ic:'»',n:4},{item:1,l:'Reading',ic:'◐',n:38},{item:1,l:'To read',ic:'◇',n:12},{item:1,l:'Series',ic:'≡',n:7},+      {head:1,l:'More'},+      {item:1,l:'Creators',ic:'◎',n:21},{item:1,l:'On hiatus',ic:'‖',n:3},{item:1,l:'Finished',ic:'✓',n:54},{item:1,l:'Abandoned',ic:'◌',n:9},{item:1,l:'All works',ic:'✦',n:126}+    ].map(s=>{const on=!!s.item&&s.l===sel;return {head:!!s.head,item:!!s.item,l:s.l,ic:s.ic||'',n:s.n==null?'':s.n,bg:on?'oklch(0.82 0.12 220 / .14)':'transparent',fc:on?CYT:'#e9ecf5',icc:on?CY:VI};});+    R.side6a=side('Today'); R.side6b=side('Catching up'); R.side6c=side('Series');+    R.catch6=R.catch1b.map((c,i)=>Object.assign({},c,{rbg:i===0?'oklch(0.82 0.12 220 / .12)':'transparent',rbd:i===0?'oklch(0.82 0.12 220 / .4)':'transparent'}));+    R.series6=R.series5b.map(g=>Object.assign({},g,{rows:g.rows.map(r=>Object.assign({},r,{bd:r.name==='The Ironway Cycle'?'oklch(0.82 0.12 220 / .5)':'rgba(170,200,255,.13)',bg:r.name==='The Ironway Cycle'?'rgba(150,180,255,.1)':'rgba(150,180,255,.055)'}))}));+    R.week6=R.weekA.map(d=>Object.assign({},d,{full:['Mon','Tue','Wed','Thu','Fri','Sat','Sun'][['M','T','W','T','F','S','S'].indexOf(d.l)]}));+    const hi=(on)=>({bg:on?'oklch(0.82 0.12 220 / .09)':'transparent',bd:on?'oklch(0.82 0.12 220 / .5)':'transparent',dot:on?'0 0 0 4px #0a0a18,0 0 14px oklch(0.82 0.12 220 / .8)':'0 0 0 4px #0a0a18',sel:on,rest:!on});+    R.spine6=[+      Object.assign({n:'26',t:'A Gift from the King',when:'Today 23:33',note:'So the monitor is Gerhardt, and he can read the countdown too. That reframes the whole first season, and every "system message" joke from ep 3 onward is now a clue.',chars:'Gerhardt, Jae-min',votes:'▲'},hi(true)),+      Object.assign({n:'25',t:'The Second Window',when:'Yesterday',note:'Two status windows at once is a great visual gag. Keep an eye on the timer colours.',chars:'',votes:''},hi(false)),+      Object.assign({n:'24',t:'Monitor',when:'Mon 21 Sep',note:'Slow one. The king subplot is doing nothing yet.',chars:'',votes:''},hi(false)),+      Object.assign({n:'23',t:'Overflow',when:'16 Sep',note:'The countdown hitting zero and just… continuing into negatives. Great cliffhanger.',chars:'',votes:''},hi(false))+    ];+    R.noted6=R.noted.map((n,i)=>Object.assign({},n,{rbg:i===0?'oklch(0.82 0.12 220 / .1)':'transparent',rbd:i===0?'oklch(0.82 0.12 220 / .45)':'transparent'}));+    R.meta6=sep([{k:'Site',v:'Webtoons'},{k:'Releases',v:'Wednesdays'},{k:'Creators',v:'Kim Jae-won'},{k:'Tags',v:'system, regression, comedy'},{k:'Series',v:'None · Add to series…'}]);+    return R;   } } 
docs/handover-wide-layouts.md Added +206 / -0
diff --git a/docs/handover-wide-layouts.md b/docs/handover-wide-layouts.mdnew file mode 100644index 00000000..43bf96ae--- /dev/null+++ b/docs/handover-wide-layouts.md@@ -0,0 +1,206 @@+# Handover: iPad & Mac layouts (section 6)++Target mockups in `Asterism Rethink.dc.html`:+- **6a** Mac · Today (full width)+- **6b** Mac · Library group (Catching up: list + work)+- **6c** iPad landscape · Series (series list + series page)+- **6d** iPad portrait · Today (sidebar collapsed to the top tab bar)+- **6e** Mac · work opened from Today (full page, "‹ Today")+- **6f** Mac · note opened from Today (inspector)++Builds on `docs/handover-today-1b.md`, `docs/handover-works-2b.md` and `docs/rename-works-to-library.md`. Those screens are reused here, not re-specified. The visual language follows `asterism-style-guide.md` and ConstellationKit, with no new tokens.++Starting point: `Layout/WideRootView.swift`, `SidebarView.swift`, `WideLayoutPolicy.swift`, `AsterismCommands.swift`, `AppNavigation.swift`, `ListDetailPane.swift`. **Keep the existing rules**: no platform conditionals in `Layout/` (`PlatformSeamTests`), sheets on `ContentView`, the single `paneSky()`, `columnSky()` everywhere else, the app-owned sidebar toggle, and `ColumnBackButton` for going back inside the detail column (the Q42 and Q57 reasoning still applies).++> **Decision to confirm:** this doc builds **6e + 6f** (notes open in an inspector, works open full page). If you pick 6e only, drop §5 and route notes the way §4 routes works.++---++## 1. What changes, at a glance++| Area | Current | New |+|---|---|---|+| Sidebar | 3 tabs + Settings + teaching banner | **Today**, then a **Library** section (Catching up, Reading, To read, Series), a **More** section (Creators, On hiatus, Finished, Abandoned, All works), then Stats. Settings stays on the iPad and goes on the Mac. The banner stays |+| Today pane | `ListDetailPane`: the phone Today in a 360 pt list column, with a detail column | **One full-width pane, no list column** (6a). Selecting something replaces the pane's content (6e) or opens the inspector (6f) |+| Works pane | `ListDetailPane` with the Works list | **Library pane**: `ListDetailPane` whose list is the selected group's screen (5a/5d/4a) or the Series index (5b), with the work or series page as detail |+| Library hub | — | **Not shown at wide widths.** The sidebar is the hub. The hub's Recently noted section is dropped here because Today covers it |+| Stats | Its own pane | Unchanged |+| Settings | Sidebar row on both platforms | **Mac: app menu only** (⌘, from the `Settings` scene). **iPad: sidebar row**, as now |++---++## 2. Sidebar (`SidebarView`)++A new selection model replaces `AppTab` as the sidebar's source of truth:++```swift+enum SidebarItem: Hashable {+  case today+  case library(WorksDestination)   // .group(.catchingUp) … .allWorks, .seriesIndex, .creators+  case stats+}+```++`AppNavigation` gets `selectedSidebarItem`. `selectedTab` becomes derived: `.today` → today, `.library` → library, `.stats` → stats. The compact tree and the commands keep reading `selectedTab`.++Rows, top to bottom:++| Section | Rows | Trailing |+|---|---|---|+| (none) | Today (`calendar`) | none |+| **Library** (section header) | Catching up, Reading, To read, Series | count, same numbers as the 2b tiles |+| **More** (section header) | Creators, On hiatus, Finished, Abandoned, All works | count |+| (bottom, after the spacer) | teaching banner (unchanged), Stats, Settings (**iPad only**) | none |++- Glyphs: the ones the 2b destination list uses. Icon colour is violet when the row isn't selected and cyan when it is. Selected rows use the existing `.constellationSidebarRow(isActive:)`.+- Section headers: 11 pt bold, `#6d7590`, 14 pt top padding.+- Counts: 11.5 pt secondary, from the same read as the 2b hub, and live-updating.+- The tile stats ("~42 chapters behind") **don't** appear in the sidebar. They go in the group screen's subtitle (§4).+- Settings: an injected `showsSettingsRow: Bool` from `ContentView`, set false on the Mac, so `SidebarView` stays free of platform conditionals.+- Stats moves to the bottom so the top of the column is all reading.+- Accessibility: identifiers `sidebar-today`, `sidebar-library-<destination>`, `sidebar-stats`, `sidebar-settings`. Keep `.isSelected`. Headers get `.isHeader`.+- Width: unchanged (`WideLayoutPolicy.sidebarWidth`, 232/250).++---++## 3. Today pane (6a, 6d)++`todayPane` no longer uses `ListDetailPane`. It becomes a `NavigationStack` with the Today screen as its root and the Today `RouteStack` as its path (§4).++Layout (reuse the 1b views; don't fork them):++- **Header**: the full-date serif title ("Wednesday 23 September", Newsreader 32 pt on Mac, 34 on iPad), leading-aligned. Tapping it returns to today, with the return glyph when you're not on today (1b handover §3). Trailing: New Work (`plus`).+- **Week strip**: the 1b strip with no dots, capped at `maxWidth: 620` so the cells don't get huge on wide windows.+- **Body grid**, chosen by the pane's width (not the device):++| Pane width | Layout |+|---|---|+| ≥ 900 pt | Two columns (`Grid`, 32 pt gap). **Left**: Releasing shelf, then the Catching up card. **Right**: the Noted timeline |+| 600–899 pt | Releasing shelf full width, then Catching up and Noted side by side (6d) |+| < 600 pt | The phone 1b stack |++- Shelf cover size scales with the layout: 104 × 148 on Mac, 128 × 182 on iPad portrait, and 98 × 140 on the phone.+- The Catching up card keeps "See all", which selects `sidebar-library-group(catchingUp)`.+- Settings button: **not** in the pane on the Mac (it's in the app menu). On the iPad it's in the pane toolbar **only when the sidebar is collapsed**; otherwise the sidebar row covers it.+- Keyboard (Mac and iPad with a keyboard): ←/→ previous/next day, ⌘T today. Add both to `AsterismCommands` under View, enabled only when Today is showing.+- The pane is one scroll view. No part of it is pinned.++---++## 4. Opening things from Today: the full page (6e)++Covers, catching-up rows, and (in 6e-only mode) notes push onto the **Today stack** and **replace the whole pane**. That's easy now that there's no list column beside it.++- The existing `WorksRoute` values are reused: `.work(id)`, `.chapter(entryID)`, `.series`, `.creator`…+- Opening a **note** in 6e-only mode pushes `.work(workID)` with a scroll target: `WorkDetailView(focusedEntryID:)` scrolls to that entry and highlights it (cyan tint `oklch(.82 .12 220 / .09)`, 1 pt cyan/50% border, glowing dot) and shows its action row (vote, characters, Edit, Open chapter ↗). There's no separate chapter screen on this path.+- **Back**: `ColumnBackButton("Today")` at the top left, ⌘[ and Esc. Popping restores Today's selected day and scroll offset (keep them in `AppNavigation` next to the Today path).+- Clicking **Today** in the sidebar while a route is showing pops to the root (the same behaviour as tapping the current tab on iPhone).+- The sidebar keeps **Today** selected throughout.++### Work page at wide widths++`WorkDetailView` gets a wide variant, chosen by the width it's given (≥ 860 pt):++- **Left column (300 pt)**: the cover (132 × 186), title (Newsreader 24), type and status chips, the **progress card** (Catching up only: bar, "14 behind", and the primary **Continue at Ep 27 ↗** button; see the Today handover §5–7), then the metadata card (Site, Releases, Creators, Tags, Series with "Add to series…").+- **Right column (flexible)**: "Chapter notes", with "N notes · newest first", as the timeline.+- Below 860 pt it uses the current single-column layout, with the progress card placed after the header.+- The same view is used in 6b's detail column, where it's usually narrower and therefore single-column.+- `WideLayoutPolicy.workMeasure` (680) caps the **single-column** layout only. The two-column layout caps at 1040.++---++## 5. Opening a note from Today: the inspector (6f)++- Clicking a row in **Noted** sets `navigation.todayInspectorEntryID` and presents `.inspector(isPresented:)` on the Today pane, 380 pt wide (`.inspectorColumnWidth(min: 340, ideal: 380, max: 440)`).+- While the inspector is open, Today reflows to its narrower width using the §3 rules, and the selected Noted row gets the cyan tint and border.+- Inspector content:+  1. A close button (✕) at the top right, plus Esc.+  2. The work: cover 48 × 68, title (Newsreader 17), "site · » 14 behind" (or the reading status).+  3. A hairline.+  4. The chapter title (cyan, 14 pt semibold) and the time.+  5. The note text in full (14.5 pt).+  6. The vote chip and characters.+  7. "Previous note · Ep 25", the note before it, 2 lines.+  8. Pinned at the bottom: **Edit** (existing edit flow) and **Open work →** (the §4 push with `focusedEntryID`, which also closes the inspector).+- Teach / re-teach / resolve-duplicate pills appear under the note text when they apply. Amber stays reserved for these.+- **↑/↓** move the selection through the day's notes, and the inspector follows. Selecting another day closes the inspector.+- Covers and catching-up rows **don't** open the inspector. They always use §4.+- iPad: `.inspector` already presents as a sheet in compact width and a side column in regular width, so there's nothing extra to build. In portrait with the sidebar collapsed it's a sheet (`.medium`, `.large`).+- Accessibility: moving focus into the inspector announces the chapter title (reuse `announcement(on:)`). The inspector's identifier is `today-inspector`, and the Noted rows keep `recent-entry-<uuid>`.+- This replaces `todayDetail` and `DetailPlaceholder("Select a work or note")`. Today no longer has an empty detail state.++---++## 6. Library pane (6b, 6c)++`worksPane` becomes `libraryPane`, still a `ListDetailPane`, now driven by `selectedSidebarItem`:++| Sidebar item | List column | Detail column |+|---|---|---|+| a status group | the `WorksGroupView(group:)` screen from 5a/5d/4a: large serif title, subtitle (count · sort phrase, **plus the tile stat** such as "~42 behind" for Catching up), search limited to the group, ↕ and + in the list toolbar | the work page (§4 wide variant as the width allows) |+| All works | `WorksGroupView(.allWorks)` with the Unattached Notes section | work, or an unattached entry |+| Series | `SeriesIndexView` (5b, with the fan rules from 5c) | the series page (2d). Pushing a member work **replaces** it, with "‹ <series name>" to go back (6c) |+| Creators | the existing creator list | creator page |++- **No hub at wide widths.** The list column never shows the 2b home, because the sidebar is the hub.+- The list column's rows are the phone rows unchanged. **No row buttons**; the one primary action (Continue) lives on the work page.+- Catching up: the caught-up banner sits at the top of the list column (4a), with compact buttons ("Move to Reading" and "Not yet").+- The work page's progress card has a small "Set latest…" link under the bar, which opens the 4b sheet (presented from `ContentView`, as all sheets are).+- Selection highlight in the list: the existing `selectedWorkID` / `markedWorkID` rules. The selected card gets the cyan tint and a 1 pt border at `oklch(.82 .12 220 / .4)`.+- Placeholders: "Select a work" (groups), "Select a series" (Series index), "Select a creator".+- Switching sidebar items resets the Library stack's path (today's `.destination` routes become sidebar selections, so `isWorkListDestination` routes go away).+- `ListDetailPane` column heading: the **destination's** name ("Catching up", "Series"), not "Library".++---++## 7. iPad specifics (6c, 6d)++- **Landscape**: the sidebar is visible by default (`WideLayoutPolicy.initialVisibility`, the 1100 pt threshold, unchanged). Row height is 40 pt, and the app name "Asterism" sits in Newsreader 22 at the top of the sidebar.+- **Portrait / collapsed**: `.tabViewStyle(.sidebarAdaptable)` gives the floating top tab bar **Today · Library · Stats**, with a sidebar button at the leading edge that brings back the full sidebar (6d).+  - When the sidebar is collapsed, **Library** shows the **2b hub** from the phone (tiles plus the More list), because nothing else offers the destinations there.+  - Choosing a tile pushes the group screen full width, and tapping a row pushes the work.+- **Split View / Slide Over narrow widths**: the compact tree, as now (`usesCompactTree`).+- Settings: sidebar row (expanded) or pane toolbar gear (collapsed), sheet as now.++---++## 8. Mac specifics (6a, 6b, 6e, 6f)++- **Settings**: remove the sidebar row on the Mac. It's ⌘, from the `Settings` scene only. (`AppSettingsCommands` stays iPad-only.)+- **Commands** (`AsterismCommands`):+  - The View menu lists the sidebar items: Today ⌘1, Catching up ⌘2, Reading ⌘3, To read ⌘4, Series ⌘5, Stats ⌘6. The More items go in a submenu without shortcuts. Map `selectTab` to `selectSidebarItem`.+  - Go menu: Back ⌘[, Previous Day ←, Next Day →, Today ⌘T.+  - Find ⌘F focuses the group's search in the Library, and does nothing on Today.+- Window minimum: 960 pt (current). At that width Today uses the 600–899 layout once the sidebar is visible, which is correct.+- Toolbar: New Work (+) in the pane's trailing slot. On Today the pane has no other toolbar items.++---++## 9. Navigation state++- `AppNavigation`: add `selectedSidebarItem`, `todayInspectorEntryID`, `todayScrollAnchor`. Keep the Today and Library `RouteStack` paths.+- Restore (`RestoreStorageKey`): the selected sidebar item, the Library path and the Today path. **Don't** restore an open inspector.+- Map the old stored `selectedTab = "works"` to `.library(.group(.reading))` (see the rename brief).+- Crossing between the compact and wide trees keeps the destination: a phone-width window on a Library group becomes the wide tree with that group selected, and the reverse pushes the group onto the hub.+- `NavigationActions` gets `selectSidebarItem`, `previousDay`, `nextDay`, `goToToday`, `back`, and each is nil when it doesn't apply.++---++## 10. Out of scope++- 3c (week board), 3d (sliding panes), 3e (Safari companion).+- Stats redesign.+- Light mode beyond applying the existing light tokens.++## 11. Acceptance checklist++- [ ] The sidebar shows Today · Library (Catching up, Reading, To read, Series) · More (Creators, On hiatus, Finished, Abandoned, All works) · Stats, with live counts. Settings is iPad-only. The teaching banner is unchanged.+- [ ] Today at wide widths has no list column. It uses two columns at ≥ 900 pt, the mixed layout at 600–899, and the phone stack below that. The header date returns to today, the week strip has no dots, and ←/→/⌘T work.+- [ ] Covers and catching-up rows push the full-page work with "‹ Today". Back restores the day and scroll position. Clicking Today in the sidebar pops to the root.+- [ ] Noted rows open the inspector (6f), ↑/↓ step through the day, Open work → leads to §4 with the note highlighted, and Esc closes it. (Or 6e-only: notes open the work scrolled to the highlighted entry.)+- [ ] The work page switches to two columns at ≥ 860 pt, with the progress card and Continue for Catching up, and "Set latest…" opening the 4b sheet.+- [ ] Library sidebar items show their group or Series index in the list column and the work or series page in the detail column. No hub at wide widths. Series → member work replaces the page, with "‹ <series>".+- [ ] On iPad with the sidebar collapsed, the top tab bar reads Today / Library / Stats, and Library shows the 2b hub.+- [ ] The Mac View and Go menus match §8. Settings is only in the app menu.+- [ ] `PlatformSeamTests` still pass (no `#if` in `Layout/`). Update `WideLayoutPolicy` tests for the new Today width breakpoints (pure functions `todayLayout(forPaneWidth:)` and `workDetailLayout(forWidth:)`).+- [ ] UI tests cover `sidebar-library-*`, `today-inspector`, the back-from-work-to-Today path, and state restoration of the selected sidebar item.
specs/OVERVIEW.md Modified +14 / -0
diff --git a/specs/OVERVIEW.md b/specs/OVERVIEW.mdindex fedfb3c5..9b774e18 100644--- a/specs/OVERVIEW.md+++ b/specs/OVERVIEW.md@@ -2,6 +2,7 @@  | Name | Creation Date | Status | Summary | |------|---------------|--------|---------|+| [Wide Layouts Rethink](#wide-layouts-rethink) | 2026-10-01 | Done — full 2,112-test pre-push unit gate, final MCP Mac/iOS builds and targeted iPad UI checks passed | Implements the section 6 handover: Library destinations in the sidebar, full-width adaptive Today, note inspector, responsive work detail, and shared navigation across window widths. | | [Immutable Capture Safety Net](#immutable-capture-safety-net) | 2026-07-17 | Done | Establishes durable local capture, curation, and self-validating backup foundations. | | [Title Teaching Retroactive Parsing](#title-teaching-retroactive-parsing) | 2026-07-21 | Done | Adds reader-taught title parsing, retroactive organization, provenance, and actionable capture workflows. | | [URL Identity & Re-Share](#url-identity--re-share) | 2026-07-21 | Done | Adds exact URL-derived identity, safe re-share editing, conflict recovery, confirmed Work URLs, Work Merge, and explicit V2/V3 backup handoff. |@@ -951,3 +952,16 @@ Full spec (T-2375). Records an announced return date in the Work Status editor. - [prerequisites.md](hiatus-end-date/prerequisites.md) - [verification-run.md](hiatus-end-date/verification-run.md) - [implementation.md](hiatus-end-date/implementation.md)++## Wide Layouts Rethink++**Created:** 2026-10-01 · **Status:** Done — all four tasks complete; 2,112/2,112 pre-push unit tests, final Xcode MCP Mac/iOS builds and two targeted iPad UI checks passed; eight earlier journeys are also recorded.++The section 6 handover builds on the existing iPad and Mac layout architecture. Today uses the full pane, works open as full pages, notes open in an inspector, and Library destinations move into the sidebar. Shared Today and work views adapt to their available width.++- [Handover](../docs/handover-wide-layouts.md)+- [Updated mockups](../docs/Asterism%20Rethink.dc.html)+- [tasks.md](wide-layouts-rethink/tasks.md)+- [decision_log.md](wide-layouts-rethink/decision_log.md)+- [implementation.md](wide-layouts-rethink/implementation.md)+- [verification-run.md](wide-layouts-rethink/verification-run.md)
specs/wide-layouts-rethink/decision_log.md Added +13 / -0
diff --git a/specs/wide-layouts-rethink/decision_log.md b/specs/wide-layouts-rethink/decision_log.mdnew file mode 100644index 00000000..85ec9aa0--- /dev/null+++ b/specs/wide-layouts-rethink/decision_log.md@@ -0,0 +1,13 @@+# Decision Log: Wide Layouts Rethink++## Quick Decisions++| ID | Date | Decision | Rationale |+|----|------|----------|-----------|+| Q1 | 2026-10-01 | Implement the handover's 6e + 6f combination | Works replace the Today pane; notes open in an inspector with an explicit Open work action. This is the handover's default scope. |+| Q2 | 2026-10-01 | Use tab-bar-only adaptation at accessibility text sizes | The native sidebar-adaptable style hid the app-owned sidebar toggle at those sizes. Normal iPad widths keep sidebar-adaptable tabs; both fixtures passed. |+| Q3 | 2026-10-01 | Give the Today root and pushed stack distinct identities | UI verification showed that clearing the path after inspector dismissal retained the pushed controller. Rebuilding the root restores the day and scroll position kept in AppNavigation. |+| Q4 | 2026-10-01 | Await actual async operations and isolate lifecycle notifications in tests | Fixed sleeps raced preview/cancellation publication, and global locale notifications refreshed other parallel test models. The full unit gate passed after synchronization and isolation without weakening assertions. |+| Q5 | 2026-10-01 | Read sidebar directories through options APIs | The sidebar needs names and total counts, not per-series or per-creator work counts. Existing options APIs avoid whole-work counting reads. |+| Q6 | 2026-10-01 | Arrange wide columns with HStack and lazy note timelines | The eager grid and a whole chapter timeline inside one List row constructed all notes. Lazy timelines retain the handover's widths, gap and single scroll view while deferring offscreen rows. Single-column work pages keep List recycling. |+| Q7 | 2026-10-01 | Distinguish chosen Library destinations from the untouched compact hub | Hidden Library paths must normalize at layout crossings without changing the active tab or turning the first collapsed Library visit into a Reading-group push. |
specs/wide-layouts-rethink/implementation.md Added +72 / -0
diff --git a/specs/wide-layouts-rethink/implementation.md b/specs/wide-layouts-rethink/implementation.mdnew file mode 100644index 00000000..b7e4a5f6--- /dev/null+++ b/specs/wide-layouts-rethink/implementation.md@@ -0,0 +1,72 @@+# Implementation: Wide Layouts Rethink++Scope: [handover](../../docs/handover-wide-layouts.md), mockups 6a–6f, and [decision log](decision_log.md). Reviewed against `8be2b493`, the merge base with `origin/main`.++## Beginner Level++### What Changed++On an iPad or Mac, the sidebar now opens Library groups directly: Catching up, Reading, To read, Series and the More destinations. Today uses the available pane instead of occupying a narrow list column.++Opening a work replaces Today with its work page. Opening a note keeps Today visible and opens a note inspector, with Edit and Open work actions. Back returns to the selected day and its scroll position. Work pages use two columns when enough space is available.++### Why It Matters++The extra space holds reading information rather than an empty detail placeholder. A note can be inspected without leaving the day, while longer work pages still give their notes a readable width. Narrow windows keep the phone layout, and a collapsed iPad sidebar offers Today, Library and Stats tabs.++### Key Concepts++- A **route stack** remembers the pages opened inside Today or Library, so Back returns to their source.+- The **inspector** is a side panel or sheet for the selected note, rather than a separate chapter page.+- A **lazy timeline** creates offscreen note views when they are needed, keeping long histories from becoming one large eagerly built row.++## Intermediate Level++### Changes Overview++`AppNavigation` owns the sidebar selection, both typed route paths, the selected day, Today scroll position and transient inspector/focus state. `selectedTab` derives from the sidebar item so compact tabs and wide navigation share one selection.++`WideRootView` arranges full-width Today and Stats panes and the Library list/detail pane. `AppScreens` constructs the same screens for both trees. `TodayView` changes its arrangement at 600 and 900 points; `WorkDetailView` changes to two columns at 860 points.++### Implementation Approach++- Library paths normalize when the layout changes, including while another tab is active. A chosen destination is distinguished from the untouched compact hub, so first opening collapsed Library still shows its tiles.+- Ordinary Today work opens clear the old inspector and note focus. Inspector Open work establishes a fresh focus after routing, and returning to the root clears it.+- Work layouts share their status/count metadata, site links, verdict and Latest released control. Reading retains the same Set latest flow as the compact page.+- The inspector uses the same duplicate-resolution eligibility as Today rows. Previous-note previews require a real shared work identity, so unrelated unattached notes are not grouped together.+- Sidebar counts read directory options instead of counted member lists. Inspector arrows reuse the published civil-day group rather than flattening and sorting the full history repeatedly.+- Command equality includes day-action availability so inspector-to-editor navigation updates the keyboard shortcuts even when the exported entry stays the same.++### Trade-offs++The wide timelines use a single scroll view with lazy stacks; the single-column work page keeps List recycling. HStack supplies the handover's column arrangement without eagerly measuring a whole note grid. The source, type and status content remain shared rather than becoming separate platform screens.++At accessibility text sizes, the collapsed iPad uses the tab-bar-only style because the native sidebar-adaptable style hid the app-owned toggle. Normal text sizes keep the requested adaptable tabs. These exceptions and the Today root identity workaround are recorded in Q2, Q3 and Q6.++## Expert Level++### Technical Deep Dive++Library normalization consumes only the root destination route, preserving nested work, series and creator history. It updates the remembered destination without changing a hidden tab's active sidebar selection. Both crossing observers use the effective tree and sidebar visibility, so a compact Split View cannot be treated as a wide list/detail pane.++Sidebar selection and both Codable route arrays are mirrored through ContentView's restoration storage. Legacy `works` maps to Reading. Restored identifiers remain until an imported library can resolve them; an open inspector is never restored.++SwiftUI retained a pushed Today controller after inspector dismissal even when its bound path became empty. Root and pushed stack identities therefore differ, while day and scroll state live above that identity boundary. Note IDs remain lazy scroll targets, and each chapter produces one stable row containing its focused actions.++The preview scheduler registers its task synchronously before returning to callers. Tests join the latest preview or suggestion task rather than sleeping. Lifecycle tests use an isolated notification center, and cancellation/drain tests explicitly hold operations in flight. This removes cross-test refreshes and timing races without relaxing assertions.++### Architecture Impact++Compile-time platform conditionals stay outside Layout. The wide tree still owns one pane sky, column containers clear their backgrounds, and the app owns the sidebar toggle. Set latest and the other app-level sheets retain their existing ContentView owner. There is no schema, archive or public repository API change.++### Potential Issues++Mac runtime appearance and physical-keyboard interaction remain manual checks; a compile does not prove those behaviors. Exact dark-mode mockup parity and M4-scale layout performance have not been measured in this review. The lazy structure avoids the identified eager construction, but no new performance band is claimed.++## Completeness Assessment++The reviewed navigation, inspector, responsive layout, work-page metadata and restoration behavior is implemented. All confirmed review findings were fixed, including the hidden-tab crossings and Reading Set latest gap. Eight new unit cases and a Reading-page UI regression exercise the previously missed behavior.++Verification after the fixes: 2,112/2,112 simulator unit tests, two affected iPad UI journeys, the iOS build-for-testing, the regular Mac build and the identity/whitespace validators passed. JUnit for the review page was exported from those completed Xcode MCP result bundles. No coverage export was enabled, and the prior eight iPad journeys are recorded separately in [verification-run.md](verification-run.md).++No known must-fix review issue remains. The manual checks above are unverified and are not presented as passing tests.
specs/wide-layouts-rethink/tasks.md Added +17 / -0
diff --git a/specs/wide-layouts-rethink/tasks.md b/specs/wide-layouts-rethink/tasks.mdnew file mode 100644index 00000000..108064d5--- /dev/null+++ b/specs/wide-layouts-rethink/tasks.md@@ -0,0 +1,17 @@+---+references:+    - docs/handover-wide-layouts.md+    - docs/Asterism Rethink.dc.html+    - specs/ipad-and-mac-layouts/decision_log.md+---+# Wide layouts rethink++## Wide layouts++- [x] 1. Sidebar destinations, Library panes, compact crossings, persistence and menus match handover sections 2, 6–9; navigation regression tests pass++- [x] 2. Full-width responsive Today, note inspector, day keyboard navigation and return scroll position match sections 3–5; layout and navigation tests pass++- [x] 3. Responsive work detail, focused chapter notes and shared Set latest flow match sections 4–6; UI coverage and required app builds pass++- [x] 4. Resolve the full unit-suite failures and verify the final iOS and Mac builds through Xcode MCP; full unit gate passes without weakening coverage
specs/wide-layouts-rethink/verification-run.md Added +50 / -0
diff --git a/specs/wide-layouts-rethink/verification-run.md b/specs/wide-layouts-rethink/verification-run.mdnew file mode 100644index 00000000..e6abebae--- /dev/null+++ b/specs/wide-layouts-rethink/verification-run.md@@ -0,0 +1,50 @@+# Wide layouts rethink — verification++Verified on 2026-10-01 against [the handover](../../docs/handover-wide-layouts.md), using the full-page work and note-inspector combination (6e + 6f).++## Builds and checks++- Final Xcode MCP regular builds passed for Development/My Mac and Development/iPhone 18 Pro (`buildForTesting: false`). The iPad simulator build also passed during UI verification. Final build logs: `BuildProject-Log-20261001-202227.txt` and `BuildProject-Log-20261001-202355.txt`.+- The Mac signing failure came from an unsigned, generated `AsterismTests.xctest` left inside the app by an accidental Mac test attempt. Removing only that stale generated plug-in restored the regular Mac build. Signing settings were unchanged. No Mac tests or app launch occurred.+- Focused navigation, layout-policy, command and platform-seam tests: 115/115 passed. The final expanded rethink regression suite also passed 8/8.+- After the final teaching-banner and entry-route command corrections, the navigation/rethink regression run passed 67/67.+- Eight distinct iPad UI journeys passed: inspector to focused work and Today Back; inspector close and day change; direct Inspector Edit; collapsed top tabs and Library hub; sidebar destinations and series-member Back with the series name; persisted sidebar selection; large-text accessibility; and Creators count with the shared Set latest sheet.+- `make verify-identity` and `git diff --check` passed.++## Full unit-suite resolution++The final Xcode MCP full unit run passed **2,104/2,104**, with no failures, skipped tests or tests not run. The root-cause fixes first passed 209/209 focused tests covering the failing suites and lifecycle notifications.++The initial run passed 2,060 of 2,100 tests. Forty failed in AppLibraryModel refresh/launch, ComposedTeaching, OptionalSequence and RuleSuggestion suites. Five representative tests passed separately on both unchanged HEAD and the implementation; those samples did not establish inheritance and were insufficient to close verification.++Investigation of all failure details identified and resolved these causes:++- `AppLifecycleTests` posted locale changes on `NotificationCenter.default`. Concurrent AppLibraryModel tests subscribed to the same global stream, so the locale test caused extra refreshes in those models. The test now uses an isolated notification center with the production publisher.+- Teaching and optional-sequence tests inspected fire-and-forget previews after fixed sleeps. Preview scheduling now registers its task synchronously, and tests join the actual latest preview/suggestion task before inspecting publication.+- Coordinator cancellation tests raced a 50 ms completion. Gates now hold the attempt and observe cancellation before releasing it.+- The empty-library test did not establish that a drain had started. It now waits for the launch tail, holds a drain in flight, and verifies emptying waits for it.++Assertions were retained; tests were not skipped and coverage was not weakened. The final full unit result is retained in Xcode MCP's `RunSomeTests/264F009B-8590-4752-A57C-0A86104DAF0F.txt` action artifact.++The first combined iPad UI call timed out while Xcode was still running. It was stopped, counted as unverified, and replaced with smaller focused batches; only completed passing results are counted above.++## Regression found during UI verification++The custom Today Back button cleared `todayPath`, but SwiftUI retained the pushed screen after inspector dismissal. Separate root and pushed stack identities now rebuild the dashboard from the retained day and scroll state. The inspector → focused work → Today Back UI journey passed after this correction.++The native sidebar-adaptable tab style also hid the app-owned toggle at accessibility text sizes. The platform seam uses the tab-bar-only style at those sizes and retains sidebar-adaptable tabs normally. Both the accessibility and normal portrait fixtures passed.++Screenshots from the fixture confirmed the wide work columns and focused-note highlight/action row in light mode. Mac runtime appearance, keyboard interaction on physical hardware, and exact dark-mode mockup parity were not manually verified.++## Pre-push review++Four read-only reviews checked reuse, quality, efficiency and handover adherence. Fixes preserve hidden Library history across layout changes, clear stale inspector/focus state on ordinary Today work opens, include day-command eligibility in command comparison, restore compact work metadata/actions in the wide page, and restore inspector duplicate resolution. Lazy timelines replace eagerly built note columns; sidebar and inspector reads reuse the existing directory options and civil-day groups.++Fresh Xcode MCP verification after these fixes:++- Simulator unit gate: **2,112/2,112 passed**, no failures, skips, expected failures or tests not run.+- Affected iPad UI journeys: **2/2 passed**, including focused note → work → Today Back and Reading → Latest released → the shared sheet.+- iOS build-for-testing and regular Development/My Mac build passed. The Mac share extension remains embedded. No Mac app or Mac tests were run.+- `make verify-identity` and `git diff --check` passed. The test runs did not modify or create repository files.++JUnit was exported from the completed `.xcresult` bundles for the review page. The runner catalog has no root Xcode-project recipe; the owner's Xcode MCP requirement supplied the project-configured run instead. Coverage was not enabled, so no coverage result is claimed.

Things to double-check

Manual runtime checks

Mac appearance, physical-keyboard interaction and exact dark-mode mockup parity remain manual checks; compilation and UI fixtures do not establish them.

Scale and coverage

The identified eager note construction was replaced with lazy timelines. No M4 performance band or code-coverage export was collected.