/* Sidebar "three places" — web redesign batch, nav piece (flag
   web_nav_three_places, born dark). Loaded by sidebar.html only while the
   flag is on; every rule is scoped to #mySidebar.wrb-nav, the global search
   Go-to group, or the Today link, so production never sees a line of it.
   Design source: web-nav-directions batch view (batch.css sidebar + Today).
   No italics; gold only on the main mentor's ring. */

/* ---- tokens, per theme (skin.js sets the body class) ---------------------- */
body.dark {
    --wrb-text: #EAE7F5;
    --wrb-title: #FFFFFF;
    --wrb-muted: #a29bb6;
    --wrb-faint: #8a83a0;
    --wrb-line: #3a324d;
    --wrb-hover: rgba(167, 139, 250, 0.09);
    --wrb-nav-on: rgba(167, 139, 250, 0.16);
    --wrb-raise: #2f2840;
    --wrb-tile: #2a2438;
    --wrb-skel: rgba(255, 255, 255, 0.07);
    --wrb-accent: #A78BFA;
    --wrb-ring: #8B5CF6;
    --wrb-seat-gold: #D4A93A;
    --wrb-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
body.light {
    --wrb-text: #333333;
    --wrb-title: #111111;
    --wrb-muted: #6b6b76;
    --wrb-faint: #7a7883;
    --wrb-line: #dcdae2;
    --wrb-hover: rgba(17, 17, 17, 0.05);
    --wrb-nav-on: rgba(17, 17, 17, 0.08);
    --wrb-raise: #FFFFFF;
    --wrb-tile: #e4e2e8;
    --wrb-skel: rgba(0, 0, 0, 0.07);
    --wrb-accent: #7C3AED;
    --wrb-ring: #8B5CF6;
    --wrb-seat-gold: #C9A227;
    --wrb-shadow: 0 12px 32px rgba(40, 30, 70, 0.14);
}
body.zen {
    --wrb-text: #2D3748;
    --wrb-title: #1A202C;
    --wrb-muted: #5f6b7a;
    --wrb-faint: #6f7b89;
    --wrb-line: #CBD5E0;
    --wrb-hover: rgba(45, 55, 72, 0.06);
    --wrb-nav-on: rgba(45, 55, 72, 0.09);
    --wrb-raise: #FFFFFF;
    --wrb-tile: #E2E8F0;
    --wrb-skel: rgba(45, 55, 72, 0.08);
    --wrb-accent: #6B46C1;
    --wrb-ring: #805AD5;
    --wrb-seat-gold: #C9A227;
    --wrb-shadow: 0 12px 32px rgba(26, 32, 44, 0.14);
}
body.zenGarden {
    --wrb-text: #4F4F4F;
    --wrb-title: #3B3B3B;
    --wrb-muted: #6f6450;
    --wrb-faint: #7d6f55;
    --wrb-line: #d3c8ad;
    --wrb-hover: rgba(79, 79, 79, 0.06);
    --wrb-nav-on: rgba(155, 118, 83, 0.16);
    --wrb-raise: #F7F3E3;
    --wrb-tile: #E2D9BC;
    --wrb-skel: rgba(79, 79, 79, 0.08);
    --wrb-accent: #6D28D9;
    --wrb-ring: #8B5CF6;
    --wrb-seat-gold: #C9A227;
    --wrb-shadow: 0 12px 32px rgba(59, 59, 59, 0.16);
}

#mySidebar.wrb-nav {
    /* The pinned footer (section 7) is in the flow, so nothing needs room
       reserved under it. */
    padding-bottom: 0;
    /* The whole sidebar is the one scroll area (decisions.md 2026-10-05).
       The footer sticks over its bottom edge, so focus and scrollIntoView
       stop short of it: a generous allowance, not a measurement (the footer
       is ~100px; the profile row's height differs from page to page). */
    scroll-padding-bottom: 120px;
}
/* The sidebar scrolls; its rows keep their height instead of squeezing. */
#mySidebar.wrb-nav > * {
    flex-shrink: 0;
}
#mySidebar.wrb-nav .wrb-search-wrap,
#mySidebar.wrb-nav .wrb-council,
#mySidebar.wrb-nav #journals-section,
#mySidebar.wrb-nav #mentor-chats-section,
#mySidebar.wrb-nav .wrb-feedback-row {
    text-align: left;
}

