/* ═══════════════════════════════════════════
   ZLog · Custom Styles
   Tactile warmth, editorial typography,
   stitch-line dividers, zine aesthetics
   ═══════════════════════════════════════════ */

/* ── Google Fonts import: Fredoka, Nunito & Space Mono ── */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600&family=Nunito:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Airy Botanical & Daydream Green Palette — Soft Sunlit Mist-Cream */
  --bg:          #F7F9F4;
  --surface:     rgba(255, 255, 255, 0.78);
  --surface-solid: #FFFFFF;
  --surface-soft: #F0F5EC;
  --border:      #DEE7D7;
  --border-dash: #DEE7D7;

  /* Typography — Fredoka for headings & branding, Nunito for body text */
  --font-heading:    'Fredoka', -apple-system, sans-serif;
  --font-body:       'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-base:       'Fredoka', -apple-system, sans-serif;
  --font-serif:      'Nunito', -apple-system, sans-serif;
  --font-newsreader: 'Nunito', -apple-system, sans-serif;
  --font-sans:       'Nunito', -apple-system, sans-serif;
  --font-mono:       'Space Mono', 'SF Mono', Consolas, monospace;

  /* Ink Colors */
  --ink:         #1E2E24; /* deep forest green */
  --ink-muted:   #677A6D; /* soft mossy sage */
  --ink-light:   #8C9E92;

  /* Botanical Accents — Calm Sage & Celadon */
  --accent:       #537E60; /* calm botanical sage */
  --accent-hover: #43694E;
  --accent-soft:  #E6EFE2; /* pale celadon */
  --accent-tint:  rgba(83, 126, 96, 0.09);

  /* Ambient Daydream Glows */
  --glow-matcha:  #D9EAD3;
  --glow-mint:    #DCECE7;

  /* Sizing */
  --reader-width: 680px;
  --sidebar-width: 32%;
  --feed-width:    68%;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm:    0 2px 8px rgba(30, 46, 36, 0.04);
  --shadow-md:    0 8px 24px -4px rgba(83, 126, 96, 0.08);
  --shadow-float: 0 12px 30px -10px rgba(83, 126, 96, 0.14);
  --shadow-lg:    0 16px 40px -8px rgba(30, 46, 36, 0.10);
}

[data-theme="dark"] {
  /* Velvety Midnight Meadow */
  --bg:          #141D17;
  --surface:     rgba(27, 39, 31, 0.82);
  --surface-solid: #1B271F;
  --surface-soft: #223328;
  --border:      #26352B;
  --border-dash: #26352B;

  /* Ink Colors */
  --ink:         #E4EDE6; /* soft misty pearl-sage */
  --ink-muted:   #93A89A;
  --ink-light:   #6F8576;

  /* Botanical Accents */
  --accent:       #8CC29B; /* mint-sage accent */
  --accent-hover: #A2D4B0;
  --accent-soft:  rgba(140, 194, 155, 0.16);
  --accent-tint:  rgba(140, 194, 155, 0.10);

  /* Ambient Daydream Glows */
  --glow-matcha:  #182B1E;
  --glow-mint:    #152522;

  --shadow-sm:    0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md:    0 8px 24px -4px rgba(0, 0, 0, 0.35);
  --shadow-float: 0 12px 30px -10px rgba(0, 0, 0, 0.45);
  --shadow-lg:    0 16px 40px -8px rgba(0, 0, 0, 0.50);
}

/* ── Ambient Background Glows ── */
.ambient-glow {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  filter: blur(100px);
  -webkit-filter: blur(100px);
  opacity: 0.45;
  transition: opacity 0.5s ease;
}

.ambient-glow--1 {
  width: 520px;
  height: 520px;
  top: -120px;
  right: 6%;
  background: var(--glow-matcha);
}

.ambient-glow--2 {
  width: 440px;
  height: 440px;
  top: 36%;
  left: -80px;
  background: var(--glow-mint);
}

/* ── Base Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

p {
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.01em;
}

button, input, select {
  font-family: var(--font-heading);
}

textarea {
  font-family: var(--font-body);
}

/* ── Reading Progress Bar ── */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(247, 249, 244, 0.82);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

[data-theme="dark"] .site-header {
  background: rgba(20, 29, 23, 0.86);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-masthead-wrapper {
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.cat-mark {
  width: 32px;
  height: 32px;
  fill: var(--accent);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}

.site-logo:hover .cat-mark {
  transform: rotate(-6deg) scale(1.05);
}

.masthead-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.masthead-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.site-logo .logo-text {
  font-family: var(--font-base);
  font-style: normal;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
}

.sage-sparkle-icon {
  width: 14px;
  height: 14px;
  color: var(--sage-sparkle);
  flex-shrink: 0;
  display: inline-block;
  animation: gentle-sparkle 3s ease-in-out infinite alternate;
}

@keyframes gentle-sparkle {
  0% { transform: scale(0.9) rotate(0deg); opacity: 0.8; }
  50% { transform: scale(1.15) rotate(12deg); opacity: 1; }
  100% { transform: scale(0.95) rotate(-6deg); opacity: 0.85; }
}

.logo-byline {
  font-family: var(--font-base);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink-muted);
  line-height: 1.35;
  text-transform: lowercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Demo Tape Badge ── */
.demo-tape-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss-mono);
  background: var(--sage-tint);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  user-select: none;
  white-space: nowrap;
  line-height: 1.2;
}

