/*
VYRITY-018S — DARK THEME CONSISTENCY REPAIR

Purpose:
Normalize the newer Home / Ask Vyrity / Past Conversations surfaces to the
existing Vyrity theme engine, which resolves the user's preference onto:

    html[data-theme="light"]
    html[data-theme="dark"]

This file deliberately affects only the vgh-*, ask-*, and ah-* namespaces.
It does not redefine the global theme engine.
*/

/* ========================================================================
   GUIDED HOME
   ======================================================================== */
html[data-theme="dark"] .vgh-home{
  --vgh-ink:rgb(238,247,251);
  --vgh-muted:rgb(176,199,214);
  --vgh-line:rgba(177,211,226,.18);
  color:var(--vgh-ink);
  background:
    radial-gradient(circle at 8% 12%,rgba(73,218,229,.10),transparent 28%),
    radial-gradient(circle at 91% 12%,rgba(205,137,213,.09),transparent 29%),
    linear-gradient(180deg,rgb(7,27,51) 0%,rgb(9,31,54) 70%,rgb(7,27,51) 100%);
}

html[data-theme="dark"] .vgh-member-note,
html[data-theme="dark"] .vgh-trust,
html[data-theme="dark"] .vgh-choice-grid>div>p:not(.vgh-eyebrow),
html[data-theme="dark"] .vgh-public-desc,
html[data-theme="dark"] .vgh-member-lead,
html[data-theme="dark"] .vgh-next-card p,
html[data-theme="dark"] .vgh-member-card p,
html[data-theme="dark"] .vgh-choice-links span,
html[data-theme="dark"] .vgh-step>p,
html[data-theme="dark"] .vgh-options small,
html[data-theme="dark"] .vgh-result p,
html[data-theme="dark"] .vgh-result li,
html[data-theme="dark"] .vgh-principles p,
html[data-theme="dark"] .vgh-section-head>p:not(.vgh-eyebrow),
html[data-theme="dark"] .vgh-edition p,
html[data-theme="dark"] .vgh-door-grid p{
  color:var(--vgh-muted);
}

html[data-theme="dark"] .vgh-next-card,
html[data-theme="dark"] .vgh-member-card,
html[data-theme="dark"] .vgh-choice-links a,
html[data-theme="dark"] .vgh-guide,
html[data-theme="dark"] .vgh-options button,
html[data-theme="dark"] .vgh-principles article,
html[data-theme="dark"] .vgh-edition,
html[data-theme="dark"] .vgh-door-grid a,
html[data-theme="dark"] .vgh-tag,
html[data-theme="dark"] .vgh-symbol{
  background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
  border-color:var(--vgh-line);
  color:var(--vgh-ink);
  box-shadow:0 18px 50px rgba(0,0,0,.17);
}

html[data-theme="dark"] .vgh-member-progress,
html[data-theme="dark"] .vgh-editions,
html[data-theme="dark"] .vgh-platform-all{
  background:rgba(255,255,255,.018);
  border-color:rgba(177,211,226,.09);
}

html[data-theme="dark"] .vgh-member-card-profile,
html[data-theme="dark"] .vgh-edition.live{
  background:
    linear-gradient(145deg,rgba(73,218,229,.09),rgba(177,139,250,.08),rgba(232,149,201,.055));
}

html[data-theme="dark"] .vgh-guide-head{
  border-color:rgba(177,211,226,.14);
}

html[data-theme="dark"] .vgh-dots span{
  background:rgba(184,209,222,.20);
}

html[data-theme="dark"] .vgh-options button.selected{
  background:linear-gradient(145deg,rgba(73,218,229,.12),rgba(177,139,250,.10));
  border-color:rgba(105,229,237,.42);
}

html[data-theme="dark"] .vgh-result-main{
  background:linear-gradient(140deg,rgba(73,218,229,.11),rgba(177,139,250,.10));
  border-color:rgba(105,229,237,.22);
}

html[data-theme="dark"] .vgh-result-why{
  background:rgba(255,255,255,.045);
  border-color:var(--vgh-line);
}

html[data-theme="dark"] .vgh-platform-note{
  background:rgba(255,255,255,.045);
  color:rgb(181,202,216);
}
html[data-theme="dark"] .vgh-platform-note strong{color:rgb(239,248,252)}