/* main.css removes every button focus outline with !important; the new
   controls need a visible ring, so these out-rank it. */
#mySidebar.wrb-nav button:focus-visible,
#mySidebar.wrb-nav a:focus-visible,
#mySidebar.wrb-nav [role="button"]:focus-visible {
    outline: 2px solid var(--wrb-ring) !important;
    outline-offset: 2px;
}

/* ---- 1. logo row: production logo and collapse chevron, quieter ----------- */
#mySidebar.wrb-nav .sidebar-logo-container {
    height: 64px;
    padding: 0 14px 0 18px;
    margin-bottom: 0;
    border-bottom-color: var(--wrb-line); /* the same divider as the footer's */
}
#mySidebar.wrb-nav .sidebar-logo {
    height: 2rem;
}
#mySidebar.wrb-nav .sidebar-logo.ln-book {
    height: 26px; /* the rebrand's book, drawn for 26 px (LIFE-623) */
}
#mySidebar.wrb-nav .sidebar-toggle {
    top: 19px;
    right: 14px;
    width: 26px;
    height: 26px;
    background-color: transparent;
    border: none;
    box-shadow: none;
}
#mySidebar.wrb-nav .sidebar-toggle:hover {
    background-color: var(--wrb-hover);
    transform: none;
}
#mySidebar.wrb-nav .sidebar-toggle:focus,
#mySidebar.wrb-nav .sidebar-toggle:active {
    box-shadow: none;
}
#mySidebar.wrb-nav .sidebar-toggle:focus-visible {
    outline: 2px solid var(--wrb-ring) !important;
    outline-offset: 2px;
}
#mySidebar.wrb-nav .sidebar-toggle-icon {
    width: 16px;
    color: var(--wrb-faint);
}
#mySidebar.wrb-nav .sidebar-toggle:hover .sidebar-toggle-icon {
    color: var(--wrb-title);
}

/* ---- 2. the search field (opens global search) ----------------------------- */
#mySidebar.wrb-nav .wrb-search-wrap {
    padding: 12px 12px 0;
}
#mySidebar.wrb-nav .wrb-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 36px;
    padding: 0 10px 0 12px;
    /* !important: the Mentors page strips every button border with one. */
    border: 1px solid var(--wrb-line) !important;
    border-radius: 10px;
    background: transparent;
    color: var(--wrb-faint);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
#mySidebar.wrb-nav .wrb-search-field:hover {
    background-color: var(--wrb-hover);
    border-color: color-mix(in srgb, var(--wrb-ring) 35%, var(--wrb-line)) !important;
}
#mySidebar.wrb-nav .wrb-search-icon {
    width: 17px;
    height: 17px;
    flex: none;
}
#mySidebar.wrb-nav .wrb-search-placeholder {
    flex: 1;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#mySidebar.wrb-nav .wrb-search-kbd {
    flex: none;
    font-family: inherit;
    font-size: 11.5px;
    line-height: 1;
    padding: 3px 6px;
    border: 1px solid var(--wrb-line);
    border-radius: 5px;
    color: var(--wrb-faint);
    background: transparent;
}

/* ---- 3. nav rows: Today · Life · Goals --------------------------------------- */
#mySidebar.wrb-nav .wrb-search-wrap + .sidebar-section {
    padding: 10px 8px 0;
    margin-bottom: 0;
}
#mySidebar.wrb-nav .sidebar-nav-item {
    height: 38px;
    padding: 0 13px;
    margin: 0 0 1px;
    border-radius: 10px;
    font-size: 15px;
}
#mySidebar.wrb-nav .sidebar-nav-item:hover {
    background-color: var(--wrb-hover);
    color: var(--sidebar-text) !important;
}
#mySidebar.wrb-nav .sidebar-nav-item.selected,
#mySidebar.wrb-nav .sidebar-nav-item.selected:hover {
    background-color: var(--sidebar-active);
}
#mySidebar.wrb-nav .sidebar-nav-item.selected .sidebar-nav-text {
    font-weight: 600;
    color: var(--wrb-title) !important;
}
#mySidebar.wrb-nav .sidebar-nav-icon {
    margin-right: 13px;
}

