html { color-scheme: dark }
.stage-body { width:100% }
figure { margin:0 }
#badge,.local-note { font-size:.83rem;color:var(--text-secondary) }
#clip,#storyclip { width:100%;margin:.7rem 0 }
.story-title,.entry-title,.mini-item-title,.story-prose,#source { overflow-wrap:anywhere }
.story-prose,#source,.entry-excerpt { white-space:pre-wrap }
#source { padding:0 16px }
.empty { color:var(--text-secondary);padding:12px 4px }
#status { max-width:55%;text-align:right }
dialog { width:min(92vw,560px);background:#171d38;color:#f7f1e8;border:1px solid #616382;border-radius:18px;padding:24px;max-height:90dvh;overflow:auto }
dialog::backdrop { background:#080a1dc9 }
dialog h2 { margin-top:0;font:2rem var(--serif) }
dialog label { display:block;margin:.8rem 0 .3rem }
dialog input,dialog textarea { width:100%;padding:12px;color:inherit;background:#0e132b;border:1px solid #616382;border-radius:10px;font-size:1rem }
dialog textarea { min-height:135px;resize:vertical }
.dialog-actions,.entry-footer { display:flex;gap:12px;align-items:center;justify-content:space-between;margin-top:18px }
#notice { position:fixed;z-index:40;bottom:22px;left:50%;transform:translateX(-50%);padding:12px 20px;background:#27233b;color:#fff;border:1px solid #c3a17f;border-radius:15px;width:max-content;max-width:90vw }
.stage-body section:focus { outline:0 }
.entry-card { min-width:0 }
.story-actions { flex-wrap:wrap }
@media(max-width:780px) {
 :root { --rail-width:0px }
 .app-shell { display:block }
 .sidebar { position:relative; height:auto;overflow:visible;padding:10px 16px 5px;background:#0b1030;display:block }
 .brand-lockup { padding:2px 2px 8px;margin:0;border:0 }.brand-title { font-size:20px }.brand-mark { width:29px;height:29px }.brand-eyebrow { font-size:9px }
 .nav-list { display:flex;gap:4px;margin:0 }.nav-item { flex:1;padding:7px 3px;justify-content:center;gap:5px;font-size:.78rem;min-height:38px }.nav-icon { width:24px;height:24px }
 .sidebar-section,.sidebar-footer,.nav-count { display:none }
 .stage-topbar { height:42px;padding:0 16px;gap:8px }.stage-body { padding:15px 15px 36px }
 .hero-title,.view-title { font-size:clamp(32px,7.5vw,48px) }.capture-hero { margin:12px 0 18px }.hero-subtitle { margin:8px auto;max-width:34ch;font-size:.98rem }
 .composer-card { min-height:0 }.composer-header,.composer-footer { padding:12px 14px }.composer-body { padding:10px 14px }.voice-pane { min-height:155px }.orb-button { width:80px;height:80px }
 .composer-footer { flex-wrap:wrap;gap:8px }.local-note { margin:0 }.cta-group { width:100%;gap:8px }.cta-group button { flex:1 }
 .examples-grid,.archive-grid,.map-grid { grid-template-columns:1fr }.example-card { display:grid;grid-template-columns:35% 1fr;align-items:center }.example-thumb { height:100%;min-height:96px }.example-body { padding:12px }.examples-section { margin-top:24px }
 .section-head,.view-header,.archive-toolbar { flex-wrap:wrap;align-items:flex-start;gap:10px }.section-sub { text-align:left }
 .story-spread { margin-top:12px;display:flex;flex-direction:column;gap:10px }.story-artwork { height:140px;aspect-ratio:auto;width:100%;object-fit:cover }.art-caption-bar { padding:5px 12px }.story-read-col { padding:18px 16px }.story-title { font-size:2rem }
 .recording-stage { min-height:50vh }.search-input { width:100% }
}
@media(max-width:380px) { .nav-icon { display:none }.stage-body { padding-inline:10px }.topbar-meta { font-size:.74rem } }
@media(max-width:780px) {
 .nav-list { flex-direction:row }
 .composer-card { padding:10px 12px 14px }
 .composer-header { margin-bottom:4px }
 .composer-body { min-height:160px }
}

.file-label { margin-top:8px;position:relative;color:var(--gold-bright);font-size:.82rem;text-decoration:underline;cursor:pointer }
.file-label input { position:absolute;inset:0;opacity:0;width:100%;cursor:pointer }
.file-label:focus-within { outline:2px solid var(--gold-bright) }

.composer-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.draft-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-warm);
  box-shadow: 0 0 8px rgba(248, 186, 133, 0.7);
  flex-shrink: 0;
}

.composer-draft-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Compact Desktop Voice Entry Button */
.speak-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px 0 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 227, 188, 0.08);
  border: 1px solid rgba(255, 227, 188, 0.24);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gold-bright);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s var(--ease-out);
}

.speak-pill:hover {
  background: rgba(255, 227, 188, 0.16);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.speak-pill img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}


.desktop-only { display:none }
@media (min-width:781px) {
 .desktop-only { display:inline-flex }
 .composer-header .mode-switch { display:none }
 .composer-card { min-height:0; padding:16px 22px 18px }
 .composer-header { margin-bottom:12px }
 .composer-body { min-height:0; gap:10px }
 .dream-textarea { min-height:136px; padding:13px 16px; line-height:1.7 }
 .composer-wrap { margin-bottom:28px }
 .capture-hero { margin:0 auto 18px }
 .hero-title { font-size:clamp(26px,2.35vw,33px);line-height:1.22 }
 .hero-subtitle { margin-top:7px;font-size:14.5px }
 .rec-stop-btn { width:78px;height:78px }
 .rec-stop-btn img { width:76px;height:76px }
 #audiopane { display:flex;align-items:center;gap:12px }
 #audiopane label { white-space:nowrap }
 #clip { flex:1;min-width:0;height:34px;margin:0 }
}
@media (min-width:1061px) and (max-height:820px) {
 .stage-body { padding-top:16px }
 .capture-hero { margin-bottom:14px }
 .dream-textarea { min-height:112px }
 .composer-wrap { margin-bottom:18px }
 .example-thumb { aspect-ratio:1.95 }
}