html[data-theme="dark"] .vgh-trust strong{color:var(--vgh-ink)}
html[data-theme="dark"] .vgh-tag{color:rgb(185,205,218)}
html[data-theme="dark"] .vgh-ring{border-color:rgba(153,199,218,.16)}
html[data-theme="dark"] .vgh-why{color:rgb(151,177,193)}

html[data-theme="dark"] [data-vgh-ask-guide] textarea{
  background:rgb(11,37,59);
  border-color:rgb(72,110,136);
  color:rgb(239,248,252);
}
html[data-theme="dark"] [data-vgh-ask-guide] textarea::placeholder{
  color:rgb(145,171,188);
}

/* ========================================================================
   ASK VYRITY
   ======================================================================== */
html[data-theme="dark"] .ask-shell{color:rgb(236,247,251)}
html[data-theme="dark"] .ask-title,
html[data-theme="dark"] .ask-conversation-title,
html[data-theme="dark"] .ask-side-title{
  color:rgb(242,250,253);
}
html[data-theme="dark"] .ask-lead,
html[data-theme="dark"] .ask-empty-state,
html[data-theme="dark"] .ask-note,
html[data-theme="dark"] .ask-empty,
html[data-theme="dark"] .ask-history-note,
html[data-theme="dark"] .ask-history-tip,
html[data-theme="dark"] .ask-continuity-note{
  color:rgb(176,199,214);
}

html[data-theme="dark"] .ask-card{
  background:rgb(10,34,56);
  border-color:rgba(177,211,226,.20);
  box-shadow:0 18px 50px rgba(0,0,0,.20);
}

html[data-theme="dark"] .ask-conversation{
  border-color:rgba(177,211,226,.22);
}

html[data-theme="dark"] .ask-conversation-head{
  background:rgb(12,40,63);
  border-color:rgba(177,211,226,.17);
}

html[data-theme="dark"] .ask-stream{
  background:rgb(8,30,51);
}

html[data-theme="dark"] .ask-compose{
  background:rgb(11,37,59);
  border-color:rgba(177,211,226,.18);
}

html[data-theme="dark"] .ask-textarea{
  background:rgb(7,28,48);
  border-color:rgb(70,108,134);
  color:rgb(239,248,252);
}
html[data-theme="dark"] .ask-textarea::placeholder{color:rgb(143,169,186)}

html[data-theme="dark"] .ask-label,
html[data-theme="dark"] .ask-message-label,
html[data-theme="dark"] .ask-message-meta{
  color:rgb(163,188,204);
}

html[data-theme="dark"] .ask-message.user .ask-bubble{
  background:linear-gradient(135deg,rgba(73,218,229,.20),rgba(220,147,209,.17));
  color:rgb(242,250,253);
  border-color:rgba(120,220,229,.26);
}

html[data-theme="dark"] .ask-message.assistant .ask-bubble{
  background:rgb(15,46,69);
  color:rgb(235,246,250);
  border-color:rgba(177,211,226,.18);
}

html[data-theme="dark"] .ask-evidence-disclosure,
html[data-theme="dark"] .ask-source-actions,
html[data-theme="dark"] .ask-history-tip{
  border-color:rgba(177,211,226,.15);
}

html[data-theme="dark"] .ask-evidence-toggle{color:rgb(155,190,209)}
html[data-theme="dark"] .ask-evidence-toggle:hover,
html[data-theme="dark"] .ask-evidence-toggle:focus-visible{color:rgb(130,225,233)}

html[data-theme="dark"] .ask-evidence-chip{
  background:rgba(83,175,194,.13);
  border-color:rgba(105,193,210,.25);
  color:rgb(189,228,237);
}
html[data-theme="dark"] .ask-evidence-chip:hover,
html[data-theme="dark"] .ask-evidence-chip:focus-visible{
  background:rgba(83,175,194,.20);
}

html[data-theme="dark"] .ask-button.secondary,
html[data-theme="dark"] .ask-head-button,
html[data-theme="dark"] .ask-export-choice{
  background:rgb(14,45,68);
  border-color:rgba(140,191,210,.31);
  color:rgb(230,244,250);
  box-shadow:none;
}
html[data-theme="dark"] .ask-button.secondary:hover,
html[data-theme="dark"] .ask-head-button:hover,
html[data-theme="dark"] .ask-export-choice:hover{
  background:rgb(18,55,80);
}