.demo-tape-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--sage-sparkle);
  flex-shrink: 0;
  animation: rec-pulse 2s ease-in-out infinite;
}

@keyframes rec-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ── Buttons ── */
.btn {
  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--border-dash);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px -3px rgba(83, 126, 96, 0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
  border-color: var(--accent-hover);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px -3px rgba(83, 126, 96, 0.45);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-muted);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--ink);
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* ── Category Index Widget (Editorial Table of Contents in Right Sidebar) ── */
.index-card {
  font-family: var(--font-base);
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
  position: relative;
  box-sizing: border-box;
}

.index-card h4 {
  font-family: var(--font-base);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.index-card h4 svg {
  flex-shrink: 0;
  stroke: var(--accent);
}

.index-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.index-nav-item {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 6px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: #677A6D;
  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
  position: relative;
  text-transform: lowercase;
  border-radius: 0;
}

.index-nav-item:last-child {
  border-bottom: none;
}

.index-item-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.index-indicator {
  font-size: 11px;
  color: #537E60;
  display: inline-block;
  opacity: 0;
  width: 10px;
  flex-shrink: 0;
  transition: opacity 0.2s var(--ease);
}

.index-label {
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  padding: 1px 4px;
  border-radius: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.index-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #8C9E92;
  font-weight: 400;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  margin-left: 8px;
  transition: color 0.2s var(--ease);
}

/* Hover: Smooth 4px rightward slide (translate-x-1) with deep forest green text */
.index-nav-item:hover {
  transform: translateX(4px);
  color: #1E2E24;
}

.index-nav-item:hover .index-count {
  color: #537E60;
}

/* Active: Deep forest green, subtle dash to the left, soft matcha marker tint behind the text */
.index-nav-item.active {
  color: #1E2E24;
  font-weight: 500;
}

.index-nav-item.active .index-indicator {
  opacity: 1;
}

.index-nav-item.active .index-label {
  background: linear-gradient(transparent 56%, #D4E6CD 56%);
  color: #1E2E24;
}

.index-nav-item.active .index-count {
  color: #537E60;
  font-weight: 500;
}

/* Dark mode overrides */
[data-theme="dark"] .index-nav-item {
  border-bottom-color: rgba(140, 194, 155, 0.15);
  color: #93A89A;
}

[data-theme="dark"] .index-nav-item:hover {
  color: #E4EDE6;
}

[data-theme="dark"] .index-indicator {
  color: #8CC29B;
}

[data-theme="dark"] .index-count {
  color: #6F8576;
}

[data-theme="dark"] .index-nav-item.active {
  color: #E4EDE6;
}

[data-theme="dark"] .index-nav-item.active .index-label {
  background: linear-gradient(transparent 56%, rgba(140, 194, 155, 0.3) 56%);
  color: #E4EDE6;
}

[data-theme="dark"] .index-nav-item.active .index-count {
  color: #8CC29B;
}

/* ═══════════════════════════════════════
   OPEN GRAPH-PAPER DIARY SPREAD
   ═══════════════════════════════════════ */

/* ── Graph-Paper Diary Container ── */
.diary-notebook {
  max-width: 920px;
  margin: 36px auto 100px;
  width: calc(100% - 32px);
  background-color: #FAFDF8;
  background-image: 
    linear-gradient(to right, #EDF3E8 1px, transparent 1px),
    linear-gradient(to bottom, #EDF3E8 1px, transparent 1px);
  background-size: 24px 24px;
  border-radius: 28px;
  border: 1px solid #DCE5D5;
  box-shadow: 0 16px 40px -12px rgba(30, 46, 36, 0.08), 0 4px 16px rgba(30, 46, 36, 0.03);
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .diary-notebook {
  background-color: #142018;
  background-image: 
    linear-gradient(to right, rgba(38, 53, 43, 0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(38, 53, 43, 0.6) 1px, transparent 1px);
  border-color: #26352B;
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.5);
}

/* ── Top Notebook Actions Bar (Clean, borderless, no date/title) ── */
.diary-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 18px 24px 0 24px;
  position: relative;
  z-index: 30;
}

.diary-running-header,
.diary-date-stamp,
.diary-running-title {
  display: none !important;
}

.sage-sparkle-icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
  cursor: pointer;
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}

.sage-sparkle-icon:hover {
  transform: rotate(18deg) scale(1.15);
}

/* ── Top Spread ("Dear Diary" & Paperclipped Currently) ── */
.diary-top-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

@media (max-width: 768px) {
  .diary-top-spread {
    grid-template-columns: 1fr;
  }
}

.diary-spread-left {
  padding: 38px 36px 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  position: relative;
  box-shadow: inset -12px 0 18px -14px rgba(30, 46, 36, 0.08);
  border-right: 1px solid rgba(220, 229, 213, 0.6);
}

[data-theme="dark"] .diary-spread-left {
  box-shadow: inset -12px 0 18px -14px rgba(0, 0, 0, 0.35);
  border-right-color: rgba(38, 53, 43, 0.6);
}

@media (max-width: 768px) {
  .diary-spread-left {
    border-right: none;
    border-bottom: 1px solid #E5EDE0;
    box-shadow: none;
    padding: 28px 24px 24px;
    gap: 14px;
  }
  [data-theme="dark"] .diary-spread-left {
    border-bottom-color: #26352B;
  }
}

.diary-salutation-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 2px;
}

.diary-salutation {
  font-family: var(--font-base);
  font-size: 26px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.015em;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  transition: opacity 0.2s var(--ease);
}

.diary-salutation:hover {
  opacity: 0.85;
}

.diary-intro-body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 0;
}

.diary-intro-stanza {
  margin-top: 14px;
}

/* Hand-drawn sage SVG oval ring */
.circled-phrase {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  font-weight: 500;
  color: var(--ink);
  padding: 0 4px;
}

.hand-drawn-oval {
  position: absolute;
  top: -6px;
  left: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 12px);
  pointer-events: none;
}

