:root {
    color-scheme: dark;
    --b2-bg: #070a12;
    --b2-panel: rgba(18, 24, 40, .78);
    --b2-panel-strong: #121827;
    --b2-panel-soft: rgba(255, 255, 255, .055);
    --b2-line: rgba(255, 255, 255, .11);
    --b2-line-strong: rgba(255, 255, 255, .2);
    --b2-text: #f6f7fb;
    --b2-muted: #a8b0c3;
    --b2-faint: #737d94;
    --b2-blue: #7b8dff;
    --b2-violet: #b789ff;
    --b2-cyan: #68e0d1;
    --b2-coral: #ff8c9f;
    --b2-gold: #f5ca78;
    --b2-radius-lg: 30px;
    --b2-radius-md: 21px;
    --b2-radius-sm: 14px;
    --b2-shadow: 0 24px 80px rgba(0, 0, 0, .28);
    --b2-max: 1480px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.b2-body {
    margin: 0;
    min-width: 320px;
    color: var(--b2-text);
    background:
        radial-gradient(circle at 12% 0%, rgba(123, 141, 255, .16), transparent 34rem),
        radial-gradient(circle at 92% 18%, rgba(104, 224, 209, .1), transparent 32rem),
        var(--b2-bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.b2-orb {
    position: fixed;
    width: 34rem;
    height: 34rem;
    border-radius: 999px;
    filter: blur(90px);
    pointer-events: none;
    opacity: .11;
    z-index: -1;
}
.b2-orb-one { top: 18rem; left: -19rem; background: var(--b2-violet); }
.b2-orb-two { top: 48rem; right: -22rem; background: var(--b2-cyan); }

.b2-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, .075);
    background: rgba(7, 10, 18, .76);
    backdrop-filter: blur(22px) saturate(150%);
}
.b2-topbar-inner {
    max-width: var(--b2-max);
    min-height: 76px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.b2-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.b2-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 8px 22px rgba(123, 141, 255, .25));
}
.b2-brand span { display: grid; line-height: 1.08; }
.b2-brand strong { font-size: 1.08rem; letter-spacing: .01em; }
.b2-brand small { margin-top: 5px; color: var(--b2-faint); font-size: .72rem; }
.b2-top-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}
.b2-top-links > a {
    padding: 10px 13px;
    border-radius: 999px;
    color: var(--b2-muted);
    text-decoration: none;
    font-size: .86rem;
    transition: .2s ease;
}
.b2-top-links > a:hover { color: var(--b2-text); background: var(--b2-panel-soft); }
.b2-top-links .b2-top-cta { color: #091019; background: var(--b2-cyan); font-weight: 750; }
.b2-top-links .b2-top-cta:hover { color: #091019; background: #8cecdf; }
.b2-avatar-link { gap: 8px; display: inline-flex; align-items: center; }
.b2-avatar-link > span {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--b2-blue), var(--b2-violet));
    font-size: .72rem;
    font-weight: 900;
}

