/* Sidebar: a clear line between the main menu and the Categories list, and a big Collapse / Show all control. */
body.orbit-v27 .app-header > .sidebar-section { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); }
html[data-theme="light"] body.orbit-v27 .app-header > .sidebar-section { border-top-color: rgba(0, 0, 0, .1); }
body.orbit-v27 .sidebar-section-heading { min-height: 48px; margin-bottom: 6px; padding: 0 2px 0 10px; }
body.orbit-v27 #appSidebar .sidebar-section-heading > #sidebarCategoriesToggle { flex: 1; display: flex; align-items: center; justify-content: space-between !important; gap: 10px; width: auto; min-height: 44px; padding: 0 4px 0 0; font-size: 13px; font-weight: 650; color: var(--o-muted, #a1a1aa); text-align: left; background: none; border: 0; }
body.orbit-v27 .categories-toggle-pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 14px; border-radius: 999px; background: var(--o-accent-soft, rgba(10, 132, 255, .14)); color: var(--o-accent-ink, #6cb2ff); font-size: 13px; font-weight: 650; }
body.orbit-v27 .categories-toggle-pill svg { width: 18px; height: 18px; transition: transform .2s ease; transform: rotate(180deg); }
body.orbit-v27 #sidebarCategoriesToggle[aria-expanded="false"] .categories-toggle-pill svg { transform: none; }
body.orbit-v27 #sidebarCategoriesToggle:hover .categories-toggle-pill { filter: brightness(1.15); }
@media (prefers-reduced-motion: reduce) { body.orbit-v27 .categories-toggle-pill svg { transition: none; } }

/* Unsorted is no longer a menu item: a slim prompt on Focus and Tasks while some tasks lack a category. */
.unsorted-prompt[hidden] { display: none !important; }
body.orbit-v27 .unsorted-prompt { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 1050px; margin: 0 auto 14px; padding: 10px 14px; min-height: 44px; border: 1px solid var(--o-line, #2a2a2e); border-radius: 12px; background: var(--o-raise, #121214); color: var(--o-ink, #f4f4f5); font-size: 14px; text-align: left; }
body.orbit-v27 .unsorted-prompt > span:nth-child(2) { flex: 1; }
body.orbit-v27 .unsorted-prompt b { font-variant-numeric: tabular-nums; }
body.orbit-v27 .unsorted-prompt > span:last-child { color: var(--o-muted, #a1a1aa); font-size: 18px; }
body.orbit-v27 .unsorted-prompt.active { background: var(--o-raise, #121214); }
/* Keep "Show all" / "Collapse" on one line, even in a narrow sidebar (foldable open). */
body.orbit-v27 .categories-toggle-pill { flex: none; white-space: nowrap; }
body.orbit-v27 #appSidebar .sidebar-section-heading > #sidebarCategoriesToggle > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Narrow sidebars (foldable open, small tablets): tighter heading so "Categories" and the pill both fit. */
body.orbit-v27 #appSidebar .sidebar-section-heading { gap: 4px; }
body.orbit-v27 #appSidebar .sidebar-section-heading > #sidebarCategoriesToggle { gap: 6px; }
body.orbit-v27 #appSidebar .categories-toggle-pill { padding: 0 8px 0 11px; gap: 4px; }
body.orbit-v27 #appSidebar .sidebar-section-heading > [data-manage-categories] { min-width: 34px; padding: 6px 4px; }
/* The footer of sync and sample notes is gone; keep its element hidden. */
body.orbit-v27 #mainContent > footer { display: none !important; }

/* Quieter Collapse (Adi, 2026-11-04): same size, plain secondary text like an Apple sidebar section toggle; a light fill only on hover. */
body.orbit-v27 .categories-toggle-pill { background: transparent; color: var(--o-muted, #8e8e93); font-weight: 500; }
body.orbit-v27 #sidebarCategoriesToggle:hover .categories-toggle-pill { filter: none; background: var(--o-hover, rgba(127, 127, 127, .12)); color: var(--o-ink-2, inherit); }

/* Sidebar, Claude-style (Adi, 2026-11-09): one text size for every item, a little tighter, and the
   category list has no "Categories" title above it, only the Collapse pill and the ••• menu. */
body.orbit-v27 #appSidebar .tabs button { min-height: 44px; padding-top: 9px; padding-bottom: 9px; font-size: 16px; font-weight: 450; }
body.orbit-v27 #appSidebar #sidebarCategories button,
body.orbit-v27 #appSidebar #sidebarCategoriesList button:not(#sidebarCategoriesToggle) { min-height: 44px; font-size: 16px; font-weight: 450; }
body.orbit-v27 #appSidebar #sidebarCategories button > small,
body.orbit-v27 #appSidebar #sidebarCategories button > b { font-size: 13px; }
body.orbit-v27 #appSidebar .sidebar-section { margin-top: 14px; }
body.orbit-v27 #appSidebar .sidebar-section-heading > #sidebarCategoriesToggle { justify-content: flex-start !important; }
body.orbit-v27 #appSidebar .sidebar-section-heading > #sidebarCategoriesToggle > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Dark sidebar in ChatGPT's colors (Adi, 2026-11-09): near-black grey panel, soft white items, grey
   secondary text, regular weight. */
html:not([data-theme="light"]) body.orbit-v27 #appSidebar { --sidebar: #111111; background: #111111; border-right-color: #1f1f1f; }
html:not([data-theme="light"]) body.orbit-v27 #appSidebar .tabs button,
html:not([data-theme="light"]) body.orbit-v27 #appSidebar #sidebarCategories button { color: #eeeeee; font-weight: 400; }
html:not([data-theme="light"]) body.orbit-v27 #appSidebar .tabs button.active,
html:not([data-theme="light"]) body.orbit-v27 #appSidebar #sidebarCategories button.active,
html:not([data-theme="light"]) body.orbit-v27 #appSidebar #sidebarCategories button[aria-current="page"] { background: #212121; color: #ffffff; font-weight: 500; }
html:not([data-theme="light"]) body.orbit-v27 #appSidebar .tabs button:hover,
html:not([data-theme="light"]) body.orbit-v27 #appSidebar #sidebarCategories button:hover { background: #1a1a1a; }
html:not([data-theme="light"]) body.orbit-v27 #appSidebar .tabs button b,
html:not([data-theme="light"]) body.orbit-v27 #appSidebar #sidebarCategories button > small,
html:not([data-theme="light"]) body.orbit-v27 #appSidebar #sidebarCategories button > b,
html:not([data-theme="light"]) body.orbit-v27 #appSidebar .categories-toggle-pill,
html:not([data-theme="light"]) body.orbit-v27 #appSidebar [data-manage-categories] { color: #aeaeae; }
html:not([data-theme="light"]) body.orbit-v27 #appSidebar .account-button { --o-raise-2: #262626; border-color: #2a2a2a; }