.diary-spread-author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.diary-author-signoff {
  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

/* ── Paperclipped "CURRENTLY" Scrap ── */
.diary-spread-right {
  padding: 34px 34px 34px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .diary-spread-right {
    padding: 28px 20px 32px;
  }
}

.currently-scrap {
  width: 100%;
  max-width: 380px;
  background: #FFFFFF;
  border: 1px solid #DCE5D5;
  border-radius: 12px;
  padding: 22px 24px 20px;
  transform: rotate(0.75deg);
  box-shadow: 0 10px 24px -6px rgba(30, 46, 36, 0.08), 0 2px 6px rgba(30, 46, 36, 0.03);
  position: relative;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.currently-scrap:hover {
  transform: rotate(0deg);
  box-shadow: 0 14px 28px -6px rgba(30, 46, 36, 0.12);
}

[data-theme="dark"] .currently-scrap {
  background: #1C2B21;
  border-color: #26352B;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.4);
}

.paperclip-badge {
  position: absolute;
  top: -18px;
  right: 28px;
  z-index: 5;
  filter: drop-shadow(0 2px 3px rgba(30, 46, 36, 0.15));
}

.currently-scrap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 1px solid #EEF3EA;
  padding-bottom: 8px;
}

[data-theme="dark"] .currently-scrap-header {
  border-bottom-color: #26352B;
}

.currently-scrap-title {
  font-family: var(--font-base);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}

.currently-scrap-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.currently-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-base);
}

