/* GidiReads post-preview repair layer — 12 November 2026.
   Presentation-only fixes; page logic and data flows remain in their existing modules. */
:root {
  --gr-repair-ink: #f5eff8;
  --gr-repair-muted: #c0b4c9;
  --gr-repair-surface: #1c1422;
  --gr-repair-surface-2: #241a2c;
  --gr-repair-line: rgba(210,190,225,.18);
  --gr-repair-accent: #c7a9df;
  --gr-repair-accent-strong: #e1c9f2;
}
html[data-site-theme="amoled"] {
  --gr-repair-ink: #f7f4fa;
  --gr-repair-muted: #c2bdc9;
  --gr-repair-surface: #101010;
  --gr-repair-surface-2: #181818;
  --gr-repair-line: rgba(255,255,255,.16);
  --gr-repair-accent: #d2b8ee;
  --gr-repair-accent-strong: #eadcff;
}
html[data-theme="light"] {
  --gr-repair-ink: #302638;
  --gr-repair-muted: #716779;
  --gr-repair-surface: #fffdf9;
  --gr-repair-surface-2: #f1ebf2;
  --gr-repair-line: rgba(75,55,86,.17);
  --gr-repair-accent: #79558f;
  --gr-repair-accent-strong: #56366d;
}

/* Navigation must not sit over content or steal taps. */
@media (max-width: 760px) {
  .site-nav { z-index: 900 !important; }
  .bottom-nav {
    z-index: 1000 !important;
    transition: transform .22s ease, opacity .22s ease !important;
    will-change: transform;
  }
  .bottom-nav.gr-nav-hidden {
    transform: translateY(calc(100% + env(safe-area-inset-bottom, 0px))) !important;
    opacity: .08 !important;
    pointer-events: none !important;
  }
  .gr-nav-reveal {
    position: fixed; z-index: 1001; right: 14px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    width: 42px; height: 28px; display: none; align-items: center; justify-content: center;
    border: 1px solid var(--gr-repair-line); border-radius: 999px;
    color: var(--gr-repair-ink); background: var(--gr-repair-surface-2);
    box-shadow: 0 5px 18px rgba(0,0,0,.24); font-size: 16px; cursor: pointer;
  }
  .gr-nav-reveal.is-visible { display: inline-flex; }
  body:has(.bottom-nav.gr-nav-hidden) { padding-bottom: 20px !important; }
}