.b2-shell {
    width: min(var(--b2-max), calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0 90px;
}
.b2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    color: var(--b2-cyan);
    font-size: .73rem;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.b2-eyebrow::before {
    content: "";
    width: 18px;
    height: 1px;
    background: currentColor;
}
.b2-page-head h1 {
    max-width: 900px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: .98;
}
.b2-library-tools {
    margin: 0 0 50px;
    padding: 0 2px 24px;
    border-bottom: 1px solid var(--b2-line);
    display: grid;
    grid-template-columns: minmax(320px, 1fr) auto;
    align-items: center;
    gap: 22px;
}
.b2-search {
    width: min(680px, 100%);
    margin: 0;
    padding: 4px 4px 4px 0;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--b2-line-strong);
    background: transparent;
}
.b2-search input {
    width: 100%;
    min-width: 0;
    padding: 12px 3px;
    border: 0;
    outline: 0;
    color: var(--b2-text);
    background: transparent;
}
.b2-search input::placeholder { color: #7f899e; }
.b2-search button {
    border: 0;
    border-radius: 9px;
    padding: 10px 17px;
    color: #dffcf8;
    background: rgba(104, 224, 209, .11);
    font-weight: 800;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}
.b2-search button:hover {
    color: #fff;
    background: rgba(104, 224, 209, .2);
}
.b2-button {
    border: 0;
    border-radius: 13px;
    padding: 13px 20px;
    color: #090d17;
    background: linear-gradient(135deg, #89eee1, #7b8dff);
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, filter .2s ease;
}
.b2-button:hover { transform: translateY(-1px); filter: brightness(1.07); }
.b2-button-secondary { color: var(--b2-text); background: var(--b2-panel-soft); border: 1px solid var(--b2-line); }
.b2-intents {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px 18px;
}
.b2-intents a {
    padding: 7px 0;
    border-bottom: 1px solid transparent;
    color: var(--b2-muted);
    text-decoration: none;
    font-size: .79rem;
    font-weight: 700;
    transition: color .2s ease, border-color .2s ease;
}
.b2-intents a:hover {
    color: #fff;
    border-color: var(--b2-cyan);
}
.b2-signal-chips a {
    padding: 8px 12px;
    border: 1px solid var(--b2-line);
    border-radius: 999px;
    color: var(--b2-muted);
    text-decoration: none;
    font-size: .8rem;
    transition: .2s ease;
}
.b2-signal-chips a:hover { color: #fff; border-color: rgba(104, 224, 209, .5); background: rgba(104, 224, 209, .08); }

.b2-tabs {
    position: sticky;
    top: 76px;
    z-index: 40;
    margin: 0 0 24px;
    padding: 8px;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    border: 1px solid var(--b2-line);
    border-radius: 16px;
    background: rgba(10, 14, 25, .82);
    backdrop-filter: blur(18px);
    scrollbar-width: none;
}
.b2-tabs::-webkit-scrollbar { display: none; }
.b2-tab {
    min-width: 145px;
    padding: 11px 15px;
    border-radius: 14px;
    display: grid;
    text-decoration: none;
    color: var(--b2-muted);
    transition: .2s ease;
}
.b2-tab strong { color: inherit; font-size: .9rem; }
.b2-tab span { margin-top: 2px; color: var(--b2-faint); font-size: .68rem; }
.b2-tab:hover { color: #fff; background: var(--b2-panel-soft); }
.b2-tab.is-active {
    color: #fff;
    background: linear-gradient(135deg, rgba(123, 141, 255, .26), rgba(104, 224, 209, .13));
    box-shadow: inset 0 0 0 1px rgba(123, 141, 255, .27);
}
.b2-tab.is-active span { color: #b9c3dc; }

.b2-page-head {
    margin: 0 0 30px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
}
.b2-section-head h2, .b2-community-panel h2 {
    max-width: 850px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3.5vw, 4rem);
    font-weight: 500;
    letter-spacing: -.04em;
    line-height: 1.03;
}
.b2-home-signin { margin: 0 0 44px; }
.b2-signin-card {
    width: min(430px, 100%);
    padding: 20px;
    border: 1px solid var(--b2-line);
    border-radius: var(--b2-radius-md);
    background: var(--b2-panel-soft);
}
.b2-signin-card strong { font-size: 1rem; }
.b2-signin-card p { margin: 6px 0 14px; color: var(--b2-muted); font-size: .84rem; }
.b2-signin-card > div { display: flex; flex-wrap: wrap; gap: 8px; }
.b2-signin-card .b2-button { padding: 10px 15px; font-size: .8rem; }

.b2-section, .b2-session-preview { margin: 0 0 72px; }
.b2-section-head {
    margin-bottom: 21px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}
.b2-section-head h2 { font-size: clamp(1.8rem, 3vw, 3.1rem); }
.b2-section-head p {
    max-width: 720px;
    margin: 9px 0 0;
    color: var(--b2-muted);
}
.b2-section-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.b2-text-link { color: #cbd2e4; text-decoration: none; font-size: .82rem; font-weight: 750; }
.b2-text-link:hover { color: var(--b2-cyan); }
.b2-rail-button {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--b2-line);
    border-radius: 50%;
    color: var(--b2-text);
    background: var(--b2-panel-soft);
    cursor: pointer;
}
.b2-rail-button:hover { border-color: rgba(123, 141, 255, .45); background: rgba(123, 141, 255, .12); }
.b2-book-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 250px);
    gap: 15px;
    overflow-x: auto;
    padding: 3px 3px 18px;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(123, 141, 255, .3) transparent;
}
.b2-book-card {
    position: relative;
    min-width: 0;
    padding: 9px;
    border: 1px solid var(--b2-line);
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--b2-text);
    background: linear-gradient(180deg, rgba(22, 28, 45, .94), rgba(13, 18, 31, .97));
    box-shadow: 0 18px 45px rgba(0, 0, 0, .16);
    text-decoration: none;
    scroll-snap-align: start;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.b2-book-card:hover {
    transform: translateY(-5px);
    border-color: rgba(123, 141, 255, .42);
    box-shadow: 0 25px 56px rgba(0, 0, 0, .3);
}
.b2-book-cover-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4.1;
    border-radius: 15px;
    overflow: hidden;
    background: #151a27;
}
.b2-book-cover {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}
.b2-book-card:hover .b2-book-cover { transform: scale(1.025); }
.b2-book-intent, .b2-book-time {
    position: absolute;
    top: 10px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    color: #fff;
    background: rgba(5, 8, 15, .76);
    backdrop-filter: blur(10px);
    font-size: .65rem;
    font-weight: 850;
}
.b2-book-intent { left: 10px; }
.b2-book-time { right: 10px; }
.b2-book-card.is-reading .b2-book-intent { background: rgba(104, 224, 209, .88); color: #07120f; }
.b2-book-card.is-buy .b2-book-intent { background: rgba(245, 202, 120, .9); color: #1c1304; }
.b2-book-card.is-hybrid .b2-book-intent { background: rgba(183, 137, 255, .88); color: #12091d; }
.b2-book-card.is-read .b2-book-intent { background: rgba(123, 141, 255, .9); color: #070a17; }
.b2-book-copy { min-height: 235px; padding: 15px 8px 9px; display: flex; flex-direction: column; }
.b2-book-genre { color: var(--b2-cyan); font-size: .65rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.b2-book-title {
    margin-top: 8px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.28rem;
    line-height: 1.05;
    letter-spacing: -.02em;
}
.b2-book-author { margin-top: 7px; color: var(--b2-muted); font-size: .76rem; }
.b2-book-tagline, .b2-book-reason {
    margin-top: 12px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: #aeb7cb;
    font-size: .76rem;
    line-height: 1.45;
}
.b2-book-reason {
    padding: 8px 9px;
    border-radius: 10px;
    color: #c8d0ff;
    background: rgba(123, 141, 255, .08);
    -webkit-line-clamp: 2;
}
.b2-book-meta {
    margin-top: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--b2-faint);
    font-size: .65rem;
}
.b2-book-meta span + span::before { content: "•"; margin-right: 7px; }
.b2-book-cta {
    margin-top: auto;
    padding-top: 15px;
    color: #dce0ee;
    font-size: .74rem;
    font-weight: 800;
}
.b2-book-cta span { color: var(--b2-cyan); }

.b2-session-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.b2-session-grid-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.b2-session-card {
    position: relative;
    min-height: 220px;
    padding: 23px;
    border: 1px solid var(--b2-line);
    border-radius: var(--b2-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--session-accent) 28%, transparent), transparent 65%),
        var(--b2-panel);
    transition: transform .22s ease, border-color .22s ease;
}
.b2-session-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--session-accent);
    box-shadow: 0 0 22px var(--session-accent);
}
.b2-session-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--session-accent) 55%, transparent); }
.b2-session-card > span { color: var(--session-accent); font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.b2-session-card strong { margin-top: auto; font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; font-weight: 500; }
.b2-session-card p { margin: 8px 0 16px; color: var(--b2-muted); font-size: .8rem; }
.b2-session-card small { color: #dbe0ec; font-weight: 750; }

.b2-community-grid {
    margin-bottom: 72px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.b2-community-panel {
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid var(--b2-line);
    border-radius: var(--b2-radius-lg);
    background: var(--b2-panel);
}
.b2-community-panel h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
.b2-list-stack, .b2-review-stack { margin-top: 24px; display: grid; gap: 9px; }
.b2-list-stack a, .b2-review-stack a {
    padding: 15px;
    border-radius: 14px;
    display: grid;
    text-decoration: none;
    background: rgba(255, 255, 255, .045);
    transition: .2s ease;
}
.b2-list-stack a:hover, .b2-review-stack a:hover { background: rgba(123, 141, 255, .1); }
.b2-list-stack span { color: var(--b2-cyan); font-size: .68rem; text-transform: uppercase; }
.b2-list-stack strong, .b2-review-stack strong { margin-top: 4px; }
.b2-list-stack small, .b2-review-stack small { margin-top: 4px; color: var(--b2-faint); }
.b2-review-stack p { margin: 7px 0 0; color: var(--b2-muted); font-size: .8rem; }

.b2-page-head { align-items: start; }
.b2-page-head h1 {
    font-size: clamp(2rem, 3.2vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: -.035em;
}
.b2-page-head > div > p, .b2-page-head > p {
    max-width: 800px;
    margin: 11px 0 0;
    color: var(--b2-muted);
    font-size: .9rem;
}
.b2-page-head-split { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.b2-signal-chips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.b2-book-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}
.b2-book-grid .b2-book-card { min-width: 0; }
.b2-adult-gate, .b2-author-principle {
    width: min(300px, 100%);
    padding: 21px;
    border: 1px solid rgba(239, 71, 111, .32);
    border-radius: var(--b2-radius-md);
    display: grid;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(239, 71, 111, .12), rgba(183, 137, 255, .08));
}
.b2-adult-gate span { color: var(--b2-coral); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; }
.b2-adult-gate strong { margin-top: 7px; }
.b2-public-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.b2-public-list-grid a {
    min-height: 210px;
    padding: 22px;
    border: 1px solid var(--b2-line);
    border-radius: var(--b2-radius-md);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: var(--b2-panel);
    transition: .2s ease;
}
.b2-public-list-grid a:hover { transform: translateY(-3px); border-color: rgba(123, 141, 255, .4); }
.b2-public-list-grid span { color: var(--b2-cyan); font-size: .7rem; text-transform: uppercase; }
.b2-public-list-grid strong { margin-top: auto; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; }
.b2-public-list-grid p { margin: 8px 0 14px; color: var(--b2-muted); font-size: .8rem; }
.b2-public-list-grid small { color: #d7dced; }

.b2-filter-panel {
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--b2-line);
    border-radius: var(--b2-radius-md);
    display: grid;
    grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(150px, .8fr)) auto auto;
    align-items: end;
    gap: 10px;
    background: var(--b2-panel);
}
.b2-filter-panel label { display: grid; gap: 7px; }
.b2-filter-panel label > span { color: var(--b2-faint); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.b2-filter-panel input, .b2-filter-panel select,
.b2-form-input, .b2-form-select, .b2-form-textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--b2-line);
    border-radius: 12px;
    outline: 0;
    color: var(--b2-text);
    background: rgba(6, 9, 17, .64);
}
.b2-filter-panel input:focus, .b2-filter-panel select:focus,
.b2-form-input:focus, .b2-form-select:focus, .b2-form-textarea:focus {
    border-color: rgba(104, 224, 209, .54);
    box-shadow: 0 0 0 3px rgba(104, 224, 209, .08);
}
.b2-filter-panel .b2-button { min-height: 48px; }
.b2-filter-clear { align-self: center; padding: 10px; color: var(--b2-muted); text-decoration: none; font-size: .8rem; }
.b2-catalog-total { min-width: 190px; padding: 20px; border: 1px solid var(--b2-line); border-radius: var(--b2-radius-md); background: var(--b2-panel); }
.b2-catalog-total strong { display: block; font-size: 2rem; }
.b2-catalog-total span { color: var(--b2-muted); font-size: .74rem; }
.b2-pagination {
    margin-top: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.b2-pagination a, .b2-pagination span { padding: 11px 15px; border: 1px solid var(--b2-line); border-radius: 999px; text-decoration: none; font-size: .78rem; }
.b2-pagination a[aria-disabled="true"] { pointer-events: none; opacity: .35; }
.b2-pagination span { color: var(--b2-muted); border-color: transparent; }
.b2-empty {
    min-height: 340px;
    padding: 40px;
    border: 1px dashed var(--b2-line-strong);
    border-radius: var(--b2-radius-lg);
    display: grid;
    place-content: center;
    justify-items: center;
    text-align: center;
    background: var(--b2-panel-soft);
}
.b2-empty strong { font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.b2-empty p { max-width: 610px; margin: 11px 0 22px; color: var(--b2-muted); }

.b2-author-head { align-items: stretch; }
.b2-author-principle { border-color: rgba(104, 224, 209, .28); background: linear-gradient(135deg, rgba(104, 224, 209, .1), rgba(123, 141, 255, .08)); }
.b2-author-principle strong { margin-top: auto; font-family: Georgia, serif; font-size: 1.6rem; font-weight: 500; }
.b2-author-principle span { margin-top: 9px; color: var(--b2-muted); font-size: .78rem; }
.b2-author-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.b2-author-book {
    min-height: 285px;
    padding: 14px;
    border: 1px solid var(--b2-line);
    border-radius: var(--b2-radius-md);
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 22px;
    background: var(--b2-panel);
}
.b2-author-book > img { width: 160px; height: 225px; border-radius: 13px; object-fit: cover; }
.b2-author-book > div { display: flex; flex-direction: column; align-items: flex-start; }
.b2-profile-status { padding: 6px 9px; border-radius: 999px; color: var(--b2-gold); background: rgba(245, 202, 120, .1); font-size: .65rem; font-weight: 800; }
.b2-profile-status.is-ready { color: var(--b2-cyan); background: rgba(104, 224, 209, .09); }
.b2-author-book h2 { margin: 13px 0 0; font-family: Georgia, serif; font-size: 1.65rem; font-weight: 500; line-height: 1.05; }
.b2-author-book p { margin: 9px 0 0; color: var(--b2-muted); font-size: .8rem; }
.b2-author-metrics { margin: 14px 0 18px; display: flex; flex-wrap: wrap; gap: 7px; color: var(--b2-faint); font-size: .68rem; }
.b2-author-metrics span + span::before { content: "•"; margin-right: 7px; }
.b2-author-book .b2-button { margin-top: auto; padding: 10px 14px; font-size: .76rem; }

.b2-footer {
    width: min(var(--b2-max), calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 45px;
    border-top: 1px solid var(--b2-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--b2-faint);
}
.b2-footer > div { display: grid; }
.b2-footer strong { color: var(--b2-text); }
.b2-footer span { margin-top: 4px; font-size: .75rem; }
.b2-footer nav { display: flex; flex-wrap: wrap; gap: 17px; }
.b2-footer a { color: var(--b2-muted); text-decoration: none; font-size: .78rem; }
.b2-footer a:hover { color: #fff; }

/* Author configuration */
.b2-config-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0 100px; }
.b2-config-head {
    margin-bottom: 28px;
    padding: 25px;
    border: 1px solid var(--b2-line);
    border-radius: var(--b2-radius-lg);
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    background: var(--b2-panel);
}
.b2-config-head img { width: 120px; height: 168px; border-radius: 14px; object-fit: cover; }
.b2-config-head h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 4rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.b2-config-head p { margin: 9px 0 0; color: var(--b2-muted); }
.b2-config-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.b2-config-form { display: grid; gap: 16px; }
.b2-form-section { padding: 26px; border: 1px solid var(--b2-line); border-radius: var(--b2-radius-md); background: var(--b2-panel); }
.b2-form-section h2 { margin: 0; font-family: Georgia, serif; font-size: 1.7rem; font-weight: 500; }
.b2-form-section > p { margin: 7px 0 22px; color: var(--b2-muted); font-size: .82rem; }
.b2-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.b2-form-field { display: grid; gap: 7px; }
.b2-form-field.is-full { grid-column: 1 / -1; }
.b2-form-field > span { color: #cbd2e3; font-size: .75rem; font-weight: 800; }
.b2-form-field small { color: var(--b2-faint); }
.b2-form-textarea { min-height: 112px; resize: vertical; }
.b2-choice-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.b2-choice {
    position: relative;
    cursor: pointer;
}
.b2-choice input { position: absolute; opacity: 0; pointer-events: none; }
.b2-choice span { display: block; padding: 9px 12px; border: 1px solid var(--b2-line); border-radius: 999px; color: var(--b2-muted); font-size: .75rem; }
.b2-choice input:checked + span { color: #fff; border-color: rgba(104, 224, 209, .5); background: rgba(104, 224, 209, .1); }
.b2-switch-row { display: grid; gap: 10px; }
.b2-switch {
    padding: 14px;
    border: 1px solid var(--b2-line);
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.b2-switch input { width: 20px; height: 20px; accent-color: var(--b2-cyan); }
.b2-switch span { display: grid; }
.b2-switch small { color: var(--b2-faint); }
.b2-config-aside { position: sticky; top: 98px; display: grid; gap: 14px; }
.b2-config-note, .b2-save-card { padding: 21px; border: 1px solid var(--b2-line); border-radius: var(--b2-radius-md); background: var(--b2-panel); }
.b2-config-note strong, .b2-save-card strong { display: block; }
.b2-config-note p, .b2-save-card p { margin: 7px 0 0; color: var(--b2-muted); font-size: .8rem; }
.b2-save-card .b2-button { width: 100%; margin-top: 16px; }
.b2-alert { margin-bottom: 16px; padding: 14px 17px; border: 1px solid rgba(104, 224, 209, .32); border-radius: 14px; color: #baf9f1; background: rgba(104, 224, 209, .08); }
.b2-alert.is-error { border-color: rgba(255, 140, 159, .35); color: #ffc1cb; background: rgba(255, 140, 159, .08); }
.b2-alert ul { margin: 6px 0 0; padding-left: 19px; }

@media (max-width: 1180px) {
    .b2-book-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .b2-session-grid, .b2-session-grid-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .b2-filter-panel { grid-template-columns: 1fr 1fr 1fr; }
    .b2-filter-panel label:first-of-type { grid-column: span 2; }
}

@media (max-width: 900px) {
    .b2-top-links > a:not(.b2-avatar-link):not(.b2-top-cta) { display: none; }
    .b2-shell { width: min(100% - 24px, var(--b2-max)); padding-top: 18px; }
    .b2-tabs { top: 72px; }
    .b2-library-tools { grid-template-columns: 1fr; align-items: start; gap: 14px; margin-bottom: 42px; }
    .b2-search { width: 100%; }
    .b2-intents { justify-content: flex-start; }
    .b2-page-head { display: grid; align-items: start; }
    .b2-section-head { align-items: start; }
    .b2-section-actions .b2-text-link { display: none; }
    .b2-session-grid, .b2-session-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .b2-book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .b2-community-grid { grid-template-columns: 1fr; }
    .b2-public-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .b2-filter-panel { grid-template-columns: 1fr 1fr; }
    .b2-filter-panel label:first-of-type { grid-column: 1 / -1; }
    .b2-author-grid { grid-template-columns: 1fr; }
    .b2-config-layout { grid-template-columns: 1fr; }
    .b2-config-aside { position: static; grid-row: 1; }
}

@media (max-width: 640px) {
    .b2-topbar-inner { min-height: 68px; padding: 0 14px; }
    .b2-brand img { width: 38px; height: 38px; }
    .b2-brand small { display: none; }
    .b2-avatar-link { max-width: 130px; overflow: hidden; white-space: nowrap; }
    .b2-shell { width: min(100% - 16px, var(--b2-max)); padding-bottom: 62px; }
    .b2-library-tools { margin-bottom: 34px; padding-bottom: 18px; }
    .b2-search button { padding-inline: 14px; }
    .b2-intents { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
    .b2-intents a { flex: 0 0 auto; }
    .b2-tabs { top: 68px; margin: 0 0 18px; border-radius: 15px; }
    .b2-tab { min-width: 122px; padding: 9px 12px; }
    .b2-section-head h2 { font-size: 2rem; }
    .b2-section, .b2-session-preview { margin-bottom: 52px; }
    .b2-section-head { margin-bottom: 16px; }
    .b2-section-head p { font-size: .83rem; }
    .b2-rail-button { display: none; }
    .b2-book-rail { grid-auto-columns: minmax(190px, 72vw); }
    .b2-session-grid, .b2-session-grid-compact { grid-template-columns: 1fr; }
    .b2-session-card { min-height: 185px; }
    .b2-community-panel { padding: 23px; border-radius: 22px; }
    .b2-page-head h1 { font-size: 1.95rem; }
    .b2-book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .b2-book-grid .b2-book-card { padding: 6px; border-radius: 16px; }
    .b2-book-grid .b2-book-copy { min-height: 205px; padding: 12px 5px 7px; }
    .b2-book-grid .b2-book-title { font-size: 1.03rem; }
    .b2-book-grid .b2-book-tagline, .b2-book-grid .b2-book-reason { display: none; }
    .b2-public-list-grid { grid-template-columns: 1fr; }
    .b2-filter-panel { grid-template-columns: 1fr; padding: 13px; }
    .b2-filter-panel label:first-of-type { grid-column: auto; }
    .b2-catalog-total { width: 100%; }
    .b2-pagination { gap: 5px; }
    .b2-pagination a, .b2-pagination span { padding: 9px 10px; font-size: .7rem; }
    .b2-author-book { grid-template-columns: 100px minmax(0, 1fr); gap: 14px; }
    .b2-author-book > img { width: 100px; height: 145px; }
    .b2-author-book h2 { font-size: 1.3rem; }
    .b2-author-metrics { display: none; }
    .b2-footer { width: calc(100% - 24px); align-items: start; flex-direction: column; }
    .b2-config-shell { width: calc(100% - 16px); padding-top: 20px; }
    .b2-config-head { grid-template-columns: 82px minmax(0, 1fr); padding: 15px; gap: 14px; }
    .b2-config-head img { width: 82px; height: 116px; }
    .b2-config-head > a { grid-column: 1 / -1; }
    .b2-form-section { padding: 19px; }
    .b2-form-grid { grid-template-columns: 1fr; }
    .b2-form-field.is-full { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