.currently-tag {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.currently-tag-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cassette-badge {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
}

.hand-drawn-arrow {
  stroke: var(--accent);
  vertical-align: middle;
}

.currently-text {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.4;
}

.currently-value-text.clickable {
  cursor: pointer;
  transition: color 0.15s ease;
}

.currently-value-text.clickable:hover {
  color: var(--accent);
}

/* ── Divider Across Notebook Page ── */
.diary-divider {
  border: none;
  border-top: 1px solid #E5EDE0;
  margin: 0;
}

[data-theme="dark"] .diary-divider {
  border-top-color: #26352B;
}

/* ── Bottom Journal Entries Section ── */
.diary-entries-section {
  padding: 34px 36px 64px;
}

@media (max-width: 768px) {
  .diary-entries-section {
    padding: 26px 18px 48px;
  }
}

.diary-entries-header {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.diary-entries-kicker {
  font-family: var(--font-base);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}

/* ── Stacked Loose Diary Paper Slips ── */
.diary-papers-stack {
  display: flex;
  flex-direction: column;
}

.diary-paper-slip {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #DCE5D5;
  border-radius: 18px 18px 12px 12px;
  padding: 26px 32px 24px;
  box-shadow: 0 4px 14px -3px rgba(30, 46, 36, 0.05);
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.diary-paper-slip:nth-child(even) {
  background: #F7FAF4;
}

.diary-paper-slip:not(:first-child) {
  margin-top: -10px;
}

.diary-paper-slip:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -6px rgba(30, 46, 36, 0.1);
  z-index: 10;
}

[data-theme="dark"] .diary-paper-slip {
  background: #1C2B21;
  border-color: #26352B;
  box-shadow: 0 4px 14px -3px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .diary-paper-slip:nth-child(even) {
  background: #18251C;
}

.ribbon-bookmark {
  position: absolute;
  top: 0;
  right: 28px;
  width: 18px;
  height: 26px;
  z-index: 2;
  filter: drop-shadow(0 2px 3px rgba(30, 46, 36, 0.15));
  transition: transform 0.2s var(--ease);
}

.diary-paper-slip:hover .ribbon-bookmark {
  transform: translateY(-2px);
}

.diary-paper-slip.empty-state {
  text-align: center;
  padding: 64px 24px;
  margin-top: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Dedicated Single-Entry Reader Page ── */
.single-entry-view {
  max-width: 680px;
  margin: 0 auto;
  padding: 36px 36px 80px;
  width: 100%;
  animation: fadeIn 0.25s ease;
}

@media (max-width: 768px) {
  .single-entry-view {
    padding: 24px 18px 60px;
  }
}

.single-entry-topbar {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.single-entry-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.entry-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 6px 14px;
  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.entry-back-btn:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--surface-soft);
  transform: translateX(-2px);
}

.single-entry-title {
  font-family: var(--font-base);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 12px 0 8px;
}

.single-entry-subtitle {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

/* ── Slide-Over Index Drawer ── */
.index-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 46, 36, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 450;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.index-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.index-slideover {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 288px;
  max-width: calc(100vw - 32px);
  z-index: 460;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  overflow-y: auto;
  background: rgba(250, 253, 248, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-left: 1px solid #DCE5D5;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 32px rgba(30, 46, 36, 0.08);
}

.index-slideover.open {
  transform: translateX(0);
}

[data-theme="dark"] .index-slideover {
  background: rgba(20, 32, 24, 0.96);
  border-left-color: #26352B;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.45);
}

.index-slideover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.index-slideover-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
}

.index-slideover-close {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.index-slideover-close:hover {
  color: var(--ink);
  background: var(--surface-soft);
  border-color: var(--border);
}
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--accent);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.currently-label svg {
  flex-shrink: 0;
  stroke: var(--accent);
}

.currently-value {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.4;
}

.currently-value.clickable {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: solid;
  text-underline-offset: 2px;
  text-decoration-color: var(--border);
}

.currently-value.clickable:hover {
  color: var(--accent);
}

.edit-status-btn {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-base);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 2.5px 8.5px;
  opacity: 0.95;
  transition: all 0.2s var(--ease);
  line-height: 1;
}

.edit-status-btn:hover {
  opacity: 1;
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

.entry-edit-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-base);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 1.5px 7.5px;
  margin-left: 6px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  line-height: 1.3;
  vertical-align: middle;
}

.entry-edit-pill:hover {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

.reader-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-base);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 4px 12px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-decoration: none;
  line-height: 1.3;
}

.reader-edit-btn:hover {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

/* ── Status Editor Modal ── */
.status-editor-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-editor-fields label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.status-editor-fields input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s;
}

.status-editor-fields input:focus {
  border-color: var(--accent);
}

/* ── Live Now Playing Pulse Dot ── */
.pulse-dot {
  display: inline-block;
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background-color: var(--accent);
  margin-left: 6px;
  vertical-align: middle;
  position: relative;
  box-shadow: 0 0 0 0 rgba(83, 126, 96, 0.7);
  animation: pulse-sage 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

[data-theme="dark"] .pulse-dot {
  box-shadow: 0 0 0 0 rgba(140, 194, 155, 0.7);
  animation: pulse-sage-dark 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-sage {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(83, 126, 96, 0.65);
  }
  65% {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(83, 126, 96, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(83, 126, 96, 0);
  }
}

@keyframes pulse-sage-dark {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(140, 194, 155, 0.65);
  }
  65% {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(140, 194, 155, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(140, 194, 155, 0);
  }
}

/* ── Status Modal & Connect Last.fm Section ── */
.status-modal-box {
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
}

.lastfm-section {
  margin-top: 8px;
  padding: 14px 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.lastfm-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.lastfm-title-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0 !important;
}

.lastfm-title-label svg {
  stroke: var(--accent);
  flex-shrink: 0;
}

.lastfm-hint {
  font-size: 11.5px;
  color: var(--ink-muted);
  line-height: 1.45;
  margin-bottom: 12px;
}

.lastfm-inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lastfm-field label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 4px;
}

.lastfm-test-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.lastfm-status-msg {
  font-size: 11.5px;
  color: var(--ink-muted);
  line-height: 1.35;
  word-break: break-word;
}

.lastfm-status-msg.success {
  color: var(--accent);
  font-weight: 500;
}

.lastfm-status-msg.error {
  color: #B2533E;
}

.currently-link-icon {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 4px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.currently-value.clickable:hover .currently-link-icon {
  opacity: 1;
}

/* ── Entry Cards (Separate Rectangles for Each Post) ── */
.entry-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 36px;
  margin-bottom: 24px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  position: relative;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .entry-card {
  background: rgba(27, 39, 31, 0.82);
  border-color: #26352B;
}

.entry-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
  border-color: var(--border);
}

[data-theme="dark"] .entry-card:hover {
  border-color: #26352B;
}

.entry-card:focus,
.entry-card:active,
.entry-card:focus-visible {
  outline: none !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] .entry-card:focus,
[data-theme="dark"] .entry-card:active,
[data-theme="dark"] .entry-card:focus-visible {
  outline: none !important;
  border-color: #26352B !important;
}

.entry-card:hover h2 {
  color: var(--accent);
}

.entry-card:last-child {
  margin-bottom: 0;
}

.entry-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.entry-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

.location-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.entry-card h2 {
  font-family: var(--font-base);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 6px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.entry-card .entry-subtitle {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 400;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.entry-cover {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  margin-bottom: 14px;
  overflow: hidden;
}

.entry-cover-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.4s var(--ease);
}

.entry-card:hover .entry-cover-inner {
  transform: scale(1.03);
}

/* ── Song Pill ── */
.song-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px 5px 10px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.song-pill:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.song-pill--note {
  cursor: default;
  opacity: 0.9;
}

.song-pill--note:hover {
  color: var(--ink-muted);
  border-color: var(--border);
  background: var(--bg);
}

.song-pill .pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.song-pill .pill-icon svg {
  display: block;
}

.song-pill.playing {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(200,109,81,0.06);
}

[data-theme="dark"] .song-pill.playing {
  background: rgba(217,130,102,0.08);
}

.song-pill.playing .pill-icon {
  animation: pulse-icon 1.5s ease infinite;
}

@keyframes pulse-icon {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Clean Editorial Post Card Tag Labels (No Bubble Shapes) ── */
.entry-tags {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.entry-tag {
  font-family: var(--font-base);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink-muted);
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: inherit;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.entry-tag:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transform: none;
}

/* Category subtle color accents on typography */
.entry-tag--mdl {
  color: var(--accent) !important;
  font-weight: 500;
}

[data-theme="dark"] .entry-tag--mdl {
  color: var(--accent) !important;
}

.entry-tag--nocturnal {
  color: #4A6E6B !important;
}

[data-theme="dark"] .entry-tag--nocturnal {
  color: #9FC4C0 !important;
}

.entry-tag--rants {
  color: #8C584C !important;
}

[data-theme="dark"] .entry-tag--rants {
  color: #D4A89F !important;
}

.entry-tag--braindump {
  color: #3D6147 !important;
}

[data-theme="dark"] .entry-tag--braindump {
  color: #A9D1B3 !important;
}

.entry-tag--tinywins {
  color: #385E4E !important;
}

[data-theme="dark"] .entry-tag--tinywins {
  color: #9FC9B5 !important;
}

.entry-tag--fieldnotes {
  color: #5E5745 !important;
}

[data-theme="dark"] .entry-tag--fieldnotes {
  color: #C7BD9F !important;
}

.entry-tag--slowafternoons {
  color: #476145 !important;
}

[data-theme="dark"] .entry-tag--slowafternoons {
  color: #A5C4A3 !important;
}

[data-theme="dark"] .entry-tag--slowafternoons {
  background: #212C1E !important;
  color: #B6D1B0 !important;
  border: 1px solid rgba(182, 209, 176, 0.25) !important;
}

.entry-tag--default {
  background: var(--surface-soft);
  color: var(--ink-muted);
  border: 1px solid var(--border);
}

/* ── Reader View Overlay ── */
.reader-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  overflow-y: auto;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.35s var(--ease);
}

.reader-overlay.open {
  transform: translateY(0);
  opacity: 1;
}

.reader-close {
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 210;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
}

.reader-close:hover {
  background: var(--border);
  color: var(--ink);
}

.reader-content {
  max-width: var(--reader-width);
  margin: 0 auto;
  padding: 60px 24px 160px;
}

.reader-header {
  margin-bottom: 32px;
}

.reader-header .entry-meta {
  margin-bottom: 16px;
}

.reader-header h1 {
  font-family: var(--font-base);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.reader-header .reader-subtitle {
  font-family: var(--font-base);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-muted);
  line-height: 1.6;
  font-style: normal;
  letter-spacing: 0.005em;
}

/* ── Inline Soundtrack Card ── */
.soundtrack-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 36px;
  display: flex;
  gap: 18px;
  align-items: center;
}

.vinyl-art {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vinyl-art::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  z-index: 1;
}

.vinyl-art::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
}

.vinyl-art.spinning {
  animation: spin-vinyl 4s linear infinite;
}

@keyframes spin-vinyl {
  to { transform: rotate(360deg); }
}

.soundtrack-info {
  flex: 1;
  min-width: 0;
}

.soundtrack-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.soundtrack-kicker svg {
  flex-shrink: 0;
  stroke: var(--ink-muted);
}

.soundtrack-info .track-title {
  font-family: var(--font-base);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.soundtrack-info .track-artist {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.soundtrack-info .track-note {
  font-size: 12.5px;
  color: var(--ink-muted);
  font-style: italic;
  line-height: 1.5;
  border-left: 2px solid var(--accent);
  padding-left: 10px;
}

.soundtrack-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.soundtrack-card--note {
  background: var(--surface-soft);
}

.soundtrack-platform-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 6px;
}

.soundtrack-external-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--ink-muted);
  background: var(--surface);
  transition: all 0.2s var(--ease);
}