/* ---- 4. YOUR COUNCIL ------------------------------------------------------------- */
#mySidebar.wrb-nav .wrb-council {
    padding: 0 8px;
}
#mySidebar.wrb-nav .wrb-council-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0 9px;
    padding: 0 6px 0 13px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--wrb-faint);
    border-radius: 6px;
    transition: color 0.15s ease;
}
#mySidebar.wrb-nav .wrb-council-label:hover {
    color: var(--wrb-accent);
}
#mySidebar.wrb-nav .wrb-council-arrow {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    opacity: 0.7;
}
#mySidebar.wrb-nav .wrb-council-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding-left: 13px;
}
#mySidebar.wrb-nav .wrb-council-row[hidden] {
    display: none;
}
#mySidebar.wrb-nav .wrb-council-skel {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--wrb-skel);
    animation: wrb-council-pulse 1.4s ease-in-out infinite;
}
@keyframes wrb-council-pulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    #mySidebar.wrb-nav .wrb-council-skel { animation: none; }
}
#mySidebar.wrb-nav .wrb-council-face {
    display: block;
    flex: none;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
#mySidebar.wrb-nav .wrb-council-face img {
    display: block;
    width: 30px;
    height: 30px;
    box-sizing: border-box;
    border-radius: 50%;
    object-fit: cover;
    background: var(--wrb-tile);
    transition: box-shadow 0.15s ease;
}
/* The main mentor's gold ring: 2px gold, 2px gap, inside the 30px seat so
   six circles still fit the sidebar. */
#mySidebar.wrb-nav .wrb-council-seat.is-main .wrb-council-face img {
    border: 2px solid var(--wrb-seat-gold);
    padding: 2px;
    background: var(--sidebar-bg);
}
#mySidebar.wrb-nav .wrb-council-face:hover img,
#mySidebar.wrb-nav .wrb-council-seat.is-open .wrb-council-face img {
    box-shadow: 0 0 0 2px var(--wrb-ring);
}
#mySidebar.wrb-nav .wrb-council-face:focus-visible {
    outline: none !important;
}
#mySidebar.wrb-nav .wrb-council-face:focus-visible img {
    box-shadow: 0 0 0 2px var(--sidebar-bg), 0 0 0 4px var(--wrb-ring);
}
/* "+N": a full circle the size of a face. */
#mySidebar.wrb-nav .wrb-council-more {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--wrb-tile);
    color: var(--wrb-muted);
    font-size: 11.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    transition: color 0.15s ease, box-shadow 0.15s ease;
}
#mySidebar.wrb-nav .wrb-council-more.wrb-council-empty {
    font-size: 16px;
    font-weight: 600;
}
#mySidebar.wrb-nav .wrb-council-more:hover {
    color: var(--wrb-accent);
    box-shadow: 0 0 0 2px var(--wrb-ring);
}
#mySidebar.wrb-nav .wrb-council-more:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 2px var(--sidebar-bg), 0 0 0 4px var(--wrb-ring);
}
#mySidebar.wrb-nav .wrb-council-card {
    display: none;
    position: absolute;
    z-index: 40;
    min-width: 96px;
    max-width: min(210px, calc(100% - 12px));
    box-sizing: border-box;
    padding: 8px 12px 9px;
    background: var(--wrb-raise);
    border: 1px solid var(--wrb-line);
    border-radius: 11px;
    box-shadow: var(--wrb-shadow);
    white-space: nowrap;
}
#mySidebar.wrb-nav .wrb-council-seat.is-open .wrb-council-card {
    display: block;
}
/* The hover bridge: the 7px between the face and its card belong to the card,
   so the pointer never leaves the seat on its way to Journal or Chat. */
#mySidebar.wrb-nav .wrb-council-card::before {
    content: '';
    position: absolute;
    left: -1px;
    right: -1px;
    bottom: 100%;
    height: 9px;
}
#mySidebar.wrb-nav .wrb-council-card-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--wrb-title);
    overflow: hidden;
    text-overflow: ellipsis;
}
#mySidebar.wrb-nav .wrb-council-card-role {
    display: block;
    margin-top: 1px;
    font-size: 11.5px;
    color: var(--wrb-muted);
}
#mySidebar.wrb-nav .wrb-council-card-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    font-size: 13px;
}
#mySidebar.wrb-nav .wrb-council-link {
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-weight: 600;
    color: var(--wrb-accent);
    cursor: pointer;
    border-radius: 3px;
}
#mySidebar.wrb-nav .wrb-council-link:hover {
    text-decoration: underline;
}
#mySidebar.wrb-nav .wrb-council-dot {
    color: var(--wrb-faint);
}

