/* PRISM Phase 2HS — Heritage-first Crystal appearance (27 Nov 2026)
 * Opt-in, scoped presentation ONLY. Apply Sarimanok Heritage underneath Crystal.
 * The three existing appearance modes retain their exact earlier styles.
 * No pseudo-element changes authorization, amounts, official stage, or actions.
 */
@media screen {
html.prismThemeCrystal {
  --hc-garnet:#67112e;--hc-wine:#8c2948;--hc-ink:#56213a;
  --hc-gold:#dfb56b;--hc-paper:#fffaf5;--hc-pearl:#fff9f0;
  --hc-line:rgba(194,136,110,.42);
  --hc-shadow:0 12px 32px rgba(71,15,40,.12),0 2px 7px rgba(90,38,50,.08);
  color-scheme:light;
}
/* Keep the heritage canvas. Add pearlescent reflection instead of a neon wallpaper. */
html.prismThemeCrystal body,html.prismThemeCrystal #app .shell{
  background:radial-gradient(ellipse at 86% 3%,rgba(229,194,212,.38),transparent 45%),
  radial-gradient(ellipse at 8% 86%,rgba(240,214,169,.33),transparent 40%),
  linear-gradient(148deg,#fff9f1 0%,#f5eae5 56%,#faeee8 100%)!important;
}
/* Heritage burgundy sidebar survives. Only a subtle crystal reflection is added. */
html.prismThemeCrystal #app .side{
  background:radial-gradient(ellipse at 12% 8%,rgba(217,104,145,.26),transparent 52%),
  linear-gradient(165deg,#320716 0%,#5a102a 45%,#671431 100%)!important;
  border-right:1px solid rgba(234,185,113,.8)!important;
  box-shadow:6px 0 23px rgba(64,8,28,.19),inset -2px 0 0 rgba(255,235,192,.17)!important;
}
html.prismThemeCrystal #app .side .prismBrandLine{filter:none!important}
html.prismThemeCrystal #app .side .brand{color:#fff0d6!important;letter-spacing:.02em!important}
html.prismThemeCrystal #app .side .nav button:not(.active),
html.prismThemeCrystal #app .side .gdPublicNav{border-color:rgba(255,222,182,.13)!important;background:rgba(255,255,255,.035)!important}
html.prismThemeCrystal #app .side .nav button.active{
  color:#45132d!important;border:1px solid rgba(255,237,198,.9)!important;
  background:linear-gradient(110deg,#fff0d3,#f6c777 65%,#fff0ce)!important;
  box-shadow:0 3px 12px rgba(23,4,12,.21),inset 0 1px 0 #fff!important;
}
html.prismThemeCrystal #app .side .nav button.active::before{background:#218f91!important}
/* Top bar: warm quartz, not an oversized glowing capsule. */
html.prismThemeCrystal #app .top{
  background:linear-gradient(135deg,rgba(255,255,252,.96),rgba(255,241,233,.91) 60%,rgba(250,235,238,.93))!important;
  border-top:2px solid #e4b76d!important;border-bottom:1px solid rgba(158,81,87,.27)!important;
  box-shadow:0 5px 18px rgba(81,27,51,.10),inset 0 1px 0 #fff!important;
}
html.prismThemeCrystal #app .top .prismGlobalSearch,
html.prismThemeCrystal #app .top .prismThemeChoices,
html.prismThemeCrystal #app .top .profile{
  background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(255,241,234,.65))!important;
  border:1px solid rgba(179,126,118,.49)!important;
  box-shadow:inset 0 1px 0 #fff,0 3px 9px rgba(94,33,55,.08)!important;
}
html.prismThemeCrystal #app .prismThemeChoices{max-width:455px!important}
html.prismThemeCrystal #app #prismCrystalTheme[aria-pressed="true"]{
  color:#fff9ee!important;background:linear-gradient(110deg,#6c1635,#9b3155)!important;
  border:1px solid rgba(245,209,142,.6)!important;
  box-shadow:inset 0 1px 0 rgba(255,237,204,.3),0 3px 8px rgba(78,21,51,.23)!important;
}
/* Header/hero keeps the original feather at right; no huge bird covering text. */
html.prismThemeCrystal #app #homePage .prismReferenceHero{
  min-height:148px!important;
  background:radial-gradient(ellipse at 75% -30%,rgba(215,110,140,.34),transparent 70%),
  linear-gradient(114deg,#470a25 0%,#78203f 59%,#3a0922)!important;
  border:1px solid #d9a36c!important;border-left:4px solid #edc07d!important;
  border-radius:18px!important;
  box-shadow:inset 0 2px 0 rgba(255,226,205,.27),inset 0 -7px 16px rgba(32,3,22,.18),var(--hc-shadow)!important;
}
html.prismThemeCrystal #app #homePage .prismReferenceHero::before{
  opacity:.70!important;background-size:contain!important;filter:drop-shadow(0 6px 7px rgba(11,4,17,.16))!important;
}
html.prismThemeCrystal #app #homePage .prismReferenceHero :is(h2,p){color:#fff4e7!important}
html.prismThemeCrystal #app #homePage .prismReferenceHero h2{color:#ffdda1!important}
html.prismThemeCrystal #app #homePage .prismReferenceHero .prismAMGreeting{color:#fff8ed!important}
/* Narrow rim highlight = optical polish; no overlaid faceted border shards. */
html.prismThemeCrystal #app #homePage :is(.prismRefKpi,.prismGlassPanel,.prismModuleTile,.prismSharedPanel,.gdCard){
  border-radius:17px!important;box-shadow:var(--hc-shadow),inset 0 1px 0 rgba(255,255,255,.88)!important;
}
html.prismThemeCrystal #app #homePage .prismRefKpi,
html.prismThemeCrystal #app #homePage .prismModuleTile{
  background:linear-gradient(145deg,rgba(255,255,255,.92),rgba(253,240,233,.79) 68%,rgba(244,229,227,.88))!important;
  border:1px solid rgba(203,164,145,.65)!important;border-top:3px solid #dfb36e!important;
  -webkit-backdrop-filter:blur(10px) saturate(125%);backdrop-filter:blur(10px) saturate(125%);
  color:var(--hc-ink)!important;
}
html.prismThemeCrystal #app #homePage .prismReferenceKpis .prismRefKpi:nth-child(2){border-top-color:#2a978a!important}
html.prismThemeCrystal #app #homePage .prismReferenceKpis .prismRefKpi:nth-child(3){border-top-color:#5786b8!important}
html.prismThemeCrystal #app #homePage .prismReferenceKpis .prismRefKpi:nth-child(4){border-top-color:#bd8056!important}
html.prismThemeCrystal #app #homePage .prismRefKpi strong{color:#53162f!important}
html.prismThemeCrystal #app #homePage .prismRefKpi small{color:#775965!important}
html.prismThemeCrystal #app #homePage .prismKpiIcon{
  border-radius:14px!important;box-shadow:inset 0 2px 1px rgba(255,255,255,.93),0 4px 8px rgba(52,32,53,.11)!important;
}
/* Meetings use clear dark burgundy lettering and an accessible action button. */
html.prismThemeCrystal #app #homePage .prismSharedPanel,
html.prismThemeCrystal #app #homePage #gdDashboardStage{
  background:linear-gradient(126deg,rgba(255,255,255,.94),rgba(255,242,233,.81))!important;
  border:1px solid rgba(202,153,116,.63)!important;color:#54233a!important;
}
html.prismThemeCrystal #app #homePage .prismSharedPanel :is(h2,p,strong){color:#57223d!important}
html.prismThemeCrystal #app #homePage .prismSharedHeader button,
html.prismThemeCrystal #app #homePage #gdDashboardOpenTasks{
  background:linear-gradient(115deg,#6b1b3b,#9b3254)!important;color:#fff8ef!important;
  border:1px solid #ba7e66!important;box-shadow:inset 0 1px 0 #ffffff3d!important;
}
/* The official tracker is the visual focal point and retains full original geometry. */
html.prismThemeCrystal #app #homePage .prismReferenceWorkflow{
  background:radial-gradient(ellipse at 88% 0%,rgba(179,80,117,.32),transparent 52%),
  linear-gradient(134deg,#401021,#69203b 62%,#411323)!important;
  color:#fff3e8!important;border:1px solid #d5a269!important;
  border-top:3px solid #efbf75!important;
  box-shadow:0 14px 30px rgba(51,9,29,.20),inset 0 1px 0 #ffe7cb50!important;
}
html.prismThemeCrystal #app #homePage .prismReferenceWorkflow :is(.prismSectionHeading h2,.prismSectionHeading h2 small){color:#fff1dc!important}
html.prismThemeCrystal #app #homePage .prismReferenceWorkflow .prismStageNowSummary{
  background:linear-gradient(115deg,rgba(255,248,232,.97),rgba(250,224,189,.91))!important;
  border:1px solid #e2ba7b!important;box-shadow:inset 0 1px 0 white,0 4px 12px #2102102c!important;
}
/* Data-driven --progress controls how far the completed gold line extends. */
html.prismThemeCrystal #app #homePage .prismWorkflowTrack::before{
  background:rgba(255,229,209,.25)!important;box-shadow:0 0 0 1px #fbd3a51e!important;
  top:24px!important;height:3px!important;
}
html.prismThemeCrystal #app #homePage .prismWorkflowTrack::after{
  background:linear-gradient(90deg,#59b595,#d9ae63 55%,#ffe5a9 87%,#c58748)!important;
  box-shadow:0 0 7px rgba(247,184,97,.39)!important;top:23px!important;height:5px!important;
}
/* Soft, single-direction gold shimmer INSIDE the verified progress, never on future steps. */
html.prismThemeCrystal #app #homePage .prismWorkflowFlow{
  display:block!important;position:absolute;pointer-events:none;z-index:0;
  left:56px;top:17px;height:17px;
  width:max(0px,calc(var(--progress,0%) - 56px));max-width:calc(100% - 112px);
  background:linear-gradient(98deg,transparent 0%,rgba(255,244,191,.12) 30%,rgba(255,238,168,.69) 50%,rgba(255,219,133,.13) 70%,transparent 100%);
  background-size:200% 100%;background-position:100% 50%;border-radius:50%;
  filter:blur(4px);animation:hcGoldDrift 4s linear infinite;
}
@keyframes hcGoldDrift{0%{background-position:100% 50%}100%{background-position:-100% 50%}}
html.prismThemeCrystal #app #homePage .prismWorkflowStep{z-index:1!important}
html.prismThemeCrystal #app #homePage .prismWorkflowStep .prismWorkflowCircle{
  filter:drop-shadow(0 3px 4px rgba(32,6,20,.28))!important;
}
html.prismThemeCrystal #app #homePage .prismWorkflowStep.complete .prismWorkflowCircle{
  color:#fff!important;background:linear-gradient(130deg,#66c19b,#208e71 59%,#155b54)!important;
}
html.prismThemeCrystal #app #homePage .prismWorkflowStep.current .prismWorkflowCircle{
  color:#5f2734!important;background:linear-gradient(135deg,#fff3c4,#f0c879 55%,#bc803a)!important;
  filter:drop-shadow(0 0 8px rgba(251,210,115,.76))!important;
}
html.prismThemeCrystal #app #homePage .prismWorkflowStep.current strong{color:#ffdfa5!important}
html.prismThemeCrystal #app #homePage .prismWorkflowStep.complete strong{color:#e1f5e8!important}
html.prismThemeCrystal #app #homePage .prismWorkflowStep:not(.current):not(.complete) strong{color:#f0d8d4!important}
html.prismThemeCrystal #app #homePage .prismWorkflowStep small{color:#ead5d2!important}
html.prismThemeCrystal #app #homePage .prismWorkflowStep:focus-visible{outline:3px solid #ffe19a!important;outline-offset:3px!important}
/* Charts are quartz frames; data visualisation remains software-rendered. */
html.prismThemeCrystal #app #homePage :is(.prismRefProcessing,.prismRefAppStatus,.prismRefNotifications){
  background:linear-gradient(137deg,rgba(255,252,246,.96),rgba(247,232,223,.90))!important;
  border:1px solid rgba(209,160,122,.65)!important;
}
html.prismThemeCrystal #app #homePage :is(.prismRefProcessing,.prismRefAppStatus)>h2,
html.prismThemeCrystal #app #homePage .prismRefAppStatus .prismAppChartHead h2{
  background:linear-gradient(115deg,#571831,#7d2d4b)!important;color:#fff0da!important;
  border:1px solid #a96e63!important;border-radius:10px!important;
}
html.prismThemeCrystal #app #homePage .prismDonutHole{
  background:linear-gradient(140deg,#fffdf7,#f6e8e4)!important;
}
html.prismThemeCrystal #app #homePage .prismDonut{box-shadow:0 0 0 4px #f6dcc1,0 5px 12px #6423372a!important}
/* Reuse readable heritage buttons and tables elsewhere; only elevate card material. */
html.prismThemeCrystal #app :is(.card,.phase2Card,.gePanel,.gdCard,.prismOriginalPRCard){
  box-shadow:var(--hc-shadow)!important;border-radius:15px!important;
}
html.prismThemeCrystal #app .prismModuleTile:hover:not(:disabled){
  transform:translateY(-1px)!important;border-color:#d4aa74!important;
  box-shadow:0 13px 22px rgba(80,27,48,.17),inset 0 1px 0 #fff!important;
}
html.prismThemeCrystal #app :is(button,input,select,textarea):focus-visible{outline:3px solid #d3a150!important;outline-offset:2px!important}
@media(max-width:1220px){html.prismThemeCrystal #app .prismThemeChoices{max-width:320px!important}}
@media(max-width:780px){html.prismThemeCrystal #app .prismThemeChoices{max-width:250px!important}html.prismThemeCrystal #app #homePage .prismReferenceHero{min-height:126px!important}}
@media(max-width:520px){
 html.prismThemeCrystal #app .prismThemeChoices button{font-size:9px!important;padding:5px 7px!important}
 html.prismThemeCrystal #app #homePage .prismReferenceHero{padding:17px!important}
 html.prismThemeCrystal #app #homePage .prismReferenceHero::before{opacity:.38!important}
 html.prismThemeCrystal #app #homePage .prismWorkflowFlow{animation:none!important}
}
@media(prefers-reduced-motion:reduce){html.prismThemeCrystal #app #homePage .prismWorkflowFlow{animation:none!important}}
}
/* Official PDF / spreadsheet print styles are NOT changed by this screen-only appearance. */
/* Final optical accents: restrained bright details, never an all-over neon overlay. */
@media screen {
html.prismThemeCrystal #app #homePage .prismReferenceHero{
  min-height:164px!important;
}
html.prismThemeCrystal #app #homePage .prismReferenceHero::before{
  width:44%!important;right:20px!important;opacity:.98!important;
  background:url('public/sarimanok-clean.png') right 105px center/auto 162px no-repeat,
             url('prism-sarimanok-feather.svg') right -4px center/auto 165px no-repeat!important;
  filter:drop-shadow(0 3px 4px rgba(17,3,15,.22))!important;
}
html.prismThemeCrystal #app #homePage .prismReferenceHero h2:not(.prismAMGreeting){display:none!important}
html.prismThemeCrystal #app #homePage .prismReferenceHero h2.prismAMGreeting{
  display:block!important;color:#fff4e2!important;
  font:800 clamp(26px,3vw,43px)/1.12 Georgia,'Times New Roman',serif!important;
  max-width:min(850px,100%)!important;
  text-shadow:0 3px 9px rgba(21,3,13,.34)!important;
}
html.prismThemeCrystal #app #homePage .prismHeroRefresh{align-self:flex-start!important}
html.prismThemeCrystal #app #homePage .prismRefKpi::before,
html.prismThemeCrystal #app #homePage .prismModuleTile::before{
  content:"";display:block;position:absolute;z-index:0;pointer-events:none;
  inset:0;opacity:.55;border-radius:inherit;
  background:linear-gradient(134deg,rgba(255,255,255,.84) 0%,rgba(255,255,255,.08) 24%,transparent 49%,rgba(255,255,255,.22) 88%,rgba(255,255,255,.69));
}
html.prismThemeCrystal #app #homePage .prismRefKpi>*,
html.prismThemeCrystal #app #homePage .prismModuleTile>*{position:relative;z-index:1}
html.prismThemeCrystal #app #homePage .prismRefKpi{
  box-shadow:inset 0 1px 0 #fff,inset 0 -1px 0 rgba(255,255,255,.68),
  0 9px 25px rgba(79,20,44,.11),0 2px 4px rgba(54,29,30,.06)!important;
}
html.prismThemeCrystal #app #homePage .prismReferenceWorkflow{
  box-shadow:inset 0 1px 0 #fff2cf88,inset 0 -1px 0 #edd2a326,
  0 12px 32px rgba(76,14,37,.19)!important;
}
@media(max-width:700px){
  html.prismThemeCrystal #app #homePage .prismReferenceHero::before{
    right:0!important;width:42%!important;opacity:.43!important;
    background:url('public/sarimanok-clean.png') right 30px center/auto 138px no-repeat!important;
  }
  html.prismThemeCrystal #app #homePage .prismReferenceHero h2.prismAMGreeting{font-size:clamp(23px,6vw,31px)!important}
}
}