.soundtrack-external-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--surface-soft);
}

.play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.play-btn:hover {
  background: var(--accent-hover);
}

.play-btn svg,
.mini-play-btn svg {
  display: block;
}

.play-btn .icon-play,
.mini-play-btn .icon-play {
  margin-left: 1.5px;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
}

/* ── Reader Body Typography ── */
.reader-body {
  font-family: var(--font-body);
  font-size: 17.5px;
  font-weight: 400;
  line-height: 1.8;
  max-width: 65ch;
  color: var(--ink);
  letter-spacing: 0.005em;
}

.reader-body p {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 1.6em;
}

.reader-body p:first-of-type::first-letter {
  font-family: var(--font-heading);
  font-size: 3.2em;
  float: left;
  line-height: 0.85;
  padding-right: 10px;
  padding-top: 4px;
  color: var(--accent);
  font-weight: 500;
}

.reader-body blockquote {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-muted);
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 2em 0;
}

.reader-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1.5em 0;
}

.reader-body figcaption {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--ink-muted);
  text-align: center;
  margin-top: -0.5em;
  margin-bottom: 1.5em;
}

/* ── Floating Soundtrack Mini Player ── */
.mini-player {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  width: min(540px, calc(100vw - 32px));
  z-index: 450;
  background: #FFFFFF;
  border: 1px solid #DEE7D7;
  border-radius: 20px; /* rounded-2xl cloud-white framing */
  box-shadow: 0 18px 40px -8px rgba(83, 126, 96, 0.20), 0 4px 16px rgba(30, 46, 36, 0.06);
  padding: 14px 18px 16px 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
}