/* Upgrade container: keeps its place; no empty gap when it is hidden. */
#mySidebar.wrb-nav .wrb-upgrade-section {
    margin: 0;
    padding: 0 8px;
}
#mySidebar.wrb-nav .wrb-upgrade-section .upgrade-container {
    margin: 0;
}
#mySidebar.wrb-nav .wrb-upgrade-section .upgrade-container > * {
    margin-top: 12px;
}

/* ---- 5 + 6. section headers: JOURNALS / MENTOR CHATS --------------------------- */
#mySidebar.wrb-nav #journals-section,
#mySidebar.wrb-nav #mentor-chats-section {
    margin-bottom: 0;
    padding: 0;
}
#mySidebar.wrb-nav #journals-section > .flex,
#mySidebar.wrb-nav #mentor-chats-section > .flex {
    margin: 18px 0 6px;
    padding: 0 14px 0 21px;
}
#mySidebar.wrb-nav .sidebar-section-title {
    padding: 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.2px;
    color: var(--wrb-faint) !important;
    opacity: 1;
}
#mySidebar.wrb-nav .sidebar-action-button {
    width: 26px;
    height: 26px;
    margin-right: 0;
    box-shadow: none;
}
#mySidebar.wrb-nav .sidebar-action-button:hover {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wrb-ring) 18%, transparent);
}
#mySidebar.wrb-nav .sidebar-action-button .sidebar-button-icon {
    width: 14px;
    height: 14px;
}
#mySidebar.wrb-nav .recent-items-container {
    margin-top: 0;
}

/* JOURNALS rows with the D4 day marker */
#mySidebar.wrb-nav .wrb-jrow {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 35px;
    margin: 0 8px 0 0;
    padding: 0 10px 0 15px;
    border-left: 0;
    border-radius: 0 10px 10px 0;
    font-size: 13.5px;
    color: var(--sidebar-text);
    cursor: pointer;
    white-space: nowrap;
}
#mySidebar.wrb-nav .wrb-jrow:hover {
    background-color: var(--wrb-hover);
}
#mySidebar.wrb-nav .wrb-d4 {
    flex: none;
    width: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}
#mySidebar.wrb-nav .wrb-d4-day {
    font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--wrb-title);
}
#mySidebar.wrb-nav .wrb-d4-weekday {
    margin-top: 2px;
    font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.6px;
    color: var(--wrb-muted);
}
#mySidebar.wrb-nav .wrb-d4-cjk .wrb-d4-weekday {
    font-size: 9px;
    letter-spacing: 0;
}
#mySidebar.wrb-nav .wrb-jtext {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
#mySidebar.wrb-nav .wrb-jnum {
    margin-right: 4px;
    color: var(--wrb-faint);
}
#mySidebar.wrb-nav .wrb-jrow .journal-title {
    font-weight: 400;
}
#mySidebar.wrb-nav #recent-journals-container > .recent-item:not(.wrb-jrow),
#mySidebar.wrb-nav #recent-mentors-container > .recent-item:not(.mentor-chat-item) {
    margin: 0 8px 0 0;
    padding: 8px 10px 8px 21px;
    color: var(--wrb-muted);
}

