
  @font-face {
    font-family: 'Source Han Serif SC';
    src: url('../../../SourceHanSerifCN-Medium.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
  :root {
    --font-serif-cn: 'Source Han Serif SC', 'Songti SC', 'STSong', 'STKaiti', 'SimSun', '宋体', serif;
    --font-serif-en: 'Libre Baskerville', 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
    --font-sans-en: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ui-bg: #faf7f0;
    --ui-panel: #fffdfa;
    --ui-panel-soft: #f6f1e8;
    --ui-border: #c4b8a0;
    --ui-border-soft: #ded4c2;
    --ui-text: #2a2620;
    --ui-text-soft: #6a5f4c;
    --ui-text-mute: #8a7d6a;
    --ui-fill: #b85c38;
    --ui-fill-hover: #b85c38;
    --ui-accent: #b85c38;
    --ui-accent-soft: #d7b0a2;
    --ui-radius: 20px;
    --ui-control-h: 42px;

    /* Reading Day (rd-) style tokens */
    --rd-bg: #faf7f0;
    --rd-bg-soft: #fffdfa;
    --rd-paper: #fffcf4;
    --rd-ink: #4f4536;
    --rd-ink-soft: #7a6f5b;
    --rd-ink-mute: #a79a82;
    --rd-line: #d9ccb0;
    --rd-line-soft: #ece0c4;
    --rd-accent: #b85c38;
    --rd-accent-soft: #d99976;
    --rd-gold: #a88a4a;
    --rd-serif-cn: "Source Han Serif SC", "Songti SC", "STSong", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", serif;
    --rd-serif-en: "Libre Baskerville", Georgia, serif;
    --rd-sans: "Manrope", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, "Helvetica Neue", sans-serif;
    --rd-radius: 2px;
    --rd-radius-lg: 6px;
  }
  body {
    font-family: var(--font-serif-cn);
    background: #f4f1ea;
    color: #1a1a1a;
    line-height: 1.7;
  }
  .app {
    max-width: 760px;
    margin: 0 auto;
    min-height: 100vh;
    background: #faf7f0;
    padding: 18px 14px 34px;
  }
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
  }
  .title-wrap { text-align: center; flex: 1; }
  .logo {
    font-family: var(--font-serif-en);
    letter-spacing: 0.3em;
    font-size: 14px;
    color: #7a6f5c;
  }
  .title {
    margin-top: 4px;
    letter-spacing: 0.12em;
    font-size: 19px;
    color: #2a2620;
  }
  .composer, .list-wrap {
    border: 1px solid #ded4c2;
    background: #fffdfa;
    padding: 14px;
    margin-bottom: 14px;
  }
  .composer-title {
    font-size: 13px;
    letter-spacing: 0.12em;
    color: #6a5f4c;
    margin-bottom: 10px;
  }
  .composer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
  }
  .compose-trigger {
    border: 1px solid var(--ui-border);
    background: var(--ui-bg);
    color: var(--ui-text-soft);
    min-height: var(--ui-control-h);
    padding: 0 12px;
    font-size: 13px;
    letter-spacing: 0.08em;
    border-radius: var(--ui-radius);
    width: auto;
    flex: 0 0 auto;
  }
  .compose-trigger:hover {
    background: #ede7d8;
    color: #1a1a1a;
  }
  .auth-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    min-width: 120px;
    position: relative;
  }
  .auth-user {
    color: #6a5f4c;
    font-size: 12px;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: underline;
  }
  .notify-btn {
    border: 1px solid var(--ui-border);
    background: var(--ui-bg);
    color: var(--ui-text-soft);
    min-height: var(--ui-control-h);
    padding: 0 12px;
    font-size: 13px;
    letter-spacing: 0.08em;
    border-radius: var(--ui-radius);
    cursor: pointer;
    white-space: nowrap;
  }
  /* 统一顶部胶囊按钮样式（提醒、发帖、检索、退出、登录、个人中心、工作台、返回首页相关） */
  #notifyBtn, #openPostModalBtn, #forumSearchBtn, #logoutBtn, #authEntryBtn,
  #pcAuthEntryBtn, #pcLogoutBtn, #pcWorkbenchBtn, #pcOpenEditTopBtn,
  #awbAuthEntryBtn, #awbLogoutBtn, #awbBackBtn, .home-btn {
    min-height: 31px !important;
    height: 31px !important;
    padding: 0 14px !important;
    min-width: 60px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .home-btn {
    border: 1px solid var(--rd-line) !important;
    background: var(--rd-bg-soft) !important;
    color: var(--rd-ink-soft) !important;
    cursor: pointer;
    display: inline-flex;
  }
  .home-btn:hover {
    border-color: var(--rd-accent) !important;
    color: var(--rd-accent) !important;
    background: var(--rd-paper) !important;
  }

  .herti-pill-btn.has-unread {
    border-color: var(--rd-accent, #b85c38) !important;
    color: var(--rd-accent, #b85c38) !important;
    background: var(--rd-paper, #fffcf4) !important;
  }
  .notify-panel {
    position: absolute;
    right: 0;
    top: 46px;
    width: min(420px, calc(100vw - 24px));
    max-height: 420px;
    overflow: auto;
    border: 1px solid #ded4c2;
    background: #fffdfa;
    box-shadow: 0 12px 24px rgba(36, 28, 18, 0.12);
    padding: 10px;
    display: none;
    z-index: 1200;
  }
  .notify-panel.active { display: block; }
  .notify-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #5a4f3e;
    font-size: 12px;
  }
  .notify-mark-read {
    border: none;
    background: transparent;
    color: #6f5c47;
    text-decoration: underline;
    cursor: pointer;
    font-size: 12px;
  }
  .notify-item {
    border: 1px solid #e7dece;
    background: #fff;
    padding: 8px;
    margin-top: 8px;
    cursor: pointer;
  }
  .notify-item:first-child { margin-top: 0; }
  .notify-item:hover { background: #fcf8ef; }
  .notify-item-meta {
    font-size: 11px;
    color: #857764;
    display: flex;
    justify-content: space-between;
    gap: 8px;
  }
  .notify-item-body {
    margin-top: 4px;
    font-size: 13px;
    color: #2b251d;
    line-height: 1.55;
  }
  .auth-modal {
    position: fixed;
    inset: 0;
    background: rgba(79, 69, 54, 0.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
  }
  .auth-modal.active { display: flex; }
  .auth-dialog {
    background: var(--rd-bg-soft);
    border: 1px solid var(--rd-line);
    border-radius: var(--rd-radius-lg);
    padding: 28px 32px;
    max-width: 400px;
    width: 100%;
    position: relative;
  }
  .auth-dialog-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
  }
  .auth-modal-title {
    font-family: var(--rd-serif-cn);
    font-size: 20px;
    color: var(--rd-ink);
    letter-spacing: 0.14em;
    white-space: nowrap;
  }
  .auth-close {
    background: transparent;
    border: none;
    color: var(--rd-ink-mute);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
  }
  .auth-close:hover { color: var(--rd-ink); }
  .auth-modal-msg {
    font-size: 13px;
    color: var(--rd-accent);
    min-height: 18px;
    margin-bottom: 12px;
    letter-spacing: 0.04em;
  }
  .auth-switch {
    margin-top: 14px;
    font-size: 13px;
    color: var(--rd-ink-mute);
    text-align: center;
  }
  .auth-switch-btn {
    background: transparent;
    border: none;
    color: var(--rd-accent);
    cursor: pointer;
    font-family: var(--rd-serif-cn);
    font-size: 13px;
    padding: 0 4px;
    text-decoration: underline;
    text-decoration-style: dotted;
    white-space: nowrap;
  }
  .post-modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 18, 15, 0.42);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 998;
    padding: 14px;
  }
  .post-modal.active { display: flex; }
  .post-dialog {
    width: min(560px, 100%);
    background: #fffdfa;
    border: 1px solid #ded4c2;
    padding: 14px;
  }
  .post-title {
    font-size: 15px;
    color: #4f4536;
    letter-spacing: 0.08em;
  }
  .post-modal-guide-hint {
    margin-top: 8px;
    margin-bottom: 0;
    color: #8a7d6a;
    font-size: 12px;
    line-height: 1.6;
  }
  .post-modal-guide-hint .forum-info-pill {
    margin-left: 2px;
    vertical-align: baseline;
    font-size: 12px;
    letter-spacing: 0.08em;
    padding: 2px 0;
  }
  .post-modal-section-row {
    margin-top: 10px;
    align-items: center;
  }
  .post-modal-label {
    flex: 0 0 auto;
    font-size: 13px;
    color: #6a5f4c;
    letter-spacing: 0.06em;
  }
  .post-section-select {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
  }
  .post-book-tag-row {
    margin-top: 10px;
    display: block;
  }
  .post-book-tag-row[hidden] {
    display: none !important;
  }
  .post-book-tag-add-btn {
    display: inline-flex;
    align-items: center;
    margin-bottom: 6px;
    transition: opacity 0.18s ease, transform 0.22s ease;
  }
  .post-book-tag-add-btn[hidden] {
    display: none !important;
  }
  .post-book-tag-wrap {
    width: 100%;
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
    transform-origin: top;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.22s ease;
  }
  .post-book-tag-wrap.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  .post-book-tag-wrap[hidden] {
    display: none !important;
  }
  .post-book-tag-prefix {
    color: #6a5f4c;
    font-size: 16px;
    line-height: 1;
    flex: 0 0 auto;
    padding-left: 2px;
  }
  .post-book-tag-field-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
  }
  .post-book-tag-input {
    width: 100%;
    padding-left: 12px;
  }
  .post-book-tag-panel {
    position: absolute;
    left: 0;
    top: 40px;
    width: 100%;
    border: 1px solid var(--rd-line);
    background: var(--rd-bg-soft);
    box-shadow: 0 10px 20px rgba(79, 69, 54, 0.12);
    padding: 8px;
    z-index: 12;
    border-radius: var(--rd-radius-lg);
  }
  .post-book-tag-clear-btn {
    border: 1px solid var(--rd-line);
    background: var(--rd-bg-soft);
    color: var(--rd-ink-soft);
    width: 32px;
    height: 32px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex: 0 0 auto;
    transition: all 0.2s ease;
  }
  .post-book-tag-clear-btn:hover {
    background: var(--rd-paper);
    color: var(--rd-ink);
    border-color: var(--rd-ink-mute);
  }
  .post-book-tag-list {
    max-height: 220px;
    overflow-y: auto;
    display: grid;
    gap: 6px;
  }
  .post-book-tag-item {
    border: 1px solid var(--rd-line-soft);
    background: var(--rd-paper);
    color: var(--rd-ink);
    text-align: left;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
    border-radius: var(--rd-radius-lg);
    transition: all 0.2s ease;
  }
  .post-book-tag-item:hover {
    background: var(--rd-bg-soft);
    border-color: var(--rd-accent);
  }
  .post-book-tag-empty {
    color: var(--rd-ink-mute);
    font-size: 12px;
    padding: 6px 4px;
    font-family: var(--rd-serif-cn);
  }
  .profile-modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 18, 15, 0.42);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 14px;
  }
  .profile-modal.active { display: flex; }
  .profile-dialog {
    width: min(560px, 100%);
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    background: #fffdfa;
    border: 1px solid #ded4c2;
    padding: 14px;
  }
  .profile-name {
    font-size: 18px;
    color: #2a2620;
    letter-spacing: 0.04em;
  }
  .profile-bio {
    margin-top: 6px;
    color: #6a5f4c;
    font-size: 14px;
    white-space: pre-wrap;
    word-break: break-word;
  }
  .profile-type {
    margin-top: 6px;
    color: #5f5342;
    font-size: 13px;
  }
  .profile-stats {
    margin-top: 8px;
    color: #7d715f;
    font-size: 13px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  .profile-stat-btn {
    border: none;
    background: transparent;
    color: #7d715f;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    font-size: 13px;
  }
  .follow-list-modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 18, 15, 0.42);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    padding: 14px;
  }
  .follow-list-modal.active { display: flex; }
  .follow-list-dialog {
    width: min(520px, 100%);
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    background: #fffdfa;
    border: 1px solid #ded4c2;
    padding: 14px;
  }
  .follow-list-title {
    font-size: 14px;
    color: #4f4536;
    letter-spacing: 0.06em;
  }
  .follow-list {
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
  }
  .follow-list-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee2cf;
    font-size: 13px;
  }
  .follow-list-row:last-child { border-bottom: none; }
  .follow-list-user {
    border: none;
    background: transparent;
    padding: 0;
    color: #5f5342;
    cursor: pointer;
    text-decoration: underline;
    font-size: 13px;
  }
  .follow-list-meta {
    color: #8a7d6a;
    font-size: 12px;
  }
  .author-link {
    border: none;
    background: transparent;
    color: #5f5342;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: 12px;
  }
  .pager {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .pager-info {
    color: #7d715f;
    font-size: 12px;
    min-width: 130px;
    text-align: center;
  }
  .profile-my-posts-wrap {
    margin-top: 12px;
    border-top: 1px dashed #dccfb9;
    padding-top: 10px;
  }
  .profile-my-posts-title {
    font-size: 13px;
    color: #5f5342;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
  }
  .profile-my-posts-list { max-height: 240px; overflow-y: auto; }
  .profile-post-row {
    padding: 8px 0;
    border-bottom: 1px solid #eee2cf;
    font-size: 13px;
  }
  .profile-post-row:last-child { border-bottom: none; }
  .profile-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    color: #8a7d6a;
    font-size: 12px;
    margin-bottom: 4px;
  }
  .profile-post-body {
    color: #4f4536;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
  }
  .profile-my-posts-empty { color: #8a7d6a; font-size: 13px; padding: 6px 0; }
  .profile-edit-wrap {
    margin-top: 12px;
    border-top: 1px dashed #dccfb9;
    padding-top: 10px;
  }
  .row { display: flex; gap: 8px; flex-wrap: wrap; }
  input, select, textarea, button {
    font-family: var(--font-serif-cn);
  }
  .input, .select, .textarea {
    width: 100%;
    border: 1px solid var(--ui-border);
    background: var(--ui-bg);
    color: var(--ui-text);
    padding: 10px 14px;
    font-size: 15px;
    border-radius: var(--ui-radius);
    min-height: var(--ui-control-h);
  }
  .input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: #8a7d6a;
    box-shadow: 0 0 0 2px rgba(196, 184, 160, 0.22);
  }
  .auth-dialog .input {
    border: none;
    border-bottom: 1px solid var(--ui-border);
    background: transparent;
    border-radius: 0;
    padding: 8px 4px;
    min-height: 0;
  }
  .auth-dialog .input:focus {
    border-color: transparent;
    border-bottom-color: var(--ui-fill);
    box-shadow: none;
  }
  .filters .select {
    font-size: 14px;
    padding-top: 9px;
    padding-bottom: 9px;
  }
  #sortSelect option,
  #personaFilterInput option {
    font-size: 13px;
  }
  #personaFilterInput option {
    font-size: 13px;
    letter-spacing: 0.02em;
  }
  #personaFilterInput option:first-child {
    font-size: 16px;
    letter-spacing: 0;
  }
  .textarea { min-height: 110px; resize: vertical; }

  /* rd- components */
  .rd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 999px;
    border: 1px solid var(--rd-ink);
    background: var(--rd-ink);
    color: var(--rd-bg-soft);
    font-family: var(--rd-serif-cn);
    font-size: 14px;
    letter-spacing: 0.14em;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
  }
  .rd-btn:hover { background: var(--rd-accent); border-color: var(--rd-accent); }
  .rd-btn:disabled { opacity: 0.5; cursor: not-allowed; }
  .rd-btn.primary {
    background: var(--rd-accent);
    border-color: var(--rd-accent);
  }
  .rd-btn.primary:hover {
    background: var(--rd-ink);
    border-color: var(--rd-ink);
  }
  .rd-btn.subtle {
    background: transparent;
    color: var(--rd-ink);
    border-color: var(--rd-line);
  }
  .rd-btn.subtle:hover {
    background: var(--rd-paper);
    border-color: var(--rd-ink);
    color: var(--rd-ink);
  }

  .rd-input, .rd-textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--rd-line);
    color: var(--rd-ink);
    font-family: var(--rd-serif-cn);
    font-size: 15px;
    padding: 8px 4px;
    outline: none;
    transition: border-color 0.2s ease;
  }
  .rd-input:focus, .rd-textarea:focus { border-bottom-color: var(--rd-accent); }
  .rd-input::placeholder, .rd-textarea::placeholder {
    color: var(--rd-ink-mute);
    font-family: var(--rd-serif-cn);
    letter-spacing: 0.06em;
  }
  .rd-textarea {
    min-height: 96px;
    resize: vertical;
    line-height: 1.8;
  }

  .btn {
    border: 1px solid var(--ui-fill);
    background: var(--ui-fill);
    color: #f4f1ea;
    min-height: var(--ui-control-h);
    padding: 8px 16px;
    font-size: 14px;
    letter-spacing: 0.12em;
    cursor: pointer;
    border-radius: var(--ui-radius);
  }
  .btn:disabled { opacity: 0.55; cursor: not-allowed; }
  .btn:hover { background: var(--ui-fill-hover); border-color: var(--ui-fill-hover); }
  .btn.subtle {
    border-color: var(--ui-border);
    background: var(--ui-bg);
    color: var(--ui-text-soft);
  }
  .btn.subtle:hover {
    border-color: var(--ui-accent);
    color: var(--ui-accent);
    background: #fff8f5;
  }
  .btn.compose-trigger {
    border-color: var(--ui-border);
    background: var(--ui-bg);
    color: var(--ui-text-soft);
    min-height: var(--ui-control-h);
    padding: 0 12px;
    border-radius: var(--ui-radius);
    width: auto;
    flex: 0 0 auto;
  }
  .btn.compose-trigger:hover {
    background: #ede7d8;
    color: #1a1a1a;
  }
  .section-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 2px;
  }
  .tab {
    border: 1px solid var(--rd-line-soft);
    background: var(--rd-paper);
    color: var(--rd-ink-soft);
    flex: 0 0 auto;
    min-width: 110px;
    min-height: 38px;
    padding: 6px 12px;
    font-size: 13px;
    letter-spacing: 0.08em;
    cursor: pointer;
    border-radius: var(--rd-radius-lg);
    white-space: nowrap;
    font-family: var(--rd-serif-cn);
    transition: all 0.2s ease;
  }
  .tab:hover {
    border-color: var(--rd-line);
    color: var(--rd-ink);
    background: var(--rd-bg-soft);
  }
  .tab.active {
    background: var(--rd-accent);
    color: var(--rd-bg-soft);
    border-color: var(--rd-accent);
  }
  .filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
  }
  .filters .select, .filters .input { width: auto; min-width: 170px; flex: 1; }
  .forum-kw-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    align-items: center;
  }
  .forum-kw-row .rd-input {
    flex: 1;
    min-width: 140px;
    margin-bottom: 0;
    padding-bottom: 6px;
  }
  .post-book-tag-input.rd-input {
    padding-left: 4px;
    padding-bottom: 6px;
  }
  .msg {
    min-height: 20px;
    color: #7a6f5c;
    font-size: 13px;
    margin-bottom: 10px;
  }
  .maintenance-banner {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #6d604d;
    letter-spacing: 0.04em;
  }
  .post {
    border: 1px solid #e4dbc9;
    background: #fffcf7;
    padding: 12px;
    position: relative;
    padding-right: 42px;
    margin-bottom: 10px;
  }
  .post.target-focus {
    border-color: #9f6d50;
    box-shadow: 0 0 0 2px rgba(159, 109, 80, 0.2);
    animation: post-focus-pulse 1.3s ease-out 1;
  }
  @keyframes post-focus-pulse {
    0% { box-shadow: 0 0 0 0 rgba(159, 109, 80, 0.45); }
    100% { box-shadow: 0 0 0 10px rgba(159, 109, 80, 0); }
  }
  .meta {
    font-size: 12px;
    color: #8a7d6a;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
  }
  .body { white-space: pre-wrap; word-break: break-word; font-size: 15px; color: #2a2620; }
  .image {
    margin-top: 8px;
    max-width: 100%;
    border: 1px solid #d7ccb8;
  }
  .actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
  .post-book-tag-line {
    margin-top: 8px;
    margin-bottom: 2px;
  }
  .post-book-tag-link {
    border: 1px solid var(--ui-accent-soft);
    background: #fff6f1;
    color: var(--ui-accent);
    min-height: 24px;
    border-radius: 999px;
    padding: 0 10px;
    font-size: 11px;
    letter-spacing: 0.03em;
    cursor: pointer;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .post-book-tag-link:hover {
    background: #fcece6;
    color: #b85c38;
  }
  .actions .btn {
    min-height: 32px;
    padding: 5px 12px;
    font-size: 12px;
    letter-spacing: 0.06em;
  }
  .admin-book-tag-label {
    color: #6a5f4c;
    font-size: 12px;
    letter-spacing: 0.04em;
    align-self: center;
    white-space: nowrap;
  }
  .admin-book-tag-wrap {
    flex: 1 1 220px;
    min-width: 180px;
    position: relative;
  }
  .admin-book-tag-field-wrap {
    width: 100%;
    position: relative;
  }
  .admin-book-tag-input {
    width: 100%;
  }
  .admin-book-tag-panel {
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    z-index: 16;
    padding: 8px;
  }
  .admin-ops-bar {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
  }
  .admin-ops-link {
    border: none;
    background: transparent;
    color: #7a6f5c;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    padding: 0;
    min-height: 22px;
    letter-spacing: 0;
    line-height: 1.35;
    font-family: inherit;
  }
  .admin-ops-link:hover {
    color: #5f5342;
  }
  .admin-ops-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    margin-top: 8px;
    border: 1px dashed #dccfb9;
    background: #fdf9f1;
  }
  .admin-ops-wrap[hidden] {
    display: none !important;
  }
  .reply-admin-ops,
  .post-admin-ops {
    width: 100%;
  }
  .actions .admin-section-select {
    width: auto;
    min-width: 170px;
    flex: 1 1 180px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 13px;
  }
  .replies {
    display: none;
    margin-top: 10px;
    border-top: 1px dashed #dccfb9;
    padding-top: 8px;
  }
  .replies.visible { display: block; }
  .reply {
    margin-top: 6px;
    padding: 8px;
    background: #faf6ee;
    border: 1px solid #eee2cf;
    position: relative;
    padding-right: 38px;
  }
  .reply[data-depth="1"] {
    background: #f4efe8;
    border-color: #ddd2c6;
  }
  .reply[data-depth="2"],
  .reply[data-depth="3"],
  .reply[data-depth="4"],
  .reply[data-depth="5"] {
    background: #f1ebe3;
    border-color: #d7c8b8;
  }
  .reply-children {
    margin-top: 8px;
    margin-left: 16px;
    border-left: 2px solid #eadfcf;
    padding-left: 10px;
  }
  .reply-form { margin-top: 8px; display: none; }
  .reply-form.visible { display: block; }
  .reply-form.inline { margin-top: 8px; }
  .hint { font-size: 12px; color: #8a7d6a; margin-top: 4px; }
  .report-menu-wrap {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
  }
  .report-menu-toggle {
    border: none;
    background: rgba(255, 250, 244, 0.96);
    color: #7d715f;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 999px;
    opacity: 1 !important;
  }
  .post .report-menu-wrap,
  .reply .report-menu-wrap {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  .post .report-menu-toggle,
  .reply .report-menu-toggle {
    opacity: 1 !important;
  }
  .report-menu-wrap[data-open="1"] .report-menu-toggle {
    opacity: 1;
  }
  .report-menu {
    position: absolute;
    right: 0;
    top: 26px;
    min-width: 96px;
    border: 1px solid #dfd4c0;
    background: rgba(255, 253, 250, 0.98);
    box-shadow: 0 10px 24px rgba(36, 28, 18, 0.12);
    padding: 4px;
    border-radius: 10px;
  }
  .report-menu[hidden] { display: none !important; }
  .report-menu-item {
    width: 100%;
    border: none;
    background: transparent;
    color: #6f5c47;
    padding: 7px 8px;
    text-align: left;
    cursor: pointer;
    font-size: 12px;
    border-radius: 8px;
  }
  .report-menu-item:hover { background: #f4ede1; }
  .forum-info-bar {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px dashed #dccfb9;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    justify-content: center;
    align-items: center;
  }
  .forum-info-sep {
    color: #a89882;
    font-size: 14px;
    user-select: none;
    line-height: 1;
    padding: 0 4px;
  }
  .forum-info-pill {
    border: none;
    background: transparent;
    color: #6a5f4c;
    min-height: 0;
    padding: 4px 2px;
    font-size: 14px;
    letter-spacing: 0.12em;
    cursor: pointer;
    border-radius: 0;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-color: #c9bcaa;
    text-decoration-thickness: 1px;
  }
  .forum-info-pill:hover {
    color: #2a2620;
    text-decoration-color: #8a7a62;
  }
  .forum-info-pill:focus-visible {
    outline: 2px solid #8a7a62;
    outline-offset: 3px;
    border-radius: 2px;
  }
  .guest-readonly-banner {
    margin-top: 12px;
    border: 1px solid #cd6454;
    background:
      linear-gradient(135deg, rgba(205, 100, 84, 0.12), rgba(205, 100, 84, 0.04)),
      #fff9f8;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .guest-readonly-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #cd6454;
    background: #fff0ed;
    color: #b94433;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex: 0 0 auto;
    line-height: 1;
  }
  .guest-readonly-copy {
    flex: 1 1 auto;
    min-width: 0;
  }
  .guest-readonly-title {
    color: #8f3528;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
  }
  .guest-readonly-text {
    margin-top: 4px;
    color: #7f3b31;
    font-size: 13px;
    line-height: 1.6;
  }
  .guest-readonly-login-btn {
    border: 1px solid #bc4d3b;
    background: #bc4d3b;
    color: #fff8f6;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.06em;
    cursor: pointer;
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .guest-readonly-login-btn:hover {
    background: #a63f30;
    border-color: #a63f30;
  }
  .guest-readonly-login-btn:focus-visible {
    outline: 2px solid #a63f30;
    outline-offset: 2px;
  }
  .info-dialog {
    width: min(640px, 100%);
    max-height: calc(100vh - 28px);
    display: flex;
    flex-direction: column;
    padding-bottom: 12px;
  }
  .info-modal-frame-wrap {
    flex: 1 1 auto;
    min-height: min(420px, 55vh);
    margin-top: 8px;
    border: 1px solid #e8dcc8;
    background: #fff;
    overflow: hidden;
  }
  .info-modal-frame {
    display: block;
    width: 100%;
    height: min(520px, calc(100vh - 140px));
    border: 0;
  }
  .community-guideline-dialog {
    width: min(680px, 100%);
    max-height: calc(100vh - 28px);
    display: flex;
    flex-direction: column;
  }
  .community-guideline-body {
    margin-top: 8px;
    border: 1px solid #e8dcc8;
    background: #fff;
    padding: 12px 14px;
    overflow: auto;
    max-height: min(58vh, 560px);
    font-size: 14px;
    line-height: 1.85;
    color: #4f4536;
  }
  .community-guideline-body p + p {
    margin-top: 10px;
  }
  .community-guideline-list {
    margin: 8px 0 0;
    padding-left: 20px;
  }
  .community-guideline-list li + li {
    margin-top: 6px;
  }
  .community-guideline-gate {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #dccfb9;
  }
  .community-guideline-agree-btn {
    width: auto;
    min-width: 220px;
    padding: 0 18px;
    border-radius: 999px;
  }
  .community-guideline-agree-btn:disabled {
    background: #efe8dc;
    color: #b4a797;
    border-color: #dfd3c0;
    cursor: not-allowed;
  }
  .community-guideline-hint {
    margin-top: 6px;
    color: #8a7d6a;
    min-height: 18px;
    font-size: 12px;
    letter-spacing: 0.03em;
  }
  .community-guideline-close[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
  }
  @media (min-width: 760px) {
    .app { padding: 24px 20px 40px; }
    .section-tabs {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      overflow: visible;
    }
    .tab { min-width: 0; white-space: normal; }
  }
  @media (max-width: 640px) {
    .topbar {
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
    }
    .title-wrap {
      order: 2;
      width: 100%;
    }
    .home-btn {
      order: 1;
      width: 100%;
    }
    .auth-entry {
      order: 3;
      width: 100%;
      justify-content: center;
    }
    .filters .select, .filters .input {
      min-width: 100%;
      flex: 1 1 100%;
    }
    .btn {
      width: 100%;
    }
    .actions .btn {
      flex: 1 1 calc(50% - 6px);
      width: auto;
    }
    .actions .admin-section-select {
      min-width: 100%;
      flex: 1 1 100%;
      width: 100%;
    }
    .reply-form .btn {
      width: 100%;
    }
    .forum-kw-row .btn.forum-kw-btn {
      width: auto;
      flex: 0 0 auto;
    }
    .composer-head .compose-trigger {
      width: auto;
      flex: 0 0 auto;
    }
    .forum-info-bar .forum-info-pill {
      width: auto;
      flex: 0 1 auto;
    }
    .forum-info-bar {
      margin-left: -6px;
      margin-right: -6px;
      gap: 6px 6px;
    }
    .forum-info-sep {
      padding: 0 2px;
    }
    .guest-readonly-banner {
      align-items: flex-start;
      gap: 10px;
      padding: 10px 11px;
    }
    .guest-readonly-login-btn {
      margin-top: 2px;
      padding: 0 12px;
    }
    .auth-dialog {
      padding: 12px;
    }
    .post-dialog {
      padding: 12px;
    }
  }