[data-theme="dark"] .mini-player {
  background: #1B271F;
  border-color: #26352B;
  box-shadow: 0 18px 44px -8px rgba(0, 0, 0, 0.55), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.mini-player.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mini-player-inner {
  width: 100%;
}

.mini-player-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.mini-vinyl {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mini-vinyl::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.mini-vinyl.spinning {
  animation: spin-vinyl 3s linear infinite;
}

.mini-player-info {
  flex: 1;
  min-width: 0;
}

.mini-player-info .mini-title {
  font-family: var(--font-base);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.mini-player-info .mini-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.mini-player-info .mini-artist {
  font-family: var(--font-base);
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-source-badge {
  display: none !important;
}

.mini-player-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mini-close-btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.mini-player-media {
  width: 100%;
}

.embed-iframe-box {
  width: 100%;
}

.embed-iframe-box iframe {
  width: 100%;
  display: block;
}

/* ── Hidden YouTube Audio Frame (Audio-Only, strictly no video displayed) ── */
#yt-audio-holder,
.hidden-audio-frame,
#yt-player-target {
  position: fixed !important;
  bottom: 0 !important;
  right: 0 !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0.001 !important;
  pointer-events: none !important;
  border: 0 !important;
  z-index: -1 !important;
  overflow: hidden !important;
}

#yt-audio-holder iframe,
.hidden-audio-frame iframe {
  position: fixed !important;
  bottom: 0 !important;
  right: 0 !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0.001 !important;
  pointer-events: none !important;
  border: 0 !important;
  z-index: -1 !important;
}

/* ── Direct Audio Box ── */
.direct-audio-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
}

.direct-audio-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.direct-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.direct-play-btn:hover {
  background: var(--accent-hover);
}

.direct-play-btn svg {
  display: block;
}

.direct-play-btn .icon-play {
  margin-left: 1.5px;
}

.audio-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.audio-scrubber {
  flex: 1;
  min-width: 60px;
  height: 4px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ── Full-Page Substack Editorial Writing Canvas ── */
.editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--bg);
  overflow-y: hidden;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
  display: flex;
  flex-direction: column;
}

.editor-overlay.open {
  transform: translateY(0);
  opacity: 1;
}

/* Sticky Top Formatting & Action Bar */
.canvas-topbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.canvas-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.canvas-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.canvas-btn:hover {
  color: var(--ink);
  background: var(--surface-soft);
  border-color: var(--border);
}

.canvas-history-group {
  display: flex;
  align-items: center;
  gap: 3px;
  border-left: 1px solid var(--border);
  padding-left: 10px;
}

.canvas-icon-btn {
  width: 28px;
  height: 28px;
}

.canvas-topbar-center {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding: 0 4px;
  scrollbar-width: none;
}
.canvas-topbar-center::-webkit-scrollbar { display: none; }

.canvas-bar-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 6px;
  flex-shrink: 0;
}

.canvas-style-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.canvas-select {
  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease;
}
.canvas-select:focus {
  border-color: var(--accent);
}

.canvas-format-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-base);
  font-size: 13.5px;
  flex-shrink: 0;
}

.canvas-format-btn:hover {
  background: var(--surface-soft);
  color: var(--accent);
  border-color: var(--border);
}

.canvas-format-btn.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

.canvas-matcha-chip {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: #D4E6CD;
  border: 1px solid rgba(83, 126, 96, 0.4);
  display: inline-block;
}

.canvas-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.canvas-preview-btn {
  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
}

.canvas-preview-btn:hover {
  background: var(--surface-soft);
  color: var(--accent);
  border-color: var(--border);
}

.canvas-preview-btn.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

.canvas-publish-btn {
  background: var(--accent) !important;
  color: #ffffff !important;
  border: 1px solid var(--accent) !important;
  border-radius: 9999px;
  padding: 7px 20px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-base);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(83, 126, 96, 0.25);
}

.canvas-publish-btn:hover {
  background: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  transform: translateY(-1px);
}

/* Centered Writing Canvas */
.canvas-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 56px 24px 160px;
}

.canvas-container {
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

.canvas-title-input {
  width: 100%;
  font-family: var(--font-base);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  margin-bottom: 12px;
  padding: 0;
  box-sizing: border-box;
  display: block;
}

.canvas-title-input::placeholder {
  color: var(--ink-light);
  opacity: 0.55;
  font-weight: 500;
}

.canvas-subtitle-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-muted);
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  margin-bottom: 22px;
  padding: 0;
  box-sizing: border-box;
  display: block;
}

.canvas-subtitle-input::placeholder {
  color: var(--ink-light);
  opacity: 0.55;
}