/* Authors Studio: one navigation system, with a scrollable drawer above the page. */
.studio-sidebar { background: var(--bg, var(--gr-repair-surface)) !important; color: var(--ink, var(--gr-repair-ink)); }
.studio-nav { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.studio-nav-item { flex: 0 0 auto; }
.studio-topbar { z-index: 40 !important; }
.studio-main { min-width: 0; }
.studio-content { min-width: 0; }
@media (max-width: 760px) {
  body:has(.studio-sidebar) { padding: 0 !important; }
  body:has(.studio-sidebar) .bottom-nav,
  body:has(.studio-sidebar) .gr-nav-reveal,
  body:has(.studio-sidebar) > .site-nav { display: none !important; }
  .studio-shell { display: block !important; min-height: 100dvh; }
  .studio-sidebar {
    position: fixed !important; inset: 0 auto 0 0 !important;
    width: min(86vw, 330px) !important; height: 100dvh !important;
    max-height: 100dvh !important; padding: 16px 14px calc(14px + env(safe-area-inset-bottom,0px)) !important;
    z-index: 2202 !important; overflow: hidden !important;
    transform: translateX(-105%); transition: transform .24s ease !important;
    box-shadow: 18px 0 48px rgba(0,0,0,.38);
  }
  .studio-sidebar.open { transform: translateX(0) !important; }
  .studio-brand-block { flex: 0 0 auto; padding: 4px 8px 14px !important; }
  .studio-nav { flex: 1 1 auto; min-height: 0; padding: 4px 0 12px; overflow-y: auto !important; -webkit-overflow-scrolling: touch; }
  .studio-nav-item { min-height: 42px !important; padding: 9px 10px !important; font-size: 13px !important; }
  .sidebar-bottom { flex: 0 0 auto; margin-top: 4px !important; }
  .sidebar-close { display: inline-flex !important; position: absolute; right: 4px; top: 0; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font-size: 24px; }
  .sidebar-backdrop { position: fixed !important; inset: 0 !important; z-index: 2201 !important; background: rgba(8,5,12,.66) !important; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
  .sidebar-backdrop.show { opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; }
  .studio-main { width: 100% !important; margin: 0 !important; }
  .studio-topbar { position: sticky !important; top: 0 !important; height: 58px !important; min-height: 58px !important; padding: 0 13px !important; gap: 10px; z-index: 100 !important; }
  .menu-button { display: inline-flex !important; width: 38px; height: 38px; align-items: center; justify-content: center; flex: 0 0 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink) !important; font-size: 20px !important; }
  .topbar-context { min-width: 0; gap: 5px !important; font-size: 10px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar-context span, .topbar-context i { display: none; }
  .topbar-actions { gap: 8px !important; margin-left: auto; }
  .topbar-actions .theme-toggle { min-height: 34px; height: 34px; padding: 0 8px; }
  .topbar-actions .theme-label { display: none; }
  .topbar-actions .profile-link { font-size: 10px; }
  .studio-content { padding: 22px 14px calc(34px + env(safe-area-inset-bottom,0px)) !important; }
  .welcome-block { padding-bottom: 16px !important; }
  .welcome-copy h1 { font-size: clamp(34px,9vw,48px) !important; line-height: 1.02 !important; }
  .welcome-sub { margin-top: 9px !important; font-size: 12px !important; }
  .welcome-actions { flex-wrap: wrap; margin-top: 14px; }
  .button { min-height: 40px !important; padding: 0 13px !important; }
  .welcome-rule { margin-top: 22px !important; }
  .continue-section { margin-top: 24px !important; }
  .continue-card { min-height: 0 !important; grid-template-columns: minmax(0,1fr) !important; }
  .continue-copy { padding: 22px 18px !important; }
  .continue-art { min-height: 150px !important; max-height: 180px; }
  .editorial-image-wrap { min-height: 150px !important; }
  .activity-section, .studio-section, .notices-section, .quick-section { min-width: 0; }
  .activity-layout { grid-template-columns: 1fr !important; gap: 12px !important; }
  .activity-number { padding: 16px !important; }
  .activity-chart { min-height: 140px !important; }
  .activity-facts { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .activity-facts > div { padding: 12px !important; }
  .lower-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .quick-actions { grid-template-columns: 1fr !important; }
  .quick-action { min-height: 58px; }
  .section-heading-row { gap: 10px !important; align-items: flex-start !important; flex-wrap: wrap; }
  .range-switch { max-width: 100%; overflow-x: auto; }
  .studio-content :is(.panel,.card,.studio-section,.workspace-panel,.workspace-card,.editor-panel) { min-width: 0; max-width: 100%; }
  .studio-content :is(input,select,textarea) { min-width: 0; max-width: 100%; }
}

/* Story page refinements based on Android preview feedback. */
@media (max-width: 760px) {
  .story-page .story-hero-v2 { padding: 24px 0 30px !important; }
  .story-page .story-hero-inner-v2 { grid-template-columns: 124px minmax(0,1fr) !important; gap: 16px !important; align-items: start !important; }
  .story-page .story-cover-stage,.story-page .story-cover-frame-v2 { width:124px !important; max-width:124px !important; min-width:124px !important; }
  .story-page .story-cover-frame-v2 .cover-lg { width:124px !important; height:186px !important; aspect-ratio:2/3 !important; object-fit:cover !important; border-radius:11px !important; }
  .story-page .story-cover-glow { display:none !important; }
  .story-page .story-hero-content { min-width:0 !important; max-width:none !important; }
  .story-page .story-detail-title-v2 { font-size:clamp(1.35rem,5.5vw,1.85rem) !important; line-height:1.08 !important; overflow-wrap:normal !important; word-break:normal !important; }
  .story-page .story-detail-author-wrap-v2 { min-width:0 !important; flex-wrap:wrap !important; font-size:12px !important; }
  .story-page .story-detail-meta-v2,.story-page .story-stat-v2 { font-size:11px !important; }
  .story-page .story-detail-actions-v2 { gap:7px !important; }
  .story-page .story-read-btn,.story-page .story-secondary-btn { min-height:38px !important; padding:0 11px !important; font-size:11px !important; }
  .story-page .story-intro-section { padding:30px 0 !important; }
  .story-page .story-intro-grid { grid-template-columns:minmax(0,1fr) !important; gap:20px !important; }
  .story-page .story-intro-main { min-width:0 !important; }
  .story-page .story-intro-main h2 { font-size:1.65rem !important; margin:8px 0 14px !important; }
  .story-page .story-synopsis-text-v2 { max-width:none !important; font-size:15px !important; line-height:1.72 !important; white-space:pre-line !important; overflow-wrap:break-word !important; }
  .story-page .story-synopsis-text-v2.clamp-2 { -webkit-line-clamp:8 !important; }
  .story-page .story-at-a-glance { border-left:0 !important; border-top:1px solid var(--story-line) !important; padding:17px 0 0 !important; }
  .story-page .story-author-card-v2 { display:grid !important; grid-template-columns:64px minmax(0,1fr) !important; align-items:start !important; gap:12px !important; padding:16px !important; }
  .story-page .story-author-card-v2 .author-pfp-v2 { width:64px !important; height:64px !important; grid-row:1 / span 2 !important; }
  .story-page .story-author-copy-v2 { min-width:0 !important; width:100% !important; }
  .story-page .story-author-copy-v2 p { max-width:none !important; width:100% !important; white-space:normal !important; overflow-wrap:anywhere !important; word-break:normal !important; line-height:1.55 !important; }
  .story-page .story-author-actions-v2 { grid-column:2 !important; flex-wrap:wrap !important; min-width:0 !important; }
  .story-page .story-author-actions-v2 a { display:inline-flex !important; justify-content:center !important; white-space:nowrap !important; }
  .story-page .story-recommend-grid { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:12px !important; }
  .story-page .story-recommend-card { min-width:0 !important; }
  .story-page .story-recommend-cover { aspect-ratio:3/4 !important; max-height:190px !important; }
  .story-page .story-recommend-cover img { object-fit:cover !important; }
  .story-page .story-recommend-title { font-size:12px !important; line-height:1.3 !important; }
  .story-page .story-recommend-meta { font-size:10px !important; }
  .story-page :is(.story-intro-section,.story-taxonomy-section-v2,.story-chapters-section-v2,.story-reviews-section-v2,.story-author-section-v2,.story-related-section-v2) { padding:28px 0 !important; }
}
@media (max-width:390px) {
  .story-page .story-hero-inner-v2 { grid-template-columns:112px minmax(0,1fr) !important; gap:12px !important; }
  .story-page .story-cover-stage,.story-page .story-cover-frame-v2 { width:112px !important; max-width:112px !important; min-width:112px !important; }
  .story-page .story-cover-frame-v2 .cover-lg { width:112px !important; height:168px !important; }
  .story-page .story-detail-title-v2 { font-size:1.3rem !important; }
}

/* Theme-aware story surfaces: preserve each selected palette without low-contrast text. */
.story-page { color:var(--gr-repair-ink,#f5eff8); }
.story-page .story-intro-section,.story-page .story-author-section-v2,.story-page .story-adaptation-section-v2 { background:var(--gr-repair-surface,#1c1422) !important; }
.story-page .story-taxonomy-section-v2,.story-page .story-related-section-v2 { background:var(--gr-repair-surface-2,#241a2c) !important; }
.story-page .story-synopsis-text-v2,.story-page .story-author-copy-v2 p,.story-page .story-recommend-meta { color:var(--gr-repair-muted,#c0b4c9) !important; }
.story-page .story-author-card-v2 { background:var(--gr-repair-surface-2,#241a2c) !important; border-color:var(--gr-repair-line) !important; }
.story-page .story-detail-title-v2,.story-page .story-intro-main h2,.story-page .story-section-title-v2 h2,.story-page .story-section-title-row-v2 h2,.story-page .story-author-copy-v2 h3,.story-page .story-recommend-title { color:var(--gr-repair-ink,#f5eff8) !important; }
html[data-site-theme="amoled"] .story-page .story-hero-v2 { background:#000 !important; }
html[data-theme="light"] .story-page .story-hero-v2 { background:linear-gradient(135deg,#f5f0f7,#eee8f2) !important; }
html[data-theme="light"] .story-page .story-detail-title-v2,html[data-theme="light"] .story-page .story-intro-main h2,html[data-theme="light"] .story-page .story-section-title-v2 h2,html[data-theme="light"] .story-page .story-section-title-row-v2 h2 { color:#302638 !important; }

/* Collections and taxonomy landing pages: restrained editorial palette and compact cards. */
.collection-page { background: #120d18 !important; color: #f3edf6 !important; }
.collection-page .collection-hero { padding: 38px 0 30px !important; background: linear-gradient(120deg,#21182a,#17212a 70%,#17131d) !important; border-bottom: 1px solid rgba(205,185,220,.15) !important; }
.collection-page .collection-kicker,.collection-page .collection-eyebrow { color: #bda4d4 !important; letter-spacing: .16em !important; }
.collection-page .collection-hero h1 { max-width: 18ch !important; font-family: var(--font-display,Georgia,serif) !important; font-size: clamp(2rem,5vw,3.3rem) !important; line-height: 1.08 !important; }
.collection-page .collection-hero>div>p:not(.collection-kicker) { max-width: 58ch !important; color: #c9bdcf !important; font-size: .95rem !important; }
.collection-page .collection-main { padding-top: 24px !important; }
.collection-page .collection-toolbar { align-items: center !important; margin-bottom: 18px !important; }
.collection-page .collection-toolbar h2 { color: #f2eaf5 !important; }
.collection-page .collection-grid { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 13px !important; }
.collection-page .collection-story-row { display: grid !important; grid-template-columns: 76px minmax(0,1fr) !important; gap: 11px !important; padding: 10px !important; border-radius: 13px !important; background: #1c1722 !important; border: 1px solid rgba(205,185,220,.13) !important; }
.collection-page .collection-story-cover { aspect-ratio: 2/3 !important; border-radius: 8px !important; background: #2a2230 !important; }
.collection-page .collection-story-copy h3 { color: #f4edf7 !important; font-size: 1.02rem !important; line-height: 1.2 !important; }
.collection-page .collection-story-genre { color: #c0a8d5 !important; font-size: 9px !important; }
.collection-page .collection-story-synopsis { color: #bdb2c5 !important; font-size: .78rem !important; line-height: 1.45 !important; -webkit-line-clamp: 2 !important; }
.collection-page .collection-story-author { color: #a99caf !important; font-size: .72rem !important; }
.collection-page .collection-story-stats { color: #b9adbf !important; font-size: .68rem !important; gap: 8px !important; }
.collection-page .collection-story-stats strong { color: #f0e8f3 !important; }
.collection-page .collection-read-now { min-height: 32px !important; padding: 0 10px !important; border-radius: 7px !important; background: #b9a1ce !important; color: #21162a !important; font-size: .7rem !important; }
.collection-page .collection-taxonomy a { border-color: rgba(205,185,220,.2) !important; color: #d8cce0 !important; }
@media(max-width:760px) {
  .collection-page .collection-hero { padding: 25px 0 21px !important; }
  .collection-page .collection-toolbar { flex-direction: row !important; align-items: end !important; gap: 10px !important; }
  .collection-page .collection-toolbar h2 { font-size: 1.2rem !important; }
  .collection-page .collection-sort { min-width: 125px !important; font-size: .72rem !important; }
  .collection-page .collection-sort select { padding: 8px !important; font-size: 12px !important; }
  .collection-page .collection-grid { grid-template-columns: 1fr !important; gap: 9px !important; }
  .collection-page .collection-story-row { grid-template-columns: 70px minmax(0,1fr) !important; padding: 9px !important; }
  .collection-page .collection-story-copy h3 { font-size: .98rem !important; }
  .collection-page .collection-story-bottom { flex-direction: row !important; align-items: center !important; padding-top: 4px !important; }
}
html[data-theme="light"] .collection-page { background: #f5f1f6 !important; color: #302638 !important; }
html[data-theme="light"] .collection-page .collection-hero { background: linear-gradient(120deg,#e8e0ed,#e5edf0 75%,#f6f2f7) !important; }
html[data-theme="light"] .collection-page .collection-hero h1,html[data-theme="light"] .collection-page .collection-toolbar h2 { color: #302638 !important; }
html[data-theme="light"] .collection-page .collection-hero>div>p:not(.collection-kicker),html[data-theme="light"] .collection-page .collection-story-synopsis { color: #655b6b !important; }
html[data-theme="light"] .collection-page .collection-story-row { background: #fffdf9 !important; border-color: #ddd3e2 !important; }
html[data-theme="light"] .collection-page .collection-story-copy h3,html[data-theme="light"] .collection-page .collection-story-stats strong { color: #302638 !important; }
html[data-theme="light"] .collection-page .collection-story-author,html[data-theme="light"] .collection-page .collection-story-stats { color: #766b7c !important; }
html[data-site-theme="amoled"] .collection-page { background: #000 !important; }
html[data-site-theme="amoled"] .collection-page .collection-story-row { background: #090909 !important; }

/* Opportunities carousel: a true horizontal editorial slide on phones too. */
.oc-body { --oc-bg:#15101b; --oc-surface:#211a29; --oc-surface-2:#292130; --oc-line:rgba(210,190,225,.18); --oc-ink:#f4eef7; --oc-soft:#c9bdcf; --oc-muted:#a99caf; --oc-lilac:#c8b1dc; --oc-pink:#bba2cf; background:var(--oc-bg) !important; color:var(--oc-ink) !important; }
.oc-hero { min-height: 0 !important; border-radius: 18px !important; }
.oc-slide-inner { display: grid !important; grid-template-columns: minmax(110px,190px) minmax(0,1fr) !important; gap: clamp(14px,3vw,28px) !important; align-items: center !important; padding: 20px 48px 40px !important; text-align: left !important; }
.oc-slide-poster { width: 100% !important; max-width: 190px !important; aspect-ratio: 4/5 !important; border-radius: 10px !important; }
.oc-slide-copy { min-width: 0; }
.oc-slide-copy h2 { font-size: clamp(1.35rem,3.5vw,2.2rem) !important; color: var(--oc-ink) !important; }
.oc-slide-text { color: var(--oc-soft) !important; font-size: .9rem !important; }
.oc-slide::after { background: linear-gradient(90deg,rgba(15,11,19,.2),rgba(15,11,19,.55)) !important; }
.oc-btn { background: #c4afd7 !important; color: #21172b !important; box-shadow: none !important; }
.oc-btn-quiet { background: transparent !important; color: var(--oc-ink) !important; border-color: var(--oc-line) !important; }
@media(max-width:620px) {
  .oc { padding: 12px 13px 40px !important; }
  .oc-hero { border-radius: 13px !important; }
  .oc-slide-inner { grid-template-columns: 96px minmax(0,1fr) !important; gap: 12px !important; padding: 14px 36px 32px 13px !important; text-align: left !important; justify-items: stretch !important; }
  .oc-slide-poster { width: 96px !important; max-width: 96px !important; aspect-ratio: 3/4 !important; border-radius: 8px !important; }
  .oc-slide-copy h2 { font-size: 1.15rem !important; line-height: 1.12 !important; margin-bottom: 6px !important; }
  .oc-slide-copy .oc-eyebrow { font-size: 8px !important; letter-spacing: .1em !important; margin-bottom: 5px !important; }
  .oc-slide-text { font-size: .72rem !important; line-height: 1.4 !important; margin-bottom: 9px !important; }
  .oc-slide-copy .oc-btn { min-height: 32px !important; padding: 0 10px !important; font-size: .68rem !important; }
  .oc-nav { top: 50% !important; width: 28px !important; height: 28px !important; font-size: 1.1rem !important; }
  .oc-prev { left: 4px !important; }.oc-next { right: 4px !important; }
  .oc-dots { bottom: 8px !important; }
  .oc-dots button { width: 6px !important; height: 6px !important; }.oc-dots button[aria-selected="true"] { width: 18px !important; }
  .oc-intro { padding: 22px 2px 4px !important; }
  .oc-intro h1 { font-size: 1.9rem !important; }
  .oc-card { grid-template-columns: 78px minmax(0,1fr) !important; gap: 10px !important; padding: 9px !important; border-radius: 12px !important; }
  .oc-card h3 { font-size: 1rem !important; }.oc-card-text { font-size: .76rem !important; -webkit-line-clamp: 2 !important; }
  .oc-card .oc-btn { min-height: 32px !important; padding: 0 11px !important; font-size: .72rem !important; }
}
html[data-theme="light"] .oc-body { --oc-bg:#f5f1f6; --oc-surface:#fffdf9; --oc-surface-2:#eee8f0; --oc-line:rgba(75,55,86,.18); --oc-ink:#302638; --oc-soft:#655b6b; --oc-muted:#7a7080; --oc-lilac:#76548b; --oc-pink:#8b668e; background:#f5f1f6 !important; color:#302638 !important; }
html[data-theme="light"] .oc-slide::after { background:linear-gradient(90deg,rgba(255,253,249,.08),rgba(255,253,249,.72)) !important; }
html[data-theme="light"] .oc-slide-copy h2,html[data-theme="light"] .oc-intro h1,html[data-theme="light"] .oc-list-head h2 { color:#302638 !important; }
html[data-theme="light"] .oc-slide-text,html[data-theme="light"] .oc-intro p:last-child { color:#655b6b !important; }
html[data-theme="light"] .oc-filter.is-active { color:#302638 !important; }
html[data-theme="light"] .oc-card { background:#fffdf9 !important; box-shadow:0 8px 22px rgba(54,35,62,.07) !important; }
html[data-theme="light"] .oc-card h3,html[data-theme="light"] .od-hero h1,html[data-theme="light"] .od-section h2 { color:#302638 !important; }
html[data-theme="light"] .oc-card-text,html[data-theme="light"] .od-section p,html[data-theme="light"] .od-section ul { color:#655b6b !important; }
html[data-theme="light"] .oc-chip { color:#594761 !important; }
html[data-site-theme="amoled"] .oc-body { --oc-bg:#000; --oc-surface:#080808; --oc-surface-2:#111; background:#000 !important; }

/* Homepage Gathering shortcuts become a compact horizontal strip, not three tall blocks. */
@media(max-width:760px) {
  .gathering-home-entry { padding-top: 18px !important; padding-bottom: 18px !important; }
  .gathering-home-entry .home-section-head { margin-bottom: 10px !important; }
  .gathering-home-shortcuts { display: flex !important; gap: 9px !important; overflow-x: auto !important; padding: 2px 2px 9px !important; scroll-snap-type: x proximity; scrollbar-width: none; }
  .gathering-home-shortcuts::-webkit-scrollbar { display: none; }
  .gathering-home-shortcuts a { flex: 0 0 min(72vw,220px) !important; min-height: 96px !important; padding: 12px !important; gap: 5px !important; scroll-snap-align: start; border-radius: 12px !important; }
  .gathering-home-shortcuts .gathering-shortcut-icon { width: 26px !important; height: 26px !important; font-size: 17px !important; }
  .gathering-home-shortcuts strong { font-size: 13px !important; }
  .gathering-home-shortcuts small { font-size: 10px !important; line-height: 1.35 !important; }
}

/* Holiday Hearts: integrate artwork and editorial type in a short horizontal feature. */
@media(max-width:760px) {
  .home-page .home-section.hhr-section { padding: 16px 0 18px !important; }
  .home-page .hhr { padding: 0 13px !important; }
  .home-page .hhr-banner { grid-template-columns: 102px minmax(0,1fr) !important; gap: 12px !important; padding: 10px !important; border-radius: 15px !important; align-items: center !important; }
  .home-page .hhr-poster { width: 102px !important; height: 138px !important; aspect-ratio: auto !important; border-radius: 9px !important; }
  .home-page .hhr-poster img { object-fit: cover !important; object-position: center !important; }
  .home-page .hhr-copy { padding: 2px 0 !important; }
  .home-page .hhr-eyebrow { font-size: 8px !important; letter-spacing: .12em !important; }
  .home-page .hhr-copy h2 { font-size: clamp(1.25rem,5vw,1.65rem) !important; line-height: 1.02 !important; }
  .home-page .hhr-tag { margin: 4px 0 6px !important; font-size: .72rem !important; line-height: 1.25 !important; }
  .home-page .hhr-status { margin: 0 0 7px !important; font-size: .65rem !important; gap: 4px !important; }
  .home-page .hhr-lead { display: none !important; }
  .home-page .hhr-facts { display: none !important; }
  .home-page .hhr-actions { display: flex !important; flex-wrap: wrap !important; gap: 5px !important; }
  .home-page .hhr-btn { min-height: 31px !important; padding: 0 8px !important; font-size: .63rem !important; border-radius: 7px !important; }
  .home-page .hhr-btn-quiet { display: none !important; }
  .home-page .hhr-head { margin: 14px 2px 8px !important; }
  .home-page .hhr-head h3 { font-size: 1.1rem !important; }
}
@media(max-width:370px) {
  .home-page .hhr-banner { grid-template-columns: 82px minmax(0,1fr) !important; gap: 9px !important; }
  .home-page .hhr-poster { width: 82px !important; height: 116px !important; }
  .home-page .hhr-copy h2 { font-size: 1.18rem !important; }
  .home-page .hhr-btn { font-size: .58rem !important; padding: 0 6px !important; }
}

/* Profile, notifications and Gathering layouts: compact and content-first. */
@media(max-width:760px) {
  .notifications-hero { padding: 20px 0 14px !important; }
  .notifications-head h1 { font-size: 1.75rem !important; }
  .notifications-section { padding-top: 16px !important; }
  .notification-row { grid-template-columns: 38px minmax(0,1fr) auto !important; gap: 9px !important; padding: 11px 9px !important; }
  .notification-message { overflow-wrap: anywhere; }
  .gr-edit-page { padding-bottom: 20px !important; }
  .gr-edit-page .gr-profile-wrap { width: calc(100% - 26px) !important; }
  .gr-editor-layout { display: grid !important; grid-template-columns: minmax(0,1fr) !important; gap: 12px !important; }
  .gr-edit-page .gr-panel { padding: 14px !important; min-width: 0 !important; }
  .gr-edit-page .gr-upload-row { align-items: flex-start !important; gap: 10px !important; }
  .gr-edit-page .gr-upload-actions { flex-wrap: wrap !important; }
  .gr-edit-page .gr-headers { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 8px !important; }
  .gr-edit-page .gr-header-option img { height: 92px !important; }
  .gathering-top { position: relative !important; display: flex !important; min-height: 54px !important; height: auto !important; flex-wrap: nowrap !important; padding: 8px 13px !important; gap: 12px !important; }
  .gathering-top nav { order: 0 !important; flex: 1 1 auto !important; min-width: 0; display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important; gap: 13px !important; font-size: 11px !important; }
  .gathering-account { white-space: nowrap; font-size: 11px; }
  .gathering-shell { padding: 14px 12px 34px !important; }
  .gathering-hero { min-height: 290px !important; padding: 24px 18px 110px !important; border-radius: 15px !important; }
  .hero-copy h1 { font-size: clamp(2rem,8vw,2.8rem) !important; }
  .hero-copy p { font-size: 13px !important; line-height: 1.55 !important; }
  .portal-art { width: 128px !important; right: 7% !important; bottom: -20px !important; opacity: .48 !important; }
  .gathering-welcome { padding: 22px 3px 18px !important; }
  .community-layout { gap: 10px !important; }
  .community-sidebar { padding: 8px !important; border-radius: 12px !important; }
  .community-content { min-height: 0 !important; padding: 15px 12px !important; border-radius: 12px !important; }
  .community-card { padding: 13px !important; border-radius: 12px !important; }
}

/* One readable theme across every page, including legacy fixed-colour sections. */
html[data-theme="light"] .studio-shell { --bg:#f5f1f6; --surface:#fffdf9; --paper:#fffdf9; --ink:#302638; --muted:#716779; --line:#ddd3e2; --plum:#76548b; --plum-deep:#56366d; --lilac-soft:#eee7f1; background:#f5f1f6 !important; color:#302638 !important; }
html[data-site-theme="amoled"] .studio-shell { --bg:#000; --surface:#090909; --paper:#111; --ink:#f7f4fa; --muted:#c2bdc9; --line:#292929; --plum:#d2b8ee; --plum-deep:#eadcff; --lilac-soft:#17121b; background:#000 !important; color:#f7f4fa !important; }
html[data-theme="light"] .story-page .story-hero-v2 { background:linear-gradient(130deg,#eee7f1,#f8f5f8) !important; }
html[data-theme="light"] .story-page .story-detail-title-v2,html[data-theme="light"] .story-page .story-detail-author-wrap-v2,html[data-theme="light"] .story-page .story-stat-v2 { color:#302638 !important; }
html[data-theme="light"] .story-page .story-detail-meta-v2,html[data-theme="light"] .story-page .story-update-line-v2 { color:#655b6b !important; }
html[data-theme="light"] .story-page .story-secondary-btn,html[data-theme="light"] .story-page .story-icon-btn { background:#fffdf9 !important; color:#493a51 !important; border-color:#d9cddd !important; }
html[data-theme="light"] .story-page .story-read-btn { background:#76548b !important; color:#fff !important; }
html[data-site-theme="amoled"] .story-page .story-hero-v2 { background:#000 !important; }
html[data-theme="light"] .gathering-page,html[data-theme="light"] .gathering-page .gathering-top { background:#f4f1f6 !important; color:#302638 !important; }
html[data-theme="light"] .gathering-page .gathering-hero,html[data-theme="light"] .gathering-page .community-sidebar,html[data-theme="light"] .gathering-page .community-content,html[data-theme="light"] .gathering-page .community-card { background:#fffdf9 !important; color:#302638 !important; border-color:#ded5e3 !important; }
html[data-theme="light"] .gathering-page :is(.hero-copy h1,.community-content h2,.community-card h3,.community-sidebar h2) { color:#302638 !important; }
html[data-theme="light"] .gathering-page :is(.hero-copy p,.community-card p,.community-muted,.community-tab) { color:#655b6b !important; }
html[data-theme="light"] .gathering-page .community-tab.active { background:#eee7f1 !important; color:#56366d !important; }
html[data-site-theme="amoled"] .gathering-page { background:#000 !important; }
html[data-site-theme="amoled"] .gathering-page .community-sidebar,html[data-site-theme="amoled"] .gathering-page .community-content,html[data-site-theme="amoled"] .gathering-page .community-card { background:#090909 !important; }
html[data-theme="light"] .notifications-page { background:#f5f1f6 !important; color:#302638 !important; }
html[data-theme="light"] .notifications-page .notification-row { background:#fffdf9 !important; border-color:#ded5e3 !important; }
html[data-theme="light"] .notifications-page .notification-message,html[data-theme="light"] .notifications-page .notification-time { color:#655b6b !important; }

/* Write chooser: reliable stacking, full tap targets and separate destinations. */
.write-sheet-overlay { z-index: 3200 !important; position: fixed !important; inset: 0 !important; display: grid !important; place-items: end center !important; padding: 12px 12px calc(12px + env(safe-area-inset-bottom,0px)) !important; background: rgba(7,4,10,.72) !important; }
.write-sheet-overlay[hidden] { display: none !important; }
.write-sheet { position: relative !important; z-index: 3201 !important; width: min(100%,520px) !important; max-height: min(70dvh,520px) !important; overflow-y: auto !important; padding: 22px 18px calc(18px + env(safe-area-inset-bottom,0px)) !important; border-radius: 18px 18px 12px 12px !important; background: var(--surface, #21172b) !important; color: var(--text, #f5eff8) !important; box-shadow: 0 20px 70px rgba(0,0,0,.45) !important; }
.write-sheet-option { width: 100% !important; min-height: 56px !important; display: flex !important; align-items: center !important; gap: 12px !important; margin-top: 9px !important; padding: 12px 14px !important; text-align: left !important; border-radius: 11px !important; position: relative !important; z-index: 2 !important; cursor: pointer !important; touch-action: manipulation !important; }
.write-sheet-close { z-index: 3 !important; width: 36px !important; height: 36px !important; display: grid !important; place-items: center !important; }
html[data-theme="light"] .write-sheet { background:#fffdf9 !important; color:#302638 !important; border:1px solid #ddd3e2 !important; }
html[data-theme="light"] .write-sheet-option { background:#f2edf3 !important; color:#302638 !important; border-color:#d8cddd !important; }

/* Admin and moderation workspaces. */
.admin-hero-actions { display:flex; flex-wrap:wrap; gap:10px; }
#adminModeratorDashboard { white-space:nowrap; }
@media(max-width:760px) {
  .admin-hero { padding:24px 0 18px !important; }
  .admin-hero-inner { display:flex !important; flex-direction:column !important; align-items:flex-start !important; gap:14px !important; }
  .admin-hero-title { font-size:clamp(2rem,8vw,2.8rem) !important; }
  .admin-hero-actions { width:100%; display:grid !important; grid-template-columns:1fr !important; }
  .admin-hero-actions > a { width:100%; justify-content:center; }
  .admin-tabs-wrap { overflow:hidden; }
  #adminTabs { display:flex !important; flex-wrap:nowrap !important; overflow-x:auto !important; padding-bottom:7px; scrollbar-width:none; }
  #adminTabs::-webkit-scrollbar { display:none; }
  .mod-hero { padding:24px 0 18px !important; }
  .mod-hero h1 { font-size:clamp(1.8rem,8vw,2.5rem) !important; }
  .mod-stats { grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:7px !important; }
  .mod-stat { min-width:0; padding:10px !important; }
  .mod-toolbar { flex-wrap:wrap !important; gap:10px !important; align-items:flex-start !important; }
  .mod-filter { width:100%; }
  .mod-filter select { width:100%; }
  .mod-report-card { padding:13px !important; }
  .mod-report-head { flex-wrap:wrap !important; gap:8px !important; }
  .mod-report-form { grid-template-columns:1fr !important; }
}

/* Resource Guide page: the same palette engine as the rest of GidiReads. */
.resources-page { --res-bg:#15101b; --res-panel:#211a29; --res-panel2:#292130; --res-line:rgba(210,190,225,.18); --res-text:#f4eef7; --res-muted:#c9bdcf; --res-accent:#c8b1dc; background:var(--res-bg) !important; color:var(--res-text) !important; }
.resources-page .resources-topbar { background:var(--res-panel) !important; border-color:var(--res-line) !important; }
.resources-page .resources-topbar a,.resources-page .resources-brand { color:var(--res-text) !important; }
.resources-page .resources-search,.resources-page .resources-featured,.resources-page .resource-card,.resources-page .resources-contact,.resources-page .resource-feedback,.resources-page .resource-next button { background:var(--res-panel) !important; border-color:var(--res-line) !important; color:var(--res-text) !important; }
.resources-page .resources-search input { color:var(--res-text) !important; }
.resources-page .resources-intro>p:last-child,.resources-page .resource-summary,.resources-page .resource-prose,.resources-page .resources-featured p:not(.resources-eyebrow),.resources-page .resource-card>span:nth-of-type(2) { color:var(--res-muted) !important; }
.resources-page .resources-featured h2,.resources-page .resource-article h1,.resources-page .resource-prose h2 { color:var(--res-text) !important; }
.resources-page .resource-category { color:var(--res-muted) !important; }
.resources-page .resource-category.active { background:var(--res-panel2) !important; border-left-color:var(--res-accent) !important; color:var(--res-text) !important; }
.resources-page .resource-category span,.resources-page .resource-updated,.resources-page .resources-footer { color:var(--res-muted) !important; }
.resources-page .resources-footer { border-color:var(--res-line) !important; }
.resources-page .resources-footer a,.resources-page .resource-back,.resources-page .resource-prose a { color:var(--res-accent-strong,var(--res-accent)) !important; }
html[data-theme="light"] .resources-page { --res-bg:#f5f1f6; --res-panel:#fffdf9; --res-panel2:#eee8f0; --res-line:rgba(75,55,86,.18); --res-text:#302638; --res-muted:#655b6b; --res-accent:#76548b; background:#f5f1f6 !important; color:#302638 !important; }
html[data-theme="light"] .resources-page .resources-featured { background:linear-gradient(115deg,#e9e1ee,#fffdf9) !important; }
html[data-theme="light"] .resources-page .resources-visuals article { background:#fffdf9 !important; }
html[data-theme="light"] .resources-page .resources-visuals article img { background:#eee8f0 !important; }
html[data-theme="light"] .resources-page .resource-feedback button { background:#eee8f0 !important; color:#302638 !important; border-color:#d8cddd !important; }
html[data-site-theme="amoled"] .resources-page { --res-bg:#000; --res-panel:#090909; --res-panel2:#111; background:#000 !important; }
@media(max-width:760px) {
  .resources-page .resources-layout { padding:24px 14px 36px !important; }
  .resources-page .resources-intro h1 { font-size:clamp(2rem,9vw,2.7rem) !important; }
  .resources-page .resources-search-row { gap:8px !important; margin-bottom:16px !important; }
  .resources-page .resources-visuals { grid-template-columns:1fr !important; gap:8px !important; }
  .resources-page .resources-visuals article { display:grid !important; grid-template-columns:86px minmax(0,1fr) !important; min-height:82px !important; }
  .resources-page .resources-visuals article img { width:86px !important; height:82px !important; padding:6px !important; }
  .resources-page .resources-visuals article>div { padding:9px 11px !important; }
  .resources-page .resources-visuals article>div strong { font-size:14px !important; }
  .resources-page .resources-body { gap:16px !important; }
  .resources-page .resources-categories { overflow:hidden; }
  .resources-page .resources-categories>div { display:flex !important; flex-wrap:nowrap !important; overflow-x:auto !important; gap:7px !important; padding:0 0 8px !important; }
  .resources-page .resource-category { flex:0 0 auto !important; width:auto !important; white-space:nowrap; border:1px solid var(--res-line) !important; border-radius:999px !important; padding:8px 11px !important; }
  .resources-page .resources-featured { min-height:110px !important; padding:15px !important; }
  .resources-page .resources-feature-mark { font-size:54px !important; }
  .resources-page .resource-article-grid { grid-template-columns:1fr !important; gap:8px !important; }
  .resources-page .resource-card { min-height:0 !important; padding:14px !important; }
  .resources-page .resource-prose { font-size:14px !important; line-height:1.75 !important; overflow-wrap:anywhere; }
  .resources-page .resource-next>div { grid-template-columns:1fr !important; }
}

/* Story Bible, Author Notes and Story Metadata share the same mobile drawer. */
.ws-menu-button { display:none; }
.ws-sidebar-close { display:none; }
@media(max-width:650px) {
  body:has(.ws-sidebar) { padding:0 !important; }
  .ws-shell { display:block !important; min-height:100dvh; }
  .ws-sidebar { display:flex !important; position:fixed !important; inset:0 auto 0 0 !important; width:min(86vw,320px) !important; height:100dvh !important; max-height:100dvh !important; padding:58px 14px 16px !important; z-index:2202 !important; overflow:hidden !important; background:var(--ws-panel,#211a29) !important; transform:translateX(-105%); transition:transform .24s ease !important; box-shadow:18px 0 48px rgba(0,0,0,.38); }
  .ws-sidebar.open { transform:translateX(0) !important; }
  .ws-sidebar nav { flex:1 1 auto; min-height:0; overflow-y:auto !important; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
  .ws-sidebar-close { display:grid !important; position:absolute; top:12px; right:12px; width:36px; height:36px; place-items:center; border:1px solid var(--ws-line); border-radius:50%; background:transparent; color:var(--ws-text); font-size:24px; }
  .ws-sidebar-backdrop { position:fixed; inset:0; z-index:2201; background:rgba(8,5,12,.66); opacity:0; visibility:hidden; pointer-events:none; transition:opacity .2s,visibility .2s; }
  .ws-sidebar-backdrop.show { opacity:1; visibility:visible; pointer-events:auto; }
  .ws-topbar { position:sticky !important; top:0 !important; z-index:100 !important; height:58px !important; padding:0 12px !important; gap:8px; }
  .ws-menu-button { display:inline-flex !important; width:36px; height:36px; flex:0 0 36px; align-items:center; justify-content:center; border:1px solid var(--ws-line); border-radius:9px; background:var(--ws-panel); color:var(--ws-text); font-size:19px; }
  .ws-mobile-brand { display:inline-flex !important; min-width:0; font-size:12px !important; white-space:nowrap; }
  .ws-top-actions { gap:6px !important; }
  .ws-top-actions .theme-toggle { padding:7px 8px !important; }
  .ws-top-actions .theme-label { display:none; }
  .ws-content { padding:14px 12px 28px !important; }
  .ws-hero { min-height:260px !important; border-radius:14px !important; }
  .ws-hero-copy { padding:18px 14px !important; padding-top:115px !important; }
  .ws-hero h1 { font-size:30px !important; }
  .ws-layout { grid-template-columns:minmax(0,1fr) !important; gap:11px !important; }
  .ws-card { padding:13px !important; border-radius:13px !important; }
  .ws-card-head { align-items:flex-start !important; flex-wrap:wrap; }
  .ws-card h2 { font-size:19px !important; }
  .ws-companion-card { display:grid !important; grid-template-columns:88px minmax(0,1fr) !important; }
  .ws-companion-card img { min-height:125px !important; max-height:150px !important; height:100% !important; }
  .ws-companion-copy { padding:11px !important; }
}

/* Create Story uses its own legacy drawer markup; align its stacking with the shared Studio drawer. */
@media(max-width:900px) {
  body:has(.shell > .sidebar) { padding:0 !important; }
  .shell > .sidebar { position:fixed !important; inset:0 auto 0 0 !important; height:100dvh !important; max-height:100dvh !important; overflow-y:auto !important; z-index:2202 !important; }
  .shell > .sidebar.open { transform:translateX(0) !important; }
  .shell > .backdrop { position:fixed !important; inset:0 !important; z-index:2201 !important; }
  .shell > main > header { position:sticky !important; top:0 !important; z-index:100 !important; }
  #menu { min-width:36px; min-height:36px; border-radius:9px; border:1px solid var(--line) !important; background:var(--surface) !important; }
  .shell > main > .content { padding-top:24px !important; }
}

@media(max-width:760px){body:has(.ws-sidebar),body:has(.shell > .sidebar){padding-top:0!important}body:has(.ws-sidebar)>.site-nav,body:has(.shell > .sidebar)>.site-nav{display:none!important}}

/* Preserve each light-family palette (Beige, Green Beige and Blue Beige) instead of
   flattening all light choices into one colour scheme. */
html[data-theme="light"] .studio-shell {
  --bg:var(--page-bg,#f5f1f6); --paper:var(--surface-2,#fffdf9); --ink:var(--text,#302638);
  --muted:color-mix(in srgb,var(--text,#302638) 64%,var(--page-bg,#f5f1f6));
  --line:var(--line-color,rgba(75,55,86,.18)); --plum:var(--accent,#76548b);
  --plum-deep:var(--accent-strong,#56366d); --lilac-soft:var(--accent-soft,rgba(118,84,139,.12));
}
html[data-theme="light"] .ws-shell {
  --ws-bg:var(--page-bg,#f5f1f6); --ws-panel:var(--surface-2,#fffdf9); --ws-panel-2:var(--surface-3,#eee8f0);
  --ws-text:var(--text,#302638); --ws-muted:color-mix(in srgb,var(--text,#302638) 64%,var(--page-bg,#f5f1f6));
  --ws-line:var(--line-color,rgba(75,55,86,.18)); --ws-accent:var(--accent,#76548b);
  --ws-accent-2:var(--accent-strong,#56366d); --ws-gold:var(--accent-strong,#56366d);
}
html[data-theme="light"] .collection-page { background:var(--page-bg,#f5f1f6) !important; color:var(--text,#302638) !important; }
html[data-theme="light"] .collection-page .collection-hero { background:linear-gradient(120deg,var(--surface,#eee7f1),var(--surface-2,#fffdf9) 75%) !important; }
html[data-theme="light"] .collection-page .collection-story-row { background:var(--surface-2,#fffdf9) !important; border-color:var(--line-color,#ddd3e2) !important; }
html[data-theme="light"] .collection-page .collection-story-copy h3,html[data-theme="light"] .collection-page .collection-story-stats strong,html[data-theme="light"] .collection-page .collection-toolbar h2 { color:var(--text,#302638) !important; }
html[data-theme="light"] .collection-page .collection-story-synopsis,html[data-theme="light"] .collection-page .collection-story-author,html[data-theme="light"] .collection-page .collection-story-stats { color:var(--muted,#655b6b) !important; }
html[data-theme="light"] .collection-page .collection-read-now { background:var(--accent,#76548b) !important; color:var(--button-text,#fff) !important; }
html[data-theme="light"] .oc-body { --oc-bg:var(--page-bg,#f5f1f6); --oc-surface:var(--surface-2,#fffdf9); --oc-surface-2:var(--surface-3,#eee8f0); --oc-line:var(--line-color,rgba(75,55,86,.18)); --oc-ink:var(--text,#302638); --oc-soft:var(--muted,#655b6b); --oc-muted:var(--muted,#655b6b); --oc-lilac:var(--accent,#76548b); --oc-pink:var(--accent-strong,#56366d); background:var(--page-bg,#f5f1f6) !important; color:var(--text,#302638) !important; }
html[data-theme="light"] .oc-card { background:var(--surface-2,#fffdf9) !important; border-color:var(--line-color,#ddd3e2) !important; }
html[data-theme="light"] .oc-card h3,html[data-theme="light"] .od-hero h1,html[data-theme="light"] .od-section h2,html[data-theme="light"] .oc-slide-copy h2 { color:var(--text,#302638) !important; }
html[data-theme="light"] .oc-card-text,html[data-theme="light"] .od-section p,html[data-theme="light"] .od-section ul,html[data-theme="light"] .oc-slide-text { color:var(--muted,#655b6b) !important; }
html[data-theme="light"] .resources-page { --res-bg:var(--page-bg,#f5f1f6); --res-panel:var(--surface-2,#fffdf9); --res-panel2:var(--surface-3,#eee8f0); --res-line:var(--line-color,rgba(75,55,86,.18)); --res-text:var(--text,#302638); --res-muted:var(--muted,#655b6b); --res-accent:var(--accent,#76548b); background:var(--page-bg,#f5f1f6) !important; color:var(--text,#302638) !important; }
html[data-theme="light"] .resources-page .resources-topbar { background:var(--surface-2,#fffdf9) !important; }
html[data-theme="light"] .resources-page .resources-featured { background:linear-gradient(115deg,var(--surface,#eee8f0),var(--surface-2,#fffdf9)) !important; }
html[data-theme="light"] .resources-page .resources-visuals article { background:var(--surface-2,#fffdf9) !important; }
html[data-theme="light"] .resources-page .resources-visuals article img { background:var(--surface-3,#eee8f0) !important; }
html[data-theme="light"] .story-page .story-hero-v2 { background:linear-gradient(130deg,var(--surface,#eee8f0),var(--page-bg,#f5f1f6)) !important; }
html[data-theme="light"] .story-page .story-detail-title-v2,html[data-theme="light"] .story-page .story-detail-author-wrap-v2,html[data-theme="light"] .story-page .story-stat-v2 { color:var(--text,#302638) !important; }
html[data-theme="light"] .story-page .story-detail-meta-v2,html[data-theme="light"] .story-page .story-update-line-v2 { color:var(--muted,#655b6b) !important; }
html[data-theme="light"] .story-page .story-secondary-btn,html[data-theme="light"] .story-page .story-icon-btn { background:var(--surface-2,#fffdf9) !important; color:var(--text,#302638) !important; border-color:var(--line-color,#d9cddd) !important; }
html[data-theme="light"] .story-page .story-read-btn { background:var(--accent,#76548b) !important; color:var(--button-text,#fff) !important; }
html[data-theme="light"] .gathering-page,html[data-theme="light"] .gathering-page .gathering-top { background:var(--page-bg,#f5f1f6) !important; color:var(--text,#302638) !important; }
html[data-theme="light"] .gathering-page .gathering-hero,html[data-theme="light"] .gathering-page .community-sidebar,html[data-theme="light"] .gathering-page .community-content,html[data-theme="light"] .gathering-page .community-card { background:var(--surface-2,#fffdf9) !important; color:var(--text,#302638) !important; border-color:var(--line-color,#ded5e3) !important; }
html[data-theme="light"] .gathering-page :is(.hero-copy h1,.community-content h2,.community-card h3,.community-sidebar h2) { color:var(--text,#302638) !important; }
html[data-theme="light"] .gathering-page :is(.hero-copy p,.community-card p,.community-muted,.community-tab) { color:var(--muted,#655b6b) !important; }
html[data-theme="light"] .notifications-page { background:var(--page-bg,#f5f1f6) !important; color:var(--text,#302638) !important; }
html[data-theme="light"] .notifications-page .notification-row { background:var(--surface-2,#fffdf9) !important; border-color:var(--line-color,#ded5e3) !important; }
html[data-theme="light"] .notifications-page .notification-message,html[data-theme="light"] .notifications-page .notification-time { color:var(--muted,#655b6b) !important; }
html[data-theme="light"] .write-sheet { background:var(--surface-2,#fffdf9) !important; color:var(--text,#302638) !important; border-color:var(--line-color,#ddd3e2) !important; }
html[data-theme="light"] .write-sheet-option { background:var(--surface-3,#f2edf3) !important; color:var(--text,#302638) !important; border-color:var(--line-color,#d8cddd) !important; }

/* First-visit theme coach mark. */
#gr-first-theme-guide { position:fixed; z-index:3000; left:14px; right:14px; bottom:calc(18px + env(safe-area-inset-bottom,0px)); display:grid; grid-template-columns:34px minmax(0,1fr) auto 28px; gap:10px; align-items:center; padding:13px; border:1px solid rgba(198,168,239,.32); border-radius:16px; background:#111; color:#f6f1fa; box-shadow:0 14px 40px rgba(0,0,0,.45); font:inherit; }
#gr-first-theme-guide .gr-theme-guide-hand { font-size:24px; text-align:center; }
#gr-first-theme-guide strong,#gr-first-theme-guide small { display:block; }
#gr-first-theme-guide strong { font-size:13px; }
#gr-first-theme-guide small { color:#c9bfd1; font-size:11px; line-height:1.4; margin-top:3px; }
#gr-first-theme-guide a { color:#e1c9f2; font-size:11px; font-weight:700; white-space:nowrap; text-decoration:none; }
#gr-first-theme-guide button { width:28px; height:28px; border:0; border-radius:50%; background:#29212f; color:#fff; font-size:20px; }
@media(max-width:390px){#gr-first-theme-guide{grid-template-columns:28px minmax(0,1fr) 26px;}#gr-first-theme-guide a{grid-column:2;justify-self:start}#gr-first-theme-guide button{grid-column:3;grid-row:1;}}

/* Search is a results workspace, not a second discovery homepage. */
.explore-page .explore-hero.is-search-mode { min-height:0 !important; padding:18px 0 !important; }
.explore-page .explore-hero.is-search-mode .explore-character-scene,
.explore-page .explore-hero.is-search-mode .explore-hero-stars,
.explore-page .explore-hero.is-search-mode .explore-hero-glow,
.explore-page .explore-hero.is-search-mode .explore-hero-caption,
.explore-page .explore-hero.is-search-mode .explore-kicker,
.explore-page .explore-hero.is-search-mode h1,
.explore-page .explore-hero.is-search-mode .explore-hero-copy>p { display:none !important; }
.explore-page .explore-hero.is-search-mode .explore-hero-inner { display:block !important; }
.explore-page .explore-hero.is-search-mode .explore-search { margin:0 auto !important; max-width:760px !important; }
.explore-page .explore-results-section { padding-top:22px !important; }
.explore-page .explore-results-list { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:12px !important; }
@media(max-width:600px){.explore-page .explore-results-list .explore-story-card{min-width:0 !important}.explore-page .explore-results-list .explore-card-cover{aspect-ratio:3/4 !important}.explore-page .explore-results-list .explore-card-copy{padding:8px !important}.explore-page .explore-results-list .explore-card-copy h3{font-size:13px !important;line-height:1.3 !important}.explore-page .explore-results-list .explore-card-meta{font-size:9px !important;flex-wrap:wrap !important}}

.story-page .story-intro-main { min-width:0; }
.story-page .story-intro-main h2 { letter-spacing:-.025em; }
.story-page .story-synopsis-text-v2 { max-width:68ch; }
@media(max-width:760px){.story-page .story-intro-main{padding:18px 16px 19px;border:1px solid var(--gr-repair-line);border-radius:14px;background:var(--gr-repair-surface-2)}.story-page .story-intro-main .story-kicker{display:inline-flex;margin-bottom:4px}.story-page .story-synopsis-text-v2{max-width:none}}

/* 13 Nov refinement: story details, author bio, recommendations and Explore search.
   These rules intentionally replace earlier conflicting mobile overrides. */
@media (max-width: 760px) {
  .story-page .section-inner { width: min(100% - 32px, 720px) !important; margin-inline: auto !important; }
  .story-page .story-hero-v2 { padding: 26px 0 32px !important; }
  .story-page .story-hero-inner-v2 { grid-template-columns: 136px minmax(0,1fr) !important; gap: 16px !important; align-items: start !important; }
  .story-page .story-cover-stage { width:136px !important; min-width:0 !important; justify-content:flex-start !important; }
  .story-page .story-cover-frame-v2 { width:136px !important; max-width:136px !important; min-width:0 !important; }
  .story-page .story-cover-frame-v2 .cover-lg { display:block !important; width:136px !important; height:204px !important; aspect-ratio:2/3 !important; object-fit:cover !important; border-radius:12px !important; }
  .story-page .story-cover-glow,.story-page .story-hero-particles { opacity:.16 !important; }
  .story-page .story-hero-content { min-width:0 !important; max-width:none !important; }
  .story-page .story-detail-title-v2 { font-size:clamp(1.35rem,5vw,1.75rem) !important; line-height:1.12 !important; letter-spacing:-.025em !important; overflow-wrap:break-word !important; }
  .story-page .story-detail-author-wrap-v2 { min-width:0 !important; flex-wrap:wrap !important; font-size:13px !important; }
  .story-page .story-detail-meta-v2,.story-page .story-stat-v2 { font-size:11px !important; line-height:1.4 !important; }
  .story-page .story-detail-stats-v2 { gap:7px 11px !important; }
  .story-page .story-detail-actions-v2 { display:flex !important; flex-wrap:wrap !important; gap:8px !important; }
  .story-page .story-read-btn,.story-page .story-secondary-btn { min-height:40px !important; padding:0 12px !important; font-size:12px !important; }
  .story-page .story-icon-btn { width:40px !important; min-height:40px !important; }
  .story-page .story-intro-section { padding:34px 0 !important; }
  .story-page .story-intro-grid { display:grid !important; grid-template-columns:minmax(0,1fr) !important; gap:18px !important; }
  .story-page .story-intro-main { min-width:0 !important; padding:20px 18px !important; border:1px solid var(--line-color) !important; border-radius:16px !important; background:var(--surface) !important; }
  .story-page .story-intro-main h2 { font-size:1.7rem !important; margin:7px 0 13px !important; }
  .story-page .story-synopsis-text-v2 { max-width:66ch !important; font-size:15px !important; line-height:1.78 !important; white-space:normal !important; overflow-wrap:break-word !important; word-break:normal !important; }
  .story-page .story-synopsis-text-v2.clamp-2 { -webkit-line-clamp:6 !important; }
  .story-page .story-at-a-glance { border:0 !important; border-radius:14px !important; padding:17px !important; background:var(--surface-2) !important; }
  .story-page .story-quick-facts-v2>div { gap:12px !important; }
  .story-page .story-author-card-v2 { display:grid !important; grid-template-columns:68px minmax(0,1fr) !important; gap:8px 14px !important; align-items:start !important; padding:17px !important; border-radius:16px !important; }
  .story-page .story-author-card-v2 .author-pfp-v2 { grid-column:1 !important; grid-row:1 / span 3 !important; width:68px !important; height:68px !important; max-width:68px !important; border-radius:50% !important; object-fit:cover !important; }
  .story-page .story-author-copy-v2 { grid-column:2 !important; min-width:0 !important; width:100% !important; }
  .story-page .story-author-copy-v2 h3 { margin:0 0 3px !important; font-size:1.05rem !important; line-height:1.25 !important; overflow-wrap:anywhere !important; }
  .story-page .story-author-username { display:block !important; margin:0 0 8px !important; color:var(--muted) !important; font-size:12px !important; }
  .story-page .story-author-copy-v2 .story-author-bio { display:block !important; width:100% !important; max-width:none !important; margin:0 !important; font-size:13px !important; line-height:1.65 !important; white-space:normal !important; overflow-wrap:break-word !important; word-break:normal !important; }
  .story-page .story-author-actions-v2 { grid-column:1 / -1 !important; justify-content:flex-end !important; min-width:0 !important; margin-top:8px !important; }
  .story-page .story-author-actions-v2 a { display:inline-flex !important; align-items:center !important; justify-content:center !important; min-height:38px !important; padding:8px 13px !important; white-space:nowrap !important; }
  .story-page .story-recommend-grid { display:flex !important; flex-wrap:nowrap !important; gap:13px !important; overflow-x:auto !important; overflow-y:hidden !important; padding:2px 2px 12px !important; margin:18px -2px 0 !important; scroll-snap-type:x mandatory !important; -webkit-overflow-scrolling:touch !important; }
  .story-page .story-recommend-card { display:block !important; flex:0 0 138px !important; width:138px !important; min-width:138px !important; scroll-snap-align:start !important; }
  .story-page .story-recommend-cover { width:100% !important; aspect-ratio:2/3 !important; max-height:none !important; border-radius:11px !important; }
  .story-page .story-recommend-cover img { width:100% !important; height:100% !important; object-fit:cover !important; }
  .story-page .story-recommend-copy { min-width:0 !important; }
  .story-page .story-recommend-title { display:-webkit-box !important; -webkit-line-clamp:2 !important; -webkit-box-orient:vertical !important; overflow:hidden !important; font-size:13px !important; line-height:1.35 !important; margin:9px 0 3px !important; overflow-wrap:break-word !important; }
  .story-page .story-recommend-author,.story-page .story-recommend-meta { display:block !important; max-width:100% !important; overflow:hidden !important; text-overflow:ellipsis !important; white-space:nowrap !important; font-size:10px !important; line-height:1.5 !important; }
  .story-page :is(.story-taxonomy-section-v2,.story-chapters-section-v2,.story-reviews-section-v2,.story-author-section-v2,.story-related-section-v2) { padding:34px 0 !important; }
  .story-page .story-section-title-row-v2 { align-items:flex-start !important; gap:12px !important; }
}
@media (max-width: 390px) {
  .story-page .section-inner { width:calc(100% - 28px) !important; }
  .story-page .story-hero-inner-v2 { grid-template-columns:124px minmax(0,1fr) !important; gap:13px !important; }
  .story-page .story-cover-stage,.story-page .story-cover-frame-v2 { width:124px !important; }
  .story-page .story-cover-frame-v2 .cover-lg { width:124px !important; height:186px !important; }
  .story-page .story-detail-title-v2 { font-size:1.3rem !important; }
  .story-page .story-author-card-v2 { grid-template-columns:60px minmax(0,1fr) !important; gap:8px 11px !important; }
  .story-page .story-author-card-v2 .author-pfp-v2 { width:60px !important; height:60px !important; }
}

/* Explore search: wide input, true autocomplete panel, readable result rows. */
.explore-page .explore-search { position:relative !important; width:min(760px,100%) !important; max-width:100% !important; min-width:0 !important; }
.explore-page .explore-search input { min-width:0 !important; width:100% !important; flex:1 1 auto !important; }
.gr-search-suggestions { position:absolute !important; z-index:1800 !important; top:calc(100% + 9px) !important; left:0 !important; right:0 !important; max-height:min(62vh,430px) !important; overflow-y:auto !important; padding:7px !important; border:1px solid var(--line-color) !important; border-radius:14px !important; background:var(--surface-2) !important; color:var(--text) !important; box-shadow:0 18px 44px rgba(0,0,0,.34) !important; }
.gr-search-suggestions[hidden] { display:none !important; }
.gr-search-suggestion { display:grid !important; grid-template-columns:42px minmax(0,1fr) auto !important; align-items:center !important; gap:10px !important; width:100% !important; min-height:54px !important; padding:7px !important; border:0 !important; border-radius:10px !important; background:transparent !important; color:var(--text) !important; text-align:left !important; cursor:pointer !important; }
.gr-search-suggestion:hover,.gr-search-suggestion[aria-selected="true"] { background:var(--surface-3) !important; }
.gr-search-suggestion img { width:42px !important; height:52px !important; object-fit:cover !important; border-radius:6px !important; }
.gr-search-suggestion-icon { display:grid !important; place-items:center !important; width:42px !important; height:42px !important; border-radius:10px !important; background:var(--surface-3) !important; color:var(--accent) !important; font-weight:700 !important; }
.gr-search-suggestion-copy { min-width:0 !important; }
.gr-search-suggestion-copy strong,.gr-search-suggestion-copy small { display:block !important; overflow:hidden !important; text-overflow:ellipsis !important; white-space:nowrap !important; }
.gr-search-suggestion-copy strong { font-size:13px !important; }
.gr-search-suggestion-copy small { margin-top:3px !important; color:var(--muted) !important; font-size:11px !important; }
.gr-search-suggestion-kind { color:var(--muted) !important; font-size:10px !important; white-space:nowrap !important; }
.gr-search-suggestion-empty { padding:15px 12px !important; color:var(--muted) !important; font-size:12px !important; }
.gr-search-results-list { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:14px !important; }
.gr-search-result-card { display:grid !important; grid-template-columns:92px minmax(0,1fr) !important; gap:13px !important; min-width:0 !important; padding:11px !important; border:1px solid var(--line-color) !important; border-radius:14px !important; background:var(--surface) !important; color:var(--text) !important; }
.gr-search-result-cover { display:block !important; width:92px !important; aspect-ratio:2/3 !important; overflow:hidden !important; border-radius:9px !important; background:var(--surface-3) !important; }
.gr-search-result-cover img,.gr-search-result-cover .cover-placeholder { display:block !important; width:100% !important; height:100% !important; object-fit:cover !important; }
.gr-search-result-copy { display:flex !important; flex-direction:column !important; align-items:flex-start !important; min-width:0 !important; gap:5px !important; }
.gr-search-result-title { display:-webkit-box !important; -webkit-line-clamp:2 !important; -webkit-box-orient:vertical !important; overflow:hidden !important; color:var(--text) !important; font-family:var(--font-display) !important; font-size:15px !important; font-weight:650 !important; line-height:1.3 !important; overflow-wrap:break-word !important; }
.gr-search-result-author { margin:0 !important; color:var(--accent-strong) !important; font-size:11px !important; line-height:1.35 !important; }
.gr-search-result-description { display:-webkit-box !important; -webkit-line-clamp:3 !important; -webkit-box-orient:vertical !important; overflow:hidden !important; min-width:0 !important; margin:0 !important; color:var(--muted) !important; font-size:11px !important; line-height:1.5 !important; overflow-wrap:break-word !important; }
.gr-search-result-meta { display:flex !important; flex-wrap:wrap !important; gap:5px 9px !important; margin-top:auto !important; color:var(--muted) !important; font-size:10px !important; line-height:1.4 !important; }
@media(max-width:760px){
  .explore-page .explore-search { display:grid !important; grid-template-columns:minmax(0,1fr) auto !important; gap:9px !important; padding:10px 11px !important; }
  .explore-page .explore-search>svg { grid-column:1; grid-row:1; }
  .explore-page .explore-search input { grid-column:1 / -1 !important; grid-row:1 !important; padding:5px 2px 5px 29px !important; font-size:14px !important; }
  .explore-page .explore-search select { grid-column:1 !important; grid-row:2 !important; width:100% !important; min-width:0 !important; }
  .explore-page .explore-search button { grid-column:2 !important; grid-row:2 !important; min-width:82px !important; }
  .gr-search-results-list { grid-template-columns:minmax(0,1fr) !important; gap:10px !important; }
  .gr-search-result-card { grid-template-columns:84px minmax(0,1fr) !important; gap:12px !important; padding:10px !important; }
  .gr-search-result-cover { width:84px !important; }
  .gr-search-result-title { font-size:14px !important; }
  .gr-search-result-description { -webkit-line-clamp:3 !important; font-size:11px !important; }
}

/* GidiReads palette system: semantic surfaces for public pages and workspaces. */
:root { --gr-card-bg:var(--surface); --gr-card-raised:var(--surface-2); --gr-card-soft:var(--surface-3); --gr-copy:var(--text); --gr-copy-muted:var(--muted); --gr-border:var(--line-color); --gr-link:var(--accent-strong); }
html[data-site-theme="plum"] { --gr-card-bg:#1b1222; --gr-card-raised:#24182e; --gr-card-soft:#30213b; --gr-copy:#f5eff8; --gr-copy-muted:#c5b7ce; --gr-border:rgba(205,175,225,.2); --gr-link:#d8b8f1; }
html[data-site-theme="amoled"] { --gr-card-bg:#09090c; --gr-card-raised:#111116; --gr-card-soft:#1b1820; --gr-copy:#f7f4fa; --gr-copy-muted:#c5bfce; --gr-border:rgba(255,255,255,.16); --gr-link:#d8b7ff; }
html[data-site-theme="lilac"] { --gr-card-bg:#f3ebe1; --gr-card-raised:#fffdfb; --gr-card-soft:#eee5f5; --gr-copy:#241b2b; --gr-copy-muted:#665b6d; --gr-border:rgba(48,34,58,.14); --gr-link:#68478c; }
html[data-site-theme="greenbeige"] { --gr-card-bg:#eaf1e4; --gr-card-raised:#fbfdf7; --gr-card-soft:#e2ebd8; --gr-copy:#1a2416; --gr-copy-muted:#5a6b52; --gr-border:rgba(26,36,22,.14); --gr-link:#3f6b40; }
html[data-site-theme="bluishbeige"] { --gr-card-bg:#e8eef6; --gr-card-raised:#fafcff; --gr-card-soft:#dde6f2; --gr-copy:#161e2a; --gr-copy-muted:#526070; --gr-border:rgba(22,30,42,.14); --gr-link:#3f5f8a; }
html[data-site-theme="custom"] { --gr-card-bg:var(--surface); --gr-card-raised:var(--surface-2); --gr-card-soft:var(--surface-3); --gr-copy:var(--text); --gr-copy-muted:var(--muted); --gr-border:var(--line-color); --gr-link:var(--accent-strong); }
html[data-site-theme] :is(.story-page .story-intro-section,.story-page .story-author-section-v2,.story-page .story-adaptation-section-v2,.story-page .story-chapters-section-v2,.story-page .story-taxonomy-section-v2,.story-page .story-related-section-v2,.story-page .story-reviews-section-v2) { background:var(--page-bg) !important; color:var(--gr-copy) !important; }
html[data-site-theme] :is(.story-page .story-intro-main,.story-page .story-at-a-glance,.story-page .story-author-card-v2,.story-page .story-latest-chapter,.story-page .story-full-chapter-row,.story-page .story-review-card) { background:var(--gr-card-bg) !important; border-color:var(--gr-border) !important; color:var(--gr-copy) !important; }
html[data-site-theme] :is(.story-page .story-detail-title-v2,.story-page .story-intro-main h2,.story-page .story-section-title-v2 h2,.story-page .story-section-title-row-v2 h2,.story-page .story-author-copy-v2 h3,.story-page .story-recommend-title) { color:var(--gr-copy) !important; }
html[data-site-theme] :is(.story-page .story-synopsis-text-v2,.story-page .story-author-copy-v2 p,.story-page .story-author-username,.story-page .story-recommend-author,.story-page .story-recommend-meta,.story-page .story-at-a-glance span) { color:var(--gr-copy-muted) !important; }
html[data-site-theme] :is(.story-page .story-read-btn,.story-page .story-author-actions-v2 a,.story-page .story-text-link,.story-page .story-see-all-v2) { border-color:var(--gr-border) !important; }
html[data-site-theme] :is(.explore-page .explore-story-card,.explore-page .explore-featured-card,.explore-page .explore-taxonomy-card,.explore-page .public-reading-list-card,.explore-page .gr-search-result-card) { background:var(--gr-card-bg) !important; color:var(--gr-copy) !important; border-color:var(--gr-border) !important; }
html[data-site-theme] :is(.explore-page .explore-card-copy h3,.explore-page .explore-section-heading h2,.explore-page .gr-search-result-title) { color:var(--gr-copy) !important; }
html[data-site-theme] :is(.explore-page .explore-card-copy p,.explore-page .explore-card-meta,.explore-page .gr-search-result-description,.explore-page .gr-search-result-meta) { color:var(--gr-copy-muted) !important; }


/* Profile breathing room: mobile pages should feel composed, not zoomed-in. */
@media(max-width:760px){
  .profile-main-inner { width:100% !important; max-width:760px !important; padding:0 20px !important; margin-top:-42px !important; }
  .profile-banner,.profile-banner-shade { height:178px !important; }
  .profile-identity-row { grid-template-columns:72px minmax(0,1fr) !important; gap:13px !important; align-items:start !important; }
  .profile-avatar-orbit { width:72px !important; height:72px !important; min-width:72px !important; padding:3px !important; box-shadow:0 0 0 2px rgba(198,168,239,.16),0 5px 18px rgba(0,0,0,.2) !important; }
  .profile-avatar-orbit:after { display:none !important; }
  .profile-identity-copy { min-width:0 !important; padding-top:5px !important; }
  .profile-identity-copy h1 { font-size:1.45rem !important; line-height:1.15 !important; overflow-wrap:anywhere !important; }
  .profile-eyebrow { font-size:.58rem !important; letter-spacing:.14em !important; }
  .profile-handle { margin:5px 0 7px !important; font-size:.78rem !important; }
  .profile-bio { max-width:56ch !important; font-size:.82rem !important; line-height:1.65 !important; overflow-wrap:break-word !important; }
  .profile-joined { font-size:.7rem !important; }
  .profile-actions { grid-column:1/-1 !important; justify-content:flex-start !important; gap:8px !important; padding-top:7px !important; }
  .profile-action { min-height:39px !important; padding:9px 12px !important; border-radius:10px !important; font-size:.75rem !important; }
  .profile-stats-row { margin:20px 0 24px !important; padding:13px 0 !important; gap:0 !important; overflow-x:auto !important; }
  .profile-stat { min-width:0 !important; flex:1 0 0 !important; padding:0 7px !important; }
  .profile-stat strong { font-size:1.08rem !important; }
  .profile-stat span { font-size:.63rem !important; }
  .profile-content-grid { grid-template-columns:minmax(0,1fr) !important; gap:16px !important; }
  .profile-stories-panel { padding:16px 14px !important; border-radius:15px !important; }
  .profile-section-heading { gap:10px !important; padding-bottom:12px !important; margin-bottom:14px !important; }
  .profile-section-heading h2 { font-size:1.35rem !important; }
  .profile-story-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:11px !important; }
  .profile-story-card { min-width:0 !important; border-radius:11px !important; }
  .profile-story-card .cover-md { width:100% !important; height:auto !important; aspect-ratio:2/3 !important; object-fit:cover !important; }
  .profile-story-card .story-card-body { min-width:0 !important; padding:9px !important; }
  .profile-story-card .story-card-title { display:-webkit-box !important; -webkit-line-clamp:2 !important; -webkit-box-orient:vertical !important; overflow:hidden !important; font-size:.9rem !important; line-height:1.3 !important; }
  .profile-story-meta { gap:6px !important; font-size:.62rem !important; line-height:1.4 !important; }
  .gr-profile-page,.gr-edit-page { padding-inline:14px !important; }
  .gr-profile-page :is(.gr-profile-top,.gr-profile-content,.gr-profile-panel) { min-width:0 !important; max-width:100% !important; }
}
/* Public profile palette follows the same six global themes. */
html[data-site-theme] .profile-page { background:var(--page-bg) !important; color:var(--text) !important; }
html[data-site-theme] .profile-stories-panel,html[data-site-theme] .profile-side-note,html[data-site-theme] .profile-story-card { background:var(--surface) !important; border-color:var(--line-color) !important; color:var(--text) !important; }
html[data-site-theme] :is(.profile-identity-copy h1,.profile-section-heading h2,.profile-story-card .story-card-title) { color:var(--text) !important; }
html[data-site-theme] :is(.profile-bio,.profile-joined,.profile-story-meta,.profile-story-card .story-card-genre) { color:var(--muted) !important; }
html[data-site-theme] .profile-action { background:var(--surface-2) !important; border-color:var(--line-color) !important; color:var(--text) !important; }
html[data-site-theme] .profile-action.primary { background:var(--accent) !important; border-color:var(--accent) !important; color:var(--button-text) !important; }
@media(max-width:760px){
  .ae-approved-contract-row { grid-template-columns:minmax(0,1fr) !important; align-items:stretch !important; }
  .ae-approved-contract-row .adm-field,.ae-approved-contract-row button { width:100% !important; min-width:0 !important; }
  .ae-approved-contract-row input { width:100% !important; min-width:0 !important; }
}

/* Short swipe guidance for the mobile Authors Studio navigation drawer. */
.studio-nav-hint{display:flex;align-items:center;gap:10px;margin:0 2px 10px;padding:10px 11px;border:1px solid rgba(190,151,83,.32);border-radius:10px;background:rgba(190,151,83,.08);color:var(--ink,var(--gr-repair-ink));}
.studio-nav-hint>span:first-child{font-size:20px;color:var(--gold,#c7a45d);flex:none}
.studio-nav-hint strong,.studio-nav-hint small{display:block}.studio-nav-hint strong{font-size:11px}.studio-nav-hint small{margin-top:3px;font-size:10px;line-height:1.4;color:var(--muted,var(--gr-repair-muted))}