html[data-theme="dark"] .ask-thread{color:rgb(208,226,236)}
html[data-theme="dark"] .ask-thread strong{color:rgb(236,247,251)}
html[data-theme="dark"] .ask-thread span{color:rgb(151,177,193)}
html[data-theme="dark"] .ask-thread:hover{background:rgba(255,255,255,.045)}
html[data-theme="dark"] .ask-thread.active{
  background:rgba(99,154,215,.14);
  border-color:rgba(145,187,225,.24);
}

html[data-theme="dark"] .ask-load-older{
  background:rgb(13,42,65);
  border-color:rgba(151,192,210,.27);
  color:rgb(214,233,241);
}
html[data-theme="dark"] .ask-load-older:hover,
html[data-theme="dark"] .ask-load-older:focus-visible{
  background:rgb(17,51,75);
}

html[data-theme="dark"] .ask-error{
  background:rgb(64,27,35);
  border-color:rgb(135,67,79);
  color:rgb(255,220,225);
}
html[data-theme="dark"] .ask-admin-detail{
  background:rgb(66,51,20);
  border-color:rgb(139,110,48);
  color:rgb(250,228,177);
}

/* ========================================================================
   PAST CONVERSATIONS
   ======================================================================== */
html[data-theme="dark"] .ah-shell{color:rgb(236,247,251)}

html[data-theme="dark"] .ah-card{
  background:rgb(10,34,56);
  border-color:rgba(177,211,226,.20);
  box-shadow:0 16px 42px rgba(0,0,0,.18);
}

html[data-theme="dark"] .ah-back,
html[data-theme="dark"] .ah-open,
html[data-theme="dark"] .ah-export-choice{
  background:rgb(14,45,68);
  border-color:rgba(140,191,210,.31);
  color:rgb(230,244,250);
  box-shadow:none;
}

html[data-theme="dark"] .ah-label,
html[data-theme="dark"] .ah-meta,
html[data-theme="dark"] .ah-snippet,
html[data-theme="dark"] .ah-count,
html[data-theme="dark"] .ah-empty,
html[data-theme="dark"] .ah-no-selection,
html[data-theme="dark"] .ah-time{
  color:rgb(166,191,207);
}

html[data-theme="dark"] .ah-input{
  background:rgb(7,28,48);
  border-color:rgb(70,108,134);
  color:rgb(239,248,252);
}
html[data-theme="dark"] .ah-input::placeholder{color:rgb(143,169,186)}

html[data-theme="dark"] .ah-clear{color:rgb(165,199,216)}

html[data-theme="dark"] .ah-list-head,
html[data-theme="dark"] .ah-view-head,
html[data-theme="dark"] .ah-thread{
  border-color:rgba(177,211,226,.13);
}

html[data-theme="dark"] .ah-thread:hover,
html[data-theme="dark"] .ah-thread.active{
  background:rgba(255,255,255,.05);
}

html[data-theme="dark"] .ah-thread h3,
html[data-theme="dark"] .ah-view-head h2{
  color:rgb(239,248,252);
}

html[data-theme="dark"] .ah-pager a,
html[data-theme="dark"] .ah-pager span{
  border-color:rgba(151,192,210,.26);
  color:rgb(209,229,239);
}
html[data-theme="dark"] .ah-pager .current{
  background:rgba(78,172,192,.15);
  border-color:rgba(106,205,219,.34);
}

html[data-theme="dark"] .ah-messages{
  background:rgb(8,30,51);
}

html[data-theme="dark"] .ah-bubble{
  background:rgb(15,46,69);
  border-color:rgba(177,211,226,.18);
  color:rgb(235,246,250);
}

html[data-theme="dark"] .ah-message.user .ah-bubble{
  background:linear-gradient(135deg,rgba(73,218,229,.20),rgba(220,147,209,.17));
  color:rgb(242,250,253);
}

html[data-theme="dark"] .ah-role{
  color:rgb(161,188,204);
}

/* Preserve form control readability in forced/system dark mode. */
html[data-theme="dark"] .ask-textarea,
html[data-theme="dark"] .ah-input,
html[data-theme="dark"] [data-vgh-ask-guide] textarea{
  color-scheme:dark;
}