/* MENTOR CHATS rows */
#mySidebar.wrb-nav .mentor-chat-item {
    height: 46px;
    margin: 0 8px 0 0;
    padding: 0 4px 0 15px;
    border-left: 0;
    border-radius: 0 10px 10px 0;
}
#mySidebar.wrb-nav .mentor-chat-item:hover:not(:has(.conversation-menu-wrapper:hover)),
#mySidebar.wrb-nav .mentor-chat-item.wrb-menu-open {
    background-color: var(--wrb-hover);
}
#mySidebar.wrb-nav .mentor-chat-item .mentor-avatar {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}
#mySidebar.wrb-nav .mentor-chat-item .flex-col {
    text-align: left;
    align-items: flex-start;
    line-height: 1.3;
}
#mySidebar.wrb-nav .mentor-chat-item .recent-item-text {
    text-align: left;
}
#mySidebar.wrb-nav .mentor-chat-item .recent-item-text.font-medium,
#mySidebar.wrb-nav .mentor-chat-item .flex-col > .recent-item-text:only-child {
    font-size: 13px;
    font-weight: 500;
    color: var(--wrb-title) !important;
}
#mySidebar.wrb-nav .mentor-chat-item .recent-item-text.opacity-60 {
    font-size: 11.5px;
    opacity: 1;
    color: var(--wrb-muted) !important;
}
/* Entry rows: the date stays whole, "with Mentor" ellipsizes first. */
#mySidebar.wrb-nav .mentor-chat-item .wrb-chat-context {
    display: flex;
    align-items: baseline;
    min-width: 0;
}
#mySidebar.wrb-nav .mentor-chat-item .wrb-chat-context > .wrb-chat-with {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#mySidebar.wrb-nav .mentor-chat-item .wrb-chat-context > .wrb-chat-tail {
    flex: none;
    white-space: nowrap;
}
/* "from Oct 3" opens the entry: same muted words (main.css sizes every <a>
   1.5em in Avenir Next), underlined on hover/focus */
#mySidebar.wrb-nav .mentor-chat-item .wrb-chat-origin-link {
    font: inherit;
    color: inherit;
    text-decoration: none;
    border-radius: 3px;
}
#mySidebar.wrb-nav .mentor-chat-item .wrb-chat-origin-link:hover,
#mySidebar.wrb-nav .mentor-chat-item .wrb-chat-origin-link:focus-visible {
    color: var(--wrb-title);
    text-decoration: underline;
    text-underline-offset: 2px;
}
#mySidebar.wrb-nav .mentor-chat-item .wrb-chat-origin-link:focus-visible {
    outline: 2px solid var(--button-bg, #8B5CF6);
    outline-offset: 1px;
}
#mySidebar.wrb-nav .mentor-chat-item .conversation-menu-wrapper {
    margin-left: 4px !important;
}
#mySidebar.wrb-nav .mentor-chat-item .conversation-menu-btn {
    width: 24px;
    height: 28px;
    padding: 0;
    border-radius: 7px;
    color: var(--wrb-faint);
    opacity: 0;
    transition: opacity 0.15s ease, background-color 0.15s ease;
}
#mySidebar.wrb-nav .mentor-chat-item:hover .conversation-menu-btn,
#mySidebar.wrb-nav .mentor-chat-item:focus-within .conversation-menu-btn,
#mySidebar.wrb-nav .mentor-chat-item.wrb-menu-open .conversation-menu-btn {
    opacity: 1;
}
#mySidebar.wrb-nav .mentor-chat-item .conversation-menu-btn:hover,
#mySidebar.wrb-nav .mentor-chat-item.wrb-menu-open .conversation-menu-btn {
    background-color: var(--wrb-nav-on);
    color: var(--wrb-title);
}
@media (hover: none) {
    #mySidebar.wrb-nav .mentor-chat-item .conversation-menu-btn { opacity: 0.7; }
}
#mySidebar.wrb-nav .mentor-chat-item [role="button"]:focus-visible {
    outline-offset: -2px;
    border-radius: 8px;
}

/* the ⋮ menu (moved to <body> by sidebar.js while open) */
.conversation-dropdown.wrb-chat-menu {
    width: auto !important;
    min-width: 11rem;
    padding: 5px;
    border-radius: 11px !important;
    background: var(--wrb-raise) !important;
    border-color: var(--wrb-line) !important;
    box-shadow: var(--wrb-shadow) !important;
}
.conversation-dropdown.wrb-chat-menu .conversation-dropdown-item {
    white-space: nowrap;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13.5px;
    gap: 9px;
}
.conversation-dropdown.wrb-chat-menu .conversation-dropdown-item svg {
    width: 15px;
    height: 15px;
}

