/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: 'Plus Jakarta Sans', 'Inter', ui-sans-serif, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --spacing: 0.25rem;
    --radius-sm: 10px;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
    --color-primary: #8B6F5A;
    --color-primary-dark: #6E5645;
    --color-accent: #E6C27A;
    --color-warm: #F7F3EE;
    --color-card: #FFFFFF;
    --color-soft: #EFE7DD;
    --color-text: #2A2A2A;
    --color-secondary: #6B6B6B;
    --color-muted: #A0A0A0;
    --color-success: #7FA37A;
    --color-danger: #C97A6B;
    --color-border: #E8E0D6;
    --radius-card: 16px;
    --radius-btn: 12px;
    --shadow-card: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-modal: 0 20px 60px rgba(0,0,0,0.15);
    --sidebar-w: 240px;
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .visible {
    visibility: visible;
  }
  .static {
    position: static;
  }
  .start {
    inset-inline-start: var(--spacing);
  }
  .start\! {
    inset-inline-start: var(--spacing) !important;
  }
  .end {
    inset-inline-end: var(--spacing);
  }
  .top-3 {
    top: calc(var(--spacing) * 3);
  }
  .container {
    width: 100%;
    @media (width >= 40rem) {
      max-width: 40rem;
    }
    @media (width >= 48rem) {
      max-width: 48rem;
    }
    @media (width >= 64rem) {
      max-width: 64rem;
    }
    @media (width >= 80rem) {
      max-width: 80rem;
    }
    @media (width >= 96rem) {
      max-width: 96rem;
    }
  }
  .block {
    display: block;
  }
  .flex {
    display: flex;
  }
  .grid {
    display: grid;
  }
  .hidden {
    display: none;
  }
  .inline-block {
    display: inline-block;
  }
  .table {
    display: table;
  }
  .flex-shrink {
    flex-shrink: 1;
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
  .flex-wrap {
    flex-wrap: wrap;
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }
}
[data-theme="dark"] {
  --color-warm: #16120E;
  --color-card: #1E1A16;
  --color-soft: #26201A;
  --color-text: #EDE8E0;
  --color-secondary: #A0957D;
  --color-muted: #6B6059;
  --color-border: #342C25;
  --color-primary: #A7896F;
}
@layer base {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
  }
  button {
    touch-action: manipulation;
  }
  body {
    font-family: var(--font-sans);
    background: var(--color-warm);
    color: var(--color-text);
    min-height: 100vh;
    font-size: 15px;
    transition: background 0.2s, color 0.2s;
    -webkit-font-smoothing: antialiased;
  }
}
@layer components {
  .screen {
    display: none;
  }
  .screen.active {
    display: flex;
  }
  #auth-screen, #username-setup-screen {
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
  }
  .auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 2.5rem;
  }
  .auth-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .auth-logo svg {
    color: var(--color-primary);
  }
  .auth-logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
  }
  .auth-logo-tagline {
    font-size: 0.85rem;
    color: var(--color-muted);
  }
  .auth-card {
    background: var(--color-card);
    border-radius: var(--radius-card);
    padding: 2rem;
    width: 100%;
    max-width: 360px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
  }
  .auth-card h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
  }
  .auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0 1rem;
  }
  .auth-divider::before, .auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #E8DFD4;
  }
  .auth-divider span {
    font-size: 0.78rem;
    color: #9ca3af;
  }
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    margin-bottom: 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-soft);
    color: var(--color-text);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.15s;
    outline: none;
  }
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus, select:focus, textarea:focus {
    border-color: var(--color-primary);
  }
  input::placeholder, textarea::placeholder {
    color: var(--color-muted);
  }
  textarea {
    resize: vertical;
    min-height: 80px;
  }
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-btn);
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.12s, transform 0.08s, box-shadow 0.08s;
  }
  .btn:hover {
    opacity: 0.88;
  }
  .btn:active {
    transform: scale(0.94);
    opacity: 0.80;
    transition: none;
    box-shadow: none;
  }
  .btn:disabled {
    opacity: 0.4;
    cursor: default;
    transform: none;
    box-shadow: none;
  }
  .btn-block {
    width: 100%;
    margin-bottom: 0.6rem;
  }
  .btn-primary {
    background: var(--color-primary);
    color: #fff;
  }
  .btn-secondary {
    background: var(--color-soft);
    color: var(--color-text);
  }
  .btn-danger {
    background: var(--color-danger);
    color: #fff;
  }
  .btn-ghost {
    background: transparent;
    color: var(--color-secondary);
    border: 1px solid var(--color-border);
  }
  .btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
  }
  .error {
    color: var(--color-danger);
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
  }
  .success {
    color: var(--color-success);
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
  }
  #app-screen {
    min-height: 100vh;
    flex-direction: row;
    align-items: stretch;
  }
  #sidebar {
    width: var(--sidebar-w);
    min-height: 100vh;
    background: var(--color-card);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    position: sticky;
    top: 0;
    flex-shrink: 0;
  }
  .sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.25rem 0.5rem;
    margin-bottom: 2rem;
  }
  .sidebar-logo svg {
    color: var(--color-primary);
    flex-shrink: 0;
  }
  .sidebar-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
  }
  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
  }
  .sidebar-group-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--color-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.75rem 0.75rem 0.25rem;
    margin-top: 0.25rem;
  }
  .tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-btn);
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, color 0.15s;
  }
  .tab-btn:hover {
    background: var(--color-soft);
    color: var(--color-text);
  }
  .tab-btn:active {
    opacity: 0.65;
    transition: none;
  }
  .tab-btn.active {
    background: #EFE7DD;
    color: var(--color-primary);
    font-weight: 600;
  }
  .tab-btn.active svg {
    color: var(--color-primary);
  }
  .tab-btn svg {
    flex-shrink: 0;
    color: #9ca3af;
    transition: color 0.15s;
  }
  .sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
  }
  .sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 4px;
  }
  .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
  }
  .user-name {
    font-size: 0.88rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .sidebar-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-btn);
    border: none;
    background: transparent;
    color: var(--color-muted);
    font-size: 0.84rem;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: background 0.15s, color 0.15s;
  }
  .sidebar-action-btn:hover {
    background: var(--color-soft);
    color: var(--color-text);
  }
  .sidebar-action-btn svg {
    flex-shrink: 0;
  }
  #logout-btn.sidebar-action-btn:hover {
    color: var(--color-danger);
  }
  .notif-badge {
    background: var(--color-danger);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    min-width: 15px;
    height: 15px;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    margin-left: auto;
  }
  .notif-badge.visible {
    display: flex;
  }
  #notif-btn-mobile {
    display: none;
    position: fixed;
    top: 10px;
    right: 12px;
    z-index: 100;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    color: var(--color-secondary);
  }
  @media (max-width: 768px) {
    #notif-btn-mobile {
      display: flex;
    }
  }
  .notif-badge-mobile {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-danger);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 14px;
    height: 14px;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
  }
  .notif-badge-mobile.visible {
    display: flex;
  }
  #notif-panel {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 300;
    align-items: flex-start;
    justify-content: flex-end;
  }
  #notif-panel.open {
    display: flex;
  }
  #notif-panel-inner {
    background: var(--color-card);
    width: 340px;
    max-width: 100vw;
    height: 100vh;
    overflow-y: auto;
    padding: 1.5rem;
    box-shadow: var(--shadow-modal);
    border-left: 1px solid var(--color-border);
  }
  #notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
  }
  #notif-panel-header h2 {
    font-size: 1rem;
    font-weight: 600;
  }
  .notif-item {
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    background: var(--color-soft);
    border: 1px solid var(--color-border);
  }
  .notif-item.unread {
    border-color: var(--color-primary);
  }
  .notif-item-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--color-primary);
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
  }
  .notif-time {
    font-size: 0.74rem;
    color: var(--color-muted);
    margin-top: 0.2rem;
  }
  .feed-filter-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  .feed-filter-btn {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-muted);
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
  }
  .feed-filter-btn:active {
    transform: scale(0.94);
    opacity: 0.78;
    transition: none;
  }
  .feed-filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
  }
  #content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }
  .tab-content {
    display: none;
    flex: 1;
    flex-direction: column;
  }
  .tab-content.active {
    display: flex;
  }
  .view-header {
    padding: 1.75rem 2rem 0;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }
  .view-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
  }
  .view-header p {
    color: var(--color-muted);
    font-size: 0.88rem;
    margin-top: 0.25rem;
  }
  .books-subnav {
    display: flex;
    gap: 0.4rem;
    padding: 0 2rem;
    margin-bottom: 1rem;
  }
  .books-sub-btn {
    padding: 0.32rem 0.9rem;
    border-radius: 999px;
    border: 1.5px solid var(--color-border);
    background: transparent;
    color: var(--color-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
  }
  .books-sub-btn:hover:not(.active) {
    border-color: var(--color-primary);
    color: var(--color-text);
  }
  .books-sub-btn:active {
    transform: scale(0.94);
    opacity: 0.78;
    transition: none;
  }
  .books-sub-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
  }
  #bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-card);
    border-top: 1px solid var(--color-border);
    padding: 0.6rem 0 max(0.6rem, env(safe-area-inset-bottom));
    z-index: 50;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.05);
  }
  #bottom-nav .tab-btn {
    flex: 1;
    flex-direction: column;
    gap: 4px;
    padding: 0.55rem 0;
    font-size: 0.68rem;
    justify-content: center;
    align-items: center;
    border-radius: 0;
    min-height: 44px;
  }
  #bottom-nav .tab-btn span {
    line-height: 1;
  }
  #bottom-nav .tab-btn.active {
    color: var(--color-primary);
    background: none;
  }
  #bottom-nav .tab-btn.active svg {
    color: var(--color-primary);
  }
  .feed-nav-icon {
    background: #EFE7DD;
    border-radius: 999px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
  }
  #bottom-nav .feed-btn.active .feed-nav-icon {
    background: color-mix(in srgb, #8B6F5A 20%, #EFE7DD);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--color-primary) 20%, #EFE7DD);
    }
  }
  #bottom-nav .feed-btn:active .feed-nav-icon {
    opacity: 0.7;
    transition: none;
  }
  #tab-swipe {
    padding: 0 2rem 2rem;
    align-items: center;
  }
  #genre-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.75rem;
    padding-top: 1.75rem;
  }
  .genre-btn {
    background: var(--color-soft);
    border: 1.5px solid var(--color-border);
    color: var(--color-muted);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.15s;
  }
  .genre-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-text);
  }
  .genre-btn:active {
    transform: scale(0.94);
    opacity: 0.80;
    transition: none;
  }
  .genre-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
  }
  #swipe-card {
    background: var(--color-card);
    border-radius: var(--radius-card);
    padding: 2rem;
    width: 100%;
    max-width: 360px;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
  }
  #book-cover {
    width: 150px;
    height: 225px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    background: var(--color-soft);
  }
  #book-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    cursor: pointer;
    line-height: 1.3;
  }
  #book-title:hover {
    color: var(--color-primary);
  }
  #book-author {
    color: var(--color-muted);
    margin-bottom: 0.85rem;
    font-size: 0.88rem;
  }
  #book-description {
    font-size: 0.84rem;
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-height: 72px;
    overflow: hidden;
  }
  .swipe-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  .swipe-btn {
    padding: 0.75rem 0.75rem;
    border-radius: var(--radius-btn);
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    min-height: 44px;
    transition: opacity 0.15s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  .swipe-btn:hover {
    opacity: 0.85;
    transform: scale(1.02);
  }
  .swipe-btn:active {
    transform: scale(0.92);
    opacity: 0.78;
    transition: none;
  }
  #dislike-btn {
    background: var(--color-soft);
    color: var(--color-secondary);
  }
  #like-btn {
    background: #2A5C3A;
    color: #7CE0A0;
  }
  #read-liked-btn {
    background: #2A3E5C;
    color: #7AB8E8;
  }
  #read-not-liked-btn {
    background: #5C2A2A;
    color: #E88A7A;
  }
  #swipe-empty {
    color: var(--color-muted);
    text-align: center;
    padding: 3rem 1rem;
  }
  #tab-search {
    padding: 0 2rem 2rem;
  }
  #search-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
  #search-bar input {
    margin-bottom: 0;
    flex: 1;
  }
  #search-results {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }
  #tab-lists {
    padding: 0;
  }
  .books-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1rem 0.5rem;
  }
  @media (min-width: 769px) {
    .books-page-header {
      padding: 1.5rem 2rem 0.5rem;
    }
  }
  .books-page-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
  }
  .streak-chip {
    background: #EFE7DD;
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 99px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 0.25rem;
  }
  .books-dashboard {
    padding: 0 1rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  @media (min-width: 769px) {
    .books-dashboard {
      padding: 0 2rem 2rem;
    }
  }
  .books-section-card {
    background: var(--color-card);
    border-radius: var(--radius-card);
    padding: 1.1rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
  }
  .books-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
  }
  .books-section-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
  }
  .books-section-icon {
    font-size: 1rem;
  }
  .reading-card {
    background: var(--color-card);
    border-radius: var(--radius-card);
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
  }
  .reading-card-row {
    display: flex;
    gap: 1rem;
  }
  .reading-card-cover {
    width: 76px;
    height: 114px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    background: var(--color-soft);
  }
  .reading-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }
  .reading-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
  }
  .reading-card-author {
    font-size: 0.82rem;
    color: var(--color-muted);
  }
  .reading-btn-row {
    display: flex;
    gap: 0.5rem;
  }
  .reading-continue-btn {
    flex: 1;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.72rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.15s;
  }
  .reading-continue-btn:hover {
    opacity: 0.88;
  }
  .reading-continue-btn:active {
    transform: scale(0.96);
    opacity: 0.88;
    transition: transform 0.1s, opacity 0.1s;
  }
  .reading-streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--color-soft);
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-top: 0.2rem;
    width: fit-content;
  }
  .reading-streak-badge .streak-best {
    opacity: 0.6;
    font-weight: 400;
  }
  .reading-progress-text {
    font-size: 0.76rem;
    color: var(--color-muted);
    margin-top: 0.3rem;
    margin-bottom: 0.25rem;
  }
  .reading-progress-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .reading-progress-bar-wrap {
    flex: 1;
    height: 6px;
    background: #E8DFD4;
    border-radius: 999px;
    overflow: hidden;
  }
  .reading-progress-bar-fill {
    height: 6px;
    background: var(--color-primary);
    border-radius: 999px;
    width: 0;
    transition: width 0.4s ease-out;
  }
  .reading-pct-label {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--color-primary);
    flex-shrink: 0;
  }
  .reading-empty {
    background: var(--color-card);
    border-radius: var(--radius-card);
    padding: 1.5rem 1.25rem;
    text-align: center;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
  }
  .reading-empty-text {
    font-size: 0.9rem;
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
  }
  .reading-start-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 0.88rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
  }
  .reading-start-btn:active {
    opacity: 0.6;
  }
  .goal-card {
    background: var(--color-warm);
    border-radius: var(--radius-card);
    padding: 1.1rem;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    overflow: hidden;
  }
  .goal-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  .goal-card-left {
    flex: 1;
    min-width: 0;
  }
  .goal-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
    margin-bottom: 0.2rem;
  }
  .goal-label {
    font-size: 0.82rem;
    color: var(--color-muted);
    margin-bottom: 0.4rem;
  }
  .goal-motivation {
    font-size: 0.82rem;
    color: var(--color-primary);
    font-weight: 500;
  }
  .goal-bar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .goal-bar-track {
    flex: 1;
    height: 5px;
    background: #E8DFD4;
    border-radius: 999px;
    overflow: hidden;
  }
  .goal-bar-fill {
    height: 5px;
    background: var(--color-primary);
    border-radius: 999px;
    width: 0;
    transition: width 0.4s ease-out;
  }
  .goal-pct-label {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--color-primary);
    flex-shrink: 0;
  }
  .goal-no-goal {
    font-size: 0.85rem;
    color: var(--color-muted);
  }
  .goal-no-goal span {
    color: var(--color-primary);
    font-weight: 500;
    cursor: pointer;
  }
  .want-to-read-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 0.15rem;
  }
  .want-to-read-item:hover {
    background: var(--color-warm);
  }
  .want-to-read-item:active {
    background: color-mix(in srgb, #8B6F5A 8%, #EFE7DD);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--color-primary) 8%, var(--color-soft));
    }
    transition: none;
  }
  .want-cover {
    width: 44px;
    height: 66px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
    background: var(--color-soft);
  }
  .want-info {
    flex: 1;
    min-width: 0;
  }
  .want-title {
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .want-author {
    font-size: 0.78rem;
    color: var(--color-muted);
    margin-top: 0.15rem;
  }
  .want-remove-btn {
    background: none;
    border: none;
    color: var(--color-muted);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 5px 7px;
    flex-shrink: 0;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
  }
  .want-remove-btn:hover {
    background: var(--color-soft);
    color: var(--color-danger);
  }
  .want-remove-btn:active {
    opacity: 0.6;
    transition: none;
  }
  .books-add-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    color: var(--color-primary);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 10px;
    border: 1.5px solid var(--color-border);
    background: none;
    font-family: inherit;
    margin-top: 0.5rem;
    transition: background 0.15s, border-color 0.15s;
  }
  .books-add-cta:hover {
    background: var(--color-warm);
    border-color: var(--color-primary);
  }
  .books-add-cta:active {
    opacity: 0.65;
    transition: none;
  }
  .finished-scroll {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }
  .finished-scroll::-webkit-scrollbar {
    display: none;
  }
  .finished-cover {
    width: 56px;
    height: 84px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: var(--color-soft);
    box-shadow: 0 2px 6px rgba(0,0,0,0.10);
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
  }
  .finished-cover:hover {
    transform: translateY(-2px);
  }
  .finished-cover:active {
    opacity: 0.72;
    transform: none;
    transition: none;
  }
  .book-row {
    background: var(--color-soft);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    cursor: pointer;
    transition: background 0.15s;
    border: 1px solid transparent;
    margin-bottom: 0.4rem;
  }
  .book-row:last-child {
    margin-bottom: 0;
  }
  .book-row:hover {
    background: color-mix(in srgb, #8B6F5A 6%, #EFE7DD);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--color-primary) 6%, var(--color-soft));
    }
    border-color: var(--color-border);
  }
  .book-row:active {
    background: color-mix(in srgb, #8B6F5A 14%, #EFE7DD);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--color-primary) 14%, var(--color-soft));
    }
    transition: none;
  }
  .book-row-thumb {
    width: 44px;
    height: 66px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: var(--color-soft);
  }
  .book-row-info {
    flex: 1;
    min-width: 0;
  }
  .book-row-title {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .book-row-author {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-top: 0.2rem;
  }
  .book-row-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
  }
  .sr-add-btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.3rem 0.7rem;
    font-size: 0.76rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
  }
  .sr-add-btn:hover {
    opacity: 0.88;
  }
  .sr-add-btn:active {
    transform: scale(0.94);
    transition: transform 0.1s;
  }
  .sr-add-btn.added {
    background: #E8DFD4;
    color: var(--color-primary);
    cursor: default;
  }
  .sr-add-btn:disabled {
    cursor: default;
  }
  .sr-wtr-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.73rem;
    color: var(--color-primary);
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: opacity 0.15s;
  }
  .sr-wtr-btn:hover {
    text-decoration: underline;
  }
  .sr-wtr-btn:disabled {
    color: var(--color-muted);
    cursor: default;
    text-decoration: none;
  }
  .search-empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--color-secondary);
    font-size: 0.9rem;
  }
  .search-empty-hint {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-top: 0.4rem;
  }
  #tab-clubs {
    padding: 0 2rem 2rem;
  }
  #clubs-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }
  .club-card {
    background: var(--color-card);
    border-radius: var(--radius-card);
    padding: 16px 20px;
    cursor: pointer;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.15s, transform 0.12s;
  }
  .club-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-1px);
  }
  .club-card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-card);
    transition: none;
  }
  .club-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
  }
  .club-card-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
  }
  .club-icon-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
  }
  .club-icon-option {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2.5px solid transparent;
    cursor: pointer;
    transition: border-color 0.12s, transform 0.1s;
    flex-shrink: 0;
    overflow: hidden;
  }
  .club-icon-option.active {
    border-color: #8B6F5A;
  }
  .club-icon-option:active {
    transform: scale(0.92);
  }
  .club-card-content {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
  }
  .club-card-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-muted);
    margin-top: 4px;
    transition: background 0.15s, color 0.15s;
  }
  .club-card:hover .club-card-arrow {
    background: color-mix(in srgb, #8B6F5A 12%, #EFE7DD);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--color-primary) 12%, var(--color-soft));
    }
    color: var(--color-primary);
  }
  .club-card-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .club-card-book {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .club-progress-inner {
    background: #E8DFD4;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
  }
  .club-progress-text {
    display: flex;
    flex-direction: column;
  }
  .club-card-rank {
    font-size: 0.875rem;
    color: #6b7280;
  }
  .club-card-comparison {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 2px;
  }
  .club-card-comparison.behind {
    color: var(--color-primary);
  }
  .club-card-comparison.lead {
    color: var(--color-primary);
  }
  .club-card-comparison.tied {
    color: var(--color-primary);
  }
  .club-card-microcta {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 6px;
  }
  .streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #E8DFD4;
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    margin-top: 6px;
    width: fit-content;
  }
  .streak-best {
    opacity: 0.6;
    font-weight: 400;
  }
  .club-card-cta-strip {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
    overflow: hidden;
    gap: 0;
  }
  .club-card-cta-left {
    display: flex;
    flex-direction: column;
    padding-bottom: 4px;
  }
  .club-card-cta-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 4px;
  }
  .club-card-cta-text {
    font-size: 0.85rem;
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: 10px;
  }
  .club-card-choose-btn {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--color-primary);
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    width: fit-content;
    transition: text-decoration 0.1s;
  }
  .club-card-choose-btn:hover {
    text-decoration: underline;
  }
  .illus-chair {
    flex-shrink: 0;
    margin-bottom: -4px;
    opacity: 0.92;
  }
  .motivation-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--color-card);
    border-radius: 16px;
    padding: 16px 16px 0 16px;
    border: 1px solid var(--color-border);
    margin-top: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }
  .motivation-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .motivation-card-text {
    flex: 1;
    min-width: 0;
    padding-bottom: 16px;
  }
  .motivation-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 3px;
  }
  .motivation-card-body {
    font-size: 0.78rem;
    color: var(--color-secondary);
    line-height: 1.45;
  }
  #new-club-form {
    margin-bottom: 1rem;
    padding-top: 0.5rem;
  }
  #new-club-form-toggle {
    background: none;
    border: none;
    color: var(--color-muted);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.15s;
  }
  #new-club-form-toggle:hover {
    color: var(--color-text);
  }
  #new-club-fields {
    display: none;
    margin-top: 0.75rem;
    background: var(--color-card);
    border-radius: var(--radius-card);
    padding: 1rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
  }
  #new-club-fields.open {
    display: block;
  }
  #invites-list {
    margin-bottom: 1.25rem;
  }
  .invite-card {
    background: var(--color-card);
    border-radius: var(--radius-card);
    padding: 0.9rem 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1.5px solid var(--color-accent);
    box-shadow: 0 1px 6px rgba(230,194,122,0.10);
  }
  .invites-heading {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }
  #tab-feed {
    padding: 0;
  }
  .feed-page-header {
    padding: 1.25rem 1rem 0.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }
  @media (min-width: 769px) {
    .feed-page-header {
      padding: 1.5rem 2rem 0.5rem;
    }
  }
  .feed-page-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.1rem;
  }
  .feed-page-sub {
    font-size: 0.82rem;
    color: var(--color-muted);
  }
  .feed-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem 1rem 2rem;
  }
  @media (min-width: 769px) {
    .feed-body {
      padding: 0.5rem 2rem 2rem;
    }
  }
  .feed-status-card {
    background: var(--color-card);
    border-radius: 16px;
    padding: 1.1rem 1.15rem;
    box-shadow: 0 2px 12px rgba(139,111,90,0.1);
    border: 1px solid #E8DFD4;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .feed-status-book-row {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
  }
  .feed-status-cover {
    width: 72px;
    height: 108px;
    aspect-ratio: 2 / 3;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--color-soft);
  }
  .feed-status-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  .feed-status-eyebrow {
    font-size: 0.76rem;
    color: var(--color-muted);
    margin: 0;
  }
  .feed-status-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .feed-rank-badge {
    display: inline-block;
    background: #EFE7DD;
    color: var(--color-primary);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 99px;
    align-self: flex-start;
  }
  .feed-status-comp {
    font-size: 0.82rem;
    color: var(--color-primary);
    font-weight: 500;
    margin: 0;
  }
  .feed-status-progress-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }
  .feed-status-page-label {
    font-size: 0.76rem;
    color: var(--color-muted);
  }
  .feed-status-pct {
    font-size: 0.76rem;
    color: var(--color-primary);
    font-weight: 600;
  }
  .feed-status-bar-wrap {
    height: 6px;
    background: #E8DFD4;
    border-radius: 999px;
    overflow: hidden;
  }
  .feed-status-bar-fill {
    height: 6px;
    background: var(--color-primary);
    border-radius: 999px;
    transition: width 0.4s ease-out;
  }
  .feed-status-cta {
    width: 100%;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: opacity 0.15s;
  }
  .feed-status-cta:hover {
    opacity: 0.88;
  }
  .feed-status-cta:active {
    transform: scale(0.97);
    opacity: 0.88;
    transition: transform 0.1s, opacity 0.1s;
  }
  .feed-comparison-card {
    background: var(--color-card);
    border-radius: 16px;
    padding: 1rem 1.15rem;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
  }
  .feed-comparison-left {
    flex: 0 0 auto;
    max-width: 140px;
  }
  .feed-comparison-headline {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.3rem;
    line-height: 1.3;
  }
  .feed-comparison-sub {
    font-size: 0.76rem;
    color: var(--color-secondary);
    margin: 0;
    line-height: 1.4;
  }
  .feed-comparison-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
  }
  .feed-comparison-row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }
  .feed-comparison-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.15rem;
  }
  .feed-comparison-name {
    font-size: 0.76rem;
    color: var(--color-secondary);
  }
  .feed-comparison-pages {
    font-size: 0.74rem;
    color: var(--color-muted);
  }
  .feed-comparison-bar-wrap {
    height: 6px;
    background: #E8DFD4;
    border-radius: 999px;
    overflow: hidden;
  }
  .feed-comparison-bar-fill {
    height: 6px;
    border-radius: 999px;
    transition: width 0.4s ease-out;
  }
  .feed-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: -0.1rem;
  }
  .feed-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text);
  }
  .feed-activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .feed-activity-item, .feed-card-important, .feed-card-highlight {
    border-radius: 14px;
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
  }
  .feed-activity-item:active, .feed-card-important:active, .feed-card-highlight:active {
    transform: scale(0.985);
    opacity: 0.85;
    transition: transform 0.1s, opacity 0.1s;
  }
  .feed-activity-item {
    background: var(--color-card);
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
  }
  .feed-card-important {
    background: #F7F3EE;
    border: 1px solid #E8DFD4;
  }
  .feed-card-important-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 0.15rem;
    line-height: 1.4;
  }
  .feed-card-highlight {
    background: var(--color-card);
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    border: 1.5px solid #E8DFD4;
  }
  .feed-card-highlight-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.15rem;
    line-height: 1.4;
  }
  .feed-activity-avatar {
    flex-shrink: 0;
  }
  .feed-activity-body {
    flex: 1;
    min-width: 0;
  }
  .feed-activity-title {
    font-size: 0.88rem;
    color: var(--color-text);
    margin: 0 0 0.15rem;
    line-height: 1.4;
  }
  .feed-activity-sub {
    font-size: 0.78rem;
    color: var(--color-secondary);
    margin: 0 0 0.1rem;
  }
  .feed-activity-time {
    font-size: 0.72rem;
    color: var(--color-muted);
    margin: 0;
  }
  .feed-user {
    font-weight: 600;
    color: var(--color-text);
  }
  .feed-pages-chip {
    flex-shrink: 0;
    background: #EFE7DD;
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 99px;
    white-space: nowrap;
  }
  .feed-new-hero {
    background: var(--color-card);
    border-radius: 16px;
    padding: 1.4rem 1.25rem;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }
  .feed-new-eyebrow {
    font-size: 0.76rem;
    color: var(--color-muted);
    margin: 0;
  }
  .feed-new-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
  }
  .feed-new-sub {
    font-size: 0.82rem;
    color: var(--color-secondary);
    margin: 0.1rem 0 0.5rem;
    line-height: 1.5;
  }
  .feed-new-cta {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    margin-top: 0.5rem;
    transition: opacity 0.15s;
  }
  .feed-new-cta:hover {
    opacity: 0.88;
  }
  .feed-new-cta:active {
    opacity: 0.7;
    transition: none;
  }
  .feed-new-cta-secondary {
    background: #EFE7DD;
    color: var(--color-primary);
  }
  .feed-empty-card {
    background: #F7F3EE;
    border-radius: 14px;
    padding: 1rem 1.15rem;
    border: 1px solid var(--color-border);
  }
  .feed-empty-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 0.2rem;
  }
  .feed-empty-sub {
    font-size: 0.78rem;
    color: var(--color-secondary);
    margin: 0;
    line-height: 1.5;
  }
  .feed-empty-hint {
    background: var(--color-card);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }
  .feed-empty-hint-text {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text);
    margin: 0;
  }
  .feed-empty-hint-btn {
    background: #EFE7DD;
    color: var(--color-primary);
    border: none;
    border-radius: 10px;
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.15s;
  }
  .feed-empty-hint-btn:active {
    opacity: 0.7;
    transition: none;
  }
  .feed-motivation-card {
    background: var(--color-warm);
    border-radius: 16px;
    border: 1px solid var(--color-border);
    padding: 1rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .feed-motivation-icon {
    flex-shrink: 0;
    opacity: 0.88;
  }
  .feed-motivation-body {
    flex: 1;
  }
  .feed-motivation-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.2rem;
  }
  .feed-motivation-sub {
    font-size: 0.78rem;
    color: var(--color-secondary);
    margin: 0;
  }
  .spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
  }
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  .loading-row {
    text-align: center;
    padding: 2.5rem;
    color: var(--color-muted);
  }
  #modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 2rem 1rem;
  }
  #modal-overlay.open {
    display: flex;
  }
  #modal-box {
    background: var(--color-card);
    border-radius: var(--radius-card);
    width: 100%;
    max-width: 580px;
    padding: 2rem;
    position: relative;
    box-shadow: var(--shadow-modal);
    border: 1px solid var(--color-border);
  }
  #modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-soft);
    border: none;
    color: var(--color-muted);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
  }
  #modal-close:hover {
    background: var(--color-border);
    color: var(--color-text);
  }
  .modal-book-header {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
  }
  #modal-cover {
    width: 100px;
    height: 150px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: var(--color-soft);
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  }
  .modal-book-meta {
    flex: 1;
    min-width: 0;
  }
  #modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    line-height: 1.3;
  }
  #modal-author {
    color: var(--color-muted);
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
  }
  #modal-genres {
    color: var(--color-primary);
    font-size: 0.78rem;
    margin-bottom: 0.6rem;
    font-weight: 500;
  }
  #modal-avg-rating {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 600;
  }
  #modal-description {
    font-size: 0.86rem;
    color: var(--color-muted);
    line-height: 1.65;
    margin-bottom: 1.25rem;
  }
  #modal-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
  }
  #add-to-list-select {
    margin-bottom: 0;
    width: auto;
  }
  .reviews-section {
    border-top: 1px solid var(--color-border);
    padding-top: 1.25rem;
  }
  .reviews-section h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
  }
  .review-card {
    background: var(--color-soft);
    border-radius: var(--radius-sm);
    padding: 0.9rem;
    margin-bottom: 0.6rem;
    border: 1px solid var(--color-border);
  }
  .review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
  }
  .review-author {
    font-weight: 600;
    font-size: 0.88rem;
  }
  .review-actions {
    display: flex;
    gap: 0.35rem;
  }
  .stars {
    color: var(--color-accent);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
  }
  .review-body {
    font-size: 0.85rem;
    color: var(--color-muted);
    line-height: 1.55;
  }
  #review-form {
    background: var(--color-soft);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
  }
  #review-form h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
  }
  .star-picker {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
  }
  .star-pick {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--color-border);
    transition: color 0.1s;
    line-height: 1;
  }
  .star-pick.selected, .star-pick:hover {
    color: var(--color-accent);
  }
  #welcome-screen {
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    text-align: center;
  }
  .welcome-box {
    max-width: 360px;
    width: 100%;
  }
  .welcome-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
  }
  .welcome-headline {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.25;
  }
  .welcome-body {
    font-size: 0.95rem;
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
  }
  #feedback-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }
  #feedback-modal-box {
    background: var(--color-card);
    border-radius: var(--radius-card);
    padding: 1.75rem;
    width: 100%;
    max-width: 380px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-modal);
  }
  #feedback-modal-box h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
  }
  #feedback-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  .feedback-cat {
    padding: 0.6rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--color-border);
    background: var(--color-soft);
    color: var(--color-secondary);
    font-size: 0.84rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
  }
  .feedback-cat.selected {
    border-color: var(--color-primary);
    background: color-mix(in srgb, #8B6F5A 8%, #EFE7DD);
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--color-primary) 8%, var(--color-soft));
    }
    color: var(--color-text);
  }
  #feedback-message {
    margin-bottom: 0.75rem;
  }
  #feedback-modal-actions {
    display: flex;
    gap: 0.5rem;
  }
  #club-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 2rem 1rem;
  }
  #club-overlay.open {
    display: flex;
  }
  #club-box {
    background: var(--color-card);
    border-radius: var(--radius-card);
    width: 100%;
    max-width: 660px;
    padding: 1.5rem;
    position: relative;
    box-shadow: var(--shadow-modal);
    border: 1px solid var(--color-border);
  }
  #club-overlay-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-soft);
    border: none;
    color: var(--color-muted);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
  }
  #club-overlay-close:hover {
    background: var(--color-border);
    color: var(--color-text);
  }
  #club-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    padding-right: 2rem;
  }
  #club-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0;
  }
  .club-section {
    margin-top: 1.5rem;
  }
  #leaderboard-section {
    margin-top: 1.5rem;
  }
  #disc-section {
    margin-top: 1.5rem;
  }
  #club-current-book {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem;
    background: #F6F1EB;
    border-radius: 12px;
    margin-bottom: 0.75rem;
  }
  .current-book-cover {
    width: 72px;
    height: 108px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  .current-book-label {
    font-size: 0.68rem;
    color: #9ca3af;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 5px;
  }
  .current-book-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
  }
  .current-book-author {
    font-size: 0.82rem;
    color: #6b7280;
    margin-top: 4px;
  }
  .current-book-pages {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 2px;
  }
  .progress-track-wrap {
    margin-top: 1.5rem;
  }
  .progress-track-bar {
    position: relative;
    height: 12px;
    background: #E8DFD4;
    border-radius: 999px;
    margin-bottom: 20px;
  }
  .progress-track-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .progress-track-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid #E8DFD4;
    overflow: hidden;
    flex-shrink: 0;
  }
  .progress-track-avatar.is-me {
    width: 32px;
    height: 32px;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(139,111,90,0.35);
  }
  .progress-track-you-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 4px;
    white-space: nowrap;
  }
  .progress-track-labels {
    font-size: 0.72rem;
    color: #9ca3af;
    margin-top: 0;
  }
  .progress-track-context {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-top: 0.4rem;
  }
  #progress-status-card {
    background: #EFE7DD;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    border: 1px solid #E8DFD4;
  }
  .progress-rank-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 2px;
  }
  .progress-comparison {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--color-primary);
  }
  .progress-activity-signal {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }
  .progress-activity-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-success);
    flex-shrink: 0;
  }
  #progress-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }
  .progress-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.875rem;
    border-radius: 10px;
    background: var(--color-card);
    border: 1px solid #E8DFD4;
  }
  .progress-row-me {
    background: #EFE7DD;
    border: 1px solid rgba(139,111,90,0.3);
  }
  .progress-row-rank1 {
    background: #EFE7DD;
    border: 1px solid rgba(139,111,90,0.4);
  }
  .progress-rank-num {
    font-size: 0.78rem;
    font-weight: 700;
    color: #9ca3af;
    width: 1.4rem;
    text-align: center;
    flex-shrink: 0;
  }
  .progress-rank-num.top-3 {
    color: var(--color-accent);
  }
  .progress-avatar-chip {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #E8DFD4;
  }
  .progress-user-info {
    flex: 1;
    min-width: 0;
  }
  .progress-username {
    font-size: 0.88rem;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .progress-activity-label {
    font-size: 0.72rem;
    color: #9ca3af;
    margin-top: 1px;
  }
  .progress-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
  }
  .progress-pages {
    font-size: 0.82rem;
    font-weight: 500;
    color: #1f2937;
  }
  .activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .activity-dot.active {
    background: var(--color-success);
  }
  .activity-dot.inactive {
    background: #E8DFD4;
  }
  #update-progress-btn {
    width: 100%;
    padding: 0.875rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    margin-top: 1rem;
    transition: opacity 0.15s;
  }
  #update-progress-btn:hover {
    opacity: 0.88;
  }
  #update-progress-btn:active {
    opacity: 0.72;
    transition: none;
  }
  #progress-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }
  #progress-modal-box {
    background: var(--color-card);
    border-radius: var(--radius-card);
    padding: 1.75rem;
    width: 100%;
    max-width: 340px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-modal);
  }
  #progress-modal-box h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
  }
  #progress-modal-book {
    font-size: 0.82rem;
    color: var(--color-muted);
    margin-bottom: 1rem;
  }
  #progress-modal-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
  }
  #personal-progress-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }
  #personal-progress-modal-box {
    background: var(--color-card);
    border-radius: var(--radius-card);
    padding: 1.75rem;
    width: 100%;
    max-width: 340px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-modal);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }
  #personal-progress-modal-box h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
  }
  #personal-progress-modal-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.15rem;
  }
  .reading-update-btn {
    flex: 1;
    background: #E8DFD4;
    color: var(--color-primary);
    border: 1.5px solid #D6C8B8;
    border-radius: 10px;
    padding: 0.72rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
  }
  .reading-update-btn:hover {
    background: #DCCFC0;
  }
  .reading-update-btn:active {
    transform: scale(0.96);
    transition: transform 0.1s;
  }
  .cr-finish-active-btn {
    background: none;
    border: none;
    padding: 0.3rem 0;
    font-size: 0.8rem;
    color: var(--color-primary);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    margin-top: 0.1rem;
    text-decoration: underline;
    transition: opacity 0.15s;
  }
  .cr-finish-active-btn:hover {
    opacity: 0.7;
  }
  .cr-other-books {
    margin-top: 0.85rem;
    border-top: 1px solid #E8DFD4;
    padding-top: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
  }
  .cr-other-book {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }
  .cr-other-cover {
    width: 32px;
    height: 48px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: var(--color-soft);
  }
  .cr-other-title {
    flex: 1;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.3;
  }
  .cr-other-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
  }
  .cr-set-active-btn {
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    border: 1.5px solid var(--color-primary);
    background: none;
    color: var(--color-primary);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.15s;
  }
  .cr-set-active-btn:hover {
    background: var(--color-primary);
    color: #fff;
  }
  .cr-set-active-btn:active {
    transform: scale(0.94);
    transition: transform 0.1s;
  }
  .cr-finish-btn {
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    border: 1.5px solid #D6C8B8;
    background: none;
    color: var(--color-muted);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
  }
  .cr-finish-btn:hover {
    background: #EFE7DD;
    color: var(--color-text);
    border-color: #C4B5A5;
  }
  .cr-finish-btn:active {
    transform: scale(0.94);
    transition: transform 0.1s;
  }
  #club-discussions {
    margin-bottom: 1rem;
  }
  .disc-post {
    background: #F6F1EB;
    border-radius: 10px;
    padding: 0.85rem;
    margin-bottom: 0.5rem;
  }
  .disc-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
  }
  .disc-author {
    font-weight: 600;
    font-size: 0.88rem;
    color: #1f2937;
  }
  .disc-spoiler {
    background: var(--color-danger);
    color: white;
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
  }
  .disc-chapter {
    color: #9ca3af;
    font-size: 0.76rem;
  }
  .disc-body {
    font-size: 0.86rem;
    color: #6b7280;
    line-height: 1.55;
  }
  .disc-reply {
    background: var(--color-card);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.83rem;
    color: #6b7280;
  }
  #disc-compose {
    border-top: 1px solid #E8DFD4;
    padding-top: 1.25rem;
    margin-top: 1.25rem;
  }
  #disc-compose h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.875rem;
    color: #1f2937;
  }
  #disc-compose textarea {
    background: #EFE7DD;
    border: none;
    border-radius: 12px;
    padding: 0.75rem;
    color: #1f2937;
    font-family: inherit;
    font-size: 0.875rem;
    resize: vertical;
    width: 100%;
    box-sizing: border-box;
    min-height: 100px;
  }
  #disc-compose textarea::placeholder {
    color: #9ca3af;
  }
  #disc-options {
    display: flex;
    gap: 0.875rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    margin-bottom: 0.875rem;
    font-size: 0.84rem;
    color: #6b7280;
  }
  #disc-options input[type="number"] {
    width: 80px;
    margin-bottom: 0;
    padding: 0.35rem 0.75rem;
    font-size: 0.84rem;
    background: #EFE7DD;
    border: none;
    border-radius: 8px;
    height: 40px;
    box-sizing: border-box;
  }
  #post-discussion-btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.15s;
  }
  #post-discussion-btn:hover {
    opacity: 0.88;
  }
  #post-discussion-btn:active {
    opacity: 0.72;
    transition: none;
  }
  #disc-options label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
  }
  #club-admin-section {
    margin-top: 1.5rem;
  }
  .admin-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0.75rem 0;
    font-size: 0.875rem;
    color: #6b7280;
    font-family: inherit;
    cursor: pointer;
    border-top: 1px solid #E8DFD4;
  }
  .admin-toggle-btn svg {
    transition: transform 0.2s;
    flex-shrink: 0;
  }
  .admin-content {
    background: #F6F1EB;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  #club-invite-form {
    display: flex;
    gap: 0.5rem;
  }
  #club-invite-form input {
    margin-bottom: 0;
    flex: 1;
  }
  .admin-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
  }
  .admin-row input[type="text"] {
    flex: 1;
    margin-bottom: 0;
  }
  .admin-row input[type="date"] {
    margin-bottom: 0;
    flex: 1;
  }
  .admin-label {
    font-size: 0.84rem;
    color: #6b7280;
    white-space: nowrap;
  }
  .admin-secondary-btn {
    background: #EFE7DD;
    color: var(--color-primary);
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0.875rem;
    font-size: 0.84rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s;
  }
  .admin-secondary-btn:hover {
    opacity: 0.8;
  }
  .admin-secondary-btn:active {
    opacity: 0.60;
    transform: scale(0.95);
    transition: none;
  }
  .admin-danger-zone {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #E8DFD4;
    display: flex;
  }
  .admin-delete-btn {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.84rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.15s;
  }
  .admin-delete-btn:hover {
    opacity: 0.8;
  }
  .admin-delete-btn:active {
    opacity: 0.60;
    transform: scale(0.95);
    transition: none;
  }
  .admin-change-book-btn {
    width: 100%;
    background: #EFE7DD;
    color: var(--color-primary);
    border: 1.5px dashed var(--color-primary);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    margin-bottom: 0.75rem;
    transition: background 0.15s;
  }
  .admin-change-book-btn:active {
    background: #E6DAD0;
    transform: scale(0.97);
    transition: none;
  }
  .club-no-book-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    text-align: center;
    width: 100%;
  }
  .club-no-book-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
  }
  .club-no-book-hint {
    font-size: 0.84rem;
    color: var(--color-muted);
  }
  .club-choose-book-btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.65rem 1.5rem;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    margin-top: 0.25rem;
    transition: opacity 0.15s;
  }
  .club-choose-book-btn:active {
    opacity: 0.8;
    transform: scale(0.97);
    transition: none;
  }
  .vote-card {
    background: white;
    border-radius: 16px;
    padding: 1.1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #E8DFD4;
  }
  .vote-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.15rem;
  }
  .vote-subtitle {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 1rem;
  }
  .vote-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.88rem;
    color: #9ca3af;
  }
  .vote-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #F7F3EE;
    border-radius: 12px;
    padding: 0.7rem;
    margin-bottom: 0.5rem;
  }
  .vote-option:last-of-type {
    margin-bottom: 0;
  }
  .vote-book-cover {
    width: 40px;
    height: 60px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    background: var(--color-soft);
  }
  .vote-book-info {
    flex: 1;
    min-width: 0;
  }
  .vote-book-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .vote-book-author {
    font-size: 0.76rem;
    color: #6b7280;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .vote-count {
    font-size: 0.74rem;
    color: #9ca3af;
  }
  .vote-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s;
  }
  .vote-btn:active {
    transform: scale(0.95);
    transition: none;
  }
  .vote-btn.voted {
    background: #E8DFD4;
    color: var(--color-primary);
  }
  .vote-close-btn {
    margin-top: 1rem;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.78rem;
    color: #9ca3af;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s;
  }
  .vote-close-btn:hover {
    color: #ef4444;
  }
  .vote-search-input {
    width: 100%;
    box-sizing: border-box;
    background: #EFE7DD;
    border: none;
    border-radius: 10px;
    padding: 0.6rem 0.875rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: #1f2937;
    margin-bottom: 0.75rem;
  }
  .vote-search-result {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #F7F3EE;
  }
  .vote-search-cover {
    width: 32px;
    height: 48px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: var(--color-soft);
  }
  .vote-search-meta {
    flex: 1;
    min-width: 0;
  }
  .vote-search-title {
    font-size: 0.83rem;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .vote-search-author {
    font-size: 0.74rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .vote-selected-label {
    font-size: 0.78rem;
    color: #9ca3af;
    margin: 0.75rem 0 0.4rem;
  }
  .vote-selected-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #F7F3EE;
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    margin-bottom: 0.35rem;
  }
  .vote-selected-item span {
    flex: 1;
    font-size: 0.83rem;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .vote-remove-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.1rem 0.25rem;
    flex-shrink: 0;
  }
  .vote-create-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1rem;
  }
  .user-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--color-soft);
    margin-bottom: 0.5rem;
    border: 1px solid var(--color-border);
  }
  .user-row-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
  }
  .user-row-name {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
  }
  .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    color: var(--color-muted);
    text-align: center;
    gap: 0.75rem;
  }
  .empty-state svg {
    opacity: 0.3;
  }
  .empty-state-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    opacity: 0.65;
  }
  .empty-state-sub {
    font-size: 0.84rem;
    line-height: 1.55;
    max-width: 260px;
  }
  #onboarding-screen {
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
  }
  #onboarding-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
  }
  .onboarding-genre-btn {
    background: var(--color-soft);
    border: 2px solid var(--color-border);
    color: var(--color-secondary);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.15s;
    user-select: none;
  }
  .onboarding-genre-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-text);
  }
  .onboarding-genre-btn:active {
    transform: scale(0.94);
    opacity: 0.78;
    transition: none;
  }
  .onboarding-genre-btn.selected {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
  }
  #verify-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--color-primary-dark);
    color: #FAF7F2;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
  #verify-banner.show {
    display: flex;
  }
  #resend-verify-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: inherit;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.82rem;
    font-family: inherit;
  }
  #push-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: #5C7A5E;
    color: #FAF7F2;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    text-align: center;
  }
  #push-banner.show {
    display: flex;
  }
  .push-banner-actions {
    display: flex;
    gap: 0.5rem;
  }
  #push-enable-btn {
    background: rgba(255,255,255,0.25);
    border: none;
    color: inherit;
    padding: 0.25rem 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.82rem;
    font-family: inherit;
    font-weight: 600;
  }
  #push-dismiss-btn {
    background: transparent;
    border: none;
    color: #FAF7F2;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.82rem;
    font-family: inherit;
  }
  #toast {
    position: fixed;
    bottom: 86px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--color-primary);
    color: #fff;
    border-radius: 12px;
    padding: 0.65rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    max-width: calc(100vw - 2rem);
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 4px 16px rgba(139,111,90,0.3);
  }
  #toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  @media (min-width: 769px) {
    #toast {
      bottom: 2rem;
      left: auto;
      right: 1.5rem;
      transform: translateY(10px);
      border-radius: 12px;
    }
    #toast.show {
      transform: translateY(0);
    }
  }
  @media (max-width: 768px) {
    #sidebar {
      display: none;
    }
    #bottom-nav {
      display: flex;
    }
    #content {
      padding-bottom: 70px;
    }
    #tab-swipe, #tab-search, #tab-lists, #tab-clubs, #tab-feed {
      padding: 1rem 1rem 1rem;
    }
    .view-header {
      padding: 1rem 1rem 0;
    }
    .books-subnav {
      padding: 0 1rem;
    }
    #clubs-list {
      gap: 1rem;
    }
    .club-card {
      padding: 20px;
    }
    .club-card-inner {
      gap: 12px;
    }
    .club-card-avatar {
      width: 40px;
      height: 40px;
    }
    .club-card-name {
      font-size: 1.125rem;
      font-weight: 600;
      color: #1f2937;
    }
    .club-card-book {
      font-size: 0.875rem;
      color: #6b7280;
    }
    .club-progress-inner {
      max-width: none;
      width: 100%;
      margin-top: 12px;
    }
    .illus-chair {
      width: 64px;
      height: auto;
    }
    .club-card-cta-label {
      color: #9ca3af;
    }
    .club-card-cta-text {
      color: #1f2937;
      margin-top: 8px;
      margin-bottom: 12px;
    }
    #bottom-nav {
      background: #ffffff;
      border-top: 1px solid #E8DFD4;
    }
    #bottom-nav .tab-btn {
      font-size: 0.75rem;
      gap: 2px;
      color: #9ca3af;
    }
    #bottom-nav .tab-btn span {
      margin-top: 2px;
    }
    #bottom-nav .tab-btn.active {
      color: #8B6F5A;
      font-weight: 500;
    }
    #bottom-nav .tab-btn.active svg {
      color: #8B6F5A;
    }
    #bottom-nav .tab-btn svg {
      color: #9ca3af;
    }
  }
  @media (min-width: 769px) {
    #app-screen {
      flex-direction: row;
    }
    #sidebar {
      display: flex;
      height: 100vh;
    }
    .books-subnav {
      display: none;
    }
  }
  #reading-session-overlay {
    position: fixed;
    inset: 0;
    z-index: 350;
    background: #F7F3EE;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
  }
  #rs-content {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .rs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem 0;
  }
  .rs-close-btn {
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--color-secondary);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 8px;
    line-height: 1;
    transition: opacity 0.15s;
  }
  .rs-close-btn:active {
    opacity: 0.5;
    transition: none;
  }
  .rs-start {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 2rem;
  }
  .rs-book-info {
    text-align: right;
  }
  .rs-book-title-header {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 0.1rem;
  }
  .rs-book-progress-label {
    font-size: 0.76rem;
    color: var(--color-muted);
    margin: 0;
  }
  .rs-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem 1.5rem;
    gap: 1.25rem;
  }
  .rs-tagline {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    text-align: center;
  }
  .rs-timer-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .rs-timer-pill {
    background: #E8DFD4;
    color: #374151;
    border: none;
    border-radius: 99px;
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  }
  .rs-timer-pill.selected {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 1px 6px rgba(139,111,90,0.35);
  }
  .rs-timer-pill:hover:not(.selected) {
    background: #D5C8BC;
  }
  .rs-timer-pill:active {
    transform: scale(0.93);
    transition: transform 0.1s;
  }
  .rs-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0 1.25rem 1.5rem;
  }
  .rs-btn-primary {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.15s, transform 0.1s;
  }
  .rs-btn-primary:hover {
    opacity: 0.88;
  }
  .rs-btn-primary:active {
    transform: scale(0.97);
    opacity: 0.85;
    transition: transform 0.1s;
  }
  .rs-btn-secondary {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    padding: 0.4rem;
    transition: opacity 0.15s;
  }
  .rs-btn-secondary:hover {
    text-decoration: underline;
  }
  .rs-btn-secondary:active {
    opacity: 0.55;
    transition: none;
  }
  .rs-btn-text {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    padding: 0.4rem;
    transition: opacity 0.15s;
  }
  .rs-btn-text:hover {
    color: var(--color-secondary);
  }
  .rs-btn-text:active {
    opacity: 0.5;
    transition: none;
  }
  .rs-active {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 2rem;
  }
  .rs-book-title-sm {
    font-size: 0.82rem;
    color: var(--color-secondary);
    margin: 0;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .rs-end-btn {
    background: #E8DFD4;
    color: #374151;
    border: none;
    border-radius: 99px;
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, transform 0.1s;
  }
  .rs-end-btn:hover {
    background: #D5C8BC;
  }
  .rs-end-btn:active {
    transform: scale(0.94);
    transition: transform 0.1s;
  }
  .rs-timer {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -2px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .rs-timer-infinity {
    font-size: 3rem;
  }
  .rs-timer-label {
    font-size: 0.9rem;
    color: var(--color-secondary);
    margin: 0;
    text-align: center;
  }
  .rs-no-timer-hint {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0.5rem 0 0;
    text-align: center;
  }
  .rs-end {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
  }
  .rs-end-card {
    background: var(--color-card);
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .rs-end-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
  }
  .rs-end-sub {
    font-size: 0.88rem;
    color: var(--color-secondary);
    margin: 0;
  }
  .rs-quick-btns {
    display: flex;
    gap: 0.5rem;
  }
  .rs-quick-btn {
    flex: 1;
    background: #EFE7DD;
    color: var(--color-primary);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s, transform 0.1s;
  }
  .rs-quick-btn:hover {
    background: #DCCFC0;
  }
  .rs-quick-btn:active {
    transform: scale(0.94);
    background: var(--color-primary);
    color: #fff;
    transition: transform 0.1s;
  }
  .rs-pages-display {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
    padding: 0.5rem;
    background: #F7F3EE;
    border-radius: 10px;
  }
  .rs-pages-display.empty {
    font-weight: 400;
    color: var(--color-muted);
  }
  .rs-pages-input {
    border: 1.5px solid var(--color-border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-family: inherit;
    background: #EFE7DD;
    color: var(--color-text);
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s;
  }
  .rs-pages-input:focus {
    border-color: var(--color-primary);
  }
  .rs-feedback-card {
    position: absolute;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(139,111,90,0.18);
    padding: 0.85rem 1.4rem;
    text-align: center;
    min-width: 200px;
    max-width: 280px;
    width: max-content;
    pointer-events: none;
    z-index: 10;
    animation: rs-feedback-in 0.15s ease forwards;
  }
  .rs-feedback-card.fade-out {
    animation: rs-feedback-out 0.2s ease forwards;
  }
  .rs-feedback-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
  }
  .rs-feedback-sub {
    font-size: 0.8rem;
    color: #9B8E84;
    margin-top: 0.2rem;
  }
  @keyframes rs-feedback-in {
    from {
      opacity: 0;
      transform: translateX(-50%) translateY(8px) scale(0.96);
    }
    to {
      opacity: 1;
      transform: translateX(-50%) translateY(0) scale(1);
    }
  }
  @keyframes rs-feedback-out {
    from {
      opacity: 1;
      transform: translateX(-50%) translateY(0) scale(1);
    }
    to {
      opacity: 0;
      transform: translateX(-50%) translateY(-6px) scale(0.97);
    }
  }
}
#ob-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: #F7F3EE;
  display: none;
  flex-direction: column;
  animation: ob-fade-in 0.25s ease;
}
#ob-overlay.active {
  display: flex;
}
.ob-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 2rem 3rem;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}
.ob-illustration {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}
.ob-text {
  text-align: center;
  margin-bottom: 2.5rem;
}
.ob-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}
.ob-subtitle {
  font-size: 1rem;
  color: var(--color-secondary);
  margin: 0;
  font-weight: 400;
}
.ob-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}
.ob-btn-primary {
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.ob-btn-primary:hover {
  opacity: 0.88;
}
.ob-btn-primary:active {
  transform: scale(0.97);
  transition: transform 0.1s;
}
.ob-btn-skip {
  background: none;
  border: none;
  padding: 0.4rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s;
}
.ob-btn-skip:hover {
  color: var(--color-secondary);
}
@keyframes ob-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes ob-slide-left {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-30px);
  }
}
@keyframes ob-slide-in {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.share-sheet-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.45);
  align-items: flex-end;
  justify-content: center;
}
.share-sheet-backdrop.open {
  display: flex;
}
.share-sheet {
  background: #FAF7F2;
  border-radius: 1.5rem 1.5rem 0 0;
  padding: 1rem 1.25rem 2rem;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.34, 1.1, 0.64, 1);
}
.share-sheet-backdrop.open .share-sheet {
  transform: translateY(0);
}
.share-sheet-handle {
  width: 2.5rem;
  height: 4px;
  border-radius: 2px;
  background: #D6C8B8;
  margin: 0 auto 1.25rem;
}
.share-sheet-title {
  font-size: 1rem;
  font-weight: 600;
  color: #3D2B1F;
  margin: 0 0 0.25rem;
  text-align: center;
}
.share-sheet-sub {
  font-size: 0.82rem;
  color: #8B7355;
  margin: 0 0 1.25rem;
  text-align: center;
}
.share-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  justify-content: center;
}
.share-reaction-chip {
  background: #EDE5DA;
  border: none;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  color: #5C3D2E;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s;
}
.share-reaction-chip:active {
  transform: scale(0.94);
}
.share-reaction-chip.selected {
  background: #8B6F5A;
  color: #FAF7F2;
}
.share-input-wrap {
  position: relative;
  margin-bottom: 1.25rem;
}
.share-textarea {
  width: 100%;
  box-sizing: border-box;
  background: #EDE5DA;
  border: none;
  border-radius: 1rem;
  padding: 0.85rem 0.9rem 2rem;
  font-size: 1rem;
  font-family: inherit;
  color: #3D2B1F;
  resize: none;
  min-height: 80px;
  outline: none;
}
.share-textarea:focus {
  box-shadow: 0 0 0 2px #8B6F5A40;
}
.share-char-count {
  position: absolute;
  bottom: 0.6rem;
  right: 0.75rem;
  font-size: 0.75rem;
  color: #8B7355;
}
.share-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.feed-card-share {
  background: #FAF7F2;
  border: 1px solid #E8DFD4;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.feed-card-share-body {
  flex: 1;
  min-width: 0;
}
.feed-card-share-author {
  font-size: 0.82rem;
  font-weight: 600;
  color: #5C3D2E;
  margin-bottom: 0.3rem;
}
.feed-card-share-quote {
  font-size: 0.9rem;
  color: #3D2B1F;
  line-height: 1.45;
  margin-bottom: 0.35rem;
  font-style: italic;
}
.feed-card-share-meta {
  font-size: 0.75rem;
  color: #8B7355;
}
.book-picker-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.45);
  align-items: flex-end;
  justify-content: center;
}
.book-picker-backdrop.open {
  display: flex;
}
.book-picker-sheet {
  background: #FAF7F2;
  border-radius: 1.5rem 1.5rem 0 0;
  padding: 1rem 1.25rem 2rem;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.34, 1.1, 0.64, 1);
  display: flex;
  flex-direction: column;
}
.book-picker-backdrop.open .book-picker-sheet {
  transform: translateY(0);
}
.book-picker-header {
  font-size: 1rem;
  font-weight: 700;
  color: #3D2B1F;
  text-align: center;
  margin-bottom: 1rem;
}
.book-picker-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #EDE5DA;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #3D2B1F;
  outline: none;
  margin-bottom: 0.75rem;
}
.book-picker-input:focus {
  box-shadow: 0 0 0 2px #8B6F5A40;
}
.book-picker-results {
  flex: 1;
  overflow-y: auto;
}
.book-picker-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.5rem;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.12s, border-color 0.12s;
}
.book-picker-row:active {
  background: #EDE5DA;
}
.book-picker-row.selected {
  background: #F0E8DF;
  border-color: var(--color-primary);
}
.book-picker-thumb {
  width: 42px;
  height: 63px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
  background: #E8DFD4;
}
.book-picker-row-info {
  flex: 1;
  min-width: 0;
}
.book-picker-row-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2A2A2A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.book-picker-row-author {
  font-size: 0.8rem;
  color: #8B7355;
  margin-top: 0.15rem;
}
.book-picker-confirm {
  display: none;
  flex-direction: column;
  border-top: 1px solid #E8DFD4;
  margin-top: 0.75rem;
  padding-top: 0.9rem;
}
.book-picker-selected-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.book-picker-confirm-cover {
  width: 52px;
  height: 78px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: #E8DFD4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.book-picker-confirm-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2A2A2A;
  margin-bottom: 0.2rem;
}
.book-picker-confirm-author {
  font-size: 0.83rem;
  color: #8B7355;
}
.profile-page-wrap {
  padding: 0 1.25rem 5rem;
  max-width: 600px;
}
.profile-identity-card {
  background: var(--color-card);
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  text-align: center;
  margin-bottom: 0.875rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid var(--color-border);
}
.profile-avatar-xl {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  margin: 0 auto 1rem;
  transition: transform 0.12s ease;
}
.profile-avatar-xl:active {
  transform: scale(0.93);
}
.avatar-picker-section {
  margin-bottom: 1.1rem;
}
.avatar-picker-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #A7896F;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.avatar-option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.avatar-option-btn {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1.5px solid #E8DFD4;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  color: #6E5645;
  cursor: pointer;
  transition: all 0.12s;
  font-family: inherit;
}
.avatar-option-btn.active {
  background: #8B6F5A;
  border-color: #8B6F5A;
  color: #fff;
}
.avatar-option-btn:active {
  transform: scale(0.95);
}
.avatar-color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.avatar-color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: border-color 0.12s, transform 0.1s;
  flex-shrink: 0;
}
.avatar-color-dot.active {
  border-color: #6E5645;
  transform: scale(1.15);
}
.avatar-color-dot:active {
  transform: scale(0.92);
}
.profile-identity-username {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.profile-identity-meta {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}
.profile-bio-text-display {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.55;
  min-height: 1.2rem;
  white-space: pre-wrap;
}
.profile-bio-text-display:empty::before {
  content: "No bio yet";
  color: var(--color-muted);
  font-style: italic;
}
.profile-bio-edit-btn {
  background: none;
  border: none;
  font-size: 0.8rem;
  color: var(--color-primary);
  padding: 0.3rem 0;
  cursor: pointer;
  margin-top: 0.35rem;
  display: inline-block;
}
.profile-stats-block {
  margin-bottom: 0.875rem;
}
.profile-goal-display-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.profile-goal-display-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}
.profile-goal-edit-btn {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--color-muted);
  cursor: pointer;
  padding: 0.2rem 0.3rem;
  border-radius: 0.375rem;
  transition: color 0.1s;
}
.profile-goal-edit-btn:hover {
  color: var(--color-primary);
}
.profile-goal-bar-wrap {
  background: var(--color-border);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}