/* Inline Category Selector (Right beneath Subtitle) */
.canvas-category-section {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.canvas-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.canvas-category-tab {
  font-family: var(--font-base);
  font-size: 12.5px;
  font-weight: 400;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  text-transform: lowercase;
  user-select: none;
}

.canvas-category-tab:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--surface-soft);
}

.canvas-category-tab.active {
  background: var(--accent) !important;
  color: #ffffff !important;
  border-color: var(--accent) !important;
  font-weight: 500;
}

.canvas-mdl-preview {
  margin-top: 10px;
  font-size: 12px;
  color: var(--accent);
  font-family: var(--font-base);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Collapsible Inline Soundtrack Strip */
.canvas-soundtrack-strip {
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  animation: fadeIn 0.2s ease;
}

.canvas-soundtrack-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-family: var(--font-base);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.canvas-soundtrack-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.canvas-soundtrack-close {
  background: transparent;
  border: none;
  font-size: 16px;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 0 4px;
}
.canvas-soundtrack-close:hover {
  color: var(--ink);
}

.canvas-soundtrack-inputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.canvas-inline-input {
  width: 100%;
  font-family: var(--font-base);
  font-size: 13.5px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.canvas-inline-input:focus {
  border-color: var(--accent);
}

.canvas-soundtrack-meta-row {
  display: flex;
  gap: 8px;
}

.canvas-soundtrack-hint {
  font-size: 11px;
  color: var(--ink-muted);
  font-style: italic;
  margin-top: 2px;
}

/* Rich-Text Writing Canvas */
.canvas-body {
  min-height: 420px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink);
  outline: none;
  margin-top: 8px;
}

.canvas-body:empty:before {
  content: attr(data-placeholder);
  color: var(--ink-light);
  opacity: 0.55;
  pointer-events: none;
}

.canvas-body p {
  font-family: var(--font-body);
  margin-bottom: 1.5em;
}

.canvas-body h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  margin: 1.8em 0 0.8em;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.canvas-body h3 {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 500;
  margin: 1.5em 0 0.6em;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.canvas-body blockquote {
  font-family: var(--font-body);
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  color: var(--ink-muted);
  font-style: normal;
  margin: 1.8em 0;
  font-size: 17.5px;
  line-height: 1.75;
}

.canvas-body ul,
.canvas-body ol {
  padding-left: 26px;
  margin: 1.2em 0;
}

.canvas-body li {
  margin-bottom: 0.5em;
}

.canvas-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5em 0;
}

.canvas-body img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1.8em 0;
  display: block;
  border: 1px solid var(--border);
}