/* ---- 7. The pinned footer: Give Feedback + the profile row, one block ---------- */
/* Always visible while the lists scroll above it (CEO 2026-10-05, "pin Give
   Feedback" + "footer hairline"). .wrb-footer holds both rows in normal flow
   and sticks to the sidebar's bottom edge as one block, so Give Feedback sits
   on top of the profile row whatever that row measures. It does not measure
   the same everywhere: main.css sizes the avatar 40px with no button padding
   on /app only, 32px + 4.8px padding everywhere else (54px vs 55.6px), and a
   fixed 54px offset covered Give Feedback's bottom border on every other
   page (CEO 2026-10-07). ONE hairline, always, above Give Feedback; none
   between it and the profile row; no fade over the rows. The line is the
   sidebar's divider token, --wrb-line, which the logo row's divider uses
   too under the flag (production's --sidebar-border keeps its dark value in
   every theme, html stays .dark, so its lines vanish on a light sidebar). */
#mySidebar.wrb-nav .wrb-footer {
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin-top: auto;
    border-top: 1px solid var(--wrb-line);
    background: var(--sidebar-bg);
}
#mySidebar.wrb-nav .wrb-feedback-row {
    /* nothing below the button: the profile row's own 6px top padding is the
       whole gap, so the two read as one unit (CEO 2026-10-06 "tighten") */
    padding: 8px 12px 0;
}
/* Production's row is position: fixed at the viewport's bottom; inside the
   footer it is an ordinary block under Give Feedback. Its menu stays fixed,
   so it still opens above the row and is not clipped by the scrolling
   sidebar (the collapsed rail's menu is wider than the rail). */
#mySidebar.wrb-nav .sidebar-profile,
#mySidebar.wrb-nav.collapsed .sidebar-profile {
    position: relative;
    width: auto;
    padding-top: 6px;
    border-top: 0;
    box-shadow: none;
}
#mySidebar.wrb-nav .sidebar-profile .profile-dropdown {
    position: fixed;
    /* main.css sizes the menu as min-width: 95% of its containing block. Fixed,
       that block is the viewport, so the menu spanned the whole window
       (CEO 2026-10-07, after #1773). Keep the width it had when the row was a
       240px fixed box: 95% of 240px, and never wider than a phone screen. */
    min-width: 0;
    width: min(228px, calc(100vw - 12px));
    left: 6px;
    right: auto;
    margin-left: 0;
}
/* Phone drawer: modern-sidebar.css slides it in with translateX(0), and any
   transform makes the sidebar the containing block of the position:fixed
   profile row, which then scrolled up into the journal list when the whole
   sidebar scrolls (design review 2026-10-07, P0). none keeps the slide-in
   transition (it interpolates from -100%) and pins the row to the viewport. */
@media (max-width: 768px) {
    #mySidebar.wrb-nav.open {
        transform: none;
    }
}
#mySidebar.wrb-nav .wrb-feedback-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    height: 34px;
    padding: 0 13px 0 11px;
    border: 1px solid var(--wrb-line) !important;
    border-radius: 10px;
    background: transparent;
    color: var(--wrb-text);
    font-size: 13.5px;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
#mySidebar.wrb-nav .wrb-feedback-button .feedback-icon {
    width: 16px;
    height: 16px;
    margin-right: 0;
    color: var(--wrb-muted);
    transition: color 0.15s ease;
}
#mySidebar.wrb-nav .wrb-feedback-button .feedback-text {
    font-size: 13.5px;
    overflow: hidden;
    text-overflow: ellipsis;
}
#mySidebar.wrb-nav .wrb-feedback-button:hover {
    background-color: var(--wrb-hover);
    border-color: color-mix(in srgb, var(--wrb-ring) 45%, var(--wrb-line)) !important;
    color: var(--wrb-title);
}
#mySidebar.wrb-nav #giveFeedbackBtn.wrb-feedback-button:hover,
#mySidebar.wrb-nav #giveFeedbackBtn.wrb-feedback-button:hover span {
    color: var(--wrb-title);
}
#mySidebar.wrb-nav #giveFeedbackBtn.wrb-feedback-button:hover svg {
    color: var(--wrb-accent);
    stroke: var(--wrb-accent);
}
#mySidebar.wrb-nav #giveFeedbackBtn.wrb-feedback-button:focus-visible {
    outline: 2px solid var(--wrb-ring) !important;
    outline-offset: 2px;
}