.profile-goal-bar {
  background: var(--color-primary);
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
  width: 0%;
}
.profile-streak-display {
  font-size: 0.85rem;
  color: var(--color-muted);
}
.profile-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-muted);
  margin: 0 0 0.625rem 0.125rem;
}
.profile-cr-card {
  margin-bottom: 0.875rem;
  padding: 0;
}
.profile-cr-book-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}
.profile-cr-book-row:last-child {
  border-bottom: none;
}
.profile-cr-cover {
  width: 44px;
  height: 66px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--color-soft);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.profile-cr-cover-placeholder {
  width: 44px;
  height: 64px;
  border-radius: 6px;
  background: var(--color-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.profile-cr-info {
  flex: 1;
  min-width: 0;
}
.profile-cr-title {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.15rem;
}
.profile-cr-author {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}
.profile-cr-progress-bar-wrap {
  background: var(--color-border);
  border-radius: 999px;
  height: 5px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}
.profile-cr-progress-bar {
  background: var(--color-primary);
  height: 100%;
  border-radius: 999px;
}
.profile-cr-progress-text {
  font-size: 0.75rem;
  color: var(--color-muted);
}
.profile-finished-shelf {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0 1.25rem 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 0.5rem;
}
.profile-finished-shelf::-webkit-scrollbar {
  display: none;
}
.profile-finished-book {
  scroll-snap-align: start;
  flex-shrink: 0;
}
.profile-finished-cover {
  width: 62px;
  height: 93px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
  display: block;
  background: var(--color-soft);
}
.profile-finished-cover-placeholder {
  width: 62px;
  height: 90px;
  border-radius: 8px;
  background: var(--color-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.profile-settings-section {
  margin-top: 1.5rem;
}
.profile-settings-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-muted);
  margin: 0 0 0.875rem 0.125rem;
}
.clubs-discover-section {
  margin-top: 1.75rem;
}
.clubs-discover-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-muted);
  margin-bottom: 0.875rem;
}
.club-discover-card {
  background: var(--color-card);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-border);
  margin-bottom: 0.75rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.club-discover-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.club-discover-info {
  flex: 1;
  min-width: 0;
}
.club-discover-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.club-discover-meta {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: 0.2rem;
}
.club-discover-book {
  font-size: 0.8rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.club-discover-join-btn {
  flex-shrink: 0;
  padding: 0.45rem 1rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 0.625rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.1s;
}
.club-discover-join-btn:active {
  transform: scale(0.93);
  opacity: 0.85;
}
.club-discover-join-btn:disabled {
  opacity: 0.55;
  cursor: default;
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-outline-style: solid;
    }
  }
}