.canvas-body code {
  font-family: var(--font-mono);
  font-size: 14.5px;
  background: rgba(83, 126, 96, 0.08);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.canvas-body mark,
.canvas-body .matcha-highlight,
.reader-body mark,
.reader-body .matcha-highlight {
  background: #D4E6CD;
  color: #1E2E24;
  padding: 2px 4px;
  border-radius: 3px;
}

.canvas-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Live Preview Area */
.canvas-preview-area {
  padding-top: 10px;
  animation: fadeIn 0.25s ease;
}

.canvas-preview-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.canvas-preview-title {
  font-family: var(--font-base);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.canvas-preview-subtitle {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.canvas-preview-soundtrack {
  margin-bottom: 28px;
}

[data-theme="dark"] .canvas-topbar {
  background: var(--bg);
  border-color: #26352B;
}

[data-theme="dark"] .canvas-matcha-chip {
  background: #688B70;
  border-color: #8CC29B;
}

[data-theme="dark"] .canvas-category-tab {
  border-color: #26352B;
  color: #93A89A;
}

[data-theme="dark"] .canvas-category-tab:hover {
  background: #1B271F;
  color: #E4EDE6;
  border-color: var(--accent);
}

[data-theme="dark"] .canvas-body mark,
[data-theme="dark"] .canvas-body .matcha-highlight,
[data-theme="dark"] .reader-body mark,
[data-theme="dark"] .reader-body .matcha-highlight {
  background: #354E3C;
  color: #E4EDE6;
}

/* ── Live Preview Box for "might delete later" auto numbering ── */
.mdl-preview-box {
  margin-top: 10px;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.2s ease;
}

.mdl-preview-box strong {
  color: var(--accent);
  font-family: var(--font-base);
  font-style: normal;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.reader-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.reader-delete-btn {
  font-size: 12px;
  color: var(--ink-muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.reader-delete-btn:hover {
  color: #c94a29;
  border-color: #c94a29;
}

/* ── Modal (for status editor) ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  width: 90%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.25s var(--ease);
}

.modal-backdrop.open .modal-box {
  transform: scale(1);
}

.modal-box h3 {
  font-family: var(--font-base);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ── Clean Empty State (Separate Rectangle Card) ── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: #677A6D;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  outline: none;
}

.empty-state:focus,
.empty-state:active,
.empty-state:focus-visible {
  outline: none !important;
  border-color: var(--border) !important;
}

.empty-state-icon {
  width: 32px;
  height: 32px;
  stroke: #8C9E92;
  opacity: 0.7;
}

.empty-state-text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: #677A6D;
  margin: 0;
  letter-spacing: 0.01em;
}

[data-theme="dark"] .empty-state {
  background: rgba(27, 39, 31, 0.82);
  border-color: #26352B;
  color: #93A89A;
}

[data-theme="dark"] .empty-state-icon {
  stroke: #6F8576;
}

[data-theme="dark"] .empty-state-text {
  color: #93A89A;
}

/* ── Import/Export Section in Unified Sidebar ── */
.data-tools {
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.data-tools h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.data-tools-actions {
  display: flex;
  gap: 8px;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .main-layout {
    flex-direction: column;
    gap: 28px;
    padding: 20px 16px 120px;
  }

  .feed-column {
    width: 100%;
    order: 1;
    padding: 0;
    border-radius: 0;
  }

  .sidebar-column {
    width: 100%;
    max-width: 100%;
    order: 2;
    padding: 20px;
    border-radius: 20px;
  }

  .reader-header h1 {
    font-size: 28px;
  }

  .reader-body {
    font-size: 17px;
  }

  .editor-row {
    flex-direction: column;
    gap: 0;
  }

  .header-inner {
    padding: 0 16px;
  }

  .index-card {
    padding: 0;
  }
}

@media (max-width: 480px) {
  .header-inner {
    height: auto;
    min-height: 56px;
    padding: 8px 12px;
    gap: 8px;
  }

  .site-logo {
    gap: 8px;
  }

  .site-logo .logo-text {
    font-size: 18px;
  }

  .logo-byline {
    font-size: 9.5px;
    letter-spacing: 0.01em;
  }

  .demo-tape-badge {
    font-size: 8.5px;
    padding: 3px 6px;
    letter-spacing: 0.08em;
  }

  .btn .btn-label {
    display: none;
  }

  .entry-card {
    padding: 22px 18px;
    border-radius: 18px;
    margin-bottom: 16px;
  }

  .entry-card h2 {
    font-size: 19px;
  }

  .soundtrack-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .vinyl-art {
    width: 56px;
    height: 56px;
  }
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ink-muted);
}

/* ── Selection ── */
::selection {
  background: rgba(83, 126, 96, 0.2);
  color: var(--ink);
}

/* ── Focus styles (Zero outline when any box, button, card, or input is clicked) ── */
*,
*:focus,
*:focus-visible,
:focus,
:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  -webkit-tap-highlight-color: transparent;
}

button:focus,
button:active,
button:focus-visible,
input:focus,
input:active,
input:focus-visible,
textarea:focus,
textarea:active,
textarea:focus-visible,
select:focus,
select:active,
select:focus-visible,
a:focus,
a:active,
a:focus-visible,
article:focus,
article:active,
article:focus-visible,
aside:focus,
aside:active,
aside:focus-visible,
div:focus,
div:active,
div:focus-visible,
[contenteditable]:focus,
[contenteditable]:active,
[contenteditable]:focus-visible {
  outline: none !important;
}

/* ── Utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-muted { color: var(--ink-muted); }
.text-accent { color: var(--accent); }
.font-serif { font-family: var(--font-base); }
.font-sans { font-family: var(--font-base); }

.author-badge {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

/* ── Author Mode & Visibility Control (Public vs Author) ── */
body:not(.author-mode) .author-only,
body:not(.author-mode) #write-btn,
body:not(.author-mode) #edit-status-btn,
body:not(.author-mode) .entry-edit-pill,
body:not(.author-mode) .reader-edit-btn,
body:not(.author-mode) .reader-delete-btn,
body:not(.author-mode) .data-tools,
body:not(.author-mode) hr.author-only {
  display: none !important;
}

/* Subtle masthead sparkle cursor & hover */
#masthead-sparkle {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}

#masthead-sparkle:hover {
  transform: scale(1.2);
  opacity: 0.85;
}

#masthead-sparkle:active {
  transform: scale(0.95);
}

/* Author Mode Lock Pill in Header */
.author-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  letter-spacing: 0.02em;
}

.author-mode-pill svg {
  stroke: var(--accent);
}

.author-mode-pill:hover {
  background: var(--accent);
  color: #fff;
}

.author-mode-pill:hover svg {
  stroke: #fff;
}

/* Data Tools Author Hint */
.data-tools-hint {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 7px;
  line-height: 1.4;
}

/* Author Login Modal */
.author-modal-box {
  max-width: 380px;
}

.author-modal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.author-modal-header h3 {
  margin-bottom: 0 !important;
  font-size: 17px;
}

.author-modal-desc {
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.45;
  margin-bottom: 16px;
}

.author-input-group {
  margin-bottom: 12px;
}

.author-input-group label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.author-input-group input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s;
}

.author-input-group input:focus {
  border-color: var(--accent);
}

.author-pin-error {
  min-height: 18px;
  font-size: 11.5px;
  color: #B2533E;
  margin-top: 4px;
  line-height: 1.35;
}

.author-session-info {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
  text-align: center;
}

.author-session-email {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
  word-break: break-all;
}

.author-session-badge {
  display: inline-block;
  font-size: 10.5px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 9999px;
}

/* Toast Notice */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--bg);
  padding: 8px 18px;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  z-index: 10000;
}

.toast-notice.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