/* ---- 8. "Show more" / "All entries" / "All chats" under a list ------------------ */
#mySidebar.wrb-nav .wrb-list-more {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 14px;
    margin: 2px 8px 0 0;
    padding: 0 10px 0 15px;
    text-align: left;
}
#mySidebar.wrb-nav .wrb-list-more[hidden],
#mySidebar.wrb-nav .wrb-list-more [hidden] {
    display: none;
}
#mySidebar.wrb-nav .wrb-list-more-btn,
#mySidebar.wrb-nav .wrb-list-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 6px;
    margin-left: -6px;
    border: none;
    border-radius: 7px;
    background: transparent;
    /* main.css sizes every <a> 1.5em in Avenir Next */
    font: inherit;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1;
    color: var(--wrb-muted);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}
#mySidebar.wrb-nav .wrb-list-all {
    margin-left: 0;
}
#mySidebar.wrb-nav .wrb-list-more-btn:hover,
#mySidebar.wrb-nav .wrb-list-all:hover {
    background-color: var(--wrb-hover);
    color: var(--wrb-title);
}
#mySidebar.wrb-nav .wrb-list-more-btn[aria-busy="true"] {
    cursor: progress;
    opacity: 0.6;
}
#mySidebar.wrb-nav .wrb-list-all-arrow {
    font-size: 12px;
    opacity: 0.75;
}

/* ---- the All chats dialog (top layer; tokens come from body.<theme>) ------------- */
.wrb-allchats {
    /* main.css zeroes every margin; a modal dialog centres with auto ones */
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(560px, calc(100vw - 32px));
    height: fit-content;
    max-height: min(680px, 82vh);
    padding: 0;
    border: 1px solid var(--wrb-line);
    border-radius: 16px;
    background: var(--wrb-raise);
    color: var(--wrb-text);
    box-shadow: var(--wrb-shadow);
    overflow: hidden;
}
.wrb-allchats[open] {
    display: flex;
    flex-direction: column;
}
.wrb-allchats::backdrop {
    background: rgba(12, 10, 18, 0.5);
}
.wrb-allchats-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 16px 12px 22px;
    border-bottom: 1px solid var(--wrb-line);
}
.wrb-allchats-title {
    margin: 0;
    font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--wrb-title);
}
.wrb-allchats-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--wrb-muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.wrb-allchats-close:hover {
    background: var(--wrb-hover);
    color: var(--wrb-title);
}
.wrb-allchats-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 8px 10px 14px;
}
.wrb-allchats-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.wrb-allchats-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 8px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.wrb-allchats-row:hover {
    background: var(--wrb-hover);
}
.wrb-allchats-avatar {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--wrb-tile);
}
.wrb-allchats-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}
.wrb-allchats-name,
.wrb-allchats-context {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wrb-allchats-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--wrb-title);
}
.wrb-allchats-context {
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--wrb-muted);
}
.wrb-allchats-date {
    flex: none;
    font-size: 12px;
    color: var(--wrb-faint);
    font-variant-numeric: tabular-nums;
}
.wrb-allchats-status {
    margin: 18px 12px;
    font-size: 13.5px;
    color: var(--wrb-muted);
}
.wrb-allchats-status[hidden],
.wrb-allchats-more[hidden] {
    display: none;
}
.wrb-allchats-more {
    display: block;
    margin: 6px 0 0 6px;
    height: 32px;
    padding: 0 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--wrb-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}
.wrb-allchats-more:hover {
    background: var(--wrb-hover);
    color: var(--wrb-title);
}
.wrb-allchats-more[aria-busy="true"] {
    cursor: progress;
    opacity: 0.6;
}
/* main.css strips every button's focus outline with !important */
.wrb-allchats button:focus-visible {
    outline: 2px solid var(--wrb-ring) !important;
    outline-offset: -2px;
}

