/* _content/LinguaNote/Components/Pages/Billing.razor.rz.scp.css */
.billing-page .pricing-switcher[b-v0o0ivvqtb] {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.plan-tabs[b-v0o0ivvqtb] {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: #eef2ff;
    gap: 6px;
}

.plan-tab[b-v0o0ivvqtb] {
    border: none;
    background: transparent;
    color: #334155;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.plan-tab.active[b-v0o0ivvqtb] {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.pricing-card[b-v0o0ivvqtb] {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    background: #ffffff;
    color: #0f172a;
}

.pricing-card-pro[b-v0o0ivvqtb] {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.pricing-card h4[b-v0o0ivvqtb] {
    color: #0f172a;
    font-weight: 700;
}

.pricing-card p[b-v0o0ivvqtb] {
    color: #334155 !important;
    font-weight: 500;
}

.price-tag[b-v0o0ivvqtb] {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.price-tag span[b-v0o0ivvqtb] {
    font-size: 0.95rem;
    font-weight: 500;
    color: #64748b;
}

.feature-list[b-v0o0ivvqtb] {
    margin: 0;
    padding-left: 1.1rem;
}

.feature-list li + li[b-v0o0ivvqtb] {
    margin-top: 0.45rem;
}

.feature-list li[b-v0o0ivvqtb] {
    color: #1e293b;
    line-height: 1.6;
    font-weight: 500;
}

.plan-audience[b-v0o0ivvqtb] {
    margin-top: 0.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #1e293b !important;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.plan-audience-label[b-v0o0ivvqtb] {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #1d4ed8;
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 0.12rem 0.45rem;
    line-height: 1.3;
}

.btn-cancel-prominent[b-v0o0ivvqtb] {
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(220, 53, 69, 0.32);
}


.billing-page .pricing-card[b-v0o0ivvqtb],
.billing-page .pricing-card h4[b-v0o0ivvqtb],
.billing-page .pricing-card .feature-list li[b-v0o0ivvqtb],
.billing-page .pricing-card .plan-audience[b-v0o0ivvqtb],
.billing-page .pricing-card .price-tag[b-v0o0ivvqtb],
.billing-page .pricing-card .price-tag span[b-v0o0ivvqtb] {
    color: #111827 !important;
}

.billing-page .pricing-card .feature-list li[b-v0o0ivvqtb]::marker {
    color: #6b7280;
}

body.dark-mode .billing-page .pricing-switcher[b-v0o0ivvqtb] {
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    border: 1px solid #334155;
}

body.dark-mode .billing-page .plan-tabs[b-v0o0ivvqtb] {
    background: #0f172a;
}

body.dark-mode .billing-page .plan-tab[b-v0o0ivvqtb] {
    color: #cbd5e1;
}

body.dark-mode .billing-page .plan-tab.active[b-v0o0ivvqtb] {
    background: #60a5fa;
    color: #0f172a;
    box-shadow: 0 8px 18px rgba(96, 165, 250, 0.24);
}

body.dark-mode .billing-page .pricing-card[b-v0o0ivvqtb] {
    background: #111827;
    border-color: #334155;
}

body.dark-mode .billing-page .pricing-card-pro[b-v0o0ivvqtb] {
    background: linear-gradient(180deg, #172554 0%, #111827 100%);
    border-color: #60a5fa;
}

body.dark-mode .billing-page .pricing-card[b-v0o0ivvqtb],
body.dark-mode .billing-page .pricing-card h4[b-v0o0ivvqtb],
body.dark-mode .billing-page .pricing-card .feature-list li[b-v0o0ivvqtb],
body.dark-mode .billing-page .pricing-card .plan-audience[b-v0o0ivvqtb],
body.dark-mode .billing-page .pricing-card .price-tag[b-v0o0ivvqtb] {
    color: #f8fafc !important;
}

body.dark-mode .billing-page .pricing-card .price-tag span[b-v0o0ivvqtb],
body.dark-mode .billing-page .pricing-card p[b-v0o0ivvqtb],
body.dark-mode .billing-page .pricing-card .feature-list li[b-v0o0ivvqtb]::marker {
    color: #cbd5e1 !important;
}

body.dark-mode .billing-page .plan-audience[b-v0o0ivvqtb] {
    background: #1e293b;
}

body.dark-mode .billing-page .plan-audience-label[b-v0o0ivvqtb] {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(96, 165, 250, 0.42);
}
/* _content/LinguaNote/Components/Pages/ContentAssets.razor.rz.scp.css */
.content-assets-page[b-ea2h3he6b0] {
    max-width: 1120px;
}

.content-assets-header[b-ea2h3he6b0] {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.content-assets-kicker[b-ea2h3he6b0] {
    margin: 0 0 .25rem;
    color: #52616f;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.content-assets-header h1[b-ea2h3he6b0],
.content-assets-panel h2[b-ea2h3he6b0] {
    margin: 0;
    color: #1d2733;
}

.content-assets-header h1[b-ea2h3he6b0] {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 800;
}

.content-assets-muted[b-ea2h3he6b0] {
    color: #687687;
}

.content-assets-panel[b-ea2h3he6b0] {
    padding: 1rem;
    border: 1px solid #d8dee7;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(20, 33, 48, .06);
}

.asset-generator[b-ea2h3he6b0] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: .85rem;
}

.asset-message[b-ea2h3he6b0] {
    margin: .85rem 0 0;
    color: #7c3aed;
    font-weight: 700;
}

.topic-idea-list[b-ea2h3he6b0] {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1rem;
}

.topic-idea[b-ea2h3he6b0] {
    border: 1px solid #d8dee7;
    border-radius: 999px;
    background: #f8fafc;
    color: #1f2937;
    padding: .48rem .75rem;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
}

.topic-idea:hover[b-ea2h3he6b0],
.topic-idea:focus-visible[b-ea2h3he6b0] {
    border-color: #7c3aed;
    background: #f5f3ff;
    color: #7c3aed;
}

.content-assets-list[b-ea2h3he6b0] {
    display: grid;
    gap: 1rem;
}

.asset-editor[b-ea2h3he6b0] {
    display: grid;
    gap: 1rem;
}

.asset-editor-header[b-ea2h3he6b0] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.asset-editor-header h2[b-ea2h3he6b0] {
    margin-top: .3rem;
    font-size: 1.15rem;
}

.asset-status[b-ea2h3he6b0] {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: .78rem;
    font-weight: 800;
}

.asset-status.published[b-ea2h3he6b0] {
    background: #ede9fe;
    color: #5b21b6;
}

.asset-actions[b-ea2h3he6b0] {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .45rem;
}

.asset-form-grid[b-ea2h3he6b0] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.asset-form-grid label[b-ea2h3he6b0] {
    display: grid;
    gap: .3rem;
}

.asset-form-grid span[b-ea2h3he6b0] {
    color: #52616f;
    font-size: .82rem;
    font-weight: 800;
}

.asset-form-wide[b-ea2h3he6b0] {
    grid-column: 1 / -1;
}

.asset-body[b-ea2h3he6b0] {
    min-height: 260px;
}

@media (max-width: 760px) {
    .content-assets-header[b-ea2h3he6b0],
    .asset-editor-header[b-ea2h3he6b0] {
        align-items: flex-start;
        flex-direction: column;
    }

    .asset-generator[b-ea2h3he6b0],
    .asset-form-grid[b-ea2h3he6b0] {
        grid-template-columns: 1fr;
    }

    .asset-actions[b-ea2h3he6b0] {
        justify-content: flex-start;
    }
}
/* _content/LinguaNote/Components/Pages/Dashboard.razor.rz.scp.css */
.dashboard-shell[b-p865t2d1aj] {
  max-width: 920px;
  margin: 0 auto;
}

.dashboard-hero[b-p865t2d1aj] {
  background: linear-gradient(135deg, #1f2a78 0%, #5f6cff 45%, #40c9ff 100%);
  color: #fff;
  border-radius: 1.25rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 14px 35px rgba(32, 62, 161, 0.28);
}

.dashboard-kicker[b-p865t2d1aj] {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.86;
}

.hero-sub[b-p865t2d1aj] {
  opacity: 0.9;
  font-size: 0.92rem;
}

.dashboard-hero h2[b-p865t2d1aj],
.dashboard-hero h2 i[b-p865t2d1aj],
.dashboard-kicker[b-p865t2d1aj],
.hero-sub[b-p865t2d1aj] {
  color: #fff !important;
}

.loading-card[b-p865t2d1aj],
.latest-card[b-p865t2d1aj],
.metric-card[b-p865t2d1aj] {
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 1rem;
}

.loading-card[b-p865t2d1aj] {
  background: #fff;
  padding: 1rem;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 8px 24px rgba(30, 35, 90, 0.14);
}

.activation-card[b-p865t2d1aj] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid #c7d2fe;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
  box-shadow: 0 18px 40px rgba(67, 56, 202, 0.14);
}

.activation-kicker[b-p865t2d1aj] {
  color: #4f46e5;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.activation-card h2[b-p865t2d1aj] {
  margin: 0.35rem 0 0.5rem;
  color: #0f172a;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  font-weight: 850;
}

.activation-card p[b-p865t2d1aj] {
  margin: 0;
  color: #475569;
  line-height: 1.65;
}

.activation-steps[b-p865t2d1aj] {
  display: flex;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.activation-steps li[b-p865t2d1aj] {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.activation-steps strong[b-p865t2d1aj] {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
}

.activation-steps .is-ready strong[b-p865t2d1aj] {
  background: #4f46e5;
  color: #fff;
}

.activation-cta[b-p865t2d1aj] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.15rem;
  border-radius: 0.9rem;
  background: #4f46e5;
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.activation-cta:hover[b-p865t2d1aj],
.activation-cta:focus[b-p865t2d1aj] {
  background: #4338ca;
  color: #fff;
}

.streak-highlight[b-p865t2d1aj] {
  background: linear-gradient(180deg, #ffffff 0%, #f3f3f3 100%);
  color: #111111;
  border-radius: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid #dcdcdc;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.today-mission-panel[b-p865t2d1aj],
.coach-card[b-p865t2d1aj] {
  background: #ffffff;
  border: 1px solid #e6ecff;
  border-radius: 1.1rem;
  box-shadow: 0 12px 28px rgba(28, 44, 88, 0.11);
  color: #142245;
}

.today-mission-panel[b-p865t2d1aj] {
  padding: 1rem;
}

.today-mission-header[b-p865t2d1aj] {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.today-mission-kicker[b-p865t2d1aj] {
  color: #4f46e5;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.today-mission-title[b-p865t2d1aj] {
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 850;
}

.today-mission-sub[b-p865t2d1aj] {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

.today-mission-progress[b-p865t2d1aj] {
  flex: 0 0 auto;
  min-width: 4.2rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-weight: 850;
  text-align: center;
}

.today-mission-list[b-p865t2d1aj] {
  display: grid;
  gap: 0.55rem;
}

.today-mission-item[b-p865t2d1aj] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  min-height: 4rem;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #f8fafc;
  color: #17264a;
  text-decoration: none;
}

.today-mission-item:hover[b-p865t2d1aj],
.today-mission-item:focus[b-p865t2d1aj] {
  border-color: #c7d2fe;
  background: #f8faff;
  color: #17264a;
  text-decoration: none;
}

.today-mission-item.is-done[b-p865t2d1aj] {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.today-mission-item.is-done .today-mission-icon[b-p865t2d1aj] {
  background: #e0e7ff;
}

.today-mission-item.is-done .today-mission-icon img[b-p865t2d1aj] {
  filter: invert(56%) sepia(89%) saturate(456%) hue-rotate(91deg) brightness(84%) contrast(88%);
}

.today-mission-icon[b-p865t2d1aj] {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: #eef2ff;
  color: #4f46e5;
}

.today-mission-icon img[b-p865t2d1aj] {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  filter: invert(31%) sepia(98%) saturate(1654%) hue-rotate(236deg) brightness(91%) contrast(93%);
}

.today-mission-copy[b-p865t2d1aj] {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.today-mission-copy strong[b-p865t2d1aj] {
  color: #0f172a;
  line-height: 1.3;
}

.today-mission-copy small[b-p865t2d1aj] {
  color: #64748b;
  line-height: 1.4;
}

.today-mission-state[b-p865t2d1aj] {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  color: #4f46e5;
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

.today-mission-state img[b-p865t2d1aj] {
  display: block;
  width: 0.95rem;
  height: 0.95rem;
  filter: invert(56%) sepia(89%) saturate(456%) hue-rotate(91deg) brightness(84%) contrast(88%);
}

.today-mission-item.is-done .today-mission-state[b-p865t2d1aj] {
  color: #4f46e5;
}

.streak-highlight__header[b-p865t2d1aj] {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
}

.streak-highlight__eyebrow[b-p865t2d1aj] {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666666;
  opacity: 1;
}

.streak-highlight__title[b-p865t2d1aj] {
  color: #111111;
  font-size: clamp(1.3rem, 6vw, 1.8rem);
}

.streak-highlight__meta[b-p865t2d1aj] {
  color: #555555;
  font-size: 0.92rem;
}

.streak-highlight__cta[b-p865t2d1aj] {
  white-space: nowrap;
  border-radius: 0.95rem;
  padding-inline: 1.25rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.streak-share-panel[b-p865t2d1aj] {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid #d7d7d7;
}

.streak-share-toggle[b-p865t2d1aj] {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0;
  color: #18212f;
  text-decoration: none;
  font-weight: 700;
}

.streak-share-toggle:hover[b-p865t2d1aj],
.streak-share-toggle:focus[b-p865t2d1aj] {
  color: #111111;
  text-decoration: none;
}

.streak-share-toggle__label[b-p865t2d1aj] {
  font-size: 0.95rem;
}

.streak-share-toggle__meta[b-p865t2d1aj] {
  color: #5b6473;
  font-size: 0.82rem;
  font-weight: 500;
}

.streak-share-toggle i[b-p865t2d1aj] {
  margin-left: auto;
  font-size: 0.95rem;
}

.streak-share-panel__body[b-p865t2d1aj] {
  margin-top: 0.75rem;
}

.streak-share-copy[b-p865t2d1aj] {
  color: #333333;
  font-size: 0.95rem;
  line-height: 1.5;
}

.streak-share-guide[b-p865t2d1aj] {
  color: rgba(17, 24, 39, 0.64);
  font-size: 0.82rem;
  line-height: 1.45;
}

.streak-share-actions[b-p865t2d1aj] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.streak-share-btn[b-p865t2d1aj] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex: 1 1 13rem;
  white-space: nowrap;
  min-height: 3rem;
  border-radius: 0.95rem;
  border: 1px solid #d5dbe8;
  background: #ffffff;
  color: #10224f;
  font-weight: 700;
  padding-inline: 1rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.streak-share-btn:hover[b-p865t2d1aj],
.streak-share-btn:focus[b-p865t2d1aj] {
  background: #f4f7fb;
  border-color: #bfc8d8;
  color: #10224f;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.streak-share-btn.btn-dark[b-p865t2d1aj],
.streak-share-btn.btn-outline-dark[b-p865t2d1aj],
.streak-share-btn--download[b-p865t2d1aj] {
  background: #ffffff;
  border-color: #d5dbe8;
  color: #10224f;
}

.streak-share-btn.btn-dark:hover[b-p865t2d1aj],
.streak-share-btn.btn-dark:focus[b-p865t2d1aj],
.streak-share-btn.btn-outline-dark:hover[b-p865t2d1aj],
.streak-share-btn.btn-outline-dark:focus[b-p865t2d1aj],
.streak-share-btn--download:hover[b-p865t2d1aj],
.streak-share-btn--download:focus[b-p865t2d1aj] {
  background: #f4f7fb;
  border-color: #bfc8d8;
  color: #10224f;
}

.streak-share-icon[b-p865t2d1aj] {
  width: 1rem;
  height: 1rem;
  display: block;
  filter: brightness(0);
}

.streak-share-textarea[b-p865t2d1aj] {
  background: #ffffff;
  color: #1f1f1f;
  border: 1px solid #cfcfcf;
  border-radius: 1rem;
  line-height: 1.7;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.streak-share-status[b-p865t2d1aj] {
  color: #222222;
  background: #ececec;
  border-color: #d8d8d8;
}

.metrics-grid[b-p865t2d1aj] {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card[b-p865t2d1aj] {
  padding: 0.9rem 1rem;
  color: #15203a;
  background: #f7f9ff;
  box-shadow: 0 10px 24px rgba(24, 35, 77, 0.12);
}

.metric-card--minutes[b-p865t2d1aj],
.metric-card--words[b-p865t2d1aj],
.metric-card--streak[b-p865t2d1aj],
.metric-card--entries[b-p865t2d1aj] {
  background: #f7f9ff;
}

.metric-label[b-p865t2d1aj] {
  margin-bottom: 0.35rem;
  font-size: 0.86rem;
  color: #4d5a80;
}

.metric-value[b-p865t2d1aj] {
  font-size: clamp(1.7rem, 8vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

.metric-value span[b-p865t2d1aj] {
  font-size: 0.9rem;
  font-weight: 500;
}

.metric-card small[b-p865t2d1aj] {
  color: #243457;
}

.latest-section[b-p865t2d1aj] {
  background: #f7f9ff;
  border-radius: 1.25rem;
  padding: 1rem;
  box-shadow: 0 12px 28px rgba(28, 44, 88, 0.12);
}

.section-title-wrap[b-p865t2d1aj] {
  border-bottom: 1px solid #eef1ff;
  padding-bottom: 0.55rem;
}

.latest-card[b-p865t2d1aj] {
  background: #eef2ff;
  padding: 1rem;
  min-width: 0;
}

.latest-body[b-p865t2d1aj] {
  white-space: pre-wrap;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.status-pill[b-p865t2d1aj] {
  display: inline-flex;
  align-items: center;
  font-size: 0.84rem;
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
}

.status-pill--success[b-p865t2d1aj] {
  background: #eef2ff;
  color: #4338ca;
}

.status-pill--warning[b-p865t2d1aj] {
  background: #fff5dd;
  color: #b45309;
}

.empty-state[b-p865t2d1aj] {
  color: #5f6b8f;
}

@media (min-width: 768px) {
  .dashboard-hero[b-p865t2d1aj] { padding: 1.35rem 1.5rem; }
  .streak-highlight[b-p865t2d1aj] { padding: 1.2rem 1.4rem; }
  .metrics-grid[b-p865t2d1aj] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .metrics-grid[b-p865t2d1aj] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.chart-grid[b-p865t2d1aj] {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.chart-card[b-p865t2d1aj] {
  background: #f7f9ff;
  border-radius: 1.1rem;
  padding: 1rem;
  box-shadow: 0 12px 28px rgba(28, 44, 88, 0.12);
  border: 1px solid #e9edff;
  color: #1f2f57;
}

.chart-card h5[b-p865t2d1aj],
.latest-section h5[b-p865t2d1aj] {
  color: #142245;
}

/* Ensure key section headings remain readable on light card backgrounds */
.chart-card h5[b-p865t2d1aj],
.chart-card h5 i[b-p865t2d1aj],
.latest-section h5[b-p865t2d1aj],
.latest-section h5 i[b-p865t2d1aj] {
  color: #142245 !important;
}

.chart-card .text-muted[b-p865t2d1aj],
.latest-section .text-muted[b-p865t2d1aj],
.latest-card .text-muted[b-p865t2d1aj],
.latest-created[b-p865t2d1aj] {
  color: #3f4f77 !important;
}

.chart-card small[b-p865t2d1aj],
.chart-card .text-muted[b-p865t2d1aj],
.latest-card .text-muted[b-p865t2d1aj] {
  color: #5f6b8f !important;
}

.latest-card[b-p865t2d1aj],
.latest-body[b-p865t2d1aj] {
  color: #17264a;
}

.metric-value[b-p865t2d1aj],
.metric-value span[b-p865t2d1aj],
.metric-card small[b-p865t2d1aj],
.metric-label[b-p865t2d1aj],
.chart-card[b-p865t2d1aj],
.legend-label[b-p865t2d1aj],
.legend-value[b-p865t2d1aj],
.legend-percent[b-p865t2d1aj],
.bar-day[b-p865t2d1aj],
.bar-count[b-p865t2d1aj],
.latest-section h5[b-p865t2d1aj],
.latest-card[b-p865t2d1aj],
.latest-body[b-p865t2d1aj] {
  text-shadow: none;
}

.donut-wrap[b-p865t2d1aj] {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
}

.status-donut[b-p865t2d1aj] {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto;
}

.donut-hole[b-p865t2d1aj] {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.donut-hole strong[b-p865t2d1aj] {
  font-size: 1.65rem;
  line-height: 1.1;
  color: #1a2550;
}

.donut-hole small[b-p865t2d1aj] {
  color: #4d5a80;
  font-weight: 600;
}

.legend-list[b-p865t2d1aj] { list-style: none; padding: 0; margin: 0; }
.legend-list li[b-p865t2d1aj] {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
  color: #243457;
  font-size: 0.98rem;
}
.legend-dot[b-p865t2d1aj] { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.legend-dot--new[b-p865t2d1aj] { background: #7c8aa8; }
.legend-dot--learning[b-p865t2d1aj] { background: #58a6ff; }
.legend-dot--mastered[b-p865t2d1aj] { background: #8b5cf6; }
.legend-label[b-p865t2d1aj] { font-weight: 600; }
.legend-value[b-p865t2d1aj] { font-variant-numeric: tabular-nums; color: #142245; }
.legend-percent[b-p865t2d1aj] { color: #5f6b8f; font-size: 0.9rem; }

.mini-bars[b-p865t2d1aj] {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
  min-height: 170px;
}

.bar-item[b-p865t2d1aj] { display: flex; flex-direction: column; align-items: center; gap: 0.28rem; }
.bar-track[b-p865t2d1aj] {
  width: 100%;
  height: 120px;
  background: #edf1ff;
  border-radius: 0.55rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.bar-fill[b-p865t2d1aj] {
  width: 100%;
  background: linear-gradient(180deg, #7e8eff 0%, #4f68ff 100%);
  border-radius: 0.55rem;
}

.bar-day[b-p865t2d1aj] {
  color: #5b688b;
  font-weight: 600;
}

.bar-count[b-p865t2d1aj] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #1f2f57;
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.score-trend-bars[b-p865t2d1aj] {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  min-height: 116px;
}

.score-trend-item[b-p865t2d1aj] {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  gap: 0.26rem;
}

.score-trend-value[b-p865t2d1aj] {
  color: #142245;
  font-size: 0.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.score-trend-bar-track[b-p865t2d1aj] {
  width: 100%;
  height: 72px;
  background: #edf1ff;
  border-radius: 0.55rem 0.55rem 0 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.score-trend-bar-fill[b-p865t2d1aj] {
  width: 100%;
  background: linear-gradient(180deg, #9f7aea 0%, #7c3aed 100%);
  border-radius: 0.55rem 0.55rem 0 0;
}

.score-trend-label[b-p865t2d1aj] {
  color: #5b688b;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.learning-coach-grid[b-p865t2d1aj] {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.coach-card[b-p865t2d1aj] {
  padding: 1rem;
}

.coach-card-header[b-p865t2d1aj] {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.coach-card-header h5[b-p865t2d1aj],
.coach-card-header h5 i[b-p865t2d1aj] {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #142245 !important;
}

.coach-title-icon[b-p865t2d1aj] {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  filter: invert(31%) sepia(98%) saturate(1654%) hue-rotate(236deg) brightness(91%) contrast(93%);
}

.coach-card-header small[b-p865t2d1aj] {
  color: #64748b;
  font-weight: 650;
}

.weakness-chip-list[b-p865t2d1aj] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.weakness-chip[b-p865t2d1aj] {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.84rem;
  font-weight: 800;
}

.coach-note[b-p865t2d1aj] {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.55;
}

.weekly-report-list[b-p865t2d1aj] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.weekly-report-list div[b-p865t2d1aj] {
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem;
  border-radius: 0.8rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.weekly-report-list span[b-p865t2d1aj] {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.weekly-report-list strong[b-p865t2d1aj] {
  color: #0f172a;
  font-size: 1.05rem;
}

@media (min-width: 900px) {
  .learning-coach-grid[b-p865t2d1aj] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.latest-created[b-p865t2d1aj] {
  font-size: 0.85rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

@media (min-width: 992px) {
  .chart-grid[b-p865t2d1aj] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .donut-wrap[b-p865t2d1aj] { grid-template-columns: auto 1fr; }
}

@media (max-width: 460px) {
  .legend-list li[b-p865t2d1aj] {
    grid-template-columns: auto 1fr auto;
    row-gap: 0.1rem;
  }

  .legend-percent[b-p865t2d1aj] {
    grid-column: 2 / 4;
    margin-left: 0.2rem;
  }
}


@media (max-width: 576px) {
  .dashboard-shell[b-p865t2d1aj] {
    padding-left: 0.6rem !important;
    padding-right: 0.6rem !important;
  }

  .activation-card[b-p865t2d1aj] {
    grid-template-columns: 1fr;
  }

  .activation-steps[b-p865t2d1aj] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .activation-steps li[b-p865t2d1aj] {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .activation-cta[b-p865t2d1aj] {
    width: 100%;
  }

  .dashboard-hero[b-p865t2d1aj] {
    border-radius: 1rem;
  }

  .dashboard-hero h2[b-p865t2d1aj] {
    font-size: 1.15rem;
    line-height: 1.35;
  }

  .metric-card[b-p865t2d1aj] {
    padding: 0.82rem 0.85rem;
  }

  .today-mission-header[b-p865t2d1aj],
  .coach-card-header[b-p865t2d1aj] {
    flex-direction: column;
  }

  .today-mission-item[b-p865t2d1aj] {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .today-mission-state[b-p865t2d1aj] {
    grid-column: 2;
  }

  .weekly-report-list[b-p865t2d1aj] {
    grid-template-columns: 1fr;
  }

  .metric-label[b-p865t2d1aj] {
    font-size: 0.8rem;
  }

  .metric-value[b-p865t2d1aj] {
    font-size: clamp(1.4rem, 7.2vw, 1.82rem);
  }

  .metrics-grid[b-p865t2d1aj] {
    gap: 0.7rem;
  }

  .chart-card[b-p865t2d1aj],
  .latest-section[b-p865t2d1aj],
  .latest-card[b-p865t2d1aj] {
    border-radius: 0.95rem;
    padding: 0.85rem;
  }

  .chart-card h5[b-p865t2d1aj] {
    font-size: 1rem;
  }

  .status-donut[b-p865t2d1aj] {
    width: 144px;
    height: 144px;
  }

  .donut-hole[b-p865t2d1aj] {
    width: 90px;
    height: 90px;
  }

  .donut-hole strong[b-p865t2d1aj] {
    font-size: 1.35rem;
  }

  .legend-list li[b-p865t2d1aj] {
    font-size: 0.92rem;
  }

  .mini-bars[b-p865t2d1aj] {
    gap: 0.3rem;
    min-height: 142px;
  }

  .bar-track[b-p865t2d1aj] {
    height: 98px;
  }

  .bar-day[b-p865t2d1aj] {
    font-size: 0.72rem;
  }

  .bar-count[b-p865t2d1aj] {
    min-width: 2.65rem;
    padding: 0.1rem 0.3rem;
    font-size: 0.68rem;
  }

  .score-trend-bars[b-p865t2d1aj] {
    gap: 0.3rem;
    min-height: 104px;
  }

  .score-trend-value[b-p865t2d1aj] {
    font-size: 0.64rem;
  }

  .score-trend-bar-track[b-p865t2d1aj] {
    height: 64px;
  }

  .score-trend-label[b-p865t2d1aj] {
    font-size: 0.7rem;
  }

  .latest-body[b-p865t2d1aj] {
    font-size: 0.94rem;
    line-height: 1.52;
  }
}

.home-shortcut-banner[b-p865t2d1aj] {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #fff5d8 0%, #ffe9b0 100%);
  color: #000000;
  border: 1px solid #ffd77b;
  border-radius: 1rem;
  padding: 0.8rem 0.95rem;
  box-shadow: 0 8px 20px rgba(122, 88, 0, 0.14);
}

.shortcut-content strong[b-p865t2d1aj] {
  font-size: 0.95rem;
  color: #000000;
}

.shortcut-content p[b-p865t2d1aj] {
  font-size: 0.86rem;
  line-height: 1.45;
  color: #000000;
}

.shortcut-close[b-p865t2d1aj] {
  white-space: nowrap;
  border-color: #f0cf75;
}

.shortcut-actions[b-p865t2d1aj] {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.shortcut-install[b-p865t2d1aj] {
  white-space: nowrap;
}

/* Dark mode overrides (Dashboard uses CSS isolation, so body selector must be global) */
body.dark-mode .loading-card[b-p865t2d1aj],
body.dark-mode .metric-card[b-p865t2d1aj],
body.dark-mode .chart-card[b-p865t2d1aj],
body.dark-mode .streak-highlight[b-p865t2d1aj],
body.dark-mode .today-mission-panel[b-p865t2d1aj],
body.dark-mode .coach-card[b-p865t2d1aj] {
  background: #111827;
  border-color: #334155;
  color: #e2e8f0;
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.45);
}

body.dark-mode .streak-highlight[b-p865t2d1aj] {
  background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
}

body.dark-mode .latest-section[b-p865t2d1aj],
body.dark-mode .latest-card[b-p865t2d1aj] {
  background-color: #0f172a !important;
}


body.dark-mode .latest-section[b-p865t2d1aj] {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%) !important;
  border: 1px solid #334155;
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.5);
}

body.dark-mode .latest-card[b-p865t2d1aj] {
  background: rgba(15, 23, 42, 0.88) !important;
  border: 1px solid #334155;
  border-radius: 1rem;
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.12);
}

body.dark-mode .latest-body[b-p865t2d1aj] {
  background: transparent !important;
  color: #f8fafc !important;
}

body.dark-mode .section-title-wrap[b-p865t2d1aj] {
  background: transparent !important;
  border-bottom-color: #334155;
}
body.dark-mode .metric-label[b-p865t2d1aj],
body.dark-mode .empty-state[b-p865t2d1aj],
body.dark-mode .latest-created[b-p865t2d1aj],
body.dark-mode .chart-card .text-muted[b-p865t2d1aj],
body.dark-mode .latest-section .text-muted[b-p865t2d1aj],
body.dark-mode .latest-card .text-muted[b-p865t2d1aj],
body.dark-mode .streak-highlight__eyebrow[b-p865t2d1aj],
body.dark-mode .streak-highlight__meta[b-p865t2d1aj],
body.dark-mode .streak-share-toggle__meta[b-p865t2d1aj],
body.dark-mode .streak-share-guide[b-p865t2d1aj],
body.dark-mode .legend-percent[b-p865t2d1aj] {
  color: #cbd5e1 !important;
}

body.dark-mode .chart-card h5[b-p865t2d1aj],
body.dark-mode .chart-card h5 i[b-p865t2d1aj],
body.dark-mode .latest-section h5[b-p865t2d1aj],
body.dark-mode .latest-section h5 i[b-p865t2d1aj],
body.dark-mode .today-mission-title[b-p865t2d1aj],
body.dark-mode .today-mission-copy strong[b-p865t2d1aj],
body.dark-mode .coach-card-header h5[b-p865t2d1aj],
body.dark-mode .coach-card-header h5 i[b-p865t2d1aj],
body.dark-mode .weekly-report-list strong[b-p865t2d1aj],
body.dark-mode .streak-highlight__title[b-p865t2d1aj],
body.dark-mode .streak-share-toggle[b-p865t2d1aj],
body.dark-mode .streak-share-copy[b-p865t2d1aj],
body.dark-mode .latest-body[b-p865t2d1aj],
body.dark-mode .legend-list li[b-p865t2d1aj],
body.dark-mode .legend-value[b-p865t2d1aj],
body.dark-mode .metric-value[b-p865t2d1aj],
body.dark-mode .metric-card small[b-p865t2d1aj] {
  color: #ffffff !important;
}

body.dark-mode .status-pill--success[b-p865t2d1aj] {
  background: rgba(109, 40, 217, 0.18);
  color: #ede9fe;
}

body.dark-mode .status-pill--warning[b-p865t2d1aj] {
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
}

body.dark-mode .today-mission-sub[b-p865t2d1aj],
body.dark-mode .today-mission-copy small[b-p865t2d1aj],
body.dark-mode .coach-card-header small[b-p865t2d1aj],
body.dark-mode .coach-note[b-p865t2d1aj],
body.dark-mode .weekly-report-list span[b-p865t2d1aj] {
  color: #cbd5e1 !important;
}

body.dark-mode .today-mission-progress[b-p865t2d1aj],
body.dark-mode .today-mission-icon[b-p865t2d1aj] {
  background: rgba(79, 70, 229, 0.24);
  color: #c7d2fe;
}

body.dark-mode .today-mission-icon img[b-p865t2d1aj] {
  filter: invert(82%) sepia(22%) saturate(1035%) hue-rotate(196deg) brightness(102%) contrast(93%);
}

body.dark-mode .coach-title-icon[b-p865t2d1aj] {
  filter: invert(82%) sepia(22%) saturate(1035%) hue-rotate(196deg) brightness(102%) contrast(93%);
}

body.dark-mode .today-mission-item[b-p865t2d1aj],
body.dark-mode .weekly-report-list div[b-p865t2d1aj] {
  background: #0f172a;
  border-color: #334155;
}

body.dark-mode .today-mission-item.is-done[b-p865t2d1aj] {
  background: rgba(49, 46, 129, 0.35);
  border-color: #3730a3;
}

body.dark-mode .latest-card .btn-primary[b-p865t2d1aj] {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
  border-color: transparent;
  color: #f8fafc !important;
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.32);
}

body.dark-mode .latest-card .btn-primary:hover[b-p865t2d1aj],
body.dark-mode .latest-card .btn-primary:focus[b-p865t2d1aj] {
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  color: #ffffff !important;
}

body.dark-mode .streak-share-panel[b-p865t2d1aj] {
  border-top-color: #334155;
}

body.dark-mode .streak-share-btn[b-p865t2d1aj],
body.dark-mode .streak-share-btn.btn-dark[b-p865t2d1aj] {
  background: #1f2937;
  border-color: #475569;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.28);
}

body.dark-mode .streak-share-btn:hover[b-p865t2d1aj],
body.dark-mode .streak-share-btn:focus[b-p865t2d1aj],
body.dark-mode .streak-share-btn.btn-dark:hover[b-p865t2d1aj],
body.dark-mode .streak-share-btn.btn-dark:focus[b-p865t2d1aj],
body.dark-mode .streak-share-btn.btn-outline-dark:hover[b-p865t2d1aj],
body.dark-mode .streak-share-btn.btn-outline-dark:focus[b-p865t2d1aj],
body.dark-mode .streak-share-btn--download:hover[b-p865t2d1aj],
body.dark-mode .streak-share-btn--download:focus[b-p865t2d1aj] {
  color: #ffffff !important;
  background: #273449;
  border-color: #64748b;
}

body.dark-mode .streak-share-textarea[b-p865t2d1aj] {
  background: #0f172a;
  color: #f8fafc;
  border-color: #334155;
}

body.dark-mode .streak-share-status[b-p865t2d1aj] {
  background: #1f2937;
  color: #f8fafc;
  border-color: #334155;
}

body.dark-mode .streak-share-icon[b-p865t2d1aj] {
  filter: brightness(0) invert(1);
}

body.dark-mode .bar-track[b-p865t2d1aj],
body.dark-mode .bar-count[b-p865t2d1aj] {
  background: #172033;
  color: #ffffff;
}

body.dark-mode .bar-track[b-p865t2d1aj] {
  border: 1px solid #334155;
}

body.dark-mode .bar-day[b-p865t2d1aj] {
  color: #e2e8f0 !important;
  font-weight: 700;
  text-shadow: 0 1px 10px rgba(15, 23, 42, 0.45);
}

body.dark-mode .bar-count[b-p865t2d1aj] {
  border: 1px solid #475569;
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.14);
}

body.dark-mode .score-trend-value[b-p865t2d1aj],
body.dark-mode .score-trend-label[b-p865t2d1aj] {
  color: #e2e8f0 !important;
}

body.dark-mode .score-trend-bar-track[b-p865t2d1aj] {
  background: #172033;
  border: 1px solid #334155;
}

body.dark-mode .donut-hole[b-p865t2d1aj] {
  background: #0f172a;
}

body.dark-mode .donut-hole strong[b-p865t2d1aj] {
  color: #ffffff;
}

body.dark-mode .donut-hole small[b-p865t2d1aj] {
  color: #ffffff;
}

.notification-card[b-p865t2d1aj] {
  background: #ffffff;
  border: 1px solid #e6ecff;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 10px 22px rgba(24, 35, 77, 0.08);
}

body.dark-mode .notification-card[b-p865t2d1aj] {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.45);
}

body.dark-mode .notification-card p[b-p865t2d1aj] {
  color: #ffffff;
}

body.dark-mode .notification-card .text-muted[b-p865t2d1aj] {
  color: #ffffff !important;
}

body.dark-mode .notification-card .btn-outline-secondary[b-p865t2d1aj] {
  color: #e2e8f0;
  border-color: #64748b;
  background: transparent;
}

body.dark-mode .notification-card .btn-outline-secondary:hover[b-p865t2d1aj],
body.dark-mode .notification-card .btn-outline-secondary:focus[b-p865t2d1aj] {
  color: #0f172a;
  background: #e2e8f0;
  border-color: #e2e8f0;
}

/* ── Invite section ── */
.invite-card[b-p865t2d1aj] {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1.5px solid #c7d2fe;
    border-radius: 1rem;
    padding: 1.1rem 1.25rem;
}

.invite-card-body[b-p865t2d1aj] {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
}

.invite-icon[b-p865t2d1aj] {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}

.invite-text h6[b-p865t2d1aj] {
    color: #312e81;
}

.invite-actions[b-p865t2d1aj] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.invite-link-wrap[b-p865t2d1aj] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 480px) {
    .invite-link-wrap[b-p865t2d1aj] {
        flex-direction: row;
    }
}

.invite-url-input[b-p865t2d1aj] {
    font-size: 0.78rem;
    color: #334155;
    background: #fff;
    border-color: #c7d2fe;
    flex: 1;
    min-width: 0;
    width: 100%;
}

.invite-link-wrap .btn[b-p865t2d1aj] {
    white-space: nowrap;
}

body.dark-mode .invite-card[b-p865t2d1aj] {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border-color: #3730a3;
}

body.dark-mode .invite-text h6[b-p865t2d1aj] { color: #c4b5fd; }
body.dark-mode .invite-url-input[b-p865t2d1aj] { background: #1e293b; border-color: #3730a3; color: #f1f5f9; }

/* Lexion dashboard world */
.dashboard-shell[b-p865t2d1aj] {
  max-width: 1180px;
  color: var(--color-text, #2B2B2B);
}

.dashboard-hero[b-p865t2d1aj] {
  position: relative;
  overflow: hidden;
  color: var(--color-text, #2B2B2B);
  background:
    radial-gradient(circle at 88% 18%, rgba(184, 162, 122, 0.16), transparent 24%),
    var(--color-surface, #FFFDF8);
  border: 1px solid var(--color-border, #E5DED2);
  border-radius: var(--radius-card, 18px);
  box-shadow: var(--shadow-soft, 0 18px 40px rgba(31, 36, 34, 0.08));
  padding: clamp(1.35rem, 3vw, 2rem);
}

.dashboard-hero h2[b-p865t2d1aj],
.dashboard-hero h2 i[b-p865t2d1aj],
.dashboard-kicker[b-p865t2d1aj],
.hero-sub[b-p865t2d1aj] {
  color: var(--color-text, #2B2B2B) !important;
}

.dashboard-hero h2[b-p865t2d1aj] {
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0;
}

.dashboard-kicker[b-p865t2d1aj],
.today-mission-kicker[b-p865t2d1aj],
.streak-highlight__eyebrow[b-p865t2d1aj],
.chart-title[b-p865t2d1aj],
.section-title-wrap h5[b-p865t2d1aj],
.coach-card-header small[b-p865t2d1aj] {
  letter-spacing: 0.08em;
}

.dashboard-kicker[b-p865t2d1aj],
.today-mission-kicker[b-p865t2d1aj],
.streak-highlight__eyebrow[b-p865t2d1aj] {
  color: var(--color-accent, #7A8B6B) !important;
  font-weight: 700;
}

.hero-sub[b-p865t2d1aj] {
  color: var(--color-text-muted, #77736A) !important;
  font-size: 0.98rem;
}

.home-shortcut-banner[b-p865t2d1aj],
.loading-card[b-p865t2d1aj],
.today-mission-panel[b-p865t2d1aj],
.streak-highlight[b-p865t2d1aj],
.metric-card[b-p865t2d1aj],
.chart-card[b-p865t2d1aj],
.coach-card[b-p865t2d1aj],
.latest-card[b-p865t2d1aj],
.invite-card[b-p865t2d1aj],
.notification-card[b-p865t2d1aj] {
  color: var(--color-text, #2B2B2B);
  background: var(--color-surface, #FFFDF8) !important;
  border: 1px solid var(--color-border, #E5DED2) !important;
  border-radius: var(--radius-card, 18px) !important;
  box-shadow: var(--shadow-soft, 0 18px 40px rgba(31, 36, 34, 0.08)) !important;
}

.today-mission-panel[b-p865t2d1aj],
.streak-highlight[b-p865t2d1aj],
.chart-card[b-p865t2d1aj],
.coach-card[b-p865t2d1aj],
.latest-card[b-p865t2d1aj],
.invite-card[b-p865t2d1aj] {
  padding: clamp(1rem, 2.5vw, 1.35rem);
}

.today-mission-title[b-p865t2d1aj],
.streak-highlight__title[b-p865t2d1aj],
.chart-title[b-p865t2d1aj],
.section-title-wrap h5[b-p865t2d1aj],
.coach-card-header h5[b-p865t2d1aj],
.invite-text h6[b-p865t2d1aj] {
  color: var(--color-text, #2B2B2B) !important;
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 400;
  letter-spacing: 0;
}

.today-mission-sub[b-p865t2d1aj],
.today-mission-copy small[b-p865t2d1aj],
.streak-highlight__meta[b-p865t2d1aj],
.coach-note[b-p865t2d1aj],
.latest-created[b-p865t2d1aj],
.empty-state[b-p865t2d1aj],
.invite-text .text-muted[b-p865t2d1aj],
.text-muted[b-p865t2d1aj] {
  color: var(--color-text-muted, #77736A) !important;
}

.today-mission-progress[b-p865t2d1aj],
.status-pill[b-p865t2d1aj],
.weakness-chip[b-p865t2d1aj] {
  color: var(--color-accent, #7A8B6B);
  background: rgba(122, 139, 107, 0.10);
  border: 1px solid rgba(122, 139, 107, 0.22);
}

.today-mission-item[b-p865t2d1aj] {
  color: var(--color-text, #2B2B2B);
  background: rgba(238, 232, 222, 0.48);
  border-color: var(--color-border, #E5DED2);
  border-radius: 14px;
}

.today-mission-item:hover[b-p865t2d1aj],
.today-mission-item:focus[b-p865t2d1aj],
.today-mission-item.is-done[b-p865t2d1aj] {
  color: var(--color-text, #2B2B2B);
  background: var(--color-surface, #FFFDF8);
  border-color: rgba(122, 139, 107, 0.44);
}

.today-mission-icon[b-p865t2d1aj],
.today-mission-item.is-done .today-mission-icon[b-p865t2d1aj] {
  background: var(--color-surface, #FFFDF8);
  border: 1px solid var(--color-border, #E5DED2);
}

.today-mission-icon img[b-p865t2d1aj],
.today-mission-item.is-done .today-mission-icon img[b-p865t2d1aj],
.today-mission-state img[b-p865t2d1aj],
.coach-title-icon[b-p865t2d1aj] {
  filter: invert(53%) sepia(15%) saturate(731%) hue-rotate(55deg) brightness(92%) contrast(88%);
}

.today-mission-state[b-p865t2d1aj] {
  color: var(--color-accent, #7A8B6B);
}

.streak-highlight__cta[b-p865t2d1aj],
.streak-share-btn.btn-dark[b-p865t2d1aj],
.invite-actions .btn-dark[b-p865t2d1aj] {
  color: #fff !important;
  background: var(--color-sidebar, #1F2422) !important;
  border-color: var(--color-sidebar, #1F2422) !important;
  box-shadow: none;
}

.metrics-grid[b-p865t2d1aj] {
  gap: 1rem;
}

.metric-card[b-p865t2d1aj] {
  padding: 1.15rem;
}

.metric-label[b-p865t2d1aj] {
  color: var(--color-text-muted, #77736A);
  font-weight: 600;
}

.metric-value[b-p865t2d1aj] {
  color: var(--color-text, #2B2B2B);
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 400;
  letter-spacing: 0;
}

.metric-card small[b-p865t2d1aj] {
  color: var(--color-accent, #7A8B6B);
}

.donut-hole[b-p865t2d1aj] {
  background: var(--color-surface, #FFFDF8);
  border: 1px solid var(--color-border, #E5DED2);
}

.donut-hole strong[b-p865t2d1aj],
.donut-hole small[b-p865t2d1aj],
.legend-label[b-p865t2d1aj],
.legend-value[b-p865t2d1aj],
.legend-percent[b-p865t2d1aj] {
  color: var(--color-text, #2B2B2B) !important;
}

.legend-percent[b-p865t2d1aj],
.bar-day[b-p865t2d1aj],
.bar-count[b-p865t2d1aj],
.score-trend-label[b-p865t2d1aj],
.score-trend-empty[b-p865t2d1aj] {
  color: var(--color-text-muted, #77736A) !important;
}

.bar-track[b-p865t2d1aj],
.score-trend-bar-track[b-p865t2d1aj] {
  background: var(--color-surface-muted, #EEE8DE);
  border: 1px solid var(--color-border, #E5DED2);
}

.bar-fill[b-p865t2d1aj],
.score-trend-bar-fill[b-p865t2d1aj],
.progress-bar[b-p865t2d1aj] {
  background: var(--color-accent, #7A8B6B) !important;
}

.legend-dot--new[b-p865t2d1aj],
.legend-dot--learning[b-p865t2d1aj],
.legend-dot--mastered[b-p865t2d1aj] {
  background: var(--color-accent, #7A8B6B);
}

.latest-body[b-p865t2d1aj] {
  color: var(--color-text, #2B2B2B);
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  line-height: 1.8;
}

.invite-icon[b-p865t2d1aj] {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  color: var(--color-surface, #FFFDF8);
  background: var(--color-accent, #7A8B6B);
  border-radius: 50%;
  font-family: Georgia, serif;
}

.invite-url-input[b-p865t2d1aj],
.streak-share-textarea[b-p865t2d1aj] {
  color: var(--color-text, #2B2B2B);
  background: var(--color-surface, #FFFDF8);
  border-color: var(--color-border, #E5DED2);
}

body.dark-mode .dashboard-hero[b-p865t2d1aj],
body.dark-mode .today-mission-panel[b-p865t2d1aj],
body.dark-mode .streak-highlight[b-p865t2d1aj],
body.dark-mode .metric-card[b-p865t2d1aj],
body.dark-mode .chart-card[b-p865t2d1aj],
body.dark-mode .coach-card[b-p865t2d1aj],
body.dark-mode .latest-card[b-p865t2d1aj],
body.dark-mode .invite-card[b-p865t2d1aj] {
  background: #2B302D !important;
  border-color: rgba(229, 222, 210, 0.16) !important;
  color: #F8F6F2;
}

body.dark-mode .dashboard-hero h2[b-p865t2d1aj],
body.dark-mode .today-mission-title[b-p865t2d1aj],
body.dark-mode .streak-highlight__title[b-p865t2d1aj],
body.dark-mode .chart-title[b-p865t2d1aj],
body.dark-mode .section-title-wrap h5[b-p865t2d1aj],
body.dark-mode .coach-card-header h5[b-p865t2d1aj],
body.dark-mode .metric-value[b-p865t2d1aj] {
  color: #F8F6F2 !important;
}

body.dark-mode .hero-sub[b-p865t2d1aj],
body.dark-mode .today-mission-sub[b-p865t2d1aj],
body.dark-mode .today-mission-copy small[b-p865t2d1aj],
body.dark-mode .streak-highlight__meta[b-p865t2d1aj],
body.dark-mode .coach-note[b-p865t2d1aj],
body.dark-mode .text-muted[b-p865t2d1aj] {
  color: #CFC8BB !important;
}

@media (max-width: 768px) {
  .dashboard-shell[b-p865t2d1aj] {
    padding-bottom: 5.5rem;
  }

  .dashboard-hero[b-p865t2d1aj] {
    padding: 1.25rem;
  }

  .today-mission-item[b-p865t2d1aj] {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .today-mission-state[b-p865t2d1aj] {
    grid-column: 2;
    justify-content: flex-start;
  }
}

/* ============================================================
   Lexicon home blocks — mockup-aligned (Today / 今月の蓄積 /
   最近の記録 / 最近学んだ単語)
   ============================================================ */
.lex-home-grid[b-p865t2d1aj] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.lex-home-card[b-p865t2d1aj] {
  display: flex;
  flex-direction: column;
  background: var(--color-surface, #FFFDF8);
  border: 1px solid var(--color-border, #E5DED2);
  border-radius: var(--radius-card, 18px);
  box-shadow: var(--shadow-soft, 0 18px 40px rgba(31, 36, 34, 0.08));
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
}

.lex-card-head[b-p865t2d1aj] {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.lex-card-title[b-p865t2d1aj] {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0;
  color: var(--color-text, #2B2B2B);
}

.lex-card-title i[b-p865t2d1aj] {
  font-size: 0.95rem;
  color: var(--color-brass, #B8A27A);
}

.lex-card-link[b-p865t2d1aj] {
  font-size: 0.8rem;
  color: var(--color-text-muted, #77736A);
  text-decoration: none;
  white-space: nowrap;
}

.lex-card-link:hover[b-p865t2d1aj] {
  color: var(--color-accent, #7A8B6B);
}

/* Today */
.lex-today-stats[b-p865t2d1aj] {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: flex;
  gap: 1.9rem;
  flex-wrap: wrap;
}

.lex-today-stats li[b-p865t2d1aj] {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.lex-today-stats strong[b-p865t2d1aj] {
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-text, #2B2B2B);
}

.lex-today-stats span[b-p865t2d1aj] {
  font-size: 0.82rem;
  color: var(--color-text-muted, #77736A);
}

.lex-today-cta[b-p865t2d1aj] {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
}

.lex-today-cta i[b-p865t2d1aj] {
  margin-left: 0.45rem;
  font-size: 0.9rem;
}

/* This month accumulation */
.lex-month-stats[b-p865t2d1aj] {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.lex-month-stats > div[b-p865t2d1aj] {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.lex-month-label[b-p865t2d1aj] {
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text-muted, #77736A);
}

.lex-month-stats strong[b-p865t2d1aj] {
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-text, #2B2B2B);
}

.lex-month-stats strong small[b-p865t2d1aj] {
  font-size: 0.9rem;
  color: var(--color-text-muted, #77736A);
}

/* Recent entries */
.lex-recent-list[b-p865t2d1aj] {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lex-recent-item + .lex-recent-item[b-p865t2d1aj] {
  border-top: 1px solid var(--color-border, #E5DED2);
}

.lex-recent-link[b-p865t2d1aj] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: start;
  padding: 0.7rem 0;
  text-decoration: none;
  color: inherit;
}

.lex-recent-date[b-p865t2d1aj] {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-accent, #7A8B6B);
  padding-top: 0.2rem;
  white-space: nowrap;
}

.lex-recent-main[b-p865t2d1aj] {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.lex-recent-title[b-p865t2d1aj] {
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 0.96rem;
  line-height: 1.35;
  color: var(--color-text, #2B2B2B);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lex-recent-preview[b-p865t2d1aj] {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--color-text-muted, #77736A);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lex-recent-meta[b-p865t2d1aj] {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  white-space: nowrap;
}

.lex-recent-words[b-p865t2d1aj] {
  font-size: 0.72rem;
  color: var(--color-text-muted, #77736A);
}

.lex-bookmark[b-p865t2d1aj] {
  font-size: 0.9rem;
  color: var(--color-brass, #B8A27A);
}

.lex-recent-link:hover .lex-recent-title[b-p865t2d1aj] {
  color: var(--color-accent, #7A8B6B);
}

/* Recent words */
.lex-words-list[b-p865t2d1aj] {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.lex-word-chip[b-p865t2d1aj] {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.85rem;
  background: rgba(238, 232, 222, 0.5);
  border: 1px solid var(--color-border, #E5DED2);
  border-radius: 12px;
}

.lex-word-term[b-p865t2d1aj] {
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.02rem;
  color: var(--color-text, #2B2B2B);
}

.lex-word-pos[b-p865t2d1aj] {
  font-size: 0.72rem;
  font-style: italic;
  color: var(--color-accent, #7A8B6B);
}

.lex-word-meaning[b-p865t2d1aj] {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--color-text-muted, #77736A);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.lex-empty[b-p865t2d1aj] {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-muted, #77736A);
}

@media (max-width: 768px) {
  .lex-home-grid[b-p865t2d1aj] {
    grid-template-columns: 1fr;
  }
}

body.dark-mode .lex-home-card[b-p865t2d1aj],
body.dark-mode .lex-word-chip[b-p865t2d1aj] {
  background: #2B302D;
  border-color: rgba(229, 222, 210, 0.16);
}

body.dark-mode .lex-card-title[b-p865t2d1aj],
body.dark-mode .lex-today-stats strong[b-p865t2d1aj],
body.dark-mode .lex-month-stats strong[b-p865t2d1aj],
body.dark-mode .lex-recent-title[b-p865t2d1aj],
body.dark-mode .lex-word-term[b-p865t2d1aj] {
  color: #F8F6F2;
}

body.dark-mode .lex-recent-preview[b-p865t2d1aj],
body.dark-mode .lex-recent-words[b-p865t2d1aj],
body.dark-mode .lex-word-meaning[b-p865t2d1aj],
body.dark-mode .lex-month-label[b-p865t2d1aj],
body.dark-mode .lex-today-stats span[b-p865t2d1aj],
body.dark-mode .lex-empty[b-p865t2d1aj] {
  color: #CFC8BB;
}

.lex-empty span[b-p865t2d1aj] {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  opacity: 0.85;
}

.hero-collected[b-p865t2d1aj] {
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  color: var(--color-accent, #7A8B6B);
  font-weight: 400;
}

.lex-kicker-sprig[b-p865t2d1aj] {
  width: 0.95rem;
  height: 0.95rem;
  margin-right: 0.35rem;
  vertical-align: -0.12rem;
}

/* ── Lexicon Shelf — 蒐集の本棚 ── */
.lex-shelf-card[b-p865t2d1aj] {
  background: var(--color-surface, #FFFDF8);
  border: 1px solid var(--color-border, #E5DED2);
  border-radius: var(--radius-card, 18px);
  box-shadow: var(--shadow-soft, 0 18px 40px rgba(31, 36, 34, 0.08));
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
}

.lex-shelf-total[b-p865t2d1aj] {
  font-size: 0.8rem;
  color: var(--color-text-muted, #77736A);
  white-space: nowrap;
}

.lex-shelf[b-p865t2d1aj] {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.lex-shelf-row[b-p865t2d1aj] {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.85rem;
}

.lex-shelf-year[b-p865t2d1aj] {
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 0.95rem;
  color: var(--color-text-muted, #77736A);
  padding-bottom: 0.35rem;
}

.lex-shelf-books[b-p865t2d1aj] {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 66px;
  padding: 0 0.25rem 0.3rem;
  border-bottom: 2px solid var(--color-border, #D8D4CC);
  overflow: hidden;
}

.lex-spine[b-p865t2d1aj] {
  flex: 0 0 auto;
  width: 7px;
  border-radius: 2px 2px 0 0;
  background: var(--color-accent, #7A8B6B);
  opacity: 0.9;
}

.lex-spine--0[b-p865t2d1aj] { background: #C8C4BB; }
.lex-spine--1[b-p865t2d1aj] { background: #B8B4AC; }
.lex-spine--2[b-p865t2d1aj] { background: #D8D4CC; }
.lex-spine--3[b-p865t2d1aj] { background: #C4C0B8; }
.lex-spine--4[b-p865t2d1aj] { background: #E0DDD6; }

.lex-shelf-count[b-p865t2d1aj] {
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 0.95rem;
  color: var(--color-text, #2B2B2B);
  padding-bottom: 0.35rem;
}

.lex-shelf-note[b-p865t2d1aj] {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--color-text-muted, #77736A);
}

/* Lexicon Shelf — 1日1冊の棒グラフ */
.lex-bars[b-p865t2d1aj] {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 130px;
  padding: 0 0.15rem 0.35rem;
  border-bottom: 2px solid var(--color-border, #D8D4CC);
}

.lex-bar-col[b-p865t2d1aj] {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.lex-bar[b-p865t2d1aj] {
  width: 100%;
  max-width: 14px;
  min-height: 4px;
  border-radius: 2px 2px 0 0;
  /* default spine color — overridden by nth-child rules below */
  background: linear-gradient(180deg, #87937C 0%, #6B7860 100%);
  box-shadow:
    inset -2px 0 rgba(0, 0, 0, 0.14),
    inset 2px 0 rgba(255, 255, 255, 0.16);
  position: relative;
  transition: filter 0.2s ease;
}

/* 本の天（上端）：薄い帯で小口感を演出 */
.lex-bar:not(.is-empty)[b-p865t2d1aj]::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 2px 2px 0 0;
}

/* 5色の背表紙カラーローテーション — サイトのアクセント(深いティール)＋暖色アースで統一 */
.lex-bar-col:nth-child(5n+1) .lex-bar:not(.is-empty)[b-p865t2d1aj] { background: linear-gradient(180deg, #87937C 0%, #6B7860 100%); } /* muted sage   */
.lex-bar-col:nth-child(5n+2) .lex-bar:not(.is-empty)[b-p865t2d1aj] { background: linear-gradient(180deg, #9C8770 0%, #7C6957 100%); } /* warm taupe   */
.lex-bar-col:nth-child(5n+3) .lex-bar:not(.is-empty)[b-p865t2d1aj] { background: linear-gradient(180deg, #4E6772 0%, #35505B 100%); } /* deep teal (accent) */
.lex-bar-col:nth-child(5n+4) .lex-bar:not(.is-empty)[b-p865t2d1aj] { background: linear-gradient(180deg, #A1897A 0%, #806A5C 100%); } /* soft clay    */
.lex-bar-col:nth-child(5n+0) .lex-bar:not(.is-empty)[b-p865t2d1aj] { background: linear-gradient(180deg, #99906F 0%, #7A7155 100%); } /* antique gold */

.lex-bar.is-empty[b-p865t2d1aj] {
  background: var(--color-line, #E0D8CB);
  box-shadow: none;
  opacity: 0.5;
}
.lex-bar.is-empty[b-p865t2d1aj]::after { display: none; }

.lex-bar-col:hover .lex-bar:not(.is-empty)[b-p865t2d1aj] {
  filter: brightness(1.1);
}

.lex-bars-axis[b-p865t2d1aj] {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 0.78rem;
  color: var(--color-text-muted, #77736A);
}

/* 今月の学習状況 */
.month-status-grid[b-p865t2d1aj] {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.month-status-item[b-p865t2d1aj] {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--color-line, #E0D8CB);
  border-radius: 12px;
  background: var(--color-surface, #FBFAF5);
}

.month-status-item strong[b-p865t2d1aj] {
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--color-text, #2B2B2B);
}

.month-status-item span[b-p865t2d1aj] {
  font-size: 0.8rem;
  color: var(--color-text-muted, #77736A);
}

body.dark-mode .lex-shelf-card[b-p865t2d1aj] {
  background: #2B302D;
  border-color: rgba(229, 222, 210, 0.16);
}

body.dark-mode .lex-shelf-count[b-p865t2d1aj] {
  color: #F8F6F2;
}

/* 2026 library dashboard */
.dashboard-shell[b-p865t2d1aj] {
  max-width: 1240px;
}

.dashboard-hero[b-p865t2d1aj] {
  min-height: 252px;
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(330px, 1fr) minmax(230px, 0.72fr);
  align-items: end;
  gap: 1.2rem;
  padding: clamp(1.5rem, 3vw, 2.6rem);
  background:
    linear-gradient(90deg, rgba(255, 253, 247, 0.96), rgba(242, 229, 207, 0.82)),
    repeating-linear-gradient(102deg, rgba(113, 77, 40, 0.04) 0 1px, transparent 1px 22px) !important;
  border: 1px solid #d7c7b1;
  border-radius: 22px 22px 8px 8px;
  box-shadow:
    0 18px 34px rgba(79, 53, 29, 0.13),
    inset 0 -12px 0 #b07843,
    inset 0 -16px 0 #704521;
}

.dashboard-welcome[b-p865t2d1aj] {
  align-self: start;
  padding-top: 0.3rem;
}

.dashboard-hero h2[b-p865t2d1aj] {
  max-width: 620px;
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  line-height: 1.08;
  color: #2f2318 !important;
  text-shadow: 0 1px 0 #fff;
}

.dashboard-kicker[b-p865t2d1aj] {
  color: #75835a !important;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-sub[b-p865t2d1aj] {
  color: #5f4c3c !important;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: 1rem;
}

.desk-today-card[b-p865t2d1aj],
.desk-streak-card[b-p865t2d1aj] {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: rgba(255, 252, 245, 0.78);
  border-radius: 15px;
  box-shadow:
    0 8px 16px rgba(68, 45, 26, 0.16),
    inset 0 0 0 1px rgba(137, 104, 67, 0.18);
  backdrop-filter: blur(8px);
}

.desk-today-card[b-p865t2d1aj] {
  min-height: 102px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.desk-card-label[b-p865t2d1aj] {
  display: block;
  color: #473727;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.desk-card-label i[b-p865t2d1aj] {
  color: #8c6b43;
  margin-right: 0.25rem;
}

.desk-today-stats[b-p865t2d1aj] {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.55rem;
}

.desk-today-stats span[b-p865t2d1aj] {
  display: grid;
  text-align: center;
}

.desk-today-stats strong[b-p865t2d1aj],
.desk-streak-value strong[b-p865t2d1aj] {
  color: #2f2318;
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

.desk-today-stats small[b-p865t2d1aj],
.desk-streak-value span[b-p865t2d1aj] {
  color: #6f5d4b;
  font-family: Georgia, serif;
  font-size: 0.68rem;
}

.desk-write-button[b-p865t2d1aj] {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 112px;
  justify-content: center;
  padding: 0.72rem 0.85rem;
  color: #fffdf6 !important;
  background: linear-gradient(180deg, #718158, #53643f);
  border: 1px solid #4e5f3b;
  border-radius: 11px;
  box-shadow: 0 6px 12px rgba(58, 76, 43, 0.22);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.desk-streak-card[b-p865t2d1aj] {
  min-height: 172px;
  align-self: stretch;
  padding: 1.1rem 1rem;
}

.desk-streak-value[b-p865t2d1aj] {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0 1.1rem;
}

.desk-streak-value strong[b-p865t2d1aj] {
  font-size: 3.2rem;
}

.desk-streak-value span[b-p865t2d1aj] {
  font-size: 0.82rem;
}

.desk-streak-week[b-p865t2d1aj] {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}

.desk-streak-week span[b-p865t2d1aj] {
  position: relative;
  display: grid;
  place-items: center;
  padding-bottom: 1rem;
  color: #7a6958;
  font-size: 0.62rem;
}

.desk-streak-week span[b-p865t2d1aj]::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 8px;
  height: 8px;
  border: 1px solid #bcae9b;
  border-radius: 50%;
  background: transparent;
}

.desk-streak-week span.is-active[b-p865t2d1aj]::after {
  background: #687b50;
  border-color: #687b50;
  box-shadow: 0 0 0 3px rgba(104, 123, 80, 0.14);
}

.library-cabinet[b-p865t2d1aj] {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
  overflow: hidden;
  border: 1px solid rgba(44,42,37,.12);
  border-radius: 20px;
  background: #FFFDF7;
  box-shadow: 0 8px 32px rgba(44,42,37,.08);
}

.cabinet-section[b-p865t2d1aj] {
  min-width: 0;
  background: #FFFDF7;
}

.cabinet-diaries[b-p865t2d1aj] {
  border-right: 1px solid rgba(44,42,37,.10);
}

.cabinet-heading[b-p865t2d1aj] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  background: #FFFDF7;
  border-bottom: 1px solid rgba(44,42,37,.10);
  box-shadow: none;
}

.cabinet-heading h3[b-p865t2d1aj] {
  margin: 0;
  color: #2C2A25 !important;
  font-size: 1rem;
  font-weight: 700;
}

.cabinet-heading a[b-p865t2d1aj] {
  color: #7A7568;
  font-family: Georgia, serif;
  font-size: 0.72rem;
  text-decoration: none;
}

.diary-books[b-p865t2d1aj] {
  min-height: 342px;
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  padding: 1.3rem 1rem 0;
  border-bottom: 18px solid #C8BBA8;
  box-shadow: inset 0 -5px 0 #D8CFBF;
  overflow-x: auto;
}

.diary-book[b-p865t2d1aj] {
  flex: 1 0 88px;
  min-width: 0;
  height: 290px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 0.7rem 0.8rem;
  color: #4A443C !important;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.25), transparent 12%, transparent 86%, rgba(0,0,0,0.06)),
    #D8D4CC;
  border: 1px solid #BEB9B0;
  border-radius: 7px 7px 3px 3px;
  box-shadow: 4px 2px 5px rgba(20, 12, 7, 0.45), inset 3px 0 rgba(255,255,255,0.08);
  font-family: Georgia, "Yu Mincho", serif;
  text-decoration: none;
  text-align: center;
}

.diary-book--0[b-p865t2d1aj] { height: 300px; background-color: #D8D4CC; color: #3D3830 !important; border-color: #BEB9B0; }
.diary-book--1[b-p865t2d1aj] { height: 286px; background-color: #EDE8E0; color: #3D3830 !important; border-color: #CCC7BF; }
.diary-book--2[b-p865t2d1aj] { height: 296px; background-color: #C8C4BB; color: #3D3830 !important; border-color: #B0ACA4; }
.diary-book--3[b-p865t2d1aj] { height: 282px; background-color: #E4E0D8; color: #3D3830 !important; border-color: #C8C3BB; }
.diary-book--4[b-p865t2d1aj] { height: 292px; background-color: #F0EDE6; color: #3D3830 !important; border-color: #D4CFC8; }

.diary-book-date[b-p865t2d1aj] {
  width: 100%;
  margin-bottom: 1.3rem;
  padding: 0.25rem 0;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  font-size: 0.68rem;
}

.diary-book strong[b-p865t2d1aj] {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.55;
}

.diary-book-words[b-p865t2d1aj] {
  margin-top: auto;
  font-size: 0.65rem;
}

.diary-book-add[b-p865t2d1aj] {
  flex: 0 0 88px;
  height: 270px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.8rem;
  color: #e7d3ae !important;
  border: 2px dashed rgba(231, 211, 174, 0.35);
  border-radius: 10px;
  background: rgba(132, 81, 37, 0.28);
  font-family: Georgia, "Yu Mincho", serif;
  font-size: 0.68rem;
  text-align: center;
  text-decoration: none;
}

.diary-book-add i[b-p865t2d1aj] {
  font-size: 2rem;
}

.word-books[b-p865t2d1aj] {
  min-height: 342px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.3rem 1rem 1rem;
  border-bottom: 18px solid #8b562a;
  box-shadow: inset 0 -5px 0 #b1783c;
}

.word-book[b-p865t2d1aj] {
  display: grid;
  gap: 0.15rem;
  min-height: 60px;
  margin-top: -2px;
  padding: 0.75rem 1.1rem 0.65rem 2.2rem;
  color: #ead8b8 !important;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.12), transparent 8%, transparent 92%, rgba(0,0,0,0.2)),
    #526443;
  border: 1px solid #283a22;
  border-radius: 7px 3px 3px 7px;
  box-shadow: 2px 3px 5px rgba(20, 12, 7, 0.4), inset 10px 0 rgba(0,0,0,0.08);
  font-family: Georgia, "Yu Mincho", serif;
  text-decoration: none;
}

.word-book strong[b-p865t2d1aj] {
  font-weight: 400;
}

.word-book span[b-p865t2d1aj] {
  overflow: hidden;
  color: inherit;
  font-size: 0.68rem;
  opacity: 0.88;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.word-book--1[b-p865t2d1aj] { background-color: #c6a778; color: #4a311d !important; border-color: #8c6c45; transform: translateX(-4px); }
.word-book--2[b-p865t2d1aj] { background-color: #526975; transform: translateX(3px); }
.word-book--3[b-p865t2d1aj] { background-color: #8b5e39; transform: translateX(-2px); }

.lex-shelf-card[b-p865t2d1aj],
.today-mission-panel[b-p865t2d1aj] {
  border-color: #d8c6aa !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.38), transparent),
    #f3eadc !important;
  box-shadow: 0 12px 24px rgba(84, 56, 31, 0.12) !important;
}

.lex-shelf-books[b-p865t2d1aj] {
  height: 92px;
  gap: 4px;
  padding-top: 0.5rem;
  border-bottom: 7px solid #9c6534;
  box-shadow: 0 4px 0 #c48a4a;
}

.lex-spine[b-p865t2d1aj] {
  width: clamp(8px, 1.2vw, 13px);
  border: 1px solid rgba(54, 48, 31, 0.25);
  box-shadow: inset 2px 0 rgba(255,255,255,0.14);
}

.today-mission-panel[b-p865t2d1aj] {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.today-mission-item[b-p865t2d1aj] {
  background: rgba(255, 252, 245, 0.55);
  border-color: #ddcdb5;
}

.today-mission-state[b-p865t2d1aj] {
  min-width: 62px;
  padding: 0.4rem 0.65rem;
  border: 1px solid #7a8b62;
  border-radius: 8px;
  justify-content: center;
}

@media (max-width: 1050px) {
  .dashboard-hero[b-p865t2d1aj] {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-welcome[b-p865t2d1aj] {
    grid-column: 1 / -1;
  }

  .library-cabinet[b-p865t2d1aj] {
    grid-template-columns: 1fr;
  }

  .cabinet-diaries[b-p865t2d1aj] {
    border-right: 0;
    border-bottom: 1px solid rgba(44,42,37,.10);
  }
}

@media (max-width: 680px) {
  .dashboard-hero[b-p865t2d1aj] {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 1.2rem 1rem 1.7rem;
  }

  .dashboard-welcome[b-p865t2d1aj] {
    grid-column: auto;
  }

  .dashboard-hero h2[b-p865t2d1aj] {
    font-size: clamp(1.75rem, 10vw, 2.5rem);
  }

  .desk-today-card[b-p865t2d1aj] {
    align-items: stretch;
    flex-direction: column;
  }

  .desk-write-button[b-p865t2d1aj] {
    width: 100%;
  }

  .diary-books[b-p865t2d1aj] {
    min-height: 300px;
  }

  .diary-book[b-p865t2d1aj] {
    flex-basis: 82px;
    height: 252px;
  }

  .diary-book--0[b-p865t2d1aj] { height: 260px; }
  .diary-book--1[b-p865t2d1aj] { height: 246px; }
  .diary-book--2[b-p865t2d1aj] { height: 256px; }
  .diary-book--3[b-p865t2d1aj] { height: 242px; }
  .diary-book--4[b-p865t2d1aj] { height: 252px; }
  .diary-book-add[b-p865t2d1aj] { height: 235px; }

  .today-mission-state[b-p865t2d1aj] {
    border: 0;
    padding: 0;
    justify-content: flex-start;
  }
}

/* Exact reference layout */
.dashboard-shell[b-p865t2d1aj] {
  width: min(100%, 1044px);
  max-width: 1044px;
  margin: 0 auto;
  padding: 0 24px 82px !important;
  background:
    linear-gradient(90deg, rgba(125, 79, 39, .12), transparent 4%, transparent 96%, rgba(125, 79, 39, .12)),
    #ead7bd !important;
  box-shadow: inset 20px 0 18px rgba(102, 62, 29, .18), inset -20px 0 18px rgba(102, 62, 29, .18);
}

.dashboard-hero[b-p865t2d1aj] {
  position: relative;
  min-height: 294px;
  margin: 0 -24px !important;
  padding: 42px 55px 39px 62px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, .95fr);
  grid-template-rows: 1fr auto;
  gap: 16px 28px;
  align-items: end;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 74% 6%, rgba(255,255,255,.65), transparent 33%),
    linear-gradient(100deg, #f4e8d6, #ead8be) !important;
  box-shadow:
    inset 0 -15px 0 #ad713a,
    inset 0 -20px 0 #74421e,
    0 6px 12px rgba(77,43,18,.28);
}

.dashboard-welcome[b-p865t2d1aj] {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  padding-top: 0;
}

.dashboard-hero h2[b-p865t2d1aj] {
  margin: 0;
  color: #312217 !important;
  font-family: Georgia, "Times New Roman", "Yu Mincho", serif;
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.hero-sub[b-p865t2d1aj] {
  margin-top: 13px !important;
  color: #554333 !important;
  font-size: .98rem;
  letter-spacing: .03em;
}

.desk-today-card[b-p865t2d1aj] {
  grid-column: 1;
  grid-row: 2;
  width: 78%;
  min-height: 84px;
  margin-left: auto;
  padding: 13px 14px 13px 20px;
  border-radius: 14px;
  background: rgba(255,250,242,.84);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 8px 15px rgba(74,44,22,.16), inset 0 0 0 1px rgba(145,111,74,.13);
}

.desk-today-copy[b-p865t2d1aj] {
  display: flex;
  align-items: center;
  gap: 25px;
}

.desk-card-label[b-p865t2d1aj] {
  white-space: nowrap;
  font-size: .78rem;
}

.desk-today-stats[b-p865t2d1aj] {
  margin: 0;
  gap: 26px;
}

.desk-today-stats strong[b-p865t2d1aj] {
  font-size: 1.85rem;
}

.desk-write-button[b-p865t2d1aj] {
  min-width: 116px;
  border-radius: 9px;
}

.desk-streak-card[b-p865t2d1aj] {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 100%;
  min-height: 202px;
  align-self: center;
  padding: 20px 22px;
  border-radius: 14px;
  background: rgba(255,250,242,.82);
}

.desk-streak-value[b-p865t2d1aj] {
  margin: 17px 0 20px;
}

.desk-streak-value strong[b-p865t2d1aj] {
  font-size: 3.35rem;
}

.library-cabinet[b-p865t2d1aj] {
  margin: 0 -24px 18px !important;
  display: grid;
  grid-template-columns: 1.72fr .93fr;
  border: 0;
  border-radius: 0;
  background: #70421f;
  box-shadow: inset 17px 0 0 #8d572b, inset -17px 0 0 #8d572b, 0 9px 16px rgba(61,35,16,.35);
}

.cabinet-section[b-p865t2d1aj] {
  padding: 0 17px 16px;
  background:
    radial-gradient(ellipse at center top, rgba(255,220,168,.13), transparent 57%),
    linear-gradient(180deg,#563219,#3f2412);
}

.cabinet-diaries[b-p865t2d1aj] {
  border-right: 12px solid #8d572b;
}

.cabinet-heading[b-p865t2d1aj] {
  height: 52px;
  min-height: 52px;
  margin: 0 -17px;
  padding: 0 31px;
  border: 0;
  border-bottom: 6px solid #8c5529;
  background: linear-gradient(#ead7b9,#d9bb92);
  box-shadow: 0 5px 8px rgba(44,24,10,.32);
}

.cabinet-heading h3[b-p865t2d1aj] {
  font-size: .95rem;
}

.diary-books[b-p865t2d1aj],
.word-books[b-p865t2d1aj] {
  min-height: 390px;
  border-bottom: 18px solid #8d5629;
  box-shadow: inset 0 -6px 0 #bc7e3e;
}

.diary-books[b-p865t2d1aj] {
  gap: 3px;
  padding: 22px 0 0;
  overflow: hidden;
}

.diary-book[b-p865t2d1aj] {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: 96px;
  height: 340px;
  padding: 34px 10px 17px;
  border-radius: 6px 6px 2px 2px;
  box-shadow: 4px 2px 5px rgba(20,12,7,.55), inset 4px 0 rgba(255,255,255,.08);
}

.diary-book[b-p865t2d1aj]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -24px;
  width: 15px;
  height: 31px;
  background: #b88d52;
  clip-path: polygon(0 0,100% 0,100% 100%,50% 78%,0 100%);
  transform: translateX(-50%);
  opacity: .9;
}

.diary-book--1[b-p865t2d1aj]::after { background: #b9a26b; }
.diary-book--2[b-p865t2d1aj]::after { background: #c18c4b; }
.diary-book--3[b-p865t2d1aj]::after { background: #526a51; }
.diary-book--4[b-p865t2d1aj]::after { background: #a57b45; }

.diary-book--0[b-p865t2d1aj] { height: 346px; }
.diary-book--1[b-p865t2d1aj] { height: 332px; }
.diary-book--2[b-p865t2d1aj] { height: 342px; }
.diary-book--3[b-p865t2d1aj] { height: 328px; }
.diary-book--4[b-p865t2d1aj] { height: 338px; }

.diary-book-date[b-p865t2d1aj] {
  margin-bottom: 20px;
  font-size: .65rem;
}

.diary-book strong[b-p865t2d1aj] {
  font-size: .78rem;
  line-height: 1.55;
}

.diary-book-add[b-p865t2d1aj] {
  flex: 0 0 96px;
  height: 308px;
  margin-left: 8px;
  border-color: rgba(224,194,148,.35);
}

.word-books[b-p865t2d1aj] {
  justify-content: center;
  padding: 25px 5px 18px;
}

.word-book[b-p865t2d1aj] {
  position: relative;
  min-height: 73px;
  padding: 15px 16px 12px 38px;
}

.word-book[b-p865t2d1aj]::after {
  content: "❧";
  position: absolute;
  right: 12px;
  top: 50%;
  color: #b89a5a;
  font-size: 1rem;
  transform: translateY(-50%);
  opacity: .65;
}

.word-book strong[b-p865t2d1aj] {
  font-size: 1rem;
}

.lex-shelf-card[b-p865t2d1aj] {
  position: relative;
  min-height: 270px;
  margin: 0 2px 18px !important;
  padding: 27px 30px 21px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.78) !important;
  border-radius: 17px !important;
  background: linear-gradient(105deg,#fbf5ea,#eee0cc) !important;
  box-shadow: 0 9px 18px rgba(76,47,23,.18) !important;
}

.lex-shelf-card .lex-card-head[b-p865t2d1aj] {
  margin-bottom: 12px;
}

.lex-shelf[b-p865t2d1aj] {
  margin: 0;
}

.lex-shelf-row[b-p865t2d1aj] {
  grid-template-columns: 44px minmax(0,1fr) 38px;
  gap: 9px;
}

.lex-shelf-books[b-p865t2d1aj] {
  height: 128px;
  padding: 15px 3px 6px;
  gap: 2px;
  border-bottom: 5px solid #a76e36;
  box-shadow: 0 4px 0 #d09a58;
}

.lex-spine[b-p865t2d1aj] {
  width: clamp(8px,1.1vw,12px);
  border-radius: 3px 3px 1px 1px;
}

.lex-shelf-note[b-p865t2d1aj] {
  margin-left: 7px;
  font-family: Georgia,"Yu Mincho",serif;
}

.today-mission-panel[b-p865t2d1aj] {
  margin: 0 2px !important;
  padding: 23px 30px 20px;
  border: 1px solid rgba(255,255,255,.76) !important;
  border-radius: 17px !important;
  background: linear-gradient(105deg,#fbf5ea,#eee0cc) !important;
  box-shadow: 0 9px 18px rgba(76,47,23,.18) !important;
}

.today-mission-header[b-p865t2d1aj] {
  margin-bottom: 13px;
}

.today-mission-kicker[b-p865t2d1aj] {
  font-size: .66rem;
}

.today-mission-title[b-p865t2d1aj] {
  font-size: 1.35rem;
}

.today-mission-sub[b-p865t2d1aj] {
  font-size: .8rem;
}

.today-mission-progress[b-p865t2d1aj] {
  min-width: 58px;
  padding: 8px 12px;
}

.today-mission-list[b-p865t2d1aj] {
  gap: 7px;
}

.today-mission-item[b-p865t2d1aj] {
  min-height: 62px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255,252,245,.34);
}

.today-mission-icon[b-p865t2d1aj] {
  width: 42px;
  height: 42px;
  border-radius: 9px;
}

.today-mission-copy strong[b-p865t2d1aj] {
  font-size: .93rem;
}

.today-mission-copy small[b-p865t2d1aj] {
  font-size: .72rem;
}

@media (max-width: 760px) {
  .dashboard-shell[b-p865t2d1aj] {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .dashboard-hero[b-p865t2d1aj],
  .library-cabinet[b-p865t2d1aj] {
    margin-left: -10px !important;
    margin-right: -10px !important;
  }

  .dashboard-hero[b-p865t2d1aj] {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding: 28px 22px 40px;
  }

  .dashboard-welcome[b-p865t2d1aj],
  .desk-today-card[b-p865t2d1aj],
  .desk-streak-card[b-p865t2d1aj] {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  .library-cabinet[b-p865t2d1aj] {
    grid-template-columns: 1fr;
  }

  .cabinet-diaries[b-p865t2d1aj] {
    border-right: 0;
    border-bottom: 12px solid #8d572b;
  }

  .diary-books[b-p865t2d1aj] {
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 18px;
    padding-left: 14px;
    scroll-padding-inline: 14px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .diary-book[b-p865t2d1aj] {
    flex: 0 0 82px;
    min-width: 82px;
    padding-right: 7px;
    padding-left: 7px;
    scroll-snap-align: start;
  }

  .diary-book-date[b-p865t2d1aj] {
    font-size: .56rem;
  }

  .diary-book strong[b-p865t2d1aj] {
    width: 100%;
    font-size: .68rem;
    line-height: 1.4;
    overflow-wrap: break-word;
    -webkit-line-clamp: 7;
  }

  .diary-book-words[b-p865t2d1aj] {
    font-size: .52rem;
  }

  .diary-book-add[b-p865t2d1aj] {
    flex: 0 0 92px;
    min-width: 92px;
    margin-left: 2px;
    padding: 8px;
    font-size: .62rem;
    line-height: 1.5;
    scroll-snap-align: start;
  }

  .diary-book-add i[b-p865t2d1aj] {
    font-size: 1.35rem;
  }

}

/* New library palette: warm paper, navy ink, and muted brown. */
.dashboard-shell[b-p865t2d1aj] {
  background:
    linear-gradient(90deg, rgba(122, 90, 58, 0.07), transparent 4%, transparent 96%, rgba(122, 90, 58, 0.07)),
    var(--color-bg, #F4EFE6) !important;
  box-shadow: inset 18px 0 18px rgba(46, 41, 35, 0.07), inset -18px 0 18px rgba(46, 41, 35, 0.07);
}

.library-cabinet[b-p865t2d1aj] {
  background: #353632;
  box-shadow:
    inset 17px 0 0 #474843,
    inset -17px 0 0 #474843,
    0 9px 18px rgba(38, 38, 35, 0.22);
}

.cabinet-section[b-p865t2d1aj] {
  background:
    radial-gradient(ellipse at center top, rgba(255, 249, 239, 0.08), transparent 57%),
    linear-gradient(180deg, #383936, #2B2C29);
}

.cabinet-diaries[b-p865t2d1aj] {
  border-right-color: #474843;
}

.cabinet-heading[b-p865t2d1aj] {
  border-bottom-color: #7A5A3A;
  background: linear-gradient(180deg, #FFF9EF, #EDE2D2);
  box-shadow: 0 4px 8px rgba(31, 58, 74, 0.18);
}

.cabinet-heading h3[b-p865t2d1aj] {
  color: #2E2923 !important;
}

.cabinet-heading a[b-p865t2d1aj] {
  color: #746A5E;
}

.diary-books[b-p865t2d1aj],
.word-books[b-p865t2d1aj] {
  border-bottom-color: #7A5A3A;
  box-shadow: inset 0 -5px 0 #A8815A;
}

.diary-book[b-p865t2d1aj] {
  color: #FFF9EF !important;
  border-color: rgba(23, 45, 58, 0.68);
  box-shadow: 3px 2px 5px rgba(17, 35, 44, 0.34), inset 3px 0 rgba(255, 249, 239, 0.10);
}

.diary-book--0[b-p865t2d1aj] { background-color: #1F3A4A; }
.diary-book--1[b-p865t2d1aj] { background-color: #D8C3A0; color: #2E2923 !important; border-color: #A98E67; }
.diary-book--2[b-p865t2d1aj] { background-color: #7A5A3A; }
.diary-book--3[b-p865t2d1aj] { background-color: #506B78; }
.diary-book--4[b-p865t2d1aj] { background-color: #CDB58C; color: #2E2923 !important; border-color: #9F825B; }

.diary-book-add[b-p865t2d1aj] {
  color: #EDE2D2 !important;
  border-color: rgba(237, 226, 210, 0.38);
  background: rgba(255, 249, 239, 0.045);
}

.word-book[b-p865t2d1aj] {
  color: #FFF9EF !important;
  border-color: rgba(23, 45, 58, 0.64);
  box-shadow: 2px 3px 5px rgba(17, 35, 44, 0.30), inset 10px 0 rgba(17, 35, 44, 0.10);
}

.word-book--0[b-p865t2d1aj] { background-color: #385665; }
.word-book--1[b-p865t2d1aj] { background-color: #CDB58C; color: #2E2923 !important; border-color: #9F825B; }
.word-book--2[b-p865t2d1aj] { background-color: #506B78; }
.word-book--3[b-p865t2d1aj] { background-color: #7A5A3A; }

.lex-shelf-card[b-p865t2d1aj] {
  border-color: #D8CDBD !important;
  background: linear-gradient(105deg, #FFF9EF, #F8F1E7) !important;
  box-shadow: 0 9px 18px rgba(46, 41, 35, 0.10) !important;
}

.lex-shelf-books[b-p865t2d1aj] {
  border-bottom-color: #7A5A3A;
  box-shadow: 0 4px 0 #B28A61;
}

.lex-spine[b-p865t2d1aj] {
  border-color: rgba(46, 41, 35, 0.24);
  box-shadow: inset 2px 0 rgba(255, 249, 239, 0.20);
}

.lex-spine--0[b-p865t2d1aj] { background: #1F3A4A; }
.lex-spine--1[b-p865t2d1aj] { background: #506B78; }
.lex-spine--2[b-p865t2d1aj] { background: #7A5A3A; }
.lex-spine--3[b-p865t2d1aj] { background: #87999B; }
.lex-spine--4[b-p865t2d1aj] { background: #B69A73; }

@media (max-width: 760px) {
  .cabinet-diaries[b-p865t2d1aj] {
    border-bottom-color: #474843;
  }
}

/* Quiet antiquarian room: deeper timber, leather spines, parchment desk. */
.dashboard-shell[b-p865t2d1aj] {
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 248, 233, .48), transparent 28%),
    radial-gradient(circle at 88% 94%, rgba(78, 53, 34, .13), transparent 38%),
    repeating-linear-gradient(112deg, rgba(74, 50, 32, .025) 0 1px, transparent 1px 6px),
    var(--bg-app, #E8E0D2) !important;
}

.dashboard-hero[b-p865t2d1aj] {
  min-height: 250px;
  padding-top: 32px;
  padding-bottom: 34px;
  background:
    radial-gradient(ellipse at 72% 0%, rgba(255, 252, 242, .5), transparent 35%),
    repeating-linear-gradient(98deg, rgba(92, 62, 39, .025) 0 1px, transparent 1px 7px),
    linear-gradient(105deg, #EEE2CF, #D9CBB8) !important;
  box-shadow:
    inset 0 -14px 0 #5A3E29,
    inset 0 -19px 0 #2A211B,
    inset 0 1px rgba(255, 255, 255, .65),
    0 11px 22px rgba(43, 33, 26, .26);
}

.desk-today-card[b-p865t2d1aj],
.desk-streak-card[b-p865t2d1aj] {
  background:
    repeating-linear-gradient(0deg, rgba(89, 62, 38, .025) 0 1px, transparent 1px 5px),
    linear-gradient(135deg, rgba(247, 240, 228, .96), rgba(239, 227, 208, .94));
  border-color: rgba(122, 84, 52, .26);
  box-shadow: 0 9px 18px rgba(43, 33, 26, .2), inset 0 0 0 1px rgba(255, 252, 244, .7);
}

.library-cabinet[b-p865t2d1aj] {
  background: #261B14;
  border-top: 10px solid #5A3E29;
  border-bottom: 12px solid #241812;
  box-shadow:
    inset 18px 0 #49301F,
    inset -18px 0 #49301F,
    inset 0 10px 18px rgba(0, 0, 0, .5),
    0 13px 25px rgba(43, 33, 26, .38);
}

.cabinet-section[b-p865t2d1aj] {
  background:
    radial-gradient(ellipse at center top, rgba(184, 149, 91, .13), transparent 45%),
    repeating-linear-gradient(92deg, rgba(255, 240, 211, .018) 0 1px, transparent 1px 8px),
    linear-gradient(180deg, #302219, #1D1510);
}

.cabinet-diaries[b-p865t2d1aj] { border-right-color: #513521; }

.cabinet-heading[b-p865t2d1aj] {
  border-bottom-color: #2A211B;
  background:
    repeating-linear-gradient(92deg, rgba(255,255,255,.025) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, #68472D, #3D281B);
  box-shadow: 0 6px 10px rgba(0, 0, 0, .44), inset 0 1px rgba(216, 184, 133, .28);
}

.cabinet-heading h3[b-p865t2d1aj],
.cabinet-heading a[b-p865t2d1aj] { color: #E9D9BD !important; }

.diary-books[b-p865t2d1aj],
.word-books[b-p865t2d1aj] {
  border-bottom-color: #3B281B;
  box-shadow: inset 0 -7px #6A472C, 0 9px 11px rgba(0, 0, 0, .38);
}

.diary-book[b-p865t2d1aj] {
  border-color: rgba(28, 18, 12, .82);
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.28), transparent 13%, rgba(255,255,255,.08) 46%, transparent 75%, rgba(0,0,0,.24)),
    repeating-linear-gradient(0deg, transparent 0 9px, rgba(255,255,255,.018) 9px 10px);
  box-shadow: 5px 3px 8px rgba(0, 0, 0, .62), inset 4px 0 rgba(255, 240, 215, .09), inset -4px 0 rgba(0,0,0,.22);
}

.diary-book--0[b-p865t2d1aj] { background-color: #273F3A; }
.diary-book--1[b-p865t2d1aj] { background-color: #765337; color: #F3E6D1 !important; border-color: #382519; }
.diary-book--2[b-p865t2d1aj] { background-color: #60412C; }
.diary-book--3[b-p865t2d1aj] { background-color: #263D47; }
.diary-book--4[b-p865t2d1aj] { background-color: #82613D; color: #F3E6D1 !important; border-color: #422C1C; }

.word-book[b-p865t2d1aj] {
  border-color: rgba(48, 30, 18, .8);
  background-image:
    linear-gradient(100deg, rgba(0,0,0,.28), transparent 12%, rgba(255,255,255,.06) 55%, rgba(0,0,0,.18)),
    repeating-linear-gradient(0deg, transparent 0 8px, rgba(255,255,255,.018) 8px 9px);
  box-shadow: 3px 4px 7px rgba(0, 0, 0, .5), inset 12px 0 rgba(0, 0, 0, .13);
}

.word-book--0[b-p865t2d1aj] { background-color: #314A42; }
.word-book--1[b-p865t2d1aj] { background-color: #755438; color: #F4E6D1 !important; border-color: #3C291C; }
.word-book--2[b-p865t2d1aj] { background-color: #263E48; }
.word-book--3[b-p865t2d1aj] { background-color: #69462E; }

.lex-shelf-card[b-p865t2d1aj] {
  border-color: var(--border-soft, #CDBFA9) !important;
  background:
    repeating-linear-gradient(0deg, rgba(86, 57, 35, .026) 0 1px, transparent 1px 5px),
    linear-gradient(120deg, var(--bg-paper, #F7F0E4), var(--bg-paper-deep, #EFE3D0)) !important;
  box-shadow: 0 12px 24px var(--shadow-soft, rgba(43,33,26,.18)), inset 0 0 0 1px rgba(255,255,255,.54) !important;
}

.lex-shelf-books[b-p865t2d1aj] {
  border-bottom-color: #4B3020;
  box-shadow: 0 5px #8A6039, 0 9px 10px rgba(43, 33, 26, .28);
}

.lex-spine[b-p865t2d1aj] {
  background-image: linear-gradient(90deg, rgba(0,0,0,.28), transparent 22%, rgba(255,255,255,.1) 55%, rgba(0,0,0,.18));
  box-shadow: inset 2px 0 rgba(255, 241, 215, .18), 2px 1px 3px rgba(43, 33, 26, .28);
}

.lex-spine--0[b-p865t2d1aj] { background-color: #263F48; }
.lex-spine--1[b-p865t2d1aj] { background-color: #4F6658; }
.lex-spine--2[b-p865t2d1aj] { background-color: #7A5434; }
.lex-spine--3[b-p865t2d1aj] { background-color: #594234; }
.lex-spine--4[b-p865t2d1aj] { background-color: #987247; }

/* ============================================================
   Quiet Collection unify — ダッシュボード（ホーム）を DiaryList の
   白い Collection 様式へ統一する最終レイヤ。
   アイボリー地・白カード（#FFFDF7）・ライトオークの棚・セリフ見出し。
   既存の「黒檀の本棚」レイヤを上書きするため最後に置く。
   ============================================================ */
.dashboard-shell[b-p865t2d1aj] {
  background: #F8F5ED !important;
  box-shadow: none !important;
}

/* ヒーロー — パーチメント＋木口 → 白カード */
.dashboard-hero[b-p865t2d1aj] {
  margin: 0 0 1.25rem !important;
  padding: clamp(1.5rem, 3vw, 2.4rem) !important;
  border: 1px solid rgba(44, 42, 37, .10) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 88% 14%, rgba(184, 162, 122, .10), transparent 26%),
    #FFFDF7 !important;
  box-shadow: 0 8px 32px rgba(44, 42, 37, .07) !important;
}

.dashboard-hero .lx-room-header[b-p865t2d1aj] {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.dashboard-hero .lx-room-header .lx-page-kicker[b-p865t2d1aj] { color: #7A8D77 !important; text-shadow: none !important; }
.dashboard-hero .lx-room-header .lx-page-title[b-p865t2d1aj] { color: #2C2A25 !important; text-shadow: none !important; }
.dashboard-hero .lx-room-header .lx-page-sub[b-p865t2d1aj] { color: #7A7568 !important; text-shadow: none !important; }
.dashboard-hero h2[b-p865t2d1aj] { text-shadow: none !important; }

.desk-today-card[b-p865t2d1aj],
.desk-streak-card[b-p865t2d1aj] {
  background: rgba(245, 240, 232, .55) !important;
  border: 1px solid rgba(44, 42, 37, .10) !important;
  box-shadow: 0 2px 12px rgba(44, 42, 37, .05), inset 0 0 0 1px rgba(255, 253, 247, .6) !important;
}

/* キャビネット（最近の日記 / 今月の学習状況）— 黒檀の本棚 → 白カード */
.library-cabinet[b-p865t2d1aj] {
  margin: 0 0 1.25rem !important;
  border: 1px solid rgba(44, 42, 37, .10) !important;
  border-top: 1px solid rgba(44, 42, 37, .10) !important;
  border-bottom: 1px solid rgba(44, 42, 37, .10) !important;
  border-radius: 20px !important;
  background: #FFFDF7 !important;
  box-shadow: 0 8px 32px rgba(44, 42, 37, .07) !important;
}

.cabinet-section[b-p865t2d1aj] {
  background: #FFFDF7 !important;
}

.cabinet-diaries[b-p865t2d1aj] {
  border-right: 1px solid rgba(44, 42, 37, .10) !important;
}

.cabinet-heading[b-p865t2d1aj] {
  border-bottom: 1px solid rgba(44, 42, 37, .10) !important;
  background: #FFFDF7 !important;
  box-shadow: none !important;
}

.cabinet-heading h3[b-p865t2d1aj] { color: #2C2A25 !important; }
.cabinet-heading a[b-p865t2d1aj] { color: #7A7568 !important; }

/* 本の下端の棚板 — 黒木 → ライトオーク */
.diary-books[b-p865t2d1aj],
.word-books[b-p865t2d1aj] {
  border-bottom: 16px solid #D2AE78 !important;
  box-shadow: inset 0 -4px 0 #C19A60 !important;
}

/* 日記の背表紙 — 革装 → 明るい砂色（Collection の本に統一） */
.diary-book[b-p865t2d1aj] {
  color: #514B3C !important;
  border: 1px solid rgba(44, 42, 37, .10) !important;
  background-image: none !important;
  background: linear-gradient(100deg, #E2DCCF 0%, #D6D0C2 14%, #D2CBBC 86%, #C7C0B0 100%) !important;
  box-shadow:
    inset 3px 0 rgba(255, 255, 255, .4),
    inset -5px 0 rgba(0, 0, 0, .06),
    2px 4px 10px rgba(44, 42, 37, .10) !important;
  text-shadow: none !important;
}

.diary-book--0[b-p865t2d1aj] { background: linear-gradient(100deg, #DCE3DF, #CAD2CD) !important; }
.diary-book--1[b-p865t2d1aj] { background: linear-gradient(100deg, #E8E1D2, #D8CFBB) !important; }
.diary-book--2[b-p865t2d1aj] { background: linear-gradient(100deg, #E2DCCF, #D2CBBC) !important; }
.diary-book--3[b-p865t2d1aj] { background: linear-gradient(100deg, #DCE3E4, #C9D2D2) !important; }
.diary-book--4[b-p865t2d1aj] { background: linear-gradient(100deg, #EDE6D6, #DCD3BF) !important; }

.diary-book[b-p865t2d1aj]::after { background: #C2A878 !important; }

.diary-book-add[b-p865t2d1aj] {
  color: #9A9282 !important;
  border: 2px dashed rgba(44, 42, 37, .18) !important;
  background: rgba(245, 240, 232, .5) !important;
}

/* 今月の学習状況のスタットカード */
.month-status-item[b-p865t2d1aj] {
  background: rgba(238, 232, 222, .45) !important;
  border-color: rgba(44, 42, 37, .10) !important;
}

/* Lexicon Shelf / 今日やること — パーチメント → 白カード */
.lex-shelf-card[b-p865t2d1aj],
.today-mission-panel[b-p865t2d1aj] {
  margin: 0 0 1.25rem !important;
  border: 1px solid rgba(44, 42, 37, .10) !important;
  border-radius: 20px !important;
  background: #FFFDF7 !important;
  box-shadow: 0 8px 32px rgba(44, 42, 37, .07) !important;
}

.lex-shelf-books[b-p865t2d1aj] {
  border-bottom: 5px solid #D2AE78 !important;
  box-shadow: 0 4px 0 #C19A60 !important;
}

.today-mission-item[b-p865t2d1aj] {
  background: rgba(245, 240, 232, .5) !important;
  border-color: rgba(44, 42, 37, .10) !important;
}

/* Dashboard Lexicon Shelf: match the light book treatment used across shelves. */
.lex-shelf-card .lex-bars[b-p865t2d1aj] {
  gap: clamp(6px, .9vw, 10px) !important;
  height: 138px !important;
  padding: .7rem .7rem .5rem !important;
  border-bottom: 2px solid #D7CBB6 !important;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .72) !important;
}

.lex-shelf-card .lex-bar-col[b-p865t2d1aj] {
  align-items: flex-end !important;
}

.lex-shelf-card .lex-bar[b-p865t2d1aj] {
  width: clamp(13px, 1.25vw, 18px) !important;
  max-width: 18px !important;
  min-height: 6px !important;
  border: 1px solid rgba(44, 42, 37, .10) !important;
  border-bottom: 0 !important;
  border-radius: 4px 5px 1px 1px !important;
  background: linear-gradient(100deg, #E2DCCF 0%, #D6D0C2 16%, #D2CBBC 82%, #C7C0B0 100%) !important;
  box-shadow:
    inset 3px 0 rgba(255, 255, 255, .42),
    inset -4px 0 rgba(0, 0, 0, .06),
    2px 3px 8px rgba(44, 42, 37, .12) !important;
  transform-origin: bottom center;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease !important;
}

.lex-shelf-card .lex-bar:not(.is-empty)[b-p865t2d1aj]::before {
  content: "" !important;
  position: absolute !important;
  inset: 3px auto 5px 3px !important;
  width: 1px !important;
  border-radius: 1px !important;
  background: rgba(44, 42, 37, .12) !important;
}

.lex-shelf-card .lex-bar:not(.is-empty)[b-p865t2d1aj]::after {
  height: 3px !important;
  background: rgba(255, 255, 255, .48) !important;
  border-radius: 4px 5px 0 0 !important;
}

.lex-shelf-card .lex-bar-col:nth-child(5n+1) .lex-bar:not(.is-empty)[b-p865t2d1aj] {
  background: linear-gradient(100deg, #DCE3DF 0%, #CAD2CD 100%) !important;
}

.lex-shelf-card .lex-bar-col:nth-child(5n+2) .lex-bar:not(.is-empty)[b-p865t2d1aj] {
  background: linear-gradient(100deg, #E8E1D2 0%, #D8CFBB 100%) !important;
}

.lex-shelf-card .lex-bar-col:nth-child(5n+3) .lex-bar:not(.is-empty)[b-p865t2d1aj] {
  background: linear-gradient(100deg, #DCE3E4 0%, #C9D2D2 100%) !important;
}

.lex-shelf-card .lex-bar-col:nth-child(5n+4) .lex-bar:not(.is-empty)[b-p865t2d1aj] {
  background: linear-gradient(100deg, #EDE6D6 0%, #DCD3BF 100%) !important;
}

.lex-shelf-card .lex-bar-col:nth-child(5n) .lex-bar:not(.is-empty)[b-p865t2d1aj] {
  background: linear-gradient(100deg, #DDD8E2 0%, #CBC3D4 100%) !important;
}

.lex-shelf-card .lex-bar.is-empty[b-p865t2d1aj] {
  height: 6px !important;
  border: 0 !important;
  border-radius: 2px !important;
  background: #E5DED2 !important;
  box-shadow: none !important;
  opacity: .58 !important;
}

.lex-shelf-card .lex-bar-col:hover .lex-bar:not(.is-empty)[b-p865t2d1aj] {
  filter: brightness(1.02) !important;
  transform: translateY(-3px) !important;
  box-shadow:
    inset 3px 0 rgba(255, 255, 255, .42),
    inset -4px 0 rgba(0, 0, 0, .06),
    3px 8px 14px rgba(44, 42, 37, .16) !important;
}
/* _content/LinguaNote/Components/Pages/Diary.razor.rz.scp.css */
.diary-page[b-k47cl0nelf] {
    max-width: 900px;
}

/* ── Page header ── */
.diary-page-header[b-k47cl0nelf] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.1rem 0 0.25rem;
}

.diary-page-header-meta[b-k47cl0nelf] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.diary-page-kicker[b-k47cl0nelf] {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6366f1;
    background: #eef2ff;
    padding: 0.18rem 0.65rem;
    border-radius: 999px;
}

.diary-page-date[b-k47cl0nelf] {
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 500;
}

.diary-page-title[b-k47cl0nelf] {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.65rem, 5vw, 2rem);
    font-weight: 850;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.diary-first-run-primary[b-k47cl0nelf] {
    position: sticky;
    top: 0.75rem;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.9rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid #c7d2fe;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(10px);
}

.diary-first-run-primary span[b-k47cl0nelf] {
    display: block;
    color: #4f46e5;
    font-size: 0.74rem;
    font-weight: 850;
    margin-bottom: 0.2rem;
}

.diary-first-run-primary strong[b-k47cl0nelf] {
    display: block;
    color: #0f172a;
    font-size: 0.98rem;
    line-height: 1.45;
}

.diary-first-run-primary .btn[b-k47cl0nelf] {
    white-space: nowrap;
}

.diary-first-run-primary-actions[b-k47cl0nelf] {
    display: grid;
    gap: 0.2rem;
    justify-items: stretch;
}

.diary-first-run-primary-actions .btn-link[b-k47cl0nelf] {
    color: #64748b;
    font-size: 0.82rem;
    text-decoration: none;
}

.diary-first-run-primary-actions .btn-link:hover[b-k47cl0nelf],
.diary-first-run-primary-actions .btn-link:focus[b-k47cl0nelf] {
    color: #334155;
    text-decoration: underline;
}

.diary-first-run-coach[b-k47cl0nelf] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #bfdbfe;
    border-radius: 1rem;
    background: #eff6ff;
}

.diary-first-run-kicker[b-k47cl0nelf] {
    display: inline-flex;
    margin-bottom: 0.35rem;
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 850;
}

.diary-first-run-coach strong[b-k47cl0nelf] {
    display: block;
    color: #0f172a;
    font-size: 1.02rem;
    line-height: 1.45;
}

.diary-first-run-coach p[b-k47cl0nelf] {
    margin: 0.25rem 0 0;
    color: #475569;
    font-size: 0.92rem;
}

.diary-first-run-actions[b-k47cl0nelf] {
    display: grid;
    gap: 0.55rem;
    min-width: 12rem;
}

.diary-first-run-actions .btn[b-k47cl0nelf] {
    white-space: nowrap;
}

.diary-theme-buttons[b-k47cl0nelf] {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    width: 100%;
}

.diary-theme-buttons > .btn[b-k47cl0nelf],
.diary-ai-actions > .btn[b-k47cl0nelf] {
    width: 100%;
}

.diary-draft-textarea[b-k47cl0nelf] {
    min-height: 9rem;
}

.diary-entry-textarea[b-k47cl0nelf] {
    min-height: 18rem;
}

.diary-result-header[b-k47cl0nelf] {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.diary-result-header .result-heading-primary[b-k47cl0nelf] {
    width: 100%;
}

.diary-result-header .btn[b-k47cl0nelf] {
    white-space: nowrap;
}

.diary-correction-card[b-k47cl0nelf] {
    border: 1px solid rgba(199, 210, 254, 0.82);
    border-radius: 1.25rem;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.correction-comparison-stack[b-k47cl0nelf] {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.4rem;
}

.correction-text-panel[b-k47cl0nelf] {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #ffffff;
}

.correction-text-panel-original[b-k47cl0nelf] {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.correction-text-panel-ai[b-k47cl0nelf] {
    border-color: #c7d2fe;
    background: linear-gradient(180deg, #f8faff 0%, #eef2ff 100%);
}

.correction-panel-header[b-k47cl0nelf] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.correction-panel-kicker[b-k47cl0nelf] {
    display: block;
    margin-bottom: 0.18rem;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
}

.correction-panel-header h5[b-k47cl0nelf] {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.25;
}

.correction-text-panel p[b-k47cl0nelf] {
    margin: 0;
    color: #1e293b;
    font-size: 1rem;
    line-height: 1.72;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.correction-text-panel-ai p[b-k47cl0nelf] {
    color: #111827;
    font-weight: 600;
}

.correction-takeaway[b-k47cl0nelf] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #bfdbfe;
    border-radius: 1rem;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.correction-takeaway__copy[b-k47cl0nelf] {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.correction-takeaway__kicker[b-k47cl0nelf] {
    color: #2563eb;
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.correction-takeaway__copy strong[b-k47cl0nelf] {
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.4;
}

.correction-takeaway__copy p[b-k47cl0nelf] {
    margin: 0;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.55;
}

.correction-takeaway__actions[b-k47cl0nelf] {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.score-card[b-k47cl0nelf] {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #f8fafc;
}

.score-card__header[b-k47cl0nelf] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.score-card__title[b-k47cl0nelf] {
    color: #0f172a;
    font-weight: 850;
}

.score-card__cefr[b-k47cl0nelf] {
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.78rem;
    font-weight: 800;
}

.score-row[b-k47cl0nelf] {
    display: grid;
    grid-template-columns: 6.5rem minmax(7rem, 1fr) 2.5rem minmax(8rem, 1.1fr);
    gap: 0.6rem;
    align-items: center;
}

.score-row__label[b-k47cl0nelf] {
    color: #475569;
    font-size: 0.84rem;
    font-weight: 750;
}

.score-row__track[b-k47cl0nelf] {
    height: 0.55rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.score-row__fill[b-k47cl0nelf] {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa, #4f46e5);
}

.score-row__value[b-k47cl0nelf] {
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 850;
    text-align: right;
}

.score-row__hint[b-k47cl0nelf] {
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.35;
}

.correction-detail-panel[b-k47cl0nelf] {
    margin-top: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #ffffff;
    overflow: hidden;
}

.correction-detail-panel summary[b-k47cl0nelf] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    color: #334155;
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}

.correction-detail-panel summary[b-k47cl0nelf]::-webkit-details-marker {
    display: none;
}

.correction-detail-panel summary i[b-k47cl0nelf] {
    transition: transform 0.18s ease;
}

.correction-detail-panel[open] summary i[b-k47cl0nelf] {
    transform: rotate(180deg);
}

.correction-detail-panel__body[b-k47cl0nelf] {
    padding: 0 1rem 1rem;
    border-top: 1px solid #e2e8f0;
}

.correction-detail-panel__body p[b-k47cl0nelf] {
    color: #334155;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.swipe-card-track[b-k47cl0nelf] {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(78%, 1fr);
    gap: 0.9rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.swipe-card-track.one-card[b-k47cl0nelf] {
    grid-auto-columns: 100%;
}

.swipe-carousel[b-k47cl0nelf] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.swipe-pagination[b-k47cl0nelf] {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
}

.page-dot[b-k47cl0nelf] {
    width: 9px;
    height: 9px;
    min-width: 9px;
    min-height: 9px;
    padding: 0;
    display: inline-block;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    appearance: none;
    -webkit-appearance: none;
}

.page-dot.active[b-k47cl0nelf] {
    background: #4f46e5;
}

.swipe-card-track[b-k47cl0nelf] {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.swipe-card-track[b-k47cl0nelf]::-webkit-scrollbar {
    display: none;
}

.swipe-card[b-k47cl0nelf] {
    scroll-snap-align: center;
    border: 1px solid #e2e8f0;
    border-radius: 1.15rem;
    background: linear-gradient(160deg, #ffffff 0%, #f8faff 100%);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    padding: 1rem;
    min-height: 150px;
}

.diary-audio-toolbar[b-k47cl0nelf],
.card-audio-header[b-k47cl0nelf],
.result-audio-block[b-k47cl0nelf] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.diary-speak-trigger[b-k47cl0nelf] {
    white-space: nowrap;
}

.mini-speak-button[b-k47cl0nelf] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    border: 0;
    border-radius: 0.75rem;
    background: transparent;
    color: #5b6b83;
    flex-shrink: 0;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.streamline-speaker-icon[b-k47cl0nelf] {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 1.25rem;
    display: block;
    stroke: currentColor;
}

.streamline-speaker-icon-inline[b-k47cl0nelf] {
    width: 1.1rem;
    height: 1.1rem;
    display: inline-block;
    vertical-align: text-bottom;
    stroke: currentColor;
}

.streamline-speaker-icon-inline[b-k47cl0nelf] {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-block;
    vertical-align: -0.15em;
}

.diary-speak-trigger[b-k47cl0nelf] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.diary-editor-wrapper[b-k47cl0nelf] {
    position: relative;
}

.diary-writing-card[b-k47cl0nelf] {
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 1.35rem;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}

.diary-prompt-banner[b-k47cl0nelf] {
    display: grid;
    gap: 0.2rem;
    margin-bottom: 0.75rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid #c7d2fe;
    border-radius: 0.95rem;
    background: linear-gradient(180deg, #eef2ff, #f8faff);
    color: #312e81;
    line-height: 1.45;
}

.diary-prompt-banner strong[b-k47cl0nelf] {
    font-size: 0.9rem;
}

.diary-prompt-banner span[b-k47cl0nelf] {
    font-size: 0.88rem;
}

.diary-input-mode-bar[b-k47cl0nelf] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.diary-input-actions[b-k47cl0nelf] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.diary-toolbar-pill[b-k47cl0nelf] {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.3rem 1rem;
    gap: 0;
    justify-content: space-evenly;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.diary-icon-action[b-k47cl0nelf] {
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: transform 0.18s ease, color 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
}

.diary-icon-action:hover:not(:disabled)[b-k47cl0nelf] {
    transform: translateY(-1px);
    color: #4f46e5;
    background: rgba(99, 102, 241, 0.1);
}

.diary-icon-action:disabled[b-k47cl0nelf] {
    opacity: 0.62;
}

.diary-icon-action:focus-visible[b-k47cl0nelf] {
    outline: 2px solid rgba(99, 102, 241, 0.28);
    outline-offset: 2px;
}

.diary-camera-button[b-k47cl0nelf] {
    order: 1;
}

.diary-mic-button[b-k47cl0nelf] {
    order: 2;
}

.diary-translate-button[b-k47cl0nelf] {
    order: 3;
}

.diary-audio-button[b-k47cl0nelf] {
    order: 4;
}

.diary-ai-button[b-k47cl0nelf] {
    order: 5;
}

.diary-share-button[b-k47cl0nelf] {
    order: 6;
}

.diary-save-button[b-k47cl0nelf] {
    order: 7;
}

.diary-save-button[b-k47cl0nelf] {
    color: #7c3aed;
}

.diary-save-button:hover:not(:disabled)[b-k47cl0nelf] {
    color: #6d28d9 !important;
    background: transparent;
    transform: translateY(-1px);
}

.diary-save-button:disabled[b-k47cl0nelf] {
    color: #a78bfa;
    opacity: 0.7;
}

.diary-save-button-icon[b-k47cl0nelf] {
    width: 1.1rem;
    height: 1.1rem;
    font-size: 1.1rem;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.diary-mic-button.is-listening[b-k47cl0nelf] {
    color: #dc2626;
    background: transparent;
    box-shadow: none;
}

.diary-camera-button[b-k47cl0nelf] {
    cursor: pointer;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.diary-camera-button:hover[b-k47cl0nelf] {
    transform: translateY(-1px);
    color: #4f46e5;
}

.diary-camera-button .snap-file-input[b-k47cl0nelf] {
    display: none;
}

.diary-mic-button-icon[b-k47cl0nelf] {
    width: 22px;
    height: 22px;
    font-size: 22px;
    display: block;
    stroke: currentColor;
}

.diary-speech-panel[b-k47cl0nelf] {
    margin-bottom: 0.9rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid #dbeafe;
    border-radius: 0.9rem;
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.diary-speech-status[b-k47cl0nelf] {
    color: #1e3a8a;
    font-size: 0.94rem;
    line-height: 1.5;
}

.diary-live-transcript[b-k47cl0nelf] {
    margin-top: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: #0f172a;
}

.diary-live-transcript-label[b-k47cl0nelf] {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #2563eb;
}

.diary-char-counter[b-k47cl0nelf] {
    text-align: right;
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 0.4rem;
    padding-right: 0.25rem;
}

.diary-char-counter-warn[b-k47cl0nelf] {
    color: #ef4444;
    font-weight: 700;
}

.diary-status-content[b-k47cl0nelf] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.diary-status-content span[b-k47cl0nelf] {
    min-width: 0;
}

.diary-status-content .btn[b-k47cl0nelf] {
    flex-shrink: 0;
    white-space: nowrap;
}

.diary-next-action-panel[b-k47cl0nelf] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid #c7d2fe;
    border-radius: 1rem;
    background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.diary-next-action-copy[b-k47cl0nelf] {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.diary-next-action-kicker[b-k47cl0nelf] {
    color: #4f46e5;
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.diary-next-action-copy strong[b-k47cl0nelf] {
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.35;
}

.diary-next-action-copy p[b-k47cl0nelf] {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}

.diary-next-action-buttons[b-k47cl0nelf] {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 22rem;
}

.diary-next-action-buttons .btn[b-k47cl0nelf] {
    white-space: nowrap;
}

.diary-empty-start-panel[b-k47cl0nelf] {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid #c7d2fe;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.diary-empty-start-copy[b-k47cl0nelf] {
    display: grid;
    gap: 0.2rem;
}

.diary-empty-start-copy strong[b-k47cl0nelf] {
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.35;
}

.diary-empty-start-copy p[b-k47cl0nelf] {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}

.diary-empty-theme-list[b-k47cl0nelf] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.5rem;
}

.diary-empty-theme-list .btn[b-k47cl0nelf],
.diary-empty-start-actions .btn[b-k47cl0nelf] {
    white-space: normal;
}

.diary-empty-start-actions[b-k47cl0nelf] {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.diary-editor-textarea[b-k47cl0nelf] {
    /* 高さは内容に合わせて JS (linguaUI.autoGrow) が自動調整し、
       max-height を超えたら内部スクロールに切り替わる */
    min-height: 9rem;
    max-height: 60vh;
    border-color: #dbe4ff;
    border-radius: 1rem;
    padding: 1.15rem 1.25rem;
    font-size: 1rem;
    line-height: 1.65;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
    resize: none;
    overflow-y: hidden;
}

.diary-editor-textarea:focus[b-k47cl0nelf] {
    border-color: #818cf8;
    box-shadow: 0 0 0 0.22rem rgba(99, 102, 241, 0.13);
}

/* ── AI scan sweep (案B) ─────────────────── */
.diary-editor-scan-area[b-k47cl0nelf] {
    position: relative;
}

/* 案3 インクの魔法 — 推敲中の静かな演出（旧スキャン演出を置換） */
.diary-editor-scan-area.is-scanning .diary-editor-textarea[b-k47cl0nelf] {
    border-color: rgba(184, 162, 122, 0.6);
    box-shadow: 0 0 0 0.22rem rgba(184, 162, 122, 0.14);
}

.diary-ink-overlay[b-k47cl0nelf] {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    overflow: hidden;
    pointer-events: none;
    z-index: 3;
    background: rgba(248, 246, 242, 0.35);
    backdrop-filter: blur(0.5px);
}

.diary-ink-glow[b-k47cl0nelf] {
    position: absolute;
    inset: -12%;
    background:
        radial-gradient(42% 38% at 32% 36%, rgba(201, 162, 75, 0.30), transparent 70%),
        radial-gradient(46% 42% at 70% 64%, rgba(122, 139, 107, 0.26), transparent 72%),
        radial-gradient(64% 58% at 50% 54%, rgba(184, 162, 122, 0.24), transparent 76%);
    will-change: transform, opacity;
    animation: ink-breathe-b-k47cl0nelf 2.0s ease-in-out infinite;
}

@keyframes ink-breathe-b-k47cl0nelf {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.6; transform: scale(1.07) rotate(1.5deg); }
}

/* 紙の上を横切るブラス色の光のひとなで */
.diary-ink-sweep[b-k47cl0nelf] {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg,
        transparent 32%,
        rgba(201, 162, 75, 0.16) 44%,
        rgba(255, 252, 245, 0.7) 50%,
        rgba(201, 162, 75, 0.16) 56%,
        transparent 68%);
    transform: translateX(-130%);
    will-change: transform;
    animation: ink-sweep-b-k47cl0nelf 2.6s cubic-bezier(0.5, 0, 0.2, 1) infinite;
}

@keyframes ink-sweep-b-k47cl0nelf {
    0%        { transform: translateX(-130%); }
    55%, 100% { transform: translateX(130%); }
}

/* 一滴のインクが水に広がるような波紋 */
.diary-ink-ripples[b-k47cl0nelf] {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.diary-ink-ripples span[b-k47cl0nelf] {
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid rgba(184, 162, 122, 0.55);
    opacity: 0;
    will-change: transform, opacity;
    animation: ink-ripple-b-k47cl0nelf 2.4s ease-out infinite;
}

.diary-ink-ripples span:nth-child(2)[b-k47cl0nelf] { animation-delay: 0.8s; }
.diary-ink-ripples span:nth-child(3)[b-k47cl0nelf] { animation-delay: 1.6s; }

@keyframes ink-ripple-b-k47cl0nelf {
    0%   { transform: scale(0.3); opacity: 0; }
    18%  { opacity: 0.65; }
    100% { transform: scale(7.5); opacity: 0; border-color: rgba(122, 139, 107, 0); }
}

.diary-ink-motes[b-k47cl0nelf] {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.ink-mote[b-k47cl0nelf] {
    position: absolute;
    left: calc(5% + (var(--i) * 3.6%));
    bottom: 16%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 162, 75, 0.95), rgba(137, 109, 44, 0));
    opacity: 0;
    will-change: transform, opacity;
    animation: ink-rise-b-k47cl0nelf 2.3s ease-in-out infinite;
    animation-delay: calc(var(--i) * -105ms);
}

/* インクの粒に色とサイズの揺らぎを与えて賑やかに */
.ink-mote:nth-child(3n)[b-k47cl0nelf] {
    width: 5px;
    height: 5px;
    background: radial-gradient(circle, rgba(122, 139, 107, 0.9), transparent);
}

.ink-mote:nth-child(3n + 1)[b-k47cl0nelf] {
    width: 9px;
    height: 9px;
    background: radial-gradient(circle, rgba(184, 162, 122, 0.95), transparent);
}

@keyframes ink-rise-b-k47cl0nelf {
    0%   { transform: translateY(28px) scale(0.4) rotate(0deg); opacity: 0; }
    20%  { opacity: 1; }
    60%  { opacity: 0.85; transform: translateY(-34px) scale(1.15) rotate(140deg); }
    100% { transform: translateY(-82px) scale(0.55) rotate(220deg); opacity: 0; }
}

.diary-ink-caption[b-k47cl0nelf] {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 13%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.ink-caption-text[b-k47cl0nelf] {
    background: linear-gradient(90deg,
        rgba(137, 109, 44, 0.5) 0%,
        #C9A24B 25%,
        #896D2C 50%,
        #C9A24B 75%,
        rgba(137, 109, 44, 0.5) 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: ink-caption-shimmer-b-k47cl0nelf 2.2s linear infinite;
}

@keyframes ink-caption-shimmer-b-k47cl0nelf {
    to { background-position: -220% 0; }
}

.ink-quill[b-k47cl0nelf] {
    font-size: 1.4rem;
    color: #896D2C;
    filter: drop-shadow(0 0 7px rgba(201, 162, 75, 0.65));
    animation: ink-quill-sway-b-k47cl0nelf 1.6s ease-in-out infinite;
}

@keyframes ink-quill-sway-b-k47cl0nelf {
    0%, 100% { transform: rotate(6deg) translateY(0); }
    50% { transform: rotate(-11deg) translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
    .diary-ink-motes[b-k47cl0nelf],
    .diary-ink-glow[b-k47cl0nelf],
    .diary-ink-sweep[b-k47cl0nelf],
    .diary-ink-ripples span[b-k47cl0nelf],
    .ink-caption-text[b-k47cl0nelf],
    .ink-quill[b-k47cl0nelf] {
        animation: none;
    }

    .ink-caption-text[b-k47cl0nelf] {
        -webkit-text-fill-color: #896D2C;
        color: #896D2C;
    }
}

/* ── AI red-pen correction (案A) ─────────── */
.diary-redpen-overlay[b-k47cl0nelf] {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: 1rem;
    background: #ffffff;
    border: 1px solid #818cf8;
    box-shadow: 0 0 0 0.22rem rgba(99, 102, 241, 0.12);
    padding: 1.15rem 1.25rem;
    overflow: auto;
}

.diary-redpen-doc[b-k47cl0nelf] {
    font-size: 1rem;
    line-height: 2.15;
    color: #334155;
    white-space: pre-wrap;
    word-break: break-word;
}

.redpen-word[b-k47cl0nelf] {
    position: relative;
    white-space: pre-wrap;
}

/* 波線（スペルチェック風）: 下線色だけをフェードインさせて本文の色は変えない */
.redpen-wavy[b-k47cl0nelf] {
    text-decoration: underline wavy transparent;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    animation: redpen-wavy-in-b-k47cl0nelf 0.5s ease forwards;
    animation-delay: var(--d, 0ms);
}

@keyframes redpen-wavy-in-b-k47cl0nelf {
    to { text-decoration-color: #e11d48; }
}

/* 取り消し線: 左→右に線が引かれる */
.redpen-strike[b-k47cl0nelf]::after {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    top: 52%;
    height: 2px;
    border-radius: 2px;
    background: #e11d48;
    transform: scaleX(0);
    transform-origin: left center;
    animation: redpen-draw-b-k47cl0nelf 0.4s cubic-bezier(0.5, 0, 0.2, 1) forwards;
    animation-delay: var(--d, 0ms);
}

@keyframes redpen-draw-b-k47cl0nelf {
    to { transform: scaleX(1); }
}

/* 取り消した単語の上に「修正中のインク」がフワッと浮かぶ（演出用プレースホルダ） */
.redpen-correction[b-k47cl0nelf] {
    position: absolute;
    left: 0;
    bottom: calc(100% + 1px);
    width: 100%;
    min-width: 1.4em;
    height: 0.5em;
    border-radius: 3px;
    background: linear-gradient(90deg,
        rgba(225, 29, 72, 0.16) 0%,
        rgba(225, 29, 72, 0.42) 50%,
        rgba(225, 29, 72, 0.16) 100%);
    background-size: 200% 100%;
    opacity: 0;
    transform: translateY(4px);
    animation:
        redpen-correction-in-b-k47cl0nelf 0.45s ease forwards,
        redpen-shimmer-b-k47cl0nelf 1.4s linear infinite;
    animation-delay: calc(var(--d, 0ms) + 260ms), calc(var(--d, 0ms) + 260ms);
}

@keyframes redpen-correction-in-b-k47cl0nelf {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes redpen-shimmer-b-k47cl0nelf {
    to { background-position: -200% 0; }
}

body.dark-mode .diary-redpen-overlay[b-k47cl0nelf] {
    background: #1e293b;
    border-color: #818cf8;
}

body.dark-mode .diary-redpen-doc[b-k47cl0nelf] {
    color: #e2e8f0;
}

@media (prefers-reduced-motion: reduce) {
    .redpen-wavy[b-k47cl0nelf] {
        text-decoration-color: #e11d48;
        animation: none;
    }

    .redpen-strike[b-k47cl0nelf]::after {
        transform: scaleX(1);
        animation: none;
    }

    .redpen-correction[b-k47cl0nelf] {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* ── AI typewriter streaming (案C) ───────── */
.diary-typewriter-overlay[b-k47cl0nelf] {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: 1rem;
    background: #ffffff;
    border: 1px solid #818cf8;
    box-shadow: 0 0 0 0.22rem rgba(99, 102, 241, 0.12);
    padding: 1.15rem 1.25rem;
    overflow: auto;
    font-size: 1rem;
    line-height: 1.65;
    color: #334155;
    white-space: pre-wrap;
    word-break: break-word;
}

.typewriter-caret[b-k47cl0nelf] {
    display: inline-block;
    width: 2px;
    height: 1.15em;
    margin-left: 1px;
    vertical-align: text-bottom;
    background: #6366f1;
    border-radius: 1px;
    animation: typewriter-blink-b-k47cl0nelf 1s steps(1, end) infinite;
}

@keyframes typewriter-blink-b-k47cl0nelf {
    0%, 50%   { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

body.dark-mode .diary-typewriter-overlay[b-k47cl0nelf] {
    background: #1e293b;
    border-color: #818cf8;
    color: #e2e8f0;
}

body.dark-mode .typewriter-caret[b-k47cl0nelf] {
    background: #a5b4fc;
}

@media (prefers-reduced-motion: reduce) {
    .typewriter-caret[b-k47cl0nelf] {
        animation: none;
        opacity: 1;
    }
}

/* ── AI step progress (案4) ──────────────── */
.ai-progress-card[b-k47cl0nelf] {
    border: 1px solid rgba(129, 140, 248, 0.45);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.06), rgba(99, 102, 241, 0.02));
    padding: 0.85rem 1rem;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08);
}

.ai-progress-steps[b-k47cl0nelf] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
}

.ai-progress-step[b-k47cl0nelf] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #94a3b8;
    transition: color 0.25s ease;
}

.ai-progress-step__marker[b-k47cl0nelf] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    flex-shrink: 0;
    font-size: 0.8rem;
}

/* 未処理 */
.ai-progress-step--pending[b-k47cl0nelf] {
    color: #cbd5e1;
}

/* 処理中 */
.ai-progress-step--active[b-k47cl0nelf] {
    color: #6366f1;
    font-weight: 600;
}

.ai-progress-step--active .ai-progress-step__marker[b-k47cl0nelf] {
    border-color: rgba(99, 102, 241, 0.35);
}

/* 完了 */
.ai-progress-step--done[b-k47cl0nelf] {
    color: #4f46e5;
}

.ai-progress-step--done .ai-progress-step__marker[b-k47cl0nelf] {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
}

.ai-progress-spinner[b-k47cl0nelf] {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.25);
    border-top-color: #6366f1;
    animation: ai-progress-spin-b-k47cl0nelf 0.7s linear infinite;
}

@keyframes ai-progress-spin-b-k47cl0nelf {
    to { transform: rotate(360deg); }
}

body.dark-mode .ai-progress-card[b-k47cl0nelf] {
    border-color: rgba(129, 140, 248, 0.4);
    background: linear-gradient(180deg, rgba(129, 140, 248, 0.12), rgba(129, 140, 248, 0.04));
}

body.dark-mode .ai-progress-step--pending[b-k47cl0nelf] {
    color: #64748b;
}

body.dark-mode .ai-progress-step--active[b-k47cl0nelf] {
    color: #a5b4fc;
}

body.dark-mode .ai-progress-step--done[b-k47cl0nelf] {
    color: #a5b4fc;
}

body.dark-mode .ai-progress-step--done .ai-progress-step__marker[b-k47cl0nelf] {
    background: #6366f1;
    border-color: #6366f1;
}

@media (prefers-reduced-motion: reduce) {
    .ai-progress-spinner[b-k47cl0nelf] {
        animation: none;
    }
}

.diary-audio-button[b-k47cl0nelf] {
    flex-shrink: 0;
}

.diary-audio-button-icon[b-k47cl0nelf] {
    width: 22px !important;
    height: 22px !important;
    font-size: 22px;
    max-width: 22px;
    max-height: 22px;
    display: block;
}

.mini-speak-button:hover[b-k47cl0nelf] {
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    transform: translateY(-1px);
}

.mini-speak-button:focus-visible[b-k47cl0nelf] {
    outline: 2px solid rgba(37, 99, 235, 0.4);
    outline-offset: 2px;
}

.mini-speak-button:disabled[b-k47cl0nelf] {
    opacity: 0.52;
    transform: none;
}

.suggestion-card[b-k47cl0nelf] {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.suggestion-copy-button[b-k47cl0nelf] {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.suggestion-card p[b-k47cl0nelf] {
    margin: 0;
    color: #1e293b;
    font-size: 1rem;
    line-height: 1.5;
}

.vocab-card[b-k47cl0nelf] {
    margin: 0;
    cursor: pointer;
}

.vocab-expression[b-k47cl0nelf] {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #0f172a;
    line-height: 1.35;
}

.vocab-meaning[b-k47cl0nelf] {
    font-size: 0.98rem;
    color: #334155;
    line-height: 1.5;
}

.card-chip[b-k47cl0nelf] {
    display: inline-block;
    margin-bottom: 0.55rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #4338ca;
    background: #e0e7ff;
}

@media (max-width: 576px) {
    .diary-page[b-k47cl0nelf] {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    .diary-draft-textarea[b-k47cl0nelf] {
        min-height: 7.5rem;
    }

    .diary-entry-textarea[b-k47cl0nelf] {
        min-height: 12rem;
    }

    .diary-input-mode-bar[b-k47cl0nelf] {
        align-items: stretch;
        flex-direction: column;
    }

    .diary-input-actions[b-k47cl0nelf] {
        width: 100%;
        justify-content: space-evenly;
    }

    .diary-theme-buttons[b-k47cl0nelf] {
        grid-template-columns: 1fr;
    }

    .diary-primary-action[b-k47cl0nelf] {
        width: 100%;
    }

    .diary-prompt-banner[b-k47cl0nelf] {
        padding: 0.8rem 0.85rem;
    }

    .swipe-card-track[b-k47cl0nelf] {
        grid-auto-columns: 88%;
    }

    .swipe-card[b-k47cl0nelf] {
        min-height: 170px;
    }

    .diary-audio-toolbar[b-k47cl0nelf],
    .result-audio-block[b-k47cl0nelf] {
        flex-direction: column;
        align-items: stretch;
    }

    .diary-correction-card[b-k47cl0nelf] {
        border-radius: 1rem;
    }

    .correction-text-panel[b-k47cl0nelf] {
        padding: 0.9rem;
        border-radius: 0.9rem;
    }

    .correction-text-panel p[b-k47cl0nelf] {
        font-size: 0.95rem;
        line-height: 1.68;
    }

    .correction-takeaway[b-k47cl0nelf],
    .score-row[b-k47cl0nelf] {
        grid-template-columns: 1fr;
    }

    .correction-takeaway__actions[b-k47cl0nelf],
    .correction-takeaway__actions .btn[b-k47cl0nelf] {
        width: 100%;
    }

    .score-row[b-k47cl0nelf] {
        gap: 0.35rem;
    }

    .score-row__value[b-k47cl0nelf] {
        text-align: left;
    }

    .diary-speak-trigger[b-k47cl0nelf] {
        width: 100%;
    }
}


.suggestion-card[b-k47cl0nelf] {
    border: none;
    width: 100%;
}

.swipe-carousel[b-k47cl0nelf] {
    overflow: hidden;
}

.swipe-card-track[b-k47cl0nelf] {
    touch-action: pan-x;
}


.vocab-card[b-k47cl0nelf] {
    border: 1px solid #e2e8f0;
    width: 100%;
    text-align: left;
}

.vocab-card.selected[b-k47cl0nelf] {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2), 0 6px 20px rgba(15, 23, 42, 0.08);
}

.selection-badge[b-k47cl0nelf] {
    font-size: 0.78rem;
    color: #4f46e5;
    font-weight: 600;
    white-space: nowrap;
}

:body.dark-mode .diary-page .vocab-card[b-k47cl0nelf] {
    background: linear-gradient(160deg, #ffffff 0%, #f8faff 100%) !important;
    border-color: #dbe4f0 !important;
    color: #0f172a !important;
}

:body.dark-mode .diary-page .vocab-card.selected[b-k47cl0nelf] {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.22), 0 8px 24px rgba(15, 23, 42, 0.18) !important;
}

:body.dark-mode .diary-page .vocab-card .vocab-expression[b-k47cl0nelf] {
    color: #0f172a !important;
}

:body.dark-mode .diary-page .vocab-card .vocab-meaning[b-k47cl0nelf] {
    color: #334155 !important;
}

:body.dark-mode .diary-page .vocab-card .selection-badge[b-k47cl0nelf] {
    color: #4f46e5 !important;
}

:body.dark-mode .diary-page .vocab-card .card-chip[b-k47cl0nelf] {
    color: #4338ca !important;
    background: #e0e7ff !important;
}


.formality-selector[b-k47cl0nelf] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 0.45rem;
    padding: 0.35rem;
    border-radius: 0.95rem;
    background: linear-gradient(140deg, #f8faff 0%, #eef2ff 100%);
    border: 1px solid #dbe4ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.formality-selector .btn[b-k47cl0nelf] {
    margin: 0 !important;
    border: 1px solid #d7def0;
    border-radius: 0.75rem;
    background: rgba(248, 250, 252, 0.96);
    color: #1e293b !important;
    font-weight: 700;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    padding: 0.55rem 0.4rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transition: all 0.22s ease;
}

.formality-selector .btn:hover[b-k47cl0nelf] {
    background: #ffffff;
    color: #312e81;
    border-color: #c7d2fe;
}

.formality-selector .btn-check:checked + .btn[b-k47cl0nelf] {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-color: transparent;
    color: #ffffff !important;
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.28);
    transform: translateY(-1px);
}

.formality-selector .btn-check:focus-visible + .btn[b-k47cl0nelf] {
    outline: 3px solid rgba(99, 102, 241, 0.35);
    outline-offset: 2px;
}

@media (max-width: 576px) {
    .formality-selector[b-k47cl0nelf] {
        gap: 0.3rem;
        padding: 0.3rem;
    }

    .formality-selector .btn[b-k47cl0nelf] {
        white-space: nowrap;
        font-size: 0.82rem;
        padding: 0.48rem 0.2rem;
    }
}

.result-heading[b-k47cl0nelf] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    padding: 0.4rem 0.75rem;
    border-radius: 0.65rem;
    font-weight: 700;
    line-height: 1.2;
}

.result-heading-primary[b-k47cl0nelf] {
    margin-top: 0;
    background: #eef2ff;
    color: #3730a3;
    border-left: 4px solid #4f46e5;
}

.result-heading-cefr[b-k47cl0nelf] {
    background: #f5f3ff;
    color: #6d28d9;
    border-left: 4px solid #8b5cf6;
}

.result-heading-feedback[b-k47cl0nelf] {
    background: #fff7ed;
    color: #c2410c;
    border-left: 4px solid #fb923c;
}

.result-heading-explanation[b-k47cl0nelf] {
    background: #f5f3ff;
    color: #6d28d9;
    border-left: 4px solid #8b5cf6;
}

.result-heading-reply[b-k47cl0nelf] {
    background: #eff6ff;
    color: #1d4ed8;
    border-left: 4px solid #3b82f6;
}

body.dark-mode .result-heading[b-k47cl0nelf] {
    color: #e5e7eb !important;
}

body.dark-mode .result-heading-primary[b-k47cl0nelf] {
    background: rgba(67, 56, 202, 0.22);
    color: #c7d2fe !important;
    border-left-color: #818cf8;
}

body.dark-mode .result-heading-cefr[b-k47cl0nelf] {
    background: rgba(109, 40, 217, 0.2);
    color: #ddd6fe !important;
    border-left-color: #a78bfa;
}

body.dark-mode .result-heading-feedback[b-k47cl0nelf] {
    background: rgba(194, 65, 12, 0.18);
    color: #fdba74 !important;
    border-left-color: #fb923c;
}

body.dark-mode .result-heading-explanation[b-k47cl0nelf] {
    background: rgba(109, 40, 217, 0.2);
    color: #d8b4fe !important;
    border-left-color: #a78bfa;
}

body.dark-mode .result-heading-reply[b-k47cl0nelf] {
    background: rgba(29, 78, 216, 0.2);
    color: #bfdbfe !important;
    border-left-color: #60a5fa;
}

body.dark-mode .swipe-card[b-k47cl0nelf] {
    background: linear-gradient(160deg, #1e293b 0%, #1a2440 100%);
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 6px 20px rgba(2, 6, 23, 0.4);
}

body.dark-mode .suggestion-card p[b-k47cl0nelf] {
    color: #e2e8f0 !important;
}

body.dark-mode .swipe-card .vocab-expression[b-k47cl0nelf] {
    color: #f1f5f9 !important;
}

body.dark-mode .swipe-card .vocab-meaning[b-k47cl0nelf] {
    color: #cbd5e1 !important;
}

body.dark-mode .swipe-card .selection-badge[b-k47cl0nelf] {
    color: #a5b4fc !important;
}

body.dark-mode .swipe-card .card-chip[b-k47cl0nelf] {
    color: #a5b4fc !important;
    background: rgba(79, 70, 229, 0.22) !important;
}

body.dark-mode .page-dot[b-k47cl0nelf] {
    background: #475569;
}

body.dark-mode .page-dot.active[b-k47cl0nelf] {
    background: #818cf8;
}

body.dark-mode .mini-speak-button[b-k47cl0nelf] {
    background: transparent;
    color: #c5d4ea;
}

body.dark-mode .mini-speak-button:hover[b-k47cl0nelf] {
    background: rgba(96, 165, 250, 0.12);
    color: #7dd3fc;
}

body.dark-mode .diary-correction-card[b-k47cl0nelf] {
    border-color: rgba(99, 102, 241, 0.34);
    background: #111827;
}

body.dark-mode .correction-text-panel[b-k47cl0nelf] {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.88);
}

body.dark-mode .correction-text-panel-ai[b-k47cl0nelf] {
    border-color: rgba(129, 140, 248, 0.48);
    background: rgba(49, 46, 129, 0.24);
}

body.dark-mode .correction-panel-kicker[b-k47cl0nelf] {
    color: #a5b4fc;
}

body.dark-mode .correction-panel-header h5[b-k47cl0nelf],
body.dark-mode .correction-text-panel p[b-k47cl0nelf] {
    color: #e5e7eb;
}

body.dark-mode .correction-text-panel-ai p[b-k47cl0nelf] {
    color: #f8fafc;
}

body.dark-mode .correction-takeaway[b-k47cl0nelf] {
    border-color: rgba(96, 165, 250, 0.32);
    background: rgba(30, 41, 59, 0.84);
}

body.dark-mode .correction-takeaway__copy strong[b-k47cl0nelf],
body.dark-mode .score-card__title[b-k47cl0nelf],
body.dark-mode .score-row__value[b-k47cl0nelf] {
    color: #e5e7eb;
}

body.dark-mode .correction-takeaway__copy p[b-k47cl0nelf],
body.dark-mode .score-row__hint[b-k47cl0nelf],
body.dark-mode .correction-detail-panel__body p[b-k47cl0nelf] {
    color: #cbd5e1;
}

body.dark-mode .score-card[b-k47cl0nelf],
body.dark-mode .correction-detail-panel[b-k47cl0nelf] {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.88);
}

body.dark-mode .score-row__label[b-k47cl0nelf],
body.dark-mode .correction-detail-panel summary[b-k47cl0nelf] {
    color: #cbd5e1;
}

body.dark-mode .score-row__track[b-k47cl0nelf] {
    background: rgba(71, 85, 105, 0.72);
}

body.dark-mode .correction-detail-panel__body[b-k47cl0nelf] {
    border-top-color: rgba(148, 163, 184, 0.22);
}

body.dark-mode .diary-correction-card > p[b-k47cl0nelf] {
    color: #d1d5db;
}

body.dark-mode .diary-toolbar-pill[b-k47cl0nelf] {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(148, 163, 184, 0.18);
}

body.dark-mode .diary-icon-action[b-k47cl0nelf] {
    background: transparent;
    color: #c5d4ea;
}

body.dark-mode .diary-icon-action:hover:not(:disabled)[b-k47cl0nelf] {
    background: rgba(125, 211, 252, 0.12);
    color: #7dd3fc;
}

body.dark-mode .diary-camera-button:hover[b-k47cl0nelf] {
    color: #7dd3fc;
}

body.dark-mode .diary-mic-button.is-listening[b-k47cl0nelf] {
    background: transparent;
    color: #f87171;
}

body.dark-mode .diary-audio-button[b-k47cl0nelf] {
    background: transparent;
    color: #c5d4ea;
}

body.dark-mode .diary-audio-button:hover:not(:disabled)[b-k47cl0nelf] {
    background: transparent;
    color: #7dd3fc;
}

.diary-tabs[b-k47cl0nelf] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem;
}

.diary-tab-card[b-k47cl0nelf] {
    border: 1px solid rgba(219, 228, 255, 0.95);
    border-radius: 1.2rem;
    background: rgba(248, 250, 252, 0.92);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.diary-tab-button[b-k47cl0nelf] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 0;
    border-radius: 0.95rem;
    background: transparent;
    color: #475569;
    font-weight: 800;
    white-space: nowrap;
    min-width: 0;
    min-height: 3rem;
    padding: 0.55rem 0.5rem;
    box-shadow: none;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.diary-tab-icon[b-k47cl0nelf] {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
}

.diary-tab-label[b-k47cl0nelf] {
    min-width: 0;
    line-height: 1.1;
}

.diary-tab-button.active[b-k47cl0nelf] {
    background: #4f46e5;
    color: #fff;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.24);
    transform: translateY(-1px);
}

@media (max-width: 576px) {
    .diary-page-title[b-k47cl0nelf] {
        font-size: 1.65rem;
    }

    .diary-toolbar-pill[b-k47cl0nelf] {
        padding: 0.25rem 0.5rem;
    }
}

.diary-ai-button-icon[b-k47cl0nelf],
.diary-camera-button-icon[b-k47cl0nelf] {
    width: 22px;
    height: 22px;
    font-size: 22px;
    display: block;
    stroke: currentColor;
}

.diary-formality-picker[b-k47cl0nelf] {
    margin: 0.75rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid #c7d2fe;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f8faff 0%, #eef2ff 100%);
}

.diary-formality-title[b-k47cl0nelf] {
    font-size: 0.88rem;
    color: #374151;
    font-weight: 600;
}

.diary-formality-options[b-k47cl0nelf] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.diary-formality-option[b-k47cl0nelf] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.5rem 0.85rem;
    border-radius: 0.6rem;
    border: 1.5px solid #c7d2fe;
    background: #ffffff;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, background 0.15s;
}

.diary-formality-option:hover[b-k47cl0nelf] {
    border-color: #818cf8;
    background: #f5f3ff;
}

.diary-formality-option.selected[b-k47cl0nelf] {
    border-color: #4f46e5;
    background: #eef2ff;
}

.diary-formality-label[b-k47cl0nelf] {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
}

.diary-formality-desc[b-k47cl0nelf] {
    font-size: 0.75rem;
    color: #64748b;
}

.diary-translate-button.is-active[b-k47cl0nelf] {
    color: #4f46e5;
}

.diary-translate-button-icon[b-k47cl0nelf] {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 1.25rem;
}

.diary-japanese-draft-panel[b-k47cl0nelf] {
    margin: 0.75rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid #c7d2fe;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f8faff 0%, #eef2ff 100%);
}

body.dark-mode .diary-first-run-coach[b-k47cl0nelf] {
    background: #0f172a;
    border-color: #1d4ed8;
}

body.dark-mode .diary-first-run-primary[b-k47cl0nelf] {
    background: rgba(15, 23, 42, 0.96);
    border-color: #3730a3;
}

body.dark-mode .diary-first-run-primary strong[b-k47cl0nelf] {
    color: #e5e7eb;
}

body.dark-mode .diary-first-run-coach strong[b-k47cl0nelf] {
    color: #e5e7eb;
}

body.dark-mode .diary-first-run-coach p[b-k47cl0nelf] {
    color: #cbd5e1;
}

body.dark-mode .diary-next-action-panel[b-k47cl0nelf] {
    border-color: #312e81;
    background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%);
}

body.dark-mode .diary-next-action-copy strong[b-k47cl0nelf] {
    color: #e5e7eb;
}

body.dark-mode .diary-next-action-copy p[b-k47cl0nelf] {
    color: #cbd5e1;
}

body.dark-mode .diary-empty-start-panel[b-k47cl0nelf] {
    border-color: #3730a3;
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
}

body.dark-mode .diary-empty-start-copy strong[b-k47cl0nelf] {
    color: #e5e7eb;
}

body.dark-mode .diary-empty-start-copy p[b-k47cl0nelf] {
    color: #cbd5e1;
}

@media (max-width: 640px) {
    .diary-first-run-primary[b-k47cl0nelf] {
        grid-template-columns: 1fr;
    }

    .diary-first-run-primary-actions[b-k47cl0nelf],
    .diary-first-run-primary-actions .btn[b-k47cl0nelf] {
        width: 100%;
    }

    .diary-first-run-coach[b-k47cl0nelf] {
        grid-template-columns: 1fr;
    }

    .diary-first-run-actions[b-k47cl0nelf] {
        min-width: 0;
    }

    .diary-status-content[b-k47cl0nelf],
    .diary-next-action-panel[b-k47cl0nelf] {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .diary-status-content[b-k47cl0nelf] {
        flex-direction: column;
    }

    .diary-status-content .btn[b-k47cl0nelf],
    .diary-next-action-buttons[b-k47cl0nelf],
    .diary-next-action-buttons .btn[b-k47cl0nelf] {
        width: 100%;
    }

    .diary-next-action-buttons[b-k47cl0nelf] {
        max-width: none;
    }

    .diary-empty-start-actions[b-k47cl0nelf],
    .diary-empty-start-actions .btn[b-k47cl0nelf] {
        width: 100%;
    }
}

/* Lexion notebook world overrides */
.diary-page[b-k47cl0nelf] {
    max-width: 1180px;
    margin: 0 auto;
    color: var(--color-text, #2B2B2B);
}

.diary-page-header[b-k47cl0nelf] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.2rem !important;
}

.diary-page-header-meta[b-k47cl0nelf] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--color-text-muted, #77736A);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.diary-page-kicker[b-k47cl0nelf],
.diary-first-run-kicker[b-k47cl0nelf],
.diary-next-action-kicker[b-k47cl0nelf],
.correction-panel-kicker[b-k47cl0nelf],
.card-chip[b-k47cl0nelf] {
    color: var(--color-accent, #7A8B6B) !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.diary-page-title[b-k47cl0nelf] {
    margin: 0;
    color: var(--color-text, #2B2B2B);
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    letter-spacing: 0;
}

.diary-first-run-primary[b-k47cl0nelf],
.diary-first-run-coach[b-k47cl0nelf],
.diary-prompt-banner[b-k47cl0nelf],
.diary-sample-banner[b-k47cl0nelf],
.diary-japanese-draft-panel[b-k47cl0nelf],
.diary-formality-picker[b-k47cl0nelf],
.ai-progress-card[b-k47cl0nelf],
.diary-first-celebration[b-k47cl0nelf],
.diary-empty-start-panel[b-k47cl0nelf],
.diary-next-action-panel[b-k47cl0nelf],
.diary-correction-card[b-k47cl0nelf],
.correction-text-panel[b-k47cl0nelf],
.correction-takeaway[b-k47cl0nelf],
.score-card[b-k47cl0nelf],
.correction-practice-panel[b-k47cl0nelf],
.swipe-card[b-k47cl0nelf],
.suggestion-card[b-k47cl0nelf],
.diary-auto-vocab-card[b-k47cl0nelf] {
    background: var(--color-surface, #FFFDF8) !important;
    border: 1px solid var(--color-border, #E5DED2) !important;
    border-radius: var(--radius-card, 18px) !important;
    box-shadow: var(--shadow-soft, 0 18px 40px rgba(31, 36, 34, 0.08)) !important;
    color: var(--color-text, #2B2B2B) !important;
}

.diary-writing-card[b-k47cl0nelf] {
    position: relative;
    overflow: hidden;
    padding: clamp(1.2rem, 3vw, 2rem) !important;
    background:
        radial-gradient(circle at 82% 90%, rgba(122, 139, 107, 0.10), transparent 24%),
        var(--color-surface, #FFFDF8) !important;
    border: 1px solid var(--color-border, #E5DED2) !important;
    border-radius: var(--radius-card, 18px) !important;
    box-shadow: var(--shadow-soft, 0 18px 40px rgba(31, 36, 34, 0.08)) !important;
}

.diary-writing-card[b-k47cl0nelf]::after {
    content: "";
    position: absolute;
    right: 1.5rem;
    bottom: 1.4rem;
    width: 4.5rem;
    height: 4.5rem;
    border-right: 1px solid rgba(122, 139, 107, 0.38);
    border-bottom: 1px solid rgba(122, 139, 107, 0.22);
    opacity: 0.45;
    pointer-events: none;
    transform: rotate(-8deg);
}

.diary-editor-wrapper[b-k47cl0nelf] {
    display: grid;
    gap: 1rem;
}

.diary-input-mode-bar[b-k47cl0nelf] {
    justify-content: flex-start;
}

.diary-toolbar-pill[b-k47cl0nelf] {
    display: inline-flex;
    width: auto;
    padding: 0.35rem;
    background: rgba(238, 232, 222, 0.72) !important;
    border: 1px solid var(--color-border, #E5DED2) !important;
    border-radius: 999px;
    box-shadow: none !important;
}

.diary-icon-action[b-k47cl0nelf] {
    color: var(--color-text-muted, #77736A) !important;
    background: transparent !important;
    border-color: transparent !important;
}

.diary-icon-action:hover[b-k47cl0nelf],
.diary-icon-action:focus-visible[b-k47cl0nelf],
.diary-icon-action.is-active[b-k47cl0nelf] {
    color: var(--color-text, #2B2B2B) !important;
    background: var(--color-surface, #FFFDF8) !important;
    border-color: var(--color-border, #E5DED2) !important;
}

.diary-editor-scan-area[b-k47cl0nelf] {
    border-radius: 16px;
    background:
        linear-gradient(to bottom, transparent 0, transparent 31px, rgba(184, 162, 122, 0.18) 32px),
        var(--color-surface, #FFFDF8);
    background-size: 100% 32px;
    border: 1px solid rgba(229, 222, 210, 0.75);
}

.diary-editor-textarea[b-k47cl0nelf] {
    min-height: clamp(320px, 48vh, 560px);
    padding: clamp(1rem, 2.4vw, 1.6rem);
    color: var(--color-text, #2B2B2B) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 16px;
    box-shadow: none !important;
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 1.04rem;
    line-height: 2;
    resize: vertical;
}

.diary-editor-textarea[b-k47cl0nelf]::placeholder {
    color: rgba(119, 115, 106, 0.72);
}

.diary-editor-textarea:focus[b-k47cl0nelf] {
    outline: 2px solid rgba(122, 139, 107, 0.24);
    outline-offset: 3px;
}

.diary-char-counter[b-k47cl0nelf],
.diary-formality-title[b-k47cl0nelf],
.diary-speech-status[b-k47cl0nelf],
.correction-takeaway__copy p[b-k47cl0nelf],
.score-row__hint[b-k47cl0nelf],
.vocab-meaning[b-k47cl0nelf],
.text-muted[b-k47cl0nelf] {
    color: var(--color-text-muted, #77736A) !important;
}

.alert-info[b-k47cl0nelf],
.alert-success[b-k47cl0nelf],
.alert-warning[b-k47cl0nelf],
.alert-danger[b-k47cl0nelf],
.alert[b-k47cl0nelf] {
    background: var(--color-surface, #FFFDF8) !important;
    border: 1px solid var(--color-border, #E5DED2) !important;
    border-radius: 14px !important;
    color: var(--color-text, #2B2B2B) !important;
    box-shadow: none !important;
}

.btn-outline-danger[b-k47cl0nelf] {
    color: var(--color-accent, #7A8B6B) !important;
    border-color: rgba(122, 139, 107, 0.42) !important;
}

.btn-outline-danger:hover[b-k47cl0nelf],
.btn-outline-danger:focus-visible[b-k47cl0nelf] {
    background: var(--color-surface-muted, #EEE8DE) !important;
    color: var(--color-text, #2B2B2B) !important;
}

.correction-comparison-stack[b-k47cl0nelf] {
    gap: 1rem;
}

.correction-text-panel-original[b-k47cl0nelf] {
    background: var(--color-surface, #FFFDF8) !important;
}

.correction-text-panel-ai[b-k47cl0nelf] {
    background: linear-gradient(180deg, rgba(122, 139, 107, 0.08), rgba(255, 253, 248, 0.96)) !important;
}

.correction-text-panel p[b-k47cl0nelf],
.suggestion-copy-button p[b-k47cl0nelf],
.swipe-card p[b-k47cl0nelf] {
    color: var(--color-text, #2B2B2B);
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    line-height: 1.85;
}

.score-row__track[b-k47cl0nelf],
.ai-progress-step__marker[b-k47cl0nelf] {
    background: var(--color-surface-muted, #EEE8DE) !important;
}

.score-row__fill[b-k47cl0nelf],
.ai-progress-step--done .ai-progress-step__marker[b-k47cl0nelf],
.ai-progress-step--active .ai-progress-step__marker[b-k47cl0nelf],
.typewriter-caret[b-k47cl0nelf] {
    background: var(--color-accent, #7A8B6B) !important;
}

.redpen-wavy[b-k47cl0nelf] {
    text-decoration-color: var(--color-accent, #7A8B6B) !important;
}

.redpen-correction[b-k47cl0nelf],
.redpen-strike[b-k47cl0nelf]::after {
    background: rgba(122, 139, 107, 0.78) !important;
}

.vocab-card[b-k47cl0nelf],
.snap-result-card[b-k47cl0nelf],
.diary-formality-option[b-k47cl0nelf] {
    background: var(--color-surface, #FFFDF8) !important;
    border: 1px solid var(--color-border, #E5DED2) !important;
    border-radius: 14px !important;
}

.vocab-card.selected[b-k47cl0nelf],
.diary-formality-option.selected[b-k47cl0nelf],
.snap-result-card:hover[b-k47cl0nelf] {
    border-color: rgba(122, 139, 107, 0.62) !important;
    box-shadow: 0 12px 28px rgba(122, 139, 107, 0.14) !important;
}

.vocab-expression[b-k47cl0nelf],
.score-card__title[b-k47cl0nelf],
.correction-takeaway__copy strong[b-k47cl0nelf],
.diary-next-action-copy strong[b-k47cl0nelf] {
    color: var(--color-text, #2B2B2B) !important;
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    letter-spacing: 0;
}

@media (min-width: 1100px) {
    .diary-page[b-k47cl0nelf] {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .diary-correction-card[b-k47cl0nelf],
    .diary-next-action-panel[b-k47cl0nelf],
    .diary-auto-vocab-card[b-k47cl0nelf] {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .diary-page[b-k47cl0nelf] {
        padding-inline: 1rem !important;
    }

    .diary-page-header-meta[b-k47cl0nelf] {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
    }

    .diary-writing-card[b-k47cl0nelf] {
        padding: 1rem !important;
    }

    .diary-toolbar-pill[b-k47cl0nelf] {
        width: 100%;
        justify-content: space-between;
        overflow-x: auto;
    }

    .diary-editor-textarea[b-k47cl0nelf] {
        min-height: 380px;
        font-size: 1rem;
    }
}

/* ── Editor's Notes — quiet sage/brass labels (override SaaS indigo) ── */
.result-heading[b-k47cl0nelf] {
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-weight: 400 !important;
    letter-spacing: 0;
}

.result-heading-primary[b-k47cl0nelf] {
    background: rgba(122, 139, 107, 0.12) !important;
    color: var(--color-text, #2B2B2B) !important;
    border-left: 3px solid var(--color-accent, #7A8B6B) !important;
}

.result-heading-cefr[b-k47cl0nelf],
.result-heading-explanation[b-k47cl0nelf] {
    background: rgba(184, 162, 122, 0.14) !important;
    color: var(--color-text, #2B2B2B) !important;
    border-left: 3px solid var(--color-brass, #B8A27A) !important;
}

/* Desktop diary editor inspired by a quiet paper journal */
.diary-workspace[b-k47cl0nelf] {
    width: min(100%, 1440px);
    min-height: calc(100vh - 2rem);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(190px, 220px) minmax(500px, 1fr) minmax(300px, 340px);
    gap: clamp(14px, 1.4vw, 24px);
    align-items: start;
    color: #292b27;
}

.diary-workspace-before-analysis[b-k47cl0nelf] {
    grid-template-columns: minmax(190px, 220px) minmax(500px, 820px);
    justify-content: center;
}

.diary-workspace-main[b-k47cl0nelf] {
    min-width: 0;
}

.diary-workspace .diary-page[b-k47cl0nelf] {
    width: 100%;
    max-width: none;
    padding: 0 !important;
}

.diary-workspace .diary-page-header[b-k47cl0nelf] {
    padding: 1.1rem 1.5rem 0.35rem;
    margin: 0 !important;
}

.diary-workspace .diary-page-title[b-k47cl0nelf] {
    font-size: 1.5rem;
}

.diary-workspace .diary-writing-card[b-k47cl0nelf] {
    min-height: min(820px, calc(100vh - 7.5rem));
    margin: 0 !important;
    padding: 3.8rem 3.15rem 1.5rem !important;
    overflow: visible;
    border-radius: 3px !important;
    background:
        linear-gradient(90deg, rgba(115, 99, 71, .06) 1px, transparent 1px) 0 0 / 100% 100%,
        repeating-linear-gradient(to bottom, transparent 0 31px, rgba(157, 135, 101, .16) 32px),
        #fbf7ed !important;
    border: 1px solid rgba(117, 98, 67, .22) !important;
    box-shadow: 0 5px 0 #b9a58a, 0 15px 34px rgba(67, 56, 38, .18) !important;
}

.diary-workspace .diary-writing-card[b-k47cl0nelf]::before {
    content: "";
    position: absolute;
    left: -13px;
    top: 55px;
    width: 25px;
    height: 160px;
    background: repeating-linear-gradient(to bottom, #6e675b 0 5px, transparent 5px 28px);
    filter: drop-shadow(2px 1px 1px rgba(0,0,0,.28));
}

.diary-workspace .diary-writing-card[b-k47cl0nelf]::after {
    display: none;
}

.diary-workspace .diary-input-mode-bar[b-k47cl0nelf] {
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 1.1rem;
    z-index: 4;
    margin: 0;
}

.diary-workspace .diary-toolbar-pill[b-k47cl0nelf] {
    width: 100%;
    justify-content: flex-start;
    padding: .45rem .65rem;
    border-radius: 8px;
    background: rgba(248, 242, 230, .93) !important;
}

.diary-workspace .diary-editor-scan-area[b-k47cl0nelf] {
    border: 0;
    background: transparent;
}

.diary-workspace .diary-editor-textarea[b-k47cl0nelf] {
    min-height: clamp(430px, 58vh, 650px);
    padding: 0;
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: clamp(1.05rem, 1.35vw, 1.35rem);
    font-weight: 400;
    line-height: 2.05;
}

.diary-history-panel[b-k47cl0nelf],
.diary-notes-panel[b-k47cl0nelf] {
    position: sticky;
    top: 1rem;
    display: grid;
    gap: 1.15rem;
    max-height: calc(100vh - 2rem);
    overflow: auto;
    scrollbar-width: thin;
}

.diary-calendar-card[b-k47cl0nelf],
.diary-whisper-card[b-k47cl0nelf],
.diary-notes-panel[b-k47cl0nelf] {
    border: 1px solid rgba(127, 111, 84, .18);
    background: rgba(252, 248, 239, .88);
    box-shadow: 0 8px 20px rgba(56, 48, 34, .08);
}

.diary-calendar-card[b-k47cl0nelf] {
    padding: 1rem;
    border-radius: 8px;
}

.diary-calendar-heading[b-k47cl0nelf],
.diary-history-title[b-k47cl0nelf],
.diary-notes-heading[b-k47cl0nelf],
.diary-overall-note[b-k47cl0nelf] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.diary-calendar-heading[b-k47cl0nelf] {
    margin-bottom: .75rem;
    font-size: .78rem;
}

.diary-calendar-week[b-k47cl0nelf],
.diary-calendar-days[b-k47cl0nelf] {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: .25rem .1rem;
    font-size: .68rem;
}

.diary-calendar-week[b-k47cl0nelf] {
    margin-bottom: .35rem;
    font-weight: 700;
}

.diary-calendar-days span[b-k47cl0nelf] {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border-radius: 50%;
}

.diary-calendar-days .is-today[b-k47cl0nelf] {
    background: #52664f;
    color: #fff;
}

.diary-history-list[b-k47cl0nelf] {
    display: grid;
}

.diary-history-title h3[b-k47cl0nelf],
.diary-notes-heading h3[b-k47cl0nelf] {
    margin: 0;
    font-family: Georgia, "Yu Mincho", serif;
    font-size: 1.3rem;
}

.diary-history-title[b-k47cl0nelf] {
    padding: 0 .35rem .55rem;
}

.diary-history-entry[b-k47cl0nelf] {
    display: grid;
    gap: .32rem;
    padding: .9rem .75rem;
    border-bottom: 1px solid rgba(127, 111, 84, .17);
    color: inherit;
    text-decoration: none;
}

.diary-history-entry.is-active[b-k47cl0nelf] {
    border: 1px solid rgba(153, 123, 75, .3);
    border-radius: 7px;
    background: rgba(246, 238, 222, .8);
}

.diary-history-entry strong[b-k47cl0nelf] { font-size: .8rem; }
.diary-history-entry span[b-k47cl0nelf] { font: .72rem/1.55 Georgia, serif; }
.diary-history-entry small[b-k47cl0nelf] { color: #777367; font-size: .65rem; }
.diary-saved-dot[b-k47cl0nelf] { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #60775f; }

.diary-new-entry[b-k47cl0nelf],
.diary-add-vocab[b-k47cl0nelf] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    margin-top: 1rem;
    padding: .72rem;
    border: 1px solid rgba(85, 105, 78, .36);
    border-radius: 7px;
    color: #425342;
    text-decoration: none;
    background: rgba(252, 248, 239, .72);
}

.diary-whisper-card[b-k47cl0nelf] {
    position: relative;
    min-height: 125px;
    padding: 1rem;
    overflow: hidden;
    border-radius: 7px;
}

.diary-whisper-card span[b-k47cl0nelf] { font-size: .72rem; font-weight: 700; }
.diary-whisper-card p[b-k47cl0nelf] { position: relative; z-index: 1; margin: .65rem 0 0; font: .72rem/1.7 Georgia, serif; }
.diary-whisper-card img[b-k47cl0nelf] { position: absolute; right: -.5rem; bottom: -.8rem; width: 6rem; opacity: .72; }

.diary-notes-panel[b-k47cl0nelf] {
    gap: 0;
    padding: 3.4rem 1rem 1rem;
    border-radius: 8px;
    overflow: auto;
}

.diary-notes-clip[b-k47cl0nelf] {
    position: absolute;
    top: -1px;
    left: 50%;
    width: 86px;
    height: 30px;
    transform: translateX(-50%);
    border-radius: 0 0 50% 50%;
    background: linear-gradient(#b99855, #76591e);
    box-shadow: 0 3px 6px rgba(62, 45, 17, .25);
}

.diary-notes-heading[b-k47cl0nelf] {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(127, 111, 84, .14);
}

.diary-notes-heading h3[b-k47cl0nelf] { display: flex; align-items: center; gap: .35rem; }
.diary-notes-heading h3 img[b-k47cl0nelf] { width: 1.45rem; }
.diary-notes-heading button[b-k47cl0nelf] {
    padding: .45rem .65rem;
    border: 1px solid rgba(127, 111, 84, .22);
    border-radius: 6px;
    background: transparent;
    color: #48463f;
    font-size: .68rem;
}

.diary-note-section[b-k47cl0nelf] {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(127, 111, 84, .14);
}

.diary-note-section h4[b-k47cl0nelf] {
    margin: 0 0 .75rem;
    font-size: 1.02rem;
    font-weight: 700;
}

.diary-note-section p[b-k47cl0nelf] {
    margin: 0;
    font-size: 1rem;
    line-height: 1.85;
}

.diary-good-score[b-k47cl0nelf] {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 4px solid #718168;
    border-right-color: #c49a4a;
    border-radius: 50%;
    color: #56644f;
    font: 700 1rem Georgia, serif;
}

.diary-suggestion-box[b-k47cl0nelf] {
    display: grid;
    gap: .38rem;
    margin-top: .45rem;
    padding: .85rem;
    border: 1px solid rgba(127, 111, 84, .2);
    border-radius: 7px;
    font: 1.02rem/1.8 Georgia, serif;
}

.diary-suggestion-box span[b-k47cl0nelf] { color: #6f6451; }

.diary-suggestion-box strong[b-k47cl0nelf] { color: #496047; font-weight: 500; }

.diary-phrase-grid[b-k47cl0nelf] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .45rem;
}

.diary-phrase-option[b-k47cl0nelf] {
    position: relative;
    min-height: 100px;
    display: grid;
    align-content: center;
    gap: .45rem;
    padding: .55rem .35rem;
    border: 1px solid rgba(127, 111, 84, .18);
    border-radius: 7px;
    cursor: pointer;
    text-align: center;
    font-size: .95rem;
    line-height: 1.65;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.diary-phrase-option:hover[b-k47cl0nelf] {
    border-color: rgba(85, 105, 78, .48);
}

.diary-phrase-option.is-selected[b-k47cl0nelf] {
    border-color: #718168;
    background: rgba(113, 129, 104, .1);
    box-shadow: inset 0 0 0 1px rgba(113, 129, 104, .18);
}

.diary-phrase-option input[b-k47cl0nelf] {
    position: absolute;
    top: .45rem;
    right: .45rem;
    accent-color: #60775f;
}

.diary-phrase-option strong[b-k47cl0nelf] { font: 700 1rem/1.55 Georgia, serif; }
.diary-phrase-option span[b-k47cl0nelf] { color: #777367; font-size: .92rem; }
.diary-vocab-help[b-k47cl0nelf] { margin-bottom: .75rem !important; color: #777367; font-size: .9rem; }

.diary-note-actions[b-k47cl0nelf] {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .7rem;
}

.diary-note-actions button[b-k47cl0nelf] {
    padding: .42rem .62rem;
    border: 1px solid rgba(85, 105, 78, .36);
    border-radius: 6px;
    color: #425342;
    background: rgba(252, 248, 239, .72);
    font-size: .68rem;
}

.diary-add-vocab[b-k47cl0nelf] {
    width: max-content;
    margin-top: .8rem;
    padding: .48rem .75rem;
    font-size: .7rem;
}

@media (max-width: 1380px) {
    .diary-workspace[b-k47cl0nelf] {
        grid-template-columns: minmax(520px, 1fr) minmax(300px, 340px);
        max-width: 1080px;
    }

    .diary-workspace-before-analysis[b-k47cl0nelf] {
        grid-template-columns: minmax(520px, 820px);
    }

    .diary-history-panel[b-k47cl0nelf] {
        display: none;
    }
}

@media (max-width: 1050px) {
    .diary-workspace[b-k47cl0nelf] {
        display: block;
        max-width: 820px;
    }

    .diary-notes-panel[b-k47cl0nelf] {
        position: relative;
        top: auto;
        display: grid;
        max-height: none;
        margin: 1.25rem 0 0;
    }

    .diary-phrase-grid[b-k47cl0nelf] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .diary-workspace[b-k47cl0nelf] {
        width: 100%;
    }

    .diary-workspace .diary-page-header[b-k47cl0nelf] {
        padding: .4rem .25rem .8rem;
    }

    .diary-workspace .diary-page-header-meta[b-k47cl0nelf] {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: .5rem;
    }

    .diary-workspace .diary-page-title[b-k47cl0nelf] {
        font-size: 1.35rem;
    }

    .diary-workspace .diary-writing-card[b-k47cl0nelf] {
        min-height: auto;
        padding: 1rem .9rem 4.8rem !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 0 #b9a58a, 0 10px 24px rgba(67, 56, 38, .14) !important;
    }

    .diary-workspace .diary-writing-card[b-k47cl0nelf]::before {
        display: none;
    }

    .diary-workspace .diary-input-mode-bar[b-k47cl0nelf] {
        left: .65rem;
        right: .65rem;
        bottom: .65rem;
    }

    .diary-workspace .diary-toolbar-pill[b-k47cl0nelf] {
        gap: .15rem;
        padding: .3rem;
        justify-content: space-between;
        overflow-x: visible;
    }

    .diary-workspace .diary-toolbar-pill .diary-icon-action[b-k47cl0nelf] {
        width: 2.4rem;
        height: 2.4rem;
        min-width: 2.4rem;
    }

    .diary-workspace .diary-editor-textarea[b-k47cl0nelf] {
        min-height: 52vh;
        font-size: 1rem;
        line-height: 1.9;
    }

    .diary-notes-panel[b-k47cl0nelf] {
        margin-top: 1rem;
        padding: 3rem .9rem .9rem;
        border-radius: 8px;
    }

    .diary-notes-heading[b-k47cl0nelf] {
        align-items: flex-start;
    }

    .diary-notes-heading h3[b-k47cl0nelf] {
        font-size: .98rem;
    }

    .diary-overall-note[b-k47cl0nelf] {
        align-items: flex-start;
    }

    .diary-good-score[b-k47cl0nelf] {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
        font-size: .85rem;
    }

    .diary-phrase-grid[b-k47cl0nelf] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .diary-phrase-option[b-k47cl0nelf] {
        min-height: 88px;
    }
}

.result-heading-feedback[b-k47cl0nelf] {
    background: rgba(184, 162, 122, 0.16) !important;
    color: var(--color-text, #2B2B2B) !important;
    border-left: 3px solid var(--color-brass, #B8A27A) !important;
}

.result-heading-reply[b-k47cl0nelf] {
    background: rgba(122, 139, 107, 0.12) !important;
    color: var(--color-text, #2B2B2B) !important;
    border-left: 3px solid var(--color-accent, #7A8B6B) !important;
}

/* "Editor's Notes" — 編集者ノートの英字見出し + 日本語サブ */
.result-heading-sub[b-k47cl0nelf] {
    margin-left: 0.55rem;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    color: var(--color-text-muted, #77736A);
    align-self: center;
}

.correction-text-panel-kicker[b-k47cl0nelf],
.correction-panel-kicker[b-k47cl0nelf] {
    color: var(--color-accent, #7A8B6B) !important;
}

/* ツールバーのアイコンを縦中央で揃える（Bootstrap Icons の vertical-align ずれと
   ボタンごとに異なるサイズを統一して、見た目を中央整列にする） */
.diary-toolbar-pill .diary-icon-action[b-k47cl0nelf] {
    align-items: center;
    justify-content: center;
}

.diary-toolbar-pill .diary-icon-action > i[b-k47cl0nelf] {
    width: auto !important;
    height: auto !important;
    margin: 0;
    font-size: 1.25rem !important;
    line-height: 1 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.diary-toolbar-pill .diary-icon-action > i[b-k47cl0nelf]::before {
    vertical-align: 0;
    line-height: 1;
}

/* Journal Entry: a quiet archival book on a wooden writing desk.
   背景・額装は Collection Room（.collection-room）と同じ書斎ブラウンに統一する。 */
.diary-workspace[b-k47cl0nelf] {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1100px) !important;
    justify-content: center;
    max-width: none !important;
    padding: clamp(0.5rem, 2vw, 1.5rem) clamp(0.5rem, 2vw, 1rem);
    border: 0;
    border-radius: 0;
    color: #3a3326;
    /* ミニマル昼の書斎：ウォームアイボリーに溶け込む透明フレーム */
    background: transparent;
    box-shadow: none;
}

/* 内側 .container の ivory 背景打ち消し・ヘッダーの Collection Room 様式化は
   グローバルの lexion-world.css 側で実施する（palette-guard の !important を確実に
   上書きし、scoped のグループセレクタ無効化リスクを避けるため）。 */

/* PC底辺の装飾オブジェクト（ペン・インク壺）は分かりにくいため削除 */
.diary-workspace[b-k47cl0nelf]::before,
.diary-workspace[b-k47cl0nelf]::after {
    content: none;
    display: none;
}

.diary-history-panel[b-k47cl0nelf] {
    display: none !important;
}

.diary-workspace-main[b-k47cl0nelf],
.diary-workspace .diary-page[b-k47cl0nelf] {
    width: 100%;
    max-width: 1180px;
}

.diary-workspace .diary-page-header[b-k47cl0nelf] {
    position: relative;
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding: 0 .25rem 1rem;
    color: #e7dac1;
}

.diary-workspace .diary-page-kicker[b-k47cl0nelf],
.diary-workspace .diary-page-date[b-k47cl0nelf] {
    color: #a99370;
}

.diary-workspace .diary-page-title[b-k47cl0nelf] {
    color: #f0e4cd;
    font: 400 clamp(1.55rem, 3vw, 2.35rem)/1 Georgia, "Yu Mincho", serif;
}

.journal-bookmark[b-k47cl0nelf] {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .9rem;
    border: 1px solid #E0D8CC;
    border-radius: 999px;
    color: #6A5F52;
    background: #FDFBF7;
    font-size: .68rem;
    text-decoration: none;
    transition: border-color .18s ease, color .18s ease;
}

.journal-bookmark:hover[b-k47cl0nelf] {
    border-color: #C8BFB0;
    color: #2C2418;
}

.journal-bookmark i[b-k47cl0nelf] { color: #8B7040; }

.diary-workspace .diary-writing-card[b-k47cl0nelf] {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    min-height: min(680px, calc(100vh - 9rem));
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid #E0D8CC !important;
    border-radius: 20px !important;
    background: #FDFBF7 !important;
    /* ミニマル：紙のカード一枚。やわらかな影だけで浮かせる */
    box-shadow: 0 2px 18px rgba(44, 36, 24, .07) !important;
    isolation: isolate;
}

.diary-workspace .diary-writing-card[b-k47cl0nelf]::before {
    content: "";
    position: absolute;
    z-index: 7;
    top: 12%;
    bottom: 12%;
    height: auto;
    left: 40%;
    width: 1px;
    /* ノド：2ページを分ける細いナチュラルな罫線 */
    background: linear-gradient(180deg,
        transparent,
        rgba(120, 92, 54, .14) 12%,
        rgba(120, 92, 54, .14) 88%,
        transparent);
    filter: none;
    transform: none;
    pointer-events: none;
}

.journal-left-page[b-k47cl0nelf],
.diary-workspace .diary-editor-wrapper[b-k47cl0nelf] {
    position: relative;
    min-width: 0;
    padding: clamp(1.8rem, 3.5vw, 3rem);
    color: #3a3326;
    background: transparent;
}

.journal-left-page[b-k47cl0nelf] {
    display: flex;
    flex-direction: column;
    /* メタデータ側だけ、ほんのり温かいベージュで紙面を分ける */
    background: #F7F2EA;
    border-radius: 0;
    box-shadow: none;
}

.diary-workspace .diary-editor-wrapper[b-k47cl0nelf] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 5rem;
    background: #FDFBF7;
    border-radius: 0;
    box-shadow: none;
}

.journal-page-kicker[b-k47cl0nelf],
.journal-writing-heading > span[b-k47cl0nelf] {
    color: #957b52;
    font-size: .56rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.journal-left-page time[b-k47cl0nelf] {
    display: grid;
    gap: .45rem;
    margin-top: 2rem;
}

.journal-left-page time strong[b-k47cl0nelf],
.journal-left-page h3[b-k47cl0nelf] {
    margin: 0;
    color: #2e261d;
    font: 400 clamp(1.75rem, 4vw, 3.2rem)/1.12 Georgia, "Yu Mincho", serif;
}

.journal-left-page time span[b-k47cl0nelf] {
    color: #81715b;
    font: italic .86rem Georgia, serif;
}

.journal-metadata[b-k47cl0nelf] {
    display: grid;
    gap: .8rem;
    margin: 2.4rem 0 0;
}

.journal-metadata div[b-k47cl0nelf] {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .55rem;
    border-bottom: 1px solid rgba(115,86,52,.15);
}

.journal-metadata dt[b-k47cl0nelf] { color: #8b7961; font-size: .58rem; }
.journal-metadata dd[b-k47cl0nelf] { margin: 0; font: .72rem Georgia, serif; }

.journal-words-collected[b-k47cl0nelf] {
    display: grid;
    gap: .25rem;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(115,86,52,.18);
}

.journal-words-collected span[b-k47cl0nelf] { color: #8b7961; font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; }
.journal-words-collected strong[b-k47cl0nelf] { font: 400 2rem Georgia, serif; }
.journal-page-signature[b-k47cl0nelf] { margin-top: 2rem; color: #9a886e; font: italic .58rem Georgia, serif; }

.journal-writing-heading[b-k47cl0nelf] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 1.8rem;
}

.journal-archived-stamp[b-k47cl0nelf] {
    padding: .3rem .55rem;
    border: 1px solid rgba(82,101,70,.68);
    border-radius: 2px;
    color: #526546;
    font: 700 .62rem Georgia, serif;
    letter-spacing: .14em;
    text-transform: uppercase;
    transform: rotate(-4deg);
    animation: archived-stamp-b-k47cl0nelf .55s ease both;
}

@keyframes archived-stamp-b-k47cl0nelf {
    from { opacity: 0; transform: scale(1.5) rotate(-4deg); }
}

.diary-workspace .diary-editor-scan-area[b-k47cl0nelf] {
    flex: 1;
    border: 0;
    border-radius: 0;
    background:
        repeating-linear-gradient(to bottom, transparent 0 35px, rgba(120, 92, 54, .12) 36px);
}

.diary-workspace .diary-editor-textarea[b-k47cl0nelf] {
    min-height: 100%;
    padding: 0 .15rem;
    color: #2f2922 !important;
    background: transparent !important;
    caret-color: #5b4630;
    font: clamp(1rem, 1.45vw, 1.25rem)/2.25 Georgia, "Yu Mincho", serif;
}

.diary-workspace .diary-editor-textarea[b-k47cl0nelf]::placeholder {
    color: rgba(104,88,67,.48);
    font-style: italic;
}

.diary-workspace .diary-input-mode-bar[b-k47cl0nelf] {
    left: auto;
    right: clamp(1rem, 3vw, 2rem);
    bottom: 1.2rem;
}

.diary-workspace .diary-toolbar-pill[b-k47cl0nelf] {
    width: auto;
    border-color: #E0D8CC !important;
    border-radius: 999px;
    background: rgba(253, 251, 247, .96) !important;
    box-shadow: 0 4px 14px rgba(44, 36, 24, .08) !important;
    backdrop-filter: blur(6px);
}

.diary-ai-button[b-k47cl0nelf] {
    color: #8B7040 !important;
}

.diary-workspace.is-inking .diary-writing-card[b-k47cl0nelf]::after {
    content: "";
    position: absolute;
    z-index: 10;
    inset: 0;
    display: block;
    background: radial-gradient(circle at 72% 72%, rgba(57,45,34,.22), transparent 5%, transparent 100%);
    animation: ink-settle-b-k47cl0nelf .9s ease both;
    pointer-events: none;
}

@keyframes ink-settle-b-k47cl0nelf {
    from { opacity: 0; transform: scale(.25); }
    45% { opacity: .5; }
    to { opacity: 0; transform: scale(4); }
}

.journal-original-copy[b-k47cl0nelf],
.journal-refined-page > p[b-k47cl0nelf] {
    margin-top: 2rem;
    white-space: pre-wrap;
    color: #352d24;
    font: clamp(.85rem, 1.2vw, 1rem)/1.95 Georgia, "Yu Mincho", serif;
}

.journal-refined-page[b-k47cl0nelf] {
    flex: 1;
    overflow: auto;
}

.journal-curator-note[b-k47cl0nelf] {
    margin-top: 2rem;
    padding: 1rem 0 0 1rem;
    border-top: 1px solid rgba(115,86,52,.18);
    border-left: 2px solid rgba(82,101,70,.55);
}

.journal-curator-note span[b-k47cl0nelf] {
    color: #596b4e;
    font: 700 .58rem Georgia, serif;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.journal-curator-note p[b-k47cl0nelf] { margin: .65rem 0 0; color: #675b4c; font-size: .7rem; line-height: 1.75; }
.diary-writing-card.has-curation .diary-editor-scan-area[b-k47cl0nelf] { display: none; }

.diary-notes-panel[b-k47cl0nelf] {
    position: relative;
    top: auto;
    width: min(1080px, calc(100% - 2rem));
    max-height: none;
    margin: 1.5rem auto 0;
    padding: clamp(1.15rem, 2.4vw, 2rem) !important;
    border: 1px solid #e8e2d8;
    border-radius: 20px;
    background: linear-gradient(180deg, #fffefd 0%, #fbfaf7 100%);
    box-shadow: 0 8px 28px rgba(44, 36, 24, .07);
}

.diary-notes-clip[b-k47cl0nelf] {
    display: none;
}

.diary-notes-heading[b-k47cl0nelf] {
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee8df;
}

.diary-notes-heading h3[b-k47cl0nelf] {
    color: #2f332c;
    font-family: inherit;
    font-size: clamp(1.05rem, 1.5vw, 1.28rem);
    font-weight: 750;
    letter-spacing: 0;
}

.diary-notes-heading h3 img[b-k47cl0nelf] {
    width: 1.25rem;
    opacity: .72;
}

.diary-notes-heading button[b-k47cl0nelf],
.diary-note-actions button[b-k47cl0nelf],
.diary-add-vocab[b-k47cl0nelf] {
    border: 1px solid #ded8cf;
    border-radius: 999px;
    color: #59655a;
    background: #fff;
    box-shadow: none;
    font-weight: 650;
}

.diary-notes-heading button:hover:not(:disabled)[b-k47cl0nelf],
.diary-note-actions button:hover:not(:disabled)[b-k47cl0nelf],
.diary-add-vocab:hover:not(:disabled)[b-k47cl0nelf] {
    border-color: #cbd8ca;
    color: #405542;
    background: #f7faf5;
}

.diary-note-section[b-k47cl0nelf] {
    border-bottom-color: #eee8df;
}

.diary-note-section h4[b-k47cl0nelf] {
    color: #34382f;
    font-size: .94rem;
    letter-spacing: .02em;
}

.diary-note-section p[b-k47cl0nelf] {
    color: #4a463e;
}

.diary-good-score[b-k47cl0nelf] {
    flex-basis: auto;
    width: auto;
    height: auto;
    min-width: 4.25rem;
    padding: .45rem .72rem;
    border: 1px solid #cbd8ca;
    border-radius: 999px;
    color: #4e684d;
    background: #f8fbf6;
    font: 750 .9rem/1.1 inherit;
}

.diary-suggestion-box[b-k47cl0nelf] {
    border-color: #ebe5dc;
    border-radius: 14px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
}

.diary-suggestion-box span[b-k47cl0nelf] {
    color: #6a665f;
}

.diary-suggestion-box strong[b-k47cl0nelf] {
    color: #496247;
    font-weight: 650;
}

.diary-phrase-option[b-k47cl0nelf] {
    background: #fff !important;
    border-color: #ebe5dc;
    border-radius: 14px;
}

.diary-phrase-option:hover[b-k47cl0nelf] {
    border-color: #cbd8ca;
    background: #fbfdf9 !important;
}

.diary-phrase-option.is-selected[b-k47cl0nelf] {
    border-color: #aebfae;
    background: #f6faf4 !important;
    box-shadow: inset 0 0 0 1px rgba(122, 139, 107, .14);
}

.diary-vocab-help[b-k47cl0nelf],
.diary-phrase-option span[b-k47cl0nelf] {
    color: #76736c;
}

@media (max-width: 820px) {
    .diary-workspace[b-k47cl0nelf] { padding: .8rem .35rem 5rem; border-radius: 10px; }
    .diary-workspace[b-k47cl0nelf]::before, .diary-workspace[b-k47cl0nelf]::after { display: none; }
    .journal-bookmark span[b-k47cl0nelf] { display: none; }
    /* flex にして editor-wrapper を先に表示 */
    .diary-workspace .diary-writing-card[b-k47cl0nelf] {
        display: flex;
        flex-direction: column;
        min-height: 0;
        border-width: 1px !important;
        box-shadow: 0 2px 16px rgba(44, 36, 24, .07) !important;
    }
    .diary-workspace .diary-writing-card[b-k47cl0nelf]::before { display: none; }
    /* 縦積みでは平らな紙に戻す */
    .diary-workspace .diary-writing-card.has-curation .journal-left-page[b-k47cl0nelf],
    .diary-workspace .diary-editor-wrapper[b-k47cl0nelf] {
        box-shadow: none;
    }
    /* 新規エントリ時はメタデータ左ページを非表示（textarea を最初に見せる） */
    .diary-workspace .diary-writing-card:not(.has-curation) .journal-left-page[b-k47cl0nelf] { display: none; }
    /* 添削結果がある時はオリジナル原稿を下に表示 */
    .diary-workspace .diary-writing-card.has-curation .journal-left-page[b-k47cl0nelf] { order: 2; min-height: auto; padding: 1.5rem 1.2rem; border-radius: 8px !important; }
    .diary-workspace .diary-editor-wrapper[b-k47cl0nelf] { order: 1; min-height: 520px; margin-top: 0; padding: 1.8rem 1.2rem 5rem; border-radius: 8px !important; }
    .journal-metadata[b-k47cl0nelf] { margin-top: 1.5rem; }
    .journal-page-signature[b-k47cl0nelf] { margin-top: 1rem; }
    .diary-workspace .diary-toolbar-pill[b-k47cl0nelf] { max-width: calc(100vw - 2.5rem); overflow-x: auto; }
    .diary-notes-panel[b-k47cl0nelf] { width: calc(100% - .7rem); padding: 1.2rem !important; }
}

/* Give the writing surface the silhouette and depth of an opened clothbound diary. */
@media (min-width: 821px) {
    .diary-workspace .diary-writing-card[b-k47cl0nelf] {
        grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
        align-items: stretch;
        padding: 0 !important;
        border: 1px solid #E0D8CC !important;
        border-radius: 20px !important;
        background: #FDFBF7 !important;
        box-shadow: 0 2px 18px rgba(44, 36, 24, .07) !important;
    }

    .diary-workspace .diary-writing-card[b-k47cl0nelf]::before {
        top: 12%;
        bottom: 12%;
        left: 40%;
        width: 1px;
        background: linear-gradient(180deg,
            transparent,
            rgba(120, 92, 54, .14) 12%,
            rgba(120, 92, 54, .14) 88%,
            transparent);
        filter: none;
    }

    .journal-left-page[b-k47cl0nelf],
    .diary-workspace .diary-editor-wrapper[b-k47cl0nelf] {
        min-height: calc(min(680px, 100vh - 9rem));
        overflow: hidden;
    }

    .journal-left-page[b-k47cl0nelf] {
        background: #F7F2EA;
        border-radius: 20px 0 0 20px;
        box-shadow: none;
    }

    .diary-workspace .diary-editor-wrapper[b-k47cl0nelf] {
        background: #FDFBF7;
        border-radius: 0 20px 20px 0;
        box-shadow: none;
    }

    .diary-workspace .diary-editor-scan-area[b-k47cl0nelf] {
        position: relative;
        border-top: 0;
        background:
            linear-gradient(90deg, transparent 0 2.1rem, rgba(139, 112, 64, .14) 2.1rem calc(2.1rem + 1px), transparent calc(2.1rem + 1px)),
            repeating-linear-gradient(to bottom, transparent 0 35px, rgba(120, 92, 54, .12) 35px 36px);
    }

    .diary-workspace .diary-editor-textarea[b-k47cl0nelf] {
        padding: .3rem .35rem .3rem 2.75rem;
    }
}

/* _content/LinguaNote/Components/Pages/DiaryEdit.razor.rz.scp.css */
.diary-edit-shell[b-cnln11hzb2] {
    max-width: 880px;
    margin: 0 auto;
    padding: 1.25rem 1rem 2rem;
}

.diary-edit-header[b-cnln11hzb2] {
    display: grid;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.diary-edit-kicker[b-cnln11hzb2],
.weakness-practice-kicker[b-cnln11hzb2] {
    color: #4f46e5;
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.diary-edit-header h3[b-cnln11hzb2] {
    margin: 0;
    color: #0f172a;
    font-size: 1.55rem;
    font-weight: 850;
}

.weakness-practice-panel[b-cnln11hzb2],
.diary-edit-card[b-cnln11hzb2] {
    border: 1px solid #dbe4ff;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.weakness-practice-panel[b-cnln11hzb2] {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.weakness-practice-panel h4[b-cnln11hzb2] {
    margin: 0.2rem 0 0;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 850;
    line-height: 1.35;
}

.weakness-practice-panel p[b-cnln11hzb2] {
    margin: 0.25rem 0 0;
    color: #475569;
    line-height: 1.55;
}

.corrected-preview[b-cnln11hzb2] {
    display: grid;
    gap: 0.35rem;
    padding: 0.85rem;
    border: 1px solid #bfdbfe;
    border-radius: 0.85rem;
    background: #f8faff;
}

.corrected-preview span[b-cnln11hzb2] {
    color: #2563eb;
    font-size: 0.76rem;
    font-weight: 850;
}

.corrected-preview p[b-cnln11hzb2] {
    color: #111827;
    white-space: pre-wrap;
}

.weakness-practice-textarea[b-cnln11hzb2] {
    border-color: #bfdbfe;
    border-radius: 0.85rem;
    line-height: 1.6;
}

.weakness-practice-actions[b-cnln11hzb2],
.diary-edit-actions[b-cnln11hzb2] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.weakness-practice-status[b-cnln11hzb2] {
    color: #1e3a8a;
    font-size: 0.9rem;
    line-height: 1.5;
}

.diary-edit-card[b-cnln11hzb2] {
    padding: 1rem;
}

.diary-edit-card textarea[b-cnln11hzb2] {
    border-color: #dbe4ff;
    border-radius: 0.9rem;
    line-height: 1.65;
}

.diary-edit-actions[b-cnln11hzb2] {
    margin-top: 0.85rem;
}

@media (max-width: 576px) {
    .diary-edit-shell[b-cnln11hzb2] {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .weakness-practice-actions .btn[b-cnln11hzb2],
    .diary-edit-actions .btn[b-cnln11hzb2] {
        width: 100%;
    }
}

body.dark-mode .diary-edit-header h3[b-cnln11hzb2],
body.dark-mode .weakness-practice-panel h4[b-cnln11hzb2],
body.dark-mode .corrected-preview p[b-cnln11hzb2] {
    color: #e5e7eb;
}

body.dark-mode .weakness-practice-panel[b-cnln11hzb2],
body.dark-mode .diary-edit-card[b-cnln11hzb2] {
    background: #111827;
    border-color: #334155;
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.45);
}

body.dark-mode .corrected-preview[b-cnln11hzb2] {
    background: #0f172a;
    border-color: #334155;
}

body.dark-mode .weakness-practice-panel p[b-cnln11hzb2],
body.dark-mode .weakness-practice-status[b-cnln11hzb2] {
    color: #cbd5e1;
}

body.dark-mode .weakness-practice-textarea[b-cnln11hzb2],
body.dark-mode .diary-edit-card textarea[b-cnln11hzb2] {
    background: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}
/* _content/LinguaNote/Components/Pages/DiaryList.razor.rz.scp.css */
/* ============================================================
   Collection Shell — 共通ラッパー
   ============================================================ */
.collection-shell[b-ryqixxflnd] {
    min-height: calc(100vh - 2rem);
    background: #F8F5ED;
    color: #2C2A25;
    border-radius: 18px;
    overflow: hidden;
    animation: room-arrival-b-ryqixxflnd .55s ease both;
}

@keyframes room-arrival-b-ryqixxflnd {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Loading
   ============================================================ */
.collection-loading[b-ryqixxflnd] {
    min-height: 70vh;
    display: grid;
    place-content: center;
    justify-items: center;
    text-align: center;
    gap: 1rem;
    color: #7A7568;
    font-size: .88rem;
}

.collection-loading-leaf[b-ryqixxflnd] {
    width: 2.5rem;
    height: 2.5rem;
    animation: leaf-breathe-b-ryqixxflnd 1.8s ease-in-out infinite;
}

@keyframes leaf-breathe-b-ryqixxflnd {
    0%, 100% { transform: translateY(0) scale(1); opacity: .7; }
    50%       { transform: translateY(-5px) scale(1.05); opacity: 1; }
}

/* ============================================================
   Empty collection
   ============================================================ */
.empty-collection[b-ryqixxflnd] {
    min-height: 70vh;
    display: grid;
    place-content: center;
    justify-items: center;
    text-align: center;
    gap: .5rem;
    padding: 2rem;
}

.empty-book-icon[b-ryqixxflnd] {
    width: 80px;
    height: 100px;
    margin-bottom: 1rem;
    opacity: .55;
}

.empty-collection h2[b-ryqixxflnd] {
    margin: 0;
    font: 400 1.6rem Georgia, "Yu Mincho", serif;
    color: #2C2A25;
}

.empty-collection p[b-ryqixxflnd] {
    margin: 0;
    color: #7A7568;
    font-size: .85rem;
    line-height: 1.6;
}

.empty-cta[b-ryqixxflnd] {
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .72rem 1.35rem;
    border: 1px solid #D8C7A6;
    border-radius: 999px;
    color: #2C2A25;
    background: #FFFDF7;
    text-decoration: none;
    font-size: .84rem;
    box-shadow: 0 4px 12px rgba(44,42,37,.08);
    transition: background .15s ease, box-shadow .15s ease;
}

.empty-cta:hover[b-ryqixxflnd] {
    background: #FFF9EE;
    box-shadow: 0 6px 16px rgba(44,42,37,.12);
    color: #2C2A25;
}

/* ============================================================
   Quiet Shelf — 本棚画面
   ============================================================ */
.quiet-shelf[b-ryqixxflnd] {
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2rem) 6rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ── Archive notice ── */
.qs-archive-notice[b-ryqixxflnd] {
    width: max-content;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 auto;
    padding: .4rem .85rem;
    border: 1px solid rgba(44,42,37,.12);
    border-radius: 999px;
    background: #FFFDF7;
    color: #7A7568;
    font-size: .7rem;
    letter-spacing: .06em;
    animation: slide-down-b-ryqixxflnd .5s ease both;
}

@keyframes slide-down-b-ryqixxflnd {
    from { opacity: 0; transform: translateY(-8px); }
}

/* ── Header ── */
.qs-header[b-ryqixxflnd] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.qs-header-left[b-ryqixxflnd] {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.qs-header-leaf[b-ryqixxflnd] {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    margin-top: .35rem;
}

.qs-title[b-ryqixxflnd] {
    margin: 0;
    font: 400 clamp(2rem, 5vw, 3rem)/1 Georgia, "Yu Mincho", serif;
    color: #2C2A25;
    letter-spacing: .01em;
}

.qs-sub[b-ryqixxflnd] {
    margin: .4rem 0 0;
    color: #7A7568;
    font-size: .88rem;
}

.qs-write-btn[b-ryqixxflnd] {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.1rem;
    border: 1px solid #D8C7A6;
    border-radius: 12px;
    background: #FFFDF7;
    color: #2C2A25;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(44,42,37,.07);
    transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.qs-write-btn:hover[b-ryqixxflnd] {
    background: #FFF6E0;
    box-shadow: 0 4px 14px rgba(44,42,37,.11);
    transform: translateY(-1px);
    color: #2C2A25;
}

/* ── Shelf card ── */
.qs-shelf-card[b-ryqixxflnd] {
    position: relative;
    isolation: isolate;
    background:
        linear-gradient(180deg, rgba(255,255,255,.68), rgba(252,248,239,.94)),
        #FFFDF7;
    border: 1px solid rgba(44,42,37,.10);
    border-radius: 24px;
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow:
        inset 0 1px rgba(255,255,255,.76),
        0 18px 48px rgba(44,42,37,.08);
}

.qs-shelf-card[b-ryqixxflnd]::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 1rem 1.25rem auto;
    height: 54%;
    border-radius: 22px;
    background: radial-gradient(ellipse at center, rgba(194,168,120,.10), transparent 68%);
    pointer-events: none;
}

/* ── Year navigation (decorative header) ── */
.qs-year-nav[b-ryqixxflnd] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.qs-year-arrow[b-ryqixxflnd] {
    display: inline-grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border: 1px solid rgba(44,42,37,.14);
    border-radius: 50%;
    background: transparent;
    color: #9A9282;
    font-size: .72rem;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.qs-year-arrow:hover:not(:disabled)[b-ryqixxflnd] {
    background: rgba(44,42,37,.05);
    color: #2C2A25;
    border-color: rgba(44,42,37,.22);
}

.qs-year-arrow:disabled[b-ryqixxflnd] {
    opacity: .3;
    cursor: default;
}

.qs-year-label[b-ryqixxflnd] {
    display: inline-flex;
    align-items: center;
    margin: 0;
    font: 400 .74rem/1 Georgia, serif;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #8A8272;
    white-space: nowrap;
}

.qs-year-label[b-ryqixxflnd]::before,
.qs-year-label[b-ryqixxflnd]::after {
    content: "";
    width: clamp(26px, 7vw, 72px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(44,42,37,.22));
    margin-right: 1.1rem;
}

.qs-year-label[b-ryqixxflnd]::after {
    background: linear-gradient(90deg, rgba(44,42,37,.22), transparent);
    margin: 0 0 0 1.1rem;
}

/* ── Books shelf ── */
.qs-books-scroll[b-ryqixxflnd] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.qs-books-scroll[b-ryqixxflnd]::-webkit-scrollbar { display: none; }

.qs-books-row[b-ryqixxflnd] {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(4px, .6vw, 9px);
    min-height: 340px;
    padding: 1.5rem .25rem 0;
}

.qs-books-row[b-ryqixxflnd]::after {
    content: "";
    position: absolute;
    left: .7rem;
    right: .7rem;
    bottom: 9px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(44,42,37,.16), transparent 70%);
    filter: blur(7px);
    pointer-events: none;
}

/* ── Month book (spine) ── */
.qs-book[b-ryqixxflnd] {
    --book-h: 250px;
    --spine-gold: rgba(184,146,78,.46);
    --cloth-light: rgba(255,255,255,.28);
    --cloth-dark: rgba(86,72,48,.08);
    position: relative;
    flex: 0 0 auto;
    width: clamp(54px, 5.8vw, 74px);
    height: var(--book-h);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.1rem .35rem .85rem;
    border: 1px solid rgba(92,75,45,.16);
    border-radius: 6px 8px 3px 3px;
    background:
        linear-gradient(90deg, transparent 0 9px, var(--spine-gold) 9px 10px, transparent 10px 100%),
        linear-gradient(90deg, transparent 0 calc(100% - 9px), rgba(255,255,255,.26) calc(100% - 9px) calc(100% - 8px), transparent calc(100% - 8px) 100%),
        repeating-linear-gradient(0deg, transparent 0 7px, var(--cloth-dark) 7px 8px),
        repeating-linear-gradient(90deg, transparent 0 8px, var(--cloth-light) 8px 9px),
        linear-gradient(100deg, #E5DFD2 0%, #DAD3C4 16%, #D2CBBA 74%, #C4BCAA 100%);
    color: #514B3C;
    cursor: pointer;
    overflow: hidden;
    scroll-snap-align: start;
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, filter .2s ease;
    transform-origin: bottom center;
    box-shadow:
        inset 4px 0 rgba(255,255,255,.42),
        inset -6px 0 rgba(68,54,32,.08),
        2px 4px 10px rgba(44,42,37,.10);
}

/* 本の天端ハイライト */
.qs-book[b-ryqixxflnd]::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 12px;
    right: 9px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--spine-gold), transparent);
    box-shadow:
        0 10px 0 rgba(184,146,78,.24),
        0 calc(var(--book-h) - 38px) 0 rgba(184,146,78,.22);
}

.qs-book[b-ryqixxflnd]::after {
    content: "";
    position: absolute;
    inset: 2px 2px 3px;
    border-radius: 4px 6px 2px 2px;
    border: 1px solid rgba(255,255,255,.24);
    border-left-color: rgba(123,100,62,.18);
    pointer-events: none;
}

.qs-book:hover:not(.is-empty)[b-ryqixxflnd] {
    transform: translateY(-5px);
    box-shadow:
        inset 4px 0 rgba(255,255,255,.42),
        inset -6px 0 rgba(68,54,32,.08),
        3px 12px 20px rgba(44,42,37,.16);
    filter: brightness(1.02);
}

/* 今月 — クリーム白で強調 */
.qs-book.is-current[b-ryqixxflnd] {
    --spine-gold: rgba(194,154,84,.68);
    --cloth-light: rgba(255,255,255,.34);
    --cloth-dark: rgba(152,118,58,.07);
    background:
        linear-gradient(90deg, transparent 0 9px, var(--spine-gold) 9px 11px, transparent 11px 100%),
        linear-gradient(90deg, transparent 0 calc(100% - 9px), rgba(255,255,255,.38) calc(100% - 9px) calc(100% - 8px), transparent calc(100% - 8px) 100%),
        repeating-linear-gradient(0deg, transparent 0 7px, var(--cloth-dark) 7px 8px),
        repeating-linear-gradient(90deg, transparent 0 8px, var(--cloth-light) 8px 9px),
        linear-gradient(100deg, #FFFDF7 0%, #FDF7E8 48%, #F5EAD0 100%);
    border: 1.5px solid #DEC9A0;
    color: #2C2A25;
    box-shadow:
        inset 4px 0 rgba(255,255,255,.72),
        inset -5px 0 rgba(180,150,90,.12),
        3px 10px 22px rgba(44,42,37,.14),
        0 0 0 1px rgba(222,201,160,.35);
}

.qs-book.is-current[b-ryqixxflnd]::before {
    background: linear-gradient(90deg, transparent, rgba(194,154,84,.70), transparent);
    box-shadow:
        0 10px 0 rgba(194,154,84,.34),
        0 calc(var(--book-h) - 38px) 0 rgba(194,154,84,.30);
}

.qs-book.is-current:hover[b-ryqixxflnd] {
    transform: translateY(-5px);
    box-shadow:
        inset 4px 0 rgba(255,255,255,.72),
        inset -5px 0 rgba(180,150,90,.12),
        3px 16px 28px rgba(44,42,37,.18),
        0 0 0 1px rgba(222,201,160,.35);
}

/* 記録なし月 — 薄く静かに */
.qs-book.is-empty[b-ryqixxflnd] {
    --spine-gold: rgba(148,129,94,.16);
    --cloth-light: rgba(255,255,255,.20);
    --cloth-dark: rgba(80,75,60,.04);
    background:
        linear-gradient(90deg, transparent 0 9px, var(--spine-gold) 9px 10px, transparent 10px 100%),
        repeating-linear-gradient(0deg, transparent 0 7px, var(--cloth-dark) 7px 8px),
        repeating-linear-gradient(90deg, transparent 0 8px, var(--cloth-light) 8px 9px),
        linear-gradient(100deg, #EEEAE2 0%, #E6E1D6 100%);
    border: 1px solid rgba(44,42,37,.07);
    color: rgba(80,75,60,.5);
    box-shadow:
        inset 3px 0 rgba(255,255,255,.45),
        inset -4px 0 rgba(0,0,0,.04),
        2px 4px 8px rgba(44,42,37,.06);
}

.qs-book.is-empty:hover[b-ryqixxflnd] {
    transform: none;
    filter: none;
}

/* 選択中 */
.qs-book.is-previewed:not(.is-current)[b-ryqixxflnd] {
    transform: translateY(-4px);
    filter: brightness(1.04);
    box-shadow:
        inset 4px 0 rgba(255,255,255,.42),
        inset -6px 0 rgba(68,54,32,.08),
        3px 12px 20px rgba(44,42,37,.16);
}

/* ── Book text (horizontal) ── */
.qs-book-abbr[b-ryqixxflnd] {
    font: 700 clamp(.78rem, 1vw, .95rem)/1 Georgia, "Times New Roman", serif;
    letter-spacing: .1em;
    text-align: center;
    text-shadow: 0 1px rgba(255,255,255,.52);
}

.qs-book-full[b-ryqixxflnd] {
    margin-top: .32rem;
    font: 400 clamp(.5rem, .8vw, .64rem)/1 Georgia, serif;
    color: #948B79;
    text-align: center;
    text-shadow: 0 1px rgba(255,255,255,.46);
}

.qs-book.is-current .qs-book-full[b-ryqixxflnd] { color: #8A7C5E; }
.qs-book.is-empty .qs-book-full[b-ryqixxflnd] { color: rgba(80,75,60,.45); }

.qs-book-mid[b-ryqixxflnd] {
    flex: 1;
    display: grid;
    place-items: center;
    width: 100%;
}

.qs-book-leaf[b-ryqixxflnd] {
    width: 1rem;
    height: 1rem;
    opacity: .6;
    color: #7A8D77;
}

.qs-book-foot[b-ryqixxflnd] {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .22rem;
}

.qs-book-foot .qs-book-leaf[b-ryqixxflnd] { margin-bottom: .1rem; }

.qs-book-count[b-ryqixxflnd] {
    font: 400 clamp(.5rem, .75vw, .6rem)/1 Georgia, serif;
    color: #9A9180;
    white-space: nowrap;
}

.qs-book-words[b-ryqixxflnd] {
    font: 400 clamp(.5rem, .75vw, .6rem)/1 Georgia, serif;
    color: #B0987A;
    white-space: nowrap;
}

.qs-book.is-current .qs-book-count[b-ryqixxflnd] { color: #6F6450; }
.qs-book.is-empty .qs-book-count[b-ryqixxflnd] { color: rgba(80,75,60,.45); }

/* 棚板 — オーク調の棚 */
.qs-wood-shelf[b-ryqixxflnd] {
    position: relative;
    z-index: 1;
    height: 18px;
    border-radius: 4px 4px 3px 3px;
    background:
        linear-gradient(90deg, rgba(255,255,255,.16), transparent 16%, rgba(103,69,31,.12) 46%, transparent 72%, rgba(255,255,255,.12)),
        linear-gradient(180deg, #E8CFA5 0%, #D5B176 48%, #BA8E52 100%);
    box-shadow:
        inset 0 1px rgba(255,255,255,.62),
        inset 0 -3px rgba(117,80,38,.38),
        0 10px 18px rgba(120,90,50,.20),
        0 2px 4px rgba(44,42,37,.12);
}

.qs-wood-shelf[b-ryqixxflnd]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: rgba(111,74,34,.42);
}

/* ── 月カード ── */
.qs-month-card[b-ryqixxflnd] {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #FFFDF7;
    border: 1px solid rgba(44,42,37,.10);
    border-radius: 20px;
    padding: 1.35rem 1.5rem;
    box-shadow: 0 6px 24px rgba(44,42,37,.07);
    animation: card-reveal-b-ryqixxflnd .3s ease both;
}

@keyframes card-reveal-b-ryqixxflnd {
    from { opacity: 0; transform: translateY(8px); }
}

.qs-month-info[b-ryqixxflnd] {
    flex: 1;
    min-width: 0;
}

.qs-month-period[b-ryqixxflnd] {
    margin: 0 0 .15rem;
    color: #7A7568;
    font-size: .72rem;
    letter-spacing: .06em;
}

.qs-month-name[b-ryqixxflnd] {
    margin: 0 0 .75rem;
    font: 400 clamp(1.6rem, 4vw, 2.2rem)/1 Georgia, "Yu Mincho", serif;
    color: #2C2A25;
}

.qs-month-stats[b-ryqixxflnd] {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
}

.qs-month-stat[b-ryqixxflnd] {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #7A7568;
    font-size: .82rem;
}

.qs-month-stat strong[b-ryqixxflnd] {
    color: #2C2A25;
    font-weight: 700;
}

.qs-month-stat svg[b-ryqixxflnd] {
    flex-shrink: 0;
    opacity: .6;
}

.qs-open-btn[b-ryqixxflnd] {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.2rem;
    border: 1px solid #D8C7A6;
    border-radius: 12px;
    background: #F5EDD8;
    color: #2C2A25;
    font-size: .84rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
    box-shadow: 0 2px 8px rgba(44,42,37,.08);
}

.qs-open-btn:hover[b-ryqixxflnd] {
    background: #EEE0C0;
    box-shadow: 0 4px 14px rgba(44,42,37,.13);
    transform: translateY(-1px);
}

/* ── Year dots ── */
.qs-year-dots[b-ryqixxflnd] {
    display: flex;
    justify-content: center;
    gap: .55rem;
}

.qs-year-dots button[b-ryqixxflnd] {
    width: 5px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(44,42,37,.2);
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

.qs-year-dots button.is-active[b-ryqixxflnd] {
    background: #7A8D77;
    transform: scale(1.3);
}

/* ── Bottom nav ── */
.qs-bottom-nav[b-ryqixxflnd] {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom));
    background: rgba(248,245,237,.95);
    border-top: 1px solid rgba(44,42,37,.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 50;
}

.qs-bottom-nav a[b-ryqixxflnd] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    color: #7A7568;
    text-decoration: none;
    font-size: .65rem;
    font-weight: 500;
    letter-spacing: .04em;
    transition: color .15s ease;
}

.qs-bottom-nav a svg[b-ryqixxflnd] {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
}

.qs-bottom-nav a.is-active[b-ryqixxflnd] {
    color: #2C2A25;
}

.qs-bottom-nav a.is-active svg[b-ryqixxflnd] {
    stroke-width: 2;
}

/* ============================================================
   Book stage — 本を開いた状態（light theme に調整）
   ============================================================ */
.book-stage[b-ryqixxflnd] {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2rem);
    animation: stage-in-b-ryqixxflnd .6s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes stage-in-b-ryqixxflnd {
    from { opacity: 0; transform: translateY(16px) scale(.97); }
}

.stage-topbar[b-ryqixxflnd] {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 30;
}

.stage-close[b-ryqixxflnd] {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid rgba(44,42,37,.18);
    border-radius: 999px;
    padding: .55rem .9rem;
    color: #2C2A25;
    background: rgba(255,253,247,.85);
    font-size: .74rem;
    cursor: pointer;
    transition: background .15s ease;
}

.stage-close:hover[b-ryqixxflnd] { background: #F5EDD8; }

.book-cover-reveal[b-ryqixxflnd] {
    display: flex;
    justify-content: center;
    height: 130px;
    perspective: 1000px;
    overflow: visible;
}

.selected-cover[b-ryqixxflnd] {
    width: 190px;
    height: 260px;
    z-index: 1;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: .55rem;
    border: 1px solid rgba(44,42,37,.18);
    border-radius: 5px 12px 12px 5px;
    color: #2C2418;
    background: #E2DACA;
    box-shadow:
        inset 6px 0 rgba(255,255,255,.45),
        inset -3px 0 rgba(44,36,24,.08),
        12px 18px 32px rgba(44,36,24,.22);
    transform: translateY(-30px) rotate(-3deg) scale(.58);
    transform-origin: top center;
}

.selected-cover strong[b-ryqixxflnd] { font: 1.4rem Georgia, serif; }
.selected-cover span[b-ryqixxflnd] { letter-spacing: .16em; font-size: .7rem; }
.selected-cover small[b-ryqixxflnd] { font-size: .5rem; color: #6A5F52; }
.selected-cover i[b-ryqixxflnd] { width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border: 1px solid rgba(139,112,64,.45); color: #8B7040; transform: rotate(45deg); font: .6rem Georgia, serif; }

/* 月ごとの装丁色（book-stage cover） — 自然パレットに統一した muted トーン */
.book-tone-m1[b-ryqixxflnd]  { background: #D8DDE0; } /* 1月 — 冬霞のグレー */
.book-tone-m2[b-ryqixxflnd]  { background: #DDD8E2; } /* 2月 — 薄紫がかった白 */
.book-tone-m3[b-ryqixxflnd]  { background: #D4DDD0; } /* 3月 — 若芽のセージ */
.book-tone-m4[b-ryqixxflnd]  { background: #CCDAC4; } /* 4月 — 春の薄緑 */
.book-tone-m5[b-ryqixxflnd]  { background: #D8D8C4; } /* 5月 — 薄い苔色 */
.book-tone-m6[b-ryqixxflnd]  { background: #E0D8C4; } /* 6月 — 薄い砂色 */
.book-tone-m7[b-ryqixxflnd]  { background: #E4D8C0; } /* 7月 — 麦わら */
.book-tone-m8[b-ryqixxflnd]  { background: #E0D0BC; } /* 8月 — 淡いテラコッタ */
.book-tone-m9[b-ryqixxflnd]  { background: #D8CCBC; } /* 9月 — 薄い錆 */
.book-tone-m10[b-ryqixxflnd] { background: #D4CCC0; } /* 10月 — 薄い小麦 */
.book-tone-m11[b-ryqixxflnd] { background: #D0CCC8; } /* 11月 — 薄灰 */
.book-tone-m12[b-ryqixxflnd] { background: #CCD4D0; } /* 12月 — 冬の薄緑 */
.book-tone-empty[b-ryqixxflnd] { background: #EDE8DF; }

.index-toolbar[b-ryqixxflnd],
.reader-toolbar[b-ryqixxflnd] {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    margin: .5rem 0 1rem;
}

.index-toolbar button[b-ryqixxflnd],
.reader-toolbar button[b-ryqixxflnd],
.reader-toolbar a[b-ryqixxflnd] {
    display: inline-flex;
    gap: .4rem;
    align-items: center;
    border: 1px solid rgba(44,42,37,.15);
    border-radius: 999px;
    padding: .45rem .8rem;
    color: #7A7568;
    background: #FFFDF7;
    text-decoration: none;
    font-size: .65rem;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.index-toolbar button:hover[b-ryqixxflnd],
.reader-toolbar button:hover[b-ryqixxflnd],
.reader-toolbar a:hover[b-ryqixxflnd] { background: #F5EDD8; color: #2C2A25; }

.index-toolbar button.is-active[b-ryqixxflnd] { border-color: #B8A27A; color: #2C2A25; background: #F5EDD8; }
.reader-toolbar[b-ryqixxflnd] { justify-content: space-between; }
.reader-toolbar > span[b-ryqixxflnd] { font: .8rem Georgia, serif; color: #7A7568; }

/* ── Open book ── */
.open-book[b-ryqixxflnd] {
    --ink: #29231b;
    --paper: #f5ecd8;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 570px;
    perspective: 2400px;
    perspective-origin: 50% 42%;
    transform-style: preserve-3d;
    filter: drop-shadow(0 20px 24px rgba(44,42,37,.18));
}

.open-book[b-ryqixxflnd]::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -9px -13px -17px;
    border-radius: 14px 16px 16px 14px;
    background: linear-gradient(150deg, #D8C9AE, #C8B898 55%, #B8A882);
    box-shadow: 0 24px 40px rgba(44,42,37,.22), inset 0 0 0 1px rgba(44,42,37,.08);
}

.open-book[b-ryqixxflnd]::after {
    content: "";
    position: absolute;
    z-index: 5;
    top: 1%; bottom: 1%; left: 50%;
    width: 28px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(44,42,37,.06), rgba(255,255,255,.22), rgba(44,42,37,.06), transparent);
    pointer-events: none;
}

.paper-page[b-ryqixxflnd] {
    position: relative;
    min-width: 0;
    padding: clamp(2rem, 5vw, 4.5rem);
    color: var(--ink);
    background:
        radial-gradient(circle at 20% 10%, rgba(200,170,110,.06), transparent 28%),
        repeating-linear-gradient(0deg, rgba(150,120,70,.018) 0 1px, transparent 1px 4px),
        var(--paper);
    box-shadow: inset 0 0 35px rgba(150,110,60,.10);
}

.paper-page:first-child[b-ryqixxflnd] {
    border-radius: 18px 2px 2px 14px;
    box-shadow: inset 0 0 35px rgba(150,110,60,.10), -2px 3px 0 #efe4cd, -4px 5px 0 #e6dabf, -6px 7px 0 #dccfb1, -8px 9px 2px rgba(0,0,0,.18);
}

.paper-page:last-child[b-ryqixxflnd] {
    border-radius: 2px 18px 14px 2px;
    box-shadow: inset 0 0 35px rgba(150,110,60,.10), 2px 3px 0 #efe4cd, 4px 5px 0 #e6dabf, 6px 7px 0 #dccfb1, 8px 9px 2px rgba(0,0,0,.18);
}

.page-label[b-ryqixxflnd] { color: #947b52; font-size: .55rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.page-number[b-ryqixxflnd] { position: absolute; top: 1.5rem; left: 2rem; color: #a09078; font: .55rem Georgia, serif; }
.month-overview[b-ryqixxflnd] { display: grid; align-content: center; justify-items: center; text-align: center; }
.month-overview h2[b-ryqixxflnd] { margin: 1rem 0 .2rem; font: 400 clamp(2.5rem, 6vw, 4.5rem) Georgia, serif; }
.overview-year[b-ryqixxflnd] { margin: 0; color: #907e62; font: 1.1rem Georgia, serif; }
.overview-stats[b-ryqixxflnd] { width: min(260px, 100%); display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid rgba(116,85,48,.18); }
.overview-stats div[b-ryqixxflnd] { display: grid; gap: .25rem; }
.overview-stats strong[b-ryqixxflnd] { font: 1.2rem Georgia, serif; }
.overview-stats span[b-ryqixxflnd] { color: #8b7c68; font-size: .45rem; }
.reader-sprig[b-ryqixxflnd] { margin-top: 2.5rem; color: #988264; font: 2rem Georgia, serif; }

.month-index[b-ryqixxflnd] { overflow: auto; max-height: 650px; }
.month-index h3[b-ryqixxflnd] { margin: 0 0 1.5rem; font: 400 1.45rem Georgia, serif; }
.entry-index[b-ryqixxflnd] { display: grid; }
.entry-index button[b-ryqixxflnd] { display: grid; grid-template-columns: 70px 1fr auto; gap: .7rem; align-items: center; padding: .7rem .2rem; border: 0; border-bottom: 1px solid rgba(116,85,48,.12); color: #514535; background: transparent; text-align: left; cursor: pointer; }
.entry-index button:hover[b-ryqixxflnd] { color: #17120d; background: rgba(154,123,73,.05); }
.entry-index span[b-ryqixxflnd] { font: .78rem Georgia, serif; }
.entry-index small[b-ryqixxflnd] { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #877863; font-size: .58rem; }

.calendar-heading[b-ryqixxflnd] { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.calendar-heading h3[b-ryqixxflnd] { margin: 0; font: 400 1.1rem Georgia, serif; }
.calendar-heading button[b-ryqixxflnd] { border: 0; background: transparent; color: #7A7568; cursor: pointer; font-size: 1rem; }
.book-calendar[b-ryqixxflnd] { display: grid; grid-template-columns: repeat(7, 1fr); gap: .45rem; text-align: center; }
.book-calendar span[b-ryqixxflnd],
.book-calendar button[b-ryqixxflnd] { aspect-ratio: 1; display: grid; place-items: center; border: 0; border-radius: 50%; color: #6c5d49; background: transparent; font: .7rem Georgia, serif; cursor: pointer; }
.book-calendar .calendar-weekday[b-ryqixxflnd] { aspect-ratio: auto; color: #9a896f; font: 700 .48rem sans-serif; text-transform: uppercase; cursor: default; }
.book-calendar button.has-entry[b-ryqixxflnd] { color: #2C2A25; background: #D8C7A6; box-shadow: 0 2px 5px rgba(44,42,37,.12); }

.reader-meta-page[b-ryqixxflnd] { display: grid; align-content: center; }
.reader-month[b-ryqixxflnd] { margin: 0; color: #907e62; font: .85rem Georgia, serif; }
.reader-meta-page h2[b-ryqixxflnd] { margin: .35rem 0; font: 400 clamp(2.4rem, 6vw, 4.6rem) Georgia, serif; }
.reader-weekday[b-ryqixxflnd] { margin: 0; color: #7b6b55; font: italic .9rem Georgia, serif; }
.reader-rule[b-ryqixxflnd] { width: 45px; margin: 2rem 0; border-top: 1px solid #a38b65; }
.reader-facts[b-ryqixxflnd] { display: grid; gap: .7rem; margin: 0; }
.reader-facts div[b-ryqixxflnd] { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(116,85,48,.10); padding-bottom: .45rem; }
.reader-facts dt[b-ryqixxflnd] { color: #8c7b64; font-size: .56rem; }
.reader-facts dd[b-ryqixxflnd] { margin: 0; font: .7rem Georgia, serif; }

.reader-entry-page[b-ryqixxflnd] { overflow: auto; max-height: 650px; }
.reader-copy[b-ryqixxflnd] { white-space: pre-wrap; font: clamp(.9rem, 1.35vw, 1.05rem)/2 Georgia, "Yu Mincho", serif; }
.reader-notes[b-ryqixxflnd] { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(116,85,48,.14); }
.reader-notes summary[b-ryqixxflnd] { color: #756344; cursor: pointer; font-size: .62rem; font-weight: 700; letter-spacing: .08em; }
.reader-notes p[b-ryqixxflnd] { font-size: .72rem; line-height: 1.75; }

.diary-reader[b-ryqixxflnd] { perspective: 2400px; perspective-origin: 50% 42%; transform-style: preserve-3d; }

.diary-reader.is-turning .reader-entry-page[b-ryqixxflnd] {
    transform-origin: left center;
    backface-visibility: hidden;
    z-index: 6;
    animation: paper-turn-b-ryqixxflnd .66s cubic-bezier(.42,0,.25,1) both;
}

@keyframes paper-turn-b-ryqixxflnd {
    0%   { transform: rotateY(0deg);   box-shadow: 0 0 0 rgba(44,42,37,0);    filter: brightness(1); }
    48%  { transform: rotateY(-90deg); box-shadow: -34px 0 48px rgba(44,42,37,.2); filter: brightness(.85); }
    52%  { transform: rotateY(-90deg); box-shadow: -34px 0 48px rgba(44,42,37,.2); filter: brightness(.85); }
    100% { transform: rotateY(0deg);   box-shadow: 0 0 0 rgba(44,42,37,0);    filter: brightness(1); }
}

@media (prefers-reduced-motion: reduce) {
    .diary-reader.is-turning .reader-entry-page[b-ryqixxflnd] { animation: paper-fade-b-ryqixxflnd .3s ease; }
    @keyframes paper-fade-b-ryqixxflnd { from { opacity: .4; } to { opacity: 1; } }
}

.page-navigation[b-ryqixxflnd] {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.page-navigation button[b-ryqixxflnd] {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 0;
    color: #7A7568;
    background: transparent;
    font-size: .68rem;
    cursor: pointer;
}

.page-navigation button:disabled[b-ryqixxflnd] { opacity: .2; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 600px) {
    .quiet-shelf[b-ryqixxflnd] {
        padding: 1rem .75rem 5.5rem;
        gap: 1rem;
    }

    .qs-sub[b-ryqixxflnd] { display: none; }

    .qs-write-btn span[b-ryqixxflnd] { display: none; }

    .qs-write-btn[b-ryqixxflnd] {
        padding: .6rem .85rem;
        font-size: 0;
    }

    .qs-write-btn svg[b-ryqixxflnd] { width: 16px; height: 16px; }

    .qs-books-row[b-ryqixxflnd] {
        justify-content: flex-start;
        gap: 6px;
    }

    .qs-book[b-ryqixxflnd] {
        width: clamp(58px, 16vw, 78px);
        padding: 1rem .3rem .75rem;
    }

    .qs-month-card[b-ryqixxflnd] {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem 1.1rem;
    }

    .qs-open-btn[b-ryqixxflnd] {
        width: 100%;
        justify-content: center;
    }

    .book-stage[b-ryqixxflnd] {
        padding: .75rem .65rem;
    }

    .open-book[b-ryqixxflnd] {
        display: block;
        min-height: 0;
        perspective: none;
        transform-style: flat;
        filter: drop-shadow(0 12px 16px rgba(44,42,37,.15));
    }

    .open-book[b-ryqixxflnd]::after { display: none; }
    .open-book[b-ryqixxflnd]::before { inset: -6px -7px -10px; border-radius: 12px; }
    .paper-page[b-ryqixxflnd] { padding: 2rem 1.4rem; border-radius: 10px !important; }
    .book-index .month-overview[b-ryqixxflnd],
    .diary-reader .reader-meta-page[b-ryqixxflnd] { min-height: 240px; }
    .book-index .month-index[b-ryqixxflnd],
    .diary-reader .reader-entry-page[b-ryqixxflnd] { min-height: 430px; margin-top: 4px; }
    .paper-page:first-child[b-ryqixxflnd],
    .paper-page:last-child[b-ryqixxflnd] {
        box-shadow: inset 0 0 35px rgba(150,110,60,.10), 0 4px 0 #e6dabf, 0 7px 4px rgba(0,0,0,.12);
    }
    .diary-reader.is-turning .reader-entry-page[b-ryqixxflnd] {
        transform-origin: center;
        animation: paper-slide-b-ryqixxflnd .5s cubic-bezier(.42,0,.25,1) both;
    }
    @keyframes paper-slide-b-ryqixxflnd {
        0%   { transform: translateX(0);   opacity: 1; }
        48%  { transform: translateX(-16px); opacity: 0; }
        52%  { transform: translateX(16px);  opacity: 0; }
        100% { transform: translateX(0);   opacity: 1; }
    }
    .overview-stats[b-ryqixxflnd] { margin-top: 1.5rem; }
    .reader-sprig[b-ryqixxflnd] { margin-top: 1rem; }
    .book-cover-reveal[b-ryqixxflnd] { display: none; }
}

@media (min-width: 601px) and (max-width: 900px) {
    .qs-books-row[b-ryqixxflnd] {
        justify-content: flex-start;
    }
}
/* _content/LinguaNote/Components/Pages/DiaryPromptTool.razor.rz.scp.css */
/* ============================================================
   DiaryPromptTool  Escoped styles
   "pt-" prefix to avoid collision
   ============================================================ */

/* ── Page wrapper ── */
.pt-page[b-en5yx3sogn] {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.25rem 5rem;
}

/* ── Hero ── */
.pt-hero[b-en5yx3sogn] {
    margin-bottom: 2rem;
}

.pt-kicker[b-en5yx3sogn] {
    display: inline-block;
    margin: 0 0 0.6rem;
    padding: 0.25em 0.75em;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    color: #6366f1;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pt-title[b-en5yx3sogn] {
    margin: 0 0 0.6rem;
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--app-text);
}

.pt-lead[b-en5yx3sogn] {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--app-muted);
    max-width: 560px;
}

.pt-hero-badges[b-en5yx3sogn] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pt-hero-badges span[b-en5yx3sogn] {
    display: inline-block;
    padding: 0.3em 0.75em;
    border-radius: 999px;
    border: 1px solid var(--app-border);
    background: var(--app-surface);
    color: var(--app-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

/* ── Main card ── */
.pt-card[b-en5yx3sogn] {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.pt-quick-start[b-en5yx3sogn] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.28);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08));
}

.pt-quick-start div[b-en5yx3sogn] {
    display: grid;
    gap: 0.2rem;
}

.pt-quick-start strong[b-en5yx3sogn] {
    color: var(--app-text);
    font-size: 0.95rem;
}

.pt-quick-start span[b-en5yx3sogn] {
    color: var(--app-muted);
    font-size: 0.8rem;
}

.pt-quick-start button[b-en5yx3sogn] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-shrink: 0;
    padding: 0.7rem 1rem;
    border: 0;
    border-radius: 10px;
    background: #4f46e5;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.pt-quick-start button:hover:not(:disabled)[b-en5yx3sogn] {
    background: #4338ca;
}

.pt-quick-start button:disabled[b-en5yx3sogn] {
    opacity: 0.65;
}

/* ── Topic chips ── */
.pt-topics[b-en5yx3sogn] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.pt-topics-label[b-en5yx3sogn] {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--app-muted);
    white-space: nowrap;
}

.pt-topic-chip[b-en5yx3sogn] {
    display: inline-flex;
    align-items: center;
    padding: 0.35em 0.8em;
    border-radius: 999px;
    border: 1px solid var(--app-border);
    background: transparent;
    color: var(--app-text);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    line-height: 1;
}

.pt-topic-chip:hover:not(:disabled)[b-en5yx3sogn] {
    background: rgba(99, 102, 241, 0.1);
    border-color: #6366f1;
    color: #6366f1;
}

.pt-topic-chip:disabled[b-en5yx3sogn] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Textarea ── */
.pt-input-wrap[b-en5yx3sogn] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pt-input-label[b-en5yx3sogn] {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--app-muted);
}

.pt-textarea[b-en5yx3sogn] {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1.5px solid var(--app-border);
    background: var(--app-base);
    color: var(--app-text);
    font-size: 1rem;
    line-height: 1.65;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.pt-textarea:focus[b-en5yx3sogn] {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.pt-textarea[b-en5yx3sogn]::placeholder {
    color: var(--app-muted);
    opacity: 0.7;
}

.pt-textarea:disabled[b-en5yx3sogn] {
    opacity: 0.6;
    cursor: not-allowed;
}

.pt-input-foot[b-en5yx3sogn] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.pt-char-count[b-en5yx3sogn] {
    font-size: 0.78rem;
    color: var(--app-muted);
    font-variant-numeric: tabular-nums;
}

.pt-char-count--warn[b-en5yx3sogn] {
    color: #f59e0b;
    font-weight: 700;
}

.pt-sample-link[b-en5yx3sogn] {
    background: none;
    border: none;
    padding: 0.2em 0.5em;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6366f1;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    border-radius: 4px;
    transition: color 0.15s;
}

.pt-sample-link:hover:not(:disabled)[b-en5yx3sogn] {
    color: #4f46e5;
}

.pt-sample-link:disabled[b-en5yx3sogn] {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Submit button ── */
.pt-submit-btn[b-en5yx3sogn] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    letter-spacing: 0.01em;
}

.pt-submit-btn:hover:not(:disabled)[b-en5yx3sogn] {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.pt-submit-btn:active:not(:disabled)[b-en5yx3sogn] {
    transform: translateY(0);
}

.pt-submit-btn:disabled[b-en5yx3sogn] {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* spinner */
.pt-spinner[b-en5yx3sogn] {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pt-spin-b-en5yx3sogn 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes pt-spin-b-en5yx3sogn {
    to { transform: rotate(360deg); }
}

/* ── Status message ── */
.pt-status-msg[b-en5yx3sogn] {
    margin: 0;
    font-size: 0.9rem;
}

/* ── Result card ── */
.pt-result[b-en5yx3sogn] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid var(--app-border);
    padding-top: 1.25rem;
}

/* praise banner */
.pt-result-praise[b-en5yx3sogn] {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.24);
}

.pt-result-praise-icon[b-en5yx3sogn] {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.pt-result-praise-title[b-en5yx3sogn] {
    margin: 0 0 0.15rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #4f46e5;
}

.pt-result-praise-sub[b-en5yx3sogn] {
    margin: 0;
    font-size: 0.85rem;
    color: #4338ca;
}

/* before/after grid */
.pt-result-grid[b-en5yx3sogn] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pt-result-arrow[b-en5yx3sogn] {
    text-align: center;
    font-size: 1.1rem;
    color: var(--app-muted);
    line-height: 1;
}

.pt-result-block[b-en5yx3sogn] {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--app-border);
}

.pt-result-block--before[b-en5yx3sogn] {
    background: var(--app-section, rgba(0,0,0,0.03));
}

.pt-result-block--after[b-en5yx3sogn] {
    background: rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.2);
}

.pt-result-block-label[b-en5yx3sogn] {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--app-muted);
}

.pt-result-block--after .pt-result-block-label[b-en5yx3sogn] {
    color: #6366f1;
}

.pt-result-block-text[b-en5yx3sogn] {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--app-text);
    white-space: pre-wrap;
    word-break: break-word;
}

.pt-result-block--after .pt-result-block-text[b-en5yx3sogn] {
    font-weight: 600;
    color: var(--app-text);
}

/* explanation */
.pt-result-explanation[b-en5yx3sogn] {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: var(--app-section, rgba(0,0,0,0.03));
    border: 1px solid var(--app-border);
}

.pt-result-explanation-label[b-en5yx3sogn] {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--app-muted);
}

.pt-result-explanation-text[b-en5yx3sogn] {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--app-text);
}

/* extracted vocabulary */
.pt-vocab[b-en5yx3sogn] {
    padding: 1rem;
    border: 1px solid rgba(16, 185, 129, 0.24);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(99, 102, 241, 0.05));
}

.pt-vocab-heading[b-en5yx3sogn] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.pt-vocab-kicker[b-en5yx3sogn] {
    margin: 0 0 0.2rem;
    color: #047857;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pt-vocab-heading h2[b-en5yx3sogn] {
    margin: 0;
    color: var(--app-text);
    font-size: 1rem;
    font-weight: 800;
}

.pt-vocab-count[b-en5yx3sogn] {
    flex-shrink: 0;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.13);
    color: #047857;
    font-size: 0.72rem;
    font-weight: 800;
}

.pt-vocab-lead[b-en5yx3sogn] {
    margin: 0.45rem 0 0.85rem;
    color: var(--app-muted);
    font-size: 0.8rem;
    line-height: 1.55;
}

.pt-vocab-list[b-en5yx3sogn] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.pt-vocab-item[b-en5yx3sogn] {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    min-width: 0;
    padding: 0.7rem;
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 9px;
    background: var(--app-surface);
}

.pt-vocab-icon[b-en5yx3sogn] {
    color: #059669;
    line-height: 1.3;
}

.pt-vocab-item div[b-en5yx3sogn] {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.pt-vocab-item strong[b-en5yx3sogn] {
    color: var(--app-text);
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.pt-vocab-item div span[b-en5yx3sogn] {
    color: var(--app-muted);
    font-size: 0.76rem;
    line-height: 1.45;
}

/* save CTA */
.pt-result-cta[b-en5yx3sogn] {
    padding: 1.25rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.08) 100%);
    border: 1px solid rgba(99, 102, 241, 0.18);
    text-align: center;
}

.pt-result-cta-heading[b-en5yx3sogn] {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--app-text);
}

.pt-result-benefits[b-en5yx3sogn] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem 0.9rem;
    margin: 0 0 1rem;
    color: var(--app-muted);
    font-size: 0.8rem;
}

.pt-result-benefits i[b-en5yx3sogn] {
    color: #4f46e5;
}

.pt-result-cta-btn[b-en5yx3sogn] {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.pt-result-cta-btn:hover[b-en5yx3sogn] {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #fff;
}

.pt-result-cta-sub[b-en5yx3sogn] {
    margin: 0.65rem 0 0;
    font-size: 0.8rem;
    color: var(--app-muted);
}

/* sub-actions */
.pt-result-sub-actions[b-en5yx3sogn] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.pt-action-link[b-en5yx3sogn] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4em 0.85em;
    border-radius: 8px;
    border: 1px solid var(--app-border);
    background: transparent;
    color: var(--app-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.pt-action-link:hover[b-en5yx3sogn] {
    background: var(--app-section, rgba(0,0,0,0.04));
    color: var(--app-text);
    border-color: var(--app-text);
}

.pt-action-link--x:hover[b-en5yx3sogn] {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* ── Bottom nudge ── */
.pt-nudge[b-en5yx3sogn] {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.pt-nudge-item[b-en5yx3sogn] {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--app-border);
    background: var(--app-surface);
}

.pt-nudge-icon[b-en5yx3sogn] {
    font-size: 1.3rem;
    line-height: 1;
    flex-shrink: 0;
}

.pt-nudge-title[b-en5yx3sogn] {
    margin: 0 0 0.2rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--app-text);
}

.pt-nudge-text[b-en5yx3sogn] {
    margin: 0;
    font-size: 0.78rem;
    color: var(--app-muted);
    line-height: 1.5;
}

.pt-nudge-register[b-en5yx3sogn] {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 0.25rem;
}

.pt-nudge-btn[b-en5yx3sogn] {
    display: inline-block;
    padding: 0.65rem 1.75rem;
    border-radius: 12px;
    border: 1.5px solid #6366f1;
    color: #6366f1;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.pt-nudge-btn:hover[b-en5yx3sogn] {
    background: #6366f1;
    color: #fff;
}

/* ── Dark mode ── */
body.dark-mode .pt-kicker[b-en5yx3sogn] {
    background: rgba(99, 102, 241, 0.18);
    color: #a5b4fc;
}

body.dark-mode .pt-hero-badges span[b-en5yx3sogn] {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .pt-card[b-en5yx3sogn] {
    background: #1e2a3a;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

body.dark-mode .pt-topic-chip[b-en5yx3sogn] {
    border-color: rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
}

body.dark-mode .pt-topic-chip:hover:not(:disabled)[b-en5yx3sogn] {
    background: rgba(99, 102, 241, 0.2);
    border-color: #a5b4fc;
    color: #a5b4fc;
}

body.dark-mode .pt-textarea[b-en5yx3sogn] {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

body.dark-mode .pt-textarea:focus[b-en5yx3sogn] {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

body.dark-mode .pt-textarea[b-en5yx3sogn]::placeholder {
    color: #475569;
    opacity: 1;
}

body.dark-mode .pt-result-praise[b-en5yx3sogn] {
    background: rgba(109, 40, 217, 0.12);
    border-color: rgba(139, 92, 246, 0.3);
}

body.dark-mode .pt-result-praise-title[b-en5yx3sogn] {
    color: #a78bfa;
}

body.dark-mode .pt-result-praise-sub[b-en5yx3sogn] {
    color: #c4b5fd;
}

body.dark-mode .pt-result-block[b-en5yx3sogn] {
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .pt-result-block--before[b-en5yx3sogn] {
    background: rgba(255, 255, 255, 0.04);
}

body.dark-mode .pt-result-block--after[b-en5yx3sogn] {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
}

body.dark-mode .pt-result-block--after .pt-result-block-label[b-en5yx3sogn] {
    color: #a5b4fc;
}

body.dark-mode .pt-result-explanation[b-en5yx3sogn] {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .pt-vocab[b-en5yx3sogn] {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(99, 102, 241, 0.08));
    border-color: rgba(52, 211, 153, 0.24);
}

body.dark-mode .pt-vocab-kicker[b-en5yx3sogn],
body.dark-mode .pt-vocab-count[b-en5yx3sogn],
body.dark-mode .pt-vocab-icon[b-en5yx3sogn] {
    color: #6ee7b7;
}

body.dark-mode .pt-vocab-count[b-en5yx3sogn] {
    background: rgba(16, 185, 129, 0.16);
}

body.dark-mode .pt-vocab-item[b-en5yx3sogn] {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(52, 211, 153, 0.18);
}

body.dark-mode .pt-result-cta[b-en5yx3sogn] {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-color: rgba(99, 102, 241, 0.25);
}

body.dark-mode .pt-action-link[b-en5yx3sogn] {
    border-color: rgba(255, 255, 255, 0.12);
    color: #64748b;
}

body.dark-mode .pt-action-link:hover[b-en5yx3sogn] {
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.25);
}

body.dark-mode .pt-action-link--x:hover[b-en5yx3sogn] {
    background: #f8fafc;
    color: #0f172a;
    border-color: #f8fafc;
}

body.dark-mode .pt-nudge-item[b-en5yx3sogn] {
    background: #1e2a3a;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .pt-nudge-btn[b-en5yx3sogn] {
    border-color: #818cf8;
    color: #a5b4fc;
}

body.dark-mode .pt-nudge-btn:hover[b-en5yx3sogn] {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .pt-page[b-en5yx3sogn] {
        padding: 1.25rem 1rem 4rem;
    }

    .pt-card[b-en5yx3sogn] {
        padding: 1.15rem;
        border-radius: 14px;
    }

    .pt-quick-start[b-en5yx3sogn] {
        align-items: stretch;
        flex-direction: column;
    }

    .pt-quick-start button[b-en5yx3sogn],
    .pt-result-cta-btn[b-en5yx3sogn] {
        width: 100%;
    }

    .pt-nudge[b-en5yx3sogn] {
        grid-template-columns: 1fr;
    }

    .pt-vocab-list[b-en5yx3sogn] {
        grid-template-columns: 1fr;
    }

    .pt-result-sub-actions[b-en5yx3sogn] {
        flex-direction: column;
        align-items: stretch;
    }

    .pt-action-link[b-en5yx3sogn] {
        justify-content: center;
    }
}

/* Natural minimal palette: keep this public entry point aligned with Lexion. */
.pt-kicker[b-en5yx3sogn] {
    background: var(--lx-green-soft, #e8ede0);
    color: var(--lx-green-mid, #3c4a2e);
}

.pt-quick-start[b-en5yx3sogn] {
    border-color: rgba(75, 92, 59, 0.24);
    background: linear-gradient(135deg, rgba(232, 237, 224, 0.9), rgba(247, 244, 239, 0.72));
}

.pt-quick-start button[b-en5yx3sogn],
.pt-submit-btn[b-en5yx3sogn],
.pt-result-cta-btn[b-en5yx3sogn] {
    background: var(--lx-green, #4b5c3b);
    box-shadow: 0 8px 20px rgba(75, 92, 59, 0.2);
}

.pt-quick-start button:hover:not(:disabled)[b-en5yx3sogn],
.pt-submit-btn:hover:not(:disabled)[b-en5yx3sogn],
.pt-result-cta-btn:hover[b-en5yx3sogn] {
    background: var(--lx-green-mid, #3c4a2e);
    box-shadow: 0 10px 24px rgba(75, 92, 59, 0.24);
}

.pt-topic-chip:hover:not(:disabled)[b-en5yx3sogn],
.pt-textarea:focus[b-en5yx3sogn] {
    border-color: var(--lx-green, #4b5c3b);
    color: var(--lx-green-mid, #3c4a2e);
}

.pt-textarea:focus[b-en5yx3sogn] {
    box-shadow: 0 0 0 3px rgba(75, 92, 59, 0.16);
}

.pt-sample-link[b-en5yx3sogn],
.pt-result-praise-title[b-en5yx3sogn],
.pt-result-block--after .pt-result-block-label[b-en5yx3sogn],
.pt-result-benefits i[b-en5yx3sogn] {
    color: var(--lx-green, #4b5c3b);
}

.pt-sample-link:hover:not(:disabled)[b-en5yx3sogn],
.pt-result-praise-sub[b-en5yx3sogn] {
    color: var(--lx-green-mid, #3c4a2e);
}

.pt-result-praise[b-en5yx3sogn],
.pt-result-block--after[b-en5yx3sogn],
.pt-result-cta[b-en5yx3sogn] {
    border-color: rgba(75, 92, 59, 0.22);
    background: rgba(232, 237, 224, 0.72);
}

.pt-nudge-btn[b-en5yx3sogn] {
    border-color: var(--lx-green, #4b5c3b);
    color: var(--lx-green, #4b5c3b);
}

.pt-nudge-btn:hover[b-en5yx3sogn] {
    border-color: var(--lx-green, #4b5c3b);
    background: var(--lx-green, #4b5c3b);
}
/* _content/LinguaNote/Components/Pages/EnglishDiaryContent.razor.rz.scp.css */
.seo-content-page[b-lt6t3ft0cv] {
    min-height: 100vh;
    background: #F8F6F2;
}

.seo-breadcrumb[b-lt6t3ft0cv] {
    margin-bottom: 1.25rem;
    color: #7c7160;
    font-size: .88rem;
}

.seo-breadcrumb a[b-lt6t3ft0cv] {
    color: #7A8B6B;
    font-weight: 700;
    text-decoration: none;
}

.seo-breadcrumb a:hover[b-lt6t3ft0cv] {
    text-decoration: underline;
}

.seo-backlink[b-lt6t3ft0cv] {
    margin: 2rem 0 0;
}

.seo-backlink a[b-lt6t3ft0cv] {
    color: #7A8B6B;
    font-weight: 700;
    text-decoration: none;
}

.seo-backlink a:hover[b-lt6t3ft0cv] {
    text-decoration: underline;
}

.seo-content-inner[b-lt6t3ft0cv] {
    width: min(920px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 3rem 0;
}

.seo-hero[b-lt6t3ft0cv] {
    padding-bottom: 2rem;
}

.seo-kicker[b-lt6t3ft0cv] {
    margin: 0 0 .5rem;
    color: #7A8B6B;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.seo-hero h1[b-lt6t3ft0cv],
.seo-content-not-found h1[b-lt6t3ft0cv] {
    margin: 0;
    color: #111827;
    font-size: clamp(2rem, 5vw, 3.35rem);
    font-weight: 850;
    line-height: 1.08;
}

.seo-hero p[b-lt6t3ft0cv],
.seo-muted[b-lt6t3ft0cv] {
    max-width: 720px;
    margin: 1rem 0 0;
    color: #52616f;
    font-size: 1.05rem;
    line-height: 1.8;
}

.seo-actions[b-lt6t3ft0cv] {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.35rem;
}

.seo-button[b-lt6t3ft0cv] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: .75rem 1.1rem;
    border: 1px solid #7A8B6B;
    border-radius: 8px;
    background: #7A8B6B;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
}

.seo-button.secondary[b-lt6t3ft0cv] {
    border-color: #cbd5e1;
    background: #ffffff;
    color: #1f2937;
}

.seo-before-after[b-lt6t3ft0cv] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0 2rem;
}

.seo-before-after div[b-lt6t3ft0cv],
.seo-cta[b-lt6t3ft0cv] {
    border: 1px solid #d8dee7;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(20, 33, 48, .06);
}

.seo-before-after div[b-lt6t3ft0cv] {
    padding: 1rem;
}

.seo-before-after span[b-lt6t3ft0cv] {
    display: inline-flex;
    margin-bottom: .65rem;
    padding: .2rem .65rem;
    border-radius: 999px;
    background: #EFEDE5;
    color: #5C6B4F;
    font-size: .78rem;
    font-weight: 800;
}

.seo-before-after p[b-lt6t3ft0cv] {
    margin: 0;
    color: #111827;
    font-size: 1.05rem;
    line-height: 1.7;
}

.seo-article[b-lt6t3ft0cv] {
    color: #1f2937;
    font-size: 1.05rem;
    line-height: 1.9;
}

.seo-article p[b-lt6t3ft0cv] {
    margin: 0 0 1.15rem;
}

.seo-cta[b-lt6t3ft0cv] {
    margin-top: 2rem;
    padding: 1.25rem;
}

.seo-cta h2[b-lt6t3ft0cv] {
    margin: 0;
    color: #111827;
    font-size: 1.35rem;
}

.seo-cta p[b-lt6t3ft0cv] {
    margin: .55rem 0 1rem;
    color: #52616f;
}

@media (max-width: 720px) {
    .seo-content-inner[b-lt6t3ft0cv] {
        padding: 2rem 0;
    }

    .seo-before-after[b-lt6t3ft0cv] {
        grid-template-columns: 1fr;
    }
}
/* _content/LinguaNote/Components/Pages/EnglishDiaryIndex.razor.rz.scp.css */
.seo-content-page[b-xjy2h0w7zv] {
    min-height: 100vh;
    background: #F8F6F2;
}

.seo-content-inner[b-xjy2h0w7zv] {
    width: min(920px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 3rem 0;
}

.seo-hero[b-xjy2h0w7zv] {
    padding-bottom: 2rem;
}

.seo-kicker[b-xjy2h0w7zv] {
    margin: 0 0 .5rem;
    color: #7A8B6B;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.seo-hero h1[b-xjy2h0w7zv] {
    margin: 0;
    color: #111827;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 850;
    line-height: 1.12;
}

.seo-hero p[b-xjy2h0w7zv],
.seo-muted[b-xjy2h0w7zv] {
    max-width: 720px;
    margin: 1rem 0 0;
    color: #52616f;
    font-size: 1.05rem;
    line-height: 1.8;
}

.seo-actions[b-xjy2h0w7zv] {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.35rem;
}

.seo-button[b-xjy2h0w7zv] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: .75rem 1.1rem;
    border: 1px solid #7A8B6B;
    border-radius: 8px;
    background: #7A8B6B;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
}

.seo-button.secondary[b-xjy2h0w7zv] {
    border-color: #cbd5e1;
    background: #ffffff;
    color: #1f2937;
}

.seo-article-list[b-xjy2h0w7zv] {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 1rem;
}

.seo-article-list li a[b-xjy2h0w7zv] {
    display: block;
    padding: 1.15rem 1.25rem;
    border: 1px solid #d8dee7;
    border-radius: 8px;
    background: #FFFDF8;
    box-shadow: 0 10px 24px rgba(20, 33, 48, .06);
    text-decoration: none;
}

.seo-article-list li a:hover[b-xjy2h0w7zv] {
    border-color: #7A8B6B;
}

.seo-article-list-title[b-xjy2h0w7zv] {
    display: block;
    color: #111827;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.4;
}

.seo-article-list-desc[b-xjy2h0w7zv] {
    display: block;
    margin-top: .4rem;
    color: #52616f;
    font-size: .95rem;
    line-height: 1.7;
}

.seo-article-list time[b-xjy2h0w7zv] {
    display: block;
    margin-top: .55rem;
    color: #8a8273;
    font-size: .82rem;
}

.seo-cta[b-xjy2h0w7zv] {
    margin-top: 2.5rem;
    padding: 1.25rem;
    border: 1px solid #d8dee7;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(20, 33, 48, .06);
}

.seo-cta h2[b-xjy2h0w7zv] {
    margin: 0;
    color: #111827;
    font-size: 1.35rem;
}

.seo-cta p[b-xjy2h0w7zv] {
    margin: .55rem 0 1rem;
    color: #52616f;
}

@media (max-width: 720px) {
    .seo-content-inner[b-xjy2h0w7zv] {
        padding: 2rem 0;
    }
}
/* _content/LinguaNote/Components/Pages/GrowthInsights.razor.rz.scp.css */
.growth-page[b-8dzu5mkm2z] {
    max-width: 1120px;
}

.growth-header[b-8dzu5mkm2z] {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.growth-kicker[b-8dzu5mkm2z] {
    margin: 0 0 .25rem;
    color: #52616f;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.growth-header h1[b-8dzu5mkm2z],
.growth-panel h2[b-8dzu5mkm2z] {
    margin: 0;
    color: #1d2733;
}

.growth-header h1[b-8dzu5mkm2z] {
    font-size: clamp(1.75rem, 3vw, 2.45rem);
    font-weight: 800;
}

.growth-muted[b-8dzu5mkm2z] {
    color: #687687;
}

.growth-window[b-8dzu5mkm2z] {
    min-width: 172px;
    padding: .8rem 1rem;
    border: 1px solid #d8dee7;
    border-radius: 8px;
    background: #f8fafc;
    text-align: right;
}

.growth-window span[b-8dzu5mkm2z],
.growth-window strong[b-8dzu5mkm2z] {
    display: block;
}

.growth-window span[b-8dzu5mkm2z] {
    color: #687687;
    font-size: .82rem;
}

.growth-window strong[b-8dzu5mkm2z] {
    color: #1d2733;
}

.growth-grid[b-8dzu5mkm2z] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.growth-card[b-8dzu5mkm2z],
.growth-panel[b-8dzu5mkm2z] {
    border: 1px solid #d8dee7;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(20, 33, 48, .06);
}

.growth-card[b-8dzu5mkm2z] {
    padding: 1rem;
}

.growth-card span[b-8dzu5mkm2z],
.growth-card small[b-8dzu5mkm2z] {
    display: block;
    color: #687687;
}

.growth-card strong[b-8dzu5mkm2z] {
    display: block;
    margin: .35rem 0;
    color: #111827;
    font-size: 2rem;
    line-height: 1;
}

.growth-panel[b-8dzu5mkm2z] {
    padding: 1rem;
}

.growth-two-column[b-8dzu5mkm2z] {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: 1rem;
}

.growth-panel-heading[b-8dzu5mkm2z] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.growth-panel-heading h2[b-8dzu5mkm2z] {
    font-size: 1.1rem;
    font-weight: 800;
}

.growth-panel-heading span[b-8dzu5mkm2z] {
    color: #687687;
    font-size: .84rem;
}

.growth-filter-row[b-8dzu5mkm2z] {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-bottom: .85rem;
}

.growth-filter-row-metrics[b-8dzu5mkm2z] {
    margin-bottom: 1rem;
}

.growth-chip[b-8dzu5mkm2z] {
    border: 1px solid #d8dee7;
    border-radius: 999px;
    background: #f8fafc;
    color: #405060;
    padding: .55rem .95rem;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1;
    transition: all .16s ease;
}

.growth-chip.is-active[b-8dzu5mkm2z] {
    border-color: #7c3aed;
    background: #7c3aed;
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(124, 58, 237, .18);
}

.metric-chip.is-active[b-8dzu5mkm2z] {
    border-color: #2563eb;
    background: #2563eb;
    box-shadow: 0 8px 16px rgba(37, 99, 235, .18);
}

.trend-summary[b-8dzu5mkm2z] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
    margin-bottom: 1rem;
}

.trend-summary div[b-8dzu5mkm2z] {
    padding: .85rem 1rem;
    border-radius: 10px;
    background: linear-gradient(180deg, #f8fbff 0%, #f3f7fb 100%);
    border: 1px solid #e2e8f0;
}

.trend-summary span[b-8dzu5mkm2z] {
    display: block;
    color: #687687;
    font-size: .82rem;
}

.trend-summary strong[b-8dzu5mkm2z] {
    display: block;
    margin-top: .25rem;
    color: #111827;
    font-size: 1.55rem;
    line-height: 1.1;
}

.trend-chart[b-8dzu5mkm2z] {
    overflow-x: auto;
    padding-bottom: .25rem;
}

.trend-bars[b-8dzu5mkm2z] {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(36px, 1fr);
    align-items: end;
    gap: .65rem;
    min-height: 260px;
}

.trend-bar-column[b-8dzu5mkm2z] {
    display: grid;
    gap: .45rem;
    justify-items: center;
}

.trend-bar-value[b-8dzu5mkm2z] {
    color: #405060;
    font-size: .78rem;
    font-weight: 700;
}

.trend-bar-track[b-8dzu5mkm2z] {
    display: flex;
    align-items: end;
    justify-content: center;
    width: 100%;
    min-height: 180px;
    padding: 0 .2rem;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%);
}

.trend-bar-fill[b-8dzu5mkm2z] {
    width: 100%;
    min-height: 8%;
    border-radius: 10px 10px 6px 6px;
    background: linear-gradient(180deg, #a78bfa 0%, #6d28d9 100%);
}

.trend-bar-label[b-8dzu5mkm2z] {
    color: #687687;
    font-size: .75rem;
    white-space: nowrap;
}

.funnel-list[b-8dzu5mkm2z],
.signal-list[b-8dzu5mkm2z],
.event-table[b-8dzu5mkm2z] {
    display: grid;
    gap: .6rem;
}

.funnel-row[b-8dzu5mkm2z],
.signal-list div[b-8dzu5mkm2z],
.event-row[b-8dzu5mkm2z] {
    display: grid;
    align-items: center;
    gap: .75rem;
    padding: .75rem;
    border-radius: 8px;
    background: #f8fafc;
}

.funnel-row[b-8dzu5mkm2z] {
    grid-template-columns: minmax(0, 1fr) auto;
}

.funnel-row strong[b-8dzu5mkm2z],
.funnel-row small[b-8dzu5mkm2z] {
    display: block;
}

.funnel-row small[b-8dzu5mkm2z] {
    color: #687687;
}

.funnel-row > span[b-8dzu5mkm2z],
.signal-list strong[b-8dzu5mkm2z] {
    color: #7c3aed;
    font-size: 1.25rem;
    font-weight: 800;
}

.signal-list div[b-8dzu5mkm2z] {
    grid-template-columns: minmax(0, 1fr) auto;
}

.signal-list span[b-8dzu5mkm2z] {
    color: #405060;
}

.growth-action-panel[b-8dzu5mkm2z] {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.growth-action-summary[b-8dzu5mkm2z] {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, minmax(0, .8fr));
    gap: .85rem;
    margin-bottom: 1rem;
}

.growth-action-summary div[b-8dzu5mkm2z],
.growth-action-card[b-8dzu5mkm2z] {
    border: 1px solid #d8dee7;
    border-radius: 8px;
    background: #ffffff;
}

.growth-action-summary div[b-8dzu5mkm2z] {
    padding: .85rem 1rem;
}

.growth-action-summary span[b-8dzu5mkm2z],
.growth-action-card small[b-8dzu5mkm2z] {
    display: block;
    color: #687687;
    font-size: .82rem;
}

.growth-action-summary strong[b-8dzu5mkm2z] {
    display: block;
    margin-top: .25rem;
    color: #111827;
    font-size: 1.25rem;
    line-height: 1.2;
}

.growth-action-list[b-8dzu5mkm2z] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.growth-action-card[b-8dzu5mkm2z] {
    display: grid;
    gap: .55rem;
    padding: 1rem;
    border-left: 4px solid #60a5fa;
}

.growth-action-card.is-danger[b-8dzu5mkm2z] {
    border-left-color: #ef4444;
}

.growth-action-card.is-warning[b-8dzu5mkm2z] {
    border-left-color: #f59e0b;
}

.growth-action-card.is-success[b-8dzu5mkm2z] {
    border-left-color: #4f46e5;
}

.growth-action-card-head[b-8dzu5mkm2z] {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.growth-action-card-head span[b-8dzu5mkm2z] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.3rem;
    height: 1.6rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: .75rem;
    font-weight: 800;
}

.growth-action-card-head strong[b-8dzu5mkm2z] {
    color: #111827;
    font-size: 1rem;
}

.growth-action-card p[b-8dzu5mkm2z] {
    margin: 0;
    color: #405060;
    line-height: 1.6;
}

.x-growth-grid[b-8dzu5mkm2z] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
}

.x-growth-grid div[b-8dzu5mkm2z],
.x-growth-type-list div[b-8dzu5mkm2z] {
    padding: .85rem;
    border-radius: 8px;
    background: #f8fafc;
}

.x-growth-grid span[b-8dzu5mkm2z],
.x-growth-type-list span[b-8dzu5mkm2z] {
    display: block;
    color: #687687;
    font-size: .82rem;
}

.x-growth-grid strong[b-8dzu5mkm2z],
.x-growth-type-list strong[b-8dzu5mkm2z] {
    display: block;
    margin-top: .25rem;
    color: #111827;
    font-size: 1.45rem;
    line-height: 1.1;
}

.x-growth-type-list[b-8dzu5mkm2z] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .6rem;
}

.event-row[b-8dzu5mkm2z] {
    grid-template-columns: 1.2fr 1fr .8fr .8fr;
    font-size: .92rem;
}

.event-row-head[b-8dzu5mkm2z] {
    color: #52616f;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .growth-header[b-8dzu5mkm2z],
    .growth-panel-heading[b-8dzu5mkm2z] {
        align-items: flex-start;
        flex-direction: column;
    }

    .growth-window[b-8dzu5mkm2z] {
        width: 100%;
        text-align: left;
    }

    .growth-grid[b-8dzu5mkm2z],
    .growth-two-column[b-8dzu5mkm2z],
    .trend-summary[b-8dzu5mkm2z],
    .growth-action-summary[b-8dzu5mkm2z],
    .growth-action-list[b-8dzu5mkm2z],
    .x-growth-grid[b-8dzu5mkm2z],
    .x-growth-type-list[b-8dzu5mkm2z] {
        grid-template-columns: 1fr;
    }

    .trend-bars[b-8dzu5mkm2z] {
        min-width: max-content;
    }

    .event-row[b-8dzu5mkm2z] {
        grid-template-columns: 1fr;
    }
}
/* _content/LinguaNote/Components/Pages/Home.razor.rz.scp.css */
/* ============================================================
   lexion — landing page (night study × journal)
   ヒーロー: 夜の書斎（チャコール×真鍮）
   以降: 雑誌のようなアイボリーの誌面（p.01〜の章立て）
   ============================================================ */

.lexion-landing[b-zog04jzggj] {
    --ln-night: #1F2422;
    --ln-night-soft: #262C29;
    --ln-night-line: rgba(246, 242, 233, 0.14);
    --ln-ivory: #F6F2E9;
    --ln-paper: #FFFDF8;
    --ln-ink: #2B2620;
    --ln-ink-soft: #4A443B;
    --ln-muted: #6E6557;
    --ln-faint: #A39A8A;
    --ln-brass: #B8A27A;
    --ln-brass-deep: #8C7349;
    --ln-sage: #7A8B6B;
    --ln-sage-deep: #5C6B50;
    --ln-line: #D8D0BD;
    --ln-red-ink: #A4513F;
    --ln-night-fg: #F1ECDF;
    --ln-night-muted: #A8A399;
    --ln-serif: Georgia, "Hiragino Mincho ProN", "Yu Mincho", serif;
    --ln-sans: "Inter", "Noto Sans JP", "Segoe UI", sans-serif;

    min-height: 100vh;
    background: var(--ln-night);
    color: var(--ln-ink);
    font-family: var(--ln-sans);
    overflow-x: clip;
}

/* ── Reveal (JSが .ln-motion を付けたときだけ動く) ───── */
.ln-motion .ln-reveal[b-zog04jzggj] {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 0.5s ease var(--ln-delay, 0ms),
        transform 0.5s ease var(--ln-delay, 0ms);
}

.ln-motion .ln-reveal.is-in[b-zog04jzggj] {
    opacity: 1;
    transform: none;
}

/* セクション到達時、章罫線が左から引かれる */
.ln-chapter-head[b-zog04jzggj] {
    position: relative;
}

.ln-motion .ln-reveal .ln-chapter-head[b-zog04jzggj] {
    border-bottom-color: transparent;
}

.ln-motion .ln-reveal .ln-chapter-head[b-zog04jzggj]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: var(--ln-ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.7s ease 0.2s;
}

.ln-motion .ln-reveal .ln-chapter-head--dark[b-zog04jzggj]::after {
    background: rgba(246, 242, 233, 0.28);
}

.ln-motion .ln-reveal.is-in .ln-chapter-head[b-zog04jzggj]::after {
    transform: scaleX(1);
}

/* 図版はページをめくるようにワイプで現れる（負のinsetは影まで含めるため） */
.ln-motion .ln-reveal .ln-chapter-visual img[b-zog04jzggj],
.ln-motion .ln-reveal .ln-archive-grid img[b-zog04jzggj] {
    clip-path: inset(-60px 100% -60px -60px);
    transition: clip-path 0.85s cubic-bezier(0.25, 0.7, 0.3, 1) 0.25s;
}

.ln-motion .ln-reveal.is-in .ln-chapter-visual img[b-zog04jzggj],
.ln-motion .ln-reveal.is-in .ln-archive-grid img[b-zog04jzggj] {
    clip-path: inset(-60px -60px -60px -60px);
}

/* fig.キャプションは図版が現れた少しあとに */
.ln-motion .ln-reveal figcaption[b-zog04jzggj] {
    opacity: 0;
    transition: opacity 0.5s ease 0.85s;
}

.ln-motion .ln-reveal.is-in figcaption[b-zog04jzggj] {
    opacity: 1;
}

/* ── Nav ─────────────────────────────────────────────── */
.ln-nav[b-zog04jzggj] {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem clamp(1.1rem, 5vw, 4rem);
    background: rgba(246, 242, 233, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(44, 42, 37, 0.08);
}

.ln-brand[b-zog04jzggj] {
    font-family: var(--ln-serif);
    font-size: 1.45rem;
    letter-spacing: 0.03em;
    color: var(--ln-ink);
    text-decoration: none;
}

.ln-nav-links[b-zog04jzggj] {
    display: flex;
    align-items: center;
    gap: clamp(0.9rem, 2vw, 1.8rem);
    font-size: 0.88rem;
}

.ln-nav-links a[b-zog04jzggj] {
    color: var(--ln-ink-soft);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.15s ease;
}

.ln-nav-links a:hover[b-zog04jzggj] {
    color: var(--ln-ink);
}

.ln-nav-login[b-zog04jzggj] {
    color: var(--ln-ink-soft) !important;
}

.ln-nav-cta[b-zog04jzggj] {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 999px;
    background: var(--ln-brass-deep) !important;
    color: #fff !important;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: background 0.18s ease, transform 0.18s ease;
}

.ln-nav-cta:hover[b-zog04jzggj] {
    background: #7A6040 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* ── Buttons ─────────────────────────────────────────── */
.ln-btn[b-zog04jzggj] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.9rem;
    padding: 0.78rem 1.65rem;
    border: 1px solid transparent;
    border-radius: 2px;
    font-family: var(--ln-sans);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.ln-btn-brass[b-zog04jzggj] {
    background: var(--ln-brass);
    border-color: var(--ln-brass);
    color: var(--ln-night) !important;
}

.ln-btn-brass:hover[b-zog04jzggj] {
    background: #C7B289;
    border-color: #C7B289;
    transform: translateY(-1px);
}

.ln-btn-ghost[b-zog04jzggj] {
    background: transparent;
    border-color: rgba(44, 42, 37, 0.28);
    color: var(--ln-ink) !important;
}

.ln-btn-ghost:hover[b-zog04jzggj] {
    border-color: var(--ln-ink);
    background: rgba(44, 42, 37, 0.04);
    color: var(--ln-ink) !important;
}

.ln-btn-night[b-zog04jzggj] {
    background: var(--ln-night);
    border-color: var(--ln-night);
    color: var(--ln-ivory) !important;
}

.ln-btn-night:hover:not(:disabled)[b-zog04jzggj] {
    background: #333B36;
    border-color: #333B36;
}

.ln-btn-night:disabled[b-zog04jzggj] {
    opacity: 0.45;
    cursor: not-allowed;
}

.ln-btn-line[b-zog04jzggj] {
    background: transparent;
    border-color: #C9C0AD;
    color: var(--ln-ink) !important;
}

.ln-btn-line:hover[b-zog04jzggj] {
    background: #EFE9DC;
    border-color: var(--ln-faint);
}

.ln-btn-text[b-zog04jzggj] {
    background: transparent;
    border: none;
    padding-inline: 0.2rem;
    color: var(--ln-sage-deep) !important;
}

.ln-btn-text:hover[b-zog04jzggj] {
    color: var(--ln-ink) !important;
    text-decoration: underline;
    text-underline-offset: 0.35em;
}

.ln-btn-full[b-zog04jzggj] {
    width: 100%;
}

/* ── Kicker ──────────────────────────────────────────── */
.ln-kicker[b-zog04jzggj] {
    margin: 0 0 1rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ln-brass);
}

.ln-kicker--day[b-zog04jzggj] {
    color: var(--ln-sage-deep);
}

/* ── Hero（昼の書斎 — フルブリード背景写真） ─────────── */
.ln-hero[b-zog04jzggj] {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(560px, 82vh, 820px);
    padding: clamp(4rem, 9vw, 7rem) clamp(1.1rem, 5vw, 4rem);
    /* 背景写真は mood-hero.jpg を後から配置（未配置でも ivory で破綻しない） */
    background-color: var(--ln-ivory);
    background-image: url('/images/landing/mood-hero.jpg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* 左テキストの可読性を確保する明色スクリム（左→右でフェード、右の机は活かす） */
.ln-hero[b-zog04jzggj]::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(240, 236, 228, 0.95) 0%,
        rgba(240, 236, 228, 0.82) 28%,
        rgba(240, 236, 228, 0.40) 50%,
        rgba(240, 236, 228, 0.05) 70%,
        transparent 85%
    );
    pointer-events: none;
}

.ln-hero[b-zog04jzggj]::after  { display: none; }

.ln-hero > *[b-zog04jzggj] {
    position: relative;
    z-index: 1;
}

/* 入場アニメーション（ライトテーマ版） */
@media (prefers-reduced-motion: no-preference) {
    .ln-lit .ln-hero-copy > *[b-zog04jzggj] {
        animation: lnInkIn-b-zog04jzggj 0.7s ease both;
    }

    .ln-lit .ln-hero-copy .ln-kicker[b-zog04jzggj] { animation-delay: 0.15s; }
    .ln-lit .ln-hero-copy .ln-title[b-zog04jzggj]  { animation-delay: 0.28s; }
    .ln-lit .ln-hero-copy .ln-lead[b-zog04jzggj]   { animation-delay: 0.4s; }
    .ln-lit .ln-hero-copy .ln-hero-values[b-zog04jzggj] { animation-delay: 0.5s; }
    .ln-lit .ln-hero-copy .ln-actions[b-zog04jzggj] { animation-delay: 0.6s; }
    .ln-lit .ln-hero-copy .ln-hero-note[b-zog04jzggj] { animation-delay: 0.7s; }
}

.ln-lit-instant .ln-hero-copy > *[b-zog04jzggj] {
    animation: none !important;
}

@keyframes lnInkIn-b-zog04jzggj {
    from { opacity: 0; filter: blur(4px); transform: translateY(8px); }
    to   { opacity: 1; filter: blur(0);  transform: translateY(0); }
}

.ln-hero-inner[b-zog04jzggj] {
    display: block;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.ln-hero-copy[b-zog04jzggj] {
    max-width: 33em;
}

.ln-title[b-zog04jzggj] {
    margin: 0;
    font-family: var(--ln-serif);
    font-weight: 400;
    font-size: clamp(2.1rem, 4.6vw, 3.55rem);
    line-height: 1.34;
    letter-spacing: 0.02em;
    color: var(--ln-ink);
    word-break: keep-all;
    overflow-wrap: normal;
}

.ln-lead[b-zog04jzggj] {
    margin: 1.5rem 0 0;
    max-width: 30em;
    color: var(--ln-ink-soft);
    font-size: 1rem;
    line-height: 2.05;
}

.ln-hero-values[b-zog04jzggj] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 1.35rem 0 0;
    padding: 0;
    list-style: none;
}

.ln-hero-values li[b-zog04jzggj] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ln-ink-soft);
    font-size: 0.9rem;
}

.ln-hero-values li[b-zog04jzggj]::before {
    content: "•";
    color: var(--ln-brass-deep);
    font-weight: 700;
}

.ln-actions[b-zog04jzggj] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.7rem;
}

.ln-hero-note[b-zog04jzggj] {
    margin: 0.95rem 0 0;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: #8A857A;
}

/* ── Desknote（編集者ノート紙片＋タイプライター） ────── */
.ln-desknote[b-zog04jzggj] {
    position: relative;
    justify-self: end;
    width: min(460px, 100%);
    padding: 1.55rem 1.7rem 1.35rem;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(184, 162, 122, 0.22) 32px),
        #FBF8F0;
    border-radius: 3px;
    box-shadow: 0 26px 64px rgba(0, 0, 0, 0.38);
    /* --ln-mx/--ln-my はマウス微パララックス（JSが更新、既定0） */
    transform: rotate(-0.6deg) translate3d(calc(var(--ln-mx, 0) * 7px), calc(var(--ln-my, 0) * 5px), 0);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.4, 1);
}

.ln-desknote[b-zog04jzggj]::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 22px solid var(--ln-brass);
    border-left: 22px solid transparent;
}

.ln-desknote-label[b-zog04jzggj] {
    display: block;
    margin-bottom: 0.9rem;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ln-brass-deep);
}

.ln-typeline[b-zog04jzggj] {
    margin: 0;
    min-height: 4.2em;
    font-family: var(--ln-serif);
    font-size: 1.22rem;
    line-height: 1.65;
    color: var(--ln-ink);
}

.ln-typetarget[b-zog04jzggj] {
    transition: opacity 0.4s ease;
}

.ln-typetarget.is-fade[b-zog04jzggj] {
    opacity: 0;
}

/* JSが差し込むspanはスコープ属性を持たないため ::deep で指定 */
.ln-typeline[b-zog04jzggj]  .ln-strike {
    position: relative;
    text-decoration: none;
    color: #8E8678;
}

.ln-typeline[b-zog04jzggj]  .ln-strike::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 56%;
    height: 2px;
    background: var(--ln-red-ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.ln-typeline[b-zog04jzggj]  .ln-strike.is-done::after {
    transform: scaleX(1);
}

.ln-typeline[b-zog04jzggj]  .ln-fix {
    margin-left: 0.4em;
    font-style: normal;
    font-weight: 600;
    color: #7C6840;
    border-bottom: 1px solid rgba(140, 115, 73, 0.55);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.ln-typeline[b-zog04jzggj]  .ln-fix.is-in {
    opacity: 1;
    transform: none;
}

.ln-caret[b-zog04jzggj] {
    display: inline-block;
    width: 1px;
    height: 1.05em;
    margin-left: 3px;
    vertical-align: -0.15em;
    background: var(--ln-ink);
}

.ln-desknote-foot[b-zog04jzggj] {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.05rem;
    font-size: 0.76rem;
    color: var(--ln-muted);
}

.ln-stamp[b-zog04jzggj] {
    padding: 0.16rem 0.5rem;
    border: 1px solid var(--ln-red-ink);
    border-radius: 2px;
    color: var(--ln-red-ink);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transform: rotate(-4deg);
}

/* ── Specimens（標本チップ） ─────────────────────────── */
.ln-specimens[b-zog04jzggj] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    width: min(1180px, 100%);
    margin: 3rem auto 0;
    /* 紙片と逆方向にわずかに動き、奥行きを出す */
    transform: translate3d(calc(var(--ln-mx, 0) * -4px), calc(var(--ln-my, 0) * -3px), 0);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.4, 1);
}

.ln-specimen[b-zog04jzggj] {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.6rem;
    row-gap: 1px;
    align-items: baseline;
    padding: 0.5rem 0.95rem;
    border: 1px solid var(--ln-night-line);
    border-radius: 2px;
    text-align: left;
}

.ln-specimen i[b-zog04jzggj] {
    grid-row: 1;
    font-style: normal;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    color: var(--ln-brass);
}

.ln-specimen-word[b-zog04jzggj] {
    font-family: var(--ln-serif);
    font-size: 0.92rem;
    letter-spacing: 0.03em;
    color: #E0DACB;
}

.ln-specimen-jp[b-zog04jzggj] {
    grid-column: 2;
    font-size: 0.68rem;
    letter-spacing: 0.02em;
    color: #8F897C;
}

/* 夜明け進行（--ln-dawn）に合わせ、朝の光を受けた標本チップは墨色へ。
   color-mix非対応ブラウザは上の静的色のまま（夜の配色で可読性は保たれる） */
@supports (color: color-mix(in srgb, red 50%, blue)) {
    .ln-specimen[b-zog04jzggj] {
        border-color: color-mix(in srgb, rgba(246, 242, 233, 0.14) calc((1 - var(--ln-dawn, 0)) * 100%), rgba(43, 38, 32, 0.35));
    }

    .ln-specimen i[b-zog04jzggj] {
        color: color-mix(in srgb, var(--ln-brass) calc((1 - var(--ln-dawn, 0)) * 100%), #7C6840);
    }

    .ln-specimen-word[b-zog04jzggj] {
        color: color-mix(in srgb, #E0DACB calc((1 - var(--ln-dawn, 0)) * 100%), #3E382F);
    }

    .ln-specimen-jp[b-zog04jzggj] {
        color: color-mix(in srgb, #8F897C calc((1 - var(--ln-dawn, 0)) * 100%), #5C544A);
    }
}

/* ── Shelf（木の棚板＋背表紙 = 夜と昼の境界線） ──────── */
.ln-shelf[b-zog04jzggj] {
    margin-top: 3.2rem;
    padding: 0 1rem;
}

.ln-shelf-row[b-zog04jzggj] {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
}

.ln-spine[b-zog04jzggj] {
    position: relative;
    display: block;
    border-radius: 2px 2px 0 0;
    box-shadow:
        inset -3px 0 4px rgba(0, 0, 0, 0.35),
        inset 1px 0 0 rgba(246, 242, 233, 0.10);
}

/* 背表紙の箔押しライン */
.ln-spine[b-zog04jzggj]::before,
.ln-spine[b-zog04jzggj]::after {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    background: rgba(246, 242, 233, 0.22);
    border-radius: 1px;
}

.ln-spine[b-zog04jzggj]::before { top: 5px; height: 2px; }
.ln-spine[b-zog04jzggj]::after { bottom: 6px; height: 1px; }

.ln-spine--lean[b-zog04jzggj] {
    transform: rotate(7deg);
    transform-origin: bottom right;
    margin-left: 2px;
    margin-right: 6px;
}

.ln-pile[b-zog04jzggj] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin: 0 5px;
}

.ln-pile span[b-zog04jzggj] {
    display: block;
    height: 7px;
    border-radius: 1px;
    box-shadow:
        inset 0 -3px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(246, 242, 233, 0.12);
}

.ln-shelf-board[b-zog04jzggj] {
    width: min(460px, calc(100% - 1rem));
    height: 9px;
    margin: 0 auto;
    background: linear-gradient(180deg, #8A6B4A 0%, #5E4730 55%, #3F2F1F 100%);
    border-radius: 2px;
    box-shadow:
        inset 0 1px 0 rgba(246, 242, 233, 0.20),
        0 10px 20px rgba(0, 0, 0, 0.5);
}

/* ── Motion（reduced-motion時は全停止） ──────────────── */
@media (prefers-reduced-motion: no-preference) {
    .ln-caret[b-zog04jzggj] {
        animation: lnBlink-b-zog04jzggj 1.05s steps(1) infinite;
    }

    .ln-specimen[b-zog04jzggj] {
        animation: lnFloat-b-zog04jzggj 5.5s ease-in-out infinite alternate;
    }

    .ln-specimen:nth-child(2)[b-zog04jzggj] { animation-delay: 0.9s; }
    .ln-specimen:nth-child(3)[b-zog04jzggj] { animation-delay: 1.7s; }
    .ln-specimen:nth-child(4)[b-zog04jzggj] { animation-delay: 2.6s; }
}

@keyframes lnBlink-b-zog04jzggj {
    50% { opacity: 0; }
}

@keyframes lnFloat-b-zog04jzggj {
    to { transform: translateY(-5px); }
}

/* ── Day（雑誌の誌面） ───────────────────────────────── */
.ln-day[b-zog04jzggj] {
    background:
        repeating-linear-gradient(117deg, rgba(82, 59, 39, 0.014) 0 1px, transparent 1px 6px),
        var(--ln-ivory);
}

.ln-day > section[b-zog04jzggj] {
    content-visibility: auto;
    contain-intrinsic-size: auto 720px;
}

.ln-contents[b-zog04jzggj] {
    width: min(1080px, 100%);
    margin: 0 auto;
    padding: clamp(3.5rem, 7vw, 5.5rem) 1.25rem 1rem;
}

.ln-contents-lede[b-zog04jzggj] {
    margin: 0 0 3rem;
    text-align: center;
    font-family: var(--ln-serif);
    font-size: clamp(1.25rem, 2.6vw, 1.7rem);
    letter-spacing: 0.04em;
    color: var(--ln-ink);
}

.ln-contents-grid[b-zog04jzggj] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ln-contents-grid li[b-zog04jzggj] {
    display: grid;
    gap: 0.3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ln-ink);
}

.ln-pno[b-zog04jzggj] {
    font-family: var(--ln-serif);
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ln-brass-deep);
}

.ln-contents-grid strong[b-zog04jzggj] {
    font-family: var(--ln-serif);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--ln-ink);
}

.ln-contents-grid em[b-zog04jzggj] {
    font-style: normal;
    font-size: 0.86rem;
    color: var(--ln-ink-soft);
}

.ln-contents-grid p[b-zog04jzggj] {
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
    line-height: 1.75;
    color: var(--ln-muted);
}

/* ── Chapter（特集記事） ─────────────────────────────── */
.ln-chapter[b-zog04jzggj],
.ln-tool[b-zog04jzggj],
.ln-archive[b-zog04jzggj],
.ln-voices[b-zog04jzggj],
.ln-pricing[b-zog04jzggj],
.ln-faq[b-zog04jzggj] {
    scroll-margin-top: 84px;
}

.ln-chapter[b-zog04jzggj] {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: clamp(3.5rem, 7vw, 5.5rem) 1.25rem 0;
}

.ln-chapter-head[b-zog04jzggj] {
    display: flex;
    align-items: baseline;
    gap: 1.1rem;
    padding-bottom: 0.6rem;
    margin-bottom: clamp(1.8rem, 4vw, 2.6rem);
    border-bottom: 1px solid var(--ln-ink);
}

.ln-chapter-name[b-zog04jzggj] {
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ln-muted);
}

.ln-chapter-body[b-zog04jzggj] {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
}

.ln-chapter--reverse .ln-chapter-copy[b-zog04jzggj] {
    order: 2;
}

.ln-chapter-copy h2[b-zog04jzggj] {
    margin: 0 0 1.2rem;
    font-family: var(--ln-serif);
    font-weight: 400;
    font-size: clamp(1.65rem, 3vw, 2.3rem);
    line-height: 1.45;
    letter-spacing: 0.02em;
    color: var(--ln-ink);
    overflow-wrap: anywhere;
}

.ln-chapter-copy p[b-zog04jzggj] {
    margin: 0 0 1.2rem;
    font-size: 1rem;
    line-height: 2;
    color: var(--ln-muted);
}

.ln-chapter-visual[b-zog04jzggj] {
    margin: 0;
    min-width: 0;
}

.ln-chapter-visual img[b-zog04jzggj] {
    display: block;
    width: 100%;
    border: 1px solid var(--ln-line);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(43, 38, 32, 0.12);
}

.ln-chapter-visual figcaption[b-zog04jzggj],
.ln-archive-grid figcaption[b-zog04jzggj] {
    margin-top: 0.7rem;
    font-family: var(--ln-serif);
    font-style: italic;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    color: var(--ln-faint);
}

/* ── Inline tool（試筆室） ───────────────────────────── */
.ln-tool[b-zog04jzggj] {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 3.5rem);
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: clamp(3.5rem, 7vw, 5.5rem) 1.25rem 0;
}

.ln-tool-copy h2[b-zog04jzggj] {
    margin: 0 0 1.2rem;
    font-family: var(--ln-serif);
    font-weight: 400;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    line-height: 1.5;
    color: var(--ln-ink);
    overflow-wrap: anywhere;
}

.ln-tool-copy p:not(.ln-kicker)[b-zog04jzggj] {
    margin: 0;
    line-height: 2;
    color: var(--ln-muted);
}

.ln-tool-panel[b-zog04jzggj] {
    display: grid;
    gap: 0.9rem;
    padding: 1.5rem;
    background: var(--ln-paper);
    border: 1px solid var(--ln-line);
    border-top: 3px solid var(--ln-brass);
    border-radius: 3px;
    box-shadow: 0 18px 44px rgba(43, 38, 32, 0.08);
}

.ln-textarea[b-zog04jzggj] {
    width: 100%;
    min-height: 8rem;
    resize: vertical;
    padding: 0.95rem;
    border: 1px solid var(--ln-line);
    border-radius: 2px;
    background: var(--ln-paper);
    color: var(--ln-ink);
    font-family: var(--ln-serif);
    line-height: 1.8;
}

.ln-textarea:focus[b-zog04jzggj] {
    outline: none;
    border-color: var(--ln-sage);
    box-shadow: 0 0 0 3px rgba(122, 139, 107, 0.16);
}

.ln-tool-actions[b-zog04jzggj] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ln-tool-actions span[b-zog04jzggj] {
    font-size: 0.85rem;
    color: var(--ln-muted);
}

.ln-tool-message[b-zog04jzggj] {
    margin: 0;
    font-size: 0.85rem;
    color: var(--ln-red-ink);
}

.ln-progress[b-zog04jzggj] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ln-progress-step[b-zog04jzggj] {
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--ln-line);
    border-radius: 2px;
    font-size: 0.78rem;
    color: var(--ln-faint);
}

.ln-progress-step.is-active[b-zog04jzggj],
.ln-progress-step.is-done[b-zog04jzggj] {
    border-color: var(--ln-sage);
    background: #EDF0E6;
    color: var(--ln-sage-deep);
}

.ln-result[b-zog04jzggj] {
    display: grid;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--ln-line);
}

.ln-result > div > span[b-zog04jzggj] {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ln-brass-deep);
}

.ln-result p[b-zog04jzggj] {
    margin: 0.2rem 0 0;
    font-family: var(--ln-serif);
    line-height: 1.8;
    color: var(--ln-ink);
}

.ln-result-explanation[b-zog04jzggj] {
    font-family: var(--ln-sans) !important;
    font-size: 0.9rem;
    color: var(--ln-muted) !important;
}

.ln-vocab-list[b-zog04jzggj] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.55rem;
}

.ln-vocab-item[b-zog04jzggj] {
    position: relative;
    display: grid;
    gap: 0.15rem;
    padding: 0.7rem;
    border: 1px solid var(--ln-line);
    border-radius: 2px;
    background: var(--ln-ivory);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.lexion-landing[b-zog04jzggj],
.lexion-landing *[b-zog04jzggj],
.lexion-landing *[b-zog04jzggj]::before,
.lexion-landing *[b-zog04jzggj]::after {
    box-sizing: border-box;
}

/* 標本カードの真鍮の折り角 */
.ln-vocab-item[b-zog04jzggj]::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 13px solid var(--ln-brass);
    border-left: 13px solid transparent;
    opacity: 0.85;
}

/* 添削結果の出現: 語彙カードが1枚ずつ標本箱へ収まっていく */
@media (prefers-reduced-motion: no-preference) {
    .ln-result[b-zog04jzggj] {
        animation: lnInkIn-b-zog04jzggj 0.45s ease both;
    }

    .ln-vocab-item[b-zog04jzggj] {
        animation: lnCollect-b-zog04jzggj 0.55s cubic-bezier(0.2, 0.8, 0.3, 1) both;
    }

    .ln-vocab-item:nth-child(1)[b-zog04jzggj] { animation-delay: 0.25s; }
    .ln-vocab-item:nth-child(2)[b-zog04jzggj] { animation-delay: 0.4s; }
    .ln-vocab-item:nth-child(3)[b-zog04jzggj] { animation-delay: 0.55s; }
    .ln-vocab-item:nth-child(4)[b-zog04jzggj] { animation-delay: 0.7s; }

    .ln-result .ln-btn-full[b-zog04jzggj] {
        animation: lnInkIn-b-zog04jzggj 0.5s ease 0.95s both;
    }
}

@keyframes lnCollect-b-zog04jzggj {
    from {
        opacity: 0;
        transform: translateY(-14px) rotate(-2deg) scale(0.96);
    }

    60% {
        opacity: 1;
        transform: translateY(2px) rotate(0.4deg) scale(1.005);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.ln-vocab-item strong[b-zog04jzggj] {
    font-family: var(--ln-serif);
    color: var(--ln-ink);
}

.ln-vocab-item span[b-zog04jzggj] {
    font-size: 0.82rem;
    color: var(--ln-muted);
}

/* ── Archive（夜の挿話） ─────────────────────────────── */
.ln-archive[b-zog04jzggj] {
    width: min(1120px, calc(100% - 2.5rem));
    margin: clamp(3.5rem, 7vw, 5.5rem) auto 0;
    padding: clamp(2.5rem, 5vw, 4rem);
    background:
        radial-gradient(ellipse at 18% 0%, rgba(184, 162, 122, 0.12), transparent 46%),
        var(--ln-night);
    border-radius: 4px;
    color: var(--ln-night-fg);
}

.ln-chapter-head--dark[b-zog04jzggj] {
    border-bottom-color: rgba(246, 242, 233, 0.28);
}

.ln-chapter-head--dark .ln-pno[b-zog04jzggj] {
    color: var(--ln-brass);
}

.ln-chapter-head--dark .ln-chapter-name[b-zog04jzggj] {
    color: var(--ln-night-muted);
}

.ln-archive-copy[b-zog04jzggj] {
    max-width: 720px;
    margin-bottom: 2.4rem;
}

.ln-archive-copy h2[b-zog04jzggj] {
    margin: 0 0 1.1rem;
    font-family: var(--ln-serif);
    font-weight: 400;
    font-size: clamp(1.65rem, 3vw, 2.3rem);
    line-height: 1.45;
    color: var(--ln-night-fg);
    overflow-wrap: anywhere;
}

.ln-archive-copy p[b-zog04jzggj] {
    margin: 0;
    line-height: 2;
    color: var(--ln-night-muted);
}

.ln-archive-grid[b-zog04jzggj] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.ln-archive-grid figure[b-zog04jzggj] {
    margin: 0;
    min-width: 0;
}

.ln-archive-grid img[b-zog04jzggj] {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid rgba(246, 242, 233, 0.16);
    border-radius: 4px;
}

.ln-archive-grid figcaption[b-zog04jzggj] {
    color: rgba(246, 242, 233, 0.55);
}

/* ── Voices（読者の手紙） ────────────────────────────── */
.ln-voices[b-zog04jzggj] {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: clamp(3.5rem, 7vw, 5.5rem) 1.25rem 0;
}

.ln-voices-grid[b-zog04jzggj] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.ln-voice[b-zog04jzggj] {
    position: relative;
    margin: 0;
    padding: 1.6rem 1.6rem 1.4rem;
    background: var(--ln-paper);
    border: 1px solid var(--ln-line);
    border-radius: 3px;
}

.ln-voice-mark[b-zog04jzggj] {
    display: block;
    margin-bottom: 0.2rem;
    font-family: var(--ln-serif);
    font-size: 2.7rem;
    line-height: 1;
    color: #C9B68C;
}

.ln-voice p[b-zog04jzggj] {
    margin: 0 0 1.2rem;
    font-family: var(--ln-serif);
    font-size: 0.95rem;
    line-height: 2;
    color: var(--ln-ink-soft);
}

.ln-voice footer[b-zog04jzggj] {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ln-ink);
}

.ln-voice footer em[b-zog04jzggj] {
    margin-left: 0.6rem;
    font-style: normal;
    font-weight: 400;
    font-size: 0.78rem;
    color: var(--ln-faint);
}

/* ── Pricing（入館のご案内） ─────────────────────────── */
.ln-pricing[b-zog04jzggj] {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: clamp(3.5rem, 7vw, 5.5rem) 1.25rem 0;
}

.ln-pricing-title[b-zog04jzggj] {
    margin: 0 0 2.4rem;
    font-family: var(--ln-serif);
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    text-align: center;
    color: var(--ln-ink);
    overflow-wrap: anywhere;
}

.ln-pricing-grid[b-zog04jzggj] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.ln-price-card[b-zog04jzggj] {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.8rem 1.5rem;
    background: var(--ln-paper);
    border: 1px solid var(--ln-line);
    border-radius: 3px;
}

.ln-price-card--featured[b-zog04jzggj] {
    border-color: var(--ln-brass-deep);
    border-top: 3px solid var(--ln-brass);
    box-shadow: 0 18px 44px rgba(140, 115, 73, 0.16);
}

.ln-price-tag[b-zog04jzggj] {
    position: absolute;
    top: -0.75rem;
    right: 1.2rem;
    padding: 0.22rem 0.7rem;
    background: var(--ln-brass);
    border-radius: 2px;
    color: var(--ln-night);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.ln-price-card h3[b-zog04jzggj] {
    margin: 0 0 0.4rem;
    font-family: var(--ln-serif);
    font-weight: 500;
    font-size: 1.15rem;
    color: var(--ln-ink);
}

.ln-price-amount[b-zog04jzggj] {
    margin: 0 0 1.2rem;
    font-family: var(--ln-serif);
    font-size: 2rem;
    color: var(--ln-ink);
}

.ln-price-amount span[b-zog04jzggj] {
    font-size: 0.9rem;
    color: var(--ln-muted);
}

.ln-price-card ul[b-zog04jzggj] {
    flex: 1;
    display: grid;
    gap: 0.55rem;
    margin: 0 0 1.4rem;
    padding: 0;
    list-style: none;
}

.ln-price-card li[b-zog04jzggj] {
    position: relative;
    padding-left: 1.35rem;
    font-size: 0.88rem;
    color: var(--ln-ink);
}

.ln-price-card li[b-zog04jzggj]::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--ln-brass);
}

.ln-pricing-note[b-zog04jzggj] {
    margin: 1.6rem 0 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--ln-muted);
}

/* ── FAQ（利用案内） ─────────────────────────────────── */
.ln-faq[b-zog04jzggj] {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: clamp(3.5rem, 7vw, 5.5rem) 1.25rem 0;
}

.ln-faq-list details[b-zog04jzggj] {
    padding: 1.1rem 0.2rem;
    border-bottom: 1px solid var(--ln-line);
}

.ln-faq-list details:first-child[b-zog04jzggj] {
    border-top: 1px solid var(--ln-ink);
}

.ln-faq-list summary[b-zog04jzggj] {
    position: relative;
    padding-right: 1.7rem;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--ln-ink);
}

.ln-faq-list summary[b-zog04jzggj]::-webkit-details-marker {
    display: none;
}

.ln-faq-list summary[b-zog04jzggj]::after {
    content: "+";
    position: absolute;
    right: 0.2rem;
    top: -0.12rem;
    font-family: var(--ln-serif);
    font-size: 1.25rem;
    color: var(--ln-brass-deep);
}

.ln-faq-list details[open] summary[b-zog04jzggj]::after {
    content: "–";
}

.ln-faq-list details p[b-zog04jzggj] {
    margin: 0.85rem 0 0;
    font-size: 0.92rem;
    line-height: 1.9;
    color: var(--ln-muted);
}

/* ── Final（夜への回帰） ─────────────────────────────── */
.ln-final[b-zog04jzggj] {
    margin-top: clamp(3.5rem, 7vw, 5.5rem);
    padding: clamp(4rem, 8vw, 6rem) 1.5rem;
    background:
        radial-gradient(ellipse at 50% 115%, rgba(184, 162, 122, 0.16), transparent 56%),
        var(--ln-night);
    text-align: center;
}

.ln-final h2[b-zog04jzggj] {
    margin: 0 0 0.7rem;
    font-family: var(--ln-serif);
    font-weight: 400;
    font-size: clamp(1.9rem, 4.4vw, 2.9rem);
    letter-spacing: 0.02em;
    color: var(--ln-night-fg);
}

.ln-final > p:not(.ln-kicker)[b-zog04jzggj] {
    margin: 0 0 1.9rem;
    color: var(--ln-night-muted);
}

/* ── Footer ──────────────────────────────────────────── */
.ln-footer[b-zog04jzggj] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2.5rem clamp(1.5rem, 6vw, 5rem);
    background: #181C1A;
    color: #C7C2B6;
}

.ln-footer-logo[b-zog04jzggj] {
    font-family: var(--ln-serif);
    font-size: 1.25rem;
    color: #F6F1E8;
}

.ln-footer-brand p[b-zog04jzggj] {
    margin: 0.6rem 0 0;
    max-width: 340px;
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(199, 194, 182, 0.75);
}

.ln-footer-links[b-zog04jzggj] {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.88rem;
}

.ln-footer-links a[b-zog04jzggj] {
    color: rgba(199, 194, 182, 0.85);
    text-decoration: none;
}

.ln-footer-links a:hover[b-zog04jzggj] {
    color: #F6F1E8;
}

.ln-footer-social[b-zog04jzggj] {
    display: flex;
    gap: 0.9rem;
    margin-left: auto;
}

.ln-footer-social a[b-zog04jzggj] {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(199, 194, 182, 0.28);
    border-radius: 50%;
    color: rgba(246, 241, 232, 0.82);
    text-decoration: none;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 960px) {
    .ln-hero-inner[b-zog04jzggj] {
        grid-template-columns: 1fr;
        gap: 2.6rem;
    }

    .ln-desknote[b-zog04jzggj] {
        justify-self: start;
        transform: rotate(-0.3deg);
    }

    .ln-chapter-body[b-zog04jzggj],
    .ln-tool[b-zog04jzggj] {
        grid-template-columns: 1fr;
    }

    .ln-chapter--reverse .ln-chapter-copy[b-zog04jzggj] {
        order: 0;
    }

    .ln-contents-grid[b-zog04jzggj] {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.6rem;
    }

    .ln-voices-grid[b-zog04jzggj],
    .ln-pricing-grid[b-zog04jzggj],
    .ln-archive-grid[b-zog04jzggj] {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .ln-nav[b-zog04jzggj] {
        padding: 0.7rem 0.9rem;
        background: rgba(26, 30, 28, 0.97);
        backdrop-filter: none;
    }

    .ln-brand[b-zog04jzggj] {
        font-size: 1.2rem;
    }

    .ln-nav-links[b-zog04jzggj] {
        gap: 0.7rem;
    }

    .ln-nav-links a:not(.ln-nav-cta)[b-zog04jzggj] {
        display: none;
    }

    .ln-nav-cta[b-zog04jzggj] {
        padding: 0.45rem 0.85rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .ln-hero[b-zog04jzggj] {
        padding-top: 2.6rem;
    }

    .ln-title[b-zog04jzggj] {
        font-size: clamp(1.85rem, 8.6vw, 2.4rem);
    }

    .ln-lead[b-zog04jzggj] {
        font-size: 0.94rem;
    }

    .ln-hero-values[b-zog04jzggj] {
        display: grid;
        gap: 0.45rem;
    }

    .ln-hero-values li[b-zog04jzggj] {
        width: fit-content;
    }

    .ln-actions[b-zog04jzggj] {
        flex-direction: column;
        align-items: stretch;
    }

    .ln-actions .ln-btn[b-zog04jzggj] {
        width: 100%;
    }

    .ln-desknote[b-zog04jzggj] {
        padding: 1.2rem 1.25rem 1.1rem;
        transform: none;
    }

    .ln-typeline[b-zog04jzggj] {
        font-size: 1.05rem;
        min-height: 5em;
    }

    .ln-specimens[b-zog04jzggj] {
        gap: 0.45rem;
    }

    .ln-specimen[b-zog04jzggj] {
        padding: 0.4rem 0.7rem;
    }

    .ln-specimen-word[b-zog04jzggj] {
        font-size: 0.82rem;
    }

    .ln-specimen-jp[b-zog04jzggj] {
        font-size: 0.64rem;
    }

    .ln-shelf[b-zog04jzggj] {
        margin-top: 2.4rem;
    }

    .ln-shelf-row[b-zog04jzggj] {
        gap: 2px;
        transform: scale(0.88);
        transform-origin: bottom center;
    }

    .ln-shelf-board[b-zog04jzggj] {
        width: min(360px, calc(100% - 0.5rem));
    }

    .ln-hero[b-zog04jzggj]::before,
    .ln-hero[b-zog04jzggj]::after {
        will-change: auto;
    }

    .ln-lit .ln-hero-copy > *[b-zog04jzggj],
    .ln-lit .ln-desknote[b-zog04jzggj],
    .ln-lit .ln-specimens[b-zog04jzggj],
    .ln-lit .ln-shelf[b-zog04jzggj],
    .ln-specimen[b-zog04jzggj] {
        animation: none !important;
    }

    .ln-motion .ln-reveal[b-zog04jzggj],
    .ln-motion .ln-reveal .ln-chapter-visual img[b-zog04jzggj],
    .ln-motion .ln-reveal .ln-archive-grid img[b-zog04jzggj],
    .ln-motion .ln-reveal figcaption[b-zog04jzggj] {
        opacity: 1;
        transform: none;
        clip-path: none;
        transition: none;
    }

    .ln-contents-grid[b-zog04jzggj] {
        grid-template-columns: 1fr;
    }

    .ln-archive[b-zog04jzggj] {
        width: calc(100% - 1.5rem);
        padding: 1.8rem 1.2rem;
    }

    .ln-chapter-head[b-zog04jzggj] {
        gap: 0.8rem;
    }

    .ln-chapter-name[b-zog04jzggj] {
        letter-spacing: 0.14em;
    }
}

/* ============================================================
   Global-override shield（グローバルCSS対抗用）
   lexion-world.css に body.lx-world h1〜h5 / p / li { color: 墨 !important }
   と body.lx-world main { background !important } の全画面強制があり、
   ランディングの配色が上書きされてしまう。文字色はここで !important を付けて
   再宣言する（スコープ属性のぶん詳細度が上回るため確実に勝つ）。
   背景は .ln-day を <div> にすることで main セレクタ自体を回避している。
   ============================================================ */
.lexion-landing .ln-title[b-zog04jzggj] { color: var(--ln-night-fg) !important; }
.lexion-landing .ln-kicker[b-zog04jzggj] { color: var(--ln-brass) !important; }
.lexion-landing .ln-kicker--day[b-zog04jzggj] { color: var(--ln-sage-deep) !important; }
.lexion-landing .ln-lead[b-zog04jzggj] { color: var(--ln-night-muted) !important; }
.lexion-landing .ln-hero-values li[b-zog04jzggj] { color: var(--ln-night-muted) !important; }
.lexion-landing .ln-hero-note[b-zog04jzggj] { color: #8A857A !important; }
.lexion-landing .ln-typeline[b-zog04jzggj] { color: var(--ln-ink) !important; }
.lexion-landing .ln-contents-lede[b-zog04jzggj] { color: var(--ln-ink) !important; }
.lexion-landing .ln-contents-grid p[b-zog04jzggj] { color: var(--ln-muted) !important; }
.lexion-landing .ln-chapter-copy h2[b-zog04jzggj] { color: var(--ln-ink) !important; }
.lexion-landing .ln-chapter-copy p[b-zog04jzggj] { color: var(--ln-muted) !important; }
.lexion-landing .ln-tool-copy h2[b-zog04jzggj] { color: var(--ln-ink) !important; }
.lexion-landing .ln-tool-copy p:not(.ln-kicker)[b-zog04jzggj] { color: var(--ln-muted) !important; }
.lexion-landing .ln-tool-message[b-zog04jzggj] { color: var(--ln-red-ink) !important; }
.lexion-landing .ln-progress-step[b-zog04jzggj] { color: var(--ln-faint) !important; }
.lexion-landing .ln-progress-step.is-active[b-zog04jzggj],
.lexion-landing .ln-progress-step.is-done[b-zog04jzggj] { color: var(--ln-sage-deep) !important; }
.lexion-landing .ln-result p[b-zog04jzggj] { color: var(--ln-ink) !important; }
.lexion-landing .ln-archive-copy h2[b-zog04jzggj] { color: var(--ln-night-fg) !important; }
.lexion-landing .ln-archive-copy p[b-zog04jzggj] { color: var(--ln-night-muted) !important; }
.lexion-landing .ln-voice p[b-zog04jzggj] { color: var(--ln-ink-soft) !important; }
.lexion-landing .ln-pricing-title[b-zog04jzggj] { color: var(--ln-ink) !important; }
.lexion-landing .ln-price-card h3[b-zog04jzggj] { color: var(--ln-ink) !important; }
.lexion-landing .ln-price-amount[b-zog04jzggj] { color: var(--ln-ink) !important; }
.lexion-landing .ln-price-amount span[b-zog04jzggj] { color: var(--ln-muted) !important; }
.lexion-landing .ln-price-card li[b-zog04jzggj] { color: var(--ln-ink) !important; }
.lexion-landing .ln-pricing-note[b-zog04jzggj] { color: var(--ln-muted) !important; }
.lexion-landing .ln-faq-list details p[b-zog04jzggj] { color: var(--ln-muted) !important; }
.lexion-landing .ln-final h2[b-zog04jzggj] { color: var(--ln-night-fg) !important; }
.lexion-landing .ln-final > p:not(.ln-kicker)[b-zog04jzggj] { color: var(--ln-night-muted) !important; }
.lexion-landing .ln-footer-brand p[b-zog04jzggj] { color: rgba(199, 194, 182, 0.75) !important; }

/* ============================================================
   Authenticated home (dashboard shortcut)
   ============================================================ */
.home-dashboard-page[b-zog04jzggj] {
    max-width: 980px;
}

.home-mobile-focus[b-zog04jzggj] {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #ddd9d0;
    border-radius: 20px;
    background: #fdfcf9;
    box-shadow: 0 4px 20px rgba(44, 44, 44, 0.05);
}

.home-mobile-kicker[b-zog04jzggj] {
    color: #7a8d77;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-mobile-actions[b-zog04jzggj],
.home-latest-actions[b-zog04jzggj] {
    display: grid;
    gap: 0.65rem;
}

.home-mobile-actions .btn[b-zog04jzggj],
.home-latest-actions .btn[b-zog04jzggj] {
    width: 100%;
}

.home-latest-card[b-zog04jzggj],
.home-empty-card[b-zog04jzggj] {
    border: 1px solid #ddd9d0;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(44, 44, 44, 0.04);
}

.home-latest-preview[b-zog04jzggj] {
    color: #2c2c2c;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-latest-badge[b-zog04jzggj] {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(122, 141, 119, 0.12);
    color: #5c7059;
    font-size: 0.74rem;
    font-weight: 600;
}

.home-latest-badge.is-pending[b-zog04jzggj] {
    background: rgba(180, 155, 90, 0.12);
    color: #8c7030;
}

@media (max-width: 768px) {
    .home-mobile-focus[b-zog04jzggj] {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Natural minimal landing
   Warm cream, morning light, generous breathing room.
   ============================================================ */
.lexion-landing[b-zog04jzggj] {
    --ln-night: #ede9e1;
    --ln-night-soft: #e6e2da;
    --ln-night-line: rgba(54, 54, 46, 0.10);
    --ln-ivory: #f0ece4;
    --ln-paper: #f7f4ef;
    --ln-ink: #2c2a25;
    --ln-ink-soft: #46433c;
    --ln-muted: #756f64;
    --ln-faint: #a09990;
    --ln-brass: #7a8c6e;
    --ln-brass-deep: #5e7052;
    --ln-sage: #8fa082;
    --ln-sage-deep: #5e7052;
    --ln-line: #ddd9d0;
    --ln-red-ink: #a06a5e;
    --ln-night-fg: #2c2a25;
    --ln-night-muted: #756f64;
    background: var(--ln-ivory);
}

.ln-nav[b-zog04jzggj] {
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    padding: 1rem clamp(1.1rem, 5vw, 4rem);
    background: rgba(247, 246, 241, 0.9);
    border-bottom-color: rgba(54, 67, 52, 0.09);
    backdrop-filter: blur(18px);
}

.ln-brand[b-zog04jzggj] {
    color: var(--ln-ink);
    font-family: var(--ln-sans);
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: 0.12em;
}

.ln-nav-links a[b-zog04jzggj],
.ln-nav-login[b-zog04jzggj] {
    color: var(--ln-muted);
}

.ln-nav-links a:hover[b-zog04jzggj] {
    color: var(--ln-ink);
}

.ln-nav-cta[b-zog04jzggj] {
    padding: 0.58rem 1.1rem;
    border: 0;
    border-radius: 999px;
    background: var(--ln-ink);
    color: #fff !important;
}

.ln-nav-cta:hover[b-zog04jzggj] {
    background: var(--ln-sage-deep);
    color: #fff !important;
}

.ln-btn[b-zog04jzggj] {
    min-height: 3rem;
    border-radius: 999px;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.ln-btn-brass[b-zog04jzggj],
.ln-btn-night[b-zog04jzggj] {
    background: var(--ln-sage-deep);
    border-color: var(--ln-sage-deep);
    color: #fff !important;
}

.ln-btn-brass:hover[b-zog04jzggj],
.ln-btn-night:hover:not(:disabled)[b-zog04jzggj] {
    background: #4a5e45;
    border-color: #4a5e45;
}

.ln-btn-ghost[b-zog04jzggj],
.ln-btn-line[b-zog04jzggj] {
    background: transparent;
    border-color: #cbd1c8;
    color: var(--ln-ink) !important;
}

.ln-btn-ghost:hover[b-zog04jzggj],
.ln-btn-line:hover[b-zog04jzggj] {
    background: #eef0ea;
    border-color: #b9c2b6;
    color: var(--ln-ink) !important;
}

.ln-kicker[b-zog04jzggj],
.lexion-landing .ln-kicker[b-zog04jzggj] {
    margin-bottom: 1.1rem;
    color: var(--ln-sage-deep) !important;
    font-size: 0.67rem;
    letter-spacing: 0.22em;
}

.ln-hero[b-zog04jzggj] {
    width: 100%;
    max-width: 100vw;
    min-height: min(820px, calc(100vh - 70px));
    display: flex;
    align-items: center;
    padding: clamp(5rem, 10vw, 9rem) clamp(1.1rem, 5vw, 4rem);
    /* 背景写真は mood-hero.jpg を後から配置（未配置でも ivory で破綻しない） */
    background-color: var(--ln-ivory);
    background-image: url('/images/landing/mood-hero.jpg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

/* 左テキストの可読性を確保する明色スクリム（左→右でフェード、右の机は活かす） */
.ln-hero[b-zog04jzggj]::before {
    background: linear-gradient(
        100deg,
        rgba(240, 236, 228, 0.95) 0%,
        rgba(240, 236, 228, 0.82) 28%,
        rgba(240, 236, 228, 0.40) 50%,
        rgba(240, 236, 228, 0.05) 70%,
        transparent 85%
    );
    opacity: 1;
}

.ln-hero[b-zog04jzggj]::after {
    display: none;
}

.ln-hero-inner[b-zog04jzggj] {
    display: block;
    width: min(1120px, 100%);
}

.ln-hero-copy[b-zog04jzggj] {
    min-width: 0;
    max-width: 33em;
}

.ln-title[b-zog04jzggj],
.lexion-landing .ln-title[b-zog04jzggj] {
    max-width: 10em;
    color: var(--ln-ink) !important;
    font-family: var(--ln-sans);
    font-size: clamp(2.65rem, 6vw, 4.9rem);
    font-weight: 560;
    line-height: 1.18;
    letter-spacing: -0.055em;
}

.ln-lead[b-zog04jzggj],
.lexion-landing .ln-lead[b-zog04jzggj] {
    max-width: 34em;
    margin-top: 1.7rem;
    color: var(--ln-muted) !important;
    font-size: 0.98rem;
    line-height: 2;
}

.ln-hero-values[b-zog04jzggj] {
    gap: 0.4rem 1.25rem;
    margin-top: 1.35rem;
}

.ln-hero-values li[b-zog04jzggj],
.lexion-landing .ln-hero-values li[b-zog04jzggj] {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ln-muted) !important;
    font-size: 0.76rem;
}

.ln-hero-values li[b-zog04jzggj]::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ln-sage);
}

.ln-hero-note[b-zog04jzggj],
.lexion-landing .ln-hero-note[b-zog04jzggj] {
    color: var(--ln-faint) !important;
}

.ln-desknote[b-zog04jzggj] {
    min-width: 0;
    width: min(430px, 100%);
    padding: clamp(1.8rem, 4vw, 2.8rem);
    background: var(--ln-paper);
    border: 1px solid rgba(44, 42, 37, 0.08);
    border-radius: 28px;
    box-shadow: 0 32px 80px rgba(44, 42, 37, 0.08), 0 4px 16px rgba(44, 42, 37, 0.04);
    transform: none;
    overflow: hidden;
}

.ln-desknote[b-zog04jzggj]::after {
    top: auto;
    right: 1.6rem;
    bottom: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    border: 0;
    border-radius: 50%;
    background: rgba(130, 148, 123, 0.12);
}

.ln-desknote-label[b-zog04jzggj] {
    color: var(--ln-sage-deep);
}

.ln-typeline[b-zog04jzggj] {
    min-height: 5.6em;
    font-size: 1.28rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ln-desknote-foot[b-zog04jzggj] {
    flex-wrap: wrap;
}

.ln-stamp[b-zog04jzggj] {
    border: 0;
    border-radius: 999px;
    background: #edf0ea;
    color: var(--ln-sage-deep);
    transform: none;
}

.ln-day[b-zog04jzggj] {
    background: var(--ln-ivory);
}

.ln-day > section[b-zog04jzggj] {
    contain-intrinsic-size: auto 620px;
}

.ln-contents[b-zog04jzggj] {
    padding-top: clamp(4.5rem, 9vw, 7rem);
}

.ln-contents-lede[b-zog04jzggj] {
    margin-bottom: 3.6rem;
    font-family: var(--ln-sans);
    font-size: clamp(1.2rem, 2.6vw, 1.65rem);
    font-weight: 500;
    letter-spacing: -0.025em;
}

.ln-contents-grid[b-zog04jzggj] {
    gap: clamp(1.3rem, 3vw, 2.6rem);
}

.ln-contents-grid li[b-zog04jzggj] {
    padding-top: 1.2rem;
    border-top-color: #cfd5cd;
}

.ln-contents-grid strong[b-zog04jzggj] {
    font-family: var(--ln-sans);
    font-size: 1rem;
    font-weight: 600;
}

.ln-pno[b-zog04jzggj] {
    color: var(--ln-sage-deep);
}

.ln-chapter[b-zog04jzggj] {
    padding-top: clamp(5rem, 10vw, 8rem);
}

.ln-chapter-head[b-zog04jzggj] {
    border-bottom-color: var(--ln-line);
}

.ln-chapter-name[b-zog04jzggj] {
    color: var(--ln-faint);
}

.ln-chapter-body[b-zog04jzggj] {
    gap: clamp(2.5rem, 7vw, 6rem);
}

.ln-chapter-copy h2[b-zog04jzggj],
.ln-tool-copy h2[b-zog04jzggj],
.ln-archive-copy h2[b-zog04jzggj],
.ln-pricing-title[b-zog04jzggj],
.ln-final h2[b-zog04jzggj] {
    font-family: var(--ln-sans);
    font-weight: 540;
    letter-spacing: -0.035em;
}

.ln-chapter-copy p[b-zog04jzggj],
.ln-tool-copy p:not(.ln-kicker)[b-zog04jzggj],
.ln-archive-copy p[b-zog04jzggj] {
    line-height: 2.05;
}

.ln-chapter-visual img[b-zog04jzggj],
.ln-archive-grid img[b-zog04jzggj] {
    border: 1px solid rgba(83, 101, 78, 0.12);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(54, 67, 52, 0.09);
}

.ln-tool[b-zog04jzggj] {
    margin-top: clamp(5rem, 10vw, 8rem);
    padding: clamp(2rem, 5vw, 4.5rem);
    border: 1px solid rgba(44, 42, 37, 0.07);
    border-radius: 28px;
    background: #e8e4dc;
}

.ln-tool-panel[b-zog04jzggj] {
    border: 1px solid rgba(83, 101, 78, 0.14);
    border-top-width: 1px;
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(54, 67, 52, 0.08);
}

.ln-textarea[b-zog04jzggj] {
    border-radius: 12px;
}

.ln-progress-step[b-zog04jzggj],
.ln-vocab-item[b-zog04jzggj] {
    border-radius: 10px;
}

.ln-vocab-item[b-zog04jzggj]::after {
    display: none;
}

.ln-archive[b-zog04jzggj] {
    margin-top: clamp(5rem, 10vw, 8rem);
    background: #e3e0d8;
    border: 1px solid rgba(44, 42, 37, 0.07);
    border-radius: 28px;
    color: var(--ln-ink);
}

.ln-chapter-head--dark[b-zog04jzggj] {
    border-bottom-color: rgba(83, 101, 78, 0.18);
}

.ln-chapter-head--dark .ln-pno[b-zog04jzggj],
.ln-chapter-head--dark .ln-chapter-name[b-zog04jzggj],
.lexion-landing .ln-archive-copy h2[b-zog04jzggj],
.lexion-landing .ln-archive-copy p[b-zog04jzggj] {
    color: var(--ln-ink) !important;
}

.ln-archive-grid figcaption[b-zog04jzggj] {
    color: var(--ln-muted);
}

.ln-voice[b-zog04jzggj],
.ln-price-card[b-zog04jzggj] {
    border-color: rgba(83, 101, 78, 0.13);
    border-radius: 18px;
    background: rgba(252, 251, 247, 0.8);
}

.ln-voice-mark[b-zog04jzggj] {
    color: var(--ln-sage);
}

.ln-price-card--featured[b-zog04jzggj] {
    border-color: var(--ln-sage);
    border-top-width: 1px;
    box-shadow: 0 20px 48px rgba(54, 67, 52, 0.09);
}

.ln-price-tag[b-zog04jzggj] {
    background: var(--ln-sage-deep);
    border-radius: 999px;
    color: #fff;
}

.ln-faq-list details:first-child[b-zog04jzggj],
.ln-faq-list details[b-zog04jzggj] {
    border-color: var(--ln-line);
}

.ln-final[b-zog04jzggj] {
    width: min(1120px, calc(100% - 2.5rem));
    margin: clamp(5rem, 10vw, 8rem) auto 0;
    border-radius: 28px;
    background: #e0ddd5;
}

.lexion-landing .ln-final h2[b-zog04jzggj],
.lexion-landing .ln-final > p:not(.ln-kicker)[b-zog04jzggj] {
    color: var(--ln-ink) !important;
}

.ln-footer[b-zog04jzggj] {
    margin-top: clamp(4rem, 8vw, 7rem);
    background: #eae7df;
    color: var(--ln-muted);
    border-top: 1px solid rgba(44, 42, 37, 0.08);
}

.ln-footer-logo[b-zog04jzggj],
.ln-footer-links a[b-zog04jzggj],
.ln-footer-social a[b-zog04jzggj] {
    color: var(--ln-ink);
}

.lexion-landing .ln-footer-brand p[b-zog04jzggj] {
    color: var(--ln-muted) !important;
}

.ln-footer-social a[b-zog04jzggj] {
    border-color: var(--ln-line);
}

@media (max-width: 960px) {
    .ln-hero[b-zog04jzggj] {
        min-height: auto;
    }

    .ln-hero-inner[b-zog04jzggj] {
        grid-template-columns: 1fr;
    }

    .ln-desknote[b-zog04jzggj] {
        justify-self: stretch;
    }
}

@media (max-width: 620px) {
    /* モバイルは半透明+blur(18px) が後勝ちでヒーロー画像が透け、ロゴ周りだけ
       背景色が違って見える。不透明色に固定し backdrop-filter を明示的に無効化して
       バー全体を一様な色にする。 */
    .ln-nav[b-zog04jzggj] {
        background: #F7F6F1;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .ln-nav-links[b-zog04jzggj] {
        min-width: 0;
    }

    .ln-nav-cta[b-zog04jzggj] {
        padding-inline: 0.8rem;
    }

    .ln-hero[b-zog04jzggj] {
        padding-top: 4rem;
        padding-bottom: 4.5rem;
        background-position: center 30%;
    }

    /* モバイルは写真の上に文字が重なるため、ほぼ不透明な明色スクリムで可読性を確保 */
    .ln-hero[b-zog04jzggj]::before {
        background: linear-gradient(
            180deg,
            rgba(240, 236, 228, 0.96) 0%,
            rgba(240, 236, 228, 0.90) 45%,
            rgba(240, 236, 228, 0.55) 78%,
            rgba(240, 236, 228, 0.30) 100%
        );
    }

    .ln-hero-inner[b-zog04jzggj],
    .ln-hero-copy[b-zog04jzggj],
    .ln-lead[b-zog04jzggj],
    .ln-hero-values[b-zog04jzggj],
    .ln-actions[b-zog04jzggj],
    .ln-desknote[b-zog04jzggj] {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .ln-hero-inner[b-zog04jzggj] {
        overflow: hidden;
    }

    .ln-title[b-zog04jzggj] {
        font-size: clamp(2.25rem, 12vw, 3.25rem);
    }

    .ln-lead[b-zog04jzggj],
    .ln-desknote-foot[b-zog04jzggj],
    .ln-typeline[b-zog04jzggj] {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .ln-hero-values[b-zog04jzggj] {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ln-actions .ln-btn[b-zog04jzggj] {
        max-width: 100%;
    }

    .ln-tool[b-zog04jzggj],
    .ln-archive[b-zog04jzggj],
    .ln-final[b-zog04jzggj] {
        width: calc(100% - 1.5rem);
        border-radius: 20px;
    }
}

/* ── Mood photos ─────────────────────────────────────── */
/* ノート写真（Voices → Pricing 間の静止符） */
.ln-mood-photo[b-zog04jzggj] {
    max-width: 860px;
    margin: 0 auto;
    padding: 1rem 1.5rem 2.5rem;
}

.ln-mood-photo img[b-zog04jzggj] {
    display: block;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 4px 28px rgba(44, 44, 44, 0.10);
    object-fit: cover;
    max-height: 480px;
}

@media (max-width: 640px) {
    .ln-mood-photo[b-zog04jzggj] { padding: 0.5rem 1rem 2rem; }
    .ln-mood-photo img[b-zog04jzggj] { border-radius: 14px; max-height: 280px; }
}
/* _content/LinguaNote/Components/Pages/VocabularyDiscovery.razor.rz.scp.css */
.discovery-page[b-jx530fuf5z] {
    --discover-bg: var(--color-bg, #F8F6F2);
    --discover-surface: var(--color-surface, #FFFDF8);
    --discover-surface-strong: var(--color-surface, #FFFDF8);
    --discover-ink: var(--color-text, #2B2B2B);
    --discover-muted: var(--color-text-muted, #77736A);
    --discover-line: var(--color-border, #E5DED2);
    --discover-primary: var(--color-accent, #7A8B6B);
    --discover-primary-strong: #68785D;
    --discover-blue: var(--color-brass, #B8A27A);
    --discover-accent: var(--color-accent, #7A8B6B);
    --discover-shadow: var(--shadow-soft, 0 18px 40px rgba(31, 36, 34, 0.08));
    --discover-shadow-soft: 0 10px 28px rgba(31, 36, 34, 0.06);
    max-width: 1080px;
    color: var(--discover-ink);
    font-family: "Inter", "Noto Sans JP", "Segoe UI", sans-serif;
}

.discovery-page :where(h2, h4, h5, p, label)[b-jx530fuf5z] {
    letter-spacing: 0;
}

.discovery-page :where(h2, h4, h5)[b-jx530fuf5z] {
    color: var(--discover-ink) !important;
}

.discovery-page .text-muted[b-jx530fuf5z] {
    color: var(--discover-muted) !important;
}

.discovery-hero[b-jx530fuf5z],
.discovery-search[b-jx530fuf5z],
.discovery-result[b-jx530fuf5z],
.starter-panel[b-jx530fuf5z],
.saved-groups[b-jx530fuf5z] {
    border: 1px solid var(--discover-line);
    border-radius: 8px;
    background: var(--discover-surface);
    box-shadow: var(--discover-shadow-soft);
}

.discovery-hero[b-jx530fuf5z] {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: start;
    overflow: hidden;
    padding: clamp(1.25rem, 3vw, 2rem);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 248, 251, 0.96) 56%, rgba(238, 242, 255, 0.78) 100%);
}

.discovery-hero[b-jx530fuf5z]::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(109, 93, 246, 0.1), transparent 34%),
        linear-gradient(180deg, transparent 0%, rgba(14, 165, 233, 0.08) 100%);
    pointer-events: none;
}

.discovery-hero-copy[b-jx530fuf5z],
.discovery-vocab-link[b-jx530fuf5z] {
    position: relative;
    z-index: 1;
}

.discovery-hero-copy[b-jx530fuf5z] {
    max-width: 760px;
}

.discovery-kicker[b-jx530fuf5z] {
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    border: 1px solid rgba(109, 93, 246, 0.18);
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
    background: rgba(109, 93, 246, 0.08);
    color: var(--discover-primary-strong) !important;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.discovery-hero h2[b-jx530fuf5z] {
    max-width: 11em;
    margin-top: 0.55rem;
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.16;
}

.discovery-hero p:not(.discovery-kicker)[b-jx530fuf5z] {
    max-width: 36rem;
    font-size: 1rem;
    line-height: 1.9;
}

.discovery-hero-points[b-jx530fuf5z] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.discovery-hero-points span[b-jx530fuf5z] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2rem;
    border: 1px solid rgba(22, 32, 51, 0.08);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    background: rgba(255, 255, 255, 0.78);
    color: #344054;
    font-size: 0.82rem;
    font-weight: 800;
}

.discovery-hero-points i[b-jx530fuf5z] {
    color: var(--discover-primary);
}

.discovery-vocab-link[b-jx530fuf5z] {
    align-self: start;
    min-width: 8.5rem;
    border-color: rgba(22, 32, 51, 0.14);
    background: rgba(255, 255, 255, 0.84);
    color: var(--discover-ink);
    box-shadow: 0 8px 20px rgba(22, 32, 51, 0.06);
    white-space: nowrap;
}

.discovery-search[b-jx530fuf5z] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: end;
    padding: 1rem;
    background: var(--discover-surface-strong);
}

.search-input-wrap .form-label[b-jx530fuf5z] {
    color: #4b5563 !important;
    font-weight: 800;
}

.discovery-search .form-control[b-jx530fuf5z] {
    min-height: 3.3rem;
    border-color: rgba(22, 32, 51, 0.1) !important;
    border-radius: 8px !important;
    background: #fbfcfe !important;
    color: var(--discover-ink) !important;
    font-size: 1.02rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.discovery-search .form-control:focus[b-jx530fuf5z] {
    border-color: rgba(109, 93, 246, 0.5) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 0.22rem rgba(109, 93, 246, 0.16);
}

.discovery-search-btn[b-jx530fuf5z] {
    min-width: 10.5rem;
    min-height: 3.3rem;
    border-radius: 8px !important;
    background: linear-gradient(135deg, var(--discover-primary), #68785D) !important;
    box-shadow: 0 14px 30px rgba(122, 139, 107, 0.24) !important;
}

.discovery-result[b-jx530fuf5z],
.starter-panel[b-jx530fuf5z],
.saved-groups[b-jx530fuf5z] {
    padding: clamp(1rem, 2.5vw, 1.35rem);
}

.result-head[b-jx530fuf5z],
.saved-groups-head[b-jx530fuf5z],
.source-group-top[b-jx530fuf5z] {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.result-head h4[b-jx530fuf5z],
.saved-groups-head h4[b-jx530fuf5z],
.starter-panel h5[b-jx530fuf5z] {
    font-size: clamp(1.35rem, 3vw, 1.95rem);
    font-weight: 900;
    line-height: 1.25;
}

.result-actions[b-jx530fuf5z] {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.result-actions .btn[b-jx530fuf5z] {
    min-height: 2.55rem;
    border-radius: 8px !important;
    font-weight: 800;
}

.candidate-grid[b-jx530fuf5z] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.1rem;
}

.candidate-card[b-jx530fuf5z],
.source-group-card[b-jx530fuf5z] {
    border: 1px solid rgba(22, 32, 51, 0.1);
    border-radius: 8px;
    background: #ffffff;
}

.candidate-card[b-jx530fuf5z] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1rem;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.candidate-card[b-jx530fuf5z]::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--discover-primary), var(--discover-blue));
    opacity: 0;
    transition: opacity 0.18s ease;
}

.candidate-card:hover[b-jx530fuf5z] {
    transform: translateY(-2px);
    box-shadow: var(--discover-shadow);
}

.candidate-card.selected[b-jx530fuf5z] {
    border-color: rgba(109, 93, 246, 0.46);
    background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
    box-shadow: 0 14px 34px rgba(109, 93, 246, 0.12);
}

.candidate-card.selected[b-jx530fuf5z]::before {
    opacity: 1;
}

.candidate-card.saved[b-jx530fuf5z] {
    opacity: 0.72;
}

.candidate-card-top[b-jx530fuf5z],
.candidate-check[b-jx530fuf5z],
.candidate-meta[b-jx530fuf5z] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.candidate-card-top[b-jx530fuf5z] {
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.candidate-check[b-jx530fuf5z] {
    min-width: 0;
    color: var(--discover-primary-strong);
    font-size: 0.82rem;
    font-weight: 900;
}

.candidate-check input[b-jx530fuf5z] {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--discover-primary);
}

.saved-badge[b-jx530fuf5z],
.candidate-meta span[b-jx530fuf5z] {
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.2;
}

.saved-badge[b-jx530fuf5z] {
    background: rgba(122, 139, 107, 0.14);
    color: var(--color-accent, #7A8B6B);
}

.candidate-card h5[b-jx530fuf5z] {
    margin-bottom: 0.35rem;
    color: var(--discover-ink) !important;
    font-size: clamp(1.25rem, 2.6vw, 1.7rem);
    font-weight: 900;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.candidate-meaning[b-jx530fuf5z] {
    margin-bottom: 0.75rem;
    color: #344054 !important;
    font-size: 1rem;
    font-weight: 700;
}

.candidate-meta[b-jx530fuf5z] {
    margin-bottom: 0.2rem;
}

.candidate-meta span[b-jx530fuf5z] {
    background: #eef4ff;
    color: #3538cd;
}

.candidate-example[b-jx530fuf5z] {
    margin-top: auto;
    padding: 0.8rem;
    border: 1px solid rgba(22, 32, 51, 0.07);
    border-radius: 8px;
    background: #f8fafc;
    color: #344054;
    line-height: 1.65;
}

.candidate-example p[b-jx530fuf5z] {
    color: #162033 !important;
    font-weight: 650;
}

.candidate-example small[b-jx530fuf5z] {
    color: #667085;
}

.starter-panel[b-jx530fuf5z] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
    gap: 1.25rem;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 255, 0.9));
}

.starter-chips[b-jx530fuf5z] {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.sample-chip[b-jx530fuf5z] {
    min-height: 2.35rem;
    border: 1px solid rgba(109, 93, 246, 0.22);
    border-radius: 999px;
    background: #ffffff;
    color: var(--discover-primary-strong);
    padding: 0.45rem 0.8rem;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(22, 32, 51, 0.05);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.sample-chip:hover[b-jx530fuf5z] {
    border-color: rgba(109, 93, 246, 0.45);
    box-shadow: 0 12px 24px rgba(109, 93, 246, 0.13);
    transform: translateY(-1px);
}

.source-group-grid[b-jx530fuf5z] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.source-group-card[b-jx530fuf5z] {
    padding: 0.95rem;
    box-shadow: 0 8px 22px rgba(22, 32, 51, 0.05);
}

.source-group-top h5[b-jx530fuf5z] {
    font-weight: 900;
    overflow-wrap: anywhere;
}

.source-group-top span[b-jx530fuf5z] {
    color: var(--discover-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.source-group-top .btn[b-jx530fuf5z] {
    border-radius: 8px !important;
    white-space: nowrap;
}

.source-expression-list[b-jx530fuf5z] {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.source-expression-item[b-jx530fuf5z] {
    display: grid;
    gap: 0.12rem;
    padding: 0.62rem 0;
    border-top: 1px solid rgba(22, 32, 51, 0.09);
}

.source-expression-item strong[b-jx530fuf5z],
.source-expression-item span[b-jx530fuf5z] {
    overflow-wrap: anywhere;
}

.source-expression-item strong[b-jx530fuf5z] {
    color: var(--discover-ink);
}

.source-expression-item span[b-jx530fuf5z] {
    color: var(--discover-muted);
    font-size: 0.9rem;
}

.empty-source-panel[b-jx530fuf5z] {
    margin-top: 1rem;
    border: 1px dashed rgba(22, 32, 51, 0.16);
    border-radius: 8px;
    padding: 1rem;
    background: #f8fafc;
    color: var(--discover-muted);
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .discovery-page[b-jx530fuf5z] {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .discovery-hero[b-jx530fuf5z],
    .result-head[b-jx530fuf5z],
    .saved-groups-head[b-jx530fuf5z],
    .source-group-top[b-jx530fuf5z] {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .discovery-search[b-jx530fuf5z],
    .starter-panel[b-jx530fuf5z],
    .candidate-grid[b-jx530fuf5z],
    .source-group-grid[b-jx530fuf5z] {
        grid-template-columns: 1fr;
    }

    .discovery-hero h2[b-jx530fuf5z] {
        max-width: 12em;
    }

    .discovery-search-btn[b-jx530fuf5z],
    .discovery-vocab-link[b-jx530fuf5z] {
        width: 100%;
    }

    .starter-chips[b-jx530fuf5z],
    .result-actions[b-jx530fuf5z] {
        justify-content: flex-start;
    }

    .result-actions[b-jx530fuf5z] {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .candidate-card[b-jx530fuf5z] {
        padding: 0.95rem;
    }
}

body.dark-mode .discovery-page[b-jx530fuf5z] {
    --discover-bg: #070a12;
    --discover-surface: rgba(17, 24, 39, 0.94);
    --discover-surface-strong: #111827;
    --discover-ink: #f8fafc;
    --discover-muted: #cbd5e1;
    --discover-line: rgba(226, 232, 240, 0.14);
    --discover-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
    --discover-shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.28);
}

body.dark-mode .discovery-hero[b-jx530fuf5z],
body.dark-mode .starter-panel[b-jx530fuf5z] {
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.96) 58%, rgba(79, 70, 229, 0.18));
}

body.dark-mode .discovery-search[b-jx530fuf5z],
body.dark-mode .discovery-result[b-jx530fuf5z],
body.dark-mode .saved-groups[b-jx530fuf5z],
body.dark-mode .candidate-card[b-jx530fuf5z],
body.dark-mode .source-group-card[b-jx530fuf5z] {
    background: var(--discover-surface-strong);
    border-color: var(--discover-line);
}

body.dark-mode .discovery-hero-points span[b-jx530fuf5z],
body.dark-mode .sample-chip[b-jx530fuf5z],
body.dark-mode .discovery-vocab-link[b-jx530fuf5z] {
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(226, 232, 240, 0.14);
    color: #e2e8f0;
}

body.dark-mode .discovery-search .form-control[b-jx530fuf5z] {
    background: #0f172a !important;
    color: #f8fafc !important;
    border-color: rgba(226, 232, 240, 0.16) !important;
}

body.dark-mode .candidate-card.selected[b-jx530fuf5z] {
    background: linear-gradient(180deg, #111827 0%, #171329 100%);
    border-color: rgba(167, 139, 250, 0.48);
}

body.dark-mode .candidate-meaning[b-jx530fuf5z],
body.dark-mode .source-group-top span[b-jx530fuf5z],
body.dark-mode .source-expression-item span[b-jx530fuf5z],
body.dark-mode .candidate-example small[b-jx530fuf5z],
body.dark-mode .empty-source-panel[b-jx530fuf5z] {
    color: #cbd5e1 !important;
}

body.dark-mode .candidate-example[b-jx530fuf5z],
body.dark-mode .empty-source-panel[b-jx530fuf5z] {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(226, 232, 240, 0.12);
}

body.dark-mode .candidate-example p[b-jx530fuf5z],
body.dark-mode .source-expression-item strong[b-jx530fuf5z] {
    color: #f8fafc !important;
}

body.dark-mode .candidate-meta span[b-jx530fuf5z] {
    background: rgba(79, 70, 229, 0.24);
    color: #c4b5fd;
}

body.dark-mode .source-expression-item[b-jx530fuf5z] {
    border-top-color: rgba(226, 232, 240, 0.12);
}

/* Lexion dictionary world */
.discovery-page[b-jx530fuf5z] {
    --discover-bg: var(--color-bg, #F8F6F2);
    --discover-surface: var(--color-surface, #FFFDF8);
    --discover-surface-strong: var(--color-surface, #FFFDF8);
    --discover-ink: var(--color-text, #2B2B2B);
    --discover-muted: var(--color-text-muted, #77736A);
    --discover-line: var(--color-border, #E5DED2);
    --discover-primary: var(--color-accent, #7A8B6B);
    --discover-primary-strong: #68785D;
    --discover-blue: var(--color-brass, #B8A27A);
    --discover-accent: var(--color-brass, #B8A27A);
    --discover-shadow: var(--shadow-soft, 0 18px 40px rgba(31, 36, 34, 0.08));
    --discover-shadow-soft: 0 14px 32px rgba(31, 36, 34, 0.06);
    max-width: 1120px;
    color: var(--discover-ink);
}

.discovery-page :where(h2, h4, h5)[b-jx530fuf5z] {
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-weight: 400;
    letter-spacing: 0;
}

.discovery-page .text-muted[b-jx530fuf5z] {
    color: var(--discover-muted) !important;
}

.discovery-hero[b-jx530fuf5z],
.discovery-search[b-jx530fuf5z],
.discovery-result[b-jx530fuf5z],
.starter-panel[b-jx530fuf5z],
.saved-groups[b-jx530fuf5z] {
    border: 1px solid var(--discover-line);
    border-radius: var(--radius-card, 18px);
    background: var(--discover-surface);
    box-shadow: var(--discover-shadow-soft);
}

.discovery-hero[b-jx530fuf5z] {
    background:
        radial-gradient(circle at 88% 18%, rgba(184, 162, 122, 0.14), transparent 24%),
        var(--discover-surface);
}

.discovery-hero[b-jx530fuf5z]::before {
    display: none;
}

.discovery-kicker[b-jx530fuf5z] {
    min-height: 1.45rem;
    color: var(--discover-primary-strong) !important;
    background: rgba(122, 139, 107, 0.10);
    border-color: rgba(122, 139, 107, 0.22);
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.discovery-hero h2[b-jx530fuf5z] {
    max-width: 15em;
    font-size: clamp(1.8rem, 4vw, 3.1rem);
}

.discovery-hero-points span[b-jx530fuf5z],
.sample-chip[b-jx530fuf5z],
.discovery-vocab-link[b-jx530fuf5z] {
    color: var(--discover-muted);
    background: rgba(238, 232, 222, 0.62);
    border-color: var(--discover-line);
    font-weight: 600;
}

.discovery-hero-points i[b-jx530fuf5z] {
    color: var(--discover-primary);
}

.discovery-search[b-jx530fuf5z] {
    align-items: end;
    padding: 1rem;
}

.search-input-wrap .form-label[b-jx530fuf5z] {
    color: var(--discover-muted) !important;
    font-weight: 600;
}

.discovery-search .form-control[b-jx530fuf5z] {
    min-height: 3.4rem;
    color: var(--discover-ink) !important;
    background: var(--discover-surface) !important;
    border-color: var(--discover-line) !important;
    border-radius: 14px !important;
    box-shadow: none;
}

.discovery-search .form-control:focus[b-jx530fuf5z] {
    background: #fff !important;
    border-color: rgba(122, 139, 107, 0.55) !important;
    box-shadow: 0 0 0 0.2rem rgba(122, 139, 107, 0.14);
}

.discovery-search-btn[b-jx530fuf5z] {
    color: #fff !important;
    background: var(--discover-primary) !important;
    border-color: var(--discover-primary) !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 28px rgba(122, 139, 107, 0.18) !important;
}

.result-head h4[b-jx530fuf5z],
.saved-groups-head h4[b-jx530fuf5z],
.starter-panel h5[b-jx530fuf5z] {
    font-weight: 400;
}

.result-actions .btn[b-jx530fuf5z] {
    border-radius: 999px !important;
    font-weight: 600;
}

.result-actions .btn-success[b-jx530fuf5z] {
    background: var(--discover-primary) !important;
    border-color: var(--discover-primary) !important;
}

.candidate-grid[b-jx530fuf5z] {
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.candidate-card[b-jx530fuf5z],
.source-group-card[b-jx530fuf5z] {
    background: var(--discover-surface);
    border: 1px solid var(--discover-line);
    border-radius: 16px;
    box-shadow: none;
}

.candidate-card[b-jx530fuf5z] {
    padding: 1.1rem;
}

.candidate-card[b-jx530fuf5z]::before {
    display: none;
}

.candidate-card:hover[b-jx530fuf5z] {
    box-shadow: var(--discover-shadow-soft);
}

.candidate-card.selected[b-jx530fuf5z] {
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(238, 232, 222, 0.34));
    border-color: rgba(122, 139, 107, 0.48);
    box-shadow: 0 14px 34px rgba(122, 139, 107, 0.12);
}

.candidate-check[b-jx530fuf5z] {
    color: var(--discover-primary-strong);
    font-weight: 700;
}

.candidate-check input[b-jx530fuf5z] {
    accent-color: var(--discover-primary);
}

.saved-badge[b-jx530fuf5z],
.candidate-meta span[b-jx530fuf5z] {
    color: var(--discover-muted);
    background: var(--color-surface-muted, #EEE8DE);
    font-weight: 600;
}

.candidate-card h5[b-jx530fuf5z],
.source-group-card h5[b-jx530fuf5z] {
    color: var(--discover-ink) !important;
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-weight: 400;
    letter-spacing: 0;
}

.candidate-field > span[b-jx530fuf5z],
.candidate-example > span[b-jx530fuf5z] {
    display: block;
    margin-bottom: 0.32rem;
    color: var(--discover-primary-strong);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.candidate-meaning[b-jx530fuf5z] {
    margin-bottom: 0.75rem;
    color: var(--discover-ink) !important;
    line-height: 1.7;
}

.candidate-example[b-jx530fuf5z] {
    background: rgba(238, 232, 222, 0.52);
    border: 1px solid var(--discover-line);
    border-radius: 14px;
}

.candidate-example p[b-jx530fuf5z] {
    color: var(--discover-ink) !important;
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    line-height: 1.75;
}

.candidate-example small[b-jx530fuf5z],
.source-group-top span[b-jx530fuf5z],
.source-expression-item span[b-jx530fuf5z],
.empty-source-panel[b-jx530fuf5z] {
    color: var(--discover-muted) !important;
}

.sample-chip:hover[b-jx530fuf5z],
.source-group-card:hover[b-jx530fuf5z] {
    border-color: rgba(122, 139, 107, 0.44);
    box-shadow: var(--discover-shadow-soft);
}

body.dark-mode .discovery-page[b-jx530fuf5z] {
    --discover-bg: #1F2422;
    --discover-surface: #2B302D;
    --discover-surface-strong: #2B302D;
    --discover-ink: #F8F6F2;
    --discover-muted: #CFC8BB;
    --discover-line: rgba(229, 222, 210, 0.16);
}
/* _content/LinguaNote/Components/Pages/VocabularyList.razor.rz.scp.css */
/* ============================================================
   記憶のカタログ — 3ペインレイアウト
   ============================================================ */

/* 更新失敗時のインライン通知（ページごと落とさず控えめに伝える） */
.vocab-inline-error[b-urcql58nrh] {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: .75rem 1rem 0;
    padding: .65rem .9rem;
    border: 1px solid #e3b9a1;
    border-radius: 10px;
    background: #fbeee7;
    color: #8a4b2f;
    font-size: .92rem;
}

.vocab-inline-error .btn-close[b-urcql58nrh] {
    margin-left: auto;
    flex: 0 0 auto;
}

/* ── シェル ──────────────────────────────────────────────── */
.catalog-shell[b-urcql58nrh] {
    display: grid;
    grid-template-columns: 200px 1fr 320px;
    height: calc(100vh - 56px); /* top nav分を引く */
    overflow: hidden;
    background: var(--lx-ivory, #EDE8E0);
}

/* ── 左サイドバー ─────────────────────────────────────────── */
.catalog-sidebar[b-urcql58nrh] {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1.25rem 0.5rem 1.25rem 0.75rem;
    background: var(--lx-sidebar-bg, #252420);
    border-right: none;
    overflow-y: auto;
}

.catalog-sidebar-brand[b-urcql58nrh] {
    font-family: "Georgia", serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--lx-sidebar-active, #EDEBE4);
    letter-spacing: 0.04em;
    padding: 0 0.5rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 0.75rem;
}

.sidebar-section[b-urcql58nrh] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 1.25rem;
}

.sidebar-section-label[b-urcql58nrh] {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(200, 192, 182, 0.45);
    padding: 0.65rem 0.5rem 0.3rem;
}

.sidebar-item[b-urcql58nrh] {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.45rem 0.6rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--lx-sidebar-fg, #C5C0B6);
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.sidebar-item:hover[b-urcql58nrh] {
    background: var(--lx-sidebar-hover, #333129);
    color: var(--lx-sidebar-active, #EDEBE4);
}

.sidebar-item.active[b-urcql58nrh] {
    background: rgba(255,255,255,0.1);
    color: var(--lx-sidebar-active, #EDEBE4);
}

.sidebar-item-label[b-urcql58nrh] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-item-count[b-urcql58nrh] {
    font-size: 0.72rem;
    color: rgba(200, 192, 182, 0.55);
    flex-shrink: 0;
}

.sidebar-item-icon[b-urcql58nrh] {
    font-size: 0.85rem;
    color: rgba(200, 192, 182, 0.6);
    flex-shrink: 0;
}

/* ステータスドット */
.sidebar-dot[b-urcql58nrh] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sidebar-dot--unsorted[b-urcql58nrh] { background: #9E9890; }
.sidebar-dot--reread[b-urcql58nrh]   { background: #C49A3A; }
.sidebar-dot--settled[b-urcql58nrh]  { background: #6B8E5A; }

.sidebar-quiz-cta[b-urcql58nrh] {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* ── 中央: 語彙テーブル ──────────────────────────────────── */
.catalog-list[b-urcql58nrh] {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--lx-ivory, #EDE8E0);
}

.catalog-toolbar[b-urcql58nrh] {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.1rem;
    border-bottom: 1px solid var(--lx-line-soft, #E8E3DA);
    flex-shrink: 0;
}

.catalog-search-wrap[b-urcql58nrh] {
    flex: 1;
    position: relative;
}

.catalog-search-icon[b-urcql58nrh] {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lx-faint, #AEA99F);
    font-size: 0.8rem;
}

.catalog-search[b-urcql58nrh] {
    width: 100%;
    padding: 0.45rem 0.75rem 0.45rem 2rem;
    border: 1px solid var(--lx-line, #D5CFC5);
    border-radius: 999px;
    background: var(--lx-surface, #F7F4EF);
    color: var(--lx-ink, #1C1B18);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.15s ease;
}

.catalog-search:focus[b-urcql58nrh] {
    border-color: var(--lx-green, #4B5C3B);
    box-shadow: 0 0 0 2px rgba(75, 92, 59, 0.12);
}

.catalog-meta[b-urcql58nrh] {
    font-size: 0.78rem;
    color: var(--lx-faint, #AEA99F);
    white-space: nowrap;
    flex-shrink: 0;
}

/* テーブルヘッダー */
.vocab-table-head[b-urcql58nrh] {
    display: grid;
    grid-template-columns: 8px 1fr 72px 96px 90px 64px;
    gap: 0;
    padding: 0.45rem 1.1rem;
    border-bottom: 1px solid var(--lx-line, #D5CFC5);
    background: var(--lx-surface-alt, #E5DFD5);
    flex-shrink: 0;
}

.vocab-table-head span[b-urcql58nrh] {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lx-muted, #79756F);
}

/* テーブル本体 */
.vocab-table-body[b-urcql58nrh] {
    flex: 1;
    overflow-y: auto;
}

.vocab-row[b-urcql58nrh] {
    display: grid;
    grid-template-columns: 8px 1fr 72px 96px 90px 64px;
    gap: 0;
    align-items: center;
    padding: 0.6rem 1.1rem;
    border-bottom: 1px solid var(--lx-line-soft, #E8E3DA);
    cursor: pointer;
    transition: background 0.1s ease;
}

.vocab-row:hover[b-urcql58nrh] {
    background: rgba(75, 92, 59, 0.04);
}

.vocab-row--selected[b-urcql58nrh] {
    background: rgba(75, 92, 59, 0.07) !important;
}

.vocab-row-dot[b-urcql58nrh] {
    display: flex;
    align-items: center;
}

.col-expression[b-urcql58nrh] {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    padding-right: 0.5rem;
}

.vocab-expression[b-urcql58nrh] {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--lx-ink, #1C1B18);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vocab-meaning-inline[b-urcql58nrh] {
    font-size: 0.78rem;
    color: var(--lx-muted, #79756F);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-pos[b-urcql58nrh], .col-date[b-urcql58nrh], .col-status[b-urcql58nrh] {
    font-size: 0.78rem;
    color: var(--lx-muted, #79756F);
}

.vocab-pos-tag[b-urcql58nrh] {
    display: inline-block;
    background: var(--lx-surface-alt, #E5DFD5);
    border-radius: 3px;
    padding: 0.1rem 0.4rem;
    font-size: 0.7rem;
    color: var(--lx-ink-mid, #38352F);
}

.col-actions[b-urcql58nrh] {
    display: flex;
    gap: 0.2rem;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.12s ease;
}

.vocab-row:hover .col-actions[b-urcql58nrh] {
    opacity: 1;
}

.vocab-row-action[b-urcql58nrh] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--lx-muted, #79756F);
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
    padding: 0;
}

.vocab-row-action:hover[b-urcql58nrh] {
    background: var(--lx-surface-alt, #E5DFD5);
    color: var(--lx-ink, #1C1B18);
}

.vocab-row-action--danger:hover[b-urcql58nrh] {
    background: #FDE8E8;
    color: #C0392B;
}

/* 1タップ仕分けボタン（再読待ち / 定着） */
.vocab-sort-reread:hover[b-urcql58nrh] {
    background: var(--lx-status-reread-bg, #F5E8C8);
    color: var(--lx-status-reread-fg, #8B6020);
}

.vocab-sort-settled:hover[b-urcql58nrh] {
    background: var(--lx-status-settled-bg, #DDE8D5);
    color: var(--lx-status-settled-fg, #3C5A2C);
}

/* ステータスバッジ（グローバル lx-badge と合わせる） */
.lx-badge[b-urcql58nrh] {
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.12rem 0.5rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.lx-badge--unsorted[b-urcql58nrh] {
    background: #EEEBE4;
    color: #79756F;
}

.lx-badge--reread[b-urcql58nrh] {
    background: #F5E8C8;
    color: #8B6020;
}

.lx-badge--settled[b-urcql58nrh] {
    background: #DDE8D5;
    color: #3C5A2C;
}

/* ページネーション */
.catalog-pagination[b-urcql58nrh] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.1rem;
    border-top: 1px solid var(--lx-line-soft, #E8E3DA);
    flex-shrink: 0;
}

.catalog-page-label[b-urcql58nrh] {
    font-size: 0.8rem;
    color: var(--lx-muted, #79756F);
}

/* 空状態 */
.catalog-empty[b-urcql58nrh] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 3rem 1rem;
    color: var(--lx-faint, #AEA99F);
    font-size: 0.9rem;
    text-align: center;
}

.catalog-empty i[b-urcql58nrh] {
    font-size: 1.6rem;
}

/* ── 右: 詳細パネル ──────────────────────────────────────── */
.catalog-detail[b-urcql58nrh] {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 1px solid var(--lx-line-soft, #E8E3DA);
    background: var(--lx-surface, #F7F4EF);
    overflow-y: auto;
    padding: 1.25rem;
}

.catalog-detail--empty[b-urcql58nrh] {
    align-items: center;
    justify-content: center;
}

.detail-empty-hint[b-urcql58nrh] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.82rem;
    color: var(--lx-faint, #AEA99F);
}

.detail-header[b-urcql58nrh] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.1rem;
    flex-shrink: 0;
}

.detail-header-actions[b-urcql58nrh] {
    display: flex;
    gap: 0.2rem;
}

.detail-word-block[b-urcql58nrh] {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.detail-pronunciation[b-urcql58nrh] {
    margin: 0 0 1.1rem;
    font-size: 0.95rem;
    color: var(--color-text-muted, #77736A);
    font-feature-settings: "liga" 0;
    letter-spacing: 0.01em;
}

.detail-word[b-urcql58nrh] {
    font-family: "Georgia", "Hiragino Mincho ProN", serif;
    font-size: 1.55rem;
    font-weight: 400;
    color: var(--lx-ink, #1C1B18);
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.detail-speak[b-urcql58nrh] {
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.detail-section[b-urcql58nrh] {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--lx-line-soft, #E8E3DA);
}

.detail-section:last-of-type[b-urcql58nrh] {
    border-bottom: none;
}

.detail-section-label[b-urcql58nrh] {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lx-faint, #AEA99F);
    margin-bottom: 0.4rem;
}

.detail-section-body[b-urcql58nrh] {
    font-size: 0.9rem;
    color: var(--lx-ink, #1C1B18);
    line-height: 1.7;
    margin: 0;
}

.detail-meaning[b-urcql58nrh] {
    font-size: 0.95rem;
}

.detail-example-block[b-urcql58nrh] {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.detail-example-en[b-urcql58nrh] {
    flex: 1;
    font-style: italic;
    color: var(--lx-ink-mid, #38352F);
}

.detail-example-ja[b-urcql58nrh] {
    font-size: 0.82rem;
    color: var(--lx-muted, #79756F);
    margin: 0.4rem 0 0;
    line-height: 1.6;
}

.detail-section--meta[b-urcql58nrh] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.detail-meta-row[b-urcql58nrh] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.detail-meta-label[b-urcql58nrh] {
    font-size: 0.78rem;
    color: var(--lx-faint, #AEA99F);
}

.detail-meta-value[b-urcql58nrh] {
    font-size: 0.78rem;
    color: var(--lx-ink-mid, #38352F);
}

.detail-review-actions[b-urcql58nrh] {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--lx-line-soft, #E8E3DA);
}

/* ── クイズモード（既存スタイルを最小限維持） ─────────── */
.quiz-mode[b-urcql58nrh] {
    max-width: 560px;
    margin: 0 auto;
    padding: 1rem 0;
}

.quiz-header-bar[b-urcql58nrh] {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quiz-progress-container[b-urcql58nrh] { flex: 1; }

.quiz-progress-track[b-urcql58nrh] {
    height: 4px;
    background: var(--lx-line, #D5CFC5);
    border-radius: 999px;
    overflow: hidden;
}

.quiz-progress-fill[b-urcql58nrh] {
    height: 100%;
    background: var(--lx-green, #4B5C3B);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.quiz-progress-label[b-urcql58nrh] {
    font-size: 0.82rem;
    color: var(--lx-muted, #79756F);
    white-space: nowrap;
}

.flashcard[b-urcql58nrh] {
    background: var(--lx-surface, #F7F4EF);
    border: 1px solid var(--lx-line-soft, #E8E3DA);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(30,29,27,0.07);
}

.flashcard-expression-row[b-urcql58nrh] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.flashcard-word[b-urcql58nrh] {
    font-family: "Georgia", serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--lx-ink, #1C1B18);
    margin: 0;
}

.quiz-reveal-btn[b-urcql58nrh] { margin-top: 1rem; }

.flashcard-answer[b-urcql58nrh] { margin-top: 1rem; }

.flashcard-meaning[b-urcql58nrh] {
    font-size: 1.1rem;
    color: var(--lx-ink, #1C1B18);
    margin-bottom: 1rem;
}

.flashcard-example-block[b-urcql58nrh] {
    background: var(--lx-surface-alt, #E5DFD5);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.flashcard-example-label[b-urcql58nrh] {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lx-faint, #AEA99F);
    margin-bottom: 0.35rem;
}

.flashcard-example-row[b-urcql58nrh] {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.flashcard-example-text[b-urcql58nrh] {
    flex: 1;
    font-style: italic;
    color: var(--lx-ink-mid, #38352F);
    font-size: 0.9rem;
}

.quiz-rate-prompt[b-urcql58nrh] {
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 1rem;
    color: var(--lx-ink-mid, #38352F);
    margin-bottom: 0.9rem;
}

.quiz-rate-actions[b-urcql58nrh] {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* 想起の自己評価ボタン — 信号機色をやめ、世界観の3段階で */
.quiz-rate-btn[b-urcql58nrh] {
    flex: 1 1 0;
    min-width: 7.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: var(--lx-font-ui, "Inter", "Noto Sans JP", sans-serif);
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.quiz-rate-btn--forgot[b-urcql58nrh] {
    border: 1px solid var(--lx-line, #D5CFC5);
    background: var(--lx-status-unsorted-bg, #EEEBE4);
    color: var(--lx-status-unsorted-fg, #79756F);
}

.quiz-rate-btn--forgot:hover[b-urcql58nrh] {
    border-color: #C9C2B6;
    background: #E7E3DA;
}

.quiz-rate-btn--unclear[b-urcql58nrh] {
    border: 1px solid #E4D2A6;
    background: var(--lx-status-reread-bg, #F5E8C8);
    color: var(--lx-status-reread-fg, #8B6020);
}

.quiz-rate-btn--unclear:hover[b-urcql58nrh] {
    background: #F0DFB8;
}

.quiz-rate-btn--remembered[b-urcql58nrh] {
    border: 1px solid transparent;
    background: var(--lx-green, #4B5C3B);
    color: #FBFAF5;
}

.quiz-rate-btn--remembered:hover[b-urcql58nrh] {
    background: var(--lx-green-mid, #3C4A2E);
}

.quiz-complete-card[b-urcql58nrh] { border-radius: 14px; }

.quiz-complete-icon[b-urcql58nrh] { font-size: 2.5rem; }

.quiz-result-grid[b-urcql58nrh] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.quiz-result-item[b-urcql58nrh] {
    padding: 0.75rem;
    border-radius: 8px;
    background: var(--lx-surface-alt, #E5DFD5);
    text-align: center;
}

.quiz-result-label[b-urcql58nrh] {
    display: block;
    font-size: 0.75rem;
    color: var(--lx-muted, #79756F);
    margin-bottom: 0.25rem;
}

.quiz-result-value[b-urcql58nrh] {
    font-size: 1.5rem;
    color: var(--lx-ink, #1C1B18);
}

/* ── レスポンシブ ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .catalog-shell[b-urcql58nrh] {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        height: auto;
        overflow: visible;
    }

    .catalog-sidebar[b-urcql58nrh] {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem;
        padding: 0.75rem;
        height: auto;
        overflow: visible;
    }

    .catalog-sidebar-brand[b-urcql58nrh] { display: none; }

    .sidebar-section[b-urcql58nrh] {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.35rem;
        margin-bottom: 0;
    }

    .sidebar-section-label[b-urcql58nrh] { display: none; }

    .catalog-detail[b-urcql58nrh] {
        border-left: none;
        border-top: 1px solid var(--lx-line-soft, #E8E3DA);
    }

    .catalog-list[b-urcql58nrh],
    .catalog-detail[b-urcql58nrh] {
        height: auto;
        overflow: visible;
    }

    .vocab-table-head[b-urcql58nrh],
    .vocab-row[b-urcql58nrh] {
        grid-template-columns: 8px 1fr 80px 60px;
    }

    .col-pos[b-urcql58nrh], .col-date[b-urcql58nrh] { display: none; }
    .col-actions[b-urcql58nrh] { opacity: 1; }
}

@media (max-width: 600px) {
    .vocab-table-head[b-urcql58nrh],
    .vocab-row[b-urcql58nrh] {
        grid-template-columns: 8px 1fr 80px 44px;
    }

    .col-status[b-urcql58nrh] { display: none; }
}

/* Lexion vocabulary cards */
.catalog-shell[b-urcql58nrh] {
    grid-template-columns: 200px minmax(0, 1fr) 320px;
    background: var(--color-bg, #F8F6F2);
}

/* 語彙棚は3ペインのフルスクリーン・アプリビュー。
   中央寄せ960pxのコンテナを抜けて、レール右側の全幅を使う。 */
@media (min-width: 641px) {
    .catalog-shell[b-urcql58nrh] {
        position: fixed;
        left: 76px;
        right: 0;
        top: 0;
        bottom: 0;
        height: auto;
        z-index: 5;
        grid-template-columns: 220px minmax(0, 1fr) 340px;
    }
}

/* 中央リストは広い幅で2列以上のカードを並べ、読みやすくする */
@media (min-width: 1100px) {
    .vocab-table-body[b-urcql58nrh] {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* 左サイドバーは明るい生成り面＋濃い文字で確実に読めるようにする
   （ダークはレールのみ。語彙棚のフィルタ列は紙の見出しの世界観） */
.catalog-sidebar[b-urcql58nrh] {
    background: var(--color-surface, #FFFDF8) !important;
    border-right: 1px solid var(--color-border, #E5DED2);
}

.catalog-sidebar-brand[b-urcql58nrh] {
    color: var(--color-text, #2B2B2B) !important;
    border-bottom: 1px solid var(--color-border, #E5DED2);
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 1.12rem;
    letter-spacing: 0.06em;
}

/* フィルタ項目を濃い文字で読みやすく */
.sidebar-section-label[b-urcql58nrh] {
    color: var(--color-text-muted, #77736A) !important;
}

.sidebar-item[b-urcql58nrh] {
    color: var(--color-text, #2B2B2B) !important;
}

.sidebar-item:hover[b-urcql58nrh] {
    background: var(--color-surface-muted, #EEE8DE) !important;
    color: var(--color-text, #2B2B2B) !important;
}

.sidebar-item.active[b-urcql58nrh] {
    background: rgba(122, 139, 107, 0.14) !important;
    color: var(--color-text, #2B2B2B) !important;
}

.sidebar-item-count[b-urcql58nrh] {
    color: var(--color-text-muted, #77736A) !important;
}

.sidebar-item-icon[b-urcql58nrh] {
    color: var(--color-accent, #7A8B6B) !important;
}

.sidebar-quiz-cta[b-urcql58nrh] {
    border-top: 1px solid var(--color-border, #E5DED2);
}

.catalog-list[b-urcql58nrh] {
    background: var(--color-bg, #F8F6F2);
}

/* 語彙未選択時は2ペイン（フィルタ＋一覧）にして、カードを全幅で複数列に。
   語彙を選ぶと3ペインに戻り右に詳細を表示する。 */
.catalog-shell--no-detail[b-urcql58nrh] {
    grid-template-columns: 220px minmax(0, 1fr) !important;
}

.catalog-shell--no-detail .catalog-detail[b-urcql58nrh],
.catalog-shell--no-detail .catalog-detail--empty[b-urcql58nrh] {
    display: none !important;
}

/* ============================================================
   単語カード一覧（語彙棚の中身）— 本の一ページのような紙のカード
   ============================================================ */

/* 表示切り替えトグル（カード / リスト） */
.catalog-view-toggle[b-urcql58nrh] {
    display: inline-flex;
    gap: 2px;
    padding: 2px;
    background: var(--color-surface-muted, #EEE8DE);
    border: 1px solid var(--color-border, #E5DED2);
    border-radius: 10px;
    flex-shrink: 0;
}

.catalog-view-btn[b-urcql58nrh] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 30px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-muted, #77736A);
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.catalog-view-btn:hover[b-urcql58nrh] { color: var(--color-text, #2B2B2B); }

.catalog-view-btn.active[b-urcql58nrh] {
    background: var(--color-surface, #FFFDF8);
    color: var(--color-accent, #7A8B6B);
    box-shadow: 0 1px 3px rgba(31, 36, 34, 0.08);
}

/* サイドバー見出しの小枝 */
.catalog-sidebar-brand[b-urcql58nrh] {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.catalog-brand-leaf[b-urcql58nrh] {
    width: 18px;
    height: 18px;
    opacity: 0.9;
}

/* 中央のスクロール領域（棚ヒーロー＋カードをまとめてスクロール） */
.catalog-scroll[b-urcql58nrh] {
    flex: 1;
    overflow-y: auto;
}

/* カードの器 */
.vocab-cards[b-urcql58nrh] {
    align-content: start;
    padding: 1.5rem;
}

/* グリッド表示：均等なタイルで静かに並べる */
.vocab-cards--grid[b-urcql58nrh] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.1rem;
}

/* リスト表示：横長の行カード */
.vocab-cards--list[b-urcql58nrh] {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    max-width: 940px;
}

/* ── 1枚の単語カード ─────────────────────────────────────── */
.lx-wordcard[b-urcql58nrh] {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.1rem 1.2rem 0.95rem;
    background: var(--color-surface, #FFFDF8);
    border: 1px solid var(--color-border, #E5DED2);
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(31, 36, 34, 0.05);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

/* ノートの罫を思わせる、ごく淡い横線テクスチャ */
.lx-wordcard[b-urcql58nrh]::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        180deg,
        transparent 0,
        transparent 27px,
        rgba(122, 139, 107, 0.05) 28px
    );
    opacity: 0.7;
    pointer-events: none;
}

.lx-wordcard:hover[b-urcql58nrh] {
    border-color: rgba(122, 139, 107, 0.5);
    box-shadow: 0 16px 34px rgba(31, 36, 34, 0.09);
    transform: translateY(-2px);
}

.lx-wordcard--selected[b-urcql58nrh] {
    border-color: var(--color-accent, #7A8B6B) !important;
    box-shadow: 0 16px 34px rgba(122, 139, 107, 0.18) !important;
}

/* 真鍮の栞（折れた角）— 状態で色が変わる */
.lx-wordcard-bookmark[b-urcql58nrh] {
    position: absolute;
    top: 0;
    right: 1.1rem;
    width: 16px;
    height: 26px;
    background: var(--color-brass, #B8A27A);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
    opacity: 0.9;
    transition: opacity 0.14s ease;
}

.lx-wordcard--unsorted .lx-wordcard-bookmark[b-urcql58nrh] { background: #C9C2B6; }
.lx-wordcard--reread   .lx-wordcard-bookmark[b-urcql58nrh] { background: #C9A24B; }
.lx-wordcard--settled  .lx-wordcard-bookmark[b-urcql58nrh] { background: var(--color-accent, #7A8B6B); }

/* 操作アイコン（再生・削除）が出る場面では、同じ右上角にある栞を隠して
   アイコンと重ならないようにする */
.lx-wordcard:hover .lx-wordcard-bookmark[b-urcql58nrh],
.lx-wordcard--selected .lx-wordcard-bookmark[b-urcql58nrh] {
    opacity: 0;
}

/* 状態ドット */
.lx-wordcard-dot[b-urcql58nrh] {
    position: absolute;
    top: 1.05rem;
    left: 1.15rem;
    width: 8px;
    height: 8px;
}

.lx-wordcard-main[b-urcql58nrh] {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding-top: 0.5rem;
    min-width: 0;
}

.lx-wordcard-word[b-urcql58nrh] {
    margin: 0;
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 1.34rem;
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-text, #2B2B2B);
    word-break: break-word;
}

.lx-wordcard-pos[b-urcql58nrh] {
    padding: 0.08rem 0.5rem;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 0.72rem;
    color: var(--color-text-muted, #77736A);
    background: var(--color-surface-muted, #EEE8DE);
    border: 1px solid rgba(229, 222, 210, 0.8);
    border-radius: 999px;
}

.lx-wordcard-ipa[b-urcql58nrh] {
    display: block;
    margin: 0.1rem 0 0;
    font-size: 0.8rem;
    color: var(--color-text-muted, #77736A);
    font-feature-settings: "liga" 0;
    letter-spacing: 0.01em;
}

.lx-wordcard-meaning[b-urcql58nrh] {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--color-text, #2B2B2B);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    /* overflow:hidden は padding 端でクリップされるため、
       下端余白で CJK のディセンダが見切れるのを防ぐ */
    padding-bottom: 0.2em;
}

.lx-wordcard-meta[b-urcql58nrh] {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.65rem;
    border-top: 1px solid var(--color-border, #E5DED2);
}

.lx-wordcard-date[b-urcql58nrh] {
    font-family: Georgia, serif;
    font-size: 0.74rem;
    color: var(--color-text-muted, #77736A);
    white-space: nowrap;
}

.lx-wordcard-actions[b-urcql58nrh] {
    position: absolute;
    top: 0.5rem;
    right: 0.45rem;
    display: flex;
    gap: 0.15rem;
    opacity: 0;
    transition: opacity 0.14s ease;
}

.lx-wordcard:hover .lx-wordcard-actions[b-urcql58nrh],
.lx-wordcard--selected .lx-wordcard-actions[b-urcql58nrh] {
    opacity: 1;
}

/* ── リスト表示：行レイアウト ────────────────────────────── */
.vocab-cards--list .lx-wordcard[b-urcql58nrh] {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 2.6rem 0.7rem 2rem;
}

.vocab-cards--list .lx-wordcard[b-urcql58nrh]::before,
.vocab-cards--list .lx-wordcard-bookmark[b-urcql58nrh] { display: none; }

.vocab-cards--list .lx-wordcard-dot[b-urcql58nrh] {
    top: 50%;
    left: 0.85rem;
    transform: translateY(-50%);
}

.vocab-cards--list .lx-wordcard-main[b-urcql58nrh] {
    flex-direction: row;
    align-items: baseline;
    gap: 0.7rem;
    padding-top: 0;
    flex: 1;
}

.vocab-cards--list .lx-wordcard-word[b-urcql58nrh] { font-size: 1.06rem; }
.vocab-cards--list .lx-wordcard-pos[b-urcql58nrh] { align-self: center; }

.vocab-cards--list .lx-wordcard-meaning[b-urcql58nrh] {
    flex: 1;
    -webkit-line-clamp: 1;
}

.vocab-cards--list .lx-wordcard-meta[b-urcql58nrh] {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    gap: 0.9rem;
    flex-shrink: 0;
}

.catalog-toolbar[b-urcql58nrh] {
    padding: 1rem 1.25rem;
    background: rgba(248, 246, 242, 0.84);
    border-bottom: 1px solid var(--color-border, #E5DED2);
    backdrop-filter: blur(10px);
}

.catalog-search[b-urcql58nrh] {
    min-height: 42px;
    color: var(--color-text, #2B2B2B);
    background: var(--color-surface, #FFFDF8);
    border-color: var(--color-border, #E5DED2);
    border-radius: 12px;
}

.catalog-search:focus[b-urcql58nrh] {
    border-color: var(--color-accent, #7A8B6B);
    box-shadow: 0 0 0 3px rgba(122, 139, 107, 0.14);
}

.catalog-meta[b-urcql58nrh] {
    color: var(--color-text-muted, #77736A);
}

.toolbar-add-btn[b-urcql58nrh] {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0;
    border: 1px solid rgba(122, 84, 52, .28);
    border-radius: 8px 8px 4px 4px;
    background:
        linear-gradient(90deg, rgba(122, 84, 52, .08) 0 4px, transparent 4px),
        linear-gradient(180deg, #fffdf8, #f2eadc);
    color: var(--leather-green, #4F6658);
    cursor: pointer;
    text-decoration: none;
    box-shadow:
        0 2px 0 rgba(122, 84, 52, .18),
        0 5px 12px rgba(43, 33, 26, .08);
    transition: color .14s ease, background .14s ease, border-color .14s ease, transform .14s ease, box-shadow .14s ease;
}

.toolbar-add-btn:hover[b-urcql58nrh] {
    border-color: rgba(79, 102, 88, .5);
    background:
        linear-gradient(90deg, rgba(79, 102, 88, .14) 0 4px, transparent 4px),
        linear-gradient(180deg, #fffdf8, #e8eee8);
    color: #34493d;
    transform: translateY(-2px) rotate(-1deg);
    box-shadow:
        0 3px 0 rgba(79, 102, 88, .24),
        0 8px 16px rgba(43, 33, 26, .12);
}

.toolbar-add-btn:focus-visible[b-urcql58nrh] {
    outline: 3px solid rgba(79, 102, 88, .2);
    outline-offset: 2px;
}

.toolbar-add-btn:active[b-urcql58nrh] {
    transform: translateY(1px);
    box-shadow: 0 1px 0 rgba(79, 102, 88, .2);
}

.toolbar-add-icon[b-urcql58nrh] {
    width: 25px;
    height: 25px;
    overflow: visible;
    fill: none;
}

.toolbar-add-book[b-urcql58nrh],
.toolbar-add-spine[b-urcql58nrh] {
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.toolbar-add-mark[b-urcql58nrh] {
    stroke: var(--color-brass, #B8A27A);
    stroke-width: 1.7;
    stroke-linecap: round;
}

.vocab-add-backdrop[b-urcql58nrh] {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(28, 27, 24, .52);
    backdrop-filter: blur(4px);
}

.vocab-add-dialog[b-urcql58nrh] {
    width: min(100%, 620px);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    border: 1px solid var(--color-border, #E5DED2);
    border-radius: 18px;
    background: var(--color-surface, #FFFDF8);
    box-shadow: 0 24px 70px rgba(28, 27, 24, .28);
}

.vocab-add-header[b-urcql58nrh] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.35rem 1rem;
    border-bottom: 1px solid var(--color-border, #E5DED2);
}

.vocab-add-kicker[b-urcql58nrh] {
    margin: 0 0 .15rem;
    color: var(--color-accent, #7A8B6B);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.vocab-add-header h2[b-urcql58nrh] {
    margin: 0;
    color: var(--color-text, #2B2B2B);
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 1.35rem;
    font-weight: 500;
}

.vocab-add-close[b-urcql58nrh] {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--color-text-muted, #77736A);
    cursor: pointer;
}

.vocab-add-close:hover[b-urcql58nrh] {
    background: var(--color-surface-muted, #EEE8DE);
}

.vocab-add-form[b-urcql58nrh] {
    display: grid;
    gap: 1rem;
    padding: 1.2rem 1.35rem 1.35rem;
}

.vocab-add-row[b-urcql58nrh] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.vocab-add-field[b-urcql58nrh] {
    display: grid;
    gap: .42rem;
    margin: 0;
}

.vocab-add-field > span[b-urcql58nrh] {
    color: var(--color-text, #2B2B2B);
    font-size: .78rem;
    font-weight: 700;
}

.vocab-add-field em[b-urcql58nrh] {
    margin-left: .25rem;
    color: #9B5B4F;
    font-size: .68rem;
    font-style: normal;
}

.vocab-add-field input[b-urcql58nrh],
.vocab-add-field textarea[b-urcql58nrh] {
    width: 100%;
    padding: .68rem .78rem;
    border: 1px solid var(--color-border, #E5DED2);
    border-radius: 10px;
    background: #fff;
    color: var(--color-text, #2B2B2B);
    font-size: .9rem;
    outline: none;
}

.vocab-add-field textarea[b-urcql58nrh] {
    resize: vertical;
}

.vocab-add-field input:focus[b-urcql58nrh],
.vocab-add-field textarea:focus[b-urcql58nrh] {
    border-color: var(--color-accent, #7A8B6B);
    box-shadow: 0 0 0 3px rgba(122, 139, 107, .14);
}

.vocab-add-error[b-urcql58nrh] {
    margin: 0;
    padding: .7rem .8rem;
    border-radius: 9px;
    background: rgba(155, 91, 79, .1);
    color: #7E443A;
    font-size: .82rem;
}

.vocab-add-actions[b-urcql58nrh] {
    display: flex;
    justify-content: flex-end;
    gap: .6rem;
    padding-top: .15rem;
}

.vocab-table-head[b-urcql58nrh] {
    display: none;
}

/* 詳細パネルの定着度（★）表示 */
.detail-mastery[b-urcql58nrh] {
    color: var(--color-brass, #B8A27A);
    font-size: 1.08rem;
    letter-spacing: 0.08em;
}

.lx-badge[b-urcql58nrh] {
    border: 1px solid rgba(229, 222, 210, 0.8);
    border-radius: 999px;
}

.lx-badge--settled[b-urcql58nrh],
.lx-badge--reread[b-urcql58nrh],
.lx-badge--unsorted[b-urcql58nrh] {
    color: var(--color-text-muted, #77736A);
    background: var(--color-surface-muted, #EEE8DE);
}

.lx-badge--settled[b-urcql58nrh] {
    color: var(--color-accent, #7A8B6B);
}

.lx-badge--reread[b-urcql58nrh] {
    color: #8B7446;
}

.vocab-row-action[b-urcql58nrh],
.detail-speak[b-urcql58nrh] {
    color: var(--color-text-muted, #77736A);
    background: transparent;
    border: 1px solid transparent;
}

.vocab-row-action:hover[b-urcql58nrh],
.detail-speak:hover[b-urcql58nrh] {
    color: var(--color-text, #2B2B2B);
    background: var(--color-surface-muted, #EEE8DE);
    border-color: var(--color-border, #E5DED2);
}

.catalog-detail[b-urcql58nrh] {
    background: var(--color-surface, #FFFDF8);
    border-left: 1px solid var(--color-border, #E5DED2);
    box-shadow: -18px 0 40px rgba(31, 36, 34, 0.04);
}

.detail-word[b-urcql58nrh] {
    color: var(--color-text, #2B2B2B);
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-weight: 400;
    letter-spacing: 0;
}

.detail-section[b-urcql58nrh] {
    border-color: var(--color-border, #E5DED2);
}

.detail-section-label[b-urcql58nrh] {
    color: var(--color-accent, #7A8B6B);
    letter-spacing: 0.08em;
}

.detail-section-body[b-urcql58nrh],
.detail-example-en[b-urcql58nrh] {
    color: var(--color-text, #2B2B2B);
}

.detail-example-en[b-urcql58nrh] {
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    line-height: 1.75;
}

.detail-example-ja[b-urcql58nrh],
.detail-meta-label[b-urcql58nrh],
.detail-meta-value[b-urcql58nrh],
.catalog-page-label[b-urcql58nrh] {
    color: var(--color-text-muted, #77736A);
}

.flashcard[b-urcql58nrh],
.quiz-complete-card[b-urcql58nrh] {
    background: var(--color-surface, #FFFDF8);
    border: 1px solid var(--color-border, #E5DED2);
    border-radius: var(--radius-card, 18px);
    box-shadow: var(--shadow-soft, 0 18px 40px rgba(31, 36, 34, 0.08));
}

.flashcard-word[b-urcql58nrh] {
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-weight: 400;
    letter-spacing: 0;
}

.quiz-rate-actions .btn-outline-danger[b-urcql58nrh],
.detail-review-actions .btn-outline-secondary[b-urcql58nrh] {
    color: var(--color-text-muted, #77736A);
    border-color: var(--color-border, #E5DED2);
}

.quiz-rate-actions .btn-outline-danger:hover[b-urcql58nrh],
.detail-review-actions .btn-outline-secondary:hover[b-urcql58nrh] {
    color: var(--color-text, #2B2B2B);
    background: var(--color-surface-muted, #EEE8DE);
}

@media (max-width: 980px) {
    .catalog-shell[b-urcql58nrh] {
        --mobile-bottom-nav-height: calc(3.75rem + env(safe-area-inset-bottom));
        --mobile-floating-action-gap: 0.9rem;
        display: block;
        min-height: 100vh;
        height: auto;
        overflow: visible;
        padding-bottom: calc(var(--mobile-bottom-nav-height) + 5rem);
    }

    .catalog-sidebar[b-urcql58nrh] {
        display: none;
    }

    .catalog-list[b-urcql58nrh] {
        min-height: auto;
        overflow: visible;
    }

    .catalog-scroll[b-urcql58nrh] {
        overflow: visible;
    }

    .catalog-toolbar[b-urcql58nrh] {
        position: sticky;
        top: 0;
        z-index: 5;
    }

    .vocab-cards[b-urcql58nrh] {
        padding: 1rem;
    }

    .vocab-cards--grid[b-urcql58nrh] {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.8rem;
    }

    .catalog-detail[b-urcql58nrh] {
        border-top: 1px solid var(--color-border, #E5DED2);
        border-left: 0;
        box-shadow: 0 -18px 40px rgba(31, 36, 34, 0.04);
    }
}

/* ============================================================
   語彙棚（Lexicon Shelf）— 本棚のヒーロー / 棚の詳細 / 空状態
   ============================================================ */
.shelf-hero[b-urcql58nrh] {
    max-width: 1080px;
    margin: 0 auto;
    padding: 2rem 1.75rem 1.5rem;
}

.shelf-hero-head[b-urcql58nrh] { margin-bottom: 1.5rem; }

.shelf-kicker[b-urcql58nrh] {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-brass, #B8A27A);
}

.shelf-title[b-urcql58nrh] {
    margin: 0;
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 400;
    color: var(--color-text, #2B2B2B);
}

.shelf-sub[b-urcql58nrh] {
    margin: 0.4rem 0 0;
    color: var(--color-text-muted, #77736A);
    font-size: 0.95rem;
}

/* ── 本棚 ─────────────────────────────────────────────── */
.shelf-board[b-urcql58nrh] {
    position: relative;
    margin-bottom: 1.75rem;
    padding: 0 0.5rem;
}

.shelf-books[b-urcql58nrh] {
    display: flex;
    align-items: flex-end;
    gap: 0.7rem;
    overflow-x: auto;
    padding: 0.5rem 0.25rem 0;
    scrollbar-width: thin;
}

/* 本（カテゴリ）の背表紙＝表紙 */
.shelf-book[b-urcql58nrh] {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 116px;
    height: 168px;
    padding: 1rem 0.7rem 0.85rem;
    border: none;
    border-radius: 4px 9px 9px 4px;
    cursor: pointer;
    color: #F6F1E6;
    text-align: center;
    box-shadow: var(--shadow-card, 0 10px 24px rgba(31, 36, 34, 0.08));
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

/* 背の溝（左端の線） */
.shelf-book[b-urcql58nrh]::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 7px;
    width: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.22);
}

.shelf-book:hover[b-urcql58nrh] {
    transform: translateY(-6px);
    box-shadow: 0 18px 34px rgba(31, 36, 34, 0.16);
}

.shelf-book--green[b-urcql58nrh] {
    background: linear-gradient(135deg, var(--color-book-green, #6F7C5F), #5C6850);
}

.shelf-book--beige[b-urcql58nrh] {
    background: linear-gradient(135deg, var(--color-book-beige, #D8C8AA), #C9B68F);
    color: #4A4334;
}

.shelf-book--gray[b-urcql58nrh] {
    background: linear-gradient(135deg, var(--color-book-gray, #A7A39A), #908C82);
}

.shelf-book-name[b-urcql58nrh] {
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 0.92rem;
    line-height: 1.3;
    font-weight: 400;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.shelf-book-leaf[b-urcql58nrh] {
    width: 26px;
    height: 26px;
    opacity: 0.85;
}

.shelf-book--beige .shelf-book-leaf[b-urcql58nrh] { filter: none; }

.shelf-book-count[b-urcql58nrh] {
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    opacity: 0.82;
}

/* 棚板 */
.shelf-plank[b-urcql58nrh] {
    height: 14px;
    margin-top: -2px;
    border-radius: 3px;
    background: linear-gradient(180deg, #C2A878, #A98C5E);
    box-shadow: 0 12px 22px rgba(31, 36, 34, 0.16),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* ── 統計バー ─────────────────────────────────────────── */
.shelf-stats[b-urcql58nrh] {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 1.1rem 1.25rem;
    background: var(--color-surface, #FFFDF8);
    border: 1px solid var(--color-border, #E5DED2);
    border-radius: var(--radius-large, 24px);
    box-shadow: var(--shadow-card, 0 10px 24px rgba(31, 36, 34, 0.08));
}

.shelf-stat[b-urcql58nrh] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.25rem 0.5rem;
    text-align: center;
    border-right: 1px solid var(--color-border, #E5DED2);
}

.shelf-stat:last-child[b-urcql58nrh] { border-right: none; }

.shelf-stat strong[b-urcql58nrh] {
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 1.55rem;
    font-weight: 400;
    color: var(--color-text, #2B2B2B);
    line-height: 1.1;
}

.shelf-stat em[b-urcql58nrh] {
    font-style: normal;
    font-size: 0.72rem;
    color: var(--color-text-muted, #77736A);
}

.shelf-stat--growth strong[b-urcql58nrh] { color: var(--color-accent, #7A8B6B); }

/* ── 棚の言葉（引用） ─────────────────────────────────── */
.shelf-quote[b-urcql58nrh] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--color-text-muted, #77736A);
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 0.92rem;
}

.shelf-quote img[b-urcql58nrh] { width: 18px; height: 18px; opacity: 0.85; }

/* ── 棚の詳細ヘッダー ─────────────────────────────────── */
.shelf-detail-head[b-urcql58nrh] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.4rem 1.5rem 0.5rem;
}

.shelf-back[b-urcql58nrh] {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    align-self: flex-start;
    padding: 0.25rem 0.1rem;
    border: none;
    background: transparent;
    color: var(--color-text-muted, #77736A);
    font-size: 0.84rem;
    cursor: pointer;
    transition: color 0.12s ease;
}

.shelf-back:hover[b-urcql58nrh] { color: var(--color-accent, #7A8B6B); }

.shelf-detail-titles[b-urcql58nrh] {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.shelf-detail-title[b-urcql58nrh] {
    margin: 0;
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--color-text, #2B2B2B);
}

.shelf-detail-count[b-urcql58nrh] {
    font-size: 0.82rem;
    color: var(--color-text-muted, #77736A);
}

/* ── 空状態（語彙ゼロ）─────────────────────────────────── */
.shelf-empty[b-urcql58nrh] {
    max-width: 460px;
    margin: 3.5rem auto;
    padding: 0 1.5rem;
    text-align: center;
}

.shelf-empty-board[b-urcql58nrh] {
    margin-bottom: 2rem;
    opacity: 0.7;
}

.shelf-books--ghost[b-urcql58nrh] {
    justify-content: center;
    overflow: visible;
}

.shelf-book--ghost[b-urcql58nrh] {
    width: 70px;
    height: 110px;
    background: var(--color-surface-muted, #EEE8DE);
    border: 1px dashed var(--color-border, #E5DED2);
    box-shadow: none;
}

.shelf-book--ghost[b-urcql58nrh]::before { display: none; }

.shelf-empty-title[b-urcql58nrh] {
    margin: 0 0 0.5rem;
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-text, #2B2B2B);
}

.shelf-empty-sub[b-urcql58nrh] {
    margin: 0 0 1.5rem;
    color: var(--color-text-muted, #77736A);
    font-size: 0.92rem;
    line-height: 1.7;
}

.shelf-empty-actions[b-urcql58nrh] {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── レスポンシブ ─────────────────────────────────────── */
@media (max-width: 980px) {
    .shelf-hero[b-urcql58nrh] { padding: 1.5rem 1.1rem 1rem; }

    .shelf-board[b-urcql58nrh] {
        padding: 0;
    }

    /* 固定幅の上製本（Quiet Collection レイヤで width:132/112px に固定）を
       狭い画面で5列グリッドに押し込むとセルからはみ出して重なるため、
       デスクトップと同じ横スクロールの棚に戻す。 */
    .shelf-books[b-urcql58nrh] {
        display: flex;
        flex-wrap: nowrap;
        align-items: flex-end;
        gap: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        padding-right: 0.4rem;
        padding-left: 0.4rem;
    }

    .shelf-book[b-urcql58nrh] {
        scroll-snap-align: start;
    }

    .shelf-book[b-urcql58nrh]::before {
        left: 4px;
    }

    .shelf-book-name[b-urcql58nrh] {
        font-size: 0.64rem;
        line-height: 1.25;
    }

    .shelf-book-leaf[b-urcql58nrh] {
        width: 18px;
        height: 18px;
    }

    .shelf-book-count[b-urcql58nrh] {
        font-size: 0.54rem;
    }

    .shelf-books--ghost[b-urcql58nrh] {
        display: flex;
    }

    .shelf-book--ghost[b-urcql58nrh] {
        width: 70px;
    }

    .shelf-stats[b-urcql58nrh] {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
        border-radius: var(--radius-card, 18px);
    }

    .shelf-stat[b-urcql58nrh] {
        border-right: none;
        border-bottom: 1px solid var(--color-border, #E5DED2);
        padding: 0.6rem 0.5rem;
    }

    /* 5項目を2列で並べると最終行は1項目だけ。最後の項目のみ罫線を消す
       （以前は :nth-last-child(2) でマスター済みの罫線まで消えていた） */
    .shelf-stat:last-child[b-urcql58nrh] { border-bottom: none; }
}

/* Antiquarian lexicon shelf: leather bindings and specimen cards. */
.catalog-list[b-urcql58nrh] {
    background:
        radial-gradient(circle at 12% 3%, rgba(255, 250, 238, .48), transparent 30%),
        radial-gradient(circle at 88% 92%, rgba(82, 56, 37, .11), transparent 38%),
        repeating-linear-gradient(113deg, rgba(82, 56, 37, .024) 0 1px, transparent 1px 6px),
        var(--bg-app, #E8E0D2);
}

.catalog-toolbar[b-urcql58nrh] {
    background:
        repeating-linear-gradient(0deg, rgba(89, 61, 38, .02) 0 1px, transparent 1px 5px),
        rgba(239, 227, 208, .94);
    border-bottom-color: var(--border-soft, #CDBFA9);
    box-shadow: 0 5px 14px rgba(43, 33, 26, .12);
}

.shelf-hero[b-urcql58nrh] { padding-top: 1.5rem; }

.shelf-board[b-urcql58nrh] {
    padding: 1.15rem 1.15rem 0;
    border: 10px solid #222;
    border-bottom-width: 0;
    background:
        radial-gradient(ellipse at center top, rgba(80, 80, 100, .12), transparent 48%),
        repeating-linear-gradient(92deg, rgba(255,255,255,.018) 0 1px, transparent 1px 8px),
        linear-gradient(180deg, #1a1a1f, #0d0d10);
    box-shadow: inset 0 10px 18px rgba(0,0,0,.52), 0 12px 24px rgba(0,0,0,.35);
}

.shelf-books[b-urcql58nrh] { gap: .38rem; }

.shelf-book[b-urcql58nrh] {
    border: 1px solid rgba(24, 15, 10, .85);
    border-radius: 4px 8px 6px 3px;
    background-image:
        linear-gradient(90deg, rgba(0,0,0,.34), transparent 13%, rgba(255,255,255,.08) 47%, transparent 76%, rgba(0,0,0,.25)),
        repeating-linear-gradient(0deg, transparent 0 9px, rgba(255,255,255,.018) 9px 10px);
    box-shadow: 5px 3px 8px rgba(0,0,0,.62), inset 4px 0 rgba(255,241,216,.1), inset -4px 0 rgba(0,0,0,.25);
    text-shadow: 0 1px 2px rgba(0,0,0,.58);
}

.shelf-book[b-urcql58nrh]::after {
    content: "";
    position: absolute;
    inset: 13px 10px;
    border-top: 1px solid rgba(184,149,91,.62);
    border-bottom: 1px solid rgba(184,149,91,.62);
    pointer-events: none;
}

.shelf-book:hover[b-urcql58nrh] {
    transform: none;
    filter: brightness(1.08);
    box-shadow: 5px 3px 8px rgba(0,0,0,.62), inset 4px 0 rgba(255,241,216,.13), inset -4px 0 rgba(0,0,0,.22);
}

.shelf-book:active[b-urcql58nrh] {
    transform: translateY(-6px);
    filter: brightness(1.12);
    box-shadow: 5px 14px 22px rgba(0,0,0,.55), inset 4px 0 rgba(255,241,216,.15), inset -4px 0 rgba(0,0,0,.20);
    transition: transform 0.12s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.12s ease, filter 0.12s ease;
}

.shelf-book--green[b-urcql58nrh] { background-color: #42584D; background-image: linear-gradient(90deg, rgba(0,0,0,.34), transparent 15%, rgba(255,255,255,.08), rgba(0,0,0,.24)); }
.shelf-book--beige[b-urcql58nrh] { background-color: #79573A; color: #F1E2C8; background-image: linear-gradient(90deg, rgba(0,0,0,.34), transparent 15%, rgba(255,255,255,.08), rgba(0,0,0,.24)); }
.shelf-book--gray[b-urcql58nrh] { background-color: #293E45; background-image: linear-gradient(90deg, rgba(0,0,0,.34), transparent 15%, rgba(255,255,255,.08), rgba(0,0,0,.24)); }

.shelf-plank[b-urcql58nrh] {
    height: 20px;
    margin: 0 -1.15rem;
    background:
        repeating-linear-gradient(92deg, rgba(255,255,255,.025) 0 1px, transparent 1px 8px),
        linear-gradient(180deg, #383838, #111);
    box-shadow: 0 8px 0 #000, 0 14px 18px rgba(0,0,0,.42), inset 0 2px rgba(255,255,255,.07);
}

.shelf-stats[b-urcql58nrh] {
    border-radius: 12px;
    background:
        repeating-linear-gradient(0deg, rgba(86,57,35,.025) 0 1px, transparent 1px 5px),
        linear-gradient(120deg, var(--bg-paper, #F7F0E4), var(--bg-paper-deep, #EFE3D0));
    border-color: var(--border-soft, #CDBFA9);
    box-shadow: 0 10px 22px rgba(43,33,26,.18), inset 0 0 0 1px rgba(255,255,255,.5);
}

.vocab-cards--grid[b-urcql58nrh] { gap: 1rem; }

.lx-wordcard[b-urcql58nrh] {
    border-color: #C8B697;
    border-radius: 12px;
    background:
        repeating-linear-gradient(0deg, transparent 0 27px, rgba(104,75,45,.065) 27px 28px),
        radial-gradient(circle at 12% 8%, rgba(255,255,255,.42), transparent 35%),
        linear-gradient(135deg, #F8F0E1, #EEDFC8);
    box-shadow: 0 8px 15px rgba(43,33,26,.18), inset 0 0 0 4px rgba(255,250,239,.38), inset 0 0 0 5px rgba(128,91,53,.12);
    transition: filter .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.lx-wordcard[b-urcql58nrh]::before {
    inset: 7px;
    border: 1px solid rgba(122,84,52,.24);
    background: none;
    opacity: 1;
}

.lx-wordcard:hover[b-urcql58nrh] {
    transform: none;
    filter: brightness(1.035);
    border-color: #B49A70;
    box-shadow: 0 9px 17px rgba(43,33,26,.2), inset 0 0 0 4px rgba(255,250,239,.46), inset 0 0 0 5px rgba(128,91,53,.14);
}

.lx-wordcard--selected[b-urcql58nrh] {
    border-color: var(--leather-green, #4F6658) !important;
    box-shadow: 0 9px 18px rgba(43,33,26,.24), inset 0 0 0 2px rgba(79,102,88,.22) !important;
}

.lx-wordcard-bookmark[b-urcql58nrh] {
    background:
        linear-gradient(90deg, rgba(74,48,25,.35), transparent 35%, rgba(255,241,199,.28), rgba(74,48,25,.25)),
        var(--brass, #B8955B);
    box-shadow: 1px 2px 3px rgba(43,33,26,.28);
}

.lx-wordcard--unsorted .lx-wordcard-bookmark[b-urcql58nrh] { background-color: #8A755D; }
.lx-wordcard--reread .lx-wordcard-bookmark[b-urcql58nrh] { background-color: var(--brass, #B8955B); }
.lx-wordcard--settled .lx-wordcard-bookmark[b-urcql58nrh] { background-color: var(--leather-green, #4F6658); }

.lx-wordcard-pos[b-urcql58nrh],
.lx-badge[b-urcql58nrh] {
    border-radius: 3px;
    border: 1px solid rgba(122,84,52,.25);
    background: rgba(232,218,194,.72);
    color: var(--muted-ink, #746758);
    font-family: Georgia, "Yu Mincho", serif;
    font-size: .66rem;
    font-weight: 500;
    letter-spacing: .055em;
}

.lx-badge--settled[b-urcql58nrh] { color: #405447; }
.lx-badge--reread[b-urcql58nrh] { color: #795C2E; }

@media (max-width: 980px) {
    .shelf-board[b-urcql58nrh] {
        padding: .8rem .55rem 0;
        border-width: 7px;
        border-bottom-width: 0;
    }

    .shelf-plank[b-urcql58nrh] { margin: 0 -.55rem; }
}

/* ── 次に学ぶべき単語セクション ───────────────────────────── */
.word-suggest-section[b-urcql58nrh] {
    margin: 1.5rem 0 .5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(122,84,52,.15);
    border-radius: 14px;
}

.word-suggest-header[b-urcql58nrh] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.word-suggest-title[b-urcql58nrh] {
    font-size: 1rem;
    font-weight: 700;
    color: var(--deep-ink, #2C2A27);
    margin: 0 0 .2rem;
}

.word-suggest-sub[b-urcql58nrh] {
    font-size: .8rem;
    color: var(--muted-ink, #746758);
    margin: 0;
}

.word-suggest-loading[b-urcql58nrh] {
    display: flex;
    align-items: center;
    color: var(--muted-ink, #746758);
    font-size: .88rem;
    padding: .5rem 0;
}

.word-suggest-error[b-urcql58nrh] {
    font-size: .85rem;
    color: #8a4b2f;
    margin: 0;
}

.word-suggest-list[b-urcql58nrh] {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.word-suggest-card[b-urcql58nrh] {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .65rem .85rem;
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(122,84,52,.12);
    border-radius: 10px;
}

.word-suggest-card-main[b-urcql58nrh] {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35rem .65rem;
}

.word-suggest-expression[b-urcql58nrh] {
    font-size: 1rem;
    font-weight: 700;
    color: var(--deep-ink, #2C2A27);
    font-family: Georgia, serif;
}

.word-suggest-meaning[b-urcql58nrh] {
    font-size: .82rem;
    color: var(--muted-ink, #746758);
}

.word-suggest-reason[b-urcql58nrh] {
    flex-basis: 100%;
    font-size: .78rem;
    color: var(--muted-ink, #746758);
    font-style: italic;
}

.word-suggest-add-btn[b-urcql58nrh] {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: 50%;
    background: var(--leather-green, #4F6658);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    transition: background .15s;
}

.word-suggest-add-btn:hover[b-urcql58nrh] {
    background: #3d5146;
}

.extract-invite[b-urcql58nrh] {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    margin-top: .85rem;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(79, 102, 88, .24);
    border-radius: 14px;
    background:
        radial-gradient(circle at 8% 10%, rgba(255, 255, 255, .72), transparent 30%),
        rgba(247, 244, 237, .9);
    box-shadow: 0 8px 20px rgba(43, 33, 26, .08);
}

.extract-invite-icon[b-urcql58nrh] {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(79, 102, 88, .12);
    color: var(--leather-green, #4F6658);
    font-size: 1.1rem;
}

.extract-invite-copy h2[b-urcql58nrh] {
    margin: 0 0 .18rem;
    color: var(--deep-ink, #2C2A27);
    font-size: .98rem;
    font-weight: 700;
}

.extract-invite-copy p[b-urcql58nrh] {
    margin: 0;
    color: var(--muted-ink, #746758);
    font-size: .8rem;
    line-height: 1.55;
}

.extract-invite-button[b-urcql58nrh] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .65rem .95rem;
    border-radius: 10px;
    background: var(--leather-green, #4F6658);
    color: #fff;
    font-size: .84rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    transition: background .14s ease, transform .14s ease;
}

.extract-invite-button:hover[b-urcql58nrh] {
    background: #3d5146;
    color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .word-suggest-section[b-urcql58nrh] {
        padding: 1.1rem;
    }

    .word-suggest-header[b-urcql58nrh] {
        flex-direction: column;
        gap: .85rem;
    }

    .word-suggest-header > div[b-urcql58nrh] {
        width: 100%;
    }

    .word-suggest-title[b-urcql58nrh] {
        font-size: 1.05rem;
        white-space: nowrap;
    }

    .word-suggest-sub[b-urcql58nrh] {
        max-width: 22rem;
        line-height: 1.6;
    }

    .word-suggest-header > .btn[b-urcql58nrh] {
        width: 100%;
        min-height: 44px;
    }

    .extract-invite[b-urcql58nrh] {
        grid-template-columns: auto minmax(0, 1fr);
        gap: .8rem;
        padding: 1rem;
    }

    .extract-invite-button[b-urcql58nrh] {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* ── ツールバー: 再読待ちバッジボタン (デスクトップ) ─────── */
.toolbar-quiz-btn[b-urcql58nrh] {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .65rem;
    border: 1px solid #E4D2A6;
    border-radius: 999px;
    background: #F5E8C8;
    color: #8B6020;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .14s;
    flex-shrink: 0;
    white-space: nowrap;
}

.toolbar-quiz-btn:hover[b-urcql58nrh] {
    background: #F0DFB8;
}

.toolbar-quiz-count[b-urcql58nrh] {
    background: #C49A3A;
    color: #fff;
    border-radius: 999px;
    padding: 0 .4rem;
    font-size: .72rem;
    font-weight: 700;
    min-width: 1.3em;
    text-align: center;
}

/* ── モバイルフィルターバー ───────────────────────────────── */
.mobile-filter-bar[b-urcql58nrh] {
    display: none; /* デスクトップでは非表示 */
}

@media (max-width: 980px) {
    .mobile-filter-bar[b-urcql58nrh] {
        display: block;
        position: sticky;
        top: 56px; /* toolbarの高さ分下 */
        z-index: 4;
        background: rgba(239, 227, 208, .96);
        border-bottom: 1px solid var(--border-soft, #CDBFA9);
        backdrop-filter: blur(8px);
    }

    .mobile-filter-scroll[b-urcql58nrh] {
        display: flex;
        align-items: center;
        gap: .4rem;
        padding: .55rem .85rem;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-filter-scroll[b-urcql58nrh]::-webkit-scrollbar { display: none; }

    .mobile-filter-pill[b-urcql58nrh] {
        display: inline-flex;
        align-items: center;
        gap: .3rem;
        padding: .35rem .75rem;
        border: 1px solid var(--border-soft, #CDBFA9);
        border-radius: 999px;
        background: rgba(255,255,255,.7);
        color: var(--color-text, #2B2B2B);
        font-size: .8rem;
        font-weight: 500;
        white-space: nowrap;
        cursor: pointer;
        flex-shrink: 0;
        transition: background .12s, border-color .12s;
    }

    .mobile-filter-pill:hover[b-urcql58nrh] {
        background: rgba(255,255,255,.9);
    }

    .mobile-filter-pill.active[b-urcql58nrh] {
        background: var(--color-accent, #7A8B6B);
        border-color: var(--color-accent, #7A8B6B);
        color: #fff;
    }

    .mobile-filter-pill--reread.active[b-urcql58nrh] {
        background: #8B6020;
        border-color: #8B6020;
    }

    .mobile-filter-count[b-urcql58nrh] {
        opacity: .72;
        font-size: .72rem;
    }

    .mobile-dot[b-urcql58nrh] {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        flex-shrink: 0;
    }

    .mobile-dot--unsorted[b-urcql58nrh] { background: #9E9890; }
    .mobile-dot--reread[b-urcql58nrh]   { background: #C49A3A; }
    .mobile-dot--settled[b-urcql58nrh]  { background: #6B8E5A; }

    /* ── モバイルでカードのアクションを常時表示 ── */
    .lx-wordcard-actions[b-urcql58nrh] {
        opacity: 1 !important;
    }

    /* タップターゲットを大きく */
    .vocab-row-action[b-urcql58nrh] {
        width: 36px;
        height: 36px;
    }

    /* ツールバーのreread バッジボタンはモバイルでは非表示（FABで代替） */
    .toolbar-quiz-btn[b-urcql58nrh] {
        display: none;
    }

    .toolbar-add-btn[b-urcql58nrh] {
        width: 42px;
    }

    /* catalog-toolbarをstickyに（フィルターバーと合わせて固定） */
    .catalog-toolbar[b-urcql58nrh] {
        position: sticky;
        top: 0;
        z-index: 5;
    }

    /* モバイルではグリッドを1列に（読みやすさ優先） */
    .vocab-cards--grid[b-urcql58nrh] {
        grid-template-columns: 1fr;
        gap: .65rem;
        padding: .85rem;
    }

    /* リスト表示はそのまま維持しつつ余白調整 */
    .vocab-cards--list[b-urcql58nrh] {
        padding: .85rem;
        gap: .5rem;
    }

    /* リストカードの単語とメモを縦積みに（横幅が足りないため） */
    .vocab-cards--list .lx-wordcard-main[b-urcql58nrh] {
        flex-wrap: wrap;
    }
    .vocab-cards--list .lx-wordcard-meaning[b-urcql58nrh] {
        flex-basis: 100%;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 600px) {
    .vocab-add-backdrop[b-urcql58nrh] {
        align-items: end;
        padding: 0;
    }

    .vocab-add-dialog[b-urcql58nrh] {
        width: 100%;
        max-height: 92vh;
        border-radius: 18px 18px 0 0;
    }

    .vocab-add-row[b-urcql58nrh] {
        grid-template-columns: 1fr;
    }

    .vocab-add-actions[b-urcql58nrh] {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* ── モバイル: フローティング復習ボタン (FAB) ────────────── */
.mobile-quiz-fab[b-urcql58nrh] {
    display: none;
}

/* ── 復習クイズ: 例文穴埋めによる能動想起 ───────────────── */
.quiz-recall[b-urcql58nrh] {
    width: min(100%, 620px);
    margin: 0 auto;
    text-align: center;
}

.quiz-recall-badge[b-urcql58nrh] {
    display: inline-flex;
    margin-bottom: .8rem;
    padding: .25rem .65rem;
    border-radius: 999px;
    background: rgba(79, 102, 88, .12);
    color: var(--leather-green, #4F6658);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.quiz-recall-meaning[b-urcql58nrh] {
    margin: 0 0 .55rem;
    color: var(--deep-ink, #2C2A27);
    font-size: 1.15rem;
    font-weight: 700;
}

.quiz-recall-prompt[b-urcql58nrh] {
    margin: 0 0 .7rem;
    color: var(--muted-ink, #746758);
    font-size: .85rem;
}

.quiz-cloze-sentence[b-urcql58nrh] {
    margin: 0 0 1.2rem;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(122, 84, 52, .18);
    border-radius: 12px;
    background: rgba(255, 255, 255, .58);
    color: var(--deep-ink, #2C2A27);
    font-family: Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.7;
}

.quiz-recall-form[b-urcql58nrh] {
    display: flex;
    gap: .6rem;
    justify-content: center;
}

.quiz-recall-input[b-urcql58nrh] {
    min-width: 0;
    flex: 1;
    padding: .7rem .85rem;
    border: 1px solid var(--border-soft, #CDBFA9);
    border-radius: 9px;
    background: rgba(255, 255, 255, .84);
    color: var(--deep-ink, #2C2A27);
    font-size: 1rem;
}

.quiz-recall-input:focus[b-urcql58nrh] {
    border-color: var(--leather-green, #4F6658);
    outline: 3px solid rgba(79, 102, 88, .14);
}

.quiz-skip-recall[b-urcql58nrh] {
    margin-top: .85rem;
    border: 0;
    background: transparent;
    color: var(--muted-ink, #746758);
    font-size: .8rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.quiz-recall-feedback[b-urcql58nrh] {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    margin-bottom: 1rem;
    padding: .75rem .9rem;
    border-radius: 10px;
    text-align: left;
    font-size: .88rem;
    line-height: 1.5;
}

.quiz-recall-feedback.is-correct[b-urcql58nrh] {
    background: rgba(69, 122, 82, .12);
    color: #315f3d;
}

.quiz-recall-feedback.is-incorrect[b-urcql58nrh] {
    background: rgba(174, 116, 47, .13);
    color: #79501f;
}

@media (max-width: 600px) {
    .quiz-recall-form[b-urcql58nrh] {
        flex-direction: column;
    }

    .quiz-recall-form .btn[b-urcql58nrh] {
        width: 100%;
    }
}

@media (max-width: 980px) {
    .mobile-quiz-fab[b-urcql58nrh] {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        position: fixed;
        bottom: calc(3.75rem + env(safe-area-inset-bottom) + .9rem);
        right: 1.25rem;
        z-index: 50;
        padding: .75rem 1.25rem;
        border: none;
        border-radius: 999px;
        background: #8B6020;
        color: #fff;
        font-size: .92rem;
        font-weight: 600;
        box-shadow: 0 6px 20px rgba(43,33,26,.35);
        cursor: pointer;
        transition: background .14s, transform .14s;
    }

    .mobile-quiz-fab:hover[b-urcql58nrh] {
        background: #6B4A16;
        transform: translateY(-2px);
    }

    .mobile-quiz-fab-count[b-urcql58nrh] {
        background: rgba(255,255,255,.28);
        border-radius: 999px;
        padding: .05rem .45rem;
        font-size: .76rem;
        font-weight: 700;
    }
}

/* ============================================================
   Quiet Collection unify — 語彙棚を DiaryList の白い Collection
   様式へ統一する最終レイヤ。
   アイボリー地・白カード（#FFFDF7）・ライトオークの棚・セリフ見出し。
   既存の「黒い額縁＋革装本」レイヤを上書きするため最後に置く。
   ============================================================ */
.catalog-list[b-urcql58nrh] {
  background: #F8F5ED !important;
}

/* ヘッダー帯（lx-room-header）— 書斎ブラウン → 白カード。
   グローバル body.lx-world .lx-room-header(!important) より高い詳細度
   （.shelf-hero 子孫 = scoped 属性2つ）＋ !important で確実に上書きする。 */
.shelf-hero .lx-room-header[b-urcql58nrh] {
  border: 1px solid rgba(44, 42, 37, .10) !important;
  border-radius: 20px !important;
  background: #FFFDF7 !important;
  box-shadow: 0 8px 32px rgba(44, 42, 37, .07) !important;
  color: #2C2A25 !important;
}

.shelf-hero .lx-room-header .lx-page-kicker[b-urcql58nrh] { color: #7A8D77 !important; text-shadow: none !important; }
.shelf-hero .lx-room-header .lx-page-title[b-urcql58nrh] { color: #2C2A25 !important; text-shadow: none !important; }
.shelf-hero .lx-room-header .lx-page-sub[b-urcql58nrh] { color: #7A7568 !important; text-shadow: none !important; }

/* ── 読書部屋の棚 — 立ち並ぶパステルの上製本 + 温かなオーク材 ──────
   参考イメージの「自然で穏やかな本棚」に寄せる最終レイヤ。
   平面の砂色の本を、表紙が手前を向いた上製本へ作り替える。 */
.shelf-board[b-urcql58nrh] {
  position: relative;
  margin-bottom: 1.5rem !important;
  padding: 2.1rem 2rem 0 !important;
  border: 1px solid rgba(74, 64, 48, .08) !important;
  border-radius: 28px !important;
  background: radial-gradient(135% 95% at 50% 0%, #FCF8F1 0%, #F4EEE1 100%) !important;
  box-shadow: 0 14px 44px rgba(74, 64, 48, .10), inset 0 1px 0 rgba(255, 255, 255, .75) !important;
}

.shelf-board[b-urcql58nrh]::after {
  display: none !important;
  content: none !important;
}

.shelf-books[b-urcql58nrh] {
  align-items: flex-end;
  gap: .55rem !important;
  padding: .25rem .4rem 0 !important;
}

/* 上製本の表紙 — 手前を向いた一冊 */
.shelf-book[b-urcql58nrh] {
  width: 132px !important;
  height: 236px !important;
  padding: 1.5rem 1rem 1.2rem !important;
  justify-content: flex-start !important;
  gap: .5rem;
  border: 1px solid rgba(44, 42, 37, .06) !important;
  border-radius: 5px 13px 13px 5px !important;
  background-image: none !important;
  box-shadow:
    inset 8px 0 13px -7px rgba(0, 0, 0, .18),     /* 背表紙側の落ち影 */
    inset 14px 0 0 -13px rgba(255, 255, 255, .6), /* 背の角のハイライト */
    inset -5px 0 9px -7px rgba(0, 0, 0, .10),
    0 2px 2px rgba(74, 64, 48, .10),
    9px 15px 24px -11px rgba(74, 64, 48, .32) !important; /* 影 + 接地影 */
  text-shadow: none !important;
  transition: transform .18s cubic-bezier(.22, 1, .36, 1), box-shadow .18s ease !important;
}

/* 背の溝（左端の細い線） */
.shelf-book[b-urcql58nrh]::before {
  content: "" !important;
  position: absolute !important;
  top: 13px !important;
  bottom: 13px !important;
  left: 11px !important;
  width: 1px !important;
  background: rgba(0, 0, 0, .10) !important;
  border-radius: 1px !important;
}

/* 旧デザインの上下二重罫線は使わない */
.shelf-book[b-urcql58nrh]::after { display: none !important; }

.shelf-book-icon[b-urcql58nrh] {
  font-size: 1.5rem;
  line-height: 1;
  opacity: .7;
  margin-top: .1rem;
}

.shelf-book-titles[b-urcql58nrh] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .16rem;
}

.shelf-book-name[b-urcql58nrh] {
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.04rem !important;
  letter-spacing: .04em;
  line-height: 1.25;
  -webkit-line-clamp: 2;
}

.shelf-book-sub[b-urcql58nrh] {
  font-family: Georgia, "Yu Mincho", serif;
  font-size: .62rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .58;
}

.shelf-book-rule[b-urcql58nrh] {
  width: 24px;
  height: 0;
  margin-top: .4rem;
  border-top: 1px solid currentColor;
  opacity: .3;
}

.shelf-book-count[b-urcql58nrh] {
  margin-top: auto !important;
  font-size: .72rem;
  letter-spacing: .03em;
  opacity: .66;
}

/* 6 色のパステル表紙（布張りの上製本のような柔らかなグラデーション） */
.shelf-book--sage[b-urcql58nrh]     { background: linear-gradient(160deg, #D3DCC8, #C2CEB5) !important; color: #4A5740 !important; }
.shelf-book--blush[b-urcql58nrh]    { background: linear-gradient(160deg, #ECD8CF, #DFC5B9) !important; color: #6E4E45 !important; }
.shelf-book--blue[b-urcql58nrh]     { background: linear-gradient(160deg, #CFDBE3, #BCCBD7) !important; color: #44545F !important; }
.shelf-book--lavender[b-urcql58nrh] { background: linear-gradient(160deg, #DBD2E4, #CBBFDA) !important; color: #564B66 !important; }
.shelf-book--cream[b-urcql58nrh]    { background: linear-gradient(160deg, #ECE3CD, #DFD3B6) !important; color: #5E5333 !important; }
.shelf-book--sky[b-urcql58nrh]      { background: linear-gradient(160deg, #D2DEE2, #BFD0D7) !important; color: #43535A !important; }

/* 旧トーン（空状態のゴースト本などが参照）も穏やかに保つ */
.shelf-book--green[b-urcql58nrh] { background: linear-gradient(160deg, #D3DCC8, #C2CEB5) !important; color: #4A5740 !important; }
.shelf-book--beige[b-urcql58nrh] { background: linear-gradient(160deg, #ECE3CD, #DFD3B6) !important; color: #5E5333 !important; }
.shelf-book--gray[b-urcql58nrh]  { background: linear-gradient(160deg, #D2DEE2, #BFD0D7) !important; color: #43535A !important; }

.shelf-book:hover[b-urcql58nrh] {
  transform: translateY(-8px) !important;
  filter: none !important;
  box-shadow:
    inset 8px 0 13px -7px rgba(0, 0, 0, .18),
    inset 14px 0 0 -13px rgba(255, 255, 255, .6),
    inset -5px 0 9px -7px rgba(0, 0, 0, .10),
    0 2px 2px rgba(74, 64, 48, .10),
    11px 24px 32px -11px rgba(74, 64, 48, .36) !important;
}

/* 棚板 — 厚みのある温かなオーク材（上面 + 手前の小口） */
.shelf-plank[b-urcql58nrh] {
  position: relative;
  height: 26px !important;
  margin: 0 -2rem !important;          /* 棚カードの内側いっぱいに広げる */
  border-radius: 0 0 27px 27px !important;
  background: linear-gradient(
    180deg,
    #E9CFA1 0%, #DDBB86 8px,           /* 上面 */
    #CBA66A 9px, #B98E55 100%          /* 小口（手前の面） */
  ) !important;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .5),
    0 18px 26px -13px rgba(120, 90, 50, .5) !important;
}

@media (max-width: 600px) {
  .shelf-board[b-urcql58nrh] { padding: 1.4rem 1.2rem 0 !important; border-radius: 22px !important; }
  .shelf-board[b-urcql58nrh]::after { width: 36px; height: 36px; top: .8rem; right: 1rem; }
  .shelf-book[b-urcql58nrh] {
    width: 112px !important;
    height: 200px !important;
    padding: 1.2rem .75rem 1rem !important;
  }
  .shelf-book-icon[b-urcql58nrh] { font-size: 1.3rem; }
  .shelf-book-name[b-urcql58nrh] { font-size: .94rem !important; }
  .shelf-plank[b-urcql58nrh] { margin: 0 -1.2rem !important; border-radius: 0 0 21px 21px !important; }
}

/* 統計バー — 純白カード */
.shelf-stats[b-urcql58nrh] {
  border: 1px solid rgba(44, 42, 37, .10) !important;
  border-radius: 20px !important;
  background: #FFFDF7 !important;
  box-shadow: 0 8px 32px rgba(44, 42, 37, .07) !important;
}

/* ============================================================
   単語カードを Quiet Collection の白カードへ統一する最終レイヤ。
   旧「革装・羊皮紙」レイヤ（罫線テクスチャ・二重内枠・光沢の栞）を
   上書きし、アイボリー地の静かなミニマル・カードにする。
   ============================================================ */
.lx-wordcard[b-urcql58nrh] {
  border: 1px solid rgba(44, 42, 37, .10) !important;
  border-radius: 16px !important;
  background: #FFFDF7 !important;
  background-image: none !important;
  box-shadow: 0 6px 22px rgba(44, 42, 37, .06) !important;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease !important;
}

/* 罫線テクスチャ・二重内枠をやめる（紙の主張を消す） */
.lx-wordcard[b-urcql58nrh]::before {
  display: none !important;
}

.lx-wordcard:hover[b-urcql58nrh] {
  transform: translateY(-2px) !important;
  filter: none !important;
  border-color: rgba(122, 141, 119, .55) !important;
  box-shadow: 0 12px 30px rgba(44, 42, 37, .10) !important;
}

.lx-wordcard--selected[b-urcql58nrh] {
  border-color: #7A8D77 !important;
  box-shadow: 0 12px 30px rgba(122, 141, 119, .18) !important;
}

/* 栞（折れた角）— 光沢と影をやめ、状態色を平面に置く控えめな印に */
.lx-wordcard-bookmark[b-urcql58nrh] {
  background-image: none !important;
  box-shadow: none !important;
  opacity: .85 !important;
}

.lx-wordcard--unsorted .lx-wordcard-bookmark[b-urcql58nrh] { background: #C7C0B0 !important; }
.lx-wordcard--reread   .lx-wordcard-bookmark[b-urcql58nrh] { background: #C2A878 !important; }
.lx-wordcard--settled  .lx-wordcard-bookmark[b-urcql58nrh] { background: #7A8D77 !important; }

/* 品詞ピル・バッジ — 淡いインク色の小さなラベルに */
.lx-wordcard-pos[b-urcql58nrh] {
  border: 1px solid rgba(44, 42, 37, .10) !important;
  border-radius: 999px !important;
  background: #F2EEE3 !important;
  color: #7A7568 !important;
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif !important;
  font-style: italic !important;
}

.lx-wordcard .lx-badge[b-urcql58nrh] {
  border: 1px solid rgba(44, 42, 37, .10) !important;
  border-radius: 999px !important;
  background: #F2EEE3 !important;
  color: #7A7568 !important;
}

.lx-wordcard .lx-badge--settled[b-urcql58nrh] { color: #5A6B52 !important; }
.lx-wordcard .lx-badge--reread[b-urcql58nrh]  { color: #8B6B3A !important; }

/* 見出し語・意味・日付・区切り罫を Collection の配色に揃える */
.lx-wordcard-word[b-urcql58nrh] {
  color: #2C2A25 !important;
}

.lx-wordcard-meaning[b-urcql58nrh] {
  color: #4A463E !important;
}

.lx-wordcard-meta[b-urcql58nrh] {
  border-top: 1px solid rgba(44, 42, 37, .08) !important;
}

.lx-wordcard-date[b-urcql58nrh] {
  color: #7A7568 !important;
}

/* Lexicon shelf: make category volumes read as upright book spines. */
.shelf-board[b-urcql58nrh] {
  padding: 2rem 2rem 0 !important;
}

.shelf-books[b-urcql58nrh] {
  gap: .42rem !important;
  padding: .25rem .35rem 0 !important;
}

.shelf-book[b-urcql58nrh] {
  width: 104px !important;
  height: 232px !important;
  padding: 1.35rem .74rem 1.05rem !important;
  gap: .46rem !important;
  border: 1px solid rgba(44, 42, 37, .12) !important;
  border-bottom-color: rgba(44, 42, 37, .22) !important;
  border-radius: 4px 10px 5px 3px !important;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, .18) 0, rgba(0, 0, 0, .08) 14px, rgba(255, 255, 255, .18) 17px, transparent 38%, rgba(0, 0, 0, .08) 100%) !important;
  box-shadow:
    inset 9px 0 13px -7px rgba(0, 0, 0, .24),
    inset 16px 0 0 -14px rgba(255, 255, 255, .58),
    inset -6px 0 10px -8px rgba(0, 0, 0, .18),
    2px 0 0 rgba(255, 255, 255, .28),
    8px 5px 14px -12px rgba(74, 64, 48, .48) !important;
}

.shelf-book[b-urcql58nrh]::before {
  top: 12px !important;
  bottom: 11px !important;
  left: 12px !important;
  background: rgba(0, 0, 0, .18) !important;
}

/* 棚の本は高さをそろえる(.shelf-book の base height を使う) */

.shelf-book-icon[b-urcql58nrh] {
  font-size: 1.38rem !important;
}

.shelf-book-name[b-urcql58nrh] {
  font-size: .94rem !important;
}

.shelf-book-sub[b-urcql58nrh] {
  font-size: .56rem !important;
  letter-spacing: .13em !important;
}

.shelf-book:hover[b-urcql58nrh] {
  transform: translateY(-5px) !important;
  box-shadow:
    inset 9px 0 13px -7px rgba(0, 0, 0, .24),
    inset 16px 0 0 -14px rgba(255, 255, 255, .58),
    inset -6px 0 10px -8px rgba(0, 0, 0, .18),
    2px 0 0 rgba(255, 255, 255, .28),
    12px 8px 18px -13px rgba(74, 64, 48, .52) !important;
}

@media (max-width: 600px) {
  .shelf-book[b-urcql58nrh] {
    width: 92px !important;
    height: 196px !important;
    padding: 1.1rem .65rem .95rem !important;
  }

  .shelf-book-icon[b-urcql58nrh] { font-size: 1.22rem !important; }
  .shelf-book-name[b-urcql58nrh] { font-size: .86rem !important; }
}
/* _content/LinguaNote/Components/Pages/VocabularyTextExtractor.razor.rz.scp.css */
.extract-page[b-hlgeb0ut5q] {
    max-width: 1080px;
    color: var(--color-text, #2b2b2b);
}

.extract-gate-loading[b-hlgeb0ut5q] {
    display: flex;
    min-height: 45vh;
    align-items: center;
    justify-content: center;
}

.extract-hero[b-hlgeb0ut5q],
.extract-input[b-hlgeb0ut5q],
.extract-result[b-hlgeb0ut5q] {
    border: 1px solid var(--color-border, #e5ded2);
    border-radius: 8px;
    background: var(--color-surface, #fffdf8);
    box-shadow: var(--shadow-soft, 0 10px 28px rgba(31, 36, 34, 0.06));
}

.extract-hero[b-hlgeb0ut5q] {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: linear-gradient(135deg, #fffdf8 0%, #f3f6ef 100%);
}

.extract-hero > div[b-hlgeb0ut5q] {
    max-width: 760px;
}

.extract-input[b-hlgeb0ut5q],
.extract-result[b-hlgeb0ut5q] {
    padding: clamp(1rem, 2.5vw, 1.4rem);
}

.source-tabs[b-hlgeb0ut5q] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin-bottom: 1.15rem;
    padding: 0.3rem;
    border: 1px solid var(--color-border, #e5ded2);
    border-radius: 8px;
    background: color-mix(in srgb, var(--color-surface, #fffdf8) 76%, #eef3e9);
}

.source-tab[b-hlgeb0ut5q] {
    display: flex;
    min-width: 0;
    min-height: 2.7rem;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--color-text-muted, #77736a);
    font-weight: 750;
}

.source-tab span[b-hlgeb0ut5q] {
    white-space: nowrap;
}

.source-tab.active[b-hlgeb0ut5q] {
    border-color: var(--color-border, #e5ded2);
    background: var(--color-surface, #fffdf8);
    color: var(--color-text, #2b2b2b);
    box-shadow: 0 2px 8px rgba(31, 36, 34, 0.06);
}

.extract-input-head[b-hlgeb0ut5q],
.extract-input-actions[b-hlgeb0ut5q],
.result-head[b-hlgeb0ut5q],
.result-actions[b-hlgeb0ut5q],
.candidate-card-top[b-hlgeb0ut5q],
.candidate-check[b-hlgeb0ut5q],
.candidate-meta[b-hlgeb0ut5q] {
    display: flex;
    gap: 0.65rem;
}

.extract-input-head[b-hlgeb0ut5q],
.result-head[b-hlgeb0ut5q],
.candidate-card-top[b-hlgeb0ut5q] {
    justify-content: space-between;
    align-items: flex-start;
}

.character-count[b-hlgeb0ut5q] {
    color: var(--color-text-muted, #77736a);
    font-size: 0.78rem;
    white-space: nowrap;
}

.extract-input textarea[b-hlgeb0ut5q] {
    min-height: 15rem;
    margin-top: 1rem;
    resize: vertical;
    line-height: 1.75;
}

.url-source-row[b-hlgeb0ut5q] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    margin-top: 1rem;
}

.url-source-row .form-control[b-hlgeb0ut5q] {
    min-height: 2.8rem;
}

.file-drop[b-hlgeb0ut5q] {
    display: flex;
    min-height: 12rem;
    margin-top: 1rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.45rem;
    border: 1px dashed var(--color-accent, #7a8b6b);
    border-radius: 8px;
    background: color-mix(in srgb, var(--color-accent, #7a8b6b) 5%, var(--color-surface, #fffdf8));
    cursor: pointer;
    text-align: center;
}

.file-drop:hover[b-hlgeb0ut5q] {
    background: color-mix(in srgb, var(--color-accent, #7a8b6b) 9%, var(--color-surface, #fffdf8));
}

.file-drop > i[b-hlgeb0ut5q] {
    color: var(--color-accent, #7a8b6b);
    font-size: 2rem;
}

.file-drop-title[b-hlgeb0ut5q] {
    font-weight: 800;
}

.file-drop-help[b-hlgeb0ut5q] {
    color: var(--color-text-muted, #77736a);
    font-size: 0.8rem;
}

.file-drop input[b-hlgeb0ut5q] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.source-preview[b-hlgeb0ut5q] {
    margin-top: 0.85rem;
    border: 1px solid var(--color-border, #e5ded2);
    border-radius: 8px;
    padding: 0.85rem;
    background: color-mix(in srgb, var(--color-surface, #fffdf8) 84%, #eef3e9);
}

.source-preview-head[b-hlgeb0ut5q] {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
}

.source-preview-head strong[b-hlgeb0ut5q] {
    overflow-wrap: anywhere;
}

.source-preview-head span[b-hlgeb0ut5q],
.source-preview p[b-hlgeb0ut5q] {
    color: var(--color-text-muted, #77736a);
}

.source-preview-head span[b-hlgeb0ut5q] {
    flex-shrink: 0;
}

.source-preview p[b-hlgeb0ut5q] {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 0.85rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.extract-input-actions[b-hlgeb0ut5q] {
    justify-content: flex-end;
    margin-top: 0.85rem;
}

.extract-input-actions .btn[b-hlgeb0ut5q],
.result-actions .btn[b-hlgeb0ut5q] {
    font-weight: 700;
}

.result-head h2[b-hlgeb0ut5q] {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
}

.result-actions[b-hlgeb0ut5q] {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.candidate-grid[b-hlgeb0ut5q] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.1rem;
}

.candidate-card[b-hlgeb0ut5q] {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border, #e5ded2);
    border-radius: 8px;
    padding: 1rem;
    background: var(--color-surface, #fffdf8);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.candidate-card:hover[b-hlgeb0ut5q] {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft, 0 10px 28px rgba(31, 36, 34, 0.08));
}

.candidate-card.selected[b-hlgeb0ut5q] {
    border-color: var(--color-accent, #7a8b6b);
    background: color-mix(in srgb, var(--color-accent, #7a8b6b) 7%, var(--color-surface, #fffdf8));
}

.candidate-card.saved[b-hlgeb0ut5q] {
    opacity: 0.68;
}

.candidate-check[b-hlgeb0ut5q],
.candidate-meta[b-hlgeb0ut5q] {
    align-items: center;
    flex-wrap: wrap;
}

.candidate-check[b-hlgeb0ut5q] {
    color: var(--color-accent, #7a8b6b);
    font-size: 0.82rem;
    font-weight: 800;
}

.candidate-check input[b-hlgeb0ut5q] {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--color-accent, #7a8b6b);
}

.saved-badge[b-hlgeb0ut5q],
.candidate-meta span[b-hlgeb0ut5q] {
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    background: color-mix(in srgb, var(--color-accent, #7a8b6b) 12%, transparent);
    color: var(--color-accent, #7a8b6b);
    font-size: 0.74rem;
    font-weight: 800;
}

.candidate-card h3[b-hlgeb0ut5q] {
    margin: 0.8rem 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.candidate-meaning[b-hlgeb0ut5q] {
    font-weight: 650;
}

.candidate-example[b-hlgeb0ut5q] {
    margin-top: auto;
    border: 1px solid var(--color-border, #e5ded2);
    border-radius: 8px;
    padding: 0.8rem;
    background: color-mix(in srgb, var(--color-surface, #fffdf8) 82%, #eef3e9);
    line-height: 1.65;
}

.candidate-example > span[b-hlgeb0ut5q] {
    color: var(--color-text-muted, #77736a);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.candidate-example p[b-hlgeb0ut5q] {
    font-weight: 650;
}

.candidate-example small[b-hlgeb0ut5q] {
    color: var(--color-text-muted, #77736a);
}

@media (max-width: 767.98px) {
    .extract-page[b-hlgeb0ut5q] {
        padding-inline: 1rem !important;
    }

    .extract-hero[b-hlgeb0ut5q],
    .extract-input-head[b-hlgeb0ut5q],
    .result-head[b-hlgeb0ut5q] {
        flex-direction: column;
    }

    .url-source-row[b-hlgeb0ut5q] {
        grid-template-columns: 1fr;
    }

    .source-tabs[b-hlgeb0ut5q] {
        gap: .2rem;
        padding: .25rem;
    }

    .source-tab[b-hlgeb0ut5q] {
        gap: .25rem;
        padding: .55rem .25rem;
        font-size: .88rem;
        line-height: 1;
    }

    .source-tab i[b-hlgeb0ut5q] {
        flex-shrink: 0;
        font-size: .92rem;
    }

    .source-preview-head[b-hlgeb0ut5q] {
        flex-direction: column;
    }

    .extract-hero .btn[b-hlgeb0ut5q],
    .url-source-row .btn[b-hlgeb0ut5q],
    .extract-input-actions[b-hlgeb0ut5q],
    .extract-input-actions .btn[b-hlgeb0ut5q],
    .result-actions[b-hlgeb0ut5q],
    .result-actions .btn[b-hlgeb0ut5q] {
        width: 100%;
    }

    .candidate-grid[b-hlgeb0ut5q] {
        grid-template-columns: 1fr;
    }
}
/* _content/LinguaNote/Components/Pages/XPostDrafts.razor.rz.scp.css */
.x-drafts-page[b-056lv25h1f] {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem 5rem;
}

.x-drafts-header[b-056lv25h1f] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.x-drafts-kicker[b-056lv25h1f] {
    margin-bottom: .25rem;
    color: #64748b;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.x-drafts-header-actions[b-056lv25h1f] {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
}

.x-draft-list[b-056lv25h1f] {
    display: grid;
    gap: 1rem;
}

.x-draft-summary[b-056lv25h1f] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: 1rem;
}

.x-draft-summary > div[b-056lv25h1f] {
    padding: .8rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

.x-draft-summary span[b-056lv25h1f],
.x-draft-fields span[b-056lv25h1f],
.x-draft-url-grid span[b-056lv25h1f] {
    display: block;
    margin-bottom: .25rem;
    color: #64748b;
    font-size: .78rem;
    font-weight: 700;
}

.x-draft-summary strong[b-056lv25h1f] {
    display: block;
    font-size: 1.35rem;
}

.x-draft-card[b-056lv25h1f] {
    border-radius: 8px;
}

.x-draft-meta[b-056lv25h1f] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.x-draft-date[b-056lv25h1f] {
    font-weight: 700;
    margin-right: .5rem;
}

.x-draft-status[b-056lv25h1f] {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    padding: .15rem .55rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: .78rem;
    font-weight: 700;
}

.x-draft-status.is-posted[b-056lv25h1f] {
    background: #ede9fe;
    color: #5b21b6;
}

.x-draft-fields[b-056lv25h1f],
.x-draft-url-grid[b-056lv25h1f] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: 1rem;
}

.x-draft-url-grid[b-056lv25h1f] {
    margin-top: 1rem;
}

.x-draft-grid[b-056lv25h1f] {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 1rem;
}

.x-draft-preview[b-056lv25h1f] {
    min-height: 10.5rem;
    padding: .75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
    white-space: pre-wrap;
}

.x-draft-textarea[b-056lv25h1f] {
    min-height: 10.5rem;
    resize: vertical;
}

.x-draft-actions[b-056lv25h1f] {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .x-drafts-header[b-056lv25h1f],
    .x-draft-meta[b-056lv25h1f] {
        flex-direction: column;
    }

    .x-draft-grid[b-056lv25h1f] {
        grid-template-columns: 1fr;
    }

    .x-draft-summary[b-056lv25h1f],
    .x-draft-fields[b-056lv25h1f],
    .x-draft-url-grid[b-056lv25h1f] {
        grid-template-columns: 1fr;
    }

    .x-drafts-header-actions[b-056lv25h1f],
    .x-drafts-header .btn[b-056lv25h1f],
    .x-draft-actions .btn[b-056lv25h1f] {
        width: 100%;
    }

    .x-drafts-header-actions[b-056lv25h1f] {
        flex-direction: column;
    }
}
/* _content/LinguaNote/Shared/MainLayout.razor.rz.scp.css */
.page[b-e76t34y5m4] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main[b-e76t34y5m4] {
    flex: 1;
}

.page--landing[b-e76t34y5m4] {
    display: block;
}

.content.content--landing[b-e76t34y5m4] {
    max-width: none;
    padding-top: 0;
    padding-bottom: 0;
}

.sidebar[b-e76t34y5m4] {
    background: #FDFCF9;
    border-right: 1px solid #DDD9D0;
    overflow: visible;
    z-index: 20;
}

.content[b-e76t34y5m4] {
    padding-top: 1.5rem;
    padding-bottom: 6rem;
    max-width: 960px;
    margin: 0 auto;
}

.content.content--diary[b-e76t34y5m4] {
    width: 100%;
    max-width: none;
}

.content.content--dashboard[b-e76t34y5m4] {
    width: 100%;
    max-width: none;
    padding: 0 0 2rem !important;
}

body.dark-mode .page[b-e76t34y5m4],
body.dark-mode main[b-e76t34y5m4],
body.dark-mode .content[b-e76t34y5m4] {
    background-color: #F0ECE4;
}

@media (max-width: 640px) {
    .sidebar[b-e76t34y5m4] {
        width: 100%;
        background: transparent;
    }

    main[b-e76t34y5m4] {
        min-width: 0;
        width: 100%;
    }

    article.content--diary[b-e76t34y5m4] {
        padding: 0.65rem 0.65rem 5.5rem !important;
    }
}

@media (min-width: 641px) {
    .content[b-e76t34y5m4] {
        padding-bottom: 2rem;
    }

    .page[b-e76t34y5m4] {
        flex-direction: row;
    }

    .sidebar[b-e76t34y5m4] {
        width: 76px;
        height: 100vh;
        position: sticky;
        top: 0;
        overflow: visible;
    }

    article[b-e76t34y5m4] {
        padding-left: 2.25rem !important;
        padding-right: 2.25rem !important;
    }

    article.content--landing[b-e76t34y5m4] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    article.content--diary[b-e76t34y5m4] {
        padding: 1rem 1.2rem 2rem !important;
    }
}

#blazor-error-ui[b-e76t34y5m4] {
    background: #fef9c3;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss[b-e76t34y5m4] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* _content/LinguaNote/Shared/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-l9zv5juf73] {
    appearance: none;
    cursor: pointer;
    width: 2.45rem;
    height: 2.45rem;
    color: #111827;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.05) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2817, 24, 39, 0.88%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.45rem;
    box-shadow: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.top-row[b-l9zv5juf73] {
    width: 100%;
    box-sizing: border-box;
    height: 4rem;
    min-height: 4rem;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
    backdrop-filter: blur(14px);
}

.notification-wrapper[b-l9zv5juf73] {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notification-button[b-l9zv5juf73] {
    position: relative;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    padding: 0;
    box-shadow: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.notification-button:hover[b-l9zv5juf73] {
    background: rgba(124, 58, 237, 0.08);
    color: #4f46e5;
    opacity: 1;
}

.notification-badge[b-l9zv5juf73] {
    position: absolute;
    top: 0.28rem !important;
    right: 0.28rem !important;
    width: 0.28rem !important;
    min-width: 0 !important;
    height: 0.28rem !important;
    min-height: 0 !important;
    padding: 0 !important;
    border-radius: 999px;
    background: #ef4444;
    border: 0 !important;
    box-shadow: 0 0 0 1.5px #ffffff;
    font-size: 0 !important;
    line-height: 0 !important;
    pointer-events: none;
}

.notification-panel[b-l9zv5juf73] {
    display: none;
}

.notification-panel--viewport[b-l9zv5juf73] {
    display: block;
    position: fixed;
    top: 4.55rem;
    right: 0.75rem;
    left: auto;
    width: min(17.5rem, calc(100vw - 1.5rem));
    max-height: calc(100dvh - 5.5rem);
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.12);
    padding: 0.68rem;
    z-index: 10000;
    overscroll-behavior: contain;
}

.notification-panel-header[b-l9zv5juf73] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.6rem;
    padding-bottom: 0.62rem;
    border-bottom: 1px solid #e5e7eb;
}

.notification-panel-title[b-l9zv5juf73] {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.12rem;
}

.notification-panel-subtitle[b-l9zv5juf73] {
    font-size: 0.68rem;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

.notification-panel-dot[b-l9zv5juf73] {
    width: 0.42rem;
    height: 0.42rem;
    flex: 0 0 0.42rem;
    border-radius: 999px;
    background: #ef4444;
    margin-top: 0.3rem;
}

.notification-item[b-l9zv5juf73] {
    padding: 0.58rem 0;
    border-bottom: 1px solid #eef2f7;
}

.notification-item:last-child[b-l9zv5juf73] {
    border-bottom: 0;
    padding-bottom: 0;
}

.notification-item-body[b-l9zv5juf73] {
    min-width: 0;
}

.notification-item-title[b-l9zv5juf73] {
    color: #111827;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 0.2rem;
}

.notification-item-body p[b-l9zv5juf73] {
    color: #64748b;
    font-size: 0.68rem;
    line-height: 1.45;
    margin: 0;
}

.notification-action[b-l9zv5juf73] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.65rem;
    margin-top: 0.48rem;
    padding: 0.3rem 0.62rem;
    border-radius: 6px;
    background: #111827;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    text-decoration: none;
}

.notification-action:hover[b-l9zv5juf73] {
    color: #ffffff;
    background: #1f2937;
}

.notification-action--secondary[b-l9zv5juf73] {
    background: #f1f5f9;
    color: #334155;
}

.notification-action--secondary:hover[b-l9zv5juf73] {
    background: #e2e8f0;
    color: #0f172a;
}

.navbar-brand[b-l9zv5juf73] {
    margin: 0;
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    color: #111827;
    text-decoration: none;
}

.navbar-brand:hover[b-l9zv5juf73],
.navbar-brand:focus[b-l9zv5juf73],
.navbar-brand:active[b-l9zv5juf73] {
    color: #111827;
    opacity: 1;
}

.brand-wordmark[b-l9zv5juf73] {
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    color: inherit;
}

.header-icons[b-l9zv5juf73] {
    display: inline-flex;
    align-self: center;
    align-items: center;
    gap: 0.7rem;
    margin-left: auto;
    margin-right: 4.9rem;
}

.header-icons > *[b-l9zv5juf73] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-icon[b-l9zv5juf73] {
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    text-decoration: none;
    box-shadow: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.header-icon:hover[b-l9zv5juf73] {
    background: rgba(124, 58, 237, 0.08);
    color: #4f46e5;
    opacity: 1;
}

.header-icon-svg[b-l9zv5juf73] {
    width: 1.48rem;
    height: 1.48rem;
    font-size: 1.48rem;
    display: block;
    flex: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-icon-svg--settings[b-l9zv5juf73] {
    width: 1.42rem;
    height: 1.42rem;
}

.header-icon-svg--notifications[b-l9zv5juf73] {
    width: 1.38rem;
    height: 1.38rem;
    transform: translateY(0.03rem);
}

.header-icon-svg--profile[b-l9zv5juf73] {
    width: 1.34rem;
    height: 1.34rem;
    transform: translateY(0.04rem);
}

.nav-item[b-l9zv5juf73] {
    font-size: 1rem;
    padding-bottom: 0.4rem;
}

.nav-item:first-of-type[b-l9zv5juf73] { padding-top: 0.9rem; }
.nav-item:last-of-type[b-l9zv5juf73] { padding-bottom: 1rem; }

.nav-item[b-l9zv5juf73]  .nav-link {
    color: #ffffff;
    border: 1px solid transparent;
    border-radius: 12px;
    height: 2.8rem;
    display: flex;
    align-items: center;
    line-height: 2.8rem;
    width: 100%;
    transition: all .18s ease;
}

.nav-item[b-l9zv5juf73]  .nav-link i {
    width: 1.2rem;
    margin-right: 0.72rem;
    color: #f3f4f6;
    text-align: center;
    flex: 0 0 1.2rem;
}

.nav-item[b-l9zv5juf73]  .nav-link .nav-upgrade-arrow {
    width: auto;
    margin-right: 0;
    flex: 0 0 auto;
}

.nav-item[b-l9zv5juf73]  a.active {
    background: #6b7280;
    border-color: #d1d5db;
    color: #ffffff;
}

.nav-item[b-l9zv5juf73]  a.active i { color: #ffffff; }

.nav-item[b-l9zv5juf73]  .nav-link:hover {
    background: #9ca3af;
    border-color: #d1d5db;
    color: #ffffff;
}

.nav-scrollable[b-l9zv5juf73] {
    display: none;
    background: #111827;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-scrollable.open[b-l9zv5juf73] { display: block; }

@media (max-width: 640px) {
    .top-row[b-l9zv5juf73] {
        width: 100vw;
        height: 4rem;
        min-height: 4rem;
        padding: 0 max(0.75rem, env(safe-area-inset-right)) 0 max(1rem, env(safe-area-inset-left)) !important;
        gap: 0.35rem;
        background: #1F2422;
        border-bottom: 1px solid rgba(246, 241, 232, 0.08);
        box-shadow: none;
        backdrop-filter: none;
    }

    .navbar-brand[b-l9zv5juf73] {
        min-width: 0;
        min-height: 0;
        margin-right: auto;
        color: #F6F1E8;
    }

    .brand-wordmark[b-l9zv5juf73] {
        font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
        font-size: 1rem;
        font-weight: 400;
        letter-spacing: 0.04em;
        text-transform: lowercase;
    }

    .header-icons[b-l9zv5juf73] {
        gap: 0.2rem;
        margin: 0;
    }

    .header-icon[b-l9zv5juf73],
    .notification-button[b-l9zv5juf73],
    .navbar-toggler[b-l9zv5juf73] {
        width: 2.5rem;
        height: 2.5rem;
        flex: 0 0 2.5rem;
        border-radius: 12px;
        color: #B7B2A7;
    }

    .header-icon:hover[b-l9zv5juf73],
    .notification-button:hover[b-l9zv5juf73] {
        color: #F6F1E8;
        background: rgba(246, 241, 232, 0.08);
    }

    .navbar-toggler[b-l9zv5juf73] {
        position: static;
        transform: none;
        margin-left: 0.1rem;
        background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28183, 178, 167, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M5 8h20M5 15h20M5 22h20'/%3e%3c/svg%3e") no-repeat center/1.35rem;
    }

    .navbar-toggler:hover[b-l9zv5juf73] {
        background-color: rgba(246, 241, 232, 0.08);
    }

    .nav-scrollable.open[b-l9zv5juf73] {
        position: fixed;
        top: 4rem;
        left: 0;
        right: 0;
        bottom: 0;
        overflow-y: auto;
        z-index: 200;
    }

    .bottom-nav[b-l9zv5juf73] {
        min-height: calc(3.75rem + env(safe-area-inset-bottom));
        grid-template-columns: repeat(6, minmax(0, 1fr));
        padding: 0.5rem max(0.25rem, env(safe-area-inset-right)) calc(0.5rem + env(safe-area-inset-bottom)) max(0.25rem, env(safe-area-inset-left));
        background: #1F2422;
        border-top: 1px solid rgba(246, 241, 232, 0.08);
        box-shadow: none;
        backdrop-filter: none;
    }

    .bottom-nav-item[b-l9zv5juf73] {
        gap: 0.2rem;
    }

    .bottom-nav-item--primary[b-l9zv5juf73] {
        transform: none;
    }

    .bottom-nav-icon-shell[b-l9zv5juf73],
    .bottom-nav-icon-shell--primary[b-l9zv5juf73] {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        color: #B7B2A7;
        background: transparent;
        box-shadow: none;
    }

    .bottom-nav-icon[b-l9zv5juf73],
    .bottom-nav-icon--primary[b-l9zv5juf73] {
        color: inherit;
        font-size: 1.18rem;
    }

    .bottom-nav-label[b-l9zv5juf73] {
        display: none;
    }

    .bottom-nav-item.active .bottom-nav-icon-shell[b-l9zv5juf73],
    .bottom-nav-hit.active .bottom-nav-icon-shell[b-l9zv5juf73],
    .bottom-nav-hit:hover .bottom-nav-icon-shell[b-l9zv5juf73],
    .bottom-nav-hit:focus-visible .bottom-nav-icon-shell[b-l9zv5juf73],
    .bottom-nav-item--primary.active .bottom-nav-icon-shell--primary[b-l9zv5juf73],
    .bottom-nav-item--primary .bottom-nav-hit:hover .bottom-nav-icon-shell--primary[b-l9zv5juf73],
    .bottom-nav-item--primary .bottom-nav-hit:focus-visible .bottom-nav-icon-shell--primary[b-l9zv5juf73] {
        color: #F6F1E8;
        background: rgba(246, 241, 232, 0.13);
        box-shadow: none;
        transform: none;
    }

    .bottom-nav-item.active .bottom-nav-label[b-l9zv5juf73] {
        color: #F6F1E8;
        font-weight: 600;
    }
}

.bottom-nav[b-l9zv5juf73] {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    min-height: 5rem;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 -14px 34px rgba(15, 23, 42, 0.1);
    z-index: 55;
    padding: 0.5rem max(0.4rem, env(safe-area-inset-right)) calc(0.55rem + env(safe-area-inset-bottom)) max(0.4rem, env(safe-area-inset-left));
    backdrop-filter: blur(14px);
    transition: transform 0.24s ease, opacity 0.2s ease;
    will-change: transform;
}

.bottom-nav--hidden[b-l9zv5juf73] {
    transform: translateY(calc(100% + env(safe-area-inset-bottom)));
    opacity: 0.01;
    pointer-events: none;
}

.bottom-nav-item[b-l9zv5juf73] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    min-width: 0;
}

.bottom-nav-item--primary[b-l9zv5juf73] {
    transform: translateY(-0.5rem);
}

.bottom-nav-hit[b-l9zv5juf73] {
    width: 100%;
    height: auto;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-icon-shell[b-l9zv5juf73] {
    position: relative;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #7a7f87;
    transition: color 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.bottom-nav-icon-shell--primary[b-l9zv5juf73] {
    width: 3.15rem;
    height: 3.15rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #111827 0%, #312e81 100%);
    color: #ffffff;
    box-shadow: 0 14px 24px rgba(17, 24, 39, 0.2);
}

.bottom-nav-icon-shell--badge[b-l9zv5juf73]::after {
    content: "";
    position: absolute;
    top: 0.05rem;
    right: -0.05rem;
    width: 0.55rem;
    height: 0.55rem;
    border: 2px solid rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    background: #ef4f5f;
}

.bottom-nav-icon-svg[b-l9zv5juf73] {
    width: 1.45rem;
    height: 1.45rem;
    display: block;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bottom-nav-icon[b-l9zv5juf73] {
    display: block;
    font-size: 1.32rem;
    line-height: 1;
}

.bottom-nav-icon--primary[b-l9zv5juf73] {
    color: #ffffff;
    font-size: 1.22rem;
}

.bottom-nav-icon-svg--plus[b-l9zv5juf73] {
    width: 1.3rem;
    height: 1.3rem;
    stroke-width: 2.3;
    stroke: #ffffff;
}

.bottom-nav-label[b-l9zv5juf73] {
    color: #7a7f87;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    pointer-events: none;
    user-select: none;
}

.bottom-nav-item.active .bottom-nav-icon-shell[b-l9zv5juf73],
.bottom-nav-hit.active .bottom-nav-icon-shell[b-l9zv5juf73],
.bottom-nav-hit:hover .bottom-nav-icon-shell[b-l9zv5juf73],
.bottom-nav-hit:focus-visible .bottom-nav-icon-shell[b-l9zv5juf73] {
    background: rgba(124, 58, 237, 0.1);
    color: #4f46e5;
    transform: translateY(-1px);
}

.bottom-nav-item--primary.active .bottom-nav-icon-shell--primary[b-l9zv5juf73],
.bottom-nav-item--primary .bottom-nav-hit:hover .bottom-nav-icon-shell--primary[b-l9zv5juf73],
.bottom-nav-item--primary .bottom-nav-hit:focus-visible .bottom-nav-icon-shell--primary[b-l9zv5juf73],
.bottom-nav-item--primary .bottom-nav-hit:active .bottom-nav-icon-shell--primary[b-l9zv5juf73] {
    background: linear-gradient(135deg, #111827 0%, #312e81 100%);
    color: #ffffff;
    transform: translateY(-1px) scale(1.02);
}

.bottom-nav-item--primary .bottom-nav-hit:active .bottom-nav-icon-shell--primary[b-l9zv5juf73] {
    background: linear-gradient(180deg, #0b1220 0%, #1f2937 100%);
    box-shadow: 0 12px 22px rgba(17, 24, 39, 0.28);
}

.bottom-nav-item--primary .bottom-nav-hit:active .bottom-nav-icon-svg--plus[b-l9zv5juf73] {
    stroke: #ffffff;
}

.bottom-nav-item.active .bottom-nav-label[b-l9zv5juf73] {
    color: #4f46e5;
    font-weight: 800;
}

.bottom-nav-hit:focus-visible[b-l9zv5juf73] {
    outline: 2px solid rgba(59, 130, 246, 0.22);
    outline-offset: -2px;
}

.header-icon:focus-visible[b-l9zv5juf73],
.notification-button:focus-visible[b-l9zv5juf73],
.navbar-toggler:focus-visible[b-l9zv5juf73] {
    outline: 2px solid rgba(255, 255, 255, 0.34);
    outline-offset: 4px;
}

.header-icon:active[b-l9zv5juf73],
.notification-button:active[b-l9zv5juf73],
.navbar-toggler:active[b-l9zv5juf73] {
    transform: translateY(-50%) scale(0.96);
}

.header-icon:active[b-l9zv5juf73],
.notification-button:active[b-l9zv5juf73] {
    transform: scale(0.96);
}

.bottom-nav-button[b-l9zv5juf73] {
    cursor: pointer;
}

@media (max-width: 500px) {
    .top-row[b-l9zv5juf73] {
        padding-right: max(0.55rem, env(safe-area-inset-right)) !important;
        padding-left: max(0.75rem, env(safe-area-inset-left)) !important;
    }

    .brand-wordmark[b-l9zv5juf73] {
        font-size: 0.92rem;
        letter-spacing: 0.03em;
    }

    .header-icons[b-l9zv5juf73] {
        gap: 0.05rem;
        margin-right: 0;
        flex-shrink: 0;
    }

    .header-icon[b-l9zv5juf73],
    .notification-button[b-l9zv5juf73] {
        width: 2.25rem;
        height: 2.25rem;
        flex-basis: 2.25rem;
    }

    .header-icon-svg[b-l9zv5juf73] {
        width: 1.3rem;
        height: 1.3rem;
        font-size: 1.3rem;
    }

    .header-icon-svg--settings[b-l9zv5juf73] {
        width: 1.24rem;
        height: 1.24rem;
    }

    .header-icon-svg--notifications[b-l9zv5juf73] {
        width: 1.2rem;
        height: 1.2rem;
    }

    .header-icon-svg--profile[b-l9zv5juf73] {
        width: 1.16rem;
        height: 1.16rem;
    }

    .notification-badge[b-l9zv5juf73] {
        top: 0.22rem !important;
        right: 0.22rem !important;
        width: 0.24rem !important;
        height: 0.24rem !important;
    }

    .notification-panel--viewport[b-l9zv5juf73] {
        top: 4.55rem;
        right: 0.6rem;
        left: auto;
        width: min(16.25rem, calc(100vw - 1.2rem));
        max-height: calc(100dvh - 5rem);
    }

    .bottom-nav[b-l9zv5juf73] {
        min-height: calc(3.75rem + env(safe-area-inset-bottom));
        padding-left: max(0.1rem, env(safe-area-inset-left));
        padding-right: max(0.1rem, env(safe-area-inset-right));
    }

    .bottom-nav-hit[b-l9zv5juf73] {
        min-height: 3.1rem;
    }

    .bottom-nav-icon-shell[b-l9zv5juf73] {
        width: 44px;
        height: 44px;
    }

    .bottom-nav-item--primary[b-l9zv5juf73] {
        transform: none;
    }

    .bottom-nav-icon-shell--primary[b-l9zv5juf73] {
        width: 44px;
        height: 44px;
    }

    .bottom-nav-label[b-l9zv5juf73] {
        font-size: 0.68rem;
    }
}

@media (min-width: 641px) {
    .navbar-toggler[b-l9zv5juf73] { display: none; }

    .header-icons[b-l9zv5juf73] {
        margin-right: 0;
    }


    .nav-scrollable[b-l9zv5juf73] {
        display: block;
        height: calc(100vh - 4rem);
        overflow-y: auto;
    }

    .notification-panel--viewport[b-l9zv5juf73] {
        top: 4.55rem;
        left: 0.7rem;
        right: auto;
        width: 15rem;
        max-height: calc(100vh - 5.3rem);
    }

    .bottom-nav[b-l9zv5juf73] {
        display: none;
    }
}

@media (max-width: 640px) {
    .top-row .navbar-toggler:active[b-l9zv5juf73] {
        transform: scale(0.96);
    }

    body.dark-mode .bottom-nav-icon-shell--primary[b-l9zv5juf73],
    body.dark-mode .bottom-nav-item--primary.active .bottom-nav-icon-shell--primary[b-l9zv5juf73],
    body.dark-mode .bottom-nav-item--primary .bottom-nav-hit:hover .bottom-nav-icon-shell--primary[b-l9zv5juf73],
    body.dark-mode .bottom-nav-item--primary .bottom-nav-hit:focus-visible .bottom-nav-icon-shell--primary[b-l9zv5juf73],
    body.dark-mode .bottom-nav-item--primary .bottom-nav-hit:active .bottom-nav-icon-shell--primary[b-l9zv5juf73] {
        color: #B7B2A7;
        background: transparent;
        box-shadow: none;
        transform: none;
    }

    body.dark-mode .bottom-nav-item--primary.active .bottom-nav-icon-shell--primary[b-l9zv5juf73] {
        color: #F6F1E8;
        background: rgba(246, 241, 232, 0.13);
    }
}

body.dark-mode .top-row[b-l9zv5juf73] {
    background: rgba(15, 23, 42, 0.96) !important;
    border-bottom-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.36);
}

body.dark-mode .navbar-brand[b-l9zv5juf73] {
    color: #f8fafc;
}

body.dark-mode .navbar-brand:hover[b-l9zv5juf73],
body.dark-mode .navbar-brand:focus[b-l9zv5juf73],
body.dark-mode .navbar-brand:active[b-l9zv5juf73] {
    color: #f8fafc;
}

body.dark-mode .header-icon[b-l9zv5juf73],
body.dark-mode .notification-button[b-l9zv5juf73] {
    color: #cbd5e1;
}

body.dark-mode .header-icon:hover[b-l9zv5juf73],
body.dark-mode .notification-button:hover[b-l9zv5juf73] {
    background: rgba(129, 140, 248, 0.16);
    color: #ffffff;
}

body.dark-mode .notification-badge[b-l9zv5juf73] {
    box-shadow: 0 0 0 1.5px #0f172a;
}

body.dark-mode .notification-panel[b-l9zv5juf73] {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.36);
}

body.dark-mode .notification-panel-header[b-l9zv5juf73],
body.dark-mode .notification-item[b-l9zv5juf73] {
    border-color: rgba(148, 163, 184, 0.16);
}

body.dark-mode .notification-panel-title[b-l9zv5juf73],
body.dark-mode .notification-item-title[b-l9zv5juf73] {
    color: #f8fafc;
}

body.dark-mode .notification-panel-subtitle[b-l9zv5juf73],
body.dark-mode .notification-item-body p[b-l9zv5juf73] {
    color: #cbd5e1;
}

body.dark-mode .notification-action[b-l9zv5juf73] {
    background: #f8fafc;
    color: #111827;
}

body.dark-mode .notification-action:hover[b-l9zv5juf73] {
    background: #e2e8f0;
    color: #111827;
}

body.dark-mode .notification-action--secondary[b-l9zv5juf73] {
    background: rgba(148, 163, 184, 0.16);
    color: #e2e8f0;
}

body.dark-mode .notification-action--secondary:hover[b-l9zv5juf73] {
    background: rgba(148, 163, 184, 0.26);
    color: #ffffff;
}

body.dark-mode .navbar-toggler[b-l9zv5juf73] {
    background: rgba(148, 163, 184, 0.13) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28248, 250, 252, 0.92%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.45rem;
    color: #f8fafc;
}

body.dark-mode .navbar-toggler:hover[b-l9zv5juf73] {
    background-color: rgba(129, 140, 248, 0.18);
}

body.dark-mode .bottom-nav[b-l9zv5juf73] {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(2, 6, 23, 0.98) 100%) !important;
    background-color: #020617 !important;
    border-top-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.42);
}

body.dark-mode .bottom-nav-icon-shell[b-l9zv5juf73] {
    color: #b2b7c2;
}

body.dark-mode .bottom-nav-icon-shell--primary[b-l9zv5juf73] {
    background: linear-gradient(180deg, #f8fafc 0%, #dbe4f0 100%);
    color: #111827;
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.3);
}

body.dark-mode .bottom-nav-icon-svg--plus[b-l9zv5juf73] {
    stroke: #111827;
}

body.dark-mode .bottom-nav-item.active .bottom-nav-icon-shell[b-l9zv5juf73],
body.dark-mode .bottom-nav-hit.active .bottom-nav-icon-shell[b-l9zv5juf73],
body.dark-mode .bottom-nav-hit:hover .bottom-nav-icon-shell[b-l9zv5juf73],
body.dark-mode .bottom-nav-hit:focus-visible .bottom-nav-icon-shell[b-l9zv5juf73],
body.dark-mode .bottom-nav-item.active .bottom-nav-label[b-l9zv5juf73] {
    color: #ffffff;
}

body.dark-mode .bottom-nav-label[b-l9zv5juf73] {
    color: #b2b7c2;
}

body.dark-mode .bottom-nav-item--primary.active .bottom-nav-icon-shell--primary[b-l9zv5juf73],
body.dark-mode .bottom-nav-item--primary .bottom-nav-hit:hover .bottom-nav-icon-shell--primary[b-l9zv5juf73],
body.dark-mode .bottom-nav-item--primary .bottom-nav-hit:focus-visible .bottom-nav-icon-shell--primary[b-l9zv5juf73],
body.dark-mode .bottom-nav-item--primary .bottom-nav-hit:active .bottom-nav-icon-shell--primary[b-l9zv5juf73] {
    background: linear-gradient(180deg, #f8fafc 0%, #dbe4f0 100%);
    color: #111827;
}

body.dark-mode .bottom-nav-item--primary .bottom-nav-hit:active .bottom-nav-icon-shell--primary[b-l9zv5juf73] {
    background: linear-gradient(180deg, #ffffff 0%, #dbe4f0 100%);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.38);
}

body.dark-mode .bottom-nav-item--primary .bottom-nav-hit:active .bottom-nav-icon-svg--plus[b-l9zv5juf73] {
    stroke: #ffffff;
}

body.dark-mode .bottom-nav-icon-shell--badge[b-l9zv5juf73]::after {
    border-color: rgba(24, 27, 33, 0.96);
}

body.dark-mode .notification-panel--viewport[b-l9zv5juf73] {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42);
}

body.dark-mode .notification-panel-header[b-l9zv5juf73],
body.dark-mode .notification-item[b-l9zv5juf73] {
    border-color: rgba(148, 163, 184, 0.18);
}

body.dark-mode .notification-panel-title[b-l9zv5juf73],
body.dark-mode .notification-item-title[b-l9zv5juf73] {
    color: #f8fafc;
}

body.dark-mode .notification-panel-subtitle[b-l9zv5juf73],
body.dark-mode .notification-item-body p[b-l9zv5juf73] {
    color: #cbd5e1;
}

body.dark-mode .notification-action[b-l9zv5juf73] {
    background: #f8fafc;
    color: #111827;
}

body.dark-mode .notification-action:hover[b-l9zv5juf73] {
    background: #e2e8f0;
    color: #111827;
}

body.dark-mode .notification-action--secondary[b-l9zv5juf73] {
    background: rgba(148, 163, 184, 0.16);
    color: #e2e8f0;
}

body.dark-mode .notification-action--secondary:hover[b-l9zv5juf73] {
    background: rgba(148, 163, 184, 0.26);
    color: #ffffff;
}

/* ============================================================
   Lexion desktop icon rail — 細いチャコールのアイコン棚
   （モバイルは従来の top-row + bottom-nav を維持）
   ============================================================ */
.lex-rail[b-l9zv5juf73] {
    display: none;
}

.lex-rail-logo[b-l9zv5juf73] {
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: #3D3630;
    text-decoration: none;
    text-align: center;
    line-height: 1;
}

.lex-rail-items[b-l9zv5juf73],
.lex-rail-bottom[b-l9zv5juf73] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
}

.lex-rail[b-l9zv5juf73]  .lex-rail-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #D8D2C5;
    background: transparent;
    border: none;
    text-decoration: none;
    font-size: 1.18rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.lex-rail[b-l9zv5juf73]  .lex-rail-link:hover,
.lex-rail[b-l9zv5juf73]  .lex-rail-link:focus-visible {
    color: #F6F1E8;
    background: rgba(246, 241, 232, 0.08);
    outline: none;
}

.lex-rail[b-l9zv5juf73]  .lex-rail-link.active,
.lex-rail[b-l9zv5juf73]  .lex-rail-link.is-active {
    color: #F6F1E8;
    background: rgba(246, 241, 232, 0.13);
}

@media (min-width: 641px) {
    .top-row[b-l9zv5juf73] {
        display: none;
    }

    .nav-scrollable[b-l9zv5juf73] {
        display: none !important;
    }

    .nav-scrollable.open[b-l9zv5juf73] {
        display: block !important;
        position: fixed;
        left: 76px;
        top: 0;
        bottom: 0;
        width: 250px;
        z-index: 200;
        overflow-y: auto;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
    }

    .lex-rail[b-l9zv5juf73] {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 100vh;
        width: 76px;
        padding: 1.15rem 0 1.3rem;
    }

    .lex-rail-items[b-l9zv5juf73] {
        flex: 1;
        margin-top: 1.4rem;
    }

    .lex-rail-bottom[b-l9zv5juf73] {
        margin-top: auto;
        padding-top: 0.6rem;
        border-top: 1px solid rgba(246, 241, 232, 0.08);
    }
}

@media (max-width: 640px) {
    .top-row .navbar-toggler:active[b-l9zv5juf73] {
        transform: scale(0.96);
    }

    body.dark-mode .bottom-nav-icon-shell--primary[b-l9zv5juf73],
    body.dark-mode .bottom-nav-item--primary.active .bottom-nav-icon-shell--primary[b-l9zv5juf73],
    body.dark-mode .bottom-nav-item--primary .bottom-nav-hit:hover .bottom-nav-icon-shell--primary[b-l9zv5juf73],
    body.dark-mode .bottom-nav-item--primary .bottom-nav-hit:focus-visible .bottom-nav-icon-shell--primary[b-l9zv5juf73],
    body.dark-mode .bottom-nav-item--primary .bottom-nav-hit:active .bottom-nav-icon-shell--primary[b-l9zv5juf73] {
        color: #B7B2A7;
        background: transparent;
        box-shadow: none;
        transform: none;
    }

    body.dark-mode .bottom-nav-item--primary.active .bottom-nav-icon-shell--primary[b-l9zv5juf73] {
        color: #F6F1E8;
        background: rgba(246, 241, 232, 0.13);
    }
}