/* ---- collapsed sidebar (Ctrl+B) -------------------------------------------------- */
#mySidebar.wrb-nav.collapsed .wrb-search-wrap {
    padding: 12px 10px 0;
}
#mySidebar.wrb-nav.collapsed .wrb-search-field {
    justify-content: center;
    padding: 0;
    gap: 0;
}
#mySidebar.wrb-nav.collapsed .wrb-search-placeholder,
#mySidebar.wrb-nav.collapsed .wrb-search-kbd,
#mySidebar.wrb-nav.collapsed .wrb-council,
#mySidebar.wrb-nav.collapsed .wrb-list-more {
    display: none;
}
#mySidebar.wrb-nav.collapsed .wrb-search-wrap + .sidebar-section {
    margin-top: 0;
    padding: 8px 6px 0;
}
#mySidebar.wrb-nav.collapsed .sidebar-nav-item {
    justify-content: center;
    padding: 0;
}
#mySidebar.wrb-nav.collapsed .sidebar-nav-text {
    display: none;
}
#mySidebar.wrb-nav.collapsed .sidebar-nav-icon {
    margin-right: 0;
}
#mySidebar.wrb-nav.collapsed .wrb-feedback-row {
    padding: 8px 10px 0;
}
#mySidebar.wrb-nav.collapsed .wrb-feedback-button {
    justify-content: center;
    width: 38px;
    padding: 0;
}
#mySidebar.wrb-nav.collapsed .wrb-feedback-button .feedback-text {
    display: none;
}

/* ---- Today ---------------------------------------------------------------------- */
/* Wisdom leaves grid-1 for its own row (home.js applyTodayOrderV2), so Inner
   weather is alone in its row and takes the grid's only-child full span: the
   orbs sit beside the legend, timeline below (CEO feedback 2026-10-06 item 6).
   A half-width cell left ~280px, which stacked the orbs above the legend. */

/* ---- global search: GO TO group ------------------------------------------------- */
#global-search-modal .wrb-goto {
    padding: 6px 8px 10px;
    border-top: 1px solid var(--card-border);
    text-align: left;
}
#global-search-modal .wrb-goto-title {
    margin: 10px 12px 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
#global-search-modal .wrb-goto-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    outline: none;
}
#global-search-modal .wrb-goto-row:hover,
#global-search-modal .wrb-goto-row:focus-visible {
    background: color-mix(in srgb, var(--button-bg, #8B5CF6) 10%, transparent);
}
#global-search-modal .wrb-goto-row:focus-visible {
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--button-bg, #8B5CF6) 55%, transparent);
}
#global-search-modal .wrb-goto-icon {
    width: 18px;
    height: 18px;
    flex: none;
}
#global-search-modal .wrb-goto-label {
    flex: 1;
    min-width: 0;
}
#global-search-modal .wrb-goto-hint {
    flex: none;
    font-size: 12px;
}

/* ---- Today: the Thought's "why" line upright (no italics; mockup draws it
   upright — decisions.md 2026-10-02 italics removal). Flag-only file. ------- */
#todays-prompt-section .prompt-reason {
    font-style: normal;
}

/* Chat page (web_chat_page): the active chat's row, a chat being answered, a
   chat just answered. Rows get these classes only on the chat page flag. */
#mySidebar.wrb-nav .mentor-chat-item.wrb-chat-current,
.wrb-allchats-row.wrb-chat-current {
    background-color: var(--wrb-nav-on);
}
#mySidebar.wrb-nav .mentor-chat-item.wrb-chat-writing > :first-child {
    position: relative;
}
#mySidebar.wrb-nav .mentor-chat-item .wrb-chat-presence {
    position: absolute;
    top: -1px;
    left: 23px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgb(var(--presence-warm-rgb, 240, 180, 87));
    box-shadow: 0 0 0 2px var(--sidebar-bg, #fff), 0 0 8px 2px rgba(var(--presence-warm-rgb, 240, 180, 87), 0.45);
    animation: chat-presence-pulse 1.6s ease-in-out infinite;
}
#mySidebar.wrb-nav .mentor-chat-item .recent-item-text.wrb-chat-reply-line.opacity-60 {
    color: var(--wrb-accent) !important;
}
#mySidebar.wrb-nav .mentor-chat-item.wrb-chat-replied .recent-item-text.font-medium {
    font-weight: 650;
}
#mySidebar.wrb-nav .mentor-chat-item .wrb-chat-unread-dot {
    flex: none;
    width: 8px;
    height: 8px;
    margin-left: 6px;
    border-radius: 50%;
    background: var(--wrb-accent);
}
@media (prefers-reduced-motion: reduce) {
    #mySidebar.wrb-nav .mentor-chat-item .wrb-chat-presence { animation: none; opacity: 1; }
}
