/* ===== S56T SOURCE BEGIN: tokens.css ===== */
:root{--bg:#263544;--bg-2:#314252;--surface:#3A4A5B;--surface-2:#445769;--overlay:rgba(255,255,255,.04);--text:#EAF0F5;--text-2:#C2CCD6;--muted:#99A7B5;--accent:#4FA3FF;--accent-soft:rgba(79,163,255,.14);--border:rgba(255,255,255,.12);--high:#FF5A5A;--medium:#FFB454;--low:#56D364;--watch:#9CA3AF;--radius:14px;--radius-sm:10px;--shadow:0 14px 40px rgba(0,0,0,.18);--max:1200px;--pad:clamp(16px,2vw,24px);--gap:clamp(16px,2vw,24px);--font-display:"IBM Plex Serif",Georgia,"Times New Roman",serif;--font-body:Inter,"Noto Sans JP",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--fast:.2s ease;--med:.32s ease}
/* ===== S56T SOURCE END: tokens.css ===== */

/* ===== S56T SOURCE BEGIN: base.css ===== */
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at top right,rgba(79,163,255,.10),transparent 30%),radial-gradient(circle at top left,rgba(255,255,255,.05),transparent 24%),linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,0)),var(--bg);color:var(--text);font-family:var(--font-body);line-height:1.55;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}img{max-width:100%;display:block}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}.main-nav a:hover,.mobile-links a:hover{text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}h1,h2,h3,h4,p{margin:0 0 .75rem}h1,h2,h3{font-family:var(--font-body);font-weight:700;line-height:1.12;letter-spacing:-.01em}h4{font-family:var(--font-body);font-weight:600;line-height:1.2}ul{margin:0;padding:0}::selection{background:rgba(79,163,255,.32);color:#fff}.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* === STAGE 6 BASE TEXT TUNE === */

body {
  line-height: 1.53;
}

/* === r9013 DESKTOP SCROLLBAR GUTTER STABILIZATION ===
   Reserve the desktop scrollbar gutter so overlay scroll-lock does not
   re-center the page when SO / RO / Portfolio / Library panels open. */
@media (min-width:761px){
  html{
    scrollbar-gutter:stable;
  }
}

@supports not (scrollbar-gutter: stable){
  @media (min-width:761px){
    html{
      overflow-y:scroll;
    }
  }
}
/* ===== S56T SOURCE END: base.css ===== */

/* ===== S56T SOURCE BEGIN: layout.css ===== */
.container{width:min(var(--max),calc(100% - 2*var(--pad)));margin:0 auto}.page-shell{padding-bottom:12px}.site-header{position:relative;border-bottom:1px solid var(--border);background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.01))}.header-map{position:absolute;inset:0;pointer-events:none;overflow:hidden;opacity:.55}.header-map::before,.header-map::after{content:"";position:absolute;inset:-20% -10%;background:radial-gradient(circle at 20% 40%,rgba(79,163,255,.09),transparent 24%),radial-gradient(circle at 70% 30%,rgba(255,255,255,.08),transparent 18%),radial-gradient(circle at 85% 75%,rgba(255,180,84,.07),transparent 22%);animation:drift 22s linear infinite}.header-map::after{animation-duration:30s;mix-blend-mode:screen;opacity:.7}@keyframes drift{from{transform:translateX(-1.5%)}to{transform:translateX(1.5%)}}.header-inner{position:relative;display:grid;grid-template-columns:1fr auto;gap:var(--gap);padding:29px 0 20px}.masthead{display:grid;justify-items:start;gap:8px}.masthead h1{font-size:var(--ccr-masthead-title-size,clamp(28px,4vw,48px));letter-spacing:.01em;margin:0}.masthead .meta-line{margin:0}.masthead .meta-line{color:var(--text-2);font-size:.96rem}
 :root{--ccr-home-heading-rail:18px;--ccr-latest-items-x:0px;--ccr-search-intelligence-x:0px;}.header-actions{display:flex;gap:10px;align-items:flex-start;flex-wrap:wrap;justify-content:flex-end}.main-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:36px;padding-top:28px}.main-grid>*{min-width:0}.section-stack{display:grid;gap:24px}.section-title-row>div{display:grid;gap:8px}.footer{padding:22px 0 8px;color:var(--muted);font-size:.92rem;border-top:1px solid var(--border);margin-top:28px}@media (max-width:760px){.header-inner{grid-template-columns:1fr;padding:25px 0 10px}.header-actions{justify-content:flex-start}}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.header-map::before,.header-map::after{animation:none}}


/* ===== CCR HEADER STYLE 7 (stronger / exact) ===== */
.masthead h1[data-site-title]{
  position:relative;
  display:inline-block;
  margin:0 0 .5rem;
  padding:18px 22px;
  max-width:min(100%,980px);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  background:rgba(255,255,255,.08);
  backdrop-filter:blur(10px);
  box-shadow:0 18px 44px rgba(0,0,0,.22);
  font-family:Inter,"Noto Sans JP",system-ui,sans-serif !important;
  font-weight:700 !important;
  line-height:1.08 !important;
  letter-spacing:.01em !important;
  color:var(--text) !important;
  text-wrap:balance;
}


.masthead h1[data-site-title]::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(115deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0) 32%,
    rgba(255,255,255,.12) 42%,
    rgba(255,248,236,.50) 49%,
    rgba(255,255,255,.24) 55%,
    rgba(255,255,255,0) 66%,
    rgba(255,255,255,0) 100%
  );
  transform:translateX(-150%);
  animation:ccrBrandShine 3.8s linear infinite;
  pointer-events:none;
  will-change:transform,opacity;
}

@keyframes ccrBrandShine{
  0%{transform:translateX(-150%)}
  100%{transform:translateX(165%)}
}

/* === STAGE 5 LAYOUT WIDTH TUNE === */

@media (min-width: 1280px) {
  .container {
    width: min(1380px, calc(100% - 2 * var(--pad)));
  }
}


/* === MOBILE ONLY OPTIMIZED MARGINS === */
@media (max-width:760px){

  /* M13 */
  .container{
    width:min(var(--max),calc(100% - 24px));
  }

  /* M6 */
  .main-grid{
    padding-top:12px;
  }

  /* M8 */
  .hero-card{
    padding:14px !important;
  }

  /* M10 */
  .section-stack{
    gap:18px;
  }

  /* M14 */
  .footer{
    margin-top:28px;
  }
}

/* === MOBILE ONLY: header/title/footer alignment polish === */
@media (max-width:760px){
  .site-header,
  .site-header .masthead,
  .site-header .header-inner{
    text-align:center;
  }

  .masthead{
    justify-items:center !important;
  }

  .masthead h1,
  .masthead h1[data-site-title],
  .masthead .meta-line,
  .masthead [data-updated-stamp]{
    text-align:center !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }

  .header-actions{
    width:100%;
    justify-content:center !important;
    align-items:center !important;
  }

  .header-actions .lang-toggle,
  .header-actions .icon-btn{
    margin-left:0 !important;
    margin-right:0 !important;
  }


  .footer{
    text-align:center;
  }

  .footer .footer-brand{
    margin-bottom:6px;
  }
}


/* === STAGE 9: smaller updated stamp on intelligence === */
body[data-page="home"] .masthead [data-updated-stamp]{
  opacity:.58;
}
@media (min-width:761px){
  body[data-page="home"] .masthead [data-updated-stamp]{
    padding-left:var(--ccr-home-heading-rail,18px);
  }

  body[data-page="home"] .latest-items-title-row > div,
  body[data-page="home"] .current-feed-title-row > div{
    padding-left:var(--ccr-home-heading-rail,18px);
    will-change:transform;
  }

  body[data-page="home"] .latest-items-title-row > div{
    transform:translateX(var(--ccr-latest-items-x,0px));
  }

  body[data-page="home"] .current-feed-title-row > div{
    width:100%;
    padding-left:0;
    transform:none;
    justify-items:center;
    text-align:center;
  }
}


.footer-about-wrap{
  display:flex;
  justify-content:center;
  
  
}

@media (max-width:760px){
  .footer-about-wrap{
    margin-top:10px;
    margin-bottom:14px;
  }
}


/* === TITLE BRAND RESTORE === */
.masthead h1[data-site-title] .site-title-ccr{
  color:#d8e3ec;
}

.masthead h1[data-site-title]::before{
  content:none !important;
}


/* === STAGE 14: mobile hierarchy refinement === */
.footer .footer-brand{
  display:inline-flex;
  align-items:baseline;
  gap:.18em;
  flex-wrap:wrap;
}

.footer .footer-brand__copyright,
.footer .footer-brand__ccr,
.footer .footer-brand__rest{
  color:inherit;
}

@media (min-width:761px){
  .footer{
    text-align:center;
  }

  .footer .container{
    display:flex;
    justify-content:center;
  }

  .footer .container p{
    width:100%;
    display:flex;
    justify-content:center;
    text-align:center;
  }

  .footer .footer-brand{
    justify-content:center;
  }
}

@media (max-width:760px){
  .header-inner{
    padding:15px 0 12px;
  }

  .masthead{
    gap:10px;
  }

  .masthead h1[data-site-title]{
    padding:15px 18px;
  }

  .header-actions{
    gap:7px;
  }

  .header-actions .lang-toggle,
  .header-actions .icon-btn,
  .header-actions .ui-btn{
    min-height:32px !important;
    height:32px !important;
    box-sizing:border-box;
  }

  .lang-toggle{
    padding:1px;
  }

  .header-actions .lang-toggle button{
    min-height:30px !important;
    height:30px !important;
    padding:4px 10px !important;
    line-height:1.05;
  }

  .header-actions .icon-btn,
  .header-actions .ui-btn{
    padding:4px 11px !important;
    line-height:1.05;
  }

  .footer .footer-brand{
    justify-content:center;
    line-height:1.3;
  }

  .footer{
    padding-top:30px;
    padding-bottom:12px;
  }
}


html.fullscreen-launch-pending,
html.fullscreen-launch-pending body,
html.fullscreen-launch-active,
html.fullscreen-launch-active body,
html.fullscreen-launch-done,
html.fullscreen-launch-done body{
  overflow:auto;
}

html.fullscreen-launch-pending .page-shell,
html.fullscreen-launch-active .page-shell,
html.fullscreen-launch-done .page-shell{
  visibility:visible;
}

.footer .container p{
  margin:0;
}

.icon-btn[data-fullscreen-toggle][hidden]{display:none !important;}
.icon-btn[data-fullscreen-toggle]{width:42px; min-width:42px; padding:0 !important; justify-content:center; gap:0; flex:0 0 42px;}
.fullscreen-icon{   width:18px; height:18px;}
.fullscreen-icon-svg{ width:18px; height:18px;}

/* === DESKTOP ROOT FRAME CLEANUP === */
@media (min-width: 981px){
  body{
    padding:18px;
  }

  .page-shell{
    width:min(1380px, calc(100% - 2 * var(--pad)));
    margin:0 auto 18px;
    padding-bottom:18px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:22px;
    overflow:clip;
    background:
      linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,.01)),
      rgba(0,0,0,.04);
    box-shadow:0 18px 50px rgba(0,0,0,.16);
  }

  .page-shell .container{
    width:calc(100% - 2 * var(--pad));
  }

  .page-shell .main-grid{
    padding-bottom:6px;
  }
}


/* === ROOT FIX: sticky home top stack + mobile floating controls === */
body[data-page="home"] .home-top-stack{
  position:sticky;
  top:0;
  z-index:72;
  background:linear-gradient(180deg,rgba(20,31,41,.18),rgba(20,31,41,.04));
  backdrop-filter:blur(8px);
}

body[data-page="home"] .home-top-stack .site-header{
  background:linear-gradient(180deg,rgba(255,255,255,.010),rgba(255,255,255,.002));
}

body[data-page="home"] .home-top-stack .ticker-shell{
  margin:0;
}

body[data-page="home"] .home-top-stack + .main-grid{
  padding-top:12px;
}

body[data-page="home"] .home-main{
  width:100%;
  box-sizing:border-box;
  padding-inline:clamp(8px,1vw,14px);
}

body[data-page="home"] .header-inner{
  padding-top:26px;
}

.mobile-bottom-dock{display:none;}

.fullscreen-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:19px;
  height:19px;
  line-height:0;
}

.fullscreen-icon-svg{
  display:block;
  width:19px;
  height:19px;
}

@media (max-width:760px){
  body[data-page="home"] .page-shell{
    padding-bottom:calc(72px + env(safe-area-inset-bottom,0px));
  }

  body[data-page="home"] .home-top-stack{
    top:0;
    z-index:76;
  }

  body[data-page="home"] .home-top-stack + .main-grid{
    padding-top:8px;
  }

  body[data-page="home"] .home-main{
    padding-inline:0;
  }

  body[data-page="home"] .home-hero,
  body[data-page="home"] .section-stack,
  body[data-page="home"] #regionSections{
    margin-inline:var(--pad);
  }

  body[data-page="home"] .header-inner{
    padding:14px 0 12px;
  }

  body[data-page="home"] .header-inner > .header-actions{
    display:none !important;
  }

  body[data-page="home"] .mobile-bottom-dock{
    display:block;
    position:fixed;
    left:0;
    right:0;
    bottom:calc(6px + env(safe-area-inset-bottom,0px));
    z-index:95;
    pointer-events:none;
  }

  body[data-page="home"] .mobile-bottom-dock[hidden]{
    display:none !important;
  }

  body[data-page="home"] .mobile-bottom-dock .header-actions{
    position:relative;
    left:auto;
    bottom:auto;
    transform:none;
    z-index:auto;
    width:max-content;
    max-width:calc(100% - 24px);
    margin:0 auto;
    padding:8px 10px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:999px;
    background:rgba(27,39,51,.34);
    backdrop-filter:blur(10px);
    box-shadow:0 14px 34px rgba(0,0,0,.28);
    justify-content:center !important;
    align-items:center !important;
    gap:10px;
    flex-wrap:nowrap;
    pointer-events:auto;
  }

  body[data-page="home"] .mobile-bottom-dock .header-actions .lang-toggle,
  body[data-page="home"] .mobile-bottom-dock .header-actions .icon-btn,
  body[data-page="home"] .mobile-bottom-dock .header-actions .ui-btn{
    margin:0 !important;
  }

  body[data-page="home"] .mobile-bottom-dock .header-actions .lang-toggle{
    flex:0 0 auto;
  }

  body[data-page="home"] .home-hero > .hero-card{
    padding:0 !important;
    border:0;
    background:transparent;
    box-shadow:none;
  }

}


/* === FINAL VISUAL OVERRIDES: title shadow === */
.masthead h1[data-site-title]{
  text-shadow:0 8px 28px rgba(7,11,18,.58),0 3px 10px rgba(7,11,18,.44) !important;
}


/* === WORLD MAP BACKGROUND: first-pass integration === */
body[data-page="home"]{
  position:relative;
  overflow-x:hidden;
}

body[data-page="home"] .page-shell{
  position:relative;
  z-index:1;
}

.site-world-map-bg{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  overflow:hidden;
}

.site-world-map-track{
  position:absolute;
  inset:0;
  width:200%;
  --ccr-map-start:0%;
  --ccr-map-end:-50%;
  background-image:url('../images/backgrounds/world-intelligence-map-loop.svg');
  background-repeat:repeat-x;
  background-size:auto 100%;
  background-position:center center;
  opacity:.56;
  transform:translateX(var(--ccr-map-start));
  will-change:transform;
  animation:ccrWorldMapDrift var(--ccr-map-desktop-duration,110s) linear infinite;
}

.site-world-map-runner{display:none}

@media (min-width:761px){
  .site-world-map-track{
    width:100%;
    background:none;
    transform:none;
    animation:none;
    opacity:.56;
    overflow:hidden;
  }

  .site-world-map-runner{
    --ccr-map-tile-width:calc(100vh * 4);
    display:block;
    position:absolute;
    top:0;
    bottom:0;
    left:calc((100vw - var(--ccr-map-tile-width)) / 2);
    width:calc(var(--ccr-map-tile-width) * 2);
    height:100%;
    transform:translate3d(0,0,0);
    will-change:transform;
    backface-visibility:hidden;
    animation:ccrWorldMapRibbonDesktopRunner var(--ccr-map-desktop-duration,110s) linear infinite;
  }

  .site-world-map-runner::before,
  .site-world-map-runner::after{
    content:"";
    position:absolute;
    top:0;
    width:var(--ccr-map-tile-width);
    height:100%;
    background-image:url('../images/backgrounds/world-intelligence-map-loop.svg');
    background-repeat:no-repeat;
    background-size:100% 100%;
    background-position:center center;
    backface-visibility:hidden;
  }

  .site-world-map-runner::before{ left:0; }
  .site-world-map-runner::after{ left:var(--ccr-map-tile-width); }
}

.site-world-map-wash{
  position:absolute;
  inset:0;
  background:
    radial-gradient(ellipse at center, rgba(18,32,40,.04) 0%, rgba(9,15,21,.18) 62%, rgba(7,12,18,.36) 100%),
    linear-gradient(180deg, rgba(7,11,17,.16), rgba(7,11,17,.28));
}

@keyframes ccrWorldMapDrift{
  from{transform:translateX(var(--ccr-map-start))}
  to{transform:translateX(var(--ccr-map-end))}
}

@keyframes ccrWorldMapRibbonDesktopRunner{
  from{transform:translate3d(0,0,0)}
  to{transform:translate3d(calc(-1 * var(--ccr-map-tile-width)),0,0)}
}

@media (min-width:981px){
  body[data-page="home"] .page-shell{
    background:
      linear-gradient(180deg, rgba(255,255,255,.014), rgba(255,255,255,.004)),
      rgba(6,12,18,.08);
    box-shadow:0 18px 50px rgba(0,0,0,.18);
  }

  body[data-page="home"] .home-top-stack{
    background:linear-gradient(180deg, rgba(20,31,41,.12), rgba(20,31,41,.025));
  }

  body[data-page="home"] .masthead h1[data-site-title]{
    background:rgba(255,255,255,.032);
    border-color:rgba(255,255,255,.08);
  }
}

@media (max-width:760px){
  body[data-page="home"] .home-top-stack{
    background:linear-gradient(180deg, rgba(20,31,41,.08), rgba(20,31,41,.015));
  }

  body[data-page="home"] .masthead h1[data-site-title]{
    background:rgba(255,255,255,.022);
    border-color:rgba(255,255,255,.062);
  }

  .site-world-map-track{
    --mobile-ribbon-height: 92vh;
    --mobile-ribbon-width: calc(var(--mobile-ribbon-height) * 2);
    inset:calc(10vh + 108px) auto auto -28vw;
    width:var(--mobile-ribbon-width);
    height:var(--mobile-ribbon-height);
    border-radius:0;
    overflow:visible;
    opacity:.62;
    background:none;
    transform:rotate(16deg);
    transform-origin:center center;
    animation:none;
    box-shadow:none;
    will-change:auto;
    backface-visibility:hidden;
  }

  .site-world-map-runner{
    display:block;
    position:absolute;
    inset:0;
    width:200%;
    height:100%;
    transform:translate3d(0,0,0);
    will-change:transform;
    backface-visibility:hidden;
    animation:ccrWorldMapRibbonMobileRunner var(--ccr-map-mobile-duration,24s) linear infinite;
  }

  .site-world-map-runner::before,
  .site-world-map-runner::after{
    content:"";
    position:absolute;
    top:0;
    width:50%;
    height:100%;
    background-image:url('../images/backgrounds/world-intelligence-map-tile.webp');
    background-repeat:no-repeat;
    background-size:100% auto;
    background-position:50% 44%;
    backface-visibility:hidden;
  }

  .site-world-map-runner::before{
    left:0;
  }

  .site-world-map-runner::after{
    left:50%;
  }

  .site-world-map-wash{
    background:
      radial-gradient(ellipse at center, rgba(255,255,255,.015) 0%, rgba(8,13,19,0) 28%, rgba(8,13,19,.10) 58%, rgba(7,12,18,.34) 100%),
      linear-gradient(180deg, rgba(7,11,17,.08), rgba(7,11,17,.18));
  }
}

@keyframes ccrWorldMapRibbonMobileRunner{
  from{transform:translate3d(0,0,0)}
  to{transform:translate3d(-50%,0,0)}
}

@media (prefers-reduced-motion:reduce){
}


@media (prefers-reduced-motion:reduce){
  .site-world-map-track,.site-world-map-runner{animation:none}
}


/* === HYDRATION PLACEHOLDER SUPPRESSION (targeted) === */
.masthead h1[data-site-title]:empty,
.masthead [data-updated-stamp]:empty,
.footer .footer-brand:empty{display:none !important;}

/* === APPEARANCE CONTROL VARIABLES: SITE TITLE BLOCK === */
.masthead h1[data-site-title]{
  isolation:isolate;
}

.masthead h1[data-site-title] .site-title-text{
  display:inline;
  color:var(--ccr-masthead-title-color,#d8b2be);
  filter:brightness(var(--ccr-masthead-title-brightness,100%));
  opacity:var(--ccr-masthead-title-opacity,1);
  font-weight:var(--ccr-masthead-title-weight,700) !important;
  font-size:inherit !important;
}

.masthead [data-updated-stamp]{
  color:var(--ccr-utility-stamps-color,#c7d3dd);
  opacity:var(--ccr-utility-stamps-opacity,.82);
  font-weight:var(--ccr-utility-stamps-weight,500);
  
}

.footer .footer-brand{
  color:var(--ccr-footer-text-color,#c7d3dd) !important;
  opacity:var(--ccr-footer-text-opacity,.78);
  font-weight:var(--ccr-footer-text-weight,500);
  font-size:var(--ccr-footer-text-size,.92rem) !important;
}


/* === APPEARANCE CONTROL VARIABLES: TITLE / SPACING === */
.main-grid{gap:var(--ccr-main-gap,36px)}

.masthead h1[data-site-title]::after{
  opacity:clamp(.16,var(--ccr-site-title-wave-opacity,.24),.55);
  animation-duration:var(--ccr-site-title-wave-duration,3.8s);
  mix-blend-mode:screen;
  z-index:1;
  filter:blur(.15px);
}
.masthead h1[data-site-title] .site-title-text{position:relative;z-index:0}


/* === FONT SIZE TRUST PATCH === */
.masthead h1[data-site-title]{font-size:var(--ccr-masthead-title-size,clamp(26px,2.9vw,40px)) !important;}
.masthead [data-updated-stamp]{font-size:var(--ccr-utility-stamps-size,.96rem) !important;}


/* === CCR INTRO GATE (live integration) === */
body.ccr-intro-active{overflow:hidden;}

.ccr-entry-gate{
  position:fixed;
  inset:0;
  z-index:2147483200;
  pointer-events:auto;
}
.ccr-entry-gate::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(1100px 760px at 50% 22%, rgba(79,163,255,.12), transparent 58%),
    radial-gradient(820px 600px at 50% 100%, rgba(234,240,245,.07), transparent 64%),
    linear-gradient(180deg, rgba(17,26,36,.76), rgba(22,33,45,.88));
  opacity:1;
  transition:opacity 220ms ease;
}
.ccr-entry-gate.is-hidden{pointer-events:none;}
.ccr-entry-gate.is-hidden::before{opacity:0;}
.ccr-entry-keypad-slot{
  position:absolute;
  inset:0;
  display:flex;
  
  
  z-index:3;
  box-sizing:border-box;
  opacity:1;
  transform:translateY(0) scale(1);
  transition:opacity 190ms ease, transform 190ms cubic-bezier(.18,.78,.2,1);
  will-change:opacity, transform;
}
.ccr-entry-keypad-slot.is-handing-off{
  opacity:0;
  transform:translateY(-6px) scale(.985);
  pointer-events:none;
}
.ccr-entry-keypad-slot[hidden]{display:none !important;}

.ccr-intro-overlay{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  z-index:2;
  background:
    radial-gradient(860px 560px at 50% 44%, rgba(216,177,92,.15), transparent 60%),
    radial-gradient(840px 560px at 50% 56%, rgba(136,182,255,.06), transparent 58%),
    linear-gradient(180deg, rgba(2,7,16,.34), rgba(2,7,16,.76));
  backdrop-filter:blur(8px);
  transition:opacity 320ms ease, visibility 320ms ease, background 220ms ease, backdrop-filter 220ms ease;
}
.ccr-intro-overlay.is-hidden{opacity:0; visibility:hidden;}
body.ccr-entry-keypad-active:not(.ccr-entry-intro-handoff) .ccr-intro-overlay{opacity:0 !important; visibility:hidden !important;}
body.ccr-entry-keypad-active:not(.ccr-entry-intro-handoff) .ccr-intro-stage-wrap{opacity:0 !important; visibility:hidden !important;}
body.ccr-entry-intro-handoff .ccr-intro-overlay{opacity:1 !important; visibility:visible !important;}
body.ccr-entry-intro-handoff .ccr-intro-stage-wrap{opacity:0; visibility:visible;}
body.ccr-intro-revealing .ccr-intro-overlay{
  background:
    radial-gradient(860px 560px at 50% 44%, rgba(216,177,92,.07), transparent 60%),
    radial-gradient(840px 560px at 50% 56%, rgba(136,182,255,.035), transparent 58%),
    linear-gradient(180deg, rgba(2,7,16,.12), rgba(2,7,16,.22));
  backdrop-filter:blur(3px);
}
body.ccr-intro-revealing .ccr-entry-gate::before{opacity:.12;}

.ccr-intro-stage-wrap{
  position:relative;
  width:min(92vw, 1100px);
  height:min(62vh, 520px);
  display:grid;
  place-items:center;
  isolation:isolate;
  transition:opacity 160ms ease;
}

/* r4 Atlas Gold intro direction — visual layer only; preserves existing measured CCR handoff. */
.ccr-intro-gold-dust{
  position:absolute;
  inset:-14%;
  overflow:hidden;
  pointer-events:none;
  z-index:2;
}
.ccr-intro-gold-dust i{
  position:absolute;
  left:50%;
  top:50%;
  width:3px;
  height:3px;
  border-radius:50%;
  background:rgba(246,216,138,.86);
  box-shadow:0 0 12px rgba(246,216,138,.72);
  opacity:0;
  transform:translate3d(var(--x), var(--y), 0) scale(.6);
}
.ccr-intro-stage-wrap.is-atlas-live .ccr-intro-gold-dust i{animation:ccrIntroDustIn 820ms cubic-bezier(.18,.8,.2,1) forwards;}
.ccr-intro-stage-wrap.is-pulsing .ccr-intro-gold-dust i{animation:ccrIntroDustOrbit 1100ms ease-in-out forwards;}
@keyframes ccrIntroDustIn{to{opacity:.58; transform:translate3d(calc(var(--x) * .25), calc(var(--y) * .25), 0) scale(1);}}
@keyframes ccrIntroDustOrbit{0%{opacity:.58;}70%{opacity:.34;}100%{opacity:0; transform:rotate(var(--r)) translate3d(calc(var(--x) * .08), calc(var(--y) * .08), 0) scale(.1);}}
.ccr-intro-atlas-grid{
  position:absolute;
  z-index:1;
  left:50%;
  top:50%;
  width:min(58vw, 560px);
  aspect-ratio:1;
  border-radius:50%;
  border:1px solid rgba(246,216,138,.16);
  background:
    repeating-radial-gradient(circle at center, transparent 0 38px, rgba(246,216,138,.08) 39px 40px, transparent 41px 72px),
    repeating-linear-gradient(0deg, transparent 0 40px, rgba(136,182,255,.07) 41px 42px, transparent 43px 80px),
    repeating-linear-gradient(90deg, transparent 0 40px, rgba(136,182,255,.07) 41px 42px, transparent 43px 80px);
  box-shadow:inset 0 0 52px rgba(246,216,138,.08), 0 0 90px rgba(246,216,138,.08);
  opacity:0;
  transform:translate(-50%,-50%) scale(.74);
  transition:opacity 420ms ease, transform 760ms cubic-bezier(.18,.78,.2,1);
  pointer-events:none;
}
.ccr-intro-stage-wrap.is-atlas-live .ccr-intro-atlas-grid{opacity:.70; transform:translate(-50%,-50%) scale(1);}
.ccr-intro-stage-wrap.is-ball .ccr-intro-atlas-grid{animation:ccrIntroAtlasCompress 720ms ease-in-out forwards;}
body.ccr-intro-handshake .ccr-intro-atlas-grid{opacity:.08; transform:translate(-50%,-50%) scale(.30) rotate(22deg);}
@keyframes ccrIntroAtlasCompress{to{opacity:.38; transform:translate(-50%,-50%) scale(.42) rotate(22deg);}}
.ccr-intro-atlas-rings{
  position:absolute;
  inset:0;
  z-index:3;
  pointer-events:none;
}
.ccr-intro-atlas-rings::before,
.ccr-intro-atlas-rings::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:min(66vw, 660px);
  aspect-ratio:1;
  border-radius:50%;
  border:1px solid rgba(246,216,138,.20);
  box-shadow:0 0 30px rgba(246,216,138,.10);
  opacity:0;
  transform:translate(-50%,-50%) rotateX(68deg) rotateZ(-18deg) scale(.74);
}
.ccr-intro-atlas-rings::after{
  border-color:rgba(136,182,255,.16);
  transform:translate(-50%,-50%) rotateX(68deg) rotateZ(62deg) scale(.60);
}
.ccr-intro-stage-wrap.is-atlas-live .ccr-intro-atlas-rings::before{animation:ccrIntroOrbitRing 1260ms ease-out forwards;}
.ccr-intro-stage-wrap.is-atlas-live .ccr-intro-atlas-rings::after{animation:ccrIntroOrbitRing 1260ms 90ms ease-out forwards;}
body.ccr-intro-handshake .ccr-intro-atlas-rings::before,
body.ccr-intro-handshake .ccr-intro-atlas-rings::after{opacity:0; transition:opacity 260ms ease;}
@keyframes ccrIntroOrbitRing{30%{opacity:.68;}100%{opacity:.16; transform:translate(-50%,-50%) rotateX(68deg) rotateZ(344deg) scale(1);}}
.ccr-intro-stage-glow{
  position:absolute;
  z-index:0;
  width:min(66vw, 700px);
  aspect-ratio:1.55;
  border-radius:999px;
  background:
    radial-gradient(circle at center, rgba(246,216,138,.18), rgba(216,177,92,.07) 35%, transparent 68%),
    radial-gradient(circle at center, rgba(136,182,255,.075), transparent 72%);
  filter:blur(14px);
  opacity:.92;
  transform:translateY(10px);
  transition:opacity 420ms ease, transform 640ms ease;
}
body.ccr-intro-handshake .ccr-intro-stage-glow,
.ccr-intro-stage-wrap.is-handshake .ccr-intro-stage-glow{opacity:.28; transform:translateY(-8px) scale(.78);}

.ccr-intro-merge-ball{
  position:absolute;
  left:50%;
  top:50%;
  width:clamp(90px, 10vw, 148px);
  aspect-ratio:1;
  border-radius:50%;
  pointer-events:none;
  opacity:0;
  transform:translate(-50%,-50%) scale(.52);
  background:
    radial-gradient(circle at 36% 30%, #fff 0 8%, #fff2c3 20%, rgba(246,216,138,.78) 42%, rgba(216,177,92,.22) 67%, transparent 80%);
  filter:blur(2px);
  box-shadow:0 0 28px rgba(255,239,191,.46), 0 0 84px rgba(246,216,138,.32), 0 0 148px rgba(216,177,92,.16);
  transition:opacity 110ms ease, transform 360ms cubic-bezier(.12,.88,.18,1);
  z-index:4;
}
.ccr-intro-stage-wrap.is-ball .ccr-intro-merge-ball{opacity:1; transform:translate(-50%,-50%) scale(1.02);}
.ccr-intro-stage-wrap.is-pulsing .ccr-intro-merge-ball{animation:ccrIntroBallPulse 364ms ease-in-out 2;}
@keyframes ccrIntroBallPulse{
  0%,100%{filter:blur(2px) brightness(1); box-shadow:0 0 28px rgba(255,239,191,.42), 0 0 84px rgba(246,216,138,.30), 0 0 148px rgba(216,177,92,.14);}
  50%{filter:blur(1px) brightness(1.23); box-shadow:0 0 40px rgba(255,246,218,.62), 0 0 110px rgba(246,216,138,.46), 0 0 210px rgba(216,177,92,.22);}
}

.ccr-intro-letters-stage{position:relative; z-index:5; width:min(70vw, 820px); height:min(34vh, 250px);}
.ccr-intro-letters-stage::after{
  content:"";
  position:absolute;
  inset:-20% -8%;
  background:linear-gradient(105deg, transparent 32%, rgba(255,239,191,.12) 46%, rgba(246,216,138,.28) 50%, rgba(255,239,191,.10) 56%, transparent 68%);
  opacity:0;
  transform:translateX(-38%) skewX(-14deg);
  pointer-events:none;
  mix-blend-mode:screen;
}
.ccr-intro-stage-wrap.is-glowing .ccr-intro-letters-stage::after{animation:ccrIntroSheenSweep 680ms cubic-bezier(.18,.78,.2,1) 1;}
@keyframes ccrIntroSheenSweep{0%{opacity:0; transform:translateX(-42%) skewX(-14deg);}20%{opacity:.32;}100%{opacity:0; transform:translateX(44%) skewX(-14deg);}}

.ccr-intro-letter{
  position:absolute;
  top:50%;
  left:50%;
  font-family:Inter,"Noto Sans JP",system-ui,sans-serif;
  font-weight:850;
  font-size:clamp(62px, 12vw, 158px);
  line-height:1;
  letter-spacing:.01em;
  user-select:none;
  pointer-events:none;
  backface-visibility:hidden;
  will-change:transform, opacity;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  color:#f8e4a6;
  text-shadow:0 0 18px rgba(246,216,138,.25), 0 0 56px rgba(216,177,92,.14), 0 22px 68px rgba(0,0,0,.34);
  transition:transform 720ms cubic-bezier(.11,.86,.16,1), color 220ms ease, text-shadow 220ms ease, filter 260ms ease, opacity 260ms ease;
  transform:translate(calc(-50% + var(--start-x)), calc(-50% + var(--start-y))) scale(var(--entry-scale, .86));
  opacity:.72;
  filter:blur(var(--entry-blur, 6px)) brightness(.92);
  z-index:2;
}

.ccr-entry-gate{
  --ccr-intro-letter-gap: clamp(64px, 8vw, 110px);
}
.ccr-intro-letter[data-letter="C1"]{--settle-x:calc(-1.08 * var(--ccr-intro-letter-gap)); --entry-scale:.82; --entry-blur:8px;}
.ccr-intro-letter[data-letter="C2"]{--settle-x:0px; --entry-scale:.72; --entry-blur:10px;}
.ccr-intro-letter[data-letter="R"]{--settle-x:calc(1.08 * var(--ccr-intro-letter-gap)); --entry-scale:.88; --entry-blur:7px;}
.ccr-intro-letter.is-homing{transform:translate(calc(-50% + var(--settle-x)), -50%) scale(1); opacity:1; filter:blur(0px) brightness(1);}
.ccr-intro-letter.is-overlap{transition-duration:360ms, 140ms, 140ms, 140ms, 140ms; transform:translate(-50%, -50%) scale(1.08); color:#fff7df; filter:blur(.4px) brightness(1.15); opacity:.08; text-shadow:0 0 2px rgba(246,216,138,.10), 0 4px 12px rgba(0,0,0,.10);}
.ccr-intro-letter.is-dispersed{transition-duration:790ms, 160ms, 160ms, 160ms, 180ms; transition-timing-function:cubic-bezier(.16,.8,.18,1), ease, ease, ease, ease; transition-delay:0ms, 0ms, 0ms, 0ms, 120ms; transform:translate(calc(-50% + var(--settle-x)), -50%) scale(1); color:#ffe09a; opacity:1; filter:blur(0px) brightness(1.05); text-shadow:0 0 18px rgba(246,216,138,.44), 0 0 52px rgba(216,177,92,.24), 0 0 100px rgba(216,177,92,.10), 0 18px 45px rgba(0,0,0,.32);}
.ccr-intro-letter.is-handshake{transition:transform 1050ms cubic-bezier(.17,.77,.20,1), opacity 760ms ease; transform:translate3d(calc(-50% + var(--settle-x, 0px) + var(--handshake-dx, 0px)), calc(-50% + var(--settle-y, 0px) + var(--handshake-dy, 0px)), 0) scale(var(--handshake-scale-x, var(--handshake-scale, .34)), var(--handshake-scale-y, var(--handshake-scale, .34))); opacity:var(--handshake-opacity, .09); filter:none; text-shadow:0 8px 18px rgba(0,0,0,.16);}
.ccr-intro-stage-wrap.is-glowing .ccr-intro-letter{animation:ccrIntroFinalGlow 600ms ease-in-out 1;}
@keyframes ccrIntroFinalGlow{0%,100%{filter:brightness(1.05); color:#ffe09a; text-shadow:0 0 18px rgba(246,216,138,.44), 0 0 52px rgba(216,177,92,.24), 0 18px 45px rgba(0,0,0,.32);}50%{filter:brightness(1.28); color:#fff0c1; text-shadow:0 0 26px rgba(255,239,191,.58), 0 0 82px rgba(246,216,138,.32), 0 0 150px rgba(216,177,92,.16), 0 18px 45px rgba(0,0,0,.28);}}

body.ccr-intro-underlay-awake .site-world-map-bg{filter:brightness(1.02) saturate(1.04); transition:filter 560ms ease;}
body.ccr-intro-active .masthead h1[data-site-title] .site-title-ccr-char{opacity:0; transition:opacity 280ms ease;}
body.ccr-intro-measuring .masthead h1[data-site-title] .site-title-ccr-char{opacity:0 !important;}
body.ccr-intro-handshake .masthead h1[data-site-title] .site-title-ccr-char{opacity:1; color:#f6d88a; text-shadow:0 0 13px rgba(246,216,138,.28), 0 10px 30px rgba(0,0,0,.30); transition:opacity 760ms ease 120ms, color 760ms ease 120ms, text-shadow 760ms ease 120ms;}
.masthead h1[data-site-title] .site-title-ccr{display:inline-flex; align-items:baseline; gap:0;}
.masthead h1[data-site-title] .site-title-ccr-char{display:inline-block;}

/* r5 mobile/low-power Atlas smoothing — preserve desktop r4 visuals, simplify phone compositing. */
@media (max-width:820px), (pointer:coarse), (hover:none){
  .ccr-entry-gate{--ccr-intro-letter-gap: clamp(48px, 9vw, 72px);}
  .ccr-intro-stage-wrap{height:min(54vh, 400px);}
  .ccr-intro-stage-wrap.is-atlas-lean .ccr-intro-gold-dust{inset:-8%;}
  .ccr-intro-stage-wrap.is-atlas-lean .ccr-intro-gold-dust i{
    width:2px;
    height:2px;
    background:rgba(246,216,138,.70);
    box-shadow:0 0 7px rgba(246,216,138,.42);
  }
  .ccr-intro-stage-wrap.is-atlas-lean.is-atlas-live .ccr-intro-gold-dust i{animation:ccrIntroDustInLean 560ms cubic-bezier(.18,.8,.2,1) forwards;}
  .ccr-intro-stage-wrap.is-atlas-lean.is-pulsing .ccr-intro-gold-dust i{animation:none; opacity:.14;}
  .ccr-intro-stage-wrap.is-atlas-lean .ccr-intro-atlas-grid{
    width:min(70vw, 320px);
    border-color:rgba(246,216,138,.11);
    background:
      repeating-radial-gradient(circle at center, transparent 0 44px, rgba(246,216,138,.055) 45px 46px, transparent 47px 86px),
      linear-gradient(90deg, transparent, rgba(136,182,255,.045), transparent);
    box-shadow:inset 0 0 24px rgba(246,216,138,.055);
    transition:opacity 260ms ease, transform 620ms cubic-bezier(.18,.78,.2,1);
  }
  .ccr-intro-stage-wrap.is-atlas-lean.is-atlas-live .ccr-intro-atlas-grid{opacity:.42;}
  .ccr-intro-stage-wrap.is-atlas-lean.is-ball .ccr-intro-atlas-grid{animation:ccrIntroAtlasCompressLean 540ms ease-out forwards;}
  .ccr-intro-stage-wrap.is-atlas-lean .ccr-intro-atlas-rings::before{width:min(78vw, 340px); border-color:rgba(246,216,138,.14); box-shadow:none;}
  .ccr-intro-stage-wrap.is-atlas-lean .ccr-intro-atlas-rings::after{display:none;}
  .ccr-intro-stage-wrap.is-atlas-lean.is-atlas-live .ccr-intro-atlas-rings::before{animation:ccrIntroOrbitRingLean 760ms ease-out forwards;}
  .ccr-intro-stage-wrap.is-atlas-lean .ccr-intro-stage-glow{width:min(72vw, 360px); filter:blur(8px); opacity:.70;}
  .ccr-intro-stage-wrap.is-atlas-lean .ccr-intro-merge-ball{width:clamp(72px, 18vw, 104px); filter:blur(1px); box-shadow:0 0 22px rgba(255,239,191,.36), 0 0 62px rgba(246,216,138,.22);}
  .ccr-intro-stage-wrap.is-atlas-lean .ccr-intro-letter{text-shadow:0 0 14px rgba(246,216,138,.32), 0 14px 36px rgba(0,0,0,.30); transition-duration:660ms, 180ms, 180ms, 180ms, 200ms;}
  .ccr-intro-stage-wrap.is-atlas-lean .ccr-intro-letter.is-dispersed{text-shadow:0 0 16px rgba(246,216,138,.36), 0 16px 38px rgba(0,0,0,.30);}
  .ccr-intro-stage-wrap.is-atlas-lean .ccr-intro-letters-stage::after{display:none;}
}
@keyframes ccrIntroDustInLean{to{opacity:.32; transform:translate3d(calc(var(--x) * .18), calc(var(--y) * .18), 0) scale(.86);}}
@keyframes ccrIntroAtlasCompressLean{to{opacity:.24; transform:translate(-50%,-50%) scale(.52) rotate(14deg);}}
@keyframes ccrIntroOrbitRingLean{35%{opacity:.34;}100%{opacity:.10; transform:translate(-50%,-50%) rotateX(66deg) rotateZ(210deg) scale(.96);}}
@media (prefers-reduced-motion:reduce){.ccr-intro-stage-wrap.is-pulsing .ccr-intro-merge-ball,.ccr-intro-stage-wrap.is-glowing .ccr-intro-letter,.ccr-intro-letters-stage::after,.ccr-intro-gold-dust i,.ccr-intro-atlas-grid,.ccr-intro-atlas-rings::before,.ccr-intro-atlas-rings::after{animation:none !important;}.ccr-intro-letter,.ccr-intro-merge-ball,.ccr-intro-overlay,.ccr-entry-keypad-slot,.ccr-intro-atlas-grid,.ccr-intro-atlas-rings::before,.ccr-intro-atlas-rings::after{transition:none !important;}}


.ccr-entry-gate[hidden]{display:none !important;}
body.ccr-entry-locked{overflow:hidden;}
body.ccr-entry-locked .page-shell{
  opacity:0 !important;
  filter:blur(12px) saturate(.82);
  transition:opacity 240ms ease, filter 240ms ease;
}
body.ccr-entry-locked .site-world-map-bg{
  opacity:.02;
  filter:blur(10px) saturate(.86);
  transition:opacity 240ms ease, filter 240ms ease;
}
body.ccr-entry-locked.ccr-intro-revealing .page-shell{
  opacity:1 !important;
  filter:none;
  transition:opacity 120ms linear, filter 120ms linear;
}
body.ccr-entry-locked.ccr-intro-revealing .site-world-map-bg{
  opacity:1;
  filter:none;
  transition:opacity 140ms linear, filter 140ms linear;
}
/* r9120 cleanup — modal home overlays own the mobile tap layer; keep the dock inert underneath. */
body.settings-shell-open .mobile-bottom-dock,
body.portfolio-shell-open .mobile-bottom-dock,
body.rss-shell-open .mobile-bottom-dock,
body.book-shell-open .mobile-bottom-dock,
body.book-reader-shell-open .mobile-bottom-dock{
  opacity:0;
  pointer-events:none;
}

.ccr-entry-gate{
  background:
    radial-gradient(880px 600px at 50% 40%, rgba(223,233,244,.10), transparent 54%),
    radial-gradient(760px 540px at 50% 62%, rgba(237,219,227,.10), transparent 52%),
    linear-gradient(180deg, rgba(4,8,14,.86), rgba(4,8,14,.94));
  backdrop-filter:blur(14px) saturate(.9);
}
.ccr-entry-keypad-slot{
  min-height:100dvh;
  width:100%;
  padding:clamp(16px, 3vw, 32px);
  align-items:center;
  justify-content:center;
}
.ccr-entry-keypad-shell{
  width:min(430px, calc(100vw - 2 * clamp(16px, 3vw, 32px)));
  max-width:430px;
  display:grid;
  place-items:center;
  margin-inline:auto;
  box-sizing:border-box;
}
.ccr-entry-keypad-panel{
  width:100%;
  padding:clamp(20px, 4vw, 30px);
  border-radius:24px;
  background:
    linear-gradient(180deg, rgba(58,74,91,.92), rgba(38,53,68,.94)),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 34px 90px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px rgba(79,163,255,.06);
  backdrop-filter:blur(18px) saturate(1.04);
}
.ccr-entry-login-id-block{
  display:grid;
  gap:8px;
  margin:0 0 16px;
}
.ccr-entry-login-id-label{
  color:var(--text-2);
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.ccr-entry-login-id-input{
  width:100%;
  min-height:50px;
  padding:0 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg, rgba(17,27,38,.84), rgba(19,31,44,.74));
  color:var(--text);
  font:500 clamp(15px, 2.8vw, 17px)/1 Inter, "Noto Sans JP", system-ui, sans-serif;
  letter-spacing:.02em;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03), 0 10px 26px rgba(0,0,0,.22);
  outline:none;
}
.ccr-entry-login-id-input::placeholder{color:rgba(214,224,233,.48);}
.ccr-entry-login-id-input:focus{
  border-color:rgba(79,163,255,.42);
  box-shadow:0 0 0 3px rgba(79,163,255,.14), inset 0 1px 0 rgba(255,255,255,.04), 0 10px 26px rgba(0,0,0,.24);
}
.ccr-entry-code-dots{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:0 0 14px;
}
.ccr-entry-code-dot{
  width:11px;
  height:11px;
  border-radius:999px;
  background:rgba(79,163,255,.14);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.03);
  transition:transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.ccr-entry-code-dot.is-filled{
  background:rgba(234,240,245,.92);
  box-shadow:0 0 12px rgba(79,163,255,.22);
  transform:scale(1.04);
}
.ccr-entry-keypad-prompt{
  margin:0;
  text-align:center;
  color:var(--text);
  font-size:clamp(14px, 2.6vw, 16px);
  letter-spacing:.05em;
}
.ccr-entry-keypad-status{
  min-height:1.35em;
  margin:8px 0 16px;
  text-align:center;
  color:var(--text-2);
  font-size:12px;
  letter-spacing:.04em;
}
.ccr-entry-keypad-status[data-state="error"]{color:#f2b8ba;}
.ccr-entry-keypad-status[data-state="success"]{color:#d6e8f6;}
.ccr-entry-keypad-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
}
.ccr-entry-key{
  appearance:none;
  border:none;
  border-radius:18px;
  min-height:64px;
  background:linear-gradient(180deg, rgba(68,87,105,.96), rgba(49,66,82,.94));
  color:var(--text);
  font:600 clamp(20px, 4.2vw, 28px)/1 Inter, "Noto Sans JP", system-ui, sans-serif;
  letter-spacing:.01em;
  box-shadow:0 14px 34px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.05), 0 0 0 1px rgba(79,163,255,.04);
  border:1px solid rgba(255,255,255,.08);
  transition:transform 130ms ease, background 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
  touch-action:manipulation;
}
.ccr-entry-key:hover{background:linear-gradient(180deg, rgba(79,163,255,.22), rgba(68,87,105,.94));}
.ccr-entry-key:active{transform:translateY(1px) scale(.988);}
.ccr-entry-key:disabled{opacity:.46;}
.ccr-entry-key--delete,
.ccr-entry-key--unlock{
  font-size:clamp(14px, 2.8vw, 16px);
  letter-spacing:.08em;
  text-transform:uppercase;
}
.ccr-entry-key--unlock{
  background:linear-gradient(180deg, rgba(79,163,255,.32), rgba(79,163,255,.18));
}
.ccr-entry-key--delete{
  background:linear-gradient(180deg, rgba(69,86,103,.98), rgba(49,66,82,.95));
  color:var(--text-2);
}
@media (max-width:820px){
  .ccr-entry-keypad-slot{padding:max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)) 18px; min-height:100dvh; align-items:flex-start;}
  .ccr-entry-keypad-shell{width:min(380px, calc(100vw - 36px)); margin-top:clamp(10px, 4svh, 34px);}
  .ccr-entry-keypad-panel{width:100%; padding:18px 16px 16px; border-radius:22px;}
  .ccr-entry-key{min-height:58px; border-radius:16px;}
}


/* === PHASE 1 SETTINGS SHELL (home only) === */
body[data-page="home"] .settings-launch-btn{
  flex:0 0 auto;
}
body[data-page="home"] .settings-icon,
body[data-page="home"] .settings-shell-close > span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
body[data-page="home"] .settings-icon-svg,
body[data-page="home"] .book-icon-svg{
  width:19px;
  height:19px;
  display:block;
  overflow:visible;
}
body[data-page="home"] .book-icon,
body[data-page="home"] .book-shell-close > span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
body[data-page="home"] .book-launch-btn:hover{
  background:rgba(124,196,255,.12);
  border-color:rgba(124,196,255,.34);
}

body.settings-shell-open{
  overflow:hidden;
}
body.rss-shell-open{
  overflow:hidden;
}
body.book-shell-open{
  overflow:hidden;
}
body.book-reader-shell-open{
  overflow:hidden;
}
body[data-page="home"] .book-shell-layer{
  position:fixed;
  inset:0;
  z-index:558;
}
body[data-page="home"] .book-shell-card{
  width:min(1180px, calc(100vw - 32px));
}
body[data-page="home"] .book-shell-scroll{
  display:flex;
  flex-direction:column;
}
body[data-page="home"] .book-shell-body{
  gap:18px;
}
body[data-page="home"] .book-shell-balance{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
}
body[data-page="home"] .book-shell-balance strong{
  font-size:1.05rem;
}
body[data-page="home"] .book-shell-balance.is-pending strong{
  color:rgba(224,232,244,.74);
  font-size:.96rem;
  letter-spacing:.01em;
}
body[data-page="home"] .book-shell-library{
  display:grid;
  gap:14px;
}
body[data-page="home"] .book-shell-library__head{
  display:grid;
  gap:8px;
}
body[data-page="home"] .book-shell-library__head h3{
  margin:0;
  font-size:1.05rem;
}
body[data-page="home"] .book-shell-section{
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  background:linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.026));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
  overflow:hidden;
}
body[data-page="home"] .book-shell-section + .book-shell-section{
  margin-top:12px;
}
body[data-page="home"] .book-shell-section__summary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:48px;
  padding:13px 16px;
  color:rgba(232,214,164,.90);
  font-size:1.02rem;
  font-weight:700;
  letter-spacing:.012em;
  cursor:pointer;
  user-select:none;
}
body[data-page="home"] .book-shell-section__summary::-webkit-details-marker{
  display:none;
}
body[data-page="home"] .book-shell-section__summary::after{
  content:"▾";
  color:rgba(232,214,164,.72);
  font-size:.86rem;
  line-height:1;
  transform:rotate(-90deg);
  transition:transform .18s ease, color .18s ease;
}
body[data-page="home"] .book-shell-section[open] .book-shell-section__summary::after{
  transform:rotate(0deg);
  color:rgba(232,214,164,.9);
}
body[data-page="home"] .book-shell-section__summary em{
  margin-left:auto;
  padding:3px 8px;
  border:1px solid rgba(232,214,164,.14);
  border-radius:999px;
  color:rgba(218,226,234,.68);
  background:rgba(255,255,255,.035);
  font-size:.72rem;
  font-style:normal;
  font-weight:650;
}
body[data-page="home"] .book-shell-section__content{
  padding:0 16px 16px;
}
body[data-page="home"] .book-shell-section__empty{
  margin:0;
  padding:14px 12px;
  border:1px dashed rgba(255,255,255,.09);
  border-radius:16px;
  color:rgba(213,222,232,.64);
  background:rgba(6,13,23,.18);
}
@media (max-width:720px){
  body[data-page="home"] .book-shell-section__summary{
    position:relative;
  }
  body[data-page="home"] .book-shell-section__summary > span{
    display:block;
  }
  body[data-page="home"] .book-shell-section__summary em{
    left:14px;
    top:50%;
  }
  body[data-page="home"] .book-shell-section__summary::after{
    right:16px;
    top:50%;
  }
  body[data-page="home"] .book-shell-section__content{
    padding:0 12px 14px;
  }
}
body[data-page="home"] .book-shell-note{
  margin:0;
}
body[data-page="home"] .book-shell-library__grid{
  display:grid;
  gap:14px;
}
body[data-page="home"] .book-shell-card-item{
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  padding:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  display:grid;
  grid-template-columns:minmax(148px, 188px) minmax(0, 1fr);
  align-items:start;
  gap:14px 18px;
}
body[data-page="home"] .book-shell-card-item__media{
  grid-column:1;
  grid-row:1 / span 2;
  width:min(100%, 188px);
  aspect-ratio:3 / 4;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(10,16,28,.42));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
body[data-page="home"] .book-shell-card-item__cover{
  display:block;
  width:100%;
  height:100%;
  max-height:none;
  object-fit:contain;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(10,16,28,.55);
}
body[data-page="home"] .book-shell-card-item__head{
  grid-column:2;
  display:flex;
  gap:12px;
  justify-content:space-between;
  align-items:flex-start;
}
body[data-page="home"] .book-shell-card-item__head h3,
body[data-page="home"] .book-shell-card-item__head p{
  margin:0;
}
body[data-page="home"] .book-shell-card-item__head h3{
  font-size:1rem;
  line-height:1.35;
}
body[data-page="home"] .book-shell-card-item__head p{
  margin-top:6px;
  color:var(--muted);
}
body[data-page="home"] .book-shell-card-item__subtitle{
  font-size:.86rem;
  line-height:1.45;
  color:rgba(218,226,236,.78) !important;
}
body[data-page="home"] .book-shell-card-item__brief-review{
  margin-top:7px !important;
  font-size:.84rem;
  line-height:1.52;
  color:rgba(232,214,164,.72) !important;
}
body[data-page="home"] .book-shell-card-item__kicker{
  margin:0 0 6px;
  font-size:.78rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(124,196,255,.9);
}
body[data-page="home"] .book-shell-card-item__badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
body[data-page="home"] .book-shell-card-item__actions{
  grid-column:2;
  justify-content:flex-start;
}
body[data-page="home"] .book-shell-resources__grid{
  display:grid;
  gap:12px;
}
body[data-page="home"] .book-shell-resource-card{
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.026));
  display:grid;
  grid-template-columns:minmax(74px, 96px) minmax(0,1fr);
  gap:12px 14px;
  align-items:center;
}
body[data-page="home"] .book-shell-resource-card__media{
  width:100%;
  aspect-ratio:4 / 3;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(9,17,29,.38);
  overflow:hidden;
}
body[data-page="home"] .book-shell-resource-card__image{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
body[data-page="home"] .book-shell-resource-card__copy{
  display:grid;
  gap:6px;
}
body[data-page="home"] .book-shell-resource-card__copy h3,
body[data-page="home"] .book-shell-resource-card__copy p{
  margin:0;
}
body[data-page="home"] .book-shell-resource-card__copy h3{
  font-size:.95rem;
  line-height:1.35;
  color:rgba(239,244,250,.92);
}
body[data-page="home"] .book-shell-resource-card__title-link{
  color:inherit;
  text-decoration:none;
}
body[data-page="home"] button.book-shell-resource-card__title-link{
  appearance:none;
  -webkit-appearance:none;
  border:0;
  padding:0;
  background:none;
  font:inherit;
  color:inherit;
  text-align:inherit;
  cursor:pointer;
}
body[data-page="home"] .book-shell-study-panel--resources .book-shell-resource-card{
  grid-template-columns:minmax(108px, 132px) minmax(0,1fr);
  align-items:start;
}
body[data-page="home"] .book-shell-study-panel--resources .book-shell-resource-card__media{
  width:min(100%, 132px);
  aspect-ratio:3 / 4;
}
body[data-page="home"] .book-shell-study-panel--resources .book-shell-resource-card__image{
  object-fit:contain;
}
body[data-page="home"] .book-shell-resource-card__title-link:hover,
body[data-page="home"] .book-shell-resource-card__title-link:focus-visible{
  text-decoration:underline;
}
body[data-page="home"] .book-shell-resource-card__copy p{
  font-size:.86rem;
  line-height:1.5;
  color:rgba(213,223,234,.74);
}
@media (max-width:900px){
  body[data-page="home"] .book-shell-section{
    width:min(100%, 34rem);
    max-width:100%;
    margin-inline:auto;
  }
  body[data-page="home"] .book-shell-section__summary{
    display:grid;
    grid-template-columns:48px minmax(0,1fr) 48px;
    align-items:center;
    justify-items:center;
    width:100%;
    min-height:46px;
    padding:12px 10px;
    text-align:center;
    box-sizing:border-box;
  }
  body[data-page="home"] .book-shell-section__summary > span{
    grid-column:2;
    width:100%;
    max-width:100%;
    text-align:center;
    justify-self:center;
  }
  body[data-page="home"] .book-shell-section__summary em{
    position:static;
    grid-column:1;
    grid-row:1;
    justify-self:start;
    margin-left:0;
    transform:none;
  }
  body[data-page="home"] .book-shell-section__summary::after{
    position:static;
    grid-column:3;
    grid-row:1;
    justify-self:end;
    transform:rotate(-90deg);
  }
  body[data-page="home"] .book-shell-section[open] .book-shell-section__summary::after{
    transform:rotate(0deg);
  }
}
@media (max-width:720px){
  body[data-page="home"] .book-shell-card-item__media{
    margin:0 auto;
  }
  body[data-page="home"] .book-shell-card-item__badges{
    justify-content:flex-start;
  }
}
body[data-page="home"] .book-shell-status.is-warning{
  border-color:rgba(250,204,21,.32);
}
body[data-page="home"] .book-reader-shell-layer{
  position:fixed;
  inset:0;
  z-index:559;
}
body[data-page="home"] .book-reader-shell-card{
  width:min(1380px, calc(100vw - 16px));
  height:min(calc(100vh - 16px), 1080px);
  max-width:1380px;
}
body[data-page="home"] .book-reader-shell-scroll{
  display:flex;
  flex-direction:column;
  height:100%;
}
body[data-page="home"] .book-reader-shell-header{
  padding-bottom:14px;
}
body[data-page="home"] .book-reader-shell-body{
  flex:1 1 auto;
  min-height:0;
  display:grid;
}
body[data-page="home"] .book-reader-shell-frame-wrap{
  min-height:0;
  height:100%;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
}
body[data-page="home"] .book-reader-shell-frame{
  width:100%;
  height:100%;
  min-height:min(78vh, 980px);
  border:0;
  display:block;
  background:#071018;
}
body[data-page="home"] .settings-shell-layer{
  position:fixed;
  inset:0;
  z-index:560;
}
body[data-page="home"] .settings-shell-backdrop{
  position:absolute;
  inset:0;
  
  
}
body[data-page="home"] .settings-shell-card{
  position:absolute;
  top:max(18px, env(safe-area-inset-top, 0px) + 12px);
  left:max(24px, env(safe-area-inset-left, 0px) + 16px);
  right:max(24px, env(safe-area-inset-right, 0px) + 16px);
  bottom:max(18px, env(safe-area-inset-bottom, 0px) + 12px);
  
  max-height:none;
  margin-inline:auto;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(214,229,248,.13);
  border-radius:24px;
  
  
  
  color:var(--text);
}
body[data-page="home"] .settings-shell-scroll{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  min-height:0;
  max-height:100%;
  overflow-x:hidden;
  overflow-y:auto;
  overflow-anchor:none;
  scrollbar-gutter:stable both-edges;
}
body[data-page="home"] .settings-shell-header{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  gap:12px;
  
  border-bottom:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(27,39,53,.97), rgba(23,33,46,.95));
}
body[data-page="home"] .settings-shell-header > div{
  min-width:0;
  flex:1 1 auto;
  max-width:100%;
}
body[data-page="home"] .settings-shell-kicker{
  margin:0 0 6px;
  font-size:.72rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(215,227,236,.66);
}
body[data-page="home"] .settings-shell-header h2{
  margin:0;
  
}
body[data-page="home"] .settings-shell-subtitle{
  margin:8px 0 0;
  color:var(--text-2);
  line-height:1.5;
  font-size:.95rem;
}
body[data-page="home"] .settings-shell-close{
  position:absolute;
  top:max(14px, env(safe-area-inset-top, 0px) + 2px);
  right:max(14px, env(safe-area-inset-right, 0px) + 2px);
  
  
  
  display:inline-flex;
  align-items:center;
  justify-content:center;
  z-index:8;
  background:rgba(9, 15, 23, .72);
  border-color:rgba(255,255,255,.16);
  box-shadow:0 10px 24px rgba(0,0,0,.26);
}
body[data-page="home"] .settings-shell-body{
  display:grid;
  
  
}
body[data-page="home"] .settings-shell-section{
  display:grid;
  
  
  border:1px solid rgba(255,255,255,.08);
  
  
}
body[data-page="home"] .settings-shell-section h3{
  margin:0;
  font-size:.9rem;
  letter-spacing:.01em;
}
body[data-page="home"] .settings-shell-empty{
  margin:0;
  color:var(--text-2);
  line-height:1.55;
  font-size:.93rem;
}
body[data-page="home"] .settings-user-chip{
  display:inline-flex;
  align-items:center;
  
  flex-wrap:wrap;
  
  max-width:100%;
  
  border-radius:999px;
  
  
}
body[data-page="home"] .settings-user-chip.is-muted{
  background:rgba(255,255,255,.04);
  border-color:rgba(255,255,255,.08);
}
body[data-page="home"] .settings-user-chip__label{
  color:var(--text-2);
  
}
body[data-page="home"] .settings-session-row{
  display:flex;
  
  justify-content:space-between;
  
  flex-wrap:wrap;
}
body[data-page="home"] .settings-manager-block{
  display:grid;
  gap:8px;
  padding:10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(7,14,28,.24);
}
body[data-page="home"] .settings-manager-block + .settings-manager-block{
  margin-top:10px;
}
body[data-page="home"] .settings-manager-block__head{
  display:grid;
  gap:6px;
}
body[data-page="home"] .settings-manager-block__title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
body[data-page="home"] .settings-manager-block__title{
  margin:0;
  font-size:.82rem;
  letter-spacing:.03em;
  text-transform:uppercase;
  color:var(--text-2);
}
body[data-page="home"] .settings-manager-block__note{
  margin:0;
  font-size:.74rem;
  line-height:1.45;
  color:var(--text-3);
}
body[data-page="home"] .settings-manager-block__body{
  display:grid;
  gap:8px;
}
body[data-page="home"] .settings-shell-list{
  display:grid;
  gap:8px;
}
body[data-page="home"] .settings-ticker-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  
  border-radius:12px;
  background:rgba(11,17,25,.22);
  border:1px solid rgba(255,255,255,.06);
}
body[data-page="home"] .settings-ticker-row__label{
  min-width:0;
  font-size:.88rem;
  color:var(--text);
}
body[data-page="home"] .settings-ticker-row__meta{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
  white-space:nowrap;
}
body[data-page="home"] .settings-ticker-row__value{
  color:var(--text);
  font-weight:600;
}
body[data-page="home"] .settings-ticker-row__delta{
  font-size:.82rem;
  color:var(--text-2);
}
body[data-page="home"] .settings-ticker-row__delta.is-up{ color:#8fe3b3; }
body[data-page="home"] .settings-ticker-row__delta.is-down{ color:#ffb0b0; }
body[data-page="home"] .settings-ticker-row__delta.is-flat{ color:var(--text-2); }
body[data-page="home"] .settings-favorite-row{
  display:grid;
  gap:8px;
  padding:10px;
  border-radius:14px;
  background:rgba(11,17,25,.24);
  border:1px solid rgba(255,255,255,.06);
}
body[data-page="home"] .settings-favorite-row__main{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
body[data-page="home"] .settings-favorite-row__label{
  font-size:.88rem;
  color:var(--text);
  min-width:0;
}
body[data-page="home"] .settings-favorite-row__meta{
  display:flex;
  align-items:center;
  
  white-space:nowrap;
}
body[data-page="home"] .settings-mini-actions{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
body[data-page="home"] .settings-mini-btn{
  appearance:none;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:var(--text);
  border-radius:999px;
  padding:6px 10px;
  font:inherit;
  font-size:.76rem;
  line-height:1;
  cursor:pointer;
  transition:background .18s ease, border-color .18s ease, opacity .18s ease;
}
body[data-page="home"] .settings-mini-btn:hover{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.16);
}
body[data-page="home"] .settings-mini-btn:disabled{
  opacity:.5;
  cursor:default;
}
body[data-page="home"] .settings-mini-btn.is-active{
  background:rgba(79,163,255,.12);
  border-color:rgba(79,163,255,.26);
  color:#dcecff;
}
body[data-page="home"] .settings-mini-btn.is-danger{
  border-color:rgba(255,128,128,.16);
}
body[data-page="home"] .settings-inline-note{
  color:var(--text-2);
  font-size:.76rem;
}
body[data-page="home"] .settings-section-heading{
  display:grid;
  gap:4px;
}
body[data-page="home"] .settings-section-heading-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
body[data-page="home"] .settings-section-heading-row--discovery{
  justify-content:flex-end;
}
body[data-page="home"] .settings-section-heading--discovery{
  gap:0;
}
body[data-page="home"] .settings-shell-section--discovery{
  gap:6px;
}
body[data-page="home"] .settings-section-heading-main{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  flex-wrap:wrap;
}
body[data-page="home"] .settings-section-meta{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:3px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  color:var(--text-2);
  font-size:.71rem;
  line-height:1;
  white-space:nowrap;
}
body[data-page="home"] .settings-ticker-row__main,
body[data-page="home"] .settings-favorite-row__main{
  min-width:0;
  display:grid;
  gap:6px;
}
body[data-page="home"] .settings-ticker-row__label-wrap{
  display:flex;
  align-items:center;
  gap:8px;
  
  flex-wrap:wrap;
}


body[data-page="home"].settings-shell-open,
body[data-page="home"].settings-shell-open *,
body[data-page="home"].portfolio-shell-open,
body[data-page="home"].portfolio-shell-open *,
body[data-page="home"].rss-shell-open,
body[data-page="home"].rss-shell-open *,
body[data-page="home"].book-shell-open,
body[data-page="home"].book-shell-open *,
body[data-page="home"].book-reader-shell-open,
body[data-page="home"].book-reader-shell-open *,
body[data-page="home"].indicator-discovery-open,
body[data-page="home"].indicator-discovery-open *{
  scrollbar-color:rgba(122,146,173,.65) rgba(8,14,22,.88);
}

body[data-page="home"].settings-shell-open ::-webkit-scrollbar,
body[data-page="home"].portfolio-shell-open ::-webkit-scrollbar,
body[data-page="home"].rss-shell-open ::-webkit-scrollbar,
body[data-page="home"].book-shell-open ::-webkit-scrollbar,
body[data-page="home"].book-reader-shell-open ::-webkit-scrollbar,
body[data-page="home"].indicator-discovery-open ::-webkit-scrollbar{
  width:12px;
  height:12px;
}

body[data-page="home"].settings-shell-open ::-webkit-scrollbar-track,
body[data-page="home"].portfolio-shell-open ::-webkit-scrollbar-track,
body[data-page="home"].rss-shell-open ::-webkit-scrollbar-track,
body[data-page="home"].book-shell-open ::-webkit-scrollbar-track,
body[data-page="home"].book-reader-shell-open ::-webkit-scrollbar-track,
body[data-page="home"].indicator-discovery-open ::-webkit-scrollbar-track{
  background:rgba(8,14,22,.92);
  border-radius:999px;
}

body[data-page="home"].settings-shell-open ::-webkit-scrollbar-thumb,
body[data-page="home"].portfolio-shell-open ::-webkit-scrollbar-thumb,
body[data-page="home"].rss-shell-open ::-webkit-scrollbar-thumb,
body[data-page="home"].book-shell-open ::-webkit-scrollbar-thumb,
body[data-page="home"].book-reader-shell-open ::-webkit-scrollbar-thumb,
body[data-page="home"].indicator-discovery-open ::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg, rgba(118,145,175,.86), rgba(78,101,128,.86));
  border:2px solid rgba(8,14,22,.95);
  border-radius:999px;
}

body[data-page="home"].settings-shell-open ::-webkit-scrollbar-thumb:hover,
body[data-page="home"].portfolio-shell-open ::-webkit-scrollbar-thumb:hover,
body[data-page="home"].rss-shell-open ::-webkit-scrollbar-thumb:hover,
body[data-page="home"].book-shell-open ::-webkit-scrollbar-thumb:hover,
body[data-page="home"].book-reader-shell-open ::-webkit-scrollbar-thumb:hover,
body[data-page="home"].indicator-discovery-open ::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(180deg, rgba(142,171,204,.92), rgba(96,120,148,.92));
}


body.ccr-map-disabled .site-world-map-bg{display:none !important}
body[data-page="home"] .settings-sync-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 11px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.05);
  color:var(--text);
  font-size:.78rem;
  white-space:nowrap;
}
body[data-page="home"] .settings-sync-pill.is-ok{
  border-color:rgba(143,227,179,.22);
  background:rgba(143,227,179,.10);
  color:#dff8e8;
}
body[data-page="home"] .settings-sync-pill.is-pending{
  border-color:rgba(79,163,255,.26);
  background:rgba(79,163,255,.12);
  color:#dcecff;
}
body[data-page="home"] .settings-sync-pill.is-error{
  border-color:rgba(255,128,128,.22);
  background:rgba(255,128,128,.10);
  color:#ffd7d7;
}
body[data-page="home"] .settings-sync-pill.is-local{
  border-color:rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:var(--text-2);
}
body[data-page="home"] .settings-mini-actions--profile .settings-mini-btn{
  flex:1 1 calc(50% - 6px);
  justify-content:center;
}
body[data-page="home"] .settings-inline-note--profile{
  line-height:1.55;
}

@media (max-width:760px){
  body[data-page="home"] .settings-shell-card{
    
    
    
    
    
    max-height:none;
    
  }
    body[data-page="home"] .settings-shell-header{
    gap:10px;
    
  }
  body[data-page="home"] .settings-shell-header > div{
    max-width:100%;
  }
    body[data-page="home"] .settings-shell-close{
    top:max(12px, env(safe-area-inset-top, 0px));
    right:max(12px, env(safe-area-inset-right, 0px));
  }
    body[data-page="home"] .settings-ticker-row{
    align-items:flex-start;
    flex-direction:column;
    gap:8px;
  }
  body[data-page="home"] .settings-ticker-row__meta{
    width:100%;
    justify-content:space-between;
  }
  body[data-page="home"] .settings-favorite-row__main{
    flex-direction:column;
    gap:8px;
  }
  body[data-page="home"] .settings-favorite-row__meta{
    width:100%;
    justify-content:space-between;
  }
  body[data-page="home"] .settings-mini-actions{
    width:100%;
  }
  body[data-page="home"] .settings-section-heading-row{
    
    flex-direction:column;
  }
  body[data-page="home"] .settings-sync-pill{
    align-self:flex-start;
  }
  body[data-page="home"] .settings-mini-actions--profile .settings-mini-btn{
    flex:1 1 100%;
  }
}

body.indicator-discovery-open{
  overflow:hidden;
}
body[data-page="home"] .indicator-discovery-layer{
  position:fixed;
  inset:0;
  z-index:620;
}
body[data-page="home"] .indicator-discovery-backdrop{
  position:absolute;
  inset:0;
  background:rgba(5,10,18,.62);
  backdrop-filter:blur(12px);
}
body[data-page="home"] .indicator-discovery-panel{
  position:absolute;
  inset:clamp(18px, 3vw, 34px);
  display:grid;
  grid-template-rows:auto 1fr;
  gap:14px;
  padding:18px;
  border-radius:28px;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(16,24,36,.88), rgba(8,14,22,.84));
  box-shadow:0 28px 64px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.04);
  color:var(--text);
  outline:none;
}
body[data-page="home"] .indicator-discovery-header{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:flex-start;
  gap:14px;
}
body[data-page="home"] .indicator-discovery-kicker{
  margin:0 0 6px;
  font-size:.72rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(215,227,236,.66);
}
body[data-page="home"] .indicator-discovery-header h2{
  margin:0;
  font-size:1.42rem;
}
body[data-page="home"] .indicator-discovery-subtitle{
  margin:8px 0 0;
  color:var(--text-2);
  font-size:.94rem;
  line-height:1.55;
  max-width:58ch;
}
body[data-page="home"] .indicator-discovery-header-tools{
  display:grid;
  gap:8px;
  justify-items:end;
  align-self:center;
}
body[data-page="home"] .indicator-discovery-progress{
  min-width:92px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  color:rgba(233,241,247,.9);
  font-size:.84rem;
  font-weight:600;
  letter-spacing:.02em;
  text-align:center;
}
body[data-page="home"] .indicator-discovery-desktop-keys{
  margin:0;
  color:rgba(191,208,224,.7);
  font-size:.76rem;
  letter-spacing:.06em;
  white-space:nowrap;
}
body[data-page="home"] .indicator-discovery-stage{
  min-height:0;
  display:grid;
  place-items:center;
  padding:8px 0 6px;
  perspective:1400px;
}
body[data-page="home"] .indicator-discovery-empty{
  margin:0;
  color:var(--text-2);
  font-size:1rem;
  line-height:1.6;
  text-align:center;
}
body[data-page="home"] .indicator-discovery-card{
  width:min(100%, 920px);
  min-height:min(72vh, 640px);
  display:grid;
  place-items:center;
  touch-action:pan-y;
}
body[data-page="home"] .indicator-discovery-card__shell{
  width:min(100%, 880px);
  min-height:min(68vh, 580px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:18px;
  padding:clamp(24px, 4vw, 42px);
  border-radius:34px;
  border:1px solid rgba(255,255,255,.10);
  background:radial-gradient(circle at 50% 28%, rgba(79,163,255,.12), transparent 42%), linear-gradient(180deg, rgba(18,26,39,.84), rgba(8,13,20,.86));
  box-shadow:0 28px 72px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.05);
  text-align:center;
  animation:ccrIndicatorDiscoveryIn 340ms cubic-bezier(.17,.84,.24,1) both;
  transform:translate3d(var(--discovery-dx, 0px), 0, 0) rotate(var(--discovery-rotate, 0deg)) scale(calc(1 + (var(--discovery-progress, 0) * 0.02)));
  transform-origin:center center;
  transition:transform 190ms cubic-bezier(.2,.84,.2,1), border-color 190ms ease, box-shadow 190ms ease, opacity 190ms ease, filter 190ms ease;
  will-change:transform, opacity;
}
body[data-page="home"] .indicator-discovery-card[data-dragging="true"] .indicator-discovery-card__shell{
  border-color:rgba(79,163,255,.26);
}
body[data-page="home"] .indicator-discovery-card[data-swipe-intent="like"] .indicator-discovery-card__shell{
  border-color:rgba(111,222,165,.34);
  box-shadow:0 30px 74px rgba(0,0,0,.48), 0 0 0 1px rgba(111,222,165,.12), inset 0 1px 0 rgba(255,255,255,.05);
}
body[data-page="home"] .indicator-discovery-card[data-swipe-intent="hide"] .indicator-discovery-card__shell{
  border-color:rgba(255,121,132,.34);
  box-shadow:0 30px 74px rgba(0,0,0,.48), 0 0 0 1px rgba(255,121,132,.12), inset 0 1px 0 rgba(255,255,255,.05);
}
body[data-page="home"] .indicator-discovery-card[data-outcome="like"] .indicator-discovery-card__shell{
  animation:ccrIndicatorDiscoveryCommitLike 190ms cubic-bezier(.2,.84,.2,1) forwards;
}
body[data-page="home"] .indicator-discovery-card[data-outcome="hide"] .indicator-discovery-card__shell{
  animation:ccrIndicatorDiscoveryCommitHide 190ms cubic-bezier(.2,.84,.2,1) forwards;
}
body[data-page="home"] .indicator-discovery-card[data-outcome="skip"] .indicator-discovery-card__shell{
  animation:ccrIndicatorDiscoveryCommitSkip 190ms cubic-bezier(.2,.84,.2,1) forwards;
}
body[data-page="home"] .indicator-discovery-card__eyebrow-row{
  display:grid;
  gap:12px;
  justify-items:center;
}
body[data-page="home"] .indicator-discovery-card__eyebrow{
  color:rgba(191,208,224,.76);
  letter-spacing:.18em;
  text-transform:uppercase;
  font-size:clamp(11px, .9vw, 13px);
}
body[data-page="home"] .indicator-discovery-card__ghost-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}
body[data-page="home"] .indicator-discovery-card__ghost-pill{
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:rgba(233,241,247,.78);
  font-size:.74rem;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  transition:opacity 140ms ease, transform 140ms ease, border-color 140ms ease, background 140ms ease;
}
body[data-page="home"] .indicator-discovery-card__ghost-pill.is-hide{ color:#ffc2c8; }
body[data-page="home"] .indicator-discovery-card[data-swipe-intent="hide"] .indicator-discovery-card__ghost-pill.is-hide{
  opacity:1;
  transform:translateY(-1px) scale(1.03);
  border-color:rgba(255,121,132,.34);
  background:rgba(255,121,132,.12);
}
body[data-page="home"] .indicator-discovery-card[data-swipe-intent="like"] .indicator-discovery-card__ghost-pill.is-like{
  opacity:1;
  transform:translateY(-1px) scale(1.03);
  border-color:rgba(111,222,165,.34);
  background:rgba(111,222,165,.12);
}
body[data-page="home"] .indicator-discovery-card__label{
  margin:0;
  font-size:clamp(38px, 4.8vw, 72px);
  line-height:1.02;
  font-weight:600;
  max-width:14ch;
  color:rgba(244,248,252,.97);
  text-shadow:0 18px 42px rgba(0,0,0,.62), 0 8px 22px rgba(0,0,0,.68), 0 2px 10px rgba(0,0,0,.82);
}
body[data-page="home"] .indicator-discovery-card__meta{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
}
body[data-page="home"] .indicator-discovery-card__assist{
  margin:0;
  max-width:48ch;
  color:var(--text-2);
  font-size:.95rem;
  line-height:1.55;
}
body[data-page="home"] .indicator-discovery-card__value{
  font-size:clamp(20px, 2.1vw, 30px);
  font-weight:700;
  color:rgba(240,246,251,.95);
}
body[data-page="home"] .indicator-discovery-card__delta{
  font-size:clamp(14px, 1.2vw, 18px);
  color:var(--text-2);
}
body[data-page="home"] .indicator-discovery-card__delta.is-up{ color:#8fe3b3; }
body[data-page="home"] .indicator-discovery-card__delta.is-down{ color:#ffb0b0; }
body[data-page="home"] .indicator-discovery-card__delta.is-flat{ color:var(--text-2); }
body[data-page="home"] .indicator-discovery-card__actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
}
@keyframes ccrIndicatorDiscoveryIn{
  from{ opacity:0; transform:translateY(16px) scale(.94); }
  to{ opacity:1; transform:translateY(0) scale(1); }
}
@keyframes ccrIndicatorDiscoveryCommitLike{
  from{ opacity:1; transform:translate3d(var(--discovery-dx, 0px), 0, 0) rotate(var(--discovery-rotate, 0deg)) scale(calc(1 + (var(--discovery-progress, 0) * 0.02))); }
  to{ opacity:0; transform:translate3d(180px, -12px, 0) rotate(12deg) scale(.98); }
}
@keyframes ccrIndicatorDiscoveryCommitHide{
  from{ opacity:1; transform:translate3d(var(--discovery-dx, 0px), 0, 0) rotate(var(--discovery-rotate, 0deg)) scale(calc(1 + (var(--discovery-progress, 0) * 0.02))); }
  to{ opacity:0; transform:translate3d(-180px, -12px, 0) rotate(-12deg) scale(.98); }
}
@keyframes ccrIndicatorDiscoveryCommitSkip{
  from{ opacity:1; transform:translate3d(var(--discovery-dx, 0px), 0, 0) rotate(var(--discovery-rotate, 0deg)) scale(calc(1 + (var(--discovery-progress, 0) * 0.02))); }
  to{ opacity:0; transform:translate3d(0, 18px, 0) scale(.965); }
}
@media (max-width:760px){
  body[data-page="home"] .indicator-discovery-panel{ inset:12px; padding:14px; border-radius:24px; }
  body[data-page="home"] .indicator-discovery-header{
    grid-template-columns:minmax(0,1fr) auto;
    align-items:start;
  }
  body[data-page="home"] .indicator-discovery-header-tools{
    order:3;
    grid-column:1 / -1;
    justify-items:start;
  }
  body[data-page="home"] .indicator-discovery-desktop-keys{
    white-space:normal;
  }
  body[data-page="home"] .indicator-discovery-card{ min-height:min(68vh, 560px); }
  body[data-page="home"] .indicator-discovery-card__shell{ min-height:min(62vh, 520px); padding:22px 18px; border-radius:28px; }
  body[data-page="home"] .indicator-discovery-card__actions{ gap:8px; }
  body[data-page="home"] .indicator-discovery-card__assist{ font-size:.9rem; }
}


body[data-page="home"] .settings-search-row{
  margin-top:10px;
}
body[data-page="home"] .settings-search{
  display:block;
}
body[data-page="home"] .settings-search__input{
  width:100%;
  min-height:38px;
  padding:0 12px;
  border-radius:12px;
  border:1px solid rgba(146,179,255,.18);
  background:rgba(6,14,28,.72);
  color:var(--text-1);
  font:inherit;
}
body[data-page="home"] .settings-search__input::placeholder{ color:var(--text-3); }
body[data-page="home"] .settings-search__input:focus{
  outline:none;
  border-color:rgba(146,179,255,.34);
  box-shadow:0 0 0 3px rgba(146,179,255,.12);
}
body[data-page="home"] .settings-group-actions{
  
  
  gap:8px;
  
}
body[data-page="home"] .settings-group-actions .settings-mini-btn{
  min-height:32px;
  padding:0 10px;
}
body[data-page="home"] .settings-group{
  border:1px solid rgba(146,179,255,.16);
  border-radius:16px;
  background:rgba(7,14,28,.42);
  overflow:hidden;
}
body[data-page="home"] .settings-group + .settings-group{ margin-top:10px; }
body[data-page="home"] .settings-group__summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  font-size:.82rem;
  font-weight:700;
  letter-spacing:.02em;
  color:var(--text-1);
  background:rgba(255,255,255,.024);
  transition:background .18s ease, border-color .18s ease;
}
body[data-page="home"] .settings-group__summary:hover{ background:rgba(255,255,255,.05); }
body[data-page="home"] .settings-group__label{ display:flex; align-items:center; gap:8px; }
body[data-page="home"] .settings-group__label::before{ content:'▸'; font-size:.78rem; color:var(--text-3); transition:transform .18s ease, color .18s ease; }
body[data-page="home"] .settings-group[open] .settings-group__label::before{ transform:rotate(90deg); color:var(--text-2); }
body[data-page="home"] .settings-group__summary::-webkit-details-marker{ display:none; }
body[data-page="home"] .settings-group__count{
  min-width:24px;
  padding:2px 8px;
  border-radius:999px;
  font-size:.74rem;
  text-align:center;
  color:var(--text-2);
  background:rgba(255,255,255,.07);
}
body[data-page="home"] .settings-group__body{
  padding:10px;
  display:grid;
  gap:8px;
}
body[data-page="home"] .settings-ticker-row__sub,
body[data-page="home"] .settings-favorite-row__label + .settings-ticker-row__sub{
  margin-top:2px;
  font-size:.58rem;
  line-height:1.3;
  color:var(--text-3);
}
body[data-page="home"] .settings-group .settings-ticker-row{
  margin:0;
}
@media (max-width: 720px){
    body[data-page="home"] .settings-manager-block{
    padding:9px;
  }
}
@media (max-width: 720px){
  body[data-page="home"] .settings-group__summary{ padding:9px 10px; }
  body[data-page="home"] .settings-group__body{ padding:8px; }
}

body.portfolio-shell-open{
  overflow:hidden;
}
body[data-page="home"] .portfolio-shell-layer{
  position:fixed;
  inset:0;
  z-index:561;
}
body[data-page="home"] .portfolio-shell-backdrop{
  position:absolute;
  inset:0;
  background:rgba(5,10,18,.42);
  backdrop-filter:blur(9px) saturate(1.08);
}
body[data-page="home"] .portfolio-shell-card{
  width:min(680px, calc(100vw - 48px));
  max-height:none;
}
body[data-page="home"] .portfolio-shell-header{
  align-items:flex-start;
}
body[data-page="home"] .portfolio-shell-head-actions{
  display:flex;
  
  
  margin-left:auto;
  padding-right:44px;
}
body[data-page="home"] .portfolio-shell-body{
  gap:10px;
}
body[data-page="home"] .portfolio-shell-section{
  padding:0;
  overflow:hidden;
}
body[data-page="home"] .portfolio-shell-summary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 13px;
  cursor:pointer;
  background:rgba(255,255,255,.024);
  color:rgba(232,214,164,.90);
  font-size:.84rem;
  font-weight:700;
  text-align:left;
}
body[data-page="home"] .portfolio-shell-summary::-webkit-details-marker{ display:none; }
body[data-page="home"] .portfolio-shell-summary::before{
  content:none;
  display:none;
}
body[data-page="home"] .portfolio-shell-summary .settings-section-heading-main{
  flex:1 1 auto;
  justify-content:flex-start;
  text-align:left;
}
body[data-page="home"] .portfolio-shell-summary .settings-section-heading-main h3{
  margin:0;
  color:rgba(232,214,164,.90);
  text-shadow:0 0 16px rgba(232,214,164,.08);
}
body[data-page="home"] .portfolio-shell-summary > span:first-child{
  display:inline-flex;
  align-items:center;
}
body[data-page="home"] .portfolio-shell-summary__meta{
  margin-left:0;
  min-width:0;
  color:var(--text-2);
  font-size:.76rem;
  text-align:right;
}
body[data-page="home"] .portfolio-shell-summary__toggle{
  flex:0 0 auto;
  margin-left:auto;
}
body[data-page="home"] .portfolio-shell-section:not([open]) .portfolio-shell-summary__toggle span{
  transform:rotate(-90deg);
}
body[data-page="home"] .portfolio-shell-section__body{
  display:grid;
  gap:10px;
  padding:12px;
  border-top:1px solid rgba(255,255,255,.06);
}
body[data-page="home"] .portfolio-metrics-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:8px;
}
body[data-page="home"] .portfolio-metric{
  display:grid;
  gap:4px;
  padding:10px 11px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(10,17,28,.42), rgba(255,255,255,.03));
}
body[data-page="home"] .portfolio-metric span{
  font-size:.72rem;
  color:var(--text-2);
  text-transform:uppercase;
  letter-spacing:.08em;
}
body[data-page="home"] .portfolio-metric strong{
  font-size:.96rem;
  color:var(--text-1);
}
body[data-page="home"] .portfolio-metric.is-up strong{ color:#b9f5cf; }
body[data-page="home"] .portfolio-metric.is-down strong{ color:#ffd0d0; }
body[data-page="home"] .portfolio-curve-panel{
  min-height:132px;
  border-radius:16px;
  padding:8px;
  border:1px solid rgba(146,179,255,.14);
  background:radial-gradient(circle at 20% 10%, rgba(79,163,255,.12), transparent 44%), rgba(6,14,28,.56);
}
body[data-page="home"] .portfolio-curve-svg{ width:100%; height:132px; display:block; }
body[data-page="home"] .portfolio-curve-grid{ fill:none; stroke:rgba(255,255,255,.10); stroke-width:1; }
body[data-page="home"] .portfolio-curve-fill{ fill:url(#portfolioCurveFill); }
body[data-page="home"] .portfolio-curve-line{ fill:none; stroke:url(#portfolioCurveStroke); stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
body[data-page="home"] .portfolio-curve-dot{ fill:#dbeafe; stroke:rgba(147,197,253,.38); stroke-width:4; }
body[data-page="home"] .portfolio-ticket-card,
body[data-page="home"] .portfolio-subpanel,
body[data-page="home"] .portfolio-pos-row{
  display:grid;
  gap:10px;
  padding:11px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(10,17,28,.38);
}
body[data-page="home"] .portfolio-ticket-head,
body[data-page="home"] .portfolio-pos-row__head,
body[data-page="home"] .portfolio-ticket-foot{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
body[data-page="home"] .portfolio-ticket-price,
body[data-page="home"] .portfolio-pos-row__value{
  font-size:.92rem;
  font-weight:700;
  color:var(--text-1);
  white-space:nowrap;
}
body[data-page="home"] .portfolio-ticket-input{
  display:grid;
  gap:6px;
}
body[data-page="home"] .portfolio-ticket-input span{
  font-size:.75rem;
  color:var(--text-2);
  text-transform:uppercase;
  letter-spacing:.08em;
}
body[data-page="home"] .portfolio-ticket-input input{
  width:100%;
  min-height:40px;
  padding:0 12px;
  border-radius:12px;
  border:1px solid rgba(146,179,255,.18);
  background:rgba(6,14,28,.72);
  color:var(--text-1);
  font:inherit;
}
body[data-page="home"] .portfolio-ticket-input input:focus{
  outline:none;
  border-color:rgba(146,179,255,.34);
  box-shadow:0 0 0 3px rgba(146,179,255,.12);
}
body[data-page="home"] .portfolio-ticket-exec{
  min-height:34px;
  padding-inline:14px;
}
body[data-page="home"] .portfolio-status{
  min-height:18px;
  align-self:center;
  justify-self:end;
  font-size:.74rem;
  color:var(--text-3);
}
body[data-page="home"] .portfolio-status.is-ok{ color:#c8f7d8; }
body[data-page="home"] .portfolio-status.is-error{ color:#ffd6d6; }
body[data-page="home"] .portfolio-status.is-note{ color:var(--text-2); }
body[data-page="home"] .portfolio-universe-row{ gap:8px; }
body[data-page="home"] .portfolio-universe-row.is-selected{
  border-color:rgba(79,163,255,.26);
  background:rgba(79,163,255,.08);
}
body[data-page="home"] .portfolio-universe-row__actions{ justify-content:flex-end; }
body[data-page="home"] .portfolio-pos-grid,
body[data-page="home"] .portfolio-history-head,
body[data-page="home"] .portfolio-history-row{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:8px;
  font-size:.74rem;
  color:var(--text-2);
}
body[data-page="home"] .portfolio-history-head,
body[data-page="home"] .portfolio-history-row{
  grid-template-columns:1.15fr 1.5fr .95fr .95fr .95fr;
}
body[data-page="home"] .portfolio-pos-grid b{ color:var(--text-3); font-weight:600; margin-right:4px; }
body[data-page="home"] .portfolio-pos-row__actions{ justify-content:flex-end; }
body[data-page="home"] .portfolio-performance-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}
body[data-page="home"] .portfolio-subpanel h3{
  margin:0;
  font-size:.82rem;
  color:rgba(232,214,164,.90);
  text-shadow:0 0 16px rgba(232,214,164,.08);
}
body[data-page="home"] .portfolio-alloc-row,
body[data-page="home"] .portfolio-leader-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:7px 0;
  border-bottom:1px solid rgba(255,255,255,.05);
  font-size:.78rem;
}
body[data-page="home"] .portfolio-alloc-row:last-child,
body[data-page="home"] .portfolio-leader-row:last-child{ border-bottom:0; }
body[data-page="home"] .portfolio-leader-row strong.is-up{ color:#c8f7d8; }
body[data-page="home"] .portfolio-leader-row strong.is-down{ color:#ffd6d6; }
body[data-page="home"] .portfolio-history-list{ display:grid; gap:8px; }
body[data-page="home"] .portfolio-launch-btn{
  color:#dff3d4;
  border-color:rgba(163,215,140,.22);
  background:rgba(163,215,140,.06);
}
body[data-page="home"] .portfolio-launch-btn:hover{
  background:rgba(163,215,140,.12);
  border-color:rgba(163,215,140,.34);
}
body[data-page="home"] .portfolio-icon{
  font-size:1rem;
  font-weight:700;
  line-height:1;
}
@media (max-width:760px){
  body[data-page="home"] .mobile-bottom-dock .header-actions .portfolio-launch-btn{ order:-3; }
  body[data-page="home"] .mobile-bottom-dock .header-actions .book-launch-btn{ order:-2; }
  body[data-page="home"] .mobile-bottom-dock .header-actions .settings-launch-btn{ order:-1; }
  body[data-page="home"] .portfolio-shell-card{
    top:max(12px, calc(env(safe-area-inset-top, 0px) + 12px));
    left:max(12px, calc(env(safe-area-inset-left, 0px) + 12px));
    right:max(12px, calc(env(safe-area-inset-right, 0px) + 12px));
    bottom:max(12px, calc(env(safe-area-inset-bottom, 0px) + 12px));
    width:auto;
    max-height:none;
    border-radius:22px;
  }
  body[data-page="home"] .portfolio-shell-head-actions{ padding-right:0; }
  body[data-page="home"] .portfolio-metrics-grid,
  body[data-page="home"] .portfolio-performance-grid,
  body[data-page="home"] .portfolio-pos-grid,
  body[data-page="home"] .portfolio-history-head,
  body[data-page="home"] .portfolio-history-row{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  body[data-page="home"] .portfolio-shell-summary{ padding:11px 12px; }
  body[data-page="home"] .portfolio-shell-section__body{ padding:10px; }
  body[data-page="home"] .portfolio-ticket-head,
  body[data-page="home"] .portfolio-pos-row__head,
  body[data-page="home"] .portfolio-ticket-foot{ flex-direction:column; align-items:flex-start; }
  body[data-page="home"] .portfolio-status{ justify-self:start; }
}
body[data-page="home"] .settings-section-controls{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-left:auto;
}
body[data-page="home"] .settings-section-toggle{
  flex:0 0 auto;
  appearance:none;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:var(--text);
  border-radius:999px;
  width:32px;
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:background .18s ease, border-color .18s ease, transform .18s ease;
}
body[data-page="home"] .settings-section-toggle:hover{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.16);
}
body[data-page="home"] .settings-section-toggle span{
  display:block;
  line-height:1;
  transition:transform .18s ease;
}
body[data-page="home"] .settings-shell-section[data-expanded="false"]{
  gap:0;
}
body[data-page="home"] .settings-shell-section[data-expanded="false"] > :not(.settings-section-heading){
  display:none;
}
body[data-page="home"] .settings-shell-section[data-expanded="false"] .settings-section-toggle span{
  transform:rotate(-90deg);
}
@media (max-width:760px){
  body[data-page="home"] .settings-section-heading-row{
    align-items:flex-start;
  }
  body[data-page="home"] .settings-section-controls{
    width:100%;
    justify-content:space-between;
    margin-left:0;
  }
}


body[data-page="home"] .settings-section-heading-row[data-settings-heading-toggle]{
  cursor:pointer;
}
body[data-page="home"] .settings-section-heading-row[data-settings-heading-toggle]:focus-visible{
  outline:1px solid rgba(132,181,255,.55);
  outline-offset:4px;
  border-radius:14px;
}
body[data-page="home"] .settings-pin-change-form{
  display:grid;
  gap:8px;
}
body[data-page="home"] .settings-pin-change-form__label{
  font-size:.76rem;
  color:var(--text-2);
}
body[data-page="home"] .settings-pin-change-form__input{
  width:min(180px, 100%);
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(6,12,18,.86);
  color:var(--text);
  font:inherit;
  letter-spacing:.18em;
}
body[data-page="home"] .settings-pin-change-form__input:focus{
  outline:none;
  border-color:rgba(132,181,255,.42);
  box-shadow:0 0 0 3px rgba(79,163,255,.16);
}
body[data-page="home"] .settings-inline-note--pin-change.is-pending{
  opacity:.82;
}
body[data-page="home"] .settings-inline-note--pin-status.is-error{
  color:#ffd7d7;
}
body[data-page="home"] .settings-inline-note--pin-status.is-ok{
  color:#dff8e8;
}
@media (max-width:760px){
  body[data-page="home"] .settings-pin-change-form__input{
    width:100%;
  }
}

@media (max-width: 820px){
  body[data-page="home"] .book-reader-shell-card{
    width:min(calc(100vw - 8px), 100vw);
    height:min(calc(100vh - 8px), 100vh);
  }
  body[data-page="home"] .book-reader-shell-frame{
    min-height:calc(100vh - 164px);
  }
}


body[data-page="home"] .settings-inline-note--pin-status{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.024);
}
body[data-page="home"] .settings-inline-note__label{
  font-size:.72rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--text-2);
  white-space:nowrap;
}
body[data-page="home"] .settings-inline-note--pin-status.is-note{
  color:var(--text);
}
@media (max-width:760px){
  body[data-page="home"] .settings-inline-note--pin-status{
    flex-direction:column;
  }
}


/* Settings cleanup pass 1 */
body[data-page="home"] .settings-shell-card{
  width:min(720px, calc(100vw - 56px));
}
body[data-page="home"] .settings-shell-header{
  padding:22px 22px 16px;
}
body[data-page="home"] .settings-shell-header h2{
  font-size:1.58rem;
  line-height:1.04;
}
body[data-page="home"] .settings-shell-body{
  gap:14px;
  padding:16px 18px 20px;
}
body[data-page="home"] .settings-shell-section{
  gap:12px;
  padding:15px 16px;
  border-radius:18px;
  border-color:rgba(255,255,255,.07);
  background:rgba(255,255,255,.035);
}
body[data-page="home"] .settings-manager-block{
  padding:12px;
  border-radius:15px;
  background:rgba(7,14,28,.2);
}
body[data-page="home"] .settings-mini-btn{
  min-height:36px;
  padding:7px 14px;
  font-size:.82rem;
  font-weight:500;
  line-height:1.15;
}
body[data-page="home"] .settings-shell-close{
  width:42px;
  min-width:42px;
  height:42px;
}
body[data-page="home"] .settings-profile-card{
  display:grid;
  
  padding:2px 0 0;
  border:0;
  background:transparent;
}
body[data-page="home"] .settings-profile-card__hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  
  
  border-bottom:1px solid rgba(255,255,255,.08);
}
body[data-page="home"] .settings-profile-card__hero-copy{
  min-width:0;
  display:grid;
  gap:8px;
}
body[data-page="home"] .settings-profile-card__name{
  font-size:1.28rem;
  font-weight:600;
  letter-spacing:-.01em;
}
body[data-page="home"] .settings-profile-card__summary{
  margin:0;
  max-width:46ch;
  
  
  color:var(--text-2);
}
body[data-page="home"] .settings-profile-card__sync-wrap{
  display:grid;
  
  justify-items:end;
  align-self:start;
}
body[data-page="home"] .settings-profile-card__sync-label{
  
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--text-2);
}
body[data-page="home"] .settings-profile-card__grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  
}
body[data-page="home"] .settings-profile-zone{
  display:grid;
  
  min-width:0;
  
  
  border:1px solid rgba(255,255,255,.06);
  
}
body[data-page="home"] .settings-profile-zone--sync,
body[data-page="home"] .settings-profile-zone--preferences{
  grid-column:1 / -1;
}
body[data-page="home"] .settings-profile-zone__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
body[data-page="home"] .settings-profile-zone__title{
  margin:0;
  
  
  text-transform:uppercase;
  color:rgba(214,227,238,.68);
}
body[data-page="home"] .settings-profile-zone__hint{
  margin:0;
  
  line-height:1.55;
  color:var(--text-2);
}
body[data-page="home"] .settings-profile-facts{
  display:grid;
  
}
body[data-page="home"] .settings-profile-fact{
  display:grid;
  
  
  border-bottom:1px solid rgba(255,255,255,.06);
}
body[data-page="home"] .settings-profile-fact:first-child{
  padding-top:0;
}
body[data-page="home"] .settings-profile-fact:last-child{
  padding-bottom:0;
  border-bottom:0;
}
body[data-page="home"] .settings-profile-fact__label{
  font-size:.72rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--text-2);
}
body[data-page="home"] .settings-profile-fact__value{
  min-width:0;
  overflow-wrap:anywhere;
  
  font-weight:600;
  color:var(--text);
}
body[data-page="home"] .settings-profile-fact.is-masked .settings-profile-fact__value{
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
  letter-spacing:.12em;
}
body[data-page="home"] .settings-mini-actions--profile{
  gap:8px;
}
body[data-page="home"] .settings-mini-actions--profile-inline{
  margin-top:2px;
}
body[data-page="home"] .settings-profile-motion{
  padding:0;
  border:0;
  background:transparent;
}
body[data-page="home"] .settings-profile-motion__head{
  display:grid;
  gap:4px;
}
body[data-page="home"] .settings-profile-motion__title{
  margin:0;
  font-size:.94rem;
  font-weight:600;
  color:var(--text);
}
body[data-page="home"] .settings-profile-motion__note{
  margin:0;
  font-size:.8rem;
  line-height:1.45;
  color:var(--text-2);
}
body[data-page="home"] .settings-profile-motion__rows{
  display:grid;
  gap:12px;
}
body[data-page="home"] .settings-profile-motion__row{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:center;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}
body[data-page="home"] .settings-profile-motion__row:first-child{
  padding-top:0;
}
body[data-page="home"] .settings-profile-motion__row:last-child{
  padding-bottom:0;
  border-bottom:0;
}
body[data-page="home"] .settings-profile-motion__label{
  font-size:.9rem;
  font-weight:600;
  color:var(--text);
}
body[data-page="home"] .settings-mini-actions--motion{
  align-items:center;
  gap:10px;
  flex-wrap:nowrap;
}
body[data-page="home"] .settings-mini-actions--motion .settings-mini-btn{
  width:34px;
  min-width:34px;
  padding-inline:0;
  justify-content:center;
}
body[data-page="home"] .settings-profile-motion__value{
  min-width:112px;
  text-align:center;
  font-size:.84rem;
  color:var(--text-2);
}
body[data-page="home"] .settings-inline-note--profile{
  padding:12px 14px;
  border-radius:14px;
}
body[data-page="home"] .settings-inline-note--pin-status{
  align-items:center;
}
body[data-page="home"] .settings-build-chip{
  display:inline-flex;
  align-items:center;
  max-width:100%;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  font-size:.72rem;
  color:var(--text-2);
}
body[data-page="home"] .settings-profile-card__footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  
}
body[data-page="home"] .settings-profile-reset-btn{
  margin-left:auto;
}
@media (max-width:760px){
      body[data-page="home"] .settings-shell-header h2{
    font-size:1.38rem;
  }
      body[data-page="home"] .settings-mini-btn{
    min-height:38px;
  }
  body[data-page="home"] .settings-profile-card__hero{
    flex-direction:column;
    align-items:flex-start;
  }
  body[data-page="home"] .settings-profile-card__sync-wrap{
    justify-items:start;
  }
  body[data-page="home"] .settings-profile-card__grid{
    grid-template-columns:1fr;
  }
  body[data-page="home"] .settings-profile-zone--sync,
  body[data-page="home"] .settings-profile-zone--preferences{
    grid-column:auto;
  }
  body[data-page="home"] .settings-profile-motion__row{
    grid-template-columns:1fr;
  }
  body[data-page="home"] .settings-mini-actions--motion{
    width:100%;
    justify-content:space-between;
  }
  body[data-page="home"] .settings-profile-motion__value{
    flex:1 1 auto;
    min-width:0;
  }
  body[data-page="home"] .settings-profile-card__footer{
    flex-direction:column;
    align-items:stretch;
  }
  body[data-page="home"] .settings-profile-reset-btn{
    width:100%;
    margin-left:0;
  }
}

/* Settings cleanup pass 2 */
body[data-page="home"] .settings-shell-section[data-settings-section="user"]{
  padding-block:12px;
}

body[data-page="home"] .settings-shell-section[data-settings-section="manager"]{
  gap:10px;
}
body[data-page="home"] .settings-shell-section[data-settings-section="manager"][data-expanded="false"]{
  padding-bottom:12px;
}
body[data-page="home"] .settings-shell-section[data-settings-section="discovery"]{
  padding-block:12px;
}
body[data-page="home"] .settings-shell-section[data-settings-section="discovery"] [data-settings-discovery]{
  display:none !important;
}
body[data-page="home"] .settings-section-heading-row{
  gap:14px;
}
body[data-page="home"] .settings-section-heading-main h3{
  font-size:1.02rem;
}
body[data-page="home"] .settings-section-controls{
  gap:10px;
}
body[data-page="home"] .settings-group-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
body[data-page="home"] .settings-search-row{
  margin-top:2px;
}
body[data-page="home"] .settings-manager-block{
  gap:10px;
  padding:11px 12px;
}
body[data-page="home"] .settings-manager-block__title-row{
  gap:12px;
}
body[data-page="home"] .settings-manager-block__title{
  font-size:.79rem;
  letter-spacing:.09em;
}
body[data-page="home"] .settings-favorite-row{
  
  align-items:center;
  gap:14px;
  padding:12px 14px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(8,15,28,.24), rgba(7,12,24,.18));
}
body[data-page="home"] .settings-favorite-row__main{
  gap:4px;
}
body[data-page="home"] .settings-favorite-row__label{
  font-size:.96rem;
  font-weight:600;
}
body[data-page="home"] .settings-ticker-row__sub{
  font-size:.8rem;
  color:var(--text-2);
}
body[data-page="home"] .settings-favorite-row__meta{
  gap:10px;
}
body[data-page="home"] .settings-favorite-row__meta .settings-ticker-row__value{
  font-size:.96rem;
}
body[data-page="home"] .settings-favorite-row > .settings-mini-actions{
  align-self:center;
  justify-content:flex-end;
  gap:8px;
}
body[data-page="home"] .settings-favorite-row > .settings-mini-actions .settings-mini-btn{
  min-height:34px;
  padding-inline:12px;
}
body[data-page="home"] .settings-ticker-row{
  padding:9px 12px;
  border-radius:14px;
}
body[data-page="home"] .settings-ticker-row__main{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:center;
  gap:10px 14px;
}
body[data-page="home"] .settings-ticker-row__label-wrap{
  min-width:0;
}
body[data-page="home"] .settings-ticker-row__meta{
  gap:10px;
}
body[data-page="home"] .settings-search__input{
  min-height:46px;
  padding-inline:16px;
  font-size:.92rem;
}
@media (max-width:760px){
  
  body[data-page="home"] .settings-favorite-row{
    
    gap:10px;
  }
  body[data-page="home"] .settings-favorite-row > .settings-mini-actions{
    justify-content:flex-start;
  }
  body[data-page="home"] .settings-ticker-row__main{
    grid-template-columns:1fr;
    align-items:flex-start;
  }
  body[data-page="home"] .settings-section-controls{
    gap:8px;
  }
  body[data-page="home"] .settings-group-actions{
    width:100%;
    justify-content:flex-start;
  }
}


/* Settings P3 polish */
body[data-page="home"] .settings-shell-user .settings-section-heading{
  gap:8px;
}
body[data-page="home"] .settings-session-row{
  
  
  border:1px solid rgba(255,255,255,.06);
  
}
body[data-page="home"] .settings-user-chip{
  flex:1 1 auto;
  justify-content:space-between;
  width:100%;
  padding:0;
  border:0;
  background:transparent;
}
body[data-page="home"] .settings-user-chip__stack{
  display:grid;
  gap:4px;
  min-width:0;
}
body[data-page="home"] .settings-user-chip__label{
  
  
  text-transform:uppercase;
}
body[data-page="home"] .settings-user-chip__value{
  
  font-weight:600;
}
body[data-page="home"] .settings-user-chip__meta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  font-size:.73rem;
  color:rgba(216,229,239,.78);
  letter-spacing:.03em;
}
body[data-page="home"] .settings-mini-btn--quiet{
  background:rgba(255,255,255,.02);
  color:var(--text-2);
}
body[data-page="home"] .settings-mini-btn--quiet:hover{
  background:rgba(255,255,255,.06);
  color:var(--text);
}
body[data-page="home"] .settings-shell-section[data-settings-section="manager"][data-expanded="false"] .settings-group-actions,
body[data-page="home"] .settings-shell-section[data-settings-section="manager"][data-expanded="false"] .settings-search-row{
  display:none;
}
body[data-page="home"] .settings-manager-collapsed{
  display:none;
  gap:8px;
  padding-top:6px;
}
body[data-page="home"] .settings-shell-section[data-settings-section="manager"][data-expanded="false"] .settings-manager-collapsed{
  display:grid;
}
body[data-page="home"] .settings-manager-collapsed__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
body[data-page="home"] .settings-section-meta--summary{
  background:rgba(79,163,255,.08);
  border-color:rgba(79,163,255,.16);
  color:#d6e9ff;
}
body[data-page="home"] .settings-manager-collapsed__hint{
  font-size:.76rem;
  color:var(--text-2);
}
body[data-page="home"] .settings-manager-collapsed__chips{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
body[data-page="home"] .settings-manager-collapsed__chip,
body[data-page="home"] .settings-manager-collapsed__empty{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.024);
  font-size:.76rem;
  color:var(--text-2);
}
body[data-page="home"] .settings-manager-collapsed__chip.is-more{
  background:rgba(79,163,255,.08);
  border-color:rgba(79,163,255,.16);
  color:#d6e9ff;
}
body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-section-heading-row{
  align-items:flex-start;
}
body[data-page="home"] .settings-favorite-row{
  grid-template-columns:minmax(0, 1fr) auto;
  gap:10px 12px;
  padding:10px 12px;
}
body[data-page="home"] .settings-favorite-row__main{
  align-items:center;
  gap:8px;
}
body[data-page="home"] .settings-favorite-row__label{
  font-size:.92rem;
}
body[data-page="home"] .settings-favorite-row__meta{
  gap:8px;
  font-size:.82rem;
}
body[data-page="home"] .settings-ticker-row__meta .settings-mini-btn{
  min-height:30px;
  padding:5px 10px;
  font-size:.72rem;
}
body[data-page="home"] .settings-ticker-row{
  padding:8px 10px;
}
body[data-page="home"] .settings-ticker-row__label{
  font-size:.86rem;
}
body[data-page="home"] .settings-ticker-row__sub{
  font-size:.77rem;
}
body[data-page="home"] .settings-ticker-row__value{
  font-size:.84rem;
}
body[data-page="home"] .settings-ticker-row__delta{
  font-size:.76rem;
}
@media (max-width:760px){
      body[data-page="home"] .settings-user-chip__meta{
    max-width:100%;
  }
  body[data-page="home"] .settings-manager-collapsed__head{
    align-items:flex-start;
  }
  body[data-page="home"] .settings-favorite-row{
    grid-template-columns:1fr;
    gap:8px;
  }
}


/* Settings fine-polish + shared cache hygiene pass */
body[data-page="home"] .settings-shell-section[data-settings-section="user"]{
  padding:9px 11px 11px;
}
body[data-page="home"] .settings-session-row{
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:center;
  gap:10px;
  padding:9px 11px;
  border-radius:15px;
  background:linear-gradient(180deg, rgba(255,255,255,.042), rgba(255,255,255,.022));
}
body[data-page="home"] .settings-user-chip{
  gap:10px;
}
body[data-page="home"] .settings-user-chip__label{
  font-size:.7rem;
  letter-spacing:.1em;
}
body[data-page="home"] .settings-user-chip__value{
  font-size:.98rem;
}
body[data-page="home"] .settings-mini-btn--quiet{
  min-height:32px;
  padding:5px 11px;
  border-color:rgba(255,255,255,.07);
  background:rgba(255,255,255,.015);
}
body[data-page="home"] .settings-profile-card{
  gap:14px;
}
body[data-page="home"] .settings-profile-card__hero{
  gap:14px;
  padding-bottom:11px;
}
body[data-page="home"] .settings-profile-card__summary{
  font-size:.84rem;
  line-height:1.5;
}
body[data-page="home"] .settings-profile-card__sync-wrap{
  gap:6px;
}
body[data-page="home"] .settings-profile-card__sync-label{
  font-size:.69rem;
}
body[data-page="home"] .settings-profile-card__grid{
  gap:10px;
}
body[data-page="home"] .settings-profile-zone{
  gap:9px;
  padding:12px 13px;
  border-radius:15px;
  border-color:rgba(255,255,255,.055);
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.016));
}
body[data-page="home"] .settings-profile-zone__title{
  font-size:.74rem;
  letter-spacing:.11em;
}
body[data-page="home"] .settings-profile-zone__hint{
  font-size:.81rem;
}
body[data-page="home"] .settings-profile-facts{
  gap:8px;
}
body[data-page="home"] .settings-profile-fact{
  gap:3px;
  padding:9px 0;
}
body[data-page="home"] .settings-profile-fact__value{
  font-size:.96rem;
}
body[data-page="home"] .settings-mini-actions--profile-sync .settings-mini-btn.is-active,
body[data-page="home"] .settings-profile-reset-btn{
  min-width:110px;
}
body[data-page="home"] .settings-build-chip{
  padding:5px 9px;
  font-size:.69rem;
  color:rgba(208,222,233,.72);
  background:rgba(255,255,255,.024);
}
body[data-page="home"] .settings-profile-card__footer{
  padding-top:4px;
  border-top:1px solid rgba(255,255,255,.05);
}
@media (max-width:760px){
  body[data-page="home"] .settings-session-row{
    grid-template-columns:1fr;
    align-items:flex-start;
  }
  body[data-page="home"] .settings-mini-btn--quiet{
    align-self:flex-start;
  }
  body[data-page="home"] .settings-profile-card__hero{
    padding-bottom:10px;
  }
  body[data-page="home"] .settings-profile-zone{
    padding:11px 12px;
  }
}

/* RSS overlay launch + essential base hooks
   r9053: visual shell/list/universe styling now lives in the later RO owner blocks. */
body[data-page="home"] .rss-launch-btn{
  color:#d8f0ff;
  border-color:rgba(110,198,255,.24);
  background:rgba(110,198,255,.06);
}
body[data-page="home"] .rss-launch-btn:hover{
  background:rgba(110,198,255,.14);
  border-color:rgba(110,198,255,.36);
}
body[data-page="home"] .rss-icon{display:inline-flex;align-items:center;justify-content:center}
body[data-page="home"] .rss-icon-svg{width:18px;height:18px;display:block}
body[data-page="home"] .rss-shell-layer{position:fixed;inset:0;z-index:580}
@media (max-width:760px){
  body[data-page="home"] .mobile-bottom-dock .header-actions .rss-launch-btn{order:-4}
}
body[data-page="home"] .rss-shell-status__warn{width:100%;font-size:.78rem;line-height:1.5;color:#ffd8bf}
body[data-page="home"] .rss-filter__label{font-size:.73rem;letter-spacing:.08em;text-transform:uppercase;color:var(--text-2)}
body[data-page="home"] .rss-item__link:hover{color:#e8f6ff}
body[data-page="home"] .rss-pill.is-alert{border-color:rgba(255,156,156,.18);color:#ffd1d1}
body[data-page="home"] .rss-pill.is-ok{border-color:rgba(143,227,179,.2);color:#d8f9e4}
body[data-page="home"] .rss-empty-card, body[data-page="home"] .rss-placeholder-card{padding:14px 16px;border-radius:16px;border:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.024);color:var(--text-2);line-height:1.6}
body[data-page="home"] .rss-universe-group summary::-webkit-details-marker{display:none}
body[data-page="home"] .rss-universe-row__state{white-space:nowrap}
body[data-page="home"] .rss-universe-row__hint{font-size:.74rem;line-height:1.45;color:var(--text-2)}

/* RSS overlay visual + right-edge safety pass 2026-04-24
   Scope: RSS overlay only. Purpose: premium reformatting, overflow containment, and no right-edge clipping. */
body[data-page="home"] .rss-shell-layer,
body[data-page="home"] .rss-shell-layer *{
  box-sizing:border-box;
}
body[data-page="home"] .rss-shell-layer{
  overflow:hidden;
}
body[data-page="home"] .rss-shell-card{
  left:clamp(14px, 3vw, 34px) !important;
  right:clamp(14px, 3vw, 34px) !important;
  width:auto !important;
  max-width:1040px;
  margin-inline:auto !important;
  border-radius:28px;
  border-color:rgba(214,229,248,.13);
  background:
    radial-gradient(circle at 18% 0%, rgba(110,198,255,.10), transparent 34%),
    radial-gradient(circle at 82% 10%, rgba(255,204,128,.052), transparent 30%),
    linear-gradient(180deg, rgba(22,35,50,.87), rgba(8,14,24,.81));
  box-shadow:0 30px 82px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.052);
  backdrop-filter:blur(13px) saturate(1.08);
  overflow:hidden;
}
body[data-page="home"] .rss-shell-scroll{
  overflow-x:hidden !important;
  overflow-y:auto;
  scrollbar-gutter:auto;
}
body[data-page="home"] .rss-shell-header{
  padding:24px 28px 17px;
  border-bottom-color:rgba(159,202,255,.12);
  background:linear-gradient(180deg, rgba(30,47,67,.92), rgba(18,31,46,.82));
}
body[data-page="home"] .rss-shell-header h2{
  letter-spacing:-.025em;
}
body[data-page="home"] .rss-shell-body{
  gap:14px;
  padding:16px 20px 22px;
  min-width:0;
  max-width:100%;
  overflow-x:hidden;
}
body[data-page="home"] .rss-shell-body > *,
body[data-page="home"] .rss-feed-list,
body[data-page="home"] .rss-universe-groups,
body[data-page="home"] .rss-control-panel{
  min-width:0;
  max-width:100%;
}
body[data-page="home"] .rss-shell-status{
  display:grid;
  gap:11px;
  padding:13px 14px 14px;
  border-radius:20px;
  border-color:rgba(159,202,255,.13);
  background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
body[data-page="home"] .rss-shell-status__topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:.73rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(213,229,242,.66);
}
body[data-page="home"] .rss-shell-status__grid{
  display:grid;
  grid-template-columns:repeat(6, minmax(0, 1fr));
  gap:8px;
  width:100%;
}
body[data-page="home"] .rss-stat-card{
  min-width:0;
  display:grid;
  gap:3px;
  align-content:center;
  min-height:58px;
  padding:10px 9px;
  border-radius:15px;
  border:1px solid rgba(255,255,255,.075);
  background:rgba(6,12,22,.42);
  text-align:center;
}
body[data-page="home"] .rss-stat-card__value{
  display:block;
  min-width:0;
  font-size:1.05rem;
  line-height:1;
  font-weight:750;
  color:#f0f8ff;
  overflow:hidden;
  text-overflow:ellipsis;
}
body[data-page="home"] .rss-stat-card__label{
  display:block;
  min-width:0;
  font-size:.66rem;
  line-height:1.15;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:rgba(207,223,236,.68);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body[data-page="home"] .rss-stat-card.is-ok{border-color:rgba(143,227,179,.20);background:rgba(74,139,99,.10)}
body[data-page="home"] .rss-stat-card.is-alert{border-color:rgba(255,156,156,.22);background:rgba(143,51,51,.12)}
body[data-page="home"] .rss-stat-card.is-accent{border-color:rgba(110,198,255,.20);background:rgba(62,137,194,.12)}
body[data-page="home"] .rss-stat-card.is-muted{opacity:.76}
body[data-page="home"] .rss-tab-row{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:8px;
  padding:4px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:18px;
  background:rgba(5,10,18,.34);
}
body[data-page="home"] .rss-tab-btn{
  min-width:0;
  justify-content:center;
  min-height:38px;
  border-radius:14px;
  padding:8px 10px;
  font-size:.8rem;
  color:rgba(224,237,248,.78);
}
body[data-page="home"] .rss-tab-btn.is-active{
  background:linear-gradient(180deg, rgba(110,198,255,.20), rgba(110,198,255,.10));
  border-color:rgba(110,198,255,.34);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
body[data-page="home"] .rss-control-panel{
  display:grid;
  gap:10px;
  padding:13px 14px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:18px;
  background:rgba(255,255,255,.025);
}
body[data-page="home"] .rss-filter-row{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:11px;
  min-width:0;
}
body[data-page="home"] .rss-filter,
body[data-page="home"] .rss-filter select{
  min-width:0;
  max-width:100%;
}
body[data-page="home"] .rss-filter select{
  min-height:44px;
  padding-inline:12px 34px;
  border-radius:14px;
  background:rgba(7,13,22,.86);
  overflow:hidden;
  text-overflow:ellipsis;
}
body[data-page="home"] .rss-feed-list{
  gap:12px;
}
body[data-page="home"] .rss-item{
  position:relative;
  gap:9px;
  min-width:0;
  padding:14px 15px 15px;
  border-radius:20px;
  border-color:rgba(159,202,255,.10);
  background:
    linear-gradient(90deg, rgba(110,198,255,.08), transparent 32%),
    linear-gradient(180deg, rgba(11,20,33,.70), rgba(7,13,22,.46));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
  overflow:hidden;
}
body[data-page="home"] .rss-item::before{
  content:"";
  position:absolute;
  left:0;
  top:14px;
  bottom:14px;
  width:3px;
  border-radius:999px;
  background:linear-gradient(180deg, rgba(110,198,255,.70), rgba(255,212,145,.38));
}
body[data-page="home"] .rss-item__topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}
body[data-page="home"] .rss-item__meta{
  min-width:0;
  gap:7px;
  overflow:hidden;
}
body[data-page="home"] .rss-item__meta > span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body[data-page="home"] .rss-item__source{
  max-width:260px;
  color:rgba(232,243,255,.78);
  font-weight:650;
}
body[data-page="home"] .rss-item__title{
  min-width:0;
  font-size:1.02rem;
  line-height:1.38;
}
body[data-page="home"] .rss-item__link,
body[data-page="home"] .rss-universe-row__name,
body[data-page="home"] .rss-universe-row__meta,
body[data-page="home"] .rss-universe-row__hint,
body[data-page="home"] .rss-item__summary{
  overflow-wrap:anywhere;
  word-break:normal;
}
body[data-page="home"] .rss-item__summary{
  line-height:1.55;
  color:rgba(213,226,239,.74);
}
body[data-page="home"] .rss-pill{
  flex:0 0 auto;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body[data-page="home"] .rss-empty-card,
body[data-page="home"] .rss-placeholder-card{
  max-width:100%;
  overflow-wrap:anywhere;
}
body[data-page="home"] .rss-universe-group{
  min-width:0;
  border-radius:18px;
  border-color:rgba(159,202,255,.09);
  background:rgba(255,255,255,.028);
}
body[data-page="home"] .rss-universe-group summary{
  min-width:0;
  padding:14px 15px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto 42px;
  align-items:center;
  gap:12px;
}
body[data-page="home"] .rss-universe-group summary::marker{
  content:"";
}
body[data-page="home"] .rss-universe-group summary::after{
  content:"▸";
  width:42px;
  height:42px;
  border-radius:999px;
  display:grid;
  place-items:center;
  justify-self:end;
  color:rgba(232,243,255,.92);
  border:1px solid rgba(214,229,248,.13);
  background:rgba(255,255,255,.045);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045);
  transform:rotate(0deg);
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
body[data-page="home"] .rss-universe-group[open] > summary::after{
  transform:rotate(90deg);
}
body[data-page="home"] .rss-universe-group summary > .rss-pill{
  min-width:0;
  justify-self:end;
}
body[data-page="home"] .rss-universe-group__title{
  min-width:0;
}
body[data-page="home"] .rss-universe-group__title > span:first-child,
body[data-page="home"] .rss-universe-group__meta{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
}
body[data-page="home"] .rss-universe-group__rows{
  padding:0 15px 15px;
}
body[data-page="home"] .rss-universe-row{
  min-width:0;
  padding:11px 12px;
  border-radius:14px;
  background:rgba(5,11,20,.54);
}
body[data-page="home"] .rss-universe-row__main{
  min-width:0;
}
@media (max-width:760px){
  body[data-page="home"] .rss-shell-card{
    left:max(8px, env(safe-area-inset-left, 0px) + 8px) !important;
    right:max(8px, env(safe-area-inset-right, 0px) + 8px) !important;
    top:max(8px, env(safe-area-inset-top, 0px) + 8px) !important;
    bottom:max(8px, env(safe-area-inset-bottom, 0px) + 8px) !important;
    width:auto !important;
    max-width:none;
    border-radius:22px;
  }
  body[data-page="home"] .rss-shell-header{
    padding:18px 16px 13px;
  }
  body[data-page="home"] .rss-shell-body{
    padding:12px 11px 16px;
    gap:11px;
  }
  body[data-page="home"] .rss-shell-status__grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  body[data-page="home"] .rss-tab-row{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  body[data-page="home"] .rss-filter-row{
    grid-template-columns:1fr;
  }
  body[data-page="home"] .rss-item{
    padding:13px 13px 14px;
  }
  body[data-page="home"] .rss-item__topline{
    align-items:flex-start;
    flex-direction:column;
    gap:7px;
  }
  body[data-page="home"] .rss-item__source{
    max-width:100%;
  }
  body[data-page="home"] .rss-universe-group summary{
    grid-template-columns:minmax(0,1fr) 40px;
    grid-template-areas:
      "title arrow"
      "items arrow";
    align-items:center;
    gap:8px 10px;
    padding:14px 13px;
  }
  body[data-page="home"] .rss-universe-group summary::after{
    grid-area:arrow;
    align-self:center;
    width:40px;
    height:40px;
  }
  body[data-page="home"] .rss-universe-group__title{
    grid-area:title;
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:8px;
    align-content:center;
  }
  body[data-page="home"] .rss-universe-group__title > span:first-child{
    display:block;
    overflow:visible;
    text-overflow:clip;
    white-space:normal;
    line-height:1.14;
  }
  body[data-page="home"] .rss-universe-group__meta{
    justify-self:start;
    max-width:100%;
    white-space:nowrap;
  }
  body[data-page="home"] .rss-universe-group summary > .rss-pill{
    grid-area:items;
    justify-self:start;
    max-width:100%;
    white-space:nowrap;
  }
  body[data-page="home"] .rss-universe-row{
    width:100%;
  }
}
@media (max-width:390px){
  body[data-page="home"] .rss-shell-status__grid{
    grid-template-columns:1fr;
  }
}


/* RSS Overlay — cache-first floating refresh progress */
body[data-page="home"] .rss-progress-panel{
  position:sticky;
  top:0;
  z-index:4;
  display:grid;
  gap:9px;
  padding:12px 13px;
  border-radius:18px;
  border:1px solid rgba(118,190,255,.20);
  background:
    radial-gradient(circle at 12% 18%, rgba(118,190,255,.18), transparent 34%),
    linear-gradient(135deg, rgba(11,24,40,.92), rgba(14,22,34,.82));
  box-shadow:0 18px 44px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter:blur(18px);
  max-width:100%;
  overflow:hidden;
}
body[data-page="home"] .rss-progress-panel__head,
body[data-page="home"] .rss-progress-panel__foot{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  min-width:0;
}
body[data-page="home"] .rss-progress-panel__title{
  color:rgba(240,248,255,.96);
  font-weight:750;
  letter-spacing:.01em;
  line-height:1.25;
}
body[data-page="home"] .rss-progress-panel__subtitle{
  margin-top:3px;
  color:rgba(214,228,240,.76);
  font-size:.80rem;
  line-height:1.35;
  overflow-wrap:anywhere;
}
body[data-page="home"] .rss-progress-panel__count{
  flex:0 0 auto;
  max-width:42%;
  color:rgba(255,226,171,.94);
  font-size:.78rem;
  font-weight:700;
  line-height:1.35;
  text-align:right;
}
body[data-page="home"] .rss-progress-panel__bar{
  position:relative;
  height:8px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,255,255,.08);
}
body[data-page="home"] .rss-progress-panel__bar span{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg, rgba(95,188,255,.92), rgba(255,213,145,.86));
  box-shadow:0 0 22px rgba(95,188,255,.30);
  transition:width .35s ease;
}
body[data-page="home"] .rss-progress-panel__foot{
  color:rgba(213,226,239,.78);
  font-size:.76rem;
  line-height:1.35;
}
body[data-page="home"] .rss-progress-panel__error{
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,140,140,.22);
  background:rgba(142,45,45,.16);
  color:#ffd1d1;
  font-size:.78rem;
  line-height:1.45;
}
@media (max-width:760px){
  body[data-page="home"] .rss-progress-panel{
    padding:11px 11px;
    border-radius:16px;
  }
  body[data-page="home"] .rss-progress-panel__head{
    flex-direction:column;
    gap:7px;
  }
  body[data-page="home"] .rss-progress-panel__count{
    max-width:100%;
    text-align:left;
  }
}

/* Settings Overlay — Ticker Discovery wording/flow cleanup */
body[data-page="home"] .settings-shell-section--discovery{
  gap:12px;
  border-color:rgba(79,163,255,.10);
  background:linear-gradient(180deg, rgba(15,25,39,.16), rgba(8,15,26,.10));
}
body[data-page="home"] .settings-section-heading-row--discovery{
  justify-content:space-between;
}
body[data-page="home"] .settings-section-heading--discovery{
  gap:8px;
}
body[data-page="home"] .indicator-discovery-card__ghost-pill.is-hide{ color:#ffd5a8; }
body[data-page="home"] .indicator-discovery-card__ghost-pill.is-like{ color:#b7f1ce; }
body[data-page="home"] .indicator-discovery-card[data-swipe-intent="hide"] .indicator-discovery-card__ghost-pill.is-hide{
  border-color:rgba(255,183,111,.36);
  background:rgba(255,183,111,.12);
}
body[data-page="home"] .indicator-discovery-card[data-swipe-intent="hide"] .indicator-discovery-card__shell{
  border-color:rgba(255,183,111,.34);
  box-shadow:0 30px 74px rgba(0,0,0,.48), 0 0 0 1px rgba(255,183,111,.12), inset 0 1px 0 rgba(255,255,255,.05);
}
@media (max-width:760px){
  body[data-page="home"] .settings-section-heading-row--discovery{
    align-items:flex-start;
  }
  body[data-page="home"] .settings-shell-section--discovery .settings-section-controls{
    width:100%;
    justify-content:space-between;
  }
  body[data-page="home"] .settings-shell-section--discovery .settings-mini-btn{
    max-width:100%;
    white-space:normal;
  }
}

/* RSS Overlay RO-1.1 — unclipped bottom refresh HUD + low-jank progress updates */
body[data-page="home"] .rss-progress-host{
  position:absolute;
  left:clamp(16px, 3vw, 30px);
  right:clamp(16px, 3vw, 30px);
  bottom:calc(env(safe-area-inset-bottom, 0px) + 18px);
  z-index:12;
  
  
}
body[data-page="home"] .rss-progress-host .rss-progress-panel{
  position:relative;
  top:auto;
  z-index:auto;
  max-width:min(740px, 100%);
  margin-inline:auto;
  overflow:visible;
  pointer-events:auto;
  animation:rssProgressHudIn .22s ease both;
}
body[data-page="home"] .rss-shell-card.is-rss-refreshing .rss-shell-body{
  padding-bottom:clamp(138px, 18vh, 188px);
}
@keyframes rssProgressHudIn{
  from{opacity:0;transform:translateY(10px) scale(.985)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
@media (max-width:760px){
  body[data-page="home"] .rss-progress-host{
    left:12px;
    right:12px;
    bottom:calc(env(safe-area-inset-bottom, 0px) + 12px);
  }
  body[data-page="home"] .rss-progress-host .rss-progress-panel{
    max-width:100%;
    max-height:min(34vh, 210px);
    overflow:auto;
  }
  body[data-page="home"] .rss-shell-card.is-rss-refreshing .rss-shell-body{
    padding-bottom:clamp(160px, 28vh, 230px);
  }
}


/* Override earlier sticky/in-flow progress behavior. This intentionally catches both
   the current dedicated host and any stale in-body progress markup after cache refreshes. */
body[data-page="home"] .rss-progress-host{
  position:fixed !important;
  left:clamp(22px, 7vw, 160px) !important;
  right:clamp(22px, 7vw, 160px) !important;
  bottom:calc(env(safe-area-inset-bottom, 0px) + 24px) !important;
  top:auto !important;
  z-index:1400 !important;
  display:block;
  pointer-events:none;
}
body[data-page="home"] .rss-progress-host[hidden]{
  display:none !important;
}
body[data-page="home"] .rss-shell-body > .rss-progress-panel,
body[data-page="home"] .rss-progress-host .rss-progress-panel{
  position:relative !important;
  top:auto !important;
  bottom:auto !important;
  z-index:auto !important;
  width:min(780px, 100%) !important;
  max-width:780px !important;
  margin-inline:auto !important;
  padding:14px 16px !important;
  border-radius:20px !important;
  overflow:visible !important;
  pointer-events:auto;
  background:
    radial-gradient(circle at 12% 14%, rgba(118,190,255,.26), transparent 32%),
    radial-gradient(circle at 94% 18%, rgba(255,214,154,.18), transparent 30%),
    linear-gradient(135deg, rgba(12,27,45,.97), rgba(9,17,29,.94)) !important;
  border-color:rgba(118,190,255,.30) !important;
  box-shadow:0 22px 64px rgba(0,0,0,.48), 0 0 0 1px rgba(255,255,255,.04), inset 0 1px 0 rgba(255,255,255,.10) !important;
  animation:rssProgressHudIn .22s ease both;
}
body[data-page="home"] .rss-progress-panel__bar{
  height:10px !important;
}
body[data-page="home"] .rss-shell-card.is-rss-refreshing .rss-shell-body{
  padding-bottom:clamp(146px, 20vh, 206px) !important;
}
body[data-page="home"] .rss-tab-row{
  grid-template-columns:repeat(2, minmax(0,1fr)) !important;
}

@media (max-width:760px){
  body[data-page="home"] .rss-action-btn{
    width:100%;
  }
  body[data-page="home"] .rss-progress-host{
    left:12px !important;
    right:12px !important;
    bottom:calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
  }
  body[data-page="home"] .rss-progress-host .rss-progress-panel,
  body[data-page="home"] .rss-shell-body > .rss-progress-panel{
    width:100% !important;
    max-width:100% !important;
    max-height:min(36vh, 230px);
    overflow:auto !important;
  }
  body[data-page="home"] .rss-shell-card.is-rss-refreshing .rss-shell-body{
    padding-bottom:clamp(172px, 31vh, 252px) !important;
  }
}

/* RSS Overlay RO — stable progress HUD + active refresh bar (no per-poll flashing) */
body[data-page="home"] .rss-progress-host .rss-progress-panel{
  transform:translateZ(0);
  backface-visibility:hidden;
  contain:layout paint;
}
body[data-page="home"] .rss-progress-panel__bar{
  isolation:isolate;
}
body[data-page="home"] .rss-progress-panel__bar::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(90deg, transparent 0%, rgba(255,255,255,.18) 38%, rgba(255,255,255,.28) 50%, transparent 72%);
  transform:translateX(-100%);
  animation:rssProgressSweep 1.45s linear infinite;
  pointer-events:none;
  mix-blend-mode:screen;
  opacity:.72;
}
body[data-page="home"] .rss-progress-panel__bar span{
  position:relative;
  overflow:hidden;
}
body[data-page="home"] .rss-live-dot.is-active{
  animation:rssLiveDotPulse 1.4s ease-in-out infinite;
}
@keyframes rssProgressSweep{
  0%{transform:translateX(-100%)}
  100%{transform:translateX(100%)}
}
@keyframes rssLiveDotPulse{
  0%,100%{box-shadow:0 0 0 4px rgba(123,210,255,.12), 0 0 14px rgba(123,210,255,.30)}
  50%{box-shadow:0 0 0 6px rgba(123,210,255,.18), 0 0 22px rgba(123,210,255,.50)}
}


/* RSS Overlay RO-2 — usability polish: clearer action bar, filter/search panel, cards, and empty states */
body[data-page="home"] .rss-shell-body{
  gap:13px;
}
body[data-page="home"] .rss-shell-status{
  padding:12px 13px;
  border-color:rgba(159,202,255,.11);
}
body[data-page="home"] .rss-shell-status__grid{
  grid-template-columns:repeat(6, minmax(78px, 1fr));
}
body[data-page="home"] .rss-stat-card{
  min-height:52px;
  padding:9px 8px;
  background:linear-gradient(180deg, rgba(12,24,38,.50), rgba(5,11,20,.38));
}
body[data-page="home"] .rss-action-btn{
  min-width:106px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07), 0 8px 22px rgba(0,0,0,.18);
}
body[data-page="home"] .rss-action-btn[aria-busy="true"]{
  opacity:.74;
  cursor:default;
}
body[data-page="home"] .rss-action-btn--ghost{
  min-width:0;
  background:rgba(255,255,255,.024);
  border-color:rgba(255,255,255,.11);
}
body[data-page="home"] .rss-control-panel{
  padding:14px 15px;
  border-color:rgba(137,196,255,.12);
  background:
    radial-gradient(circle at 10% 0%, rgba(110,198,255,.08), transparent 35%),
    rgba(255,255,255,.028);
}
body[data-page="home"] .rss-control-panel__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  min-width:0;
}
body[data-page="home"] .rss-control-panel__head > div:first-child{
  display:grid;
  gap:3px;
  min-width:0;
}
body[data-page="home"] .rss-control-panel__head strong{
  color:rgba(239,248,255,.94);
  font-size:.91rem;
  letter-spacing:.01em;
}
body[data-page="home"] .rss-control-panel__kicker,
body[data-page="home"] .rss-control-panel__scope{
  color:rgba(204,222,237,.66);
  font-size:.70rem;
  letter-spacing:.10em;
  line-height:1.35;
  text-transform:uppercase;
}
body[data-page="home"] .rss-control-panel__scope{
  max-width:42%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-align:right;
}
body[data-page="home"] .rss-filter-row{
  align-items:end;
}
body[data-page="home"] .rss-search-wrap{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
body[data-page="home"] .rss-search-wrap input[type="search"]{
  min-width:0;
}
body[data-page="home"] .rss-search-clear{
  flex:0 0 auto;
  min-height:36px;
  padding:0 11px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  color:rgba(232,242,250,.82);
  font:inherit;
  font-size:.78rem;
  cursor:pointer;
}
body[data-page="home"] .rss-search-clear:hover{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.16);
}
body[data-page="home"] .rss-feed-list{
  gap:11px;
}
body[data-page="home"] .rss-item{
  padding:15px 16px 16px 18px;
  border-color:rgba(159,202,255,.12);
  transition:transform .16s ease, border-color .16s ease, background .16s ease;
}
body[data-page="home"] .rss-item:hover{
  transform:translateY(-1px);
  border-color:rgba(159,202,255,.22);
  background:
    linear-gradient(90deg, rgba(110,198,255,.11), transparent 36%),
    linear-gradient(180deg, rgba(13,23,38,.78), rgba(7,13,22,.54));
}
body[data-page="home"] .rss-item__topline{
  padding-left:2px;
}
body[data-page="home"] .rss-item__source{
  color:rgba(238,247,255,.86);
}
body[data-page="home"] .rss-item__title{
  font-size:1.05rem;
  line-height:1.40;
}
body[data-page="home"] .rss-item__summary{
  max-width:92ch;
}
body[data-page="home"] .rss-empty-card--search{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
body[data-page="home"] .rss-universe-group summary{
  background:linear-gradient(90deg, rgba(110,198,255,.055), transparent 42%);
}
body[data-page="home"] .rss-universe-row{
  transition:border-color .16s ease, background .16s ease;
}
body[data-page="home"] .rss-universe-row:hover{
  border-color:rgba(159,202,255,.15);
  background:rgba(9,17,30,.68);
}
@media (max-width:920px){
  body[data-page="home"] .rss-shell-status__grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}
@media (max-width:760px){
  body[data-page="home"] .rss-control-panel__head{
    flex-direction:column;
    gap:6px;
  }
  body[data-page="home"] .rss-control-panel__scope{
    max-width:100%;
    text-align:left;
    white-space:normal;
  }
  body[data-page="home"] .rss-search-wrap{
    flex-direction:column;
    align-items:stretch;
  }
  body[data-page="home"] .rss-search-clear{
    width:100%;
  }
  body[data-page="home"] .rss-empty-card--search{
    flex-direction:column;
    align-items:flex-start;
  }
  body[data-page="home"] .rss-empty-card--search .rss-action-btn{
    width:100%;
  }
}

/* RSS Overlay mobile compact pass — source metrics + compact completion HUD */
@media (max-width:760px){
  body[data-page="home"] .rss-shell-status{
    gap:7px !important;
    padding:8px 9px 9px !important;
    border-radius:16px !important;
  }
  body[data-page="home"] .rss-shell-status__topline{
    gap:6px !important;
    flex-wrap:wrap !important;
    font-size:.61rem !important;
    letter-spacing:.055em !important;
    line-height:1.15 !important;
  }
  body[data-page="home"] .rss-shell-status__grid{
    grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
    gap:5px !important;
  }
  body[data-page="home"] .rss-stat-card{
    min-height:38px !important;
    padding:6px 5px !important;
    gap:1px !important;
    border-radius:11px !important;
  }
  body[data-page="home"] .rss-stat-card__value{
    font-size:.84rem !important;
    line-height:1 !important;
  }
  body[data-page="home"] .rss-stat-card__label{
    font-size:.52rem !important;
    line-height:1.08 !important;
    letter-spacing:.025em !important;
    white-space:normal !important;
    display:-webkit-box !important;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
  }
  body[data-page="home"] .rss-progress-host .rss-progress-panel{
    max-height:min(30vh, 178px) !important;
    padding:10px 10px 9px !important;
    border-radius:16px !important;
  }
  body[data-page="home"] .rss-progress-panel__head{
    gap:6px !important;
  }
  body[data-page="home"] .rss-progress-panel__title{
    font-size:.86rem !important;
    line-height:1.18 !important;
  }
  body[data-page="home"] .rss-progress-panel__subtitle{
    font-size:.72rem !important;
    line-height:1.25 !important;
  }
  body[data-page="home"] .rss-progress-panel__count{
    font-size:.70rem !important;
    line-height:1.2 !important;
  }
  body[data-page="home"] .rss-progress-panel__foot{
    font-size:.68rem !important;
    line-height:1.22 !important;
    gap:8px !important;
  }
  body[data-page="home"] .rss-progress-panel__bar{
    height:8px !important;
  }
  body[data-page="home"] .rss-shell-card.is-rss-refreshing .rss-shell-body{
    padding-bottom:clamp(132px, 24vh, 190px) !important;
  }
}
@media (max-width:390px){
  body[data-page="home"] .rss-shell-status__grid{
    grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  }
  body[data-page="home"] .rss-stat-card{
    min-height:36px !important;
    padding:5px 4px !important;
  }
  body[data-page="home"] .rss-stat-card__value{
    font-size:.78rem !important;
  }
  body[data-page="home"] .rss-stat-card__label{
    font-size:.49rem !important;
  }
}
body[data-page="home"] .rss-action-btn{
  flex:0 0 auto !important;
  min-height:36px !important;
  height:auto !important;
  position:relative !important;
  z-index:2 !important;
}
body[data-page="home"] .rss-control-panel{
  margin-top:0 !important;
}
@media (max-width:760px){
  body[data-page="home"] .rss-action-btn{
    width:100% !important;
    min-height:34px !important;
    padding:0 12px !important;
  }
  body[data-page="home"] .rss-tab-row{
    margin-top:0 !important;
  }
}
body[data-page="home"] .rss-ro-toolbar,
body[data-page="home"] .rss-ro-toolbar *{box-sizing:border-box;}
body[data-page="home"] .rss-ro-toolbar{
  width:100% !important; min-width:0 !important; min-height:unset !important; height:auto !important; max-height:none !important; overflow:visible !important;
  display:grid !important; grid-template-columns:minmax(0, 1fr) auto !important; align-items:center !important; gap:12px !important;
  padding:12px 14px !important; border-radius:18px !important; border:1px solid rgba(137,196,255,.16) !important;
  background:linear-gradient(90deg, rgba(110,198,255,.11), transparent 48%), linear-gradient(180deg, rgba(11,23,38,.74), rgba(6,12,22,.54)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055), 0 10px 30px rgba(0,0,0,.16) !important;
  position:relative !important; z-index:1 !important;
}
body[data-page="home"] .rss-ro-toolbar::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:999px;background:linear-gradient(180deg, rgba(112,204,255,.90), rgba(255,214,151,.48));pointer-events:none;}
body[data-page="home"] .rss-ro-toolbar__main{min-width:0 !important;display:grid !important;gap:6px !important;}
body[data-page="home"] .rss-ro-toolbar__line{min-width:0 !important;display:flex !important;align-items:center !important;gap:8px !important;flex-wrap:wrap !important;color:rgba(232,243,252,.92) !important;font-size:.84rem !important;line-height:1.35 !important;}
body[data-page="home"] .rss-ro-toolbar__line strong{font-weight:750 !important;}
body[data-page="home"] .rss-ro-toolbar__scope{min-width:0 !important;max-width:100% !important;color:rgba(196,215,231,.74) !important;overflow:hidden !important;text-overflow:ellipsis !important;white-space:nowrap !important;}
body[data-page="home"] .rss-ro-toolbar__chips{min-width:0 !important;display:flex !important;align-items:center !important;gap:7px !important;flex-wrap:wrap !important;}
body[data-page="home"] .rss-ro-toolbar__chips span{display:inline-flex !important;align-items:center !important;min-height:22px !important;max-width:100% !important;padding:3px 7px !important;border-radius:999px !important;border:1px solid rgba(255,255,255,.07) !important;background:rgba(255,255,255,.035) !important;color:rgba(196,215,231,.74) !important;font-size:.72rem !important;line-height:1.15 !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important;}
body[data-page="home"] .rss-ro-refresh-btn{appearance:none !important;align-self:center !important;justify-self:end !important;min-width:112px !important;min-height:36px !important;height:auto !important;padding:0 14px !important;border-radius:999px !important;border:1px solid rgba(118,190,255,.28) !important;background:linear-gradient(180deg, rgba(82,157,225,.26), rgba(39,83,132,.17)) !important;box-shadow:inset 0 1px 0 rgba(255,255,255,.075), 0 8px 22px rgba(0,0,0,.18) !important;color:#eaf7ff !important;font:inherit !important;font-size:.80rem !important;font-weight:750 !important;line-height:1 !important;white-space:nowrap !important;cursor:pointer !important;position:relative !important;z-index:2 !important;}
body[data-page="home"] .rss-ro-refresh-btn[aria-busy="true"]{opacity:.74 !important;cursor:default !important;}
@media (max-width:760px){
  body[data-page="home"] .rss-ro-toolbar{grid-template-columns:1fr !important;gap:9px !important;padding:11px 12px !important;border-radius:16px !important;}
  body[data-page="home"] .rss-ro-toolbar__line{font-size:.76rem !important;gap:6px !important;}
  body[data-page="home"] .rss-ro-toolbar__scope{flex-basis:100% !important;white-space:normal !important;line-height:1.25 !important;}
  body[data-page="home"] .rss-ro-toolbar__chips{display:grid !important;grid-template-columns:repeat(2, minmax(0, 1fr)) !important;gap:5px !important;}
  body[data-page="home"] .rss-ro-toolbar__chips span{min-height:20px !important;padding:3px 6px !important;font-size:.62rem !important;}
  body[data-page="home"] .rss-ro-refresh-btn{width:100% !important;min-height:36px !important;justify-self:stretch !important;padding:0 12px !important;}
}

/* Phase 6 source-feed cards and settings selector */
.settings-shell-section--source-feed .settings-section-heading-main h3{
  color:rgba(255,232,150,.96);
}
.settings-source-feed-panel{
  display:grid;
  gap:.78rem;
}
.settings-source-feed-panel__help{
  margin:.1rem 0 0;
  color:rgba(226,238,255,.76);
  font-size:.82rem;
  line-height:1.45;
}
.settings-search--source{
  width:100%;
}
.settings-source-feed-panel__block{
  display:grid;
  gap:.5rem;
  padding:.7rem;
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  background:linear-gradient(135deg, rgba(10,24,44,.46), rgba(21,42,74,.28));
}
.settings-source-feed-panel__block h4{
  margin:0;
  font-size:.78rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(255,232,150,.92);
}
.settings-source-list{
  display:grid;
  gap:.42rem;
  max-height:310px;
  overflow:auto;
  padding-right:.12rem;
}
.settings-source-list--selected{
  max-height:190px;
}
.settings-source-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:.65rem;
  align-items:center;
  padding:.56rem .62rem;
  border:1px solid rgba(255,255,255,.10);
  border-radius:15px;
  background:rgba(255,255,255,.024);
}
.settings-source-row.is-selected{
  border-color:rgba(255,220,130,.28);
  background:rgba(255,220,130,.07);
}
.settings-source-row__main{
  min-width:0;
  display:grid;
  gap:.18rem;
}
.settings-source-row__label{
  font-weight:700;
  font-size:.86rem;
  color:rgba(245,249,255,.96);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.settings-source-row__meta{
  font-size:.72rem;
  color:rgba(205,221,243,.62);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.settings-source-row__chips{
  display:flex;
  flex-wrap:wrap;
  gap:.25rem;
}
.settings-source-row__chips span{
  font-size:.64rem;
  line-height:1;
  padding:.22rem .36rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.11);
  color:rgba(221,234,255,.72);
  background:rgba(255,255,255,.024);
}

.settings-source-row.is-added .settings-mini-btn--added{
  opacity:1;
  cursor:default;
  color:rgba(232,214,164,.92);
  border-color:rgba(232,214,164,.24);
  background:rgba(232,214,164,.08);
}
/* r9126 — Ticker Discovery launches from the section heading; no redundant body pills. */
body[data-page="home"] .settings-shell-section[data-settings-section="discovery"] .settings-section-heading-row--discovery{
  cursor:pointer;
}
body[data-page="home"] .settings-shell-section[data-settings-section="discovery"] .settings-section-heading-row--discovery:hover h3,
body[data-page="home"] .settings-shell-section[data-settings-section="discovery"] .settings-section-heading-row--discovery:focus-visible h3{
  color:rgba(255,236,181,.98) !important;
}
body[data-page="home"] .settings-shell-section[data-settings-section="discovery"] .settings-section-toggle,
body[data-page="home"] .settings-shell-section[data-settings-section="discovery"] .settings-section-controls{
  display:none !important;
}
/* CCR Source Feed consolidated card and overlay styles — Phase 2 cleanup, 2026-04-26 */
body[data-page="home"] .selected-source-feed-section{
  margin-top:14px;
  margin-bottom:18px;
  padding:24px;
  gap:16px;
  border:1px solid rgba(255,255,255,.066);
  border-radius:var(--radius);
  background:linear-gradient(180deg,rgba(255,255,255,.018),rgba(255,255,255,.009));
  box-shadow:0 16px 40px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.026);
  overflow:hidden;
}
body[data-page="home"] .selected-source-feed-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  align-items:stretch;
}
body[data-page="home"] .selected-source-feed-section[data-source-feed-empty="true"] .selected-source-feed-grid{
  grid-template-columns:minmax(260px,360px);
  justify-content:center;
  align-items:center;
}
body[data-page="home"] .selected-source-feed-section[data-source-feed-empty="true"] .source-feed-add-card{
  width:100%;
  min-height:214px;
}
body[data-page="home"] .selected-source-feed-section .source-feed-card{
  position:relative;
  min-height:214px;
  display:flex;
  flex-direction:column;
  gap:.54rem;
  padding:.92rem .98rem;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.070);
  background:linear-gradient(180deg,rgba(255,255,255,.022),rgba(255,255,255,.010));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.024),0 10px 24px rgba(0,0,0,.12);
  overflow:hidden;
  transition:border-color var(--fast), box-shadow var(--fast), background var(--fast), transform var(--fast);
}
body[data-page="home"] .selected-source-feed-section .source-feed-card:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.105);
  background:linear-gradient(180deg,rgba(255,255,255,.030),rgba(255,255,255,.014));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.032),0 13px 30px rgba(0,0,0,.16);
}
body[data-page="home"] .selected-source-feed-section .source-feed-card::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:1px;
  opacity:.32;
  background:linear-gradient(180deg,rgba(232,214,164,.34),rgba(141,171,194,.06));
}
body[data-page="home"] .selected-source-feed-section .source-feed-source-card{
  padding:0;
  position:relative;
}
body[data-page="home"] .selected-source-feed-section .source-feed-source-card__button{
  width:100%;
  min-height:214px;
  display:grid;
  gap:.56rem;
  padding:1rem 5.5rem 1.05rem 1rem;
  color:inherit;
  text-align:left;
  border:0;
  background:transparent;
  cursor:pointer;
  font:inherit;
}
body[data-page="home"] .selected-source-feed-section .source-feed-source-card__button:hover,
body[data-page="home"] .selected-source-feed-section .source-feed-source-card__button:focus-visible{
  background:rgba(255,255,255,.012);
}
body[data-page="home"] .selected-source-feed-section .source-feed-source-card__button:hover h3,
body[data-page="home"] .selected-source-feed-section .source-feed-source-card__button:focus-visible h3{
  color:rgba(243,228,234,.98);
}
body[data-page="home"] .selected-source-feed-section .source-feed-source-card__button:focus-visible{
  outline:1px solid rgba(232,214,164,.42);
  outline-offset:-4px;
  border-radius:20px;
}
body[data-page="home"] .selected-source-feed-section .source-feed-card__kicker{
  display:flex;
  align-items:center;
  gap:.45rem;
  flex-wrap:wrap;
  min-width:0;
  margin-bottom:.08rem;
  font-size:.66rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(207,222,239,.66);
}
body[data-page="home"] .selected-source-feed-section .source-feed-card__kicker span{
  padding:.22rem .44rem;
  border-radius:999px;
  border:1px solid rgba(232,214,164,.10);
  color:rgba(232,214,164,.58);
  background:rgba(255,255,255,.018);
  letter-spacing:.085em;
}
body[data-page="home"] .selected-source-feed-section .source-feed-card__kicker strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:rgba(205,218,234,.60);
  font-size:.68rem;
  letter-spacing:.06em;
}
body[data-page="home"] .selected-source-feed-section .source-feed-card h3{
  margin:0;
  margin-top:.06rem;
  color:var(--ccr-card-headline-color,#e2c3cc) !important;
  filter:brightness(var(--ccr-card-headline-brightness,100%));
  opacity:var(--ccr-card-headline-opacity,1);
  font-weight:var(--ccr-card-headline-weight,600) !important;
  font-size:var(--ccr-card-headline-size,1rem) !important;
  line-height:1.24;
  letter-spacing:-.012em;
}
body[data-page="home"] .selected-source-feed-section .source-feed-card p{
  margin:0;
  color:var(--ccr-card-subtext-color,rgba(233,240,247,.70)) !important;
  filter:brightness(var(--ccr-card-subtext-brightness,100%));
  opacity:var(--ccr-card-subtext-opacity,.70);
  font-weight:var(--ccr-card-subtext-weight,500) !important;
  font-size:var(--ccr-card-subtext-size,.84rem) !important;
  line-height:1.46;
}
body[data-page="home"] .selected-source-feed-section .source-feed-card__latest{
  color:var(--ccr-card-subtext-color,rgba(226,236,247,.70)) !important;
  filter:brightness(var(--ccr-card-subtext-brightness,100%));
  opacity:var(--ccr-card-subtext-opacity,.70);
  font-weight:var(--ccr-card-subtext-weight,500) !important;
  font-size:var(--ccr-card-subtext-size,.82rem) !important;
  line-height:1.42;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
body[data-page="home"] .selected-source-feed-section .source-feed-card__meta{
  display:flex;
  flex-wrap:wrap;
  gap:.32rem;
  color:var(--ccr-card-subtext-color,rgba(226,236,247,.70)) !important;
  filter:brightness(var(--ccr-card-subtext-brightness,100%));
  opacity:var(--ccr-card-subtext-opacity,.70);
  font-weight:var(--ccr-card-subtext-weight,500) !important;
  font-size:var(--ccr-card-subtext-size,.82rem) !important;
}
body[data-page="home"] .selected-source-feed-section .source-feed-card__meta--compact{
  gap:.34rem;
  margin-top:.08rem;
}
body[data-page="home"] .selected-source-feed-section .source-feed-card__meta span{
  font-size:.67rem;
  line-height:1;
  padding:.25rem .42rem;
  border-radius:999px;
  color:rgba(220,234,255,.68);
  background:rgba(255,255,255,.024);
  border:1px solid rgba(255,255,255,.075);
}
body[data-page="home"] .selected-source-feed-section .source-feed-card__meta--compact span{
  padding:.23rem .46rem;
  color:rgba(210,224,242,.62);
  background:rgba(255,255,255,.034);
  border-color:rgba(255,255,255,.072);
  font-size:.68rem;
}
body[data-page="home"] .selected-source-feed-section .source-feed-card__meta--compact .source-feed-card__meta-primary{
  color:rgba(210,224,242,.54);
  background:rgba(255,255,255,.020);
}
body[data-page="home"] .selected-source-feed-section .source-feed-card__link{
  justify-self:start;
  margin-top:auto;
  color:rgba(232,214,164,.66);
  font-size:.78rem;
  font-weight:700;
  text-decoration:none;
}
body[data-page="home"] .selected-source-feed-section .source-feed-card__link:hover{
  color:rgba(243,228,234,.96);
  text-decoration:underline;
}
body[data-page="home"] .selected-source-feed-section .source-feed-card__link--button{
  display:inline-flex;
  align-items:center;
  gap:.3rem;
}
body[data-page="home"] .selected-source-feed-section .source-feed-remove-btn{
  position:absolute;
  top:16px;
  right:16px;
  z-index:4;
  appearance:none;
  border:1px solid rgba(226,232,240,.095);
  border-radius:999px;
  background:rgba(11,18,26,.24);
  color:rgba(215,224,234,.50);
  padding:4px 8px;
  font-size:.62rem;
  font-weight:700;
  letter-spacing:.065em;
  text-transform:uppercase;
  cursor:pointer;
  box-shadow:none;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;
}
body[data-page="home"] .selected-source-feed-section .source-feed-remove-btn:hover,
body[data-page="home"] .selected-source-feed-section .source-feed-remove-btn:focus-visible{
  background:rgba(50,24,28,.34);
  border-color:rgba(244,157,164,.20);
  color:rgba(255,218,220,.78);
  transform:translateY(-1px);
  outline:none;
}
body[data-page="home"] .source-feed-add-card{
  min-height:214px;
  display:flex;
  align-items:stretch;
  justify-content:center;
  border-style:dashed;
  border-color:rgba(180,205,235,.24);
  background:linear-gradient(145deg, rgba(10,17,29,.44), rgba(24,35,52,.30));
}
body[data-page="home"] .source-feed-add-card::before{
  opacity:.22;
}
body[data-page="home"] .source-feed-add-card__button{
  width:100%;
  min-height:100%;
  border:0;
  background:transparent;
  color:rgba(235,242,255,.84);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:9px;
  text-align:center;
  cursor:pointer;
  border-radius:inherit;
  font-family:inherit;
}
body[data-page="home"] .source-feed-add-card__plus{
  width:42px;
  height:42px;
  border-radius:999px;
  display:grid;
  place-items:center;
  font-size:1.45rem;
  line-height:1;
  color:rgba(250,219,150,.92);
  border:1px solid rgba(250,219,150,.28);
  background:rgba(250,219,150,.07);
  box-shadow:0 16px 34px rgba(0,0,0,.18);
}
body[data-page="home"] .source-feed-add-card__button strong{
  font-size:.96rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body[data-page="home"] .source-feed-add-card__button em{
  max-width:220px;
  font-style:normal;
  color:rgba(203,216,235,.58);
  font-size:.78rem;
  line-height:1.45;
}
body[data-page="home"] .source-feed-add-card__button:hover .source-feed-add-card__plus,
body[data-page="home"] .source-feed-add-card__button:focus-visible .source-feed-add-card__plus{
  transform:translateY(-1px);
  color:rgba(255,236,188,.98);
  border-color:rgba(250,219,150,.46);
  background:rgba(250,219,150,.12);
}
.source-feed-empty{
  padding:1rem;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  color:rgba(226,238,255,.72);
  background:rgba(255,255,255,.035);
}
.source-feed-overlay-open{
  overflow:hidden;
}
.source-feed-overlay-layer{
  position:fixed;
  inset:0;
  z-index:95;
  display:grid;
  place-items:center;
  padding:clamp(14px,3vw,34px);
}
.source-feed-overlay-layer[hidden]{
  display:none;
}
.source-feed-overlay-backdrop{
  position:absolute;
  inset:0;
  background:rgba(5,10,18,.42);
  backdrop-filter:blur(9px) saturate(1.08);
}
.source-feed-overlay-card{
  position:relative;
  width:min(920px,100%);
  max-height:min(82vh,860px);
  display:grid;
  border-radius:var(--radius);
  border:1px solid rgba(214,229,248,.13);
  background:
    radial-gradient(circle at 18% 0%, rgba(124,160,205,.075), transparent 34%),
    linear-gradient(180deg, rgba(24,36,50,.86), rgba(8,14,23,.80));
  box-shadow:0 30px 82px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.052);
  backdrop-filter:blur(13px) saturate(1.08);
  overflow:hidden;
}
.source-feed-overlay-close{
  position:absolute;
  top:12px;
  right:12px;
  z-index:2;
  background:rgba(255,255,255,.024);
  border-color:rgba(255,255,255,.10);
}
.source-feed-overlay-scroll{
  max-height:min(82vh,860px);
  overflow:auto;
  padding:1.3rem;
}
.source-feed-overlay-header{
  display:grid;
  gap:.38rem;
  padding:0 2.8rem 1rem 0;
  border-bottom:1px solid rgba(255,255,255,.085);
  margin-bottom:1rem;
}
.source-feed-overlay-header p{
  margin:0;
  color:rgba(232,214,164,.78);
  font-size:.70rem;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.source-feed-overlay-header h2{
  margin:0;
  color:rgba(243,228,234,.96);
  font-size:clamp(1.25rem,2.6vw,1.85rem);
  line-height:1.12;
}
.source-feed-overlay-meta{
  display:flex;
  flex-wrap:wrap;
  gap:.35rem;
}
.source-feed-overlay-meta span{
  padding:.25rem .48rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.085);
  color:rgba(220,234,255,.68);
  background:rgba(255,255,255,.024);
  font-size:.7rem;
}
.source-feed-overlay-list{
  display:grid;
  gap:.72rem;
}
.source-feed-overlay-item{
  display:grid;
  gap:.34rem;
  padding:.86rem .9rem;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.085);
  background:linear-gradient(180deg,rgba(255,255,255,.032),rgba(255,255,255,.018));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}
.source-feed-overlay-item__meta{
  display:flex;
  flex-wrap:wrap;
  gap:.28rem;
  color:rgba(205,221,243,.62);
  font-size:.68rem;
}
.source-feed-overlay-item h4{
  margin:0;
  color:rgba(243,228,234,.94);
  font-size:.96rem;
  line-height:1.32;
}
.source-feed-overlay-item h4 a{
  color:inherit;
  text-decoration:none;
}
.source-feed-overlay-item h4 a:hover{
  color:rgba(243,228,234,.98);
}
.source-feed-overlay-item p{
  margin:0;
  color:rgba(233,240,247,.70);
  font-size:.82rem;
  line-height:1.45;
}
.source-feed-overlay-item__link{
  justify-self:start;
  color:rgba(232,214,164,.84);
  font-size:.78rem;
  font-weight:800;
  text-decoration:none;
}
.source-feed-overlay-item__link:hover{
  color:rgba(243,228,234,.96);
  text-decoration:underline;
}
.rss-universe-row__state{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:.45rem;
  flex-wrap:wrap;
}
.rss-create-source-btn{
  border:1px solid rgba(255,224,145,.36);
  border-radius:999px;
  padding:.34rem .58rem;
  color:rgba(255,232,160,.98);
  background:rgba(255,216,119,.10);
  font-size:.68rem;
  line-height:1;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  cursor:pointer;
  white-space:nowrap;
}
.rss-create-source-btn:hover,
.rss-create-source-btn:focus-visible{
  background:rgba(255,216,119,.18);
  border-color:rgba(255,224,145,.55);
}
.rss-create-source-btn:disabled{
  cursor:default;
  opacity:.62;
}
.rss-create-source-btn.is-created{
  color:rgba(196,232,204,.95);
  border-color:rgba(147,220,166,.35);
  background:rgba(92,194,126,.10);
}
.rss-create-source-btn.is-remove{
  border-color:rgba(244,211,138,.44);
  background:rgba(244,211,138,.11);
  color:#f4d38a;
}
.rss-create-source-btn.is-remove:hover,
.rss-create-source-btn.is-remove:focus-visible{
  background:rgba(244,211,138,.18);
  border-color:rgba(244,211,138,.56);
  color:#f4d38a;
}
@media (max-width:1180px){
  body[data-page="home"] .selected-source-feed-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:760px){
  .settings-source-row{
    grid-template-columns:1fr;
    gap:.48rem;
  }
  .settings-source-row .settings-mini-btn{
    justify-self:start;
  }
  body[data-page="home"] .selected-source-feed-section{
    padding:14px;
    margin-top:10px;
    margin-bottom:14px;
  }
  body[data-page="home"] .selected-source-feed-grid,
  body[data-page="home"] .selected-source-feed-section[data-source-feed-empty="true"] .selected-source-feed-grid{
    grid-template-columns:1fr;
  }
  body[data-page="home"] .selected-source-feed-section .source-feed-card,
  body[data-page="home"] .selected-source-feed-section .source-feed-source-card__button{
    min-height:0;
  }
  body[data-page="home"] .selected-source-feed-section .source-feed-source-card__button{
    padding:.92rem 4.9rem 1rem .86rem;
  }
  body[data-page="home"] .selected-source-feed-section .source-feed-remove-btn{
    top:12px;
    right:12px;
    padding:4px 9px;
  }
  .rss-universe-row__state{
    justify-content:flex-start;
  }
  .source-feed-overlay-layer{
    padding:10px;
  }
  .source-feed-overlay-card{
    max-height:88vh;
    border-radius:22px;
  }
  .source-feed-overlay-scroll{
    max-height:88vh;
    padding:1rem;
  }
}

/* Keyword-only home search refinement */
body[data-page="home"] .filter-grid--keyword-only{
  grid-template-columns:minmax(240px,560px);
  justify-content:center;
}
body[data-page="home"] .filter-group--keyword-only{
  max-width:560px;
  width:100%;
}
@media (max-width:760px){
  body[data-page="home"] .filter-grid--keyword-only{
    grid-template-columns:1fr;
  }
}


/* CCR dark-theme scrollbar alignment — added 2026-04-26 */
body[data-page="home"],
body[data-page="home"] *{
  scrollbar-width:thin;
  scrollbar-color:rgba(128,148,176,.48) rgba(5,10,18,.34);
}
body[data-page="home"]::-webkit-scrollbar,
body[data-page="home"] *::-webkit-scrollbar{
  width:10px;
  height:10px;
}
body[data-page="home"]::-webkit-scrollbar-track,
body[data-page="home"] *::-webkit-scrollbar-track{
  background:rgba(5,10,18,.34);
  border-radius:999px;
}
body[data-page="home"]::-webkit-scrollbar-thumb,
body[data-page="home"] *::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,rgba(141,160,190,.54),rgba(74,91,118,.56));
  border:2px solid rgba(5,10,18,.36);
  border-radius:999px;
}
body[data-page="home"]::-webkit-scrollbar-thumb:hover,
body[data-page="home"] *::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(180deg,rgba(165,185,214,.68),rgba(93,112,142,.70));
}
body[data-page="home"]::-webkit-scrollbar-corner,
body[data-page="home"] *::-webkit-scrollbar-corner{
  background:rgba(5,10,18,.34);
}

/* Keyword input centering */
body[data-page="home"] .filter-group--keyword-only label,
body[data-page="home"] .filter-group--keyword-only input,
body[data-page="home"] .filter-group--keyword-only input::placeholder{
  text-align:center;
}
/* Search visual balance pass — 2026-04-26 */
body[data-page="home"] .current-feed-title-row{
  justify-content:center;
  margin-top:12px;
  margin-bottom:8px;
}
body[data-page="home"] .current-feed-title-row h2{
  color:rgba(188,211,232,.78);
  font-size:.92rem;
  font-weight:500;
  letter-spacing:.01em;
}
body[data-page="home"] #homeFilterForm{
  display:grid;
  grid-template-columns:minmax(240px,520px) auto;
  justify-content:center;
  align-items:end;
  gap:12px;
}
body[data-page="home"] .filter-box{
  max-width:760px;
  margin:0 auto;
  padding:14px 16px 15px;
  border-radius:22px;
  background:linear-gradient(180deg,rgba(255,255,255,.014),rgba(255,255,255,.006));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018),0 10px 24px rgba(0,0,0,.10);
}
body[data-page="home"] .filter-grid--keyword-only{
  grid-template-columns:1fr;
  width:100%;
}
body[data-page="home"] .filter-group--keyword-only{
  max-width:none;
}
body[data-page="home"] .filter-group--keyword-only label{
  color:rgba(220,228,236,.46) !important;
  font-size:.74rem;
  margin-bottom:-1px;
}
body[data-page="home"] .filter-group--keyword-only input{
  min-height:42px;
  border-radius:12px;
  background:rgba(10,18,26,.36) !important;
}
body[data-page="home"] .filter-actions{
  margin-top:0;
  align-self:end;
  flex-wrap:nowrap;
}
body[data-page="home"] .filter-actions .ui-btn{
  min-height:38px;
  padding:.52rem .78rem;
  white-space:nowrap;
}
@media (max-width:760px){
  body[data-page="home"] #homeFilterForm{
    grid-template-columns:1fr;
    gap:10px;
  }
  body[data-page="home"] .filter-box{
    max-width:none;
    padding:13px;
  }
  body[data-page="home"] .filter-actions{
    justify-content:center;
  }
}
/* Portfolio ranking — consolidated professional panel (Phase 3 cleanup) */
body[data-page="home"] .portfolio-ranking-section .portfolio-shell-section__body{
  background:linear-gradient(180deg, rgba(255,255,255,.026), rgba(255,255,255,.012));
}
body[data-page="home"] .portfolio-ranking-panel{
  display:grid;
  gap:14px;
}
body[data-page="home"] .portfolio-ranking-hero{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  padding:18px;
  border:1px solid rgba(214,229,248,.105);
  border-radius:22px;
  background:linear-gradient(135deg, rgba(19,30,45,.70), rgba(9,16,28,.48));
  box-shadow:0 18px 44px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.035);
}
body[data-page="home"] .portfolio-ranking-hero p{
  margin:0 0 6px;
  color:rgba(222,232,247,.62);
  font-size:.78rem;
  letter-spacing:.04em;
}
body[data-page="home"] .portfolio-ranking-hero h3{
  margin:0;
  font-size:clamp(1.3rem, 3vw, 2.1rem);
  color:rgba(245,248,255,.96);
  letter-spacing:.02em;
}
body[data-page="home"] .portfolio-ranking-hero h3 span{
  color:rgba(223,235,248,.92);
  text-shadow:none;
}
body[data-page="home"] .portfolio-ranking-hero small{
  display:block;
  margin-top:7px;
  color:rgba(194,207,228,.58);
}
body[data-page="home"] .portfolio-ranking-podium{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
}
body[data-page="home"] .portfolio-ranking-podium-card{
  position:relative;
  overflow:hidden;
  min-height:122px;
  padding:16px;
  border:1px solid rgba(214,229,248,.095);
  border-radius:22px;
  background:linear-gradient(145deg, rgba(18,28,42,.64), rgba(8,14,25,.43));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.028);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  gap:7px;
}
body[data-page="home"] .portfolio-ranking-podium-card.is-rank-1{
  background:linear-gradient(145deg, rgba(28,35,43,.68), rgba(9,15,26,.46));
  border-color:rgba(232,214,164,.18);
}
body[data-page="home"] .portfolio-ranking-medal{
  width:42px;
  height:42px;
  border-radius:999px;
  display:grid;
  place-items:center;
  font-size:.86rem;
  font-weight:800;
  letter-spacing:.04em;
  color:rgba(232,238,248,.88);
  border:1px solid rgba(214,229,248,.12);
  background:rgba(255,255,255,.035);
  filter:none;
}
body[data-page="home"] .portfolio-ranking-podium-card.is-rank-1 .portfolio-ranking-medal{
  color:rgba(238,222,180,.92);
  border-color:rgba(232,214,164,.22);
  background:rgba(232,214,164,.060);
}
body[data-page="home"] .portfolio-ranking-podium-card strong{
  font-size:1.05rem;
  color:rgba(248,251,255,.95);
  letter-spacing:.08em;
}
body[data-page="home"] .portfolio-ranking-podium-card b{
  font-size:1.05rem;
}
body[data-page="home"] .portfolio-ranking-podium-card small{
  color:rgba(202,216,235,.58);
}
body[data-page="home"] .portfolio-ranking-podium-card em,
body[data-page="home"] .portfolio-ranking-row__name span{
  font-style:normal;
  font-size:.68rem;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:rgba(250,219,150,.86);
}
body[data-page="home"] .portfolio-ranking-list{
  display:grid;
  gap:8px;
}
body[data-page="home"] .portfolio-ranking-row{
  display:grid;
  grid-template-columns:58px minmax(110px,1fr) repeat(3, minmax(84px,.54fr));
  align-items:center;
  gap:10px;
  padding:11px 13px;
  border-radius:18px;
  border:1px solid rgba(214,229,248,.075);
  background:rgba(7,13,24,.30);
}
body[data-page="home"] .portfolio-ranking-row.is-current,
body[data-page="home"] .portfolio-ranking-podium-card.is-current{
  border-color:rgba(232,214,164,.22);
  box-shadow:0 0 0 1px rgba(232,214,164,.055), 0 16px 36px rgba(0,0,0,.15);
}
body[data-page="home"] .portfolio-ranking-row__rank{
  font-weight:800;
  color:rgba(210,224,242,.72);
  letter-spacing:.08em;
}
body[data-page="home"] .portfolio-ranking-row__name{
  display:flex;
  flex-direction:column;
  gap:2px;
}
body[data-page="home"] .portfolio-ranking-row__name strong{
  color:rgba(242,247,255,.94);
  letter-spacing:.05em;
}
body[data-page="home"] .portfolio-ranking-row__metric{
  text-align:right;
}
body[data-page="home"] .portfolio-ranking-row__metric small{
  display:block;
  color:rgba(197,211,231,.52);
  font-size:.68rem;
  text-transform:uppercase;
  letter-spacing:.08em;
}
body[data-page="home"] .portfolio-ranking-row__metric b{
  color:rgba(235,242,255,.90);
  font-size:.86rem;
}
body[data-page="home"] .portfolio-ranking-row .is-up,
body[data-page="home"] .portfolio-ranking-podium-card .is-up{
  color:rgba(134,239,172,.95);
}
body[data-page="home"] .portfolio-ranking-row .is-down,
body[data-page="home"] .portfolio-ranking-podium-card .is-down{
  color:rgba(252,165,165,.92);
}
body[data-page="home"] .portfolio-ranking-actions{
  justify-content:center;
}
@media (max-width: 760px){
  body[data-page="home"] .portfolio-ranking-hero{
    flex-direction:column;
    align-items:stretch;
  }
  body[data-page="home"] .portfolio-ranking-podium{
    grid-template-columns:1fr;
  }
  body[data-page="home"] .portfolio-ranking-row{
    grid-template-columns:44px minmax(0,1fr);
  }
  body[data-page="home"] .portfolio-ranking-row__metric{
    text-align:left;
  }
}


/* CCR RSS news search result cards — RSS Search v1, 2026-04-26 */
body[data-page="home"] .rss-search-results{
  margin-top:22px;
}
body[data-page="home"] .rss-search-results[hidden]{
  display:none;
}
body[data-page="home"] .rss-search-results__summary{
  max-width:980px;
  margin:0 auto 14px;
  text-align:center;
  color:rgba(219,230,247,.78);
  font-size:.86rem;
  letter-spacing:.02em;
}
body[data-page="home"] .rss-search-results__grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  align-items:stretch;
}
body[data-page="home"] .rss-search-card{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:100%;
  padding:18px 18px 16px 20px;
  border-radius:22px;
  border:1px solid rgba(189,210,239,.12);
  background:
    linear-gradient(145deg,rgba(17,28,45,.24),rgba(6,12,23,.18)),
    rgba(8,15,27,.14);
  box-shadow:0 16px 34px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter:blur(14px) saturate(108%);
  -webkit-backdrop-filter:blur(14px) saturate(108%);
  overflow:hidden;
}
body[data-page="home"] .rss-search-card::before{
  content:"";
  position:absolute;
  inset:14px auto 14px 0;
  width:3px;
  border-radius:999px;
  background:linear-gradient(180deg,rgba(127,181,255,.24),rgba(242,207,121,.16),rgba(255,255,255,0));
  opacity:.58;
}
body[data-page="home"] .rss-search-card:hover{
  border-color:rgba(205,224,249,.16);
  background:
    linear-gradient(145deg,rgba(20,33,52,.28),rgba(6,12,23,.20)),
    rgba(8,15,27,.16);
}
body[data-page="home"] .rss-search-card__kicker{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  color:rgba(200,214,235,.62);
  font-size:.68rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body[data-page="home"] .rss-search-card__kicker span{
  border:1px solid rgba(139,177,232,.16);
  background:rgba(88,128,184,.05);
  color:rgba(214,227,248,.72);
  border-radius:999px;
  padding:3px 8px;
}
body[data-page="home"] .rss-search-card__kicker strong{
  font-weight:700;
  color:rgba(231,238,250,.82);
  text-transform:none;
  letter-spacing:.03em;
}
body[data-page="home"] .rss-search-card__title{
  margin:0;
  color:rgba(246,249,255,.96);
  font-size:clamp(1rem,1.35vw,1.16rem);
  line-height:1.34;
  letter-spacing:.01em;
}
body[data-page="home"] .rss-search-card__meta{
  color:rgba(188,205,229,.64);
  font-size:.78rem;
  line-height:1.35;
}
body[data-page="home"] .rss-search-card__summary{
  margin:0;
  color:rgba(215,226,242,.74);
  font-size:.86rem;
  line-height:1.55;
}
body[data-page="home"] .rss-search-card__categories{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:auto;
}
body[data-page="home"] .rss-search-card__categories span{
  border:1px solid rgba(207,222,244,.14);
  background:rgba(255,255,255,.024);
  color:rgba(205,218,238,.60);
  border-radius:999px;
  padding:4px 8px;
  font-size:.68rem;
  line-height:1;
}
body[data-page="home"] .rss-search-card__link{
  align-self:flex-start;
  margin-top:2px;
  color:rgba(243,211,139,.92);
  font-weight:700;
  font-size:.82rem;
  text-decoration:none;
}
body[data-page="home"] .rss-search-card__link:hover,
body[data-page="home"] .rss-search-card__link:focus-visible{
  color:rgba(255,232,176,.98);
  text-decoration:underline;
}
body[data-page="home"] .rss-search-highlight{
  color:rgba(255,236,182,.98);
  background:rgba(245,196,88,.18);
  border-radius:5px;
  padding:0 2px;
}
body[data-page="home"] .rss-search-empty{
  grid-column:1/-1;
  text-align:center;
  border:1px dashed rgba(183,203,232,.18);
  border-radius:20px;
  background:rgba(10,18,31,.22);
  color:rgba(219,230,247,.76);
  padding:22px;
  backdrop-filter:blur(10px) saturate(115%);
  -webkit-backdrop-filter:blur(10px) saturate(115%);
}
body[data-page="home"] .rss-search-results__actions{
  display:flex;
  justify-content:center;
  margin-top:18px;
}
body[data-page="home"] .rss-search-show-more[hidden]{
  display:none;
}
@media (max-width:980px){
  body[data-page="home"] .rss-search-results__grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:640px){
  body[data-page="home"] .rss-search-results__grid{
    grid-template-columns:1fr;
  }
  body[data-page="home"] .rss-search-card{
    padding:16px;
  }
}
@media (max-width:760px), (hover:none), (pointer:coarse){
  .rss-archive-folder-chip--group,
  .rss-archive-move-option--group,
  .rss-archive-overlay__grid--group{
    display:none !important;
  }
}

/* CCR Search symmetry pass — 2026-04-26
   Overlay-depth values were consolidated into the base overlay rules above. */
body[data-page="home"] #homeFilterForm{
  grid-template-columns:minmax(260px, 560px) !important;
  justify-items:center !important;
  align-items:center !important;
  gap:10px !important;
}
body[data-page="home"] #homeFilterForm .filter-grid--keyword-only,
body[data-page="home"] #homeFilterForm .filter-actions{
  width:100%;
  max-width:560px;
}
body[data-page="home"] #homeFilterForm .filter-actions{
  justify-content:center !important;
  margin-top:2px !important;
}
body[data-page="home"] #homeFilterForm .filter-actions .ui-btn{
  min-width:116px;
}
@media (max-width:760px){
  
}


/* SO Source Feed full-universe selector clarity — 2026-04-26 */
.settings-source-feed-panel__stats{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.42rem;
  width:100%;
  padding:.48rem .62rem;
  border:1px solid rgba(255,220,130,.16);
  border-radius:14px;
  background:rgba(255,220,130,.055);
  color:rgba(255,236,178,.90);
  font-size:.74rem;
  line-height:1.35;
  font-weight:700;
}
.settings-source-feed-public-status{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.42rem .55rem;
  width:100%;
  padding:.5rem .64rem;
  border:1px solid rgba(255,255,255,.09);
  border-radius:15px;
  background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.020));
  color:rgba(239,246,255,.90);
  font-size:.75rem;
  line-height:1.35;
}
.settings-source-feed-public-status__label{
  color:rgba(232,214,164,.94);
  font-weight:800;
  letter-spacing:.045em;
  text-transform:uppercase;
}
.settings-source-feed-public-status__count{
  display:inline-flex;
  align-items:center;
  min-height:1.45rem;
  padding:.18rem .55rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.08);
  color:rgba(255,255,255,.96);
  font-weight:800;
}
.settings-source-feed-public-status__local{
  color:rgba(205,218,234,.72);
  font-weight:650;
}
.settings-source-feed-panel.is-public-mode .settings-source-feed-panel__help{
  margin:.1rem 0 .12rem;
  color:rgba(213,224,238,.78);
  font-size:.78rem;
  line-height:1.42;
}
.settings-mini-btn--locked{
  border-color:rgba(255,255,255,.16) !important;
  background:rgba(255,255,255,.075) !important;
  color:rgba(255,255,255,.88) !important;
}
.settings-source-list--available{
  max-height:440px;
}
@media (max-width:760px){
  .settings-source-list--available{
    max-height:52vh;
  }
}


/* Ticker Manager chart-card Phase 1 — 2026-04-27 */
body[data-page="home"] .settings-favorite-row--chartable{
  position:relative;
  grid-template-columns:minmax(0, 1fr) !important;
  align-items:stretch !important;
  gap:8px !important;
  padding-top:12px !important;
}
.settings-chart-toggle{
  position:static;
  justify-self:end;
  align-self:start;
  z-index:2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:1.72rem;
  padding:.28rem .58rem;
  border:1px solid rgba(255,255,255,.15);
  border-radius:999px;
  background:rgba(255,255,255,.075);
  color:rgba(235,244,255,.84);
  font-size:.68rem;
  line-height:1;
  font-weight:800;
  letter-spacing:.02em;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(0,0,0,.18);
}
.settings-chart-toggle.is-on{
  border-color:rgba(255,220,130,.40);
  background:linear-gradient(135deg, rgba(255,220,130,.20), rgba(120,190,255,.13));
  color:rgba(255,239,190,.98);
}
.settings-chart-toggle.is-off{
  opacity:.76;
}
.selected-ticker-chart-section{
  margin-top:1.1rem;
  display:grid;
  gap:0;
}
.selected-ticker-chart-shell{
  padding:20px;
}
.selected-ticker-chart-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  grid-auto-rows:1fr;
  gap:16px;
  align-items:stretch;
}
.ticker-chart-card{
  position:relative;
  min-height:0;
  height:100%;
  display:flex;
  flex-direction:column;
  border:1px solid rgba(255,255,255,.082);
  border-radius:var(--radius);
  overflow:hidden;
  background:linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.018));
  box-shadow:var(--shadow);
  backdrop-filter:blur(14px);
}
.ticker-chart-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 20% 0%, rgba(255,220,130,.085), transparent 38%), radial-gradient(circle at 96% 14%, rgba(120,190,255,.07), transparent 36%);
  pointer-events:none;
}
.ticker-chart-card__button{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  width:100%;
  height:100%;
  padding:18px 14px 14px;
  border:0;
  background:transparent;
  color:inherit;
  text-align:left;
  cursor:pointer;
}
.ticker-chart-card__kicker{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.7rem;
  margin-bottom:.48rem;
  color:rgba(210,228,255,.78);
  font-size:.68rem;
  line-height:1.2;
  text-transform:uppercase;
  letter-spacing:.11em;
  font-weight:800;
}
.ticker-chart-card__kicker strong{
  color:rgba(255,236,178,.92);
  font-weight:800;
  letter-spacing:.04em;
}
.ticker-chart-card h3{
  margin:0;
  color:rgba(246,249,255,.96);
  font-size:1.05rem;
  line-height:1.38;
  font-weight:800;
}
.ticker-chart-card__value-row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:1rem;
  margin:.44rem 0 .50rem;
}
.ticker-chart-card__value-row span{
  color:rgba(255,255,255,.96);
  font-size:1rem;
  font-weight:800;
}
.ticker-chart-card__value-row em,
.ticker-chart-overlay-value em{
  font-style:normal;
  font-weight:800;
}
.ticker-chart-card__value-row em.is-up,
.ticker-chart-overlay-value em.is-up{ color:rgba(123,225,169,.96); }
.ticker-chart-card__value-row em.is-down,
.ticker-chart-overlay-value em.is-down{ color:rgba(255,145,145,.96); }
.ticker-chart-card__value-row em.is-flat,
.ticker-chart-overlay-value em.is-flat{ color:rgba(218,228,244,.84); }
.ticker-chart-card__preview{
  height:82px;
  margin:.08rem 0 .50rem;
  border:1px solid rgba(255,255,255,.085);
  border-radius:16px;
  background:rgba(0,0,0,.105);
  overflow:hidden;
}
.ticker-chart-card p{
  margin:0;
  color:rgba(218,228,244,.78);
  font-size:.74rem;
  line-height:1.34;
}
.ticker-chart-card__link{
  display:inline-flex;
  margin-top:auto;
  padding-top:.54rem;
  color:rgba(255,229,163,.92);
  font-size:.78rem;
  font-weight:800;
}
.ticker-chart-svg{
  display:block;
  width:100%;
  height:100%;
}
.ticker-chart-svg__grid line{
  stroke:rgba(255,255,255,.09);
  stroke-width:1;
}
.ticker-chart-svg__axis-line{
  stroke:rgba(255,255,255,.16);
  stroke-width:1.05;
}
.ticker-chart-svg__y-tick text,
.ticker-chart-svg__x-tick text,
.ticker-chart-svg__axis-label{
  fill:rgba(218,228,244,.68);
  font-size:12px;
  font-weight:700;
  letter-spacing:.01em;
}
.ticker-chart-svg.is-compact .ticker-chart-svg__y-tick text,
.ticker-chart-svg.is-compact .ticker-chart-svg__x-tick text{
  font-size:10px;
  fill:rgba(218,228,244,.58);
}
.ticker-chart-svg__axis-label{
  fill:rgba(255,236,178,.72);
  text-transform:uppercase;
  letter-spacing:.08em;
}
.ticker-chart-svg__line{
  fill:none;
  stroke:rgba(255,226,148,.92);
  stroke-width:3.2;
  stroke-linecap:round;
  stroke-linejoin:round;
  filter:drop-shadow(0 0 10px rgba(255,226,148,.24));
  vector-effect:non-scaling-stroke;
}
.ticker-chart-svg.is-up .ticker-chart-svg__line{ stroke:rgba(123,225,169,.95); }
.ticker-chart-svg.is-down .ticker-chart-svg__line{ stroke:rgba(255,145,145,.95); }
.ticker-chart-overlay-layer[hidden]{ display:none; }
.ticker-chart-overlay-layer{
  position:fixed;
  inset:0;
  z-index:1100;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(1rem, 3vw, 2.8rem);
}
.ticker-chart-overlay-backdrop{
  position:absolute;
  inset:0;
  
  
}
.ticker-chart-overlay-card{
  position:relative;
  z-index:1;
  width:min(980px, 96vw);
  max-height:88vh;
  overflow:hidden;
  
  border-radius:30px;
  
  
  
}
.ticker-chart-overlay-close{
  position:absolute;
  top:.9rem;
  right:.9rem;
  z-index:3;
}
.ticker-chart-overlay-scroll{
  max-height:88vh;
  overflow:auto;
  padding:1.35rem;
}
.ticker-chart-overlay-header{
  padding-right:3rem;
}
.ticker-chart-overlay-header p{
  margin:0 0 .35rem;
  color:rgba(255,226,148,.86);
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.ticker-chart-overlay-header h2{
  margin:0;
  color:rgba(247,250,255,.98);
  font-size:clamp(1.35rem, 3vw, 2.15rem);
  line-height:1.08;
}
.ticker-chart-overlay-meta{
  display:flex;
  flex-wrap:wrap;
  gap:.48rem;
  margin-top:.72rem;
  color:rgba(215,227,246,.78);
  font-size:.8rem;
}
.ticker-chart-overlay-meta span,
.ticker-chart-overlay-toolbar span{
  display:inline-flex;
  align-items:center;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  padding:.28rem .58rem;
  background:rgba(255,255,255,.055);
}
.ticker-chart-overlay-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.85rem;
  flex-wrap:wrap;
  margin:1.15rem 0 .9rem;
}
.ticker-chart-overlay-toolbar > div{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.38rem;
}
.ticker-chart-range-btn{
  border:1px solid rgba(255,255,255,.13);
  border-radius:999px;
  padding:.4rem .72rem;
  background:rgba(255,255,255,.065);
  color:rgba(232,241,255,.86);
  font-size:.70rem;
  font-weight:900;
  cursor:pointer;
}
.ticker-chart-range-btn.is-active{
  
  
  color:rgba(255,239,190,.98);
}
.ticker-chart-overlay-value{
  display:flex;
  align-items:baseline;
  gap:.8rem;
  margin-bottom:.75rem;
}
.ticker-chart-overlay-value strong{
  color:rgba(255,255,255,.98);
  font-size:1.32rem;
}
.ticker-chart-overlay-plot{
  height:min(48vh, 400px);
  min-height:280px;
  border:1px solid rgba(255,255,255,.105);
  border-radius:22px;
  
  overflow:hidden;
}
.ticker-chart-overlay-note{
  margin:.86rem 0 0;
  color:rgba(215,227,246,.70);
  font-size:.82rem;
  line-height:1.45;
}
body.ticker-chart-overlay-open{
  overflow:hidden;
}
@media (max-width:980px){
  .selected-ticker-chart-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:760px){
  body[data-page="home"] .settings-favorite-row--chartable{
    padding-top:12px !important;
  }
  .settings-chart-toggle{
    justify-self:start;
  }
  .selected-ticker-chart-shell{
    padding:0 !important;
    border:0;
    background:transparent;
    box-shadow:none;
  }
  .selected-ticker-chart-grid{
    grid-template-columns:1fr;
  }
  .ticker-chart-card__preview{
    height:108px;
  }
          .ticker-chart-svg__axis-label{
    display:none;
  }
}


/* Ticker chart visual-source cleanup — balanced shell + bottom remove — 2026-04-27 */
.selected-ticker-chart-section[hidden]{
  display:none !important;
}
body[data-page="home"] .selected-ticker-chart-section{
  /* External spacing fix: let the main-grid gap handle the upper clearance; keep only the lower breathing room before source-feed cards. */
  margin-top:0 !important;
  margin-bottom:.92rem !important;
  display:grid !important;
  gap:0 !important;
}
body[data-page="home"] .selected-ticker-chart-section > .selected-ticker-chart-shell{
  box-sizing:border-box !important;
  display:block !important;
  
  overflow:hidden !important;
  
  border:1px solid rgba(255,255,255,.058) !important;
  border-radius:var(--radius) !important;
  
}
body[data-page="home"] .selected-ticker-chart-grid{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  grid-auto-rows:1fr !important;
  gap:18px !important;
  margin:0 !important;
  padding:0 !important;
  align-items:stretch !important;
  align-content:start !important;
  min-height:0 !important;
}
body[data-page="home"] .selected-ticker-chart-grid > .ticker-chart-card{
  margin:0 !important;
  min-height:0 !important;
  height:100% !important;
  position:relative !important;
}
body[data-page="home"] .selected-ticker-chart-grid > .ticker-chart-card .ticker-chart-card__button{
  min-height:0 !important;
  height:100% !important;
  
}
body[data-page="home"] .selected-ticker-chart-grid > .ticker-chart-card .ticker-chart-card__preview{
  height:82px !important;
  margin:.08rem 0 .50rem !important;
}
body[data-page="home"] .ticker-chart-card__value-row em{
  white-space:nowrap;
}
body[data-page="home"] .ticker-chart-card__remove{
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  cursor:pointer;
  
  
}
body[data-page="home"] .ticker-chart-card__remove:hover{
  color:rgba(255,235,190,.96);
  border-color:rgba(255,220,130,.26);
  background:rgba(255,220,130,.09);
}
body[data-page="home"] .ticker-chart-card__kicker{
  padding-right:0 !important;
}
@media (max-width:980px){
  body[data-page="home"] .selected-ticker-chart-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width:760px){
      body[data-page="home"] .selected-ticker-chart-grid{
    grid-template-columns:1fr !important;
  }
  body[data-page="home"] .selected-ticker-chart-grid > .ticker-chart-card .ticker-chart-card__button{
    padding-bottom:48px !important;
  }
  body[data-page="home"] .selected-ticker-chart-grid > .ticker-chart-card .ticker-chart-card__preview{
    height:108px !important;
  }
}

/* Ticker chart Phase 1 — Source Feed harmonisation, thinner graphs — 2026-04-27 */
body[data-page="home"] .selected-ticker-chart-section > .selected-ticker-chart-shell{
  padding:12px 18px !important;
  background:linear-gradient(180deg,rgba(255,255,255,.014),rgba(255,255,255,.006)) !important;
  border-color:rgba(255,255,255,.050) !important;
  box-shadow:0 14px 34px rgba(0,0,0,.13), inset 0 1px 0 rgba(255,255,255,.020) !important;
}
body[data-page="home"] .selected-ticker-chart-grid > .ticker-chart-card{
  border-color:rgba(255,255,255,.060) !important;
  background:linear-gradient(180deg,rgba(255,255,255,.018),rgba(255,255,255,.008)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.020),0 9px 22px rgba(0,0,0,.11) !important;
  backdrop-filter:blur(11px) !important;
}
body[data-page="home"] .selected-ticker-chart-grid > .ticker-chart-card::before{
  inset:0 auto 0 0 !important;
  width:1px !important;
  opacity:.28 !important;
  background:linear-gradient(180deg,rgba(232,214,164,.28),rgba(141,171,194,.045)) !important;
}
body[data-page="home"] .selected-ticker-chart-grid > .ticker-chart-card:hover{
  border-color:rgba(255,255,255,.086) !important;
  background:linear-gradient(180deg,rgba(255,255,255,.024),rgba(255,255,255,.010)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.026),0 11px 26px rgba(0,0,0,.13) !important;
}
body[data-page="home"] .ticker-chart-card__kicker{
  color:rgba(207,222,239,.60) !important;
  gap:.45rem !important;
  flex-wrap:wrap !important;
  margin-bottom:.08rem !important;
  letter-spacing:.08em !important;
}
body[data-page="home"] .ticker-chart-card__kicker span{
  display:inline-flex;
  align-items:center;
  padding:.22rem .44rem;
  border-radius:999px;
  border:1px solid rgba(232,214,164,.085);
  color:rgba(232,214,164,.50);
  background:rgba(255,255,255,.014);
  letter-spacing:.085em;
}
body[data-page="home"] .ticker-chart-card__kicker strong{
  color:rgba(205,218,234,.54) !important;
  font-size:.68rem !important;
  font-weight:700 !important;
  letter-spacing:.06em !important;
}
body[data-page="home"] .ticker-chart-card h3{
  color:var(--ccr-card-headline-color,#e2c3cc) !important;
  filter:brightness(calc(var(--ccr-card-headline-brightness,100%) * .96));
  opacity:calc(var(--ccr-card-headline-opacity,1) * .94);
  font-weight:var(--ccr-card-headline-weight,600) !important;
  font-size:var(--ccr-card-headline-size,1rem) !important;
  line-height:1.24 !important;
  letter-spacing:-.012em !important;
}
body[data-page="home"] .ticker-chart-card__value-row span{
  color:rgba(230,237,245,.78) !important;
  font-size:.98rem !important;
  font-weight:750 !important;
}
body[data-page="home"] .ticker-chart-card__value-row em{
  font-size:.82rem !important;
  font-weight:760 !important;
}
body[data-page="home"] .ticker-chart-card__value-row em.is-up,
body[data-page="home"] .ticker-chart-overlay-value em.is-up{
  color:rgba(124,190,160,.74) !important;
}
body[data-page="home"] .ticker-chart-card__value-row em.is-down,
body[data-page="home"] .ticker-chart-overlay-value em.is-down{
  color:rgba(200,132,142,.76) !important;
}
body[data-page="home"] .ticker-chart-card__value-row em.is-flat,
body[data-page="home"] .ticker-chart-overlay-value em.is-flat{
  color:rgba(198,210,226,.62) !important;
}
body[data-page="home"] .ticker-chart-card__link{
  color:rgba(232,214,164,.58) !important;
  font-weight:700 !important;
}
body[data-page="home"] .ticker-chart-card__link:hover{
  color:rgba(243,228,234,.86) !important;
}
body[data-page="home"] .ticker-chart-svg__grid line{
  
  stroke-width:.8 !important;
}
body[data-page="home"] .ticker-chart-svg__axis-line{
  
  stroke-width:.9 !important;
}
body[data-page="home"] .ticker-chart-svg__y-tick text,
body[data-page="home"] .ticker-chart-svg__x-tick text,
body[data-page="home"] .ticker-chart-svg__axis-label{
  
  font-weight:650 !important;
}

/* Phase 2C overlay glass harmonization — maximum transparent pass, 2026-04-27 */
body[data-page="home"] .portfolio-shell-backdrop,
body[data-page="home"] .rss-shell-backdrop,
body[data-page="home"] .book-reader-shell-backdrop,
.source-feed-overlay-backdrop{
  background:rgba(5,10,18,.10) !important;
  backdrop-filter:blur(4px) saturate(1.02) !important;
}
body[data-page="home"] .portfolio-shell-card,
body[data-page="home"] .book-reader-shell-card{
  border-color:rgba(214,229,248,.070) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(124,160,205,.030), transparent 34%),
    linear-gradient(180deg, rgba(24,36,50,.38), rgba(8,14,23,.30)) !important;
  box-shadow:0 18px 54px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.026) !important;
  backdrop-filter:blur(10px) saturate(1.04) !important;
}
body[data-page="home"] .rss-shell-card{
  border-color:rgba(214,229,248,.070) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(110,198,255,.034), transparent 34%),
    radial-gradient(circle at 82% 10%, rgba(255,204,128,.018), transparent 30%),
    linear-gradient(180deg, rgba(22,35,50,.38), rgba(8,14,24,.30)) !important;
  box-shadow:0 18px 54px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.026) !important;
  backdrop-filter:blur(10px) saturate(1.04) !important;
}
.source-feed-overlay-card{
  border-color:rgba(214,229,248,.070) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(124,160,205,.030), transparent 34%),
    linear-gradient(180deg, rgba(24,36,50,.38), rgba(8,14,23,.30)) !important;
  box-shadow:0 18px 54px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.026) !important;
  backdrop-filter:blur(10px) saturate(1.04) !important;
}
body[data-page="home"] .rss-shell-header,
.source-feed-overlay-header{
  background:linear-gradient(180deg, rgba(30,47,67,.32), rgba(18,31,46,.22)) !important;
  border-bottom-color:rgba(159,202,255,.060) !important;
}
body[data-page="home"] .portfolio-shell-section,
body[data-page="home"] .portfolio-warning-strip,
body[data-page="home"] .rss-shell-body > *,
body[data-page="home"] .rss-shell-status,
.source-feed-overlay-item{
  background-color:rgba(255,255,255,.008) !important;
  border-color:rgba(255,255,255,.040) !important;
}


/* Phase 2D selective transparency pass — RL + SO lighter, 2026-04-27 */
.source-feed-overlay-backdrop,
body[data-page="home"] .book-reader-shell-backdrop{
  background:rgba(5,10,18,.065) !important;
  backdrop-filter:blur(3px) saturate(1.01) !important;
}
.source-feed-overlay-card,
body[data-page="home"] .book-reader-shell-card{
  border-color:rgba(214,229,248,.056) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(124,160,205,.022), transparent 34%),
    linear-gradient(180deg, rgba(24,36,50,.28), rgba(8,14,23,.20)) !important;
  box-shadow:0 14px 42px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.018) !important;
  backdrop-filter:blur(8px) saturate(1.03) !important;
}
.source-feed-overlay-header,
body[data-page="home"] .book-reader-shell-header{
  background:linear-gradient(180deg, rgba(30,47,67,.20), rgba(18,31,46,.12)) !important;
  border-bottom-color:rgba(159,202,255,.042) !important;
}
.source-feed-overlay-item{
  background:linear-gradient(180deg, rgba(255,255,255,.010), rgba(255,255,255,.004)) !important;
  border-color:rgba(255,255,255,.030) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018) !important;
}
body[data-page="home"] .book-reader-shell-frame-wrap{
  background:rgba(7,16,24,.28) !important;
  border-color:rgba(255,255,255,.040) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018) !important;
}


/* Phase 2E — Research Library catalogue + Settings inner-glass polish, 2026-04-27 */
body[data-page="home"] .book-shell-backdrop,
body[data-page="home"] .settings-shell-backdrop{
  background:rgba(5,10,18,.060) !important;
  backdrop-filter:blur(3px) saturate(1.01) !important;
}
body[data-page="home"] .book-shell-card,
body[data-page="home"] .settings-shell-card{
  border-color:rgba(214,229,248,.056) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(124,160,205,.020), transparent 34%),
    linear-gradient(180deg, rgba(24,36,50,.26), rgba(8,14,23,.18)) !important;
  box-shadow:0 14px 42px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.018) !important;
  backdrop-filter:blur(8px) saturate(1.03) !important;
}
body[data-page="home"] .book-shell-card .settings-shell-header,
body[data-page="home"] .settings-shell-header{
  background:linear-gradient(180deg, rgba(30,47,67,.20), rgba(18,31,46,.115)) !important;
  border-bottom-color:rgba(159,202,255,.040) !important;
}
body[data-page="home"] .book-shell-balance,
body[data-page="home"] .book-shell-card-item,
body[data-page="home"] .settings-shell-section,
body[data-page="home"] .settings-manager-block,
body[data-page="home"] .settings-favorite-row,
body[data-page="home"] .settings-ticker-row,
body[data-page="home"] .settings-manager-collapsed,
body[data-page="home"] .settings-profile-card,
body[data-page="home"] .settings-source-feed-panel,
body[data-page="home"] .settings-source-feed-panel__block,
body[data-page="home"] .settings-inline-note,
body[data-page="home"] .settings-user-chip{
  background:linear-gradient(180deg, rgba(255,255,255,.014), rgba(255,255,255,.006)) !important;
  border-color:rgba(255,255,255,.040) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.016) !important;
}
body[data-page="home"] .book-shell-card-item__media,
body[data-page="home"] .book-shell-card-item__cover,
body[data-page="home"] .settings-manager-collapsed__chip,
body[data-page="home"] .settings-manager-collapsed__empty,
body[data-page="home"] .settings-source-feed-panel__stats{
  background:rgba(7,16,24,.22) !important;
  border-color:rgba(255,255,255,.036) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.014) !important;
}
body[data-page="home"] .settings-shell-section[data-settings-section="sourceFeed"] h3,
body[data-page="home"] .settings-shell-section[data-settings-section="manager"] h3,
body[data-page="home"] .settings-shell-section[data-settings-section="profile"] h3{
  color:rgba(240,245,252,.92) !important;
}
body[data-page="home"] .settings-shell-section--source-feed .settings-section-heading-main h3{
  color:rgba(232,214,164,.82) !important;
}
body[data-page="home"] .settings-favorite-row--chartable{
  padding:10px 12px !important;
  gap:10px !important;
  grid-template-columns:minmax(0,1fr) !important;
}
body[data-page="home"] .settings-favorite-row__topline{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:start !important;
  gap:8px 12px !important;
}
body[data-page="home"] .settings-favorite-row--chartable .settings-ticker-row__label-wrap{
  min-width:0 !important;
}
body[data-page="home"] .settings-chart-toggle{
  justify-self:end !important;
  align-self:start !important;
  margin-top:0 !important;
  min-height:1.55rem !important;
  padding:.22rem .50rem !important;
  font-size:.64rem !important;
  border-color:rgba(232,214,164,.16) !important;
  background:rgba(255,255,255,.024) !important;
  color:rgba(232,214,164,.72) !important;
  box-shadow:none !important;
}
body[data-page="home"] .settings-chart-toggle.is-on{
  border-color:rgba(232,214,164,.28) !important;
  background:rgba(232,214,164,.080) !important;
  color:rgba(246,232,188,.92) !important;
}
body[data-page="home"] .settings-chart-toggle.is-off{
  opacity:.64 !important;
}
@media (max-width:760px){
  body[data-page="home"] .settings-favorite-row__topline{
    grid-template-columns:1fr !important;
  }
  body[data-page="home"] .settings-chart-toggle{
    justify-self:start !important;
  }
}


/* Root-level scrollbar + PIN transparency + RSS visual balance — 2026-04-27 */
@media (min-width:761px){
  html,
  body{
    color-scheme:dark;
    scrollbar-color:rgba(86,106,128,.72) rgba(4,9,16,.62);
  }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar{
    width:12px;
    height:12px;
    background:rgba(4,9,16,.72);
  }
  html::-webkit-scrollbar-track,
  body::-webkit-scrollbar-track{
    background:linear-gradient(180deg, rgba(4,9,16,.72), rgba(8,15,24,.66));
  }
  html::-webkit-scrollbar-thumb,
  body::-webkit-scrollbar-thumb{
    min-height:56px;
    border-radius:999px;
    border:3px solid rgba(4,9,16,.74);
    background:linear-gradient(180deg, rgba(92,112,134,.78), rgba(48,63,80,.82));
  }
  html::-webkit-scrollbar-thumb:hover,
  body::-webkit-scrollbar-thumb:hover{
    background:linear-gradient(180deg, rgba(116,138,160,.82), rgba(62,80,99,.86));
  }
}
.ccr-entry-gate{
  isolation:isolate;
  overflow:hidden;
  background:linear-gradient(180deg, rgba(4,8,14,.18), rgba(4,8,14,.26)) !important;
  backdrop-filter:blur(5px) saturate(.98) !important;
}
.ccr-entry-gate::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:url('../images/backgrounds/world-intelligence-map-tile.webp');
  background-repeat:repeat-x;
  background-size:auto 100vh;
  background-size:auto 100dvh;
  background-position:0 50%;
  opacity:.58;
  filter:brightness(.99) saturate(.96) contrast(1.04);
  animation:ccrEntryWorldMapDrift 144s linear infinite;
  will-change:background-position;
  transform:translateZ(0);
}
.ccr-entry-gate::before{
  z-index:1;
  pointer-events:none;
  background:
    radial-gradient(1100px 760px at 50% 36%, rgba(223,233,244,.075), transparent 60%),
    radial-gradient(860px 620px at 50% 70%, rgba(237,219,227,.050), transparent 58%),
    linear-gradient(180deg, rgba(4,8,14,.12), rgba(4,8,14,.22)) !important;
}
.ccr-intro-overlay,
.ccr-entry-keypad-slot{
  position:absolute;
}
@keyframes ccrEntryWorldMapDrift{
  from{ background-position:0 50%; }
  to{ background-position:-200vh 50%; }
}
.ccr-entry-keypad-panel{
  background:
    radial-gradient(circle at 18% 0%, rgba(124,160,205,.050), transparent 34%),
    linear-gradient(180deg, rgba(58,74,91,.20), rgba(38,53,68,.12)) !important;
  border-color:rgba(255,255,255,.052) !important;
  box-shadow:0 20px 58px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.026), 0 0 0 1px rgba(79,163,255,.020) !important;
  backdrop-filter:blur(13px) saturate(1.02) !important;
}
.ccr-entry-login-id-input{
  background:linear-gradient(180deg, rgba(17,27,38,.21), rgba(19,31,44,.12)) !important;
  border-color:rgba(255,255,255,.070) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.020), 0 8px 20px rgba(0,0,0,.12) !important;
}
.ccr-entry-key{
  background:linear-gradient(180deg, rgba(68,87,105,.145), rgba(49,66,82,.078)) !important;
  border-color:rgba(255,255,255,.054) !important;
  box-shadow:0 9px 22px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.028), 0 0 0 1px rgba(79,163,255,.018) !important;
  text-shadow:0 2px 8px rgba(0,0,0,.34);
}
.ccr-entry-key:hover{
  background:linear-gradient(180deg, rgba(79,163,255,.105), rgba(68,87,105,.155)) !important;
}
.ccr-entry-key--unlock{
  background:linear-gradient(180deg, rgba(79,163,255,.105), rgba(79,163,255,.044)) !important;
}
.ccr-entry-key--delete{
  background:linear-gradient(180deg, rgba(69,86,103,.135), rgba(49,66,82,.075)) !important;
}
@media (max-width:820px){
  .ccr-entry-gate::after{
    background-size:auto 100svh;
    background-size:auto 100dvh;
    opacity:.60;
    animation-duration:112s;
  }
  .ccr-entry-keypad-panel{
    background:
      radial-gradient(circle at 18% 0%, rgba(124,160,205,.044), transparent 34%),
      linear-gradient(180deg, rgba(58,74,91,.17), rgba(38,53,68,.10)) !important;
    backdrop-filter:blur(12px) saturate(1.02) !important;
  }
  .ccr-entry-key{
    background:linear-gradient(180deg, rgba(68,87,105,.125), rgba(49,66,82,.064)) !important;
  }
}
body[data-page="home"] .rss-shell-card{
  border-color:rgba(214,229,248,.056) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(110,198,255,.026), transparent 34%),
    radial-gradient(circle at 82% 10%, rgba(255,204,128,.012), transparent 30%),
    linear-gradient(180deg, rgba(22,35,50,.30), rgba(8,14,24,.22)) !important;
  box-shadow:0 14px 42px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.018) !important;
  backdrop-filter:blur(8px) saturate(1.03) !important;
}
body[data-page="home"] .rss-shell-header{
  background:linear-gradient(180deg, rgba(30,47,67,.22), rgba(18,31,46,.13)) !important;
  border-bottom-color:rgba(159,202,255,.044) !important;
}
body[data-page="home"] .rss-shell-body{
  background:transparent !important;
}
body[data-page="home"] .rss-shell-status,
body[data-page="home"] .rss-control-panel{
  border-color:rgba(255,255,255,.040) !important;
  background:linear-gradient(180deg, rgba(255,255,255,.014), rgba(255,255,255,.006)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.014) !important;
}
body[data-page="home"] .rss-stat-card{
  border-color:rgba(255,255,255,.044) !important;
  background:rgba(6,12,22,.22) !important;
}
body[data-page="home"] .rss-stat-card.is-ok{
  border-color:rgba(143,227,179,.105) !important;
  background:rgba(74,139,99,.045) !important;
}
body[data-page="home"] .rss-stat-card.is-alert{
  border-color:rgba(255,156,156,.110) !important;
  background:rgba(143,51,51,.052) !important;
}
body[data-page="home"] .rss-stat-card.is-accent{
  border-color:rgba(110,198,255,.120) !important;
  background:rgba(62,137,194,.052) !important;
}
body[data-page="home"] .rss-stat-card__value{
  color:rgba(240,248,255,.88) !important;
}
body[data-page="home"] .rss-stat-card__label{
  color:rgba(207,223,236,.58) !important;
}
body[data-page="home"] .rss-tab-row{
  border-color:rgba(255,255,255,.044) !important;
  background:rgba(5,10,18,.18) !important;
}
body[data-page="home"] .rss-tab-btn{
  color:rgba(224,237,248,.70) !important;
  border-color:rgba(255,255,255,.050) !important;
  background:rgba(255,255,255,.014) !important;
}
body[data-page="home"] .rss-tab-btn.is-active{
  color:rgba(226,241,250,.84) !important;
  border-color:rgba(110,198,255,.180) !important;
  background:linear-gradient(180deg, rgba(110,198,255,.095), rgba(110,198,255,.040)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.030) !important;
}
body[data-page="home"] .rss-filter select,
body[data-page="home"] .rss-filter input[type="search"],
body[data-page="home"] .rss-search-wrap input[type="search"]{
  color:rgba(235,243,250,.88) !important;
  background:rgba(7,13,22,.52) !important;
  border-color:rgba(255,255,255,.055) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.014) !important;
}
body[data-page="home"] .rss-item{
  border-color:rgba(159,202,255,.060) !important;
  background:
    linear-gradient(90deg, rgba(110,198,255,.040), transparent 32%),
    linear-gradient(180deg, rgba(11,20,33,.42), rgba(7,13,22,.26)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018) !important;
}
body[data-page="home"] .rss-item::before{
  width:2px !important;
  opacity:.48 !important;
  background:linear-gradient(180deg, rgba(110,198,255,.42), rgba(232,214,164,.22)) !important;
}
body[data-page="home"] .rss-item__source{
  color:rgba(232,243,255,.68) !important;
}
body[data-page="home"] .rss-item__title,
body[data-page="home"] .rss-item__link{
  color:rgba(239,246,252,.88) !important;
}
body[data-page="home"] .rss-item__summary{
  color:rgba(213,226,239,.66) !important;
}
body[data-page="home"] .rss-pill,
body[data-page="home"] .rss-shell-status__grid .rss-pill{
  border-color:rgba(255,255,255,.044) !important;
  background:rgba(255,255,255,.014) !important;
}
body[data-page="home"] .rss-universe-group,
body[data-page="home"] .rss-universe-row,
body[data-page="home"] .rss-empty-card,
body[data-page="home"] .rss-placeholder-card{
  border-color:rgba(255,255,255,.040) !important;
  background:rgba(255,255,255,.010) !important;
}

/* Phase 2G - Swipe Discovery + full chart overlay glass harmonization, 2026-04-27
   Root-level CSS pass: backdrop, shell, large card, and inner overlay surfaces only. */
body[data-page="home"] .indicator-discovery-backdrop{
  background:rgba(5,10,18,.055) !important;
  backdrop-filter:blur(3px) saturate(1.01) !important;
}
body[data-page="home"] .indicator-discovery-panel{
  border-color:rgba(214,229,248,.056) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(124,160,205,.020), transparent 34%),
    linear-gradient(180deg, rgba(24,36,50,.24), rgba(8,14,23,.17)) !important;
  box-shadow:0 14px 42px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.018) !important;
  backdrop-filter:blur(8px) saturate(1.03) !important;
}
body[data-page="home"] .indicator-discovery-header{
  border-radius:22px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.036) !important;
  background:linear-gradient(180deg, rgba(255,255,255,.012), rgba(255,255,255,.004)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.014) !important;
}
body[data-page="home"] .indicator-discovery-progress,
body[data-page="home"] .indicator-discovery-card__ghost-pill,
body[data-page="home"] .indicator-discovery-card__actions .settings-mini-btn{
  border-color:rgba(255,255,255,.046) !important;
  background:linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.007)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.014) !important;
}
body[data-page="home"] .indicator-discovery-card__shell{
  border-color:rgba(214,229,248,.050) !important;
  background:
    radial-gradient(circle at 50% 28%, rgba(79,163,255,.045), transparent 44%),
    radial-gradient(circle at 18% 0%, rgba(124,160,205,.020), transparent 34%),
    linear-gradient(180deg, rgba(18,26,39,.22), rgba(8,13,20,.145)) !important;
  box-shadow:0 14px 44px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.016) !important;
  backdrop-filter:blur(8px) saturate(1.03) !important;
}
body[data-page="home"] .indicator-discovery-card[data-dragging="true"] .indicator-discovery-card__shell{
  border-color:rgba(79,163,255,.18) !important;
}
body[data-page="home"] .indicator-discovery-card[data-swipe-intent="like"] .indicator-discovery-card__shell{
  border-color:rgba(111,222,165,.22) !important;
  box-shadow:0 16px 48px rgba(0,0,0,.20), 0 0 0 1px rgba(111,222,165,.075), inset 0 1px 0 rgba(255,255,255,.018) !important;
}
body[data-page="home"] .indicator-discovery-card[data-swipe-intent="hide"] .indicator-discovery-card__shell{
  border-color:rgba(255,183,111,.22) !important;
  box-shadow:0 16px 48px rgba(0,0,0,.20), 0 0 0 1px rgba(255,183,111,.075), inset 0 1px 0 rgba(255,255,255,.018) !important;
}
body[data-page="home"] .indicator-discovery-card[data-swipe-intent="like"] .indicator-discovery-card__ghost-pill.is-like{
  border-color:rgba(111,222,165,.22) !important;
  background:rgba(111,222,165,.075) !important;
}
body[data-page="home"] .indicator-discovery-card[data-swipe-intent="hide"] .indicator-discovery-card__ghost-pill.is-hide{
  border-color:rgba(255,183,111,.22) !important;
  background:rgba(255,183,111,.075) !important;
}
body[data-page="home"] .indicator-discovery-empty{
  padding:16px 18px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.040) !important;
  background:linear-gradient(180deg, rgba(255,255,255,.014), rgba(255,255,255,.006)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.014) !important;
}
.ticker-chart-overlay-backdrop{
  background:rgba(4,12,22,.14) !important;
  backdrop-filter:blur(5px) saturate(1.02) !important;
}
.ticker-chart-overlay-card{
  border:1px solid rgba(214,229,248,.060) !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(105,135,166,.055), transparent 34%),
    linear-gradient(145deg, rgba(14,25,38,.30), rgba(9,17,29,.22)) !important;
  box-shadow:0 18px 56px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.020) !important;
  backdrop-filter:blur(10px) saturate(1.03) !important;
}
.ticker-chart-overlay-scroll{
  background:linear-gradient(180deg, rgba(255,255,255,.006), rgba(255,255,255,.002)) !important;
}
.ticker-chart-overlay-meta span,
.ticker-chart-overlay-toolbar span,
.ticker-chart-range-btn{
  border-color:rgba(255,255,255,.050) !important;
  background:linear-gradient(180deg, rgba(255,255,255,.020), rgba(255,255,255,.008)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.014) !important;
}
.ticker-chart-range-btn.is-active{
  border-color:rgba(255,220,130,.24) !important;
  background:rgba(255,220,130,.090) !important;
}
.ticker-chart-overlay-plot{
  border-color:rgba(214,229,248,.055) !important;
  background:linear-gradient(180deg, rgba(255,255,255,.018), rgba(4,10,18,.075)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.014) !important;
}
@media (max-width:760px){
  body[data-page="home"] .indicator-discovery-header{
    border-radius:18px;
    padding:9px 10px;
  }
  body[data-page="home"] .indicator-discovery-card__shell{
    background:
      radial-gradient(circle at 50% 24%, rgba(79,163,255,.040), transparent 44%),
      linear-gradient(180deg, rgba(18,26,39,.20), rgba(8,13,20,.13)) !important;
  }
  .ticker-chart-overlay-card{
    background:
      radial-gradient(circle at 50% 0%, rgba(105,135,166,.046), transparent 36%),
      linear-gradient(180deg, rgba(14,25,38,.28), rgba(9,17,29,.20)) !important;
  }
}


/* Phase 2H — RO dropdown glass, graph remove alignment, intro-map fadeout — 2026-04-27
   Root-level visual pass on the 7590 AIB. Keeps graph remove at bottom-right per the prior graph-card fix,
   but harmonizes its proportions/tone with the Source Feed remove button. */
body[data-page="home"] .rss-filter select,
body[data-page="home"] .rss-filter select:focus{
  color-scheme:dark;
  appearance:none;
  -webkit-appearance:none;
  border-color:rgba(214,229,248,.064) !important;
  color:rgba(235,243,250,.90) !important;
  background-color:rgba(7,13,22,.32) !important;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.006)),
    radial-gradient(circle at 18% 0%, rgba(110,198,255,.030), transparent 34%),
    linear-gradient(45deg, transparent 50%, rgba(225,236,246,.70) 50%),
    linear-gradient(135deg, rgba(225,236,246,.70) 50%, transparent 50%);
  background-position:0 0, 0 0, calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size:100% 100%, 100% 100%, 5px 5px, 5px 5px;
  background-repeat:no-repeat;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018), 0 8px 24px rgba(0,0,0,.10) !important;
  backdrop-filter:blur(10px) saturate(1.02);
}
body[data-page="home"] .rss-filter select:hover{
  border-color:rgba(110,198,255,.115) !important;
  background-color:rgba(11,20,33,.38) !important;
}
body[data-page="home"] .rss-filter select option,
body[data-page="home"] .rss-filter select optgroup{
  color:rgba(235,243,250,.94);
  background:#0a1422;
}
body[data-page="home"] .rss-filter select option:checked{
  color:rgba(255,238,198,.98);
  background:#132235;
}
body[data-page="home"] .ticker-chart-card__remove:hover,
body[data-page="home"] .ticker-chart-card__remove:focus-visible{
  
  
  
  
  outline:none;
}
.ccr-entry-gate::after{
  transition:opacity 240ms ease-out, filter 240ms ease-out !important;
}
body.ccr-intro-map-fadeout .ccr-entry-gate::after{
  opacity:0 !important;
  filter:brightness(.82) saturate(.72) blur(2px) !important;
}
body.ccr-intro-map-fadeout .site-world-map-bg{
  opacity:0 !important;
  filter:blur(10px) saturate(.82) !important;
  transition:opacity 240ms ease-out, filter 240ms ease-out !important;
}
@media (max-width:760px){
  }

/* Phase 2J — RO dropdown affordance + SO source-search persistence clarity, 2026-04-27
   Adds a visible wrapper chevron/capsule instead of relying only on native select background styling. */
body[data-page="home"] .rss-filter--select{
  gap:7px;
}
body[data-page="home"] .settings-search--source .settings-search__input::placeholder{
  color:rgba(213,226,239,.42) !important;
  
}


/* SO section harmonization + Ticker Discovery cleanup — 2026-04-27 */
body[data-page="home"] .settings-shell-section[data-settings-section="user"] .settings-section-heading-main h3,
body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-section-heading-main h3,
body[data-page="home"] .settings-shell-section[data-settings-section="sourceFeed"] .settings-section-heading-main h3,
body[data-page="home"] .settings-shell-section[data-settings-section="discovery"] .settings-section-heading-main h3,
body[data-page="home"] .settings-shell-section[data-settings-section="profile"] .settings-section-heading-main h3{
  color:rgba(232,214,164,.90) !important;
  text-shadow:0 0 16px rgba(232,214,164,.08);
}
body[data-page="home"] .settings-search--source .settings-search__input::placeholder{
  color:rgba(213,226,239,.38) !important;
  opacity:1;
}

/* Phase 2L — SO default collapsed + RO custom dropdowns, 2026-04-27
   Replaces RO native select popup with an in-DOM dark glass menu to remove the brief white browser menu flash. */
body[data-page="home"] .rss-custom-select{
  position:relative;
  display:block;
  width:100%;
  min-width:0;
  z-index:2;
}
body[data-page="home"] .rss-custom-select.is-open{
  z-index:30;
}
body[data-page="home"] .rss-custom-select__button{
  width:100%;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 11px 0 13px;
  border-radius:15px;
  border:1px solid rgba(214,229,248,.078);
  color:rgba(238,246,252,.92);
  background:
    linear-gradient(90deg, transparent calc(100% - 46px), rgba(232,214,164,.085) calc(100% - 46px), rgba(232,214,164,.085) 100%),
    linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.008)),
    rgba(7,13,22,.42);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.022), 0 8px 24px rgba(0,0,0,.12);
  backdrop-filter:blur(12px) saturate(1.05);
  cursor:pointer;
  font:inherit;
  text-align:left;
}
body[data-page="home"] .rss-custom-select__button:hover,
body[data-page="home"] .rss-custom-select__button:focus-visible,
body[data-page="home"] .rss-custom-select.is-open .rss-custom-select__button{
  border-color:rgba(232,214,164,.24);
  background:
    linear-gradient(90deg, transparent calc(100% - 46px), rgba(232,214,164,.130) calc(100% - 46px), rgba(232,214,164,.130) 100%),
    linear-gradient(180deg, rgba(255,255,255,.038), rgba(255,255,255,.012)),
    rgba(10,20,34,.50);
  box-shadow:0 0 0 3px rgba(232,214,164,.075), inset 0 1px 0 rgba(255,255,255,.026), 0 10px 28px rgba(0,0,0,.16);
  outline:none;
}
body[data-page="home"] .rss-custom-select__text{
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
body[data-page="home"] .rss-custom-select__chevron{
  position:relative;
  flex:0 0 26px;
  width:26px;
  height:26px;
  border-radius:999px;
  border:1px solid rgba(232,214,164,.30);
  background:radial-gradient(circle at 45% 28%, rgba(255,240,198,.18), transparent 42%), rgba(255,255,255,.045);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055), 0 4px 12px rgba(0,0,0,.16);
}
body[data-page="home"] .rss-custom-select__chevron::before,
body[data-page="home"] .rss-custom-select__chevron::after{
  content:"";
  position:absolute;
  top:12px;
  width:8px;
  height:2px;
  border-radius:999px;
  background:rgba(255,236,185,.92);
  transition:transform .16s ease;
}
body[data-page="home"] .rss-custom-select__chevron::before{
  left:6px;
  transform:rotate(42deg);
}
body[data-page="home"] .rss-custom-select__chevron::after{
  right:6px;
  transform:rotate(-42deg);
}
body[data-page="home"] .rss-custom-select.is-open .rss-custom-select__chevron::before{
  transform:rotate(-42deg);
}
body[data-page="home"] .rss-custom-select.is-open .rss-custom-select__chevron::after{
  transform:rotate(42deg);
}
body[data-page="home"] .rss-custom-select__menu{
  position:absolute;
  z-index:50;
  left:0;
  right:0;
  top:calc(100% + 7px);
  display:grid;
  gap:4px;
  max-height:min(320px, 42vh);
  overflow:auto;
  padding:7px;
  border-radius:16px;
  border:1px solid rgba(214,229,248,.10);
  background:
    radial-gradient(circle at 14% 0%, rgba(110,198,255,.055), transparent 36%),
    linear-gradient(180deg, rgba(11,20,34,.94), rgba(7,13,22,.91));
  box-shadow:0 18px 54px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.034);
  backdrop-filter:blur(18px) saturate(1.10);
}
body[data-page="home"] .rss-custom-select__menu::-webkit-scrollbar{
  width:9px;
}
body[data-page="home"] .rss-custom-select__menu::-webkit-scrollbar-track{
  background:rgba(3,7,12,.38);
  border-radius:999px;
}
body[data-page="home"] .rss-custom-select__menu::-webkit-scrollbar-thumb{
  background:rgba(142,166,190,.36);
  border-radius:999px;
  border:2px solid rgba(3,7,12,.22);
}
body[data-page="home"] .rss-custom-select__option{
  width:100%;
  min-height:34px;
  padding:8px 10px;
  border:1px solid transparent;
  border-radius:11px;
  background:rgba(255,255,255,.020);
  color:rgba(230,239,247,.88);
  font:inherit;
  font-size:.86rem;
  text-align:left;
  cursor:pointer;
}
body[data-page="home"] .rss-custom-select__option:hover,
body[data-page="home"] .rss-custom-select__option:focus-visible{
  border-color:rgba(232,214,164,.20);
  background:rgba(232,214,164,.075);
  color:rgba(255,241,205,.96);
  outline:none;
}
body[data-page="home"] .rss-custom-select__option.is-selected{
  border-color:rgba(232,214,164,.24);
  background:linear-gradient(90deg, rgba(232,214,164,.13), rgba(110,198,255,.045));
  color:rgba(255,244,210,.98);
}
@media (max-width:760px){
  body[data-page="home"] .rss-custom-select__menu{
    max-height:min(300px, 48vh);
  }
}

/* RO dropdown functional cleanup — 2026-04-27
   Keep the custom menus mounted, but make open/close a class/attribute toggle instead of a full overlay rerender. */
body[data-page="home"] .rss-custom-select__menu[hidden]{
  display:none !important;
}
body[data-page="home"] .rss-filter--select{
  position:relative;
  z-index:3;
}
body[data-page="home"] .rss-custom-select__menu{
  contain:layout paint;
  overscroll-behavior:contain;
  transform:translateZ(0);
}
body[data-page="home"] .rss-custom-select__button{
  touch-action:manipulation;
}


/* RO search performance window note */
.rss-search-window-note{
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(10,18,32,.42);
  color: rgba(226,238,255,.76);
  font-size: .78rem;
  letter-spacing: .01em;
  text-align: center;
  backdrop-filter: blur(10px);
}


/* SO mobile root-level structural cleanup + reader scrollbar hardening — 2026-04-27
   Purpose: flatten the Settings Overlay on phones, keep section arrows top-right,
   compact ticker controls, and ensure same-origin HTML book iframes inherit dark scrollbars. */
body[data-page="home"] .book-reader-shell-frame{
  color-scheme:dark;
  scrollbar-color:rgba(120,140,162,.72) rgba(5,10,18,.92);
}
body[data-page="home"] .book-reader-shell-frame-wrap{
  color-scheme:dark;
}

@media (max-width:760px){
  body[data-page="home"] .settings-shell-card{
    top:max(8px, calc(env(safe-area-inset-top, 0px) + 8px)) !important;
    left:max(6px, calc(env(safe-area-inset-left, 0px) + 6px)) !important;
    right:max(6px, calc(env(safe-area-inset-right, 0px) + 6px)) !important;
    bottom:max(8px, calc(env(safe-area-inset-bottom, 0px) + 8px)) !important;
    width:auto !important;
    border-radius:20px !important;
  }
  body[data-page="home"] .settings-shell-scroll{
    scrollbar-gutter:stable;
  }
  body[data-page="home"] .settings-shell-header{
    padding:16px 14px 12px !important;
  }
      
  body[data-page="home"] .settings-section-heading-row,
  body[data-page="home"] .settings-section-heading-row--discovery{
    
    flex-direction:row !important;
    
    
    
    
  }
  body[data-page="home"] .settings-section-heading-main{
    flex:1 1 auto !important;
    
    
  }
  body[data-page="home"] .settings-section-heading-main h3{
    min-width:0 !important;
    font-size:1.02rem !important;
    line-height:1.12 !important;
  }
  body[data-page="home"] .settings-section-meta{
    flex:0 0 auto !important;
    font-size:.69rem !important;
    padding:4px 8px !important;
  }
  body[data-page="home"] .settings-section-controls{
    flex:0 0 auto !important;
    display:flex !important;
    align-items:center !important;
    
    margin-left:auto !important;
    
  }
  body[data-page="home"] .settings-section-toggle{
    flex:0 0 34px !important;
    width:34px !important;
    height:34px !important;
    min-width:34px !important;
    margin-left:auto !important;
  }
  body[data-page="home"] .settings-search-row{
    margin-top:0 !important;
  }
  body[data-page="home"] .settings-search__input{
    min-height:42px !important;
    padding:0 13px !important;
    font-size:.95rem !important;
    border-radius:15px !important;
  }

  /* Flatten the manager section on mobile: keep one clear outer section and one card layer. */
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"]{
    padding-inline:8px !important;
  }
  
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block + .settings-manager-block{
    
    
    border-top:1px solid rgba(255,255,255,.055) !important;
  }
  
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block__title{
    font-size:.77rem !important;
    
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block__body{
    gap:8px !important;
  }

  /* Ticker cards: chart toggle at top right, compact buttons, more breathing room. */
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-favorite-row{
    
    
    gap:8px !important;
    padding:10px 10px 11px !important;
    
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-favorite-row__topline{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    align-items:start !important;
    gap:8px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-favorite-row--chartable .settings-ticker-row__label-wrap,
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-favorite-row__topline .settings-ticker-row__label-wrap{
    min-width:0 !important;
    padding-right:2px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-chart-toggle{
    justify-self:end !important;
    align-self:start !important;
    min-height:28px !important;
    padding:4px 8px !important;
    font-size:.68rem !important;
    line-height:1 !important;
    white-space:nowrap !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-favorite-row__main{
    
    grid-template-columns:1fr !important;
    gap:8px !important;
    
  }
  
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-favorite-row__meta .settings-ticker-row__value{
    font-size:1.05rem !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-ticker-row__delta{
    font-size:.86rem !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-mini-actions--manager{
    
    
    
    gap:6px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-mini-actions--manager .settings-mini-btn{
    
    min-height:32px !important;
    padding:5px 6px !important;
    font-size:.74rem !important;
    
    
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-mini-actions--manager .settings-mini-btn.is-danger{
    padding-inline:5px !important;
  }

  /* Available ticker rows: retain density without forcing the whole section wider. */
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-ticker-row{
    padding:8px 9px !important;
    border-radius:13px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-ticker-row__main{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:7px !important;
    width:100% !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-ticker-row__meta{
    width:100% !important;
    justify-content:space-between !important;
    gap:8px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-ticker-row__meta .settings-mini-btn{
    min-height:30px !important;
    padding:5px 9px !important;
    font-size:.72rem !important;
  }

  /* Profile/session/source cards keep the same glass family but lose avoidable nesting width. */
  body[data-page="home"] .settings-session-row,
  body[data-page="home"] .settings-profile-card,
  body[data-page="home"] .settings-source-feed-panel,
  body[data-page="home"] .settings-source-feed-panel__block{
    padding:9px !important;
    border-radius:14px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="user"] .settings-section-heading,
  body[data-page="home"] .settings-shell-section[data-settings-section="profile"] .settings-section-heading{
    margin-bottom:0 !important;
  }
}


/* SO mobile Ticker Manager tightening pass — 2026-04-27 */
@media (max-width:760px){
  body[data-page="home"] .settings-shell-body{
    gap:10px !important;
    padding:10px 12px 16px !important;
  }
  body[data-page="home"] .settings-shell-section{
    
    
    border-radius:22px !important;
  }
  body[data-page="home"] .settings-section-heading{
    position:relative !important;
    gap:8px !important;
  }
  body[data-page="home"] .settings-section-heading-row,
  body[data-page="home"] .settings-section-heading-row--discovery{
    position:relative !important;
    display:flex !important;
    align-items:flex-start !important;
    justify-content:space-between !important;
    width:100% !important;
    min-height:42px !important;
    padding-right:48px !important;
    gap:10px !important;
  }
  body[data-page="home"] .settings-section-heading-main{
    min-width:0 !important;
    display:flex !important;
    
    gap:10px !important;
    flex-wrap:wrap !important;
  }
  
  body[data-page="home"] .settings-section-controls{
    position:absolute !important;
    top:0 !important;
    right:0 !important;
    width:auto !important;
    margin-left:0 !important;
    justify-content:flex-end !important;
  }
  body[data-page="home"] .settings-section-toggle{
    width:40px !important;
    height:40px !important;
    min-width:40px !important;
    border-radius:999px !important;
    background:rgba(255,255,255,.045) !important;
    border-color:rgba(255,255,255,.105) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.045) !important;
  }

  body[data-page="home"] .settings-shell-section[data-settings-section="manager"]{
    padding:14px 12px 13px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-section-heading{
    margin-bottom:0 !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-search-row{
    width:100% !important;
    margin-top:0 !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-search{
    display:block !important;
    width:100% !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-search__input{
    width:100% !important;
    min-height:48px !important;
    padding:0 15px !important;
    border-radius:18px !important;
    border-color:rgba(159,202,255,.105) !important;
    background:linear-gradient(180deg, rgba(255,255,255,.040), rgba(255,255,255,.018)) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.040), 0 10px 24px rgba(0,0,0,.12) !important;
    color:rgba(238,246,255,.90) !important;
    font-size:1rem !important;
    letter-spacing:.01em !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-search__input::placeholder{
    color:rgba(205,219,236,.58) !important;
    opacity:1 !important;
  }

  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block{
    
    
    border-radius:0 !important;
    
    
    gap:8px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block + .settings-manager-block{
    margin-top:12px !important;
    padding-top:10px !important;
    border-top:1px solid rgba(255,255,255,.050) !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block__title-row{
    display:flex !important;
    
    justify-content:space-between !important;
    gap:8px !important;
    flex-wrap:nowrap !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block__title{
    min-width:0 !important;
    font-size:.78rem !important;
    letter-spacing:.115em !important;
    line-height:1.1 !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block__body{
    gap:9px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block__note,
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-collapsed__hint{
    display:none !important;
  }

  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-favorite-row{
    position:relative !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:10px !important;
    padding:13px 11px 12px !important;
    border-radius:18px !important;
    background:linear-gradient(180deg, rgba(255,255,255,.030), rgba(255,255,255,.014)) !important;
    border-color:rgba(255,255,255,.055) !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-favorite-row--chartable .settings-favorite-row__topline{
    display:block !important;
    min-width:0 !important;
    padding-right:106px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-favorite-row--chartable .settings-chart-toggle{
    position:absolute !important;
    top:13px !important;
    right:11px !important;
    justify-self:end !important;
    min-height:32px !important;
    max-width:104px !important;
    padding:5px 9px !important;
    font-size:.72rem !important;
    line-height:1 !important;
    white-space:nowrap !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-favorite-row__label{
    font-size:1.02rem !important;
    line-height:1.16 !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-favorite-row .settings-ticker-row__sub{
    margin-top:3px !important;
    font-size:.78rem !important;
    line-height:1.25 !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-favorite-row__main{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:9px !important;
    align-items:stretch !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-favorite-row__meta{
    width:100% !important;
    display:flex !important;
    
    justify-content:space-between !important;
    gap:10px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-favorite-row__meta .settings-ticker-row__value{
    font-size:1.18rem !important;
    line-height:1.1 !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-favorite-row__meta .settings-ticker-row__delta{
    font-size:.88rem !important;
    line-height:1.1 !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-mini-actions--manager{
    width:100% !important;
    display:grid !important;
    grid-template-columns:repeat(3, minmax(0,1fr)) !important;
    gap:7px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-mini-actions--manager .settings-mini-btn{
    min-width:0 !important;
    min-height:38px !important;
    padding:6px 7px !important;
    
    font-size:.82rem !important;
    
    justify-content:center !important;
    text-align:center !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-mini-actions--manager .settings-mini-btn.is-danger{
    padding-inline:6px !important;
  }

  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block__title-row .settings-section-meta,
  body[data-page="home"] .settings-section-heading-main .settings-section-meta{
    margin-left:auto !important;
    flex:0 0 auto !important;
    white-space:nowrap !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-collapsed__head{
    justify-content:flex-start !important;
  }
}

/* SO Ticker Manager responsive consolidation pass — 2026-04-27
   Root-level mobile layout refinement: tighter controls, lighter search, cleaner card rhythm,
   and unified desktop/mobile manager search field treatment. */
body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-search__input{
  border-color:rgba(159,202,255,.13) !important;
  background:linear-gradient(180deg, rgba(255,255,255,.050), rgba(255,255,255,.022)) !important;
  color:rgba(236,244,255,.90) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055), 0 10px 24px rgba(0,0,0,.12) !important;
  caret-color:rgba(207,222,240,.88) !important;
}
body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-search__input::placeholder{
  color:rgba(203,216,234,.55) !important;
  opacity:1 !important;
}
body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-search__input:focus{
  border-color:rgba(179,212,255,.26) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.065), 0 0 0 2px rgba(159,202,255,.075), 0 12px 28px rgba(0,0,0,.14) !important;
}

@media (max-width:760px){
  body[data-page="home"] .settings-shell-section{
    padding:12px 11px !important;
    gap:9px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"]{
    padding:12px 11px 12px !important;
  }
  body[data-page="home"] .settings-section-heading-row,
  body[data-page="home"] .settings-section-heading-row--discovery{
    align-items:center !important;
    min-height:36px !important;
    padding-right:40px !important;
  }
  body[data-page="home"] .settings-section-heading-main{
    flex-wrap:nowrap !important;
    align-items:center !important;
    gap:8px !important;
  }
  body[data-page="home"] .settings-section-heading-main h3{
    font-size:.98rem !important;
    line-height:1.08 !important;
    letter-spacing:-.015em !important;
  }
  body[data-page="home"] .settings-section-heading-main .settings-section-meta{
    margin-left:4px !important;
    transform:translateY(0) !important;
  }
  body[data-page="home"] .settings-section-heading-row > .settings-section-toggle,
  body[data-page="home"] .settings-section-controls{
    position:absolute !important;
    top:50% !important;
    right:0 !important;
    transform:translateY(-50%) !important;
    margin:0 !important;
  }
  body[data-page="home"] .settings-section-controls .settings-section-toggle,
  body[data-page="home"] .settings-section-heading-row > .settings-section-toggle{
    width:34px !important;
    height:34px !important;
    min-width:34px !important;
    flex-basis:34px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="user"] .settings-section-heading-row > .settings-section-toggle{
    right:2px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-section-heading-row{
    padding-right:40px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-section-heading-main{
    max-width:calc(100% - 2px) !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-section-heading-main h3{
    flex:0 1 auto !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-section-heading-main .settings-section-meta{
    font-size:.66rem !important;
    padding:3px 8px !important;
  }

  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-search-row{
    margin-top:-1px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-search__input{
    letter-spacing:.005em !important;
  }

  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block__title{
    font-size:.72rem !important;
    letter-spacing:.105em !important;
    line-height:1.05 !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block__title-row .settings-section-meta{
    font-size:.63rem !important;
    padding:3px 7px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block__title-row .settings-mini-btn.is-danger,
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] [data-settings-action="profile-clear-favourites"]{
    min-height:32px !important;
    padding:5px 10px !important;
    font-size:.72rem !important;
    line-height:1.05 !important;
    max-width:148px !important;
  }

  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-favorite-row__meta{
    justify-content:flex-start !important;
    align-items:baseline !important;
  }
}


/* SO Ticker Manager root-level collapse refinement — scoped in Phase 4D.
   Source-of-truth for the collapsible Ticker Contents / Available Indicators title controls. */
body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block--collapsible{
  background:linear-gradient(180deg, rgba(255,255,255,.040), rgba(255,255,255,.018));
}
body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block[data-settings-manager-block="tickerContents"] .settings-manager-block__title-row{
  align-items:center;
}
body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block__title-toggle{
  -webkit-appearance:none;
  appearance:none;
  border:0;
  background:transparent;
  background-image:none;
  box-shadow:none;
  padding:0;
  margin:0;
  min-height:0;
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:rgba(232,214,164,.90) !important;
  text-shadow:0 0 16px rgba(232,214,164,.08);
  font:inherit;
  font-size:1.02rem;
  line-height:1.08;
  font-weight:700;
  letter-spacing:-.015em;
  text-transform:none !important;
  text-align:left;
  cursor:pointer;
}
body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block__title-toggle:hover,
body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block__title-toggle:focus-visible{
  color:rgba(248,228,169,.98) !important;
  outline:none;
}
body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block__title-toggle:focus-visible{
  text-decoration:underline;
  text-underline-offset:4px;
}
body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block__toggle{
  width:24px;
  height:24px;
  border-radius:999px;
  border:1px solid rgba(232,214,164,.18);
  background:rgba(232,214,164,.055);
  color:rgba(232,214,164,.92);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}
body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block__toggle span{
  display:block;
  line-height:1;
  transition:transform .18s ease;
}
body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block--collapsible[data-expanded="false"] .settings-manager-block__toggle span{
  transform:rotate(-90deg);
}
body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block--collapsible[data-expanded="false"] .settings-manager-block__body{
  display:none !important;
}
body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block[data-settings-manager-block="tickerContents"] .settings-manager-block__title{
  text-transform:none !important;
  letter-spacing:-.015em !important;
}
@media (max-width:760px){
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block__title-toggle{
    font-size:.98rem !important;
    
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block[data-settings-manager-block="tickerContents"] .settings-manager-block__title-row{
    gap:8px !important;
    flex-wrap:nowrap !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block[data-settings-manager-block="tickerContents"] .settings-section-meta{
    margin-left:auto !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block[data-settings-manager-block="tickerContents"] [data-settings-action="profile-clear-favourites"]{
    max-width:122px !important;
  }
}

/* Phase RO-3A — mobile RSS Monitor compact shell, 2026-04-28
   Scope: RO mobile shell only. Keeps desktop RO diagnostics intact while removing mobile hero/status density. */
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-shell-card{
    border-radius:20px !important;
    background:
      radial-gradient(circle at 18% 0%, rgba(110,198,255,.085), transparent 34%),
      radial-gradient(circle at 84% 6%, rgba(255,214,151,.040), transparent 30%),
      linear-gradient(180deg, rgba(19,32,47,.84), rgba(7,13,22,.80)) !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-shell-header{
    position:absolute !important;
    width:1px !important;
    height:1px !important;
    padding:0 !important;
    margin:0 !important;
    overflow:hidden !important;
    clip:rect(0 0 0 0) !important;
    clip-path:inset(50%) !important;
    border:0 !important;
    background:transparent !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-shell-close{
    width:38px !important;
    min-width:38px !important;
    height:38px !important;
    top:max(10px, env(safe-area-inset-top, 0px) + 6px) !important;
    right:max(18px, env(safe-area-inset-right, 0px) + 14px) !important;
    border-radius:999px !important;
    background:rgba(5,11,20,.72) !important;
    border-color:rgba(214,229,248,.16) !important;
    box-shadow:0 10px 26px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.045) !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-shell-body{
    padding:5px 10px 14px !important;
    gap:8px !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-mobile-titlebar{
    display:flex !important;
    align-items:center !important;
    min-height:26px !important;
    margin:0 48px 2px 2px !important;
    padding:0 !important;
    color:rgba(235,246,255,.94) !important;
    text-shadow:0 8px 24px rgba(93,181,255,.15) !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-mobile-titlebar span{
    display:block !important;
    min-width:0 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
    font-size:1.00rem !important;
    line-height:1.06 !important;
    font-weight:780 !important;
    letter-spacing:.02em !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-shell-status,
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-ro-toolbar{
    display:none !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-progress-host{
    display:none !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-shell-card.is-rss-refreshing .rss-shell-body{
    padding-bottom:14px !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-tab-row--mobile-compact{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:6px !important;
    padding:3px !important;
    margin:0 !important;
    border-radius:16px !important;
    border-color:rgba(214,229,248,.08) !important;
    background:rgba(5,10,18,.26) !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-tab-row--mobile-compact .rss-tab-btn{
    min-height:35px !important;
    padding:0 10px !important;
    border-radius:13px !important;
    font-size:.84rem !important;
    line-height:1 !important;
    letter-spacing:.01em !important;
    color:rgba(224,237,248,.78) !important;
    -webkit-tap-highlight-color:transparent !important;
    touch-action:manipulation !important;
    user-select:none !important;
    outline:none !important;
    transition:background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-tab-row--mobile-compact .rss-tab-btn.is-active{
    color:#edf8ff !important;
    background:linear-gradient(180deg, rgba(110,198,255,.18), rgba(61,122,178,.10)) !important;
    border-color:rgba(110,198,255,.28) !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-tab-row--mobile-compact .rss-tab-btn:focus:not(:focus-visible){
    outline:none !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.035) !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-tab-row--mobile-compact .rss-tab-btn:active{
    transform:none !important;
    background:rgba(255,255,255,.035) !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-tab-row--mobile-compact .rss-tab-btn.is-active:active{
    background:linear-gradient(180deg, rgba(110,198,255,.18), rgba(61,122,178,.10)) !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact.is-rss-tab-switching .rss-tab-row--mobile-compact{
    pointer-events:none !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-control-panel--mobile-compact{
    display:grid !important;
    gap:8px !important;
    padding:9px !important;
    border-radius:16px !important;
    border-color:rgba(137,196,255,.10) !important;
    background:
      radial-gradient(circle at 10% 0%, rgba(110,198,255,.055), transparent 34%),
      rgba(255,255,255,.018) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.026) !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-control-panel__mobile-head{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:8px !important;
    min-width:0 !important;
    padding:0 1px 1px !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-control-panel__mobile-head span{
    min-width:0 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
    color:rgba(221,235,247,.74) !important;
    font-size:.72rem !important;
    line-height:1.2 !important;
    font-weight:650 !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-compact-refresh-btn{
    appearance:none !important;
    flex:0 0 auto !important;
    min-height:30px !important;
    max-width:44% !important;
    padding:0 11px !important;
    border-radius:999px !important;
    border:1px solid rgba(118,190,255,.22) !important;
    background:linear-gradient(180deg, rgba(82,157,225,.18), rgba(39,83,132,.10)) !important;
    color:rgba(236,248,255,.88) !important;
    font:inherit !important;
    font-size:.68rem !important;
    font-weight:760 !important;
    line-height:1 !important;
    white-space:nowrap !important;
    cursor:pointer !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.052), 0 6px 16px rgba(0,0,0,.14) !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-compact-refresh-btn[aria-busy="true"]{
    opacity:.78 !important;
    cursor:default !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-control-panel--mobile-compact .rss-filter-row{
    position:relative !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:7px !important;
    align-items:stretch !important;
    overflow:visible !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-control-panel--mobile-compact .rss-filter--select{
    position:relative !important;
    z-index:4 !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact.is-rss-filter-category-open .rss-control-panel--mobile-compact .rss-filter--select:first-child{
    z-index:120 !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact.is-rss-filter-category-open .rss-control-panel--mobile-compact .rss-filter--select:nth-child(2){
    z-index:3 !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact.is-rss-filter-source-open .rss-control-panel--mobile-compact .rss-filter--select:nth-child(2){
    z-index:120 !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-control-panel--mobile-compact .rss-filter{
    gap:4px !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-control-panel--mobile-compact .rss-filter__label{
    font-size:.60rem !important;
    line-height:1 !important;
    letter-spacing:.12em !important;
    color:rgba(204,222,237,.58) !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-custom-select__button{
    min-height:40px !important;
    padding:0 8px 0 11px !important;
    border-radius:13px !important;
    font-size:.90rem !important;
    background:
      linear-gradient(90deg, transparent calc(100% - 39px), rgba(232,214,164,.070) calc(100% - 39px), rgba(232,214,164,.070) 100%),
      linear-gradient(180deg, rgba(255,255,255,.024), rgba(255,255,255,.006)),
      rgba(6,12,21,.40) !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-custom-select__chevron{
    flex-basis:22px !important;
    width:22px !important;
    height:22px !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-custom-select__chevron::before,
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-custom-select__chevron::after{
    top:10px !important;
    width:7px !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-custom-select__chevron::before{left:5px !important;}
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-custom-select__chevron::after{right:5px !important;}
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-custom-select__menu{
    z-index:900 !important;
    max-height:min(270px, 45vh) !important;
    border-radius:14px !important;
    padding:6px !important;
    background:
      radial-gradient(circle at 12% 0%, rgba(110,198,255,.070), transparent 38%),
      linear-gradient(180deg, rgba(10,19,32,.985), rgba(5,10,18,.965)) !important;
    border-color:rgba(214,229,248,.14) !important;
    box-shadow:0 22px 58px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.04) !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-custom-select--category.is-open{
    z-index:140 !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-custom-select--source.is-open{
    z-index:140 !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-custom-select--category.is-open .rss-custom-select__menu{
    top:calc(100% + 4px) !important;
    min-height:0 !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-custom-select__option{
    min-height:32px !important;
    padding:7px 9px !important;
    border-radius:10px !important;
    font-size:.80rem !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-custom-select__option:first-child{
    margin-top:0 !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-search-wrap{
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    gap:6px !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-search-wrap input[type="search"]{
    min-height:40px !important;
    padding:0 11px !important;
    border-radius:13px !important;
    font-size:.90rem !important;
    background:rgba(4,9,16,.46) !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-search-wrap input[type="search"]::placeholder{
    color:rgba(213,226,239,.36) !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-search-clear{
    width:auto !important;
    min-height:40px !important;
    padding:0 10px !important;
    border-radius:13px !important;
    font-size:.66rem !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-feed-list{
    gap:9px !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-item{
    padding:12px 12px 13px 14px !important;
    border-radius:17px !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-item::before{
    top:12px !important;
    bottom:12px !important;
    width:3px !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-item__topline{
    gap:6px !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-item__meta{
    gap:6px !important;
    font-size:.70rem !important;
    line-height:1.18 !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-item__source{
    max-width:100% !important;
    font-size:.70rem !important;
    letter-spacing:.005em !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-pill{
    padding:3px 8px !important;
    font-size:.66rem !important;
    line-height:1.1 !important;
    max-width:100% !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-item__title{
    margin:1px 0 0 !important;
    font-size:.94rem !important;
    line-height:1.32 !important;
    font-weight:720 !important;
    letter-spacing:-.012em !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-item__summary{
    margin:1px 0 0 !important;
    font-size:.78rem !important;
    line-height:1.43 !important;
    color:rgba(213,226,239,.62) !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-search-window-note--more{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:8px !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-reader-more-btn{
    appearance:none !important;
    flex:0 0 auto !important;
    min-height:28px !important;
    padding:0 10px !important;
    border-radius:999px !important;
    border:1px solid rgba(118,190,255,.22) !important;
    background:linear-gradient(180deg, rgba(82,157,225,.16), rgba(39,83,132,.09)) !important;
    color:rgba(236,248,255,.86) !important;
    font:inherit !important;
    font-size:.68rem !important;
    font-weight:760 !important;
    cursor:pointer !important;
  }
@media (max-width:390px){
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-shell-body{
    padding-inline:8px !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-control-panel--mobile-compact{
    padding:8px !important;
  }
  body[data-page="home"] .rss-shell-layer.is-rss-mobile-compact .rss-control-panel__mobile-head span{
    font-size:.68rem !important;
  }
}

/* SO Ticker Manager Available Indicators root-level collapse refinement — scoped in Phase 4D, 2026-04-29
   Makes Available Indicators the yellow collapsible control for the indicator universe. */
body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block[data-settings-manager-block="indicatorUniverse"] .settings-manager-block__title-row{
  align-items:center;
}
body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block[data-settings-manager-block="indicatorUniverse"] .settings-manager-block__title{
  text-transform:none !important;
  letter-spacing:-.015em !important;
}
body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block[data-settings-manager-block="indicatorUniverse"] .settings-manager-block__title-toggle{
  color:rgba(232,214,164,.92) !important;
}
body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block[data-settings-manager-block="indicatorUniverse"] .settings-manager-block__body{
  padding-top:2px;
}
@media (max-width:760px){
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block[data-settings-manager-block="indicatorUniverse"] .settings-manager-block__title-row{
    gap:8px !important;
    flex-wrap:nowrap !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block[data-settings-manager-block="indicatorUniverse"] .settings-section-meta{
    margin-left:auto !important;
  }
}

/* Phase 3B/4C/4F — SO mobile Ticker Manager visual consolidation, 2026-04-29
   Scope: mobile Settings Overlay / Ticker Manager only. Desktop layout and data/state systems unchanged.
   Phase 4F keeps this block as source-of-truth for duplicated mobile search/card sizing values. */
@media (max-width:760px){
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"]{
    padding:10px 10px 11px !important;
    gap:8px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-section-heading{
    gap:7px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-section-heading-row{
    min-height:32px !important;
    padding-right:36px !important;
    gap:7px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-section-heading-main{
    min-width:0 !important;
    gap:6px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-section-heading-main h3{
    font-size:.94rem !important;
    line-height:1.05 !important;
    letter-spacing:-.02em !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-section-heading-main .settings-section-meta{
    margin-left:0 !important;
    padding:2px 7px !important;
    font-size:.60rem !important;
    line-height:1.15 !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-section-controls .settings-section-toggle,
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-section-heading-row > .settings-section-toggle{
    width:31px !important;
    height:31px !important;
    min-width:31px !important;
    flex-basis:31px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-search-row{
    margin-top:1px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-search__input{
    height:36px !important;
    min-height:36px !important;
    padding:0 11px !important;
    border-radius:14px !important;
    font-size:.80rem !important;
    background:linear-gradient(180deg, rgba(255,255,255,.038), rgba(255,255,255,.015)) !important;
  }

  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block{
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    gap:7px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block + .settings-manager-block{
    margin-top:8px !important;
    padding-top:8px !important;
    border-top:1px solid rgba(255,255,255,.045) !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block__head{
    gap:0 !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block__title-row{
    display:grid !important;
    grid-template-columns:minmax(0, 1fr) auto !important;
    grid-template-areas:"title meta" "action action" !important;
    align-items:center !important;
    gap:6px 8px !important;
    width:100% !important;
    padding:8px 9px !important;
    border-radius:14px !important;
    border:1px solid rgba(232,214,164,.105) !important;
    background:linear-gradient(180deg, rgba(232,214,164,.060), rgba(255,255,255,.018)) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.038), 0 8px 20px rgba(0,0,0,.10) !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block__title-toggle{
    grid-area:title !important;
    min-width:0 !important;
    max-width:100% !important;
    font-size:.91rem !important;
    line-height:1.08 !important;
    letter-spacing:-.018em !important;
    gap:7px !important;
    -webkit-tap-highlight-color:transparent !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block__title-toggle span:first-child{
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block__toggle{
    width:21px !important;
    height:21px !important;
    min-width:21px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block__title-row .settings-section-meta{
    grid-area:meta !important;
    margin-left:0 !important;
    justify-self:end !important;
    padding:2px 7px !important;
    font-size:.58rem !important;
    line-height:1.15 !important;
    color:rgba(224,237,248,.76) !important;
    background:rgba(255,255,255,.040) !important;
    border-color:rgba(255,255,255,.070) !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block__title-row [data-settings-action="profile-clear-favourites"]{
    grid-area:action !important;
    justify-self:start !important;
    min-height:29px !important;
    max-width:none !important;
    padding:4px 10px !important;
    border-radius:999px !important;
    font-size:.68rem !important;
    line-height:1 !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block__body{
    gap:6px !important;
    padding-top:7px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block--collapsible[data-expanded="false"] .settings-manager-block__body{
    display:none !important;
  }

  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-favorite-row{
    padding:9px 9px 9px !important;
    gap:6px !important;
    border-radius:15px !important;
    background:linear-gradient(180deg, rgba(255,255,255,.026), rgba(255,255,255,.010)) !important;
    border-color:rgba(255,255,255,.050) !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-favorite-row--chartable .settings-favorite-row__topline{
    padding-right:84px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-favorite-row--chartable .settings-chart-toggle{
    top:9px !important;
    right:9px !important;
    min-height:25px !important;
    max-width:82px !important;
    padding:3px 7px !important;
    border-radius:999px !important;
    font-size:.59rem !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-favorite-row__label{
    font-size:.88rem !important;
    line-height:1.12 !important;
    letter-spacing:-.01em !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-favorite-row .settings-ticker-row__sub{
    margin-top:2px !important;
    font-size:.65rem !important;
    line-height:1.16 !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-favorite-row__main{
    gap:6px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-favorite-row__meta{
    gap:16px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-favorite-row__meta .settings-ticker-row__value{
    font-size:.98rem !important;
    line-height:1.04 !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-favorite-row__meta .settings-ticker-row__delta{
    font-size:.70rem !important;
    line-height:1.04 !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-mini-actions--manager{
    gap:5px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-mini-actions--manager .settings-mini-btn{
    min-height:30px !important;
    padding:4px 5px !important;
    border-radius:999px !important;
    font-size:.67rem !important;
    line-height:1 !important;
  }

  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-group{
    border:1px solid rgba(255,255,255,.055) !important;
    border-radius:14px !important;
    background:rgba(255,255,255,.018) !important;
    overflow:hidden !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-group + .settings-group{
    margin-top:6px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-group__summary{
    min-height:34px !important;
    padding:7px 9px !important;
    gap:8px !important;
    list-style:none !important;
    -webkit-tap-highlight-color:transparent !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-group__summary::-webkit-details-marker{
    display:none !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-group__label{
    font-size:.79rem !important;
    line-height:1.13 !important;
    letter-spacing:-.008em !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-group__count{
    padding:2px 7px !important;
    font-size:.58rem !important;
    line-height:1.1 !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-group__body{
    padding:6px !important;
    gap:5px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-ticker-row{
    padding:7px 8px !important;
    border-radius:12px !important;
    background:linear-gradient(180deg, rgba(255,255,255,.024), rgba(255,255,255,.010)) !important;
    border-color:rgba(255,255,255,.045) !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-ticker-row__main{
    gap:6px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-ticker-row__label{
    font-size:.79rem !important;
    line-height:1.16 !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-ticker-row__sub{
    font-size:.62rem !important;
    line-height:1.18 !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-ticker-row__meta{
    gap:7px !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-ticker-row__value{
    font-size:.82rem !important;
    line-height:1.05 !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-ticker-row__delta{
    font-size:.66rem !important;
    line-height:1.05 !important;
  }
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-mini-btn--add{
    min-height:28px !important;
    padding:4px 8px !important;
    border-radius:999px !important;
    font-size:.65rem !important;
  }
}

/* Mobile ticker chart overlay proportion fix — 2026-04-30
   Keep desktop chart overlay untouched; prevent tall mobile containers from vertically stretching or clipping the expanded graph. */
@media (max-width:760px){
  .ticker-chart-overlay-layer{
    align-items:center !important;
    justify-content:center !important;
    padding:max(.55rem, env(safe-area-inset-top)) .58rem max(.65rem, env(safe-area-inset-bottom)) !important;
  }
  .ticker-chart-overlay-card{
    width:min(100%, 520px) !important;
    max-height:calc(100svh - 1.25rem - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    border-radius:22px !important;
  }
  .ticker-chart-overlay-scroll{
    box-sizing:border-box !important;
    max-height:calc(100svh - 1.25rem - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    padding:.9rem .82rem calc(1rem + env(safe-area-inset-bottom)) !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
  }
  .ticker-chart-overlay-header{
    padding-right:2.55rem !important;
  }
  .ticker-chart-overlay-header p{
    margin-bottom:.22rem !important;
    font-size:.62rem !important;
  }
  .ticker-chart-overlay-header h2{
    font-size:clamp(1.02rem, 5vw, 1.34rem) !important;
    line-height:1.08 !important;
  }
  .ticker-chart-overlay-meta{
    gap:.32rem !important;
    margin-top:.45rem !important;
    font-size:.68rem !important;
  }
  .ticker-chart-overlay-meta span,
  .ticker-chart-overlay-toolbar span{
    padding:.2rem .44rem !important;
  }
  .ticker-chart-overlay-toolbar{
    gap:.48rem !important;
    margin:.72rem 0 .55rem !important;
  }
  .ticker-chart-range-btn{
    padding:.32rem .52rem !important;
    font-size:.68rem !important;
  }
  .ticker-chart-overlay-value{
    margin-bottom:.52rem !important;
    gap:.55rem !important;
  }
  .ticker-chart-overlay-value strong{
    font-size:1.04rem !important;
  }
  .ticker-chart-overlay-plot{
    box-sizing:border-box !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    aspect-ratio:760 / 330 !important;
    overflow:visible !important;
    border-radius:18px !important;
  }
  .ticker-chart-overlay-plot .ticker-chart-svg.is-large{
    width:100% !important;
    height:100% !important;
  }
  .ticker-chart-overlay-plot .ticker-chart-svg__axis-label,
  .ticker-chart-overlay-plot .ticker-chart-svg__x-tick text{
    display:none !important;
  }
  .ticker-chart-overlay-note{
    margin:.62rem 0 0 !important;
    font-size:.72rem !important;
    line-height:1.34 !important;
  }
}


/* Phase 8B — chart readability + live-point alignment support (2026-04-30) */
body[data-page="home"] .ticker-chart-card__preview{
  height:92px !important;
  
  border-color:rgba(255,255,255,.06) !important;
  background:
    radial-gradient(circle at 18% 8%, rgba(130,162,214,.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(3,8,15,.11)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018), 0 10px 22px rgba(0,0,0,.10) !important;
}

body[data-page="home"] .ticker-chart-svg__grid line{
  stroke:rgba(255,255,255,.05) !important;
}

body[data-page="home"] .ticker-chart-svg__axis-line{
  stroke:rgba(255,255,255,.095) !important;
}

body[data-page="home"] .ticker-chart-svg__y-tick text,
body[data-page="home"] .ticker-chart-svg__x-tick text,
body[data-page="home"] .ticker-chart-svg__axis-label{
  fill:rgba(220,231,245,.56) !important;
}

body[data-page="home"] .ticker-chart-svg__axis-label{
  fill:rgba(232,214,164,.52) !important;
}

body[data-page="home"] .ticker-chart-svg__area{
  fill:rgba(232,214,164,.11) !important;
}

body[data-page="home"] .ticker-chart-svg__line{
  stroke:rgba(232,214,164,.7) !important;
  stroke-width:2.1 !important;
  filter:drop-shadow(0 0 9px rgba(232,214,164,.18)) !important;
}

body[data-page="home"] .ticker-chart-svg.is-compact .ticker-chart-svg__line{
  stroke-width:1.8 !important;
}

body[data-page="home"] .ticker-chart-svg__marker-ring{
  fill:rgba(8,15,26,.08) !important;
  stroke:rgba(238,244,252,.42) !important;
  stroke-width:1.05 !important;
}

body[data-page="home"] .ticker-chart-svg__marker-core{
  fill:rgba(232,214,164,.92) !important;
  stroke:rgba(8,15,26,.26) !important;
  stroke-width:.8 !important;
}

body[data-page="home"] .ticker-chart-svg.is-up .ticker-chart-svg__line{
  stroke:rgba(124,190,160,.8) !important;
}
body[data-page="home"] .ticker-chart-svg.is-up .ticker-chart-svg__area{
  fill:rgba(124,190,160,.12) !important;
}
body[data-page="home"] .ticker-chart-svg.is-up .ticker-chart-svg__marker-core{
  fill:rgba(124,190,160,.95) !important;
}

body[data-page="home"] .ticker-chart-svg.is-down .ticker-chart-svg__line{
  stroke:rgba(200,132,142,.82) !important;
}
body[data-page="home"] .ticker-chart-svg.is-down .ticker-chart-svg__area{
  fill:rgba(200,132,142,.12) !important;
}
body[data-page="home"] .ticker-chart-svg.is-down .ticker-chart-svg__marker-core{
  fill:rgba(200,132,142,.95) !important;
}

@media (max-width:760px){
  body[data-page="home"] .ticker-chart-card__preview{
    height:88px !important;
  }
}

/* RSS Source Overlay image-card mode — C1 overlay-only integration, 2026-05-02 */
.source-feed-overlay-meta__image-mode{
  color:rgba(243,228,234,.88) !important;
  border-color:rgba(232,214,164,.18) !important;
  background:rgba(232,214,164,.055) !important;
}
.source-feed-overlay-list--image-mode{
  gap:.86rem;
}
.source-feed-overlay-list--image-mode .source-feed-overlay-item--image{
  overflow:hidden;
  padding:0 !important;
  gap:0;
  border-radius:20px;
  background:
    radial-gradient(circle at 18% 0%, rgba(124,160,205,.030), transparent 35%),
    linear-gradient(180deg, rgba(20,32,46,.34), rgba(8,14,22,.22)) !important;
}
.source-feed-overlay-image-card__image-link,
.source-feed-overlay-image-card__media{
  display:block;
}
.source-feed-overlay-image-card__media{
  position:relative;
  width:100%;
  aspect-ratio:16 / 8.4;
  min-height:150px;
  max-height:260px;
  overflow:hidden;
  border-bottom:1px solid rgba(255,255,255,.052);
  background:rgba(7,16,24,.28);
}
.source-feed-overlay-image-card__media img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  transform:translateZ(0);
}
.source-feed-overlay-image-card__body{
  display:grid;
  gap:.38rem;
  padding:.9rem .95rem .95rem;
}
.source-feed-overlay-list--image-mode .source-feed-overlay-item:not(.source-feed-overlay-item--image){
  border-style:dashed;
  background:linear-gradient(180deg, rgba(255,255,255,.012), rgba(255,255,255,.006)) !important;
}
@media (max-width: 720px){
  .source-feed-overlay-image-card__media{
    aspect-ratio:16 / 9.8;
    min-height:122px;
    max-height:190px;
  }
  .source-feed-overlay-image-card__body{
    padding:.78rem .78rem .84rem;
  }
}


/* RSS Source Overlay responsive image grid — enforced delivery rebuild 8251, 2026-05-02
   Fixes the visible one-column desktop overlay by combining: JS-applied image-mode layer class, cache-busted CSS/JS versions, and exact live selector enforcement.
   Overlay-only: no RSS cache/config/data/admin/FMP write behavior is changed. */
body[data-page="home"] .source-feed-overlay-layer.source-feed-overlay-layer--image-mode .source-feed-overlay-card{
  width:min(1180px, calc(100vw - 68px)) !important;
}
body[data-page="home"] .source-feed-overlay-layer.source-feed-overlay-layer--image-mode .source-feed-overlay-scroll{
  padding:clamp(1rem, 1.35vw, 1.3rem) !important;
}
body[data-page="home"] .source-feed-overlay-layer.source-feed-overlay-layer--image-mode .source-feed-overlay-header{
  margin-bottom:clamp(.82rem, 1vw, 1.05rem) !important;
}
body[data-page="home"] .source-feed-overlay-layer.source-feed-overlay-layer--image-mode .source-feed-overlay-list.source-feed-overlay-list--image-mode{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  align-items:stretch !important;
  gap:clamp(.72rem, 1vw, .95rem) !important;
}
body[data-page="home"] .source-feed-overlay-layer.source-feed-overlay-layer--image-mode .source-feed-overlay-list.source-feed-overlay-list--image-mode > .source-feed-overlay-item{
  width:auto !important;
  max-width:none !important;
  min-width:0 !important;
  height:100% !important;
}
body[data-page="home"] .source-feed-overlay-layer.source-feed-overlay-layer--image-mode .source-feed-overlay-list.source-feed-overlay-list--image-mode .source-feed-overlay-item h4{
  display:-webkit-box !important;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:clamp(.88rem, .86vw, .98rem);
  line-height:1.27;
}
body[data-page="home"] .source-feed-overlay-layer.source-feed-overlay-layer--image-mode .source-feed-overlay-list.source-feed-overlay-list--image-mode .source-feed-overlay-item p{
  display:-webkit-box !important;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:.78rem;
  line-height:1.42;
}
body[data-page="home"] .source-feed-overlay-layer.source-feed-overlay-layer--image-mode .source-feed-overlay-list.source-feed-overlay-list--image-mode .source-feed-overlay-image-card__media{
  aspect-ratio:16 / 9 !important;
  min-height:0 !important;
  max-height:none !important;
}
body[data-page="home"] .source-feed-overlay-layer.source-feed-overlay-layer--image-mode .source-feed-overlay-list.source-feed-overlay-list--image-mode .source-feed-overlay-image-card__body{
  padding:.82rem .86rem .9rem !important;
}
body[data-page="home"] .source-feed-overlay-layer.source-feed-overlay-layer--image-mode .source-feed-overlay-list.source-feed-overlay-list--image-mode .source-feed-overlay-item:not(.source-feed-overlay-item--image){
  align-content:start;
  padding:.82rem .86rem .9rem !important;
  min-height:0 !important;
}
@media (max-width: 980px){
  body[data-page="home"] .source-feed-overlay-layer.source-feed-overlay-layer--image-mode .source-feed-overlay-card{
    width:min(820px, calc(100vw - 42px)) !important;
  }
  body[data-page="home"] .source-feed-overlay-layer.source-feed-overlay-layer--image-mode .source-feed-overlay-list.source-feed-overlay-list--image-mode{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 720px){
  body[data-page="home"] .source-feed-overlay-layer.source-feed-overlay-layer--image-mode .source-feed-overlay-card{
    width:min(520px, calc(100vw - 24px)) !important;
  }
  body[data-page="home"] .source-feed-overlay-layer.source-feed-overlay-layer--image-mode .source-feed-overlay-list.source-feed-overlay-list--image-mode{
    grid-template-columns:1fr !important;
  }
  body[data-page="home"] .source-feed-overlay-layer.source-feed-overlay-layer--image-mode .source-feed-overlay-list.source-feed-overlay-list--image-mode .source-feed-overlay-item h4{
    -webkit-line-clamp:4;
  }
  body[data-page="home"] .source-feed-overlay-layer.source-feed-overlay-layer--image-mode .source-feed-overlay-list.source-feed-overlay-list--image-mode .source-feed-overlay-image-card__media{
    aspect-ratio:16 / 9.8 !important;
  }
}

/* CCR Intelligence Ribbon — Phase 2A public-side shell */
body[data-page="home"] .ccr-intelligence-ribbon{
  width:min(1180px, calc(100vw - 32px));
  margin:14px auto 22px;
  color:rgba(247,250,255,.95);
}

body[data-page="home"] .ccr-intelligence-ribbon[hidden]{
  display:none!important;
}

body[data-page="home"] .ccr-intelligence-ribbon__inner{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(198,218,255,.18);
  border-radius:26px;
  background:
    radial-gradient(circle at 18% 0%, rgba(111,153,220,.20), transparent 34%),
    radial-gradient(circle at 86% 16%, rgba(222,178,201,.13), transparent 28%),
    linear-gradient(145deg, rgba(12,19,34,.78), rgba(8,12,22,.64));
  box-shadow:0 22px 66px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  padding:18px;
}

body[data-page="home"] .ccr-intelligence-ribbon__inner::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg, rgba(255,255,255,.055), transparent 30%, transparent 70%, rgba(255,255,255,.035));
  opacity:.8;
}

body[data-page="home"] .ccr-intelligence-ribbon__header,
body[data-page="home"] .ccr-intelligence-ribbon__panel{
  position:relative;
  z-index:1;
}

body[data-page="home"] .ccr-intelligence-ribbon__header{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  
  margin-bottom:14px;
}

body[data-page="home"] .ccr-intelligence-ribbon__eyebrow{
  display:inline-flex;
  width:max-content;
  margin-bottom:7px;
  padding:4px 10px;
  border:1px solid rgba(230,198,137,.28);
  border-radius:999px;
  background:rgba(231,194,123,.08);
  color:rgba(236,211,159,.96);
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.13em;
  text-transform:uppercase;
}

body[data-page="home"] .ccr-intelligence-ribbon__copy h2{
  margin:0;
  font-family:var(--font-display, var(--font-body));
  font-size:clamp(1.15rem, 1.8vw, 1.72rem);
  line-height:1.08;
  letter-spacing:.015em;
  color:rgba(247,250,255,.98);
}

body[data-page="home"] .ccr-intelligence-ribbon__copy p{
  max-width:760px;
  margin:7px 0 0;
  color:rgba(218,227,241,.76);
  font-size:.86rem;
  line-height:1.52;
}

body[data-page="home"] .ccr-intelligence-ribbon__tabs{
  display:flex;
  flex-wrap:wrap;
  
  gap:8px;
}

body[data-page="home"] .ccr-intelligence-ribbon__tab{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:8px 13px;
  border:1px solid rgba(190,213,249,.23);
  border-radius:999px;
  background:rgba(255,255,255,.07);
  color:rgba(243,247,255,.93);
  font:inherit;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.03em;
  cursor:default;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}

body[data-page="home"] .ccr-intelligence-ribbon__tab.is-active{
  border-color:rgba(232,201,145,.44);
  background:linear-gradient(135deg, rgba(232,201,145,.18), rgba(130,166,224,.12));
}

body[data-page="home"] .ccr-intelligence-ribbon__tab small{
  color:rgba(219,229,245,.65);
  font-size:.68rem;
  font-weight:700;
}

body[data-page="home"] .ccr-intelligence-ribbon__cards{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
  align-items:start;
}

body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card{
  min-width:0;
  overflow:hidden;
  border-color:rgba(188,209,244,.16);
  border-radius:22px;
  background:
    linear-gradient(180deg, rgba(24,34,54,.82), rgba(10,15,27,.74)),
    rgba(12,18,31,.68);
  box-shadow:0 16px 38px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.06);
}

body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card:hover{
  transform:translateY(-2px);
  border-color:rgba(222,198,149,.30);
  box-shadow:0 20px 48px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.08);
}

body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card > .intel-card__toggle{
  min-height:100%;
  padding:12px 12px 13px;
  display:flex;
  flex-direction:column;
  gap:9px;
}

body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card .card-toggle-media{
  width:100%;
  margin:0 0 2px;
}

body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card .card-toggle-media__frame{
  height:auto!important;
  aspect-ratio:16/9;
  min-height:0;
  border-radius:16px;
  overflow:hidden;
  background:rgba(255,255,255,.045);
}

body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card .card-toggle-media__image,
body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card .card-toggle-media__bg-image{
  width:100%;
  height:100%;
  object-fit:cover;
}

body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card h3{
  margin:0;
  color:rgba(248,245,250,.98);
  font-size:clamp(.98rem, 1.15vw, 1.14rem);
  line-height:1.28;
  letter-spacing:.006em;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card .meta-block{
  margin-top:auto;
  gap:5px;
}

body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card .meta-date{
  color:rgba(216,227,244,.70);
  font-size:.71rem;
}

body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card .meta-row{
  gap:5px;
}

body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card .tag,
body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card .risk-pill{
  font-size:.62rem;
  line-height:1.1;
}

body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card > .intel-card__panel{
  border-top:1px solid rgba(255,255,255,.08);
  background:rgba(4,8,16,.26);
}

body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card .intel-card__panel-inner{
  padding:0 12px 14px;
}

@media (max-width:980px){
  body[data-page="home"] .ccr-intelligence-ribbon{
    width:min(100% - 24px, 920px);
    margin-top:12px;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__cards{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:640px){
  body[data-page="home"] .ccr-intelligence-ribbon{
    width:calc(100% - 18px);
    margin:10px auto 16px;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__copy p{
    font-size:.78rem;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__cards{
    grid-template-columns:1fr;
    gap:11px;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card h3{
    font-size:1rem;
  }
}


/* Phase 2A style harmonization — CCR Intelligence Ribbon glass/visual polish */
body[data-page="home"].ccr-ribbon-active .home-main > .home-hero:not(#selectedTickerChartSection),
body[data-page="home"] .home-main > .home-hero[hidden]:not(#selectedTickerChartSection){
  display:none !important;
}

body[data-page="home"] .ccr-intelligence-ribbon{
  width:min(1180px, calc(100vw - 28px));
  
}

body[data-page="home"] .ccr-intelligence-ribbon__inner{
  border:1px solid rgba(255,255,255,.075);
  border-radius:24px;
  background:
    radial-gradient(circle at 16% 0%, rgba(116,149,187,.10), transparent 34%),
    radial-gradient(circle at 88% 16%, rgba(222,178,201,.08), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,.010));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035), 0 14px 32px rgba(0,0,0,.18);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  padding:16px 16px 18px;
}

body[data-page="home"] .ccr-intelligence-ribbon__inner::before{
  background:linear-gradient(180deg, rgba(255,255,255,.020), rgba(255,255,255,.008));
  opacity:1;
}

body[data-page="home"] .ccr-intelligence-ribbon__header{
  gap:14px;
  margin-bottom:12px;
  align-items:center;
}

body[data-page="home"] .ccr-intelligence-ribbon__eyebrow{
  margin-bottom:6px;
  padding:.24rem .54rem;
  border:1px solid rgba(232,214,164,.10);
  background:rgba(255,255,255,.018);
  color:rgba(232,214,164,.72);
  font-size:.66rem;
  letter-spacing:.095em;
}

body[data-page="home"] .ccr-intelligence-ribbon__copy h2{
  color:rgba(244,227,234,.97);
  font-size:clamp(1.08rem, 1.55vw, 1.58rem);
  letter-spacing:-.012em;
}

body[data-page="home"] .ccr-intelligence-ribbon__copy p{
  max-width:640px;
  margin:5px 0 0;
  color:rgba(227,236,246,.66);
  font-size:.80rem;
  line-height:1.44;
}

body[data-page="home"] .ccr-intelligence-ribbon__tabs{
  gap:7px;
}

body[data-page="home"] .ccr-intelligence-ribbon__tab{
  min-height:34px;
  padding:7px 12px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.030), rgba(255,255,255,.015));
  color:rgba(236,242,249,.88);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}

body[data-page="home"] .ccr-intelligence-ribbon__tab.is-active{
  border-color:rgba(232,214,164,.16);
  background:linear-gradient(180deg, rgba(255,255,255,.042), rgba(255,255,255,.020));
}

body[data-page="home"] .ccr-intelligence-ribbon__tab small{
  color:rgba(205,219,236,.58);
}

body[data-page="home"] .ccr-intelligence-ribbon__cards{
  gap:13px;
}

body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card{
  border:1px solid rgba(255,255,255,.070);
  border-radius:20px;
  background:linear-gradient(180deg,rgba(255,255,255,.022),rgba(255,255,255,.010));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.024),0 10px 24px rgba(0,0,0,.14);
  transition:border-color var(--fast), box-shadow var(--fast), background var(--fast), transform var(--fast);
}

body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.105);
  background:linear-gradient(180deg,rgba(255,255,255,.030),rgba(255,255,255,.014));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.032),0 13px 30px rgba(0,0,0,.18);
}

body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card > .intel-card__toggle{
  padding:12px 12px 12px;
  gap:8px;
}

body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card .card-toggle-media__frame{
  border-radius:15px;
  background:rgba(255,255,255,.028);
}

body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card h3{
  color:var(--ccr-card-headline-color,#e2c3cc) !important;
  filter:brightness(var(--ccr-card-headline-brightness,100%));
  opacity:var(--ccr-card-headline-opacity,1);
  font-weight:var(--ccr-card-headline-weight,600) !important;
  font-size:var(--ccr-card-headline-size,1rem) !important;
  line-height:1.24;
  letter-spacing:-.012em;
}

body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card .meta-date{
  color:var(--ccr-card-subtext-color,rgba(226,236,247,.70)) !important;
  filter:brightness(var(--ccr-card-subtext-brightness,100%));
  opacity:var(--ccr-card-subtext-opacity,.70);
  font-weight:var(--ccr-card-subtext-weight,500) !important;
  font-size:var(--ccr-card-subtext-size,.72rem) !important;
}

body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card .tag,
body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card .risk-pill{
  font-size:.65rem;
}

body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card > .intel-card__panel{
  border-top:1px solid rgba(255,255,255,.065);
  background:rgba(255,255,255,.012);
}

body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card .intel-card__panel-inner{
  padding:0 12px 12px;
}

@media (max-width:980px){
  body[data-page="home"] .ccr-intelligence-ribbon{
    width:min(calc(100vw - 20px), 920px);
  }
}

@media (max-width:640px){
  body[data-page="home"] .ccr-intelligence-ribbon{
    width:calc(100% - 14px);
    
  }
  body[data-page="home"] .ccr-intelligence-ribbon__inner{
    border-radius:20px;
    padding:12px;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__copy p{
    font-size:.76rem;
  }
}


/* Phase 2B — CCR Intelligence Ribbon clipping fix, deeper transparency, and RSS source tabs */
body[data-page="home"] .home-top-stack{
  overflow:visible;
}

body[data-page="home"] .ccr-intelligence-ribbon{
  width:calc(100% - clamp(20px, 3vw, 44px));
  max-width:1180px;
  margin:14px auto 20px;
  box-sizing:border-box;
}


body[data-page="home"] .ccr-intelligence-ribbon__header{
  grid-template-columns:minmax(0, .9fr) minmax(280px, 1.25fr);
  align-items:end;
}

body[data-page="home"] .ccr-intelligence-ribbon__tabs{
  justify-content:flex-end;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  padding:0 2px 2px;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.18) transparent;
}

body[data-page="home"] .ccr-intelligence-ribbon__tabs::-webkit-scrollbar{height:4px;}
body[data-page="home"] .ccr-intelligence-ribbon__tabs::-webkit-scrollbar-track{background:transparent;}
body[data-page="home"] .ccr-intelligence-ribbon__tabs::-webkit-scrollbar-thumb{background:rgba(255,255,255,.16);border-radius:999px;}

body[data-page="home"] .ccr-intelligence-ribbon__tab{
  flex:0 0 auto;
  max-width:188px;
  min-height:32px;
  padding:6px 10px;
  background:linear-gradient(180deg, rgba(255,255,255,.024), rgba(255,255,255,.010));
}

body[data-page="home"] .ccr-intelligence-ribbon__tab span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

body[data-page="home"] .ccr-intelligence-ribbon__tab.is-active{
  background:linear-gradient(180deg, rgba(255,255,255,.038), rgba(255,255,255,.014));
  border-color:rgba(232,214,164,.20);
}

body[data-page="home"] .ccr-intelligence-ribbon__panels,
body[data-page="home"] .ccr-intelligence-ribbon__panel{
  min-width:0;
  max-width:100%;
}

body[data-page="home"] .ccr-intelligence-ribbon__panel[hidden]{
  display:none !important;
}

body[data-page="home"] .ccr-intelligence-ribbon__cards,
body[data-page="home"] .ccr-intelligence-ribbon__rss-grid{
  max-width:100%;
  min-width:0;
}

body[data-page="home"] .ccr-intelligence-ribbon__rss-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:13px;
  align-items:start;
}

body[data-page="home"] .ccr-intelligence-ribbon__rss-card{
  min-width:0;
  display:flex;
  flex-direction:column;
  border:1px solid rgba(255,255,255,.070);
  border-radius:20px;
  background:linear-gradient(180deg,rgba(255,255,255,.021),rgba(255,255,255,.008));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.024),0 10px 24px rgba(0,0,0,.13);
  overflow:hidden;
}

body[data-page="home"] .ccr-intelligence-ribbon__rss-card--text{
  min-height:204px;
}

body[data-page="home"] .ccr-intelligence-ribbon__rss-media,
body[data-page="home"] .ccr-intelligence-ribbon__rss-media-link{
  display:block;
  width:100%;
}

body[data-page="home"] .ccr-intelligence-ribbon__rss-media{
  aspect-ratio:16/9;
  background:rgba(255,255,255,.030);
  overflow:hidden;
}

body[data-page="home"] .ccr-intelligence-ribbon__rss-media img{
  width:100%;
  height:100%;
  object-fit:cover;
}

body[data-page="home"] .ccr-intelligence-ribbon__rss-body{
  display:flex;
  flex-direction:column;
  gap:7px;
  padding:12px;
  min-height:0;
  flex:1 1 auto;
}

body[data-page="home"] .ccr-intelligence-ribbon__rss-meta{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  color:var(--ccr-card-subtext-color,rgba(226,236,247,.62)) !important;
  filter:brightness(var(--ccr-card-subtext-brightness,100%));
  opacity:calc(var(--ccr-card-subtext-opacity,.70) * .90);
  font-weight:var(--ccr-card-subtext-weight,500) !important;
  font-size:var(--ccr-card-subtext-size,.70rem) !important;
  line-height:1.2;
}

body[data-page="home"] .ccr-intelligence-ribbon__rss-card h3{
  margin:0;
  color:var(--ccr-card-headline-color,#e2c3cc) !important;
  filter:brightness(var(--ccr-card-headline-brightness,100%));
  opacity:var(--ccr-card-headline-opacity,1);
  font-weight:var(--ccr-card-headline-weight,600) !important;
  font-size:var(--ccr-card-headline-size,1rem) !important;
  line-height:1.26;
  letter-spacing:-.012em;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

body[data-page="home"] .ccr-intelligence-ribbon__rss-card h3 a{
  color:inherit;
  text-decoration:none;
}

body[data-page="home"] .ccr-intelligence-ribbon__rss-card h3 a:hover{
  text-decoration:underline;
}

body[data-page="home"] .ccr-intelligence-ribbon__rss-card p{
  margin:0;
  color:var(--ccr-card-subtext-color,rgba(233,240,247,.68)) !important;
  filter:brightness(var(--ccr-card-subtext-brightness,100%));
  opacity:var(--ccr-card-subtext-opacity,.70);
  font-weight:var(--ccr-card-subtext-weight,500) !important;
  font-size:var(--ccr-card-subtext-size,.80rem) !important;
  line-height:1.42;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

body[data-page="home"] .ccr-intelligence-ribbon__rss-link{
  margin-top:auto;
  color:rgba(232,214,164,.68);
  font-size:.76rem;
  font-weight:700;
  text-decoration:none;
}

body[data-page="home"] .ccr-intelligence-ribbon__rss-link:hover{
  color:rgba(243,228,234,.96);
  text-decoration:underline;
}

body[data-page="home"] .ccr-intelligence-ribbon__rss-empty{
  grid-column:1 / -1;
  padding:18px;
  border:1px solid rgba(255,255,255,.055);
  border-radius:18px;
  color:rgba(220,232,246,.68);
  background:rgba(255,255,255,.012);
  font-size:.86rem;
}

@media (max-width:980px){
  body[data-page="home"] .ccr-intelligence-ribbon{
    width:calc(100% - 20px);
  }
  body[data-page="home"] .ccr-intelligence-ribbon__header{
    grid-template-columns:1fr;
    align-items:start;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__tabs{
    justify-content:flex-start;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__rss-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:640px){
  body[data-page="home"] .ccr-intelligence-ribbon{
    width:calc(100% - 12px);
    margin:10px auto 14px;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__rss-grid{
    grid-template-columns:1fr;
  }
}


/* Phase 2C — restore chart cards + match CCR/source-card transparency */
body[data-page="home"].ccr-ribbon-active .home-main > .home-hero:not(#selectedTickerChartSection){
  display:none !important;
}

body[data-page="home"].ccr-ribbon-active #selectedTickerChartSection,
body[data-page="home"] #selectedTickerChartSection:not([hidden]){
  display:grid !important;
}


body[data-page="home"] .ccr-intelligence-ribbon__copy p{
  color:rgba(233,240,247,.70);
}

body[data-page="home"] .ccr-intelligence-ribbon__cards,
body[data-page="home"] .ccr-intelligence-ribbon__rss-grid{
  align-items:start;
  grid-auto-rows:auto;
}

body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card,
body[data-page="home"] .ccr-intelligence-ribbon__rss-card{
  align-self:start;
  height:auto;
  background:linear-gradient(180deg,rgba(255,255,255,.022),rgba(255,255,255,.010)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.024),0 10px 24px rgba(0,0,0,.12) !important;
}

body[data-page="home"] .ccr-intelligence-ribbon__rss-card--text{
  min-height:0 !important;
}

body[data-page="home"] .ccr-intelligence-ribbon__rss-card p{
  -webkit-line-clamp:2;
}

body[data-page="home"] .ccr-intelligence-ribbon__rss-link{
  margin-top:.15rem;
}

body[data-page="home"] .ccr-intelligence-ribbon__rss-body{
  flex:0 1 auto;
}

body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card .card-toggle-media__frame,
body[data-page="home"] .ccr-intelligence-ribbon__rss-media{
  background:rgba(255,255,255,.022);
}


/* Phase 2D — CCR ribbon title cleanup + browser-style tabs */
body[data-page="home"] .ccr-intelligence-ribbon__inner{
  padding:14px 16px 18px !important;
}

body[data-page="home"] .ccr-intelligence-ribbon__header{
  display:grid !important;
  grid-template-columns:1fr !important;
  align-items:start !important;
}

body[data-page="home"] .ccr-intelligence-ribbon__copy{
  display:grid;
  justify-items:start;
  align-items:start;
  gap:0;
  min-width:0;
}

body[data-page="home"] .ccr-intelligence-ribbon__eyebrow{
  padding:.24rem .56rem !important;
  line-height:1.1;
}

body[data-page="home"] .ccr-intelligence-ribbon__copy h2{
  margin:0 !important;
  font-family:var(--font-body, Inter, system-ui, sans-serif) !important;
  font-size:clamp(1.05rem,1.35vw,1.36rem) !important;
  line-height:1.15 !important;
  font-weight:700 !important;
  letter-spacing:-.018em !important;
  color:rgba(242,232,238,.96) !important;
}

body[data-page="home"] .ccr-intelligence-ribbon__copy p{
  display:none !important;
}

body[data-page="home"] .ccr-intelligence-ribbon__tabs{
  width:100%;
  
  flex-wrap:wrap !important;
  
  scrollbar-width:none;
}
body[data-page="home"] .ccr-intelligence-ribbon__tabs::-webkit-scrollbar{display:none;}

body[data-page="home"] .ccr-intelligence-ribbon__tab{
  position:relative;
  flex:0 1 auto !important;
  max-width:190px !important;
  min-height:34px !important;
  margin:0 -1px -1px 0;
  padding:7px 12px 8px !important;
  border-radius:13px 13px 0 0 !important;
  border:1px solid rgba(255,255,255,.078) !important;
  border-bottom-color:rgba(255,255,255,.075) !important;
  background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,.010)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.026) !important;
  cursor:pointer;
}


body[data-page="home"] .ccr-intelligence-ribbon__tab span{
  font-size:.76rem;
  line-height:1.08;
}

body[data-page="home"] .ccr-intelligence-ribbon__tab small{
  font-size:.66rem;
  line-height:1;
  opacity:.82;
}


/* Phase 2E — mobile scroll root fix + Source Feed transparency match */
body[data-page="home"] .ccr-intelligence-ribbon__copy h2,
body[data-page="home"] .ccr-intelligence-ribbon__copy p{
  display:none !important;
}

body[data-page="home"] .ccr-intelligence-ribbon__copy{
  min-height:0 !important;
  margin:0 !important;
}

body[data-page="home"] .ccr-intelligence-ribbon__eyebrow{
  margin:0 0 7px !important;
  transform:none !important;
  align-self:start !important;
  justify-self:start !important;
}


body[data-page="home"] .ccr-intelligence-ribbon__inner::before{
  display:none !important;
}

body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card,
body[data-page="home"] .ccr-intelligence-ribbon__rss-card,
body[data-page="home"] .ccr-intelligence-ribbon__tab{
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

body[data-page="home"] .ccr-intelligence-ribbon__header{
  gap:8px !important;
  margin-bottom:12px !important;
}

body[data-page="home"] .ccr-intelligence-ribbon__panels{
  padding-top:11px !important;
}

/* Phase 56 — CCR article overlay transparency and desktop width refinement. */
/* Phase 55 — CCR article overlay owner fix: SO-style transparency + appearance-driven EN copy alignment/size. */
/* Phase 3A — CCR ribbon card adapter + article overlay */
body[data-page="home"] .ccr-intelligence-ribbon__ccr-card{
  overflow:hidden;
}
body[data-page="home"] .ccr-intelligence-ribbon__ccr-media-button,
body[data-page="home"] .ccr-intelligence-ribbon__ccr-title-button,
body[data-page="home"] .ccr-intelligence-ribbon__ccr-open{
  appearance:none;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  text-align:left;
  padding:0;
  cursor:pointer;
}
body[data-page="home"] .ccr-intelligence-ribbon__ccr-media-button{
  display:block;
  width:100%;
}
body[data-page="home"] .ccr-intelligence-ribbon__ccr-title-button{
  width:100%;
  line-height:inherit;
}
body[data-page="home"] .ccr-intelligence-ribbon__ccr-title-button:hover{
  color:inherit;
  filter:brightness(1.08);
}
body[data-page="home"] .ccr-intelligence-ribbon__ccr-open{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:auto;
}
body[data-page="home"] .ccr-intelligence-ribbon__ccr-meta span:last-child{
  color:rgba(241,210,143,.90);
}
body.ccr-article-overlay-open{
  overflow:hidden;
}
.ccr-article-overlay[hidden]{
  display:none !important;
}
.ccr-article-overlay{
  position:fixed;
  inset:0;
  z-index:2500;
  display:grid;
  place-items:center;
  padding:clamp(14px,3vw,32px);
}
.ccr-article-overlay__shade{
  position:absolute;
  inset:0;
  background:rgba(5,10,18,.08);
  backdrop-filter:blur(4px) saturate(1.01);
  -webkit-backdrop-filter:blur(4px) saturate(1.01);
}
.ccr-article-overlay__panel{
  position:relative;
  z-index:1;
  width:min(735px,100%);
  max-height:min(88vh,980px);
  overflow:auto;
  border:1px solid rgba(214,229,248,.07);
  border-radius:26px;
  background:
    radial-gradient(circle at 18% 0%, rgba(124,160,205,.038), transparent 34%),
    linear-gradient(180deg, rgba(24,36,50,.34), rgba(8,14,23,.26));
  box-shadow:0 22px 58px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.028);
  backdrop-filter:blur(10px) saturate(1.03);
  -webkit-backdrop-filter:blur(10px) saturate(1.03);
  color:rgba(242,246,250,.94);
  padding:clamp(20px,3vw,38px);
}

/* Phase 58 — CCR article overlay desktop-only width refinement. */
@media (min-width:901px){
  body[data-page="home"] .ccr-article-overlay__panel{
    width:min(588px,100%);
  }
}
.ccr-article-overlay__panel::-webkit-scrollbar{width:10px;}
.ccr-article-overlay__panel::-webkit-scrollbar-track{background:rgba(255,255,255,.04);border-radius:999px;}
.ccr-article-overlay__panel::-webkit-scrollbar-thumb{background:rgba(255,255,255,.22);border-radius:999px;border:2px solid rgba(8,14,24,.92);}
.ccr-article-overlay__close{
  position:sticky;
  top:0;
  float:right;
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(9,15,23,.72);
  color:rgba(255,255,255,.92);
  font-size:25px;
  line-height:1;
  cursor:pointer;
  z-index:2;
  box-shadow:0 10px 24px rgba(0,0,0,.26);
}
.ccr-article-overlay__close:hover{
  background:rgba(20,31,44,.82);
  border-color:rgba(232,214,164,.28);
}
.ccr-article-overlay__head{
  padding-right:48px;
}
.ccr-article-overlay__meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:12px;
  color:rgba(233,202,136,.88);
  font-size:.78rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.ccr-article-overlay__meta span{
  border:1px solid rgba(233,202,136,.18);
  border-radius:999px;
  background:rgba(233,202,136,.06);
  padding:5px 10px;
}
.ccr-article-overlay__head h2{
  margin:0 0 18px;
  font-family:var(--font-body);
  font-size:clamp(1.65rem,3.2vw,2.72rem);
  line-height:1.08;
  color:rgba(255,247,237,.97);
  letter-spacing:-.035em;
}
.ccr-article-overlay__hero{
  margin:0 0 22px;
  border-radius:20px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.035);
}
.ccr-article-overlay__hero img{
  display:block;
  width:100%;
  max-height:420px;
  object-fit:cover;
}
.ccr-article-overlay__body{
  color:var(--ccr-body-text-color, rgba(236,242,248,.90));
  filter:brightness(var(--ccr-body-text-brightness,100%));
  opacity:var(--ccr-body-text-opacity,1);
  font-weight:var(--ccr-body-text-weight,500);
  font-size:var(--ccr-body-text-size,15px);
  line-height:1.72;
}
.ccr-article-overlay__body p{
  margin:0 0 1em;
}
html[lang="en"] .ccr-article-overlay__body p{
  text-align:var(--ccr-body-text-align,justify);
  text-align-last:left;
  text-justify:inter-word;
}
.ccr-article-overlay__body a,
.ccr-article-overlay__implication a{
  color:rgba(168,211,255,.95);
  text-decoration:none;
  border-bottom:1px solid rgba(168,211,255,.35);
}
.ccr-article-overlay__figure{
  margin:20px 0;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
}
.ccr-article-overlay__figure img{
  display:block;
  width:100%;
}
.ccr-article-overlay__figure figcaption{
  padding:8px 12px 10px;
  color:rgba(232,238,245,.68);
  font-size:.82rem;
}
.ccr-article-overlay__implication{
  margin-top:24px;
  padding:16px 18px;
  border:1px solid rgba(233,202,136,.16);
  border-radius:18px;
  background:rgba(233,202,136,.055);
  color:var(--ccr-implication-text-color, rgba(255,245,225,.92));
  filter:brightness(var(--ccr-implication-text-brightness,100%));
  opacity:var(--ccr-implication-text-opacity,1);
  font-weight:var(--ccr-implication-text-weight,500);
  font-size:var(--ccr-implication-text-size,15px);
  line-height:1.65;
}
html[lang="en"] .ccr-article-overlay__implication{
  text-align:var(--ccr-implication-text-align,justify);
  text-align-last:left;
  text-justify:inter-word;
}
.ccr-article-overlay__implication p{
  display:inline;
  margin:0;
}
.ccr-article-overlay__links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
  align-items:center;
}
.ccr-article-overlay__links strong{
  color:rgba(233,202,136,.88);
  margin-right:4px;
}
.ccr-article-overlay__links a{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:7px 11px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.055);
  color:rgba(238,245,251,.92);
  text-decoration:none;
}
@media (max-width:760px){
  .ccr-article-overlay{
    padding:10px;
    place-items:stretch;
  }
  .ccr-article-overlay__panel{
    width:100%;
    max-height:calc(100vh - 20px);
    border-radius:24px;
    padding:16px;
    background:
      radial-gradient(circle at 18% 0%, rgba(124,160,205,.038), transparent 34%),
      linear-gradient(180deg, rgba(24,36,50,.34), rgba(8,14,23,.26));
  }
  .ccr-article-overlay__body{
    font-size:var(--ccr-body-text-size,15px);
    line-height:1.68;
  }
  .ccr-article-overlay__implication{
    font-size:var(--ccr-implication-text-size,15px);
    line-height:1.62;
  }
  .ccr-article-overlay__head h2{
    font-size:1.55rem;
  }
  .ccr-article-overlay__hero img{
    max-height:300px;
  }
}

/* Phase 3B — CCR ribbon refinements, source-card transparency, mobile sticky header restore */
body[data-page="home"] .home-top-stack + .ccr-intelligence-ribbon + .main-grid{
  padding-top:8px;
}

body[data-page="home"] .ccr-intelligence-ribbon{
  width:calc(100% - 2 * var(--pad)) !important;
  max-width:none !important;
  margin:14px auto 18px !important;
  box-sizing:border-box !important;
}

body[data-page="home"] .ccr-intelligence-ribbon__inner,
body[data-page="home"] .selected-ticker-chart-section > .selected-ticker-chart-shell{
  background:linear-gradient(180deg,rgba(255,255,255,.018),rgba(255,255,255,.009)) !important;
  border:1px solid rgba(255,255,255,.066) !important;
  box-shadow:0 16px 40px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.026) !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

body[data-page="home"] .ccr-intelligence-ribbon__rss-card,
body[data-page="home"] .ccr-intelligence-ribbon__ccr-card,
body[data-page="home"] .selected-ticker-chart-grid > .ticker-chart-card{
  border:1px solid rgba(255,255,255,.070) !important;
  background:linear-gradient(180deg,rgba(255,255,255,.022),rgba(255,255,255,.010)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.024),0 10px 24px rgba(0,0,0,.12) !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

body[data-page="home"] .ccr-intelligence-ribbon__ccr-open,
body[data-page="home"] .ccr-intelligence-ribbon__ccr-open:visited{
  color:rgba(233,202,136,.94) !important;
  font-weight:760 !important;
  letter-spacing:.018em !important;
  
}
body[data-page="home"] .ccr-intelligence-ribbon__ccr-open:hover,
body[data-page="home"] .ccr-intelligence-ribbon__ccr-open:focus-visible{
  color:rgba(255,229,166,.98) !important;
  
  text-underline-offset:3px;
}


body[data-page="home"] .settings-shell-backdrop{
  background:rgba(5,10,18,.13) !important;
  backdrop-filter:blur(5px) saturate(1.02) !important;
  -webkit-backdrop-filter:blur(5px) saturate(1.02) !important;
}
body[data-page="home"] .settings-shell-card{
  border-color:rgba(214,229,248,.082) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(124,160,205,.045), transparent 34%),
    linear-gradient(180deg, rgba(24,36,50,.42), rgba(8,14,23,.34)) !important;
  box-shadow:0 22px 58px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.030) !important;
  backdrop-filter:blur(12px) saturate(1.04) !important;
  -webkit-backdrop-filter:blur(12px) saturate(1.04) !important;
}

@media (max-width:760px){
  body[data-page="home"] .home-top-stack,
  body[data-page="home"].ccr-ribbon-active .home-top-stack{
    position:sticky !important;
    top:0 !important;
    z-index:76 !important;
    background:linear-gradient(180deg,rgba(20,31,41,.13),rgba(20,31,41,.035)) !important;
    backdrop-filter:blur(8px) saturate(1.04) !important;
    -webkit-backdrop-filter:blur(8px) saturate(1.04) !important;
  }
  body[data-page="home"] .masthead .meta-line[data-updated-stamp]{
    display:none !important;
  }
  body[data-page="home"] .selected-ticker-chart-section{
    margin-inline:var(--pad) !important;
  }
  body[data-page="home"] .selected-ticker-chart-section > .selected-ticker-chart-shell{
    
    border:1px solid rgba(255,255,255,.066) !important;
    background:linear-gradient(180deg,rgba(255,255,255,.018),rgba(255,255,255,.009)) !important;
    box-shadow:0 16px 40px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.026) !important;
  }
}

/* Phase 3C/r9112 — physical ribbon tabs + desktop first/last-tab hover reveal + restored desktop tab faces */
body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell{
  position:relative !important;
  min-width:0 !important;
  max-width:100% !important;
  align-self:end !important;
}
@media (hover:hover) and (pointer:fine) and (min-width:761px){
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell.is-scrollable::before,
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell.is-scrollable::after{
    content:"";
    position:absolute !important;
    top:5px !important;
    bottom:1px !important;
    width:42px !important;
    z-index:22 !important;
    pointer-events:none !important;
    opacity:0 !important;
    transition:opacity var(--fast), box-shadow var(--fast) !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell.can-scroll-left::before{
    left:0 !important;
    opacity:.34 !important;
    background:linear-gradient(90deg, rgba(7,15,26,.48), rgba(7,15,26,0)) !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell.can-scroll-right::after{
    right:0 !important;
    opacity:.34 !important;
    background:linear-gradient(270deg, rgba(7,15,26,.48), rgba(7,15,26,0)) !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell.is-edge-scrolling-left::before,
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell.is-edge-scrolling-right::after{
    opacity:.66 !important;
    box-shadow:0 0 14px rgba(232,190,112,.08) !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell.is-edge-scrolling-left .ccr-intelligence-ribbon__tabs,
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell.is-edge-scrolling-right .ccr-intelligence-ribbon__tabs{
    cursor:ew-resize !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell.is-scrollable .ccr-intelligence-ribbon__tab{
    cursor:grab !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell.is-tab-dragging,
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell.is-tab-dragging .ccr-intelligence-ribbon__tabs,
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell.is-tab-dragging .ccr-intelligence-ribbon__tab{
    cursor:grabbing !important;
    user-select:none !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell.is-tab-dragging .ccr-intelligence-ribbon__tabs{
    scroll-snap-type:none !important;
    scroll-behavior:auto !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell.is-tab-free-scroll .ccr-intelligence-ribbon__tabs{
    scroll-snap-type:none !important;
    scroll-behavior:auto !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell.is-tab-free-scroll .ccr-intelligence-ribbon__tab{
    scroll-snap-align:none !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__tabs{
    scroll-snap-type:none !important;
    scroll-behavior:auto !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__tab{
    scroll-snap-align:none !important;
  }
}
body[data-page="home"] .ccr-intelligence-ribbon__tabs{
  --ccr-tab-card-bg:rgba(16,26,39,.96);
  --ccr-tab-card-bg-active:rgba(22,35,51,.985);
  --ccr-tab-card-border:rgba(136,163,194,.30);
  --ccr-tab-card-border-active:rgba(235,202,136,.54);
  --ccr-ribbon-seam:rgba(235,202,136,.42);
  --ccr-ribbon-seam-glow:rgba(232,190,112,.07);
  --ccr-ribbon-tab-bottom:rgba(235,202,136,.42);
  --ccr-ribbon-tab-bottom-inset:rgba(235,202,136,.13);
  --ccr-ribbon-active-glow:rgba(232,190,112,.08);
  position:relative !important;
  z-index:4 !important;
  display:flex !important;
  flex-wrap:nowrap !important;
  justify-content:flex-start !important;
  align-items:flex-end !important;
  gap:0 !important;
  row-gap:0 !important;
  max-width:100% !important;
  min-width:0 !important;
  padding:10px 8px 0 !important;
  border-bottom:0 !important;
  background:linear-gradient(180deg, rgba(24,38,55,.16), rgba(8,16,28,.06)) !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  scrollbar-width:none !important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
  scroll-snap-type:x proximity;
  scroll-padding-inline:8px;
}
body[data-page="home"] .ccr-intelligence-ribbon__tabs::-webkit-scrollbar{
  display:none !important;
}
body[data-page="home"] .ccr-intelligence-ribbon__tabs::after{
  content:"";
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  height:1px !important;
  background:var(--ccr-ribbon-seam) !important;
  box-shadow:0 0 10px var(--ccr-ribbon-seam-glow) !important;
  pointer-events:none !important;
  z-index:1 !important;
}
body[data-page="home"] .ccr-intelligence-ribbon__tab{
  isolation:isolate;
  position:relative !important;
  z-index:2 !important;
  flex:0 0 auto !important;
  scroll-snap-align:start;
  min-height:37px !important;
  margin:-2px -8px 0 0 !important;
  padding:8px 18px 9px !important;
  border:1px solid var(--ccr-tab-card-border) !important;
  border-bottom-color:var(--ccr-ribbon-tab-bottom) !important;
  border-radius:15px 15px 0 0 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.030)),
    var(--ccr-tab-card-bg) !important;
  box-shadow:
    0 -6px 16px rgba(0,0,0,.18),
    5px 0 14px rgba(0,0,0,.12),
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -1px 0 var(--ccr-ribbon-tab-bottom-inset) !important;
  transform:translateY(0) !important;
  opacity:1 !important;
  color:rgba(238,244,250,.88) !important;
}
body[data-page="home"] .ccr-intelligence-ribbon__tab::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  border-radius:inherit;
  background:linear-gradient(90deg, rgba(0,0,0,.16), transparent 12%, transparent 86%, rgba(255,255,255,.035));
  pointer-events:none;
}
body[data-page="home"] .ccr-intelligence-ribbon__tab:hover,
body[data-page="home"] .ccr-intelligence-ribbon__tab:focus-visible{
  z-index:8 !important;
  border-color:rgba(235,202,136,.46) !important;
  border-bottom-color:var(--ccr-ribbon-tab-bottom) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.135), rgba(255,255,255,.042)),
    rgba(19,31,46,.98) !important;
}
body[data-page="home"] .ccr-intelligence-ribbon__tab.is-active{
  z-index:16 !important;
  border-color:var(--ccr-tab-card-border-active) !important;
  border-bottom-color:transparent !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,224,154,.17), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.155), rgba(255,255,255,.048)),
    var(--ccr-tab-card-bg-active) !important;
  box-shadow:
    0 -10px 22px rgba(0,0,0,.24),
    0 0 14px var(--ccr-ribbon-active-glow),
    7px 0 16px rgba(0,0,0,.15),
    inset 0 1px 0 rgba(255,247,223,.16),
    inset 1px 0 0 rgba(233,202,136,.12),
    inset -1px 0 0 rgba(233,202,136,.10) !important;
  transform:translateY(1px) !important;
  color:rgba(255,247,229,.96) !important;
}
body[data-page="home"] .ccr-intelligence-ribbon__tab span,
body[data-page="home"] .ccr-intelligence-ribbon__tab small{
  position:relative;
  z-index:2;
  text-shadow:0 1px 2px rgba(0,0,0,.34);
}
body[data-page="home"] .ccr-intelligence-ribbon__tab--universe{
  min-width:52px !important;
  max-width:74px !important;
  justify-content:center !important;
  padding-inline:14px !important;
  color:rgba(233,202,136,.96) !important;
}
body[data-page="home"] .ccr-intelligence-ribbon__tab--universe span{
  font-size:1.08rem !important;
  line-height:.92 !important;
  
}
body[data-page="home"] .ccr-intelligence-ribbon__tab--universe small{
  color:rgba(233,202,136,.78) !important;
}


/* r9121 — source tab compact counts + close affordance */
body[data-page="home"] .ccr-intelligence-ribbon__tab-label{
  min-width:0 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
body[data-page="home"] .ccr-intelligence-ribbon__tab-count{
  flex:0 0 auto !important;
  white-space:nowrap !important;
}
body[data-page="home"] .ccr-intelligence-ribbon__tab-close{
  position:relative !important;
  z-index:3 !important;
  flex:0 0 auto !important;
  display:inline-grid !important;
  place-items:center !important;
  width:17px !important;
  height:17px !important;
  margin-left:2px !important;
  border:1px solid rgba(235,202,136,.24) !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.055) !important;
  color:rgba(238,244,250,.72) !important;
  font-size:.76rem !important;
  font-weight:850 !important;
  line-height:1 !important;
  letter-spacing:0 !important;
  text-shadow:none !important;
  cursor:pointer !important;
  touch-action:manipulation !important;
  transition:background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease !important;
}
body[data-page="home"] .ccr-intelligence-ribbon__tab-close:hover,
body[data-page="home"] .ccr-intelligence-ribbon__tab-close:focus-visible{
  border-color:rgba(235,202,136,.54) !important;
  background:rgba(235,202,136,.14) !important;
  color:rgba(255,247,229,.96) !important;
}
body[data-page="home"] .ccr-intelligence-ribbon__tab-close:active{
  transform:scale(.92) !important;
}
body[data-page="home"] .ccr-intelligence-ribbon__panels{
  margin-top:0 !important;
  border-top:0 !important;
}
body[data-page="home"] .ccr-intelligence-ribbon__ccr-open,
body[data-page="home"] .ccr-intelligence-ribbon__ccr-open:visited{
  color:rgba(232,214,164,.68) !important;
  font-size:.76rem !important;
  font-weight:700 !important;
  line-height:1.2 !important;
  letter-spacing:0 !important;
  text-decoration:none !important;
  text-underline-offset:initial !important;
}
body[data-page="home"] .ccr-intelligence-ribbon__ccr-open:hover,
body[data-page="home"] .ccr-intelligence-ribbon__ccr-open:focus-visible{
  color:rgba(243,228,234,.96) !important;
  text-decoration:underline !important;
}
@media (max-width:760px){
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell{
    display:block !important;
    width:100% !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell::before,
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell::after{
    content:none !important;
    display:none !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell.is-edge-scrolling-left .ccr-intelligence-ribbon__tabs,
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell.is-edge-scrolling-right .ccr-intelligence-ribbon__tabs{
    cursor:auto !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell.is-scrollable .ccr-intelligence-ribbon__tabs{
    padding-left:7px !important;
    padding-right:7px !important;
  }
}

@media (max-width:760px){
  body[data-page="home"] .ccr-intelligence-ribbon__eyebrow{
    display:none !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__header{
    gap:6px !important;
    margin-bottom:8px !important;
  }
}


/* r8363 — CCR article overlay playable video support only */
.ccr-article-overlay__video{
  margin:0 0 22px;
  border-radius:20px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.035);
  aspect-ratio:16 / 9;
}
.ccr-article-overlay__video iframe,
.ccr-article-overlay__video video{
  display:block;
  width:100%;
  height:100%;
  border:0;
  background:#000;
}
.ccr-article-overlay__video-link{
  margin:0 0 18px;
}
.ccr-article-overlay__video-link a{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:7px 11px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.055);
  color:rgba(238,245,251,.92);
  text-decoration:none;
}

/* r8481 — mobile-only density pass for CCR home view */
@media (max-width:760px){
  body[data-page="home"] .header-inner{
    padding:8px 0 5px !important;
  }
  body[data-page="home"] .masthead{
    gap:4px !important;
  }
  body[data-page="home"] .masthead h1[data-site-title]{
    font-size:var(--ccr-masthead-title-mobile-size,clamp(28px,8.1vw,42px)) !important;
    line-height:1.05 !important;
    padding:8px 11px !important;
    border-radius:18px !important;
  }
  body[data-page="home"] .site-header{
    border-bottom-color:rgba(255,255,255,.035) !important;
  }
  body[data-page="home"] .header-actions{
    gap:5px !important;
  }
      body[data-page="home"] .ticker-item,
  body[data-page="home"] .ticker-headline{
    
    font-size:12.5px !important;
    
    
  }
  body[data-page="home"] .ticker-item__label{
    font-size:10.5px !important;
  }
  body[data-page="home"] .ticker-item__arrow,
  body[data-page="home"] .ticker-item__delta{
    font-size:12.5px !important;
  }
    body[data-page="home"] .ccr-intelligence-ribbon{
    width:100vw !important;
    margin:4px calc(50% - 50vw) 10px !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__inner{
    padding:7px 4px 10px !important;
    border-radius:17px !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__header{
    margin-bottom:4px !important;
    gap:4px !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__tabs{
    
    box-sizing:border-box !important;
    margin:0 !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__rss-grid{
    gap:10px !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__rss-card,
  body[data-page="home"] .ccr-intelligence-ribbon__ccr-card{
    border-radius:17px !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__rss-media,
  body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card .card-toggle-media__frame{
    aspect-ratio:2.05 / 1 !important;
    max-height:220px !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__rss-media img,
  body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card .card-toggle-media__image,
  body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card .card-toggle-media__bg-image{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__rss-body{
    padding:10px 12px 12px !important;
    gap:6px !important;
  }
}


/* r8491 — mobile-only ticker, top-safe card images, and attached-tab refinement */
@media (max-width:760px){
  body[data-page="home"] .home-top-stack{
    gap:0 !important;
  }
        
  body[data-page="home"] .ccr-intelligence-ribbon{
    margin-top:2px !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__inner{
    padding-top:6px !important;
  }

  body[data-page="home"] .ccr-intelligence-ribbon__rss-media,
  body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card .card-toggle-media__frame{
    aspect-ratio:1.92 / 1 !important;
    max-height:232px !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__rss-media img,
  body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card .card-toggle-media__image,
  body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card .card-toggle-media__bg-image{
    object-position:center top !important;
  }
}

/* r8501 — desktop CCR ribbon duplicate search + results overlay */
@media (min-width:761px){
  body[data-page="home"] .ccr-intelligence-ribbon__eyebrow-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    width:100%;
    min-width:0;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__eyebrow-row .ccr-intelligence-ribbon__eyebrow{
    flex:0 0 auto;
    margin-bottom:0 !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__search{
    flex:0 1 420px;
    max-width:min(44vw,460px);
    margin-left:auto;
    display:grid;
    grid-template-columns:minmax(180px,1fr) auto;
    gap:8px;
    align-items:center;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__search input{
    width:100%;
    min-height:34px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.105);
    background:rgba(5,12,22,.26);
    color:rgba(239,246,253,.94);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
    padding:7px 13px;
    font:600 .82rem/1.2 var(--font-body,Inter,system-ui,sans-serif);
    outline:none;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__search input::placeholder{
    color:rgba(217,228,244,.50);
  }
  body[data-page="home"] .ccr-intelligence-ribbon__search input:focus{
    border-color:rgba(233,202,136,.34);
    box-shadow:0 0 0 3px rgba(233,202,136,.075), inset 0 1px 0 rgba(255,255,255,.04);
  }
  body[data-page="home"] .ccr-intelligence-ribbon__search button:not(.ccr-ribbon-invite-friend-btn):not(.ccr-intelligence-ribbon__archive-open){
    min-height:34px;
    border-radius:999px;
    border:1px solid rgba(233,202,136,.25);
    background:rgba(233,202,136,.075);
    color:rgba(244,225,173,.96);
    padding:7px 14px;
    font:800 .78rem/1 var(--font-body,Inter,system-ui,sans-serif);
    letter-spacing:.04em;
    text-transform:uppercase;
    cursor:pointer;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__search button:not(.ccr-ribbon-invite-friend-btn):not(.ccr-intelligence-ribbon__archive-open):hover,
  body[data-page="home"] .ccr-intelligence-ribbon__search button:not(.ccr-ribbon-invite-friend-btn):not(.ccr-intelligence-ribbon__archive-open):focus-visible{
    background:rgba(233,202,136,.12);
    border-color:rgba(233,202,136,.40);
  }
}
@media (max-width:760px){
  body[data-page="home"] .ccr-intelligence-ribbon__search{
    display:none !important;
  }
}
body.ccr-ribbon-search-overlay-open{
  overflow:hidden;
}
.ccr-ribbon-search-overlay[hidden]{
  display:none !important;
}
.ccr-ribbon-search-overlay{
  position:fixed;
  inset:0;
  z-index:2600;
  display:grid;
  place-items:center;
  padding:clamp(18px,3vw,38px);
}
.ccr-ribbon-search-overlay__shade{
  position:absolute;
  inset:0;
  background:rgba(2,7,14,.72);
  backdrop-filter:blur(13px) saturate(1.04);
  -webkit-backdrop-filter:blur(13px) saturate(1.04);
}
.ccr-ribbon-search-overlay__panel{
  position:relative;
  z-index:1;
  width:min(1180px,100%);
  max-height:min(88vh,980px);
  overflow:auto;
  border:1px solid rgba(255,255,255,.10);
  border-radius:26px;
  background:
    radial-gradient(circle at 18% 0%, rgba(124,160,205,.06), transparent 34%),
    linear-gradient(180deg, rgba(17,27,42,.92), rgba(8,14,24,.88));
  box-shadow:0 32px 84px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.08);
  color:rgba(242,246,250,.94);
  padding:clamp(18px,2.6vw,30px);
}
.ccr-ribbon-search-overlay__panel::-webkit-scrollbar{width:10px;}
.ccr-ribbon-search-overlay__panel::-webkit-scrollbar-track{background:rgba(255,255,255,.04);border-radius:999px;}
.ccr-ribbon-search-overlay__panel::-webkit-scrollbar-thumb{background:rgba(255,255,255,.22);border-radius:999px;border:2px solid rgba(8,14,24,.88);}
.ccr-ribbon-search-overlay__head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:18px;
}
.ccr-ribbon-search-overlay__head p{
  margin:0 0 5px;
  color:rgba(233,202,136,.86);
  font-size:.76rem;
  font-weight:800;
  letter-spacing:.10em;
  text-transform:uppercase;
}
.ccr-ribbon-search-overlay__head h2{
  margin:0;
  color:rgba(255,247,237,.97);
  font-size:clamp(1.35rem,2.3vw,2.25rem);
  line-height:1.1;
  letter-spacing:-.035em;
}
.ccr-ribbon-search-overlay__summary{
  margin-top:8px;
  color:rgba(218,230,244,.74);
  font-size:.88rem;
  line-height:1.45;
}
.ccr-ribbon-search-overlay__close{
  flex:0 0 auto;
  width:40px;
  height:40px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.13);
  background:rgba(255,255,255,.07);
  color:rgba(255,255,255,.92);
  font-size:26px;
  line-height:1;
  cursor:pointer;
}
.ccr-ribbon-search-overlay__grid{
  display:block;
  columns:3 300px;
  column-gap:16px;
}
.ccr-ribbon-search-overlay__grid > .ccr-intelligence-ribbon__rss-card{
  height:auto;
  min-width:0;
  width:100%;
  display:flex;
  margin:0 0 16px;
  break-inside:avoid;
  page-break-inside:avoid;
  -webkit-column-break-inside:avoid;
  background:linear-gradient(180deg,rgba(255,255,255,.026),rgba(255,255,255,.010)) !important;
  border-color:rgba(255,255,255,.075) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.030),0 12px 28px rgba(0,0,0,.16) !important;
}
.ccr-ribbon-search-overlay__grid > .ccr-intelligence-ribbon__rss-card .ccr-intelligence-ribbon__rss-media{
  aspect-ratio:16/9;
}
.ccr-ribbon-search-overlay__empty{
  display:block;
  padding:24px;
  border:1px dashed rgba(183,203,232,.18);
  border-radius:20px;
  background:rgba(10,18,31,.22);
  color:rgba(219,230,247,.76);
  text-align:center;
}
.ccr-ribbon-search-overlay__actions{
  display:flex;
  justify-content:center;
  margin-top:18px;
}
@media (max-width:980px){
  .ccr-ribbon-search-overlay__grid{
    columns:2 300px;
  }
}
@media (max-width:760px){
  .ccr-ribbon-search-overlay{
    display:none !important;
  }
}


/* r8511 — mobile site-title appearance variables + search-overlay image patience */
@media (max-width:760px){
  body[data-page="home"] .masthead h1[data-site-title] .site-title-text{
    color:var(--ccr-masthead-title-mobile-color,var(--ccr-masthead-title-color,#d8b2be)) !important;
    filter:brightness(var(--ccr-masthead-title-mobile-brightness,var(--ccr-masthead-title-brightness,100%))) !important;
    opacity:var(--ccr-masthead-title-mobile-opacity,var(--ccr-masthead-title-opacity,1)) !important;
    font-weight:var(--ccr-masthead-title-mobile-weight,var(--ccr-masthead-title-weight,700)) !important;
  }
  body[data-page="home"] .masthead h1[data-site-title]::after{
    opacity:clamp(.10,var(--ccr-site-title-mobile-wave-opacity,var(--ccr-site-title-wave-opacity,.22)),.55) !important;
    animation-duration:var(--ccr-site-title-mobile-wave-duration,var(--ccr-site-title-wave-duration,3.8s)) !important;
  }
}
.ccr-ribbon-search-overlay__grid > .ccr-intelligence-ribbon__rss-card .ccr-intelligence-ribbon__rss-media{
  background:linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
}
.ccr-ribbon-search-overlay__grid > .ccr-intelligence-ribbon__rss-card .ccr-intelligence-ribbon__rss-media img{
  transition:opacity .28s ease;
}

/* r8521 — desktop tab/action text polish */
body[data-page="home"] .ccr-intelligence-ribbon__tab--universe{
  min-width:42px !important;
  max-width:48px !important;
  padding-inline:13px !important;
  color:rgba(238,244,250,.88) !important;
}
body[data-page="home"] .ccr-intelligence-ribbon__tab--universe span{
  color:rgba(238,244,250,.88) !important;
  font-weight:850 !important;
}
body[data-page="home"] .ccr-intelligence-ribbon__tab--universe small{
  display:none !important;
}
@media (min-width:761px){
  body[data-page="home"] .ccr-intelligence-ribbon__search{
    align-items:stretch !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__search input{
    min-height:32px !important;
    height:32px !important;
    padding:5px 13px !important;
    font-size:.80rem !important;
    line-height:1 !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__search button:not(.ccr-ribbon-invite-friend-btn):not(.ccr-intelligence-ribbon__archive-open){
    min-height:32px !important;
    height:32px !important;
    padding:5px 12px !important;
    border-color:rgba(255,255,255,.105) !important;
    background:rgba(255,255,255,.045) !important;
    color:rgba(238,244,250,.88) !important;
    font-size:.74rem !important;
    line-height:1 !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__search button:not(.ccr-ribbon-invite-friend-btn):not(.ccr-intelligence-ribbon__archive-open):hover,
  body[data-page="home"] .ccr-intelligence-ribbon__search button:not(.ccr-ribbon-invite-friend-btn):not(.ccr-intelligence-ribbon__archive-open):focus-visible{
    border-color:rgba(255,255,255,.20) !important;
    background:rgba(255,255,255,.075) !important;
    color:rgba(255,247,229,.94) !important;
  }
}


/* r8531 — search overlay failed-image fallback */
.ccr-ribbon-search-overlay__grid > .ccr-intelligence-ribbon__rss-card--image-failed{
  background:linear-gradient(180deg,rgba(255,255,255,.024),rgba(255,255,255,.010)) !important;
}
.ccr-ribbon-search-overlay__grid > .ccr-intelligence-ribbon__rss-card--image-failed .ccr-intelligence-ribbon__rss-body{
  min-height:auto;
}
.ccr-ribbon-search-overlay__grid > .ccr-intelligence-ribbon__rss-card:not(.ccr-intelligence-ribbon__rss-card--image) .ccr-intelligence-ribbon__rss-body::before{
  content:none !important;
  display:none !important;
}


/* r8541 — RSS tab/search cards: failed image fallback and no text-result pill */
body[data-page="home"] .ccr-intelligence-ribbon__rss-card--image-failed{
  background:linear-gradient(180deg,rgba(255,255,255,.024),rgba(255,255,255,.010)) !important;
}
body[data-page="home"] .ccr-intelligence-ribbon__rss-card--image-failed .ccr-intelligence-ribbon__rss-body{
  min-height:auto !important;
}
body[data-page="home"] .ccr-intelligence-ribbon__rss-card--image-failed .ccr-intelligence-ribbon__rss-media,
body[data-page="home"] .ccr-intelligence-ribbon__rss-card--image-failed .ccr-intelligence-ribbon__rss-media-link{
  display:none !important;
}
body[data-page="home"] .ccr-intelligence-ribbon__rss-card:not(.ccr-intelligence-ribbon__rss-card--image) .ccr-intelligence-ribbon__rss-body::before,
body[data-page="home"] .ccr-intelligence-ribbon__rss-card--image-failed .ccr-intelligence-ribbon__rss-body::before,
.ccr-ribbon-search-overlay__grid > .ccr-intelligence-ribbon__rss-card:not(.ccr-intelligence-ribbon__rss-card--image) .ccr-intelligence-ribbon__rss-body::before,
.ccr-ribbon-search-overlay__grid > .ccr-intelligence-ribbon__rss-card--image-failed .ccr-intelligence-ribbon__rss-body::before{
  content:none !important;
  display:none !important;
}

/* r8551/r9094 — visual micro-polish: mobile ticker/clearance + text-card accent */
@media (max-width:760px){
  body[data-page="home"] .ticker-shell{
    margin:-1px 0 0 !important;
    
    
  }
  body[data-page="home"] .ticker-rail{
    min-height:22px !important;
    padding:1px 5px !important;
  }
  body[data-page="home"] .ticker-item,
  body[data-page="home"] .ticker-headline{
    padding:0 9px !important;
    gap:6px !important;
    line-height:.92 !important;
  }
  body[data-page="home"] .ticker-sep{
    height:7px !important;
    margin-inline:3px !important;
    opacity:.46 !important;
  }
  body[data-page="home"] .page-shell{
    padding-bottom:calc(112px + env(safe-area-inset-bottom,0px)) !important;
  }
  body[data-page="home"] .home-main,
  body[data-page="home"] .ccr-intelligence-ribbon{
    padding-bottom:18px !important;
  }
}
body[data-page="home"] .ccr-intelligence-ribbon__rss-card--text,
body[data-page="home"] .ccr-intelligence-ribbon__rss-card--image-failed,
.ccr-ribbon-search-overlay__grid > .ccr-intelligence-ribbon__rss-card--text,
.ccr-ribbon-search-overlay__grid > .ccr-intelligence-ribbon__rss-card--image-failed{
  position:relative;
}
body[data-page="home"] .ccr-intelligence-ribbon__rss-card--text::after,
body[data-page="home"] .ccr-intelligence-ribbon__rss-card--image-failed::after,
.ccr-ribbon-search-overlay__grid > .ccr-intelligence-ribbon__rss-card--text::after,
.ccr-ribbon-search-overlay__grid > .ccr-intelligence-ribbon__rss-card--image-failed::after{
  content:'';
  position:absolute;
  left:14px;
  right:14px;
  top:0;
  height:1px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(233,202,136,.32), rgba(255,255,255,.07), transparent);
  pointer-events:none;
  opacity:.86;
}

/* Phase 53 — Study & Research mobile root owner fix
   Consolidates the old Research Library mobile centering/reachability rules into one
   owner block. The previous layered rules centered the scroll/library/card chain and
   then tried to correct it with late patches, which left opened Reading content visually
   left-biased and allowed brief-review copy to remain centered. Opened sections and
   collapsed mobile menu rows now use the same full-width Study & Research body lane;
   only the summary labels remain centered inside their rows. */
@media (max-width:720px){
  body[data-page="home"] .book-shell-card{
    align-items:stretch !important;
    justify-content:flex-start !important;
  }
  body[data-page="home"] .book-shell-scroll{
    align-items:stretch !important;
    justify-content:flex-start !important;
    width:100% !important;
    max-width:100% !important;
    scrollbar-gutter:auto !important;
    box-sizing:border-box !important;
  }
  body[data-page="home"] .book-shell-body,
  body[data-page="home"] .book-shell-library{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
    align-items:stretch !important;
    justify-items:stretch !important;
    justify-content:flex-start !important;
    text-align:initial !important;
  }
  body[data-page="home"] .book-shell-header,
  body[data-page="home"] .book-shell-library__head{
    width:100% !important;
    padding-inline:16px !important;
    text-align:center !important;
    justify-items:center !important;
    justify-content:center !important;
    align-items:center !important;
    box-sizing:border-box !important;
  }
  body[data-page="home"] .book-shell-library > .book-shell-section:not([open]){
    justify-self:stretch !important;
    align-self:start !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin-left:0 !important;
    margin-right:0 !important;
    box-sizing:border-box !important;
  }
  body[data-page="home"] .book-shell-library > .book-shell-section[open]{
    justify-self:stretch !important;
    align-self:start !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin-left:0 !important;
    margin-right:0 !important;
    box-sizing:border-box !important;
  }
  body[data-page="home"] .book-shell-section[open] .book-shell-section__content,
  body[data-page="home"] .book-shell-section[open] .book-shell-library__grid,
  body[data-page="home"] .book-shell-section[open] .book-shell-card-item{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
    justify-self:stretch !important;
  }
  body[data-page="home"] .book-shell-section[open] .book-shell-library__grid{
    justify-items:stretch !important;
  }
  body[data-page="home"] .book-shell-card-item{
    grid-template-columns:1fr !important;
    padding:15px 14px !important;
    gap:12px !important;
  }
  body[data-page="home"] .book-shell-card-item__media{
    grid-row:auto !important;
    width:min(100%, 220px) !important;
    margin-inline:auto !important;
  }
  body[data-page="home"] .book-shell-card-item__head,
  body[data-page="home"] .book-shell-card-item__actions{
    grid-column:auto !important;
  }
  body[data-page="home"] .book-shell-card-item__head{
    display:grid !important;
    gap:12px !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    text-align:center !important;
    justify-items:center !important;
    justify-content:center !important;
    align-items:center !important;
  }
  body[data-page="home"] .book-shell-card-item__head > div{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    text-align:center !important;
    justify-self:stretch !important;
  }
  body[data-page="home"] .book-shell-card-item__kicker,
  body[data-page="home"] .book-shell-card-item__head h3,
  body[data-page="home"] .book-shell-card-item__subtitle,
  body[data-page="home"] .book-shell-library__head h3,
  body[data-page="home"] .book-shell-note,
  body[data-page="home"] .book-shell-status{
    text-align:center !important;
  }
  body[data-page="home"] .book-shell-card-item__subtitle{
    font-size:.84rem !important;
  }
  body[data-page="home"] .book-shell-card-item__head p.book-shell-card-item__brief-review,
  body[data-page="home"] .book-shell-card-item__brief-review{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
    font-size:.82rem !important;
    text-align:justify !important;
    text-align-last:left !important;
    hyphens:auto !important;
    -webkit-hyphens:auto !important;
  }
  body[data-page="home"] .book-shell-card-item__actions,
  body[data-page="home"] .book-shell-card-item__badges,
  body[data-page="home"] .book-shell-confirm .settings-mini-actions{
    display:flex !important;
    flex-wrap:wrap !important;
    justify-content:center !important;
    align-items:center !important;
  }
  body[data-page="home"] .book-shell-resource-card{
    grid-template-columns:1fr;
    justify-items:center;
    text-align:center;
    padding:14px 12px;
  }
  body[data-page="home"] .book-shell-resource-card__media{
    width:min(100%, 240px);
  }
  body[data-page="home"] .book-shell-study-panel--resources .book-shell-resource-card__media{
    width:min(68vw, 210px);
    aspect-ratio:3 / 4;
  }
  body[data-page="home"] .book-shell-resource-card__copy{
    justify-items:center;
  }
}

/* Root-targeted housekeeping pass — login refresh, SO dashboard title, mobile tap, chart spacing — 2026-05-04 */
body[data-page="home"] .settings-shell-section[data-settings-section="clientDashboards"] .settings-section-heading-main h3{
  color:rgba(232,214,164,.90) !important;
  text-shadow:0 0 16px rgba(232,214,164,.08);
}

@media (max-width:760px){
  body[data-page="home"] .mobile-bottom-dock .header-actions .icon-btn,
  body[data-page="home"] .mobile-bottom-dock .header-actions .ui-btn,
  body[data-page="home"] .mobile-bottom-dock .header-actions .lang-toggle button{
    touch-action:manipulation;
    -webkit-tap-highlight-color:transparent;
    cursor:pointer;
  }
  body[data-page="home"] .mobile-bottom-dock .header-actions .icon-btn > *,
  body[data-page="home"] .mobile-bottom-dock .header-actions .ui-btn > *{
    pointer-events:none;
  }
  body[data-page="home"] .selected-ticker-chart-section{
    margin-top:.45rem !important;
    margin-bottom:.45rem !important;
  }
  body[data-page="home"] .selected-ticker-chart-section > .selected-ticker-chart-shell{
    padding:9px !important;
  }
}

/* r9006/r9093/r9095/r9096/r9097/r9098/r9099/r9100/r9101/r9111 — mobile ribbon tabs: unified warm baseline + text owner + restored mobile tab faces */
@media (max-width:760px){
  body[data-page="home"] .ccr-intelligence-ribbon__tabs{
    --ccr-mobile-ribbon-seam:rgba(235,202,136,.46);
    --ccr-mobile-ribbon-seam-glow:rgba(232,190,112,.07);
    --ccr-mobile-ribbon-tab-bottom:rgba(235,202,136,.46);
    --ccr-mobile-ribbon-tab-bottom-inset:rgba(235,202,136,.16);
    --ccr-mobile-ribbon-active-border:rgba(235,202,136,.58);
    --ccr-mobile-ribbon-active-glow:rgba(232,190,112,.085);
    position:relative !important;
    z-index:4 !important;
    display:flex !important;
    flex-wrap:nowrap !important;
    justify-content:flex-start !important;
    align-items:flex-end !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    padding:6px 7px 0 !important;
    border-bottom:0 !important;
    background:
      linear-gradient(180deg, rgba(24,38,55,.18), rgba(8,16,28,.08)) !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    scrollbar-width:none !important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;
    scroll-snap-type:x proximity;
    scroll-padding-inline:7px;
  }

  body[data-page="home"] .ccr-intelligence-ribbon__tabs::-webkit-scrollbar{
    display:none !important;
  }

  body[data-page="home"] .ccr-intelligence-ribbon__tabs::after{
    content:"";
    position:absolute !important;
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    height:1px !important;
    background:var(--ccr-mobile-ribbon-seam) !important;
    box-shadow:0 0 10px var(--ccr-mobile-ribbon-seam-glow) !important;
    pointer-events:none !important;
    z-index:1 !important;
  }

  body[data-page="home"] .ccr-intelligence-ribbon__tab{
    position:relative !important;
    z-index:2 !important;
    flex:0 0 auto !important;
    scroll-snap-align:start;
    min-height:31px !important;
    max-width:96px !important;
    margin:-1px -5px 0 0 !important;
    padding:5px 10px 7px !important;
    border-radius:12px 12px 0 0 !important;
    border-color:rgba(136,163,194,.30) !important;
    border-bottom-color:var(--ccr-mobile-ribbon-tab-bottom) !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,.084), rgba(255,255,255,.018)),
      linear-gradient(180deg, rgba(24,39,57,.94), rgba(13,23,36,.91)) !important;
    color:rgba(230,237,247,.88) !important;
    box-shadow:
      0 -5px 13px rgba(0,0,0,.20),
      3px 0 9px rgba(0,0,0,.13),
      inset 0 1px 0 rgba(255,255,255,.095),
      inset 0 -1px 0 var(--ccr-mobile-ribbon-tab-bottom-inset) !important;
  }

  body[data-page="home"] .ccr-intelligence-ribbon__tab::before{
    content:"" !important;
    position:absolute !important;
    inset:0 !important;
    z-index:0 !important;
    border-radius:inherit !important;
    background:linear-gradient(90deg, rgba(0,0,0,.16), transparent 12%, transparent 86%, rgba(255,255,255,.035)) !important;
    pointer-events:none !important;
  }

  body[data-page="home"] .ccr-intelligence-ribbon__tab.is-active{
    z-index:16 !important;
    border-color:var(--ccr-mobile-ribbon-active-border) !important;
    border-bottom-color:transparent !important;
    background:
      radial-gradient(circle at 50% 0%, rgba(255,224,154,.17), transparent 42%),
      linear-gradient(180deg, rgba(255,255,255,.118), rgba(255,255,255,.030)),
      linear-gradient(180deg, rgba(29,43,61,.99), rgba(15,27,42,.99)) !important;
    color:rgba(232,214,164,.90) !important;
    text-shadow:0 0 12px rgba(232,214,164,.075) !important;
    box-shadow:
      0 -8px 18px rgba(0,0,0,.25),
      0 0 14px var(--ccr-mobile-ribbon-active-glow),
      inset 0 1px 0 rgba(255,247,223,.16),
      inset 1px 0 0 rgba(233,202,136,.12),
      inset -1px 0 0 rgba(233,202,136,.10) !important;
    transform:translateY(1px) !important;
  }

  body[data-page="home"] .ccr-intelligence-ribbon__tab span{
    max-width:76px !important;
    font-size:.76rem !important;
    font-weight:620 !important;
    letter-spacing:.001em !important;
    line-height:1.02 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    text-shadow:0 1px 1px rgba(0,0,0,.30) !important;
  }

  body[data-page="home"] .ccr-intelligence-ribbon__tab small{
    display:none !important;
  }

  body[data-page="home"] .ccr-intelligence-ribbon__tab--universe{
    min-width:36px !important;
    max-width:38px !important;
    padding-inline:10px !important;
  }

  body[data-page="home"] .ccr-intelligence-ribbon__tab--universe span{
    max-width:none !important;
    font-size:.76rem !important;
    font-weight:620 !important;
  }


  /* r9121 — mobile shows close affordance only on the active source tab */
  body[data-page="home"] .ccr-intelligence-ribbon__tab-close{
    display:none !important;
  }

  body[data-page="home"] .ccr-intelligence-ribbon__tab--source.is-active{
    /* r10310 — active mobile source tabs keep a wider touch separation between label and close affordance. */
    max-width:118px !important;
    padding-right:31px !important;
  }

  body[data-page="home"] .ccr-intelligence-ribbon__tab--source.is-active .ccr-intelligence-ribbon__tab-label{
    max-width:66px !important;
    padding-right:0 !important;
  }

  body[data-page="home"] .ccr-intelligence-ribbon__tab--source.is-active .ccr-intelligence-ribbon__tab-close{
    position:absolute !important;
    /* r9139 — optical baseline alignment: tab text sits slightly above the tab-box center on mobile,
       so anchor the close control to the label's visual center rather than the full tab body. */
    top:calc(50% - 2px) !important;
    right:8px !important;
    z-index:4 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:15px !important;
    height:15px !important;
    margin-left:0 !important;
    transform:translateY(-50%) !important;
    border-color:rgba(235,202,136,.32) !important;
    background:rgba(255,255,255,.060) !important;
    color:rgba(232,214,164,.86) !important;
    font-size:0 !important;
    line-height:1 !important;
  }

  body[data-page="home"] .ccr-intelligence-ribbon__tab--source.is-active .ccr-intelligence-ribbon__tab-close::before{
    content:"×";
    display:block !important;
    font-size:.70rem !important;
    line-height:1 !important;
    font-weight:850 !important;
    transform:translateY(-.25px) !important;
  }

  body[data-page="home"] .ccr-intelligence-ribbon__tab--source.is-active .ccr-intelligence-ribbon__tab-close:active{
    transform:translateY(-50%) scale(.92) !important;
  }

  body[data-page="home"] .ccr-intelligence-ribbon__panels{
    position:relative !important;
    z-index:1 !important;
    margin-top:0 !important;
    padding-top:7px !important;
  }

  body[data-page="home"] .ccr-intelligence-ribbon__panel{
    position:relative !important;
    z-index:1 !important;
  }
}

/* r9021/r9022/r9059 — SO Schedule active calendar cleanup */
body[data-page="home"] .settings-shell-section--schedule .settings-section-heading-row{
  align-items:center;
}
body[data-page="home"] .settings-shell-section[data-settings-section="schedule"] .settings-section-heading-main h3{
  color:rgba(232,214,164,.90) !important;
  text-shadow:0 0 16px rgba(232,214,164,.08);
}
body[data-page="home"] .settings-schedule-panel{
  display:grid;
  gap:14px;
  padding:2px 0 0;
}
body[data-page="home"] .settings-schedule-pill{
  justify-self:start;
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:26px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(244,211,138,.28);
  background:rgba(244,211,138,.11);
  color:#f4d38a;
  font-size:.76rem;
  font-weight:700;
  letter-spacing:.03em;
}
body[data-page="home"] .settings-schedule-field{
  display:grid;
  gap:6px;
  min-width:0;
}
body[data-page="home"] .settings-schedule-field--wide{
  grid-column:1 / -1;
}
body[data-page="home"] .settings-schedule-field span{
  color:#f4d38a;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.03em;
}
body[data-page="home"] .settings-schedule-field select,
body[data-page="home"] .settings-schedule-field textarea{
  width:100%;
  border:1px solid rgba(174,200,233,.26);
  border-radius:14px;
  background:rgba(6,18,34,.58);
  color:rgba(243,247,255,.94);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
  outline:none;
}
body[data-page="home"] .settings-schedule-field select{
  min-height:42px;
  padding:0 38px 0 12px;
}
body[data-page="home"] .settings-schedule-field textarea{
  resize:vertical;
  min-height:88px;
  padding:11px 12px;
  line-height:1.5;
}
body[data-page="home"] .settings-schedule-field select:focus,
body[data-page="home"] .settings-schedule-field textarea:focus{
  border-color:rgba(244,211,138,.55);
  box-shadow:0 0 0 3px rgba(244,211,138,.12), inset 0 1px 0 rgba(255,255,255,.05);
}
body[data-page="home"] .settings-schedule-actions{
  grid-column:1 / -1;
  display:flex;
  justify-content:flex-end;
  gap:10px;
}
body[data-page="home"] .settings-schedule-submit{
  min-height:40px;
  padding-inline:16px;
}
body[data-page="home"] .settings-schedule-status{
  grid-column:1 / -1;
  margin:0;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(174,200,233,.18);
  background:rgba(6,18,34,.42);
  color:rgba(232,240,252,.86);
  font-size:.86rem;
  line-height:1.45;
}
body[data-page="home"] .settings-schedule-status.is-ok{
  border-color:rgba(126,220,166,.32);
  background:rgba(44,150,91,.13);
  color:rgba(202,248,222,.94);
}
body[data-page="home"] .settings-schedule-status.is-error{
  border-color:rgba(255,128,128,.32);
  background:rgba(156,46,58,.14);
  color:rgba(255,218,218,.94);
}
body[data-page="home"] .settings-schedule-status.is-note{
  border-color:rgba(244,211,138,.24);
  background:rgba(244,211,138,.09);
  color:rgba(255,239,197,.94);
}
@media (max-width:760px){
  body[data-page="home"] .settings-schedule-field select{
    min-height:44px;
    font-size:16px;
  }
  body[data-page="home"] .settings-schedule-field textarea{
    min-height:104px;
    font-size:16px;
  }
  body[data-page="home"] .settings-schedule-actions{
    justify-content:stretch;
  }
  body[data-page="home"] .settings-schedule-submit{
    width:100%;
    min-height:46px;
    justify-content:center;
  }
}

/* r9205 — SO Schedule calendar / multi-day consecutive booking options */
body[data-page="home"] .settings-schedule-calendar,
body[data-page="home"] .settings-schedule-day-panel,
body[data-page="home"] .settings-schedule-confirm{
  display:grid;
  gap:9px;
  padding:10px;
  border:1px solid rgba(174,200,233,.18);
  border-radius:18px;
  background:linear-gradient(150deg, rgba(10,25,45,.66), rgba(5,14,26,.52));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055), 0 12px 34px rgba(0,0,0,.18);
}
body[data-page="home"] .settings-schedule-calendar__head,
body[data-page="home"] .settings-schedule-day-panel__head,
body[data-page="home"] .settings-schedule-confirm__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
body[data-page="home"] .settings-schedule-calendar__head > div,
body[data-page="home"] .settings-schedule-day-panel__head > div{
  display:grid;
  gap:2px;
  min-width:0;
  text-align:center;
}
body[data-page="home"] .settings-schedule-calendar__head h4,
body[data-page="home"] .settings-schedule-day-panel__head h4,
body[data-page="home"] .settings-schedule-confirm__head h4{
  margin:0;
  color:#f4d38a;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
}
body[data-page="home"] .settings-schedule-calendar__head strong,
body[data-page="home"] .settings-schedule-day-panel__head strong{
  display:block;
  color:rgba(243,247,255,.94);
  font-size:1rem;
  font-weight:750;
  letter-spacing:.01em;
}
body[data-page="home"] .settings-schedule-weekdays,
body[data-page="home"] .settings-schedule-month-grid{
  display:grid;
  grid-template-columns:repeat(7, minmax(0, 1fr));
  gap:6px;
}
body[data-page="home"] .settings-schedule-weekdays span{
  color:rgba(232,240,252,.52);
  font-size:.69rem;
  font-weight:800;
  letter-spacing:.05em;
  text-align:center;
  text-transform:uppercase;
}
body[data-page="home"] .settings-schedule-day{
  min-height:46px;
  display:grid;
  place-items:center;
  gap:3px;
  padding:7px 3px;
  border:1px solid rgba(174,200,233,.15);
  border-radius:14px;
  background:rgba(6,18,34,.44);
  color:rgba(232,240,252,.60);
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045);
  transition:transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}
body[data-page="home"] .settings-schedule-day:not(:disabled):hover{
  transform:translateY(-1px);
  border-color:rgba(244,211,138,.38);
  background:rgba(244,211,138,.10);
}
body[data-page="home"] .settings-schedule-day:disabled{
  cursor:default;
  opacity:.58;
}
body[data-page="home"] .settings-schedule-day.is-outside{
  opacity:.38;
}
body[data-page="home"] .settings-schedule-day.is-available{
  color:rgba(238,248,255,.94);
  border-color:rgba(126,220,166,.24);
  background:linear-gradient(150deg, rgba(31,118,79,.20), rgba(6,18,34,.50));
}
body[data-page="home"] .settings-schedule-day.is-limited{
  color:rgba(255,239,197,.96);
  border-color:rgba(244,211,138,.32);
  background:linear-gradient(150deg, rgba(244,211,138,.15), rgba(6,18,34,.50));
}
body[data-page="home"] .settings-schedule-day.is-weekend:not(.is-selected){
  border-color:rgba(196,94,121,.28);
  background:linear-gradient(150deg, rgba(144,62,86,.16), rgba(44,18,34,.46));
  color:rgba(255,232,238,.86);
}
body[data-page="home"] .settings-schedule-day.is-selected{
  border-color:rgba(244,211,138,.72);
  background:linear-gradient(150deg, rgba(244,211,138,.24), rgba(61,95,140,.18));
  box-shadow:0 0 0 2px rgba(244,211,138,.15), inset 0 1px 0 rgba(255,255,255,.08);
}
body[data-page="home"] .settings-schedule-day.has-request-option:not(.is-selected){
  border-color:rgba(244,211,138,.44);
  background:linear-gradient(150deg, rgba(244,211,138,.14), rgba(6,18,34,.50));
  box-shadow:inset 0 0 0 1px rgba(244,211,138,.08);
}
body[data-page="home"] .settings-schedule-day__num{
  font-size:1rem;
  font-weight:800;
  line-height:1;
}
body[data-page="home"] .settings-schedule-hint{
  margin:0;
  color:rgba(232,240,252,.68);
  font-size:.78rem;
  line-height:1.45;
}

body[data-page="home"] .settings-schedule-legend{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:.5rem;
  margin:0;
  color:rgba(232,240,252,.72);
  font-size:.76rem;
  font-weight:750;
  line-height:1.2;
}
body[data-page="home"] .settings-schedule-legend__pill{
  width:28px;
  height:12px;
  border-radius:999px;
  border:1px solid rgba(127,211,155,.34);
  background:linear-gradient(150deg, rgba(127,211,155,.26), rgba(6,18,34,.42));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
body[data-page="home"] .settings-schedule-slot-grid{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:8px;
}
body[data-page="home"] .settings-schedule-slot{
  min-height:42px;
  display:grid;
  place-items:center;
  gap:2px;
  padding:7px 6px;
  border:1px solid rgba(174,200,233,.17);
  border-radius:14px;
  background:rgba(6,18,34,.52);
  color:rgba(232,240,252,.72);
  cursor:pointer;
  transition:transform .16s ease, border-color .16s ease, background .16s ease;
}
body[data-page="home"] .settings-schedule-slot span{
  font-size:.86rem;
  font-weight:800;
}
body[data-page="home"] .settings-schedule-slot small{
  display:none;
}
body[data-page="home"] .settings-schedule-slot.is-available{
  color:rgba(238,248,255,.95);
  border-color:rgba(126,220,166,.28);
  background:linear-gradient(150deg, rgba(35,132,89,.20), rgba(6,18,34,.56));
}
body[data-page="home"] .settings-schedule-slot.is-blocked,
body[data-page="home"] .settings-schedule-slot.is-booked,
body[data-page="home"] .settings-schedule-slot.is-pending,
body[data-page="home"] .settings-schedule-slot.is-unavailable{
  opacity:.46;
  cursor:default;
}
body[data-page="home"] .settings-schedule-slot.is-selected{
  color:#fff7df;
  border-color:rgba(244,211,138,.78);
  background:linear-gradient(150deg, rgba(244,211,138,.28), rgba(66,103,151,.20));
  box-shadow:0 0 0 2px rgba(244,211,138,.16), 0 12px 28px rgba(0,0,0,.18);
}
body[data-page="home"] .settings-schedule-slot.is-request-option{
  color:#f4d38a;
  border-color:rgba(244,211,138,.58);
  background:linear-gradient(150deg, rgba(244,211,138,.20), rgba(9,24,43,.54));
  box-shadow:inset 0 0 0 1px rgba(244,211,138,.10);
  cursor:not-allowed;
  opacity:.86;
}
body[data-page="home"] .settings-schedule-slot.is-request-option small{
  display:block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:rgba(244,211,138,.92);
  font-size:.62rem;
  font-weight:800;
  line-height:1.05;
}
body[data-page="home"] .settings-schedule-slot:not(:disabled):hover{
  transform:translateY(-1px);
  border-color:rgba(244,211,138,.54);
}

/* r10316 — admin Schedule editor integrated into the existing day view */
body[data-page="home"] .settings-schedule-day-panel.is-admin-editor{
  border-color:rgba(232,214,164,.20);
  background:rgba(6,18,34,.34);
}
body[data-page="home"] .settings-schedule-slot-grid.is-admin-editor{
  grid-template-columns:repeat(6, minmax(0, 1fr));
  gap:7px;
}
body[data-page="home"] .settings-schedule-slot.is-admin-editable{
  min-height:48px;
  opacity:1;
  cursor:pointer;
  color:rgba(232,240,252,.86);
  background:rgba(255,255,255,.035);
}
body[data-page="home"] .settings-schedule-slot.is-admin-editable small{
  display:block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:rgba(232,240,252,.62);
  font-size:.58rem;
  font-weight:800;
  line-height:1.05;
}
body[data-page="home"] .settings-schedule-slot.is-admin-editable.is-available{
  border-color:rgba(102,215,182,.28);
  background:linear-gradient(150deg, rgba(102,215,182,.10), rgba(6,18,34,.52));
}
body[data-page="home"] .settings-schedule-slot.is-admin-editable.is-blocked,
body[data-page="home"] .settings-schedule-slot.is-admin-editable.is-unavailable{
  border-color:rgba(174,200,233,.14);
  background:rgba(255,255,255,.028);
}
body[data-page="home"] .settings-schedule-slot.is-admin-editable.is-booked,
body[data-page="home"] .settings-schedule-slot.is-admin-editable.is-pending,
body[data-page="home"] .settings-schedule-slot.is-admin-editable.has-session{
  border-color:rgba(232,214,164,.32);
  background:linear-gradient(150deg, rgba(232,214,164,.13), rgba(6,18,34,.54));
}
body[data-page="home"] .settings-schedule-slot.is-admin-editable.has-session small,
body[data-page="home"] .settings-schedule-slot.is-admin-editable.has-override small{
  color:rgba(232,214,164,.94);
}
body[data-page="home"] .settings-schedule-slot.is-admin-editable.is-selected{
  color:#fff7df;
  border-color:rgba(232,214,164,.78);
  background:linear-gradient(150deg, rgba(232,214,164,.22), rgba(66,103,151,.20));
  box-shadow:0 0 0 2px rgba(232,214,164,.16), 0 12px 28px rgba(0,0,0,.18);
}
body[data-page="home"] .settings-schedule-day-admin{
  display:grid;
  gap:9px;
  margin-top:10px;
  padding:10px;
  border:1px solid rgba(174,200,233,.14);
  border-radius:16px;
  background:rgba(6,18,34,.36);
}
body[data-page="home"] .settings-schedule-day-admin__controls{
  display:grid;
  grid-template-columns:minmax(180px,.9fr) minmax(220px,1.1fr);
  gap:8px;
}
body[data-page="home"] .settings-schedule-day-admin__controls label{
  display:grid;
  gap:4px;
  min-width:0;
}
body[data-page="home"] .settings-schedule-day-admin__controls span{
  color:rgba(232,240,252,.62);
  font-size:.65rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body[data-page="home"] .settings-schedule-day-admin__controls input,
body[data-page="home"] .settings-schedule-day-admin__controls select{
  width:100%;
  min-height:32px;
  border:1px solid rgba(174,200,233,.16);
  border-radius:12px;
  background:rgba(6,18,34,.50);
  color:rgba(232,240,252,.92);
  padding:.42rem .56rem;
  font:inherit;
  font-size:.75rem;
}
body[data-page="home"] .settings-schedule-day-admin__label-control{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:end;
  gap:7px;
  min-width:0;
}
body[data-page="home"] .settings-schedule-day-admin__label-control label{
  min-width:0;
}
body[data-page="home"] .settings-schedule-day-admin__label-control .settings-mini-btn{
  min-height:32px;
  white-space:nowrap;
  padding:.42rem .64rem;
}
body[data-page="home"] .settings-schedule-day-admin__cancel-control{
  grid-column:1 / -1;
  padding-top:7px;
  border-top:1px solid rgba(255,183,118,.16);
}
body[data-page="home"] .settings-schedule-day-admin__cancel-control .settings-mini-btn{
  border-color:rgba(255,183,118,.34);
  background:rgba(156,70,46,.14);
  color:#ffd7b2;
}
body[data-page="home"] .settings-schedule-day-admin__cancel-control.is-historical select{
  opacity:.58;
}
body[data-page="home"] .settings-schedule-day-admin__actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px;
}
body[data-page="home"] .settings-schedule-day-admin__actions span{
  margin-right:auto;
  color:rgba(232,214,164,.90);
  font-size:.72rem;
  font-weight:850;
}
body[data-page="home"] .settings-schedule-day-admin__hint{
  margin:0;
  color:rgba(232,240,252,.58);
  font-size:.72rem;
  line-height:1.45;
}
body[data-page="home"] .settings-schedule-day-admin__status{
  margin:0;
}

/* r10320 — admin SO rolling spreadsheet schedule grid + horizontal pan */
body[data-page="home"] .settings-schedule-week-panel{
  display:grid;
  gap:9px;
  padding:10px;
  border:1px solid rgba(174,200,233,.18);
  border-radius:18px;
  background:linear-gradient(150deg, rgba(10,25,45,.66), rgba(5,14,26,.52));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055), 0 12px 34px rgba(0,0,0,.18);
}
body[data-page="home"] .settings-schedule-week-panel__head{
  display:grid;
  grid-template-columns:auto minmax(0, 1fr) auto;
  align-items:center;
  gap:10px;
}
body[data-page="home"] .settings-schedule-week-panel__head > div:not(.settings-schedule-week-panel__nav){
  display:grid;
  gap:2px;
  min-width:0;
  text-align:center;
}
body[data-page="home"] .settings-schedule-week-panel__head h4{
  margin:0;
  color:rgba(232,214,164,.94);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
}
body[data-page="home"] .settings-schedule-week-panel__head strong{
  display:block;
  color:rgba(243,247,255,.94);
  font-size:1rem;
  font-weight:750;
  letter-spacing:.01em;
}
body[data-page="home"] .settings-schedule-week-panel__nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
}
body[data-page="home"] .settings-schedule-week-panel__head em{
  display:block;
  margin-top:2px;
  color:rgba(232,240,252,.50);
  font-size:.62rem;
  font-style:normal;
  font-weight:700;
  line-height:1.25;
}
body[data-page="home"] .settings-schedule-week-panel__jump{
  display:flex;
  align-items:center;
  gap:5px;
  min-height:30px;
  padding:3px 7px;
  border:1px solid rgba(174,200,233,.16);
  border-radius:999px;
  background:rgba(6,18,34,.38);
  color:rgba(232,240,252,.64);
  font-size:.64rem;
  font-weight:800;
}
body[data-page="home"] .settings-schedule-week-panel__jump span{
  color:rgba(232,214,164,.78);
  letter-spacing:.04em;
  text-transform:uppercase;
}
body[data-page="home"] .settings-schedule-week-panel__jump input{
  width:118px;
  min-height:24px;
  border:0;
  background:transparent;
  color:rgba(243,247,255,.92);
  font:inherit;
  font-size:.72rem;
  outline:none;
}
body[data-page="home"] .settings-schedule-week-panel__view{
  display:flex;
  align-items:center;
  gap:4px;
  padding:2px;
  border:1px solid rgba(174,200,233,.12);
  border-radius:999px;
  background:rgba(3,10,21,.28);
}
body[data-page="home"] .settings-schedule-week-panel__view .settings-mini-btn{
  min-height:26px;
  padding:.28rem .48rem;
}
body[data-page="home"] .settings-schedule-week-panel__expand{
  border-color:rgba(232,214,164,.30);
  color:rgba(255,247,223,.92);
}
body[data-page="home"] .settings-schedule-week-admin{
  margin-top:0;
}
body[data-page="home"] .settings-schedule-week-pan-rail{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:5px 10px;
  border:1px solid rgba(174,200,233,.12);
  border-radius:999px;
  background:rgba(7,18,34,.52);
  color:rgba(232,240,252,.56);
  font-size:.68rem;
  font-weight:750;
  letter-spacing:.01em;
  cursor:grab;
  user-select:none;
  -webkit-user-select:none;
}
body[data-page="home"] .settings-schedule-week-pan-rail:active{
  cursor:grabbing;
}
body[data-page="home"] .settings-schedule-week-pan-rail span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* SO schedule week grid owner block.
   Keep day/date headers, time rail, and body cells in one CSS grid. Splitting the
   day/date row into a separate synchronized strip caused mobile drift/repaint bugs. */
body[data-page="home"] .settings-schedule-week-grid-shell,
body[data-page="home"] .settings-schedule-week-grid-shell .settings-schedule-week-grid{
  --schedule-time-col:50px;
  --schedule-day-count:21;
  --schedule-day-min:84px;
  --schedule-grid-min-width:1814px;
}
body[data-page="home"] .settings-schedule-week-grid-shell{
  overflow:hidden;
  border:1px solid rgba(174,200,233,.14);
  border-radius:16px;
  background:rgba(3,10,21,.46);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045);
  isolation:isolate;
}
body[data-page="home"] .settings-schedule-week-grid-scroll{
  max-height:min(68vh, 620px);
  overflow:auto;
  overscroll-behavior:contain;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  user-select:none;
  -webkit-user-select:none;
  isolation:isolate;
  -webkit-overflow-scrolling:touch;
}
body[data-page="home"] .settings-schedule-week-grid-scroll.is-schedule-panning,
body[data-page="home"] .settings-schedule-week-grid-scroll.is-schedule-gliding{
  cursor:grabbing;
  scroll-behavior:auto;
}
body[data-page="home"] .settings-schedule-week-grid-scroll.is-schedule-panning .settings-schedule-week-grid__day,
body[data-page="home"] .settings-schedule-week-grid-scroll.is-schedule-panning .settings-schedule-week-grid__corner,
body[data-page="home"] .settings-schedule-week-grid-scroll.is-schedule-gliding .settings-schedule-week-grid__day,
body[data-page="home"] .settings-schedule-week-grid-scroll.is-schedule-gliding .settings-schedule-week-grid__corner{
  cursor:grabbing;
}
body[data-page="home"] .settings-schedule-week-grid-scroll.is-schedule-panning .settings-schedule-week-grid,
body[data-page="home"] .settings-schedule-week-grid-scroll.is-schedule-gliding .settings-schedule-week-grid{
  will-change:scroll-position;
}
body[data-page="home"] .settings-schedule-week-grid-scroll:focus-visible{
  outline:2px solid rgba(232,214,164,.62);
  outline-offset:3px;
}
body[data-page="home"] .settings-schedule-week-grid{
  width:max-content;
  min-width:max-content;
  max-width:none;
  display:grid;
  grid-template-columns:var(--schedule-time-col) repeat(var(--schedule-day-count), var(--schedule-day-min));
  align-items:stretch;
  background:rgba(255,255,255,.035);
}
body[data-page="home"] .settings-schedule-week-grid__corner,
body[data-page="home"] .settings-schedule-week-grid__day,
body[data-page="home"] .settings-schedule-week-grid__time,
body[data-page="home"] .settings-schedule-week-grid__cell{
  box-sizing:border-box;
  min-width:0;
  border:0;
  border-right:1px solid rgba(174,200,233,.15);
  border-bottom:1px solid rgba(174,200,233,.13);
}
body[data-page="home"] .settings-schedule-week-grid__day,
body[data-page="home"] .settings-schedule-week-grid__cell{
  appearance:none;
  -webkit-appearance:none;
  margin:0;
  font-family:inherit;
}
body[data-page="home"] .settings-schedule-week-grid__corner{
  position:sticky;
  top:0;
  left:0;
  z-index:90;
  display:grid;
  place-items:center;
  min-height:34px;
  padding:3px 4px;
  border-right:1px solid rgba(174,200,233,.16);
  background:linear-gradient(150deg, rgba(16,38,65,.99), rgba(8,19,36,.99));
  color:rgba(232,214,164,.92);
  font-size:.56rem;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body[data-page="home"] .settings-schedule-week-grid__day{
  position:sticky;
  top:0;
  left:auto;
  z-index:70;
  display:grid;
  place-items:center;
  gap:2px;
  min-height:34px;
  padding:3px 2px;
  background:linear-gradient(150deg, rgba(16,38,65,.96), rgba(8,19,36,.96));
  color:rgba(232,240,252,.90);
  text-align:center;
  cursor:grab;
  opacity:1;
  background-clip:padding-box;
}
body[data-page="home"] .settings-schedule-week-grid__day:active{
  cursor:grabbing;
}
body[data-page="home"] .settings-schedule-week-grid__day.is-anchor-week{
  background:linear-gradient(150deg, rgba(18,45,78,.98), rgba(10,24,44,.98));
}
body[data-page="home"] .settings-schedule-week-grid__day.is-context-week{
  color:rgba(232,240,252,.72);
}
body[data-page="home"] .settings-schedule-week-grid__day.is-weekend,
body[data-page="home"] .settings-schedule-week-grid__day.is-weekend.is-anchor-week,
body[data-page="home"] .settings-schedule-week-grid__day.is-weekend.is-context-week,
body[data-page="home"] .settings-schedule-week-grid__day.is-weekend.is-outside-horizon{
  background:linear-gradient(150deg, rgba(104,45,68,.96), rgba(44,18,34,.96));
  color:rgba(255,232,238,.92);
}
body[data-page="home"] .settings-schedule-week-grid__day.is-anchor-week-start,
body[data-page="home"] .settings-schedule-week-grid__cell.is-anchor-week-start{
  border-left:2px solid rgba(232,214,164,.34);
}
body[data-page="home"] .settings-schedule-week-grid__day.is-today{
  color:#fff7df;
  box-shadow:inset 0 -2px 0 rgba(232,214,164,.58);
}
body[data-page="home"] .settings-schedule-week-grid__day.is-outside-horizon{
  opacity:.72;
}
body[data-page="home"] .settings-schedule-week-grid__day span,
body[data-page="home"] .settings-schedule-week-grid__day strong,
body[data-page="home"] .settings-schedule-week-grid__day em{
  display:block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  visibility:visible;
}
body[data-page="home"] .settings-schedule-week-grid__day span{
  font-size:.56rem;
  font-weight:850;
  letter-spacing:.06em;
  line-height:1;
  text-transform:uppercase;
}
body[data-page="home"] .settings-schedule-week-grid__day strong{
  color:inherit;
  font-size:.78rem;
  font-weight:900;
  line-height:1;
}
body[data-page="home"] .settings-schedule-week-grid__day em{
  color:rgba(232,240,252,.48);
  font-size:.43rem;
  font-style:normal;
  font-weight:800;
  letter-spacing:.05em;
  line-height:1;
  text-transform:uppercase;
}
body[data-page="home"] .settings-schedule-week-grid__time{
  position:sticky;
  left:0;
  z-index:40;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  min-height:24px;
  padding:4px 2px;
  background:linear-gradient(180deg, rgba(8,22,42,.995), rgba(5,15,30,.995));
  background-clip:padding-box;
  color:rgba(232,240,252,.62);
  font-size:.61rem;
  font-weight:850;
  line-height:1;
}
body[data-page="home"] .settings-schedule-week-grid__cell{
  min-height:24px;
  display:grid;
  place-items:center;
  padding:1px 3px;
  border-radius:0;
  background:rgba(255,255,255,.018);
  color:rgba(232,240,252,.82);
  font:inherit;
  cursor:pointer;
  touch-action:manipulation;
  user-select:none;
  -webkit-user-select:none;
  -webkit-tap-highlight-color:transparent;
  transition:background .08s ease, color .08s ease;
}
body[data-page="home"] .settings-schedule-week-grid__cell.is-weekend:not(.is-selected),
body[data-page="home"] .settings-schedule-week-grid__cell.is-weekend.is-anchor-week:not(.is-selected),
body[data-page="home"] .settings-schedule-week-grid__cell.is-weekend.is-context-week:not(.is-selected),
body[data-page="home"] .settings-schedule-week-grid__cell.is-weekend.is-outside-horizon:not(.is-selected){
  background:rgba(144,62,86,.105);
}
body[data-page="home"] .settings-schedule-week-grid__cell.is-anchor-week:not(.is-selected):not(.has-label):not(.is-weekend){
  background:rgba(255,255,255,.026);
}
body[data-page="home"] .settings-schedule-week-grid__cell.is-context-week:not(.is-selected){
  color:rgba(232,240,252,.66);
}
body[data-page="home"] .settings-schedule-week-grid__cell.is-today:not(.is-selected):not(.is-weekend){
  background:rgba(232,214,164,.045);
}
body[data-page="home"] .settings-schedule-week-grid__cell.is-available.is-empty{
  color:transparent;
}
body[data-page="home"] .settings-schedule-week-grid__cell.is-blocked,
body[data-page="home"] .settings-schedule-week-grid__cell.has-override{
  background:rgba(232,214,164,.10);
}
body[data-page="home"] .settings-schedule-week-grid__cell.has-session,
body[data-page="home"] .settings-schedule-week-grid__cell.is-booked,
body[data-page="home"] .settings-schedule-week-grid__cell.is-pending{
  background:linear-gradient(150deg, rgba(88,126,166,.24), rgba(232,214,164,.10));
}
body[data-page="home"] .settings-schedule-week-grid__cell.is-weekend.has-label:not(.is-selected),
body[data-page="home"] .settings-schedule-week-grid__cell.is-weekend.has-session:not(.is-selected),
body[data-page="home"] .settings-schedule-week-grid__cell.is-weekend.has-override:not(.is-selected){
  background:linear-gradient(150deg, rgba(126,80,104,.28), rgba(70,36,54,.22));
}
body[data-page="home"] .settings-schedule-week-grid__cell.is-unavailable:not(.has-label),
body[data-page="home"] .settings-schedule-week-grid__cell.is-outside-horizon{
  opacity:.50;
  cursor:default;
}
body[data-page="home"] .settings-schedule-week-grid__cell:disabled{
  cursor:default;
}
body[data-page="home"] .settings-schedule-week-grid__cell:focus{
  outline:none;
}
body[data-page="home"] .settings-schedule-week-grid__cell:focus-visible{
  box-shadow:inset 0 0 0 2px rgba(232,214,164,.70), 0 0 0 2px rgba(23,119,82,.22);
}
body[data-page="home"] .settings-schedule-week-grid__cell.is-selected{
  color:#fff7df;
  background:linear-gradient(150deg, rgba(232,214,164,.30), rgba(66,103,151,.28));
  box-shadow:inset 0 0 0 2px rgba(232,214,164,.84), 0 0 0 1px rgba(232,214,164,.15);
}
body[data-page="home"] .settings-schedule-week-grid__cell.is-active{
  transform:none;
  box-shadow:inset 0 0 0 2px rgba(232,214,164,.94), 0 0 0 2px rgba(23,119,82,.28);
}
body[data-page="home"] .settings-schedule-week-grid__cell span,
body[data-page="home"] .settings-schedule-week-grid__label{
  display:block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:.58rem;
  font-weight:830;
  line-height:1.05;
  pointer-events:none;
}
body[data-page="home"] .settings-schedule-week-panel__hint{
  margin:0;
  color:rgba(232,240,252,.56);
  font-size:.71rem;
  line-height:1.45;
}
body[data-page="home"] .settings-schedule-week-panel__empty-range{
  margin:-2px 0 0;
  padding:7px 10px;
  border:1px solid rgba(232,214,164,.18);
  border-radius:12px;
  background:rgba(232,214,164,.06);
  color:rgba(255,247,223,.72);
  font-size:.70rem;
  font-weight:720;
  line-height:1.35;
}
@media (hover:hover) and (pointer:fine){
  body[data-page="home"] .settings-schedule-week-grid__cell:not(:disabled):hover{
    background:rgba(232,214,164,.13);
    box-shadow:inset 0 0 0 1px rgba(232,214,164,.22);
  }
}
@media (hover:none), (pointer:coarse){
  body[data-page="home"] .settings-schedule-week-grid__cell:not(:disabled):hover{
    box-shadow:none !important;
  }
  body[data-page="home"] .settings-schedule-week-grid__cell:focus:not(:focus-visible){
    box-shadow:none !important;
  }
  body[data-page="home"] .settings-schedule-week-grid__cell.is-selected:focus:not(:focus-visible),
  body[data-page="home"] .settings-schedule-week-grid__cell.is-active:focus:not(:focus-visible){
    box-shadow:inset 0 0 0 2px rgba(232,214,164,.84), 0 0 0 1px rgba(232,214,164,.15) !important;
  }
}
@media (prefers-reduced-motion:reduce){
  body[data-page="home"] .settings-schedule-week-grid-scroll.is-schedule-gliding{
    scroll-behavior:auto;
  }
}
@media (max-width:760px){
  body[data-page="home"] .settings-schedule-week-panel{
    border-radius:16px;
    padding:8px;
    gap:8px;
    margin-inline:0;
  }
  body[data-page="home"] .settings-schedule-week-panel__head{
    grid-template-columns:36px minmax(0, 1fr);
    align-items:start;
    gap:7px;
  }
  body[data-page="home"] .settings-schedule-week-panel__head > .settings-mini-btn[data-settings-action="schedule-grid-prev"]{
    grid-column:1;
    grid-row:1;
    width:34px;
    min-width:34px;
    min-height:34px;
    padding:0;
  }
  body[data-page="home"] .settings-schedule-week-panel__head > div:not(.settings-schedule-week-panel__nav){
    grid-column:2;
    grid-row:1;
    min-width:0;
  }
  body[data-page="home"] .settings-schedule-week-panel__head h4{
    font-size:.60rem;
    line-height:1.15;
  }
  body[data-page="home"] .settings-schedule-week-panel__head strong{
    font-size:.74rem;
    line-height:1.16;
  }
  body[data-page="home"] .settings-schedule-week-panel__nav{
    grid-column:1 / -1;
    display:grid;
    grid-template-columns:auto minmax(0, 1fr) auto auto;
    gap:5px;
    width:100%;
    max-width:none;
    justify-content:stretch;
  }
  body[data-page="home"] .settings-schedule-week-panel__nav .settings-mini-btn{
    min-height:30px;
    padding:5px 8px;
    font-size:.64rem;
  }
  body[data-page="home"] .settings-schedule-week-panel__expand{
    display:none !important;
  }
  body[data-page="home"] .settings-schedule-week-panel__jump{
    min-width:0;
    width:100%;
    display:grid;
    grid-template-columns:auto minmax(0, 1fr);
    gap:6px;
    padding:3px 8px;
  }
  body[data-page="home"] .settings-schedule-week-panel__jump input{
    width:100%;
    min-width:0;
    font-size:.70rem;
  }
  body[data-page="home"] .settings-schedule-week-pan-rail{
    justify-content:flex-start;
    min-height:24px;
    padding:4px 7px;
    border-radius:12px;
    font-size:.64rem;
  }
  body[data-page="home"] .settings-schedule-week-pan-rail span{
    font-size:0;
  }
  body[data-page="home"] .settings-schedule-week-pan-rail span::after{
    content:"Swipe left/right · Tap cells on/off";
    font-size:.62rem;
    font-weight:850;
    letter-spacing:.02em;
  }
  body[data-page="home"] .settings-schedule-week-grid-shell,
  body[data-page="home"] .settings-schedule-week-grid-shell .settings-schedule-week-grid{
    --schedule-time-col:43px;
    --schedule-day-min:58px;
    --schedule-grid-min-width:1261px;
  }
  body[data-page="home"] .settings-schedule-week-grid-shell{
    margin-inline:5px;
    border-radius:13px;
  }
  body[data-page="home"] .settings-schedule-week-grid-scroll{
    max-height:min(54svh, 460px);
    border-radius:0;
    overscroll-behavior:auto;
  }
  body[data-page="home"] .settings-schedule-week-grid__corner,
  body[data-page="home"] .settings-schedule-week-grid__day{
    min-height:35px;
  }
  body[data-page="home"] .settings-schedule-week-grid__day{
    display:grid;
    place-items:center;
    gap:1px;
    padding:3px 1px 4px;
  }
  body[data-page="home"] .settings-schedule-week-grid__day span{
    font-size:.54rem;
    line-height:1;
  }
  body[data-page="home"] .settings-schedule-week-grid__day strong{
    font-size:.86rem;
    line-height:.94;
  }
  body[data-page="home"] .settings-schedule-week-grid__day em{
    font-size:.58rem;
    line-height:1;
    color:rgba(232,240,252,.72);
  }
  body[data-page="home"] .settings-schedule-week-grid__time{
    align-items:center;
    justify-content:center;
    min-height:26px;
    padding:0 1px;
    color:rgba(232,240,252,.66);
    font-size:.75rem;
    line-height:1;
    z-index:40;
  }
  body[data-page="home"] .settings-schedule-week-grid__cell{
    min-height:26px;
    padding:1px 2px;
    touch-action:pan-x pan-y;
  }
  body[data-page="home"] .settings-schedule-week-grid__cell span,
  body[data-page="home"] .settings-schedule-week-grid__label{
    font-size:.64rem;
    font-weight:890;
    line-height:1.02;
  }
  body[data-page="home"] .settings-schedule-day-admin{
    gap:6px;
    margin-top:7px;
    padding:7px;
    border-radius:14px;
  }
  body[data-page="home"] .settings-schedule-day-admin__controls,
  body[data-page="home"] .settings-schedule-day-admin__label-control{
    grid-template-columns:1fr;
    gap:6px;
  }
  body[data-page="home"] .settings-schedule-day-admin__controls span{
    font-size:.54rem;
    letter-spacing:.06em;
  }
  body[data-page="home"] .settings-schedule-day-admin__controls input,
  body[data-page="home"] .settings-schedule-day-admin__controls select{
    min-height:28px;
    border-radius:10px;
    padding:.34rem .46rem;
    font-size:.68rem;
  }
  body[data-page="home"] .settings-schedule-day-admin__label-control .settings-mini-btn{
    width:100%;
    min-height:28px;
    justify-content:center;
    padding:.34rem .46rem;
    font-size:.66rem;
  }
  body[data-page="home"] .settings-schedule-day-admin__actions{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:6px;
  }
  body[data-page="home"] .settings-schedule-day-admin__actions span{
    grid-column:1 / -1;
    width:auto;
    margin-right:0;
    font-size:.66rem;
  }
  body[data-page="home"] .settings-schedule-day-admin__actions .settings-mini-btn{
    width:100%;
    min-height:29px;
    justify-content:center;
    padding:.34rem .38rem;
    font-size:.64rem;
    white-space:nowrap;
  }
  body[data-page="home"] .settings-schedule-day-admin__hint,
  body[data-page="home"] .settings-schedule-week-panel__hint{
    display:none;
  }
  body.settings-shell-open .ccr-client-activity-launcher{
    display:none !important;
  }
}
@media (min-width:761px){
  body[data-page="home"] .settings-schedule-week-grid-scroll{
    max-height:min(70vh, 610px);
  }
  body[data-page="home"] .settings-schedule-day-admin{
    padding:9px;
    gap:8px;
  }
}
@media (max-width:520px){
  body[data-page="home"] .settings-schedule-week-panel{
    margin-inline:0;
    padding:6px;
  }
  body[data-page="home"] .settings-schedule-week-grid-shell{
    margin-inline:6px;
  }
}

/* r10350 — expanded admin schedule workspace. This reuses the same SO schedule
   grid renderer and existing schedule_request.php save path; it is not a second
   schedule model. */
body[data-page="home"] .settings-schedule-heading-expand{
  min-height:28px;
  padding:.32rem .56rem;
  border-color:rgba(232,214,164,.24);
  color:rgba(255,247,223,.90);
}
body[data-page="home"] .settings-schedule-expanded-layer{
  position:fixed;
  inset:0;
  z-index:8;
  display:grid;
  place-items:center;
  padding:max(14px, env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) max(14px, env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
}
body[data-page="home"] .settings-schedule-expanded-backdrop{
  position:absolute;
  inset:0;
  border:0;
  background:rgba(3,8,15,.64);
  backdrop-filter:blur(10px) saturate(1.05);
  cursor:default;
}
body[data-page="home"] .settings-schedule-expanded-card{
  position:relative;
  z-index:1;
  width:min(3200px, calc(100vw - 28px));
  height:min(96svh, 1600px);
  min-height:min(760px, calc(100svh - 28px));
  display:grid;
  grid-template-rows:auto minmax(0, 1fr);
  overflow:hidden;
  border:1px solid rgba(214,229,248,.16);
  border-radius:26px;
  background:
    radial-gradient(circle at 18% 0%, rgba(124,160,205,.10), transparent 34%),
    linear-gradient(180deg, rgba(24,36,50,.94), rgba(7,13,23,.91));
  box-shadow:0 36px 110px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
  color:var(--text);
}
body[data-page="home"] .settings-schedule-expanded-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:12px 18px 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(27,39,53,.98), rgba(14,24,40,.96));
}
body[data-page="home"] .settings-schedule-expanded-header p{
  margin:0 0 5px;
  color:rgba(232,214,164,.82);
  font-size:.70rem;
  font-weight:850;
  letter-spacing:.16em;
  text-transform:uppercase;
}
body[data-page="home"] .settings-schedule-expanded-header h3{
  margin:0;
  color:rgba(243,247,255,.96);
  font-size:1.12rem;
  font-weight:850;
}
body[data-page="home"] .settings-schedule-expanded-header span{
  display:block;
  margin-top:4px;
  color:rgba(232,240,252,.58);
  font-size:.78rem;
  font-weight:650;
}
body[data-page="home"] .settings-schedule-expanded-close{
  flex:0 0 auto;
}
body[data-page="home"] .settings-schedule-expanded-body{
  min-height:0;
  padding:10px;
  overflow:hidden;
}
body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-week-panel{
  height:100%;
  min-height:0;
  grid-template-rows:auto auto minmax(0, 1fr) auto;
  gap:8px;
  padding:10px;
  border-radius:22px;
}
body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-week-panel__head{
  grid-template-columns:auto minmax(320px, 1fr) minmax(760px, auto);
  align-items:start;
}
body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-week-panel__head > div:not(.settings-schedule-week-panel__nav){
  text-align:left;
}
body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-week-panel__nav{
  flex-wrap:wrap;
  justify-content:flex-end;
  max-width:none;
}
body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-day-admin{
  display:grid;
  grid-template-columns:minmax(560px, 1fr) minmax(520px, auto);
  align-items:end;
  gap:8px 14px;
  padding:8px 9px;
}
body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-day-admin__controls{
  grid-column:1;
  grid-template-columns:minmax(210px, .58fr) minmax(340px, 1.42fr);
}
body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-day-admin__actions{
  grid-column:2;
  justify-content:flex-end;
}
body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-day-admin__hint,
body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-day-admin__status{
  grid-column:1 / -1;
}
body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-week-grid-shell{
  min-height:0;
}
body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-week-grid-scroll{
  height:100%;
  max-height:none;
}
body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-week-pan-rail{
  display:none;
}
body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-week-panel__hint{
  margin:0;
}
body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-week-grid-shell,
body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-week-grid-shell .settings-schedule-week-grid{
  --schedule-time-col:62px;
  --schedule-day-min:118px;
}
@media (min-width:1600px){
  body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-week-grid-shell,
  body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-week-grid-shell .settings-schedule-week-grid{
    --schedule-day-min:126px;
  }
}
@media (min-width:2200px){
  body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-week-grid-shell,
  body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-week-grid-shell .settings-schedule-week-grid{
    --schedule-day-min:134px;
  }
}
@media (max-width:1320px){
  body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-week-panel__head{
    grid-template-columns:auto minmax(0, 1fr);
  }
  body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-week-panel__nav{
    grid-column:1 / -1;
    justify-content:flex-start;
  }
  body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-day-admin{
    grid-template-columns:1fr;
  }
  body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-day-admin__controls,
  body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-day-admin__actions{
    grid-column:1;
  }
  body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-day-admin__actions{
    justify-content:flex-start;
  }
}
@media (max-width:900px){
  body[data-page="home"] .settings-schedule-heading-expand,
  body[data-page="home"] .settings-schedule-week-panel__expand{
    display:none !important;
  }
  body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-week-pan-rail{
    display:flex;
  }
  body[data-page="home"] .settings-schedule-expanded-card{
    width:calc(100vw - 18px);
    height:calc(100svh - 18px);
    min-height:0;
    border-radius:20px;
  }
  body[data-page="home"] .settings-schedule-expanded-body{
    padding:8px;
  }
  body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-week-panel__head{
    grid-template-columns:1fr;
  }
  body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-week-panel__nav{
    justify-content:flex-start;
    max-width:none;
  }
}

body[data-page="home"] .settings-schedule-request-compose{
  display:grid;
  justify-items:center;
  gap:14px;
  width:min(100%, 520px);
  margin-inline:auto;
  text-align:center;
}
body[data-page="home"] .settings-schedule-request-compose .settings-schedule-field{
  width:100%;
}
body[data-page="home"] .settings-schedule-request-compose textarea{
  height:62px;
  min-height:62px;
  resize:none;
  overflow:auto;
}
body[data-page="home"] .settings-schedule-request-compose textarea:placeholder-shown{
  padding-block:calc((62px - 1.5em - 2px) / 2);
}
body[data-page="home"] .settings-schedule-request-compose textarea::placeholder{
  text-align:center;
}
body[data-page="home"] .settings-schedule-request-compose .settings-schedule-actions{
  width:100%;
  justify-content:center;
}
body[data-page="home"] .settings-schedule-request-compose .settings-schedule-submit{
  width:min(100%, 320px);
  justify-content:center;
}
body[data-page="home"] .settings-schedule-request-notice{
  margin:0;
  padding:7px 10px;
  border-radius:11px;
  border:1px solid rgba(174,200,233,.20);
  background:rgba(6,18,34,.38);
  color:rgba(232,240,252,.88);
  font-size:.78rem;
  font-weight:750;
  line-height:1.35;
  text-align:center;
}
body[data-page="home"] .settings-schedule-request-notice.is-ok{
  border-color:rgba(126,220,166,.34);
  background:rgba(44,150,91,.12);
  color:rgba(214,255,231,.96);
}
body[data-page="home"] .settings-schedule-request-notice.is-note{
  border-color:rgba(244,211,138,.28);
  background:rgba(244,211,138,.08);
  color:#fff0c4;
}
body[data-page="home"] .settings-schedule-request-notice.is-error{
  border-color:rgba(255,128,128,.34);
  background:rgba(156,46,58,.12);
  color:#ffdddd;
}
body[data-page="home"] .settings-schedule-submit.is-sent,
body[data-page="home"] .settings-schedule-submit.is-sent:disabled{
  border-color:rgba(126,220,166,.52);
  background:linear-gradient(145deg, rgba(44,150,91,.42), rgba(24,105,70,.36));
  color:#e2ffed;
  opacity:1;
}
@media (max-width:760px){
  body[data-page="home"] .settings-schedule-calendar,
  body[data-page="home"] .settings-schedule-day-panel,
  body[data-page="home"] .settings-schedule-confirm{
    border-radius:16px;
    padding:11px;
  }
  body[data-page="home"] .settings-schedule-calendar__head{
    grid-template-columns:44px 1fr 44px;
  }
  body[data-page="home"] .settings-schedule-weekdays,
  body[data-page="home"] .settings-schedule-month-grid{
    gap:4px;
  }
  body[data-page="home"] .settings-schedule-day{
    min-height:42px;
    border-radius:12px;
    padding:6px 2px;
  }
  body[data-page="home"] .settings-schedule-slot-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:6px;
  }
  body[data-page="home"] .settings-schedule-slot{
    min-height:42px;
    border-radius:13px;
  }
}

/* r9026/r9109 — desktop header balance: less wrap-sensitive site title + compact right-avatar session badge */
@media (min-width:761px){
  body[data-page="home"] .header-inner{
    grid-template-columns:minmax(0,1fr) auto;
    align-items:start;
    column-gap:clamp(20px,2.8vw,42px);
  }
  body[data-page="home"] .masthead{
    max-width:min(100%, 1080px);
  }
  body[data-page="home"] .masthead h1[data-site-title]{
    
    white-space:normal !important;
    
    font-size:var(--ccr-masthead-title-size,clamp(25px,2.55vw,38px)) !important;
    line-height:1.08 !important;
    padding:18px 22px !important;
  }
  body[data-page="home"] .masthead h1[data-site-title] .site-title-text{
    display:inline-flex;
    flex-wrap:nowrap;
    align-items:baseline;
    column-gap:.18em;
    row-gap:0;
    white-space:nowrap !important;
  }
  body[data-page="home"] .masthead h1[data-site-title] .site-title-rest,
  body[data-page="home"] .masthead h1[data-site-title] .site-title-ccr{
    white-space:nowrap !important;
  }
  body[data-page="home"] .header-actions{
    min-width:min(252px, 28vw);
    align-content:flex-start;
  }
}
@media (min-width:761px) and (max-width:940px){
  body[data-page="home"] .masthead{
    max-width:min(100%, 860px);
  }
  body[data-page="home"] .masthead h1[data-site-title]{
    max-width:min(100%, 860px) !important;
    
    padding-inline:18px !important;
  }
  body[data-page="home"] .header-actions{
    min-width:min(228px, 32vw);
  }
}
@media (min-width:761px) and (max-width:820px){
  body[data-page="home"] .masthead h1[data-site-title] .site-title-text{
    flex-wrap:wrap;
    white-space:normal !important;
  }
  body[data-page="home"] .masthead h1[data-site-title] .site-title-rest,
  body[data-page="home"] .masthead h1[data-site-title] .site-title-ccr{
    white-space:normal !important;
  }
}
/* r9024 — desktop signed-in badge + SO session photo control */
body[data-page="home"] .home-session-badge-row{
  flex:0 0 100%;
  width:100%;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  margin-top:8px;
}
body[data-page="home"] .home-session-badge-row[hidden]{display:none !important;}
body[data-page="home"] .home-session-badge{
  flex:0 0 auto;
  width:max-content;
  min-width:0;
  max-width:min(190px, 100%);
  margin-left:auto;
  margin-top:0;
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  padding:6px 7px 6px 14px;
  border:1px solid rgba(244,211,138,.22);
  border-radius:999px;
  background:linear-gradient(115deg, rgba(244,211,138,.10), rgba(22,42,65,.42) 48%, rgba(7,18,33,.64));
  box-shadow:0 10px 22px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.05);
  color:rgba(243,247,255,.94);
  backdrop-filter:blur(10px);
}
body[data-page="home"] .home-session-badge[hidden]{display:none !important;}
body[data-page="home"] .home-session-badge__text{
  display:grid;
  gap:0;
  min-width:0;
  line-height:1.05;
  text-align:left;
}
body[data-page="home"] .home-session-badge em{
  color:rgba(244,211,138,.88);
  font-size:.61rem;
  font-style:normal;
  font-weight:800;
  letter-spacing:.07em;
  text-transform:uppercase;
}
body[data-page="home"] .home-session-badge strong{
  max-width:160px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:.78rem;
  font-weight:850;
}
body[data-page="home"] .home-session-badge small{
  color:rgba(203,219,236,.72);
  font-size:.66rem;
  font-weight:700;
}
body[data-page="home"] .settings-user-avatar{
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:999px;
  display:inline-grid;
  place-items:center;
  overflow:hidden;
  border:1px solid rgba(244,211,138,.34);
  background:radial-gradient(circle at 32% 24%, rgba(244,211,138,.30), rgba(31,62,100,.30) 45%, rgba(6,18,34,.76));
  color:#fff1c8;
  box-shadow:0 10px 24px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.08);
  font-weight:900;
  letter-spacing:.05em;
}
body[data-page="home"] .settings-user-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
body[data-page="home"] .settings-user-avatar--tiny{
  width:30px;
  height:30px;
  flex-basis:30px;
  font-size:.68rem;
}
body[data-page="home"] .settings-user-avatar--large{
  width:68px;
  height:68px;
  flex-basis:68px;
  font-size:1.15rem;
}
body[data-page="home"] .settings-user-chip--with-avatar{
  padding:7px 11px 7px 7px;
  gap:9px;
}
body[data-page="home"] .settings-session-panel{
  display:grid;
  gap:12px;
}
body[data-page="home"] .settings-profile-photo-upload{
  position:relative;
  overflow:hidden;
  cursor:pointer;
}
body[data-page="home"] .settings-profile-photo-upload input{
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
}
body[data-page="home"] .settings-profile-photo-upload.is-disabled{
  opacity:.55;
  cursor:default;
}
body[data-page="home"] .settings-photo-status{
  margin-top:0 !important;
}
body[data-page="home"] .settings-session-row--compact{
  align-items:stretch;
}
body[data-page="home"] .settings-user-chip--session{
  position:relative;
  display:grid;
  
  
  
  
  
  
  
  
}
body[data-page="home"] .settings-user-chip--session .settings-user-avatar{
  grid-area:avatar;
}
body[data-page="home"] .settings-user-chip--session .settings-user-chip__stack{
  grid-area:name;
}
body[data-page="home"] .settings-user-chip--session .settings-user-chip__meta{
  grid-area:meta;
  justify-self:end;
}
body[data-page="home"] .settings-user-chip__photo-btn{
  grid-area:action;
  justify-self:end;
  align-self:end;
  color:rgba(244,211,138,.92);
  border-color:rgba(244,211,138,.22);
  background:rgba(244,211,138,.07);
}
body[data-page="home"] .settings-profile-photo-flyout{
  position:fixed;
  inset:0;
  z-index:2147481800;
  display:grid;
  place-items:center;
  padding:20px;
}
body[data-page="home"] .settings-profile-photo-flyout__backdrop{
  position:absolute;
  inset:0;
  
  
}
body[data-page="home"] .settings-profile-photo-flyout__card{
  position:relative;
  z-index:1;
  width:min(460px, calc(100vw - 30px));
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:16px;
  
  padding:18px;
  border:1px solid rgba(244,211,138,.26);
  border-radius:22px;
  
  
}
body[data-page="home"] .settings-profile-photo-flyout__close{
  position:absolute;
  top:10px;
  right:10px;
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:rgba(232,240,252,.86);
  cursor:pointer;
  font-size:1.2rem;
  line-height:1;
}
body[data-page="home"] .settings-profile-photo-flyout__body{
  display:grid;
  gap:10px;
  min-width:0;
  padding-right:30px;
}
body[data-page="home"] .settings-profile-photo-flyout__head{
  display:flex;
  align-items:center;
  
  gap:10px;
  flex-wrap:wrap;
}
body[data-page="home"] .settings-profile-photo-flyout__head strong{
  color:rgba(244,211,138,.96);
  font-size:1rem;
}
body[data-page="home"] .settings-profile-photo-flyout__head span{
  color:rgba(232,240,252,.72);
  font-size:.72rem;
  font-weight:800;
  border:1px solid rgba(244,211,138,.18);
  border-radius:999px;
  padding:3px 8px;
}
body[data-page="home"] .settings-profile-photo-flyout p{
  margin:0;
  color:rgba(232,240,252,.68);
  font-size:.82rem;
  line-height:1.5;
}
@media (max-width:760px){
  body[data-page="home"] .home-session-badge{
    display:none !important;
  }
    body[data-page="home"] .settings-user-chip--session .settings-user-chip__meta,
  body[data-page="home"] .settings-user-chip__photo-btn{
    justify-self:start;
  }
  body[data-page="home"] .settings-profile-photo-flyout__card{
    grid-template-columns:1fr;
    
    padding:16px;
  }
  body[data-page="home"] .settings-profile-photo-flyout__body{
    padding-right:0;
  }
  body[data-page="home"] .settings-profile-photo-actions .settings-mini-btn{
    flex:1 1 100%;
    justify-content:center;
  }
}

/* r9028 — root-level session layout, desktop badge row, and mobile SO session compaction */
@media (min-width:761px){
  body[data-page="home"] .home-session-badge-row{
    flex:0 0 100%;
    width:100%;
    display:flex;
    justify-content:flex-end;
    align-items:center;
    margin-top:8px;
  }
  body[data-page="home"] .home-session-badge{
    flex:0 0 auto;
    width:auto;
    min-width:0;
    max-width:190px;
    margin-left:auto;
    margin-top:0;
    padding:5px 6px 5px 13px;
    gap:8px;
    justify-content:flex-end;
  }
  body[data-page="home"] .home-session-badge__text{
    display:block;
    min-width:0;
    max-width:124px;
    text-align:right;
  }
  body[data-page="home"] .home-session-badge strong{
    display:block;
    max-width:124px;
    font-size:.76rem;
  }
  }
body[data-page="home"] .settings-user-chip--session{
  grid-template-columns:auto minmax(0,1fr) auto;
  grid-template-areas:"avatar name actions";
  align-items:center;
  gap:9px 12px;
  padding:10px 12px;
  border:1px solid rgba(174,200,233,.13);
  border-radius:18px;
  background:linear-gradient(135deg, rgba(6,18,34,.28), rgba(21,42,70,.18));
}
body[data-page="home"] .settings-user-chip--session .settings-user-chip__actions{
  grid-area:actions;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  flex-wrap:nowrap;
  min-width:0;
}
body[data-page="home"] .settings-user-chip--session .settings-user-chip__meta,
body[data-page="home"] .settings-user-chip__logout-btn,
body[data-page="home"] .settings-user-chip__photo-btn{
  min-height:32px;
  padding:6px 11px;
  border-radius:999px;
  font-size:.76rem;
  line-height:1;
  white-space:nowrap;
  color:rgba(232,240,252,.82);
  border:1px solid rgba(174,200,233,.16);
  background:rgba(255,255,255,.035);
}
body[data-page="home"] .settings-user-chip--session .settings-user-chip__meta{
  order:1;
  max-width:150px;
  overflow:hidden;
  text-overflow:ellipsis;
}
body[data-page="home"] .settings-user-chip__logout-btn{order:2;}
body[data-page="home"] .settings-user-chip__photo-btn{order:3;}
body[data-page="home"] .settings-user-chip__photo-btn:hover,
body[data-page="home"] .settings-user-chip__logout-btn:hover{
  color:rgba(244,211,138,.92);
  border-color:rgba(244,211,138,.22);
  background:rgba(244,211,138,.07);
}
body[data-page="home"] .settings-profile-photo-flyout__head{
  justify-content:center;
  text-align:center;
}
body[data-page="home"] .settings-profile-photo-flyout__head strong{
  width:100%;
  text-align:center;
}
body[data-page="home"] .settings-profile-photo-flyout__head span{
  display:none;
}
body[data-page="home"] .settings-profile-photo-flyout__card{
  align-items:center;
}

body[data-page="home"] .settings-profile-photo-actions .settings-profile-photo-upload{
  justify-content:center;
  
}
@media (max-width:760px){
  body[data-page="home"] .home-session-badge-row{
    display:none !important;
  }
    body[data-page="home"] .settings-user-chip--session{
    
    
    
    
    border-radius:16px;
    
  }
    body[data-page="home"] .settings-user-chip--session .settings-user-chip__stack{
    gap:0;
    
    
  }
      body[data-page="home"] .settings-user-chip--session .settings-user-chip__actions{
    
    min-width:0;
    
    
    
    justify-self:stretch;
  }
  body[data-page="home"] .settings-user-chip--session .settings-user-chip__meta,
  body[data-page="home"] .settings-user-chip__logout-btn,
  body[data-page="home"] .settings-user-chip__photo-btn{
    
    
    
    
    
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    
    
    
    letter-spacing:0;
    
  }
}

/* r9030/r9109 — root-level SO Session cleanup, subtler profile modal, calmer schedule UI, less wrap-sensitive title duplicate */
@media (min-width:761px){
  body[data-page="home"] .masthead h1[data-site-title]{ max-width:min(100%, 1080px) !important; text-wrap:normal !important; }
}
@media (min-width:761px) and (max-width:940px){
  body[data-page="home"] .masthead h1[data-site-title]{ font-size:clamp(21px,2.08vw,31px) !important; }
}
body[data-page="home"] .settings-user-chip--session .settings-user-chip__actions > *,
body[data-page="home"] .settings-user-chip--session .settings-user-chip__meta,
body[data-page="home"] .settings-user-chip--session .settings-user-chip__logout-btn,
body[data-page="home"] .settings-user-chip--session .settings-user-chip__photo-btn{
  grid-area:auto !important;
  position:relative;
  inset:auto;
}
body[data-page="home"] .settings-user-chip--session .settings-user-chip__meta,
body[data-page="home"] .settings-user-chip__logout-btn,
body[data-page="home"] .settings-user-chip__photo-btn,
body[data-page="home"] .settings-profile-photo-actions .settings-mini-btn,
body[data-page="home"] .settings-profile-photo-upload{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1.1 !important;
  vertical-align:middle;
}
body[data-page="home"] .settings-profile-photo-flyout__backdrop{
  background:rgba(4,12,22,.26);
  backdrop-filter:blur(5px);
}
body[data-page="home"] .settings-profile-photo-flyout__card{
  border-color:rgba(174,200,233,.20);
  background:linear-gradient(145deg, rgba(19,39,61,.80), rgba(7,18,33,.72));
  box-shadow:0 24px 58px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.055);
  backdrop-filter:blur(14px) saturate(120%);
}
body[data-page="home"] .settings-profile-photo-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}
body[data-page="home"] .settings-profile-photo-actions .settings-profile-photo-upload{
  min-height:36px;
  padding-block:8px;
  text-align:center;
}
@media (max-width:760px){
  body[data-page="home"] .settings-session-panel{
    gap:8px;
  }
  body[data-page="home"] .settings-session-row,
  body[data-page="home"] .settings-session-row--compact{
    padding:8px;
    border-radius:18px;
  }
  body[data-page="home"] .settings-user-chip--session{
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    grid-template-areas:
      "avatar name"
      "actions actions";
    align-items:center;
    gap:10px 12px;
    padding:10px;
    min-height:auto;
    overflow:hidden;
  }
  body[data-page="home"] .settings-user-chip--session .settings-user-avatar{
    grid-area:avatar;
    width:50px;
    height:50px;
    flex-basis:50px;
    align-self:center;
  }
  body[data-page="home"] .settings-user-chip--session .settings-user-chip__stack{
    grid-area:name;
    min-width:0;
    align-self:center;
  }
  body[data-page="home"] .settings-user-chip--session .settings-user-chip__label{
    display:none !important;
  }
  body[data-page="home"] .settings-user-chip--session .settings-user-chip__value{
    display:block;
    max-width:100%;
    font-size:clamp(.98rem, 5.2vw, 1.18rem);
    line-height:1.12;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  body[data-page="home"] .settings-user-chip--session .settings-user-chip__actions{
    grid-area:actions;
    display:grid;
    width:100%;
    grid-template-columns:minmax(0,1.08fr) minmax(0,.76fr) minmax(0,1.06fr);
    gap:6px;
    align-items:center;
    justify-content:stretch;
  }
  body[data-page="home"] .settings-user-chip--session .settings-user-chip__meta,
  body[data-page="home"] .settings-user-chip__logout-btn,
  body[data-page="home"] .settings-user-chip__photo-btn{
    min-width:0;
    width:100%;
    max-width:100%;
    min-height:34px;
    padding:7px 7px;
    font-size:clamp(.58rem, 2.9vw, .72rem);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    box-sizing:border-box;
  }
  body[data-page="home"] .settings-profile-photo-flyout{
    padding:14px;
  }
  body[data-page="home"] .settings-profile-photo-flyout__card{
    width:min(390px, calc(100vw - 28px));
    justify-items:center;
    text-align:center;
  }
  body[data-page="home"] .settings-profile-photo-actions{
    width:100%;
  }
  body[data-page="home"] .settings-profile-photo-actions .settings-mini-btn,
  body[data-page="home"] .settings-profile-photo-upload{
    flex:1 1 100%;
  }
}
body[data-page="home"] .settings-schedule-calendar,
body[data-page="home"] .settings-schedule-day-panel,
body[data-page="home"] .settings-schedule-confirm{
  background:linear-gradient(150deg, rgba(10,25,45,.56), rgba(5,14,26,.42));
}
body[data-page="home"] .settings-schedule-day{
  min-height:42px;
  border-radius:13px;
}
body[data-page="home"] .settings-schedule-slot{
  min-height:39px;
  border-radius:12px;
}
body[data-page="home"] .settings-schedule-slot.is-unavailable{
  opacity:.32;
}


/* r9031 — RO Universe compact source action + Schedule copy cleanup */
.rss-create-source-btn{
  min-width:32px;
  min-height:32px;
  padding:0 .55rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-color:rgba(244,211,138,.44);
  background:rgba(244,211,138,.11);
  color:#f4d38a;
  font-size:1.08rem;
  font-weight:900;
  letter-spacing:0;
  text-transform:none;
}
.rss-create-source-btn:not(.is-remove):not(:disabled){
  width:32px;
  padding:0;
}
.rss-create-source-btn.is-remove{
  width:32px;
  min-width:32px;
  padding:0;
  font-size:1.05rem;
}
body[data-page="home"] .settings-schedule-panel--calendar{
  gap:12px;
}

/* r9033 schedule session visibility */
body[data-page="home"] .settings-schedule-sessions{
  border:1px solid rgba(174,200,233,.16);
  border-radius:18px;
  background:rgba(6,18,34,.34);
  padding:12px;
}
body[data-page="home"] .settings-schedule-sessions h4{
  margin:0 0 8px;
  color:rgba(232,214,164,.90);
  font-size:.86rem;
  letter-spacing:.01em;
  text-transform:none;
}
body[data-page="home"] .settings-schedule-sessions ul{
  list-style:none;
  display:grid;
  gap:7px;
  margin:0;
  padding:0;
}
body[data-page="home"] .settings-schedule-sessions li{
  display:grid;
  grid-template-columns:1fr auto auto;
  gap:8px;
  align-items:center;
  padding:8px 9px;
  border-radius:14px;
  border:1px solid rgba(174,200,233,.12);
  background:rgba(255,255,255,.035);
  color:rgba(232,240,252,.86);
  font-size:.78rem;
}
body[data-page="home"] .settings-schedule-sessions li strong{
  color:#f4d38a;
  font-size:.74rem;
  max-width:150px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body[data-page="home"] .settings-schedule-sessions li em{
  font-style:normal;
  color:rgba(232,240,252,.62);
  font-size:.68rem;
  text-transform:uppercase;
  letter-spacing:.06em;
}
body[data-page="home"] .settings-schedule-history__note{
  margin:0 0 9px;
  color:rgba(232,240,252,.66);
  font-size:.72rem;
  line-height:1.5;
}
body[data-page="home"] .settings-schedule-history__preserved{
  color:rgba(232,240,252,.5);
  font-size:.66rem;
  font-weight:750;
  letter-spacing:.05em;
  text-transform:uppercase;
}
body[data-page="home"] .settings-schedule-history li.is-historical{
  border-color:rgba(174,200,233,.13);
  background:rgba(255,255,255,.025);
}
body[data-page="home"] .settings-schedule-history li.is-historical > span,
body[data-page="home"] .settings-schedule-history li.is-historical > strong{
  opacity:.78;
}
body[data-page="home"] .settings-schedule-week-grid__cell.is-historical,
body[data-page="home"] .settings-schedule-slot.is-historical{
  filter:saturate(.48);
  opacity:.78;
}
body[data-page="home"] .settings-schedule-slot.has-session small{
  display:block;
  color:#f4d38a;
  font-size:.56rem;
  font-weight:850;
  text-transform:none;
}
body[data-page="home"] .settings-schedule-slot.has-session span{
  font-size:.76rem;
}
@media (max-width:760px){
  body[data-page="home"] .settings-schedule-sessions li{
    grid-template-columns:1fr;
    gap:3px;
  }
}

/* r9034 — schedule refresh, session markers, and centered day heading */
body[data-page="home"] .settings-schedule-day-panel__head{
  position:relative;
  justify-content:center;
  min-height:42px;
  text-align:center;
}
body[data-page="home"] .settings-schedule-day-panel__head > div{
  margin-inline:auto;
  text-align:center;
}
body[data-page="home"] .settings-schedule-day-panel__head .settings-schedule-pill{
  position:absolute;
  right:0;
  top:50%;
  transform:translateY(-50%);
}
body[data-page="home"] .settings-schedule-day.has-session{
  position:relative;
  grid-template-rows:auto auto;
  align-content:center;
  gap:2px;
  padding-top:7px;
  padding-bottom:6px;
}
body[data-page="home"] .settings-schedule-day.has-session .settings-schedule-day__num{
  font-size:.82rem;
  line-height:1;
}
body[data-page="home"] .settings-schedule-day__dot{
  position:absolute;
  top:6px;
  right:6px;
  width:6px;
  height:6px;
  border-radius:999px;
  background:#f4d38a;
  box-shadow:0 0 0 2px rgba(244,211,138,.14), 0 0 10px rgba(244,211,138,.35);
}
body[data-page="home"] .settings-schedule-day__time{
  display:block;
  color:#f4d38a;
  font-size:.57rem;
  font-weight:850;
  line-height:1;
  letter-spacing:.01em;
}
body[data-page="home"] .settings-schedule-sessions__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 0 8px;
}
body[data-page="home"] .settings-schedule-sessions.is-collapsed .settings-schedule-sessions__head{
  margin-bottom:0;
}
body[data-page="home"] .settings-schedule-sessions__toggle{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  align-items:center;
  gap:8px;
  border:0;
  background:transparent;
  color:rgba(232,214,164,.90);
  padding:0;
  font:inherit;
  text-align:left;
  cursor:pointer;
}
body[data-page="home"] .settings-schedule-sessions__toggle span{
  font-size:.86rem;
  font-weight:800;
  letter-spacing:.01em;
  text-transform:none;
}
body[data-page="home"] .settings-schedule-sessions__toggle em{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:24px;
  min-height:22px;
  padding:0 .45rem;
  border-radius:999px;
  border:1px solid rgba(232,214,164,.20);
  background:rgba(232,214,164,.065);
  color:rgba(232,214,164,.90);
  font-size:.68rem;
  font-style:normal;
  font-weight:850;
  line-height:1;
}
body[data-page="home"] .settings-schedule-sessions__toggle b{
  display:inline-block;
  color:rgba(232,214,164,.72);
  font-size:.75rem;
  transform:rotate(-90deg);
  transition:transform .18s ease;
}
body[data-page="home"] .settings-schedule-sessions.is-open .settings-schedule-sessions__toggle b{
  transform:rotate(0deg);
}
body[data-page="home"] .settings-schedule-sessions__body[hidden]{
  display:none !important;
}
body[data-page="home"] .settings-schedule-sessions__head h4{
  margin:0;
}
body[data-page="home"] .settings-schedule-refresh{
  min-height:28px;
  padding:.28rem .58rem;
  font-size:.68rem;
  white-space:nowrap;
}
body[data-page="home"] .settings-schedule-sessions__empty{
  margin:0;
  padding:8px 0 0;
}
@media (max-width:760px){
  body[data-page="home"] .settings-schedule-day-panel__head{
    display:grid;
    gap:5px;
    justify-items:center;
    padding-right:0;
  }
  body[data-page="home"] .settings-schedule-day-panel__head .settings-schedule-pill{
    position:static;
    transform:none;
  }
  body[data-page="home"] .settings-schedule-day.has-session .settings-schedule-day__num{
    font-size:.76rem;
  }
  body[data-page="home"] .settings-schedule-day__time{
    font-size:.52rem;
  }
  body[data-page="home"] .settings-schedule-day__dot{
    top:5px;
    right:5px;
    width:5px;
    height:5px;
  }
  body[data-page="home"] .settings-schedule-sessions__head{
    align-items:center;
  }
}

/* r9037 — admin schedule calendar stays clean; client names live in day slots */
body[data-page="home"] .settings-schedule-slot.is-admin-session{
  opacity:.86;
  border-color:rgba(244,211,138,.30);
  background:linear-gradient(150deg, rgba(244,211,138,.12), rgba(6,18,34,.54));
}
body[data-page="home"] .settings-schedule-slot.is-admin-session small{
  display:block;
  max-width:100%;
  color:#f4d38a;
  font-size:.56rem;
  line-height:1.08;
  font-weight:850;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-transform:none;
}
body[data-page="home"] .settings-schedule-slot.is-admin-session span{
  font-size:.72rem;
  line-height:1;
}
@media (max-width:760px){
  body[data-page="home"] .settings-schedule-slot.is-admin-session small{
    font-size:.54rem;
  }
  body[data-page="home"] .settings-schedule-slot.is-admin-session span{
    font-size:.70rem;
  }
}

/* r9049/r9052 — RO Universe consolidated root repair
   Root cause: Universe group summaries had inherited SO section/toggle structure while RO CSS also generated its own arrow.
   Consolidates the later compact remove-button hue and mobile label sizing here so RO Universe has one owner block. */
body[data-page="home"] .rss-shell-layer .rss-universe-group.rss-ro-section{
  border-color:rgba(159,202,255,.08) !important;
  background:rgba(255,255,255,.016) !important;
  border-radius:16px !important;
  overflow:hidden !important;
}
body[data-page="home"] .rss-shell-layer .rss-universe-group > summary.rss-universe-group__summary{
  list-style:none !important;
  position:relative !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto 36px !important;
  grid-template-areas:"title items arrow" !important;
  align-items:center !important;
  gap:8px 10px !important;
  min-height:0 !important;
  padding:10px 12px !important;
  margin:0 !important;
  background:linear-gradient(90deg, rgba(110,198,255,.040), transparent 44%) !important;
  cursor:pointer !important;
}
body[data-page="home"] .rss-shell-layer .rss-universe-group > summary.rss-universe-group__summary::-webkit-details-marker{
  display:none !important;
}
body[data-page="home"] .rss-shell-layer .rss-universe-group > summary.rss-universe-group__summary::marker{
  content:"" !important;
}
body[data-page="home"] .rss-shell-layer .rss-universe-group > summary.rss-universe-group__summary::after{
  content:"▸" !important;
  grid-area:arrow !important;
  width:32px !important;
  height:32px !important;
  border-radius:999px !important;
  display:grid !important;
  place-items:center !important;
  justify-self:end !important;
  align-self:center !important;
  color:rgba(209,225,238,.78) !important;
  border:1px solid rgba(214,229,248,.09) !important;
  background:rgba(255,255,255,.024) !important;
  box-shadow:none !important;
  transform:rotate(0deg) !important;
  transition:transform .18s ease,border-color .18s ease,background .18s ease !important;
  font-size:.86rem !important;
  line-height:1 !important;
}
body[data-page="home"] .rss-shell-layer .rss-universe-group[open] > summary.rss-universe-group__summary::after{
  transform:rotate(90deg) !important;
}
body[data-page="home"] .rss-shell-layer .rss-universe-group__summary .settings-section-toggle,
body[data-page="home"] .rss-shell-layer .rss-universe-group__summary .rss-ro-section__toggle{
  display:none !important;
}
body[data-page="home"] .rss-shell-layer .rss-universe-group__title{
  grid-area:title !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  gap:4px !important;
  align-items:center !important;
  align-content:center !important;
  min-width:0 !important;
  margin:0 !important;
  color:inherit !important;
}
body[data-page="home"] .rss-shell-layer .rss-universe-group__title h3{
  margin:0 !important;
  padding:0 !important;
  color:rgba(232,214,164,.93) !important;
  text-shadow:0 0 14px rgba(232,214,164,.08) !important;
  font-size:.94rem !important;
  line-height:1.12 !important;
  font-weight:760 !important;
  letter-spacing:-.008em !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
}
body[data-page="home"] .rss-shell-layer .rss-universe-group__meta{
  margin:0 !important;
  color:rgba(196,215,231,.62) !important;
  font-size:.68rem !important;
  line-height:1.15 !important;
  font-weight:600 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
body[data-page="home"] .rss-shell-layer .rss-universe-group__summary > .rss-pill{
  grid-area:items !important;
  justify-self:end !important;
  align-self:center !important;
  max-width:100% !important;
  min-height:24px !important;
  padding:3px 8px !important;
  color:rgba(196,215,231,.64) !important;
  border-color:rgba(255,255,255,.050) !important;
  background:rgba(255,255,255,.014) !important;
  font-size:.66rem !important;
  line-height:1 !important;
}
body[data-page="home"] .rss-shell-layer .rss-universe-group__rows{
  gap:7px !important;
  padding:0 12px 12px !important;
}
body[data-page="home"] .rss-shell-layer .rss-universe-row{
  padding:9px 10px !important;
}
body[data-page="home"] .rss-shell-layer .rss-create-source-btn.is-remove{
  min-width:30px !important;
  width:30px !important;
  height:28px !important;
  padding:0 !important;
  border-radius:999px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:1.05rem !important;
  line-height:1 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
  color:#f4d38a !important;
  border-color:rgba(244,211,138,.44) !important;
  background:rgba(244,211,138,.11) !important;
}
body[data-page="home"] .rss-shell-layer .rss-create-source-btn.is-remove:hover,
body[data-page="home"] .rss-shell-layer .rss-create-source-btn.is-remove:focus-visible{
  color:#f4d38a !important;
  border-color:rgba(244,211,138,.56) !important;
  background:rgba(244,211,138,.18) !important;
}
@media (max-width:760px){
  body[data-page="home"] .rss-shell-layer .rss-universe-group > summary.rss-universe-group__summary{
    grid-template-columns:minmax(0,1fr) 34px !important;
    grid-template-areas:
      "title arrow"
      "items arrow" !important;
    gap:7px 9px !important;
    padding:11px 11px !important;
  }
  body[data-page="home"] .rss-shell-layer .rss-universe-group > summary.rss-universe-group__summary::after{
    width:32px !important;
    height:32px !important;
  }
  body[data-page="home"] .rss-shell-layer .rss-universe-group__summary > .rss-pill{
    justify-self:start !important;
  }
  body[data-page="home"] .rss-shell-layer .rss-universe-group__title{
    gap:5px !important;
  }
  body[data-page="home"] .rss-shell-layer .rss-universe-group__title h3{
    font-size:.90rem !important;
    line-height:1.16 !important;
    letter-spacing:.006em !important;
  }
  body[data-page="home"] .rss-shell-layer .rss-universe-row{
    padding:8px 9px !important;
  }
  body[data-page="home"] .rss-shell-layer .rss-universe-row__name{
    font-size:.79rem !important;
    line-height:1.20 !important;
  }
  body[data-page="home"] .rss-shell-layer .rss-universe-row__meta,
  body[data-page="home"] .rss-shell-layer .rss-universe-row__hint{
    font-size:.65rem !important;
    line-height:1.24 !important;
  }
  body[data-page="home"] .rss-shell-layer .rss-universe-row__state .rss-pill,
  body[data-page="home"] .rss-shell-layer .rss-universe-row__state .rss-create-source-btn{
    font-size:.63rem !important;
  }
}

body[data-page="home"] .home-session-badge{
  padding:4px 6px 4px 11px !important;
  gap:7px !important;
  min-height:0 !important;
  border-color:rgba(159,202,255,.085) !important;
  background:linear-gradient(115deg, rgba(18,34,52,.30), rgba(7,18,33,.48)) !important;
  box-shadow:0 7px 16px rgba(0,0,0,.13), inset 0 1px 0 rgba(255,255,255,.028) !important;
  color:rgba(213,226,239,.76) !important;
  cursor:pointer !important;
  user-select:none;
  transition:border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
body[data-page="home"] .home-session-badge:hover,
body[data-page="home"] .home-session-badge:focus-visible{
  border-color:rgba(244,211,138,.26) !important;
  background:linear-gradient(115deg, rgba(244,211,138,.095), rgba(18,34,52,.36) 52%, rgba(7,18,33,.54)) !important;
  color:rgba(237,244,252,.90) !important;
  box-shadow:0 9px 20px rgba(0,0,0,.18), 0 0 0 1px rgba(244,211,138,.08), inset 0 1px 0 rgba(255,255,255,.04) !important;
  outline:none;
}
body[data-page="home"] .home-session-badge:active{
  transform:translateY(1px);
}
body[data-page="home"] .home-session-badge strong{
  max-width:160px !important;
  color:rgba(219,230,240,.74) !important;
  font-size:.70rem !important;
  line-height:1.05 !important;
  font-weight:730 !important;
  letter-spacing:.002em !important;
}
body[data-page="home"] .home-session-badge .settings-user-avatar--tiny{
  width:24px !important;
  height:24px !important;
  flex-basis:24px !important;
  font-size:.56rem !important;
  border-color:rgba(159,202,255,.16) !important;
  background:radial-gradient(circle at 32% 24%, rgba(159,202,255,.18), rgba(31,62,100,.22) 45%, rgba(6,18,34,.64)) !important;
  color:rgba(222,234,244,.78) !important;
  box-shadow:0 6px 14px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.045) !important;
}

/* r10425B — public sign-in badge format polish */
body[data-page="home"] .home-session-badge.is-public-login{
  max-width:none !important;
  min-width:174px !important;
  padding:7px 14px !important;
  justify-content:center !important;
  gap:0 !important;
  border-color:rgba(244,211,138,.20) !important;
  background:linear-gradient(115deg, rgba(244,211,138,.10), rgba(18,34,52,.42) 52%, rgba(7,18,33,.58)) !important;
  color:rgba(237,244,252,.90) !important;
}
body[data-page="home"] .home-session-badge.is-public-login:hover,
body[data-page="home"] .home-session-badge.is-public-login:focus-visible{
  border-color:rgba(244,211,138,.34) !important;
  background:linear-gradient(115deg, rgba(244,211,138,.14), rgba(18,34,52,.46) 52%, rgba(7,18,33,.62)) !important;
}
body[data-page="home"] .home-session-badge.is-public-login .home-session-badge__text--login{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px !important;
  max-width:none !important;
  min-width:0 !important;
  text-align:left !important;
  white-space:nowrap !important;
  line-height:1 !important;
}
body[data-page="home"] .home-session-badge.is-public-login .home-session-badge__text--login em{
  display:inline-flex !important;
  align-items:center !important;
  color:rgba(244,211,138,.92) !important;
  font-size:.66rem !important;
  font-style:normal !important;
  font-weight:850 !important;
  letter-spacing:.11em !important;
  line-height:1 !important;
  text-transform:uppercase !important;
}
body[data-page="home"] .home-session-badge.is-public-login .home-session-badge__text--login strong{
  display:inline-flex !important;
  align-items:center !important;
  gap:4px !important;
  max-width:none !important;
  padding-left:10px !important;
  border-left:1px solid rgba(244,211,138,.24) !important;
  color:rgba(237,244,252,.90) !important;
  font-size:.75rem !important;
  font-weight:780 !important;
  letter-spacing:.01em !important;
  line-height:1 !important;
  white-space:nowrap !important;
}
body[data-page="home"] .home-session-badge.is-public-login .home-session-badge__text--login strong::after{
  content:"›";
  color:rgba(244,211,138,.78);
  font-size:.92rem;
  line-height:.7;
  transform:translateY(-.5px);
}

/* r9050/r9051/r9093/r9095 — dashboard action icons + mobile ribbon card transparency */
body[data-page="home"] .ccr-client-dashboard-settings-row .settings-mini-actions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:7px !important;
  flex-wrap:nowrap !important;
  width:auto !important;
}

body[data-page="home"] .ccr-client-dashboard-settings-row .settings-mini-actions .ccr-client-dashboard-icon-action{
  min-width:32px !important;
  width:32px !important;
  max-width:32px !important;
  height:30px !important;
  min-height:30px !important;
  padding:0 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:999px !important;
  font-size:.98rem !important;
  line-height:1 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
}

body[data-page="home"] .ccr-client-dashboard-settings-row .settings-mini-actions .ccr-client-dashboard-icon-action span{
  display:block;
  transform:translateY(-.5px);
}

@media (max-width:760px){
  body[data-page="home"] .ccr-intelligence-ribbon__cards > .top-card,
  body[data-page="home"] .ccr-intelligence-ribbon__rss-card{
    background:transparent !important;
    border-color:rgba(216,230,255,.085) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.014),0 8px 18px rgba(0,0,0,.095) !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
  }

  body[data-page="home"] .ccr-intelligence-ribbon__rss-body,
  body[data-page="home"] .ccr-intelligence-ribbon__ccr-body{
    background:transparent !important;
  }
}


/* r9123 — SO Ticker Manager search relocation
   Search now belongs to Available Indicators only; keep the input visually inside that block
   and avoid relying on the old manager-heading search row for spacing. */
body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-search-row--indicator-universe{
  margin:0 0 10px !important;
}
body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-search--indicator-universe{
  display:block !important;
  width:100% !important;
}
body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-indicator-results{
  display:block;
}

@media (max-width:760px){
  body[data-page="home"] .settings-shell-section[data-settings-section="manager"] .settings-manager-block[data-settings-manager-block="indicatorUniverse"] .settings-search-row--indicator-universe{
    margin:0 0 8px !important;
  }
}

/* r9132 — RSS archive buttons + compact intelligence search tools */
@media (min-width:761px){
  body[data-page="home"] .ccr-intelligence-ribbon__tools{
    flex:0 1 auto;
    margin-left:auto;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    min-width:0;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__search{
    flex:0 1 260px !important;
    max-width:min(28vw,300px) !important;
    
    grid-template-columns:minmax(122px,1fr) auto !important;
    gap:6px !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__search input{
    min-height:29px !important;
    height:29px !important;
    padding:4px 11px !important;
    font-size:.76rem !important;
    font-weight:600 !important;
    background:rgba(5,12,22,.20) !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__search button:not(.ccr-ribbon-invite-friend-btn):not(.ccr-intelligence-ribbon__archive-open){
    min-height:29px !important;
    height:29px !important;
    padding:4px 9px !important;
    border-color:rgba(255,255,255,.090) !important;
    background:rgba(255,255,255,.032) !important;
    color:rgba(238,244,250,.74) !important;
    font-size:.68rem !important;
    letter-spacing:.035em !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__archive-open{
    flex:0 0 auto;
    min-height:29px;
    border-radius:999px;
    border:1px solid rgba(233,202,136,.18);
    background:rgba(233,202,136,.055);
    color:rgba(240,222,171,.86);
    padding:4px 11px;
    font:800 .69rem/1 var(--font-body,Inter,system-ui,sans-serif);
    letter-spacing:.035em;
    text-transform:uppercase;
    cursor:pointer;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
  }
  body[data-page="home"] .ccr-intelligence-ribbon__archive-open:hover,
  body[data-page="home"] .ccr-intelligence-ribbon__archive-open:focus-visible{
    border-color:rgba(233,202,136,.34);
    background:rgba(233,202,136,.10);
    color:rgba(255,244,214,.96);
  }
}
@media (max-width:760px){
  body[data-page="home"] .ccr-intelligence-ribbon__tools{
    display:none !important;
  }
}
body[data-page="home"] .ccr-intelligence-ribbon__rss-actions{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}
body[data-page="home"] .ccr-intelligence-ribbon__rss-actions .ccr-intelligence-ribbon__rss-link{
  margin-top:0 !important;
  min-width:0;
}
body[data-page="home"] .ccr-intelligence-ribbon__rss-archive-btn{
  flex:0 0 auto;
  border:1px solid rgba(233,202,136,.18);
  border-radius:999px;
  background:rgba(233,202,136,.055);
  color:rgba(240,222,171,.84);
  padding:5px 9px;
  font:800 .66rem/1 var(--font-body,Inter,system-ui,sans-serif);
  letter-spacing:.035em;
  text-transform:uppercase;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
body[data-page="home"] .ccr-intelligence-ribbon__rss-archive-btn:hover,
body[data-page="home"] .ccr-intelligence-ribbon__rss-archive-btn:focus-visible{
  border-color:rgba(233,202,136,.34);
  background:rgba(233,202,136,.10);
  color:rgba(255,244,214,.96);
}
body[data-page="home"] .ccr-intelligence-ribbon__rss-archive-btn:disabled,
body[data-page="home"] .ccr-intelligence-ribbon__rss-archive-btn.is-archived{
  cursor:default;
  border-color:rgba(180,198,218,.11);
  background:rgba(255,255,255,.035);
  color:rgba(205,218,234,.62);
}
body[data-page="home"] .ccr-intelligence-ribbon__rss-card.is-archived{
  border-color:rgba(233,202,136,.12);
}
body.rss-archive-overlay-open{
  overflow:hidden;
}
.rss-archive-overlay[hidden]{
  display:none !important;
}
.rss-archive-overlay{
  position:fixed;
  inset:0;
  z-index:2620;
  display:grid;
  place-items:center;
  padding:clamp(16px,2.4vw,34px);
}
.rss-archive-overlay__shade{
  position:absolute;
  inset:0;
  background:rgba(5,10,18,.060);
  backdrop-filter:blur(3px) saturate(1.01);
  -webkit-backdrop-filter:blur(3px) saturate(1.01);
}
.rss-archive-overlay__panel{
  position:relative;
  z-index:1;
  width:min(1360px,100%);
  height:min(90svh,1040px);
  max-height:min(90svh,1040px);
  overflow:auto;
  border:1px solid rgba(214,229,248,.056);
  border-radius:28px;
  background:
    radial-gradient(circle at 18% 0%, rgba(124,160,205,.020), transparent 34%),
    linear-gradient(180deg, rgba(24,36,50,.26), rgba(8,14,23,.18));
  box-shadow:0 14px 42px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.018);
  color:rgba(242,246,250,.94);
  padding:clamp(16px,2.2vw,28px);
  backdrop-filter:blur(8px) saturate(1.03);
  -webkit-backdrop-filter:blur(8px) saturate(1.03);
}
.rss-archive-overlay__panel::-webkit-scrollbar{width:10px;}
.rss-archive-overlay__panel::-webkit-scrollbar-track{background:rgba(255,255,255,.035);border-radius:999px;}
.rss-archive-overlay__panel::-webkit-scrollbar-thumb{background:rgba(235,214,169,.24);border-radius:999px;border:2px solid rgba(8,14,24,.58);}
.rss-archive-overlay__head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:14px;
}
.rss-archive-overlay__head p{
  margin:0 0 5px;
  color:rgba(232,214,164,.82);
  font-size:.76rem;
  font-weight:800;
  letter-spacing:.10em;
  text-transform:uppercase;
}
.rss-archive-overlay__head h2{
  margin:0;
  color:rgba(255,247,237,.98);
  font-size:clamp(1.35rem,2.2vw,2.2rem);
  line-height:1.1;
  letter-spacing:-.035em;
}
.rss-archive-overlay__summary{
  margin-top:8px;
  color:rgba(218,230,244,.76);
  font-size:.88rem;
  line-height:1.45;
}
.rss-archive-overlay__close{
  flex:0 0 auto;
  width:40px;
  height:40px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.075);
  color:rgba(255,255,255,.93);
  font-size:26px;
  line-height:1;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
.rss-archive-overlay__close:hover,
.rss-archive-overlay__close:focus-visible{
  border-color:rgba(244,211,138,.28);
  background:rgba(244,211,138,.105);
}
.rss-archive-overlay__folders{
  margin:0 0 16px;
  padding:10px;
  border:1px solid rgba(255,255,255,.040);
  border-radius:20px;
  background:linear-gradient(180deg, rgba(255,255,255,.014), rgba(255,255,255,.006));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.016);
}
.rss-archive-folder-strip{
  display:flex;
  align-items:stretch;
  gap:10px;
  overflow-x:auto;
  padding:2px 2px 8px;
  scrollbar-width:thin;
  scrollbar-color:rgba(233,202,136,.32) rgba(255,255,255,.04);
}
.rss-archive-folder-strip::-webkit-scrollbar{height:8px;}
.rss-archive-folder-strip::-webkit-scrollbar-track{background:rgba(255,255,255,.035);border-radius:999px;}
.rss-archive-folder-strip::-webkit-scrollbar-thumb{background:rgba(233,202,136,.30);border-radius:999px;}
.rss-archive-folder-chip-wrap{
  position:relative;
  flex:0 0 auto;
  display:inline-flex;
}
.rss-archive-folder-chip-wrap .rss-archive-folder-chip{
  width:100%;
}
.rss-archive-folder-delete{
  position:absolute;
  z-index:6;
  top:8px;
  left:8px;
  width:18px;
  height:18px;
  display:none;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:1px solid rgba(255,124,124,.66);
  background:linear-gradient(180deg,rgba(214,62,70,.96),rgba(122,23,34,.94));
  color:rgba(255,248,248,.98);
  font:900 12px/1 var(--font-body,Inter,system-ui,sans-serif);
  cursor:pointer;
  text-shadow:0 1px 2px rgba(0,0,0,.32);
  box-shadow:0 4px 12px rgba(100,10,22,.36), inset 0 1px 0 rgba(255,255,255,.20);
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease,box-shadow .16s ease;
}
.rss-archive-folder-delete:hover,
.rss-archive-folder-delete:focus-visible{
  border-color:rgba(255,176,176,.86);
  background:linear-gradient(180deg,rgba(238,75,84,.99),rgba(148,26,42,.96));
  color:rgba(255,255,255,.99);
  transform:translateY(-1px) scale(1.06);
  box-shadow:0 6px 16px rgba(118,12,27,.44), inset 0 1px 0 rgba(255,255,255,.24);
}
.rss-archive-folder-chip-wrap .rss-archive-folder-chip b{
  left:auto;
  right:7px;
}
@media (hover:hover) and (pointer:fine){
  .rss-archive-folder-delete{display:inline-flex;}
}
.rss-archive-folder-chip{
  flex:0 0 auto;
  position:relative;
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:96px;
  min-height:82px;
  border:1px solid rgba(255,255,255,.040);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.018),rgba(255,255,255,.007));
  color:rgba(232,240,251,.84);
  padding:10px 12px 9px;
  font:800 .71rem/1.1 var(--font-body,Inter,system-ui,sans-serif);
  letter-spacing:.025em;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.016),0 10px 22px rgba(0,0,0,.10);
  transition:background .16s ease,border-color .16s ease,transform .16s ease,color .16s ease,box-shadow .16s ease;
}
.rss-archive-folder-chip__icon{
  position:relative;
  display:block;
  width:46px;
  height:34px;
  flex:0 0 auto;
  filter:drop-shadow(0 5px 10px rgba(0,0,0,.22));
}
.rss-archive-folder-chip__icon::before,
.rss-archive-folder-chip__icon::after{
  content:"";
  position:absolute;
  left:0;
  display:block;
  border:1px solid rgba(159,202,255,.090);
  background:linear-gradient(180deg,rgba(150,183,221,.30),rgba(72,101,132,.18));
}
.rss-archive-folder-chip__icon::before{
  top:10px;
  width:46px;
  height:24px;
  border-radius:7px 7px 8px 8px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.070);
}
.rss-archive-folder-chip__icon::after{
  top:2px;
  width:24px;
  height:13px;
  border-radius:7px 7px 2px 2px;
  border-bottom:0;
}
.rss-archive-folder-chip__label{
  display:block;
  max-width:116px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-align:center;
}
.rss-archive-folder-chip b{
  position:absolute;
  top:7px;
  right:7px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:21px;
  height:21px;
  padding:0 6px;
  border-radius:999px;
  background:rgba(5,14,27,.52);
  color:rgba(255,232,172,.96);
  font-size:.64rem;
  font-weight:900;
  box-shadow:0 4px 10px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.08);
}
.rss-archive-folder-chip:hover,
.rss-archive-folder-chip:focus-visible,
.rss-archive-folder-chip.is-drag-over{
  border-color:rgba(232,214,164,.16);
  background:rgba(232,214,164,.055);
  color:rgba(255,247,224,.97);
}
.rss-archive-folder-chip.is-drag-over{
  transform:translateY(-1px) scale(1.015);
  box-shadow:0 10px 24px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.06);
}
.rss-archive-folder-chip.is-active{
  border-color:rgba(232,214,164,.28);
  background:linear-gradient(180deg,rgba(232,214,164,.095),rgba(232,214,164,.038));
  color:rgba(255,247,224,.99);
}
.rss-archive-folder-chip--add{
  min-width:82px;
  color:rgba(244,211,138,.98);
}
.rss-archive-folder-chip--add .rss-archive-folder-chip__icon::before,
.rss-archive-folder-chip--add .rss-archive-folder-chip__icon::after{
  background:linear-gradient(180deg,rgba(244,211,138,.24),rgba(244,211,138,.060));
  border-color:rgba(244,211,138,.36);
}
.rss-archive-folder-chip--add .rss-archive-folder-chip__label{
  font-size:1.28rem;
  line-height:1;
}
.rss-archive-folder-chip--public .rss-archive-folder-chip__icon::before,
.rss-archive-folder-chip--public .rss-archive-folder-chip__icon::after{
  background:linear-gradient(180deg,rgba(232,214,164,.56),rgba(153,137,93,.28));
  border-color:rgba(255,238,188,.24);
}
.rss-archive-folder-chip--public{
  border-color:rgba(232,214,164,.16);
}
.rss-archive-folder-chip--public.is-active{
  border-color:rgba(232,214,164,.54);
  box-shadow:0 12px 26px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.07);
}
.rss-archive-folder-chip--main{
  border-color:rgba(139,190,235,.14);
  background:linear-gradient(180deg,rgba(139,190,235,.050),rgba(139,190,235,.018));
}
.rss-archive-folder-chip--main .rss-archive-folder-chip__icon::before,
.rss-archive-folder-chip--main .rss-archive-folder-chip__icon::after{
  background:linear-gradient(180deg,rgba(139,190,235,.42),rgba(63,94,128,.24));
  border-color:rgba(159,202,255,.18);
}
.rss-archive-folder-chip--main.is-active{
  border-color:rgba(139,190,235,.28);
  background:linear-gradient(180deg,rgba(139,190,235,.090),rgba(139,190,235,.034));
}
.rss-archive-card--public{
  border-color:rgba(232,214,164,.14) !important;
}
.rss-archive-card__public-meta,
.rss-archive-card__locked{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  margin-top:6px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(232,214,164,.14);
  background:rgba(232,214,164,.055);
  color:rgba(232,214,164,.84);
  font-size:.69rem;
  font-weight:850;
  letter-spacing:.035em;
}
.rss-archive-move-option small{
  display:block;
  margin-top:3px;
  color:rgba(205,218,234,.62);
  font-size:.70rem;
  font-weight:650;
}
.rss-archive-move-option--public{
  border-color:rgba(232,214,164,.18);
  background:rgba(232,214,164,.065);
}
.rss-archive-overlay__status{
  margin:0 0 12px;
  padding:9px 12px;
  border:1px solid rgba(139,216,175,.20);
  border-radius:14px;
  background:rgba(56,142,96,.11);
  color:rgba(208,246,224,.86);
  font-size:.82rem;
  font-weight:700;
}
.rss-archive-overlay__grid{
  display:block;
  columns:3 310px;
  column-gap:16px;
}
.rss-archive-overlay__grid > .ccr-intelligence-ribbon__rss-card{
  height:auto;
  min-width:0;
  width:100%;
  display:flex;
  margin:0 0 16px;
  break-inside:avoid;
  page-break-inside:avoid;
  -webkit-column-break-inside:avoid;
  background:linear-gradient(180deg,rgba(255,255,255,.014),rgba(255,255,255,.006)) !important;
  border-color:rgba(255,255,255,.040) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.016),0 12px 28px rgba(0,0,0,.10) !important;
  cursor:grab;
}
.rss-archive-overlay__grid > .ccr-intelligence-ribbon__rss-card.is-dragging{
  opacity:.62;
  cursor:grabbing;
}
.rss-archive-card__button-row{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  flex-wrap:wrap;
}
.rss-archive-card__move{
  border-color:rgba(139,190,235,.18) !important;
  background:rgba(139,190,235,.06) !important;
  color:rgba(214,234,252,.86) !important;
}
.rss-archive-overlay__empty{
  display:block;
  padding:24px;
  border:1px dashed rgba(183,203,232,.18);
  border-radius:20px;
  background:rgba(7,16,24,.22);
  color:rgba(219,230,247,.76);
  text-align:center;
}
.rss-archive-overlay__modal{
  position:absolute;
  z-index:2;
  inset:0;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(5,10,18,.18);
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
}
.rss-archive-overlay__modal-card{
  width:min(430px,100%);
  border:1px solid rgba(244,211,138,.20);
  border-radius:22px;
  background:linear-gradient(180deg,rgba(24,36,50,.56),rgba(8,14,23,.46));
  color:rgba(242,246,250,.94);
  padding:18px;
  box-shadow:0 18px 54px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.035);
}
.rss-archive-overlay__modal-card p{
  margin:0 0 5px;
  color:rgba(233,202,136,.88);
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.10em;
  text-transform:uppercase;
}
.rss-archive-overlay__modal-card h3{
  margin:0 0 14px;
  font-size:1.18rem;
  letter-spacing:-.025em;
}
.rss-archive-overlay__modal-card label{
  display:grid;
  gap:7px;
  color:rgba(220,232,246,.80);
  font-size:.82rem;
  font-weight:800;
}
.rss-archive-overlay__modal-card input{
  width:100%;
  border:1px solid rgba(255,255,255,.13);
  border-radius:14px;
  background:rgba(255,255,255,.035);
  color:rgba(255,255,255,.95);
  padding:10px 12px;
  font:600 .92rem/1.2 var(--font-body,Inter,system-ui,sans-serif);
}
.rss-archive-overlay__modal-error{
  margin-top:10px;
  color:rgba(255,190,190,.92);
  font-size:.82rem;
  font-weight:700;
}
.rss-archive-overlay__modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:16px;
}
.rss-archive-overlay__modal-story{
  margin:0 0 12px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background:rgba(255,255,255,.045);
  color:rgba(230,239,250,.88);
  font-size:.86rem;
  line-height:1.35;
}
.rss-archive-overlay__modal-card--confirm{
  border-color:rgba(255,118,118,.24);
  background:linear-gradient(180deg,rgba(25,37,51,.60),rgba(9,15,24,.50));
}
.rss-archive-overlay__modal-card--confirm h3{
  color:rgba(255,238,211,.96);
}
.rss-archive-overlay__modal--confirm .rss-archive-overlay__modal-story{
  border-color:rgba(255,118,118,.18);
  background:rgba(120,30,38,.12);
}
.rss-archive-overlay__danger-btn{
  border-color:rgba(255,126,126,.38) !important;
  background:linear-gradient(180deg,rgba(202,64,64,.86),rgba(128,32,42,.82)) !important;
  color:rgba(255,255,255,.98) !important;
}
.rss-archive-overlay__danger-btn:hover,
.rss-archive-overlay__danger-btn:focus-visible{
  border-color:rgba(255,170,170,.62) !important;
  background:linear-gradient(180deg,rgba(228,76,76,.94),rgba(150,33,45,.90)) !important;
}
.rss-archive-move-options{
  display:grid;
  gap:7px;
  max-height:280px;
  overflow:auto;
  padding-right:2px;
}
.rss-archive-move-option{
  width:100%;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  background:rgba(255,255,255,.026);
  color:rgba(234,242,252,.91);
  padding:10px 12px;
  text-align:left;
  font:800 .84rem/1.2 var(--font-body,Inter,system-ui,sans-serif);
  cursor:pointer;
}
.rss-archive-move-option:hover,
.rss-archive-move-option:focus-visible{
  border-color:rgba(244,211,138,.30);
  background:rgba(244,211,138,.10);
}
@media (max-width:1120px){
  .rss-archive-overlay__grid{columns:2 300px;}
}
@media (max-width:760px){
  .rss-archive-overlay{padding:12px;}
  .rss-archive-overlay__panel{border-radius:22px;height:auto;max-height:91svh;padding:14px;}
  .rss-archive-overlay__head{gap:12px;margin-bottom:12px;}
  .rss-archive-overlay__grid{columns:1 260px;}
  .rss-archive-overlay__folders{padding:8px;border-radius:17px;}
  .rss-archive-folder-strip{gap:8px;}
  .rss-archive-folder-chip{min-width:78px;min-height:70px;padding:8px 9px 7px;font-size:.66rem;border-radius:16px;}
  .rss-archive-folder-chip__icon{width:38px;height:29px;}
  .rss-archive-folder-chip__icon::before{top:9px;width:38px;height:20px;border-radius:6px 6px 7px 7px;}
  .rss-archive-folder-chip__icon::after{top:2px;width:20px;height:11px;border-radius:6px 6px 2px 2px;}
  .rss-archive-folder-chip__label{max-width:84px;}
  .rss-archive-folder-chip b{top:5px;right:5px;min-width:19px;height:19px;font-size:.60rem;}
  .rss-archive-folder-chip-wrap .rss-archive-folder-chip b{left:auto;right:5px;}
  .rss-archive-folder-delete{display:none !important;}
  .rss-archive-card__actions{align-items:flex-start;}
  .rss-archive-card__button-row{width:100%;justify-content:flex-start;}
}

/* r9136/r9137 — Client Intelligence account-service snapshot panel + dashboard visit signals */
body[data-page="home"] .settings-client-intelligence{
  margin:0 0 12px;
  padding:12px;
  border:1px solid rgba(244,211,138,.16);
  border-radius:18px;
  background:linear-gradient(135deg, rgba(244,211,138,.075), rgba(12,28,48,.34) 46%, rgba(4,14,27,.38));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035), 0 12px 28px rgba(0,0,0,.16);
}
body[data-page="home"] .settings-client-intelligence__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin:0 0 10px;
}
body[data-page="home"] .settings-client-intelligence__kicker{
  margin:0 0 3px;
  color:rgba(232,214,164,.82);
  font-size:.62rem;
  line-height:1.1;
  font-weight:760;
  letter-spacing:.10em;
  text-transform:uppercase;
}
body[data-page="home"] .settings-client-intelligence h4,
body[data-page="home"] .settings-client-intelligence h5{
  margin:0;
  color:rgba(232,214,164,.90);
  font-weight:760;
  letter-spacing:.01em;
}
body[data-page="home"] .settings-client-intelligence h4{
  font-size:.92rem;
  line-height:1.14;
}
body[data-page="home"] .settings-client-intelligence h5{
  font-size:.72rem;
  line-height:1.15;
  margin-bottom:6px;
}
body[data-page="home"] .settings-client-intelligence__status{
  display:block;
  margin-top:4px;
  color:rgba(215,229,242,.70);
  font-size:.68rem;
  line-height:1.25;
}
body[data-page="home"] .settings-client-intelligence__status.is-error{
  color:rgba(255,186,186,.92);
}
body[data-page="home"] .settings-client-intelligence__stats{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(86px, 1fr));
  gap:7px;
  margin:0 0 11px;
}
body[data-page="home"] .settings-client-intelligence__stats span{
  min-width:0;
  padding:8px 7px;
  border:1px solid rgba(159,202,255,.10);
  border-radius:13px;
  background:rgba(8,20,36,.34);
}
body[data-page="home"] .settings-client-intelligence__stats strong,
body[data-page="home"] .settings-client-intelligence__stats em{
  display:block;
  font-style:normal;
}
body[data-page="home"] .settings-client-intelligence__stats strong{
  color:rgba(239,247,255,.94);
  font-size:.90rem;
  line-height:1.1;
}
body[data-page="home"] .settings-client-intelligence__stats em{
  margin-top:2px;
  color:rgba(204,220,236,.63);
  font-size:.60rem;
  line-height:1.15;
}
body[data-page="home"] .settings-client-intelligence__lists{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(190px, 1fr));
  gap:10px;
}
body[data-page="home"] .settings-client-intelligence__lists > div{
  min-width:0;
  padding:10px;
  border:1px solid rgba(159,202,255,.085);
  border-radius:14px;
  background:rgba(7,18,33,.28);
}
body[data-page="home"] .settings-client-intelligence__lists ul{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:6px;
}
body[data-page="home"] .settings-client-intelligence__lists li{
  display:grid;
  grid-template-columns:minmax(0,.82fr) minmax(0,1fr);
  gap:8px;
  align-items:center;
  color:rgba(212,226,239,.74);
  font-size:.66rem;
  line-height:1.24;
}
body[data-page="home"] .settings-client-intelligence__lists li strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:rgba(239,247,255,.86);
  font-size:.68rem;
}
body[data-page="home"] .settings-client-intelligence__lists li span{
  min-width:0;
  color:rgba(202,218,235,.66);
}

@media (max-width:980px){
  body[data-page="home"] .settings-client-intelligence__lists{
    grid-template-columns:1fr;
  }
}
@media (max-width:760px){
  body[data-page="home"] .settings-client-intelligence{
    padding:11px;
    border-radius:16px;
  }
  body[data-page="home"] .settings-client-intelligence__head{
    flex-direction:column;
    align-items:stretch;
  }
  body[data-page="home"] .settings-client-intelligence__stats{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
  body[data-page="home"] .settings-client-intelligence__lists{
    grid-template-columns:1fr;
  }
  body[data-page="home"] .settings-client-intelligence__lists li{
    grid-template-columns:1fr;
    gap:2px;
  }
}

/* r9225 — guest-invite Client Intelligence notifications reuse the dashboard notice shell with a softer celebratory accent. */
.ccr-dashboard-visit-notice--guest-invite .ccr-dashboard-visit-notice__orb{
  box-shadow:0 0 0 4px rgba(244,211,138,.10), 0 0 26px rgba(244,211,138,.28);
}

/* r9177: CCR Client Intelligence notification + history SO-parity glass polish */
.ccr-dashboard-visit-notice{
  position:fixed;
  left:50%;
  top:50%;
  z-index:2147482600;
  width:min(460px, calc(100vw - 30px));
  color:var(--text,#EAF0F5);
  font-family:Inter,"Noto Sans JP",system-ui,sans-serif;
  text-align:center;
  border:1px solid rgba(214,229,248,.064);
  border-radius:24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(124,160,205,.030), transparent 34%),
    linear-gradient(180deg, rgba(24,36,50,.30), rgba(8,14,23,.205));
  box-shadow:0 16px 46px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.024);
  backdrop-filter:blur(8px) saturate(1.03);
  -webkit-backdrop-filter:blur(8px) saturate(1.03);
  opacity:0;
  transform:translate3d(-50%, calc(-50% - 10px), 0) scale(.975);
  pointer-events:none;
  overflow:hidden;
  transition:opacity .24s ease, transform .24s ease;
}
.ccr-dashboard-visit-notice.is-visible{
  opacity:1;
  transform:translate3d(-50%, -50%, 0) scale(1);
  pointer-events:auto;
}
.ccr-dashboard-visit-notice__orb{
  position:absolute;
  width:260px;
  height:260px;
  left:50%;
  top:-150px;
  transform:translateX(-50%);
  border-radius:999px;
  background:radial-gradient(circle, rgba(244,211,138,.13), rgba(124,160,205,.030) 48%, transparent 72%);
  pointer-events:none;
}
.ccr-dashboard-visit-notice__body{
  position:relative;
  padding:24px 22px 20px;
}
.ccr-dashboard-visit-notice__kicker{
  margin:0 30px 8px;
  color:rgba(244,211,138,.86);
  font-size:.68rem;
  line-height:1.1;
  font-weight:700;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.ccr-dashboard-visit-notice__title{
  display:block;
  font-family:Inter,"Noto Sans JP",system-ui,sans-serif;
  font-size:1.18rem;
  line-height:1.24;
  color:rgba(255,242,207,.92);
  margin:0 28px 8px;
  font-weight:700;
  letter-spacing:.005em;
  text-align:center;
}
.ccr-dashboard-visit-notice__meta{
  margin:0 auto 14px;
  max-width:34em;
  font-size:.82rem;
  line-height:1.45;
  color:rgba(222,233,246,.68);
  text-align:center;
}
.ccr-dashboard-visit-notice__list{
  list-style:none;
  padding:0;
  margin:0 auto 16px;
  display:grid;
  gap:8px;
  max-width:380px;
}
.ccr-dashboard-visit-notice__list li{
  display:grid;
  justify-items:center;
  gap:3px;
  padding:10px 12px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.016), rgba(255,255,255,.007));
  border:1px solid rgba(255,255,255,.046);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.016);
  text-align:center;
}
.ccr-dashboard-visit-notice__list strong{
  color:rgba(255,248,231,.90);
  font-size:.9rem;
  font-weight:700;
}
.ccr-dashboard-visit-notice__list span{
  color:rgba(224,236,248,.66);
  font-size:.78rem;
}
.ccr-dashboard-visit-notice__list em{
  color:rgba(244,211,138,.78);
  font-size:.72rem;
  font-style:normal;
  white-space:nowrap;
}
.ccr-dashboard-visit-notice__actions{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
}
.ccr-dashboard-visit-notice__actions button,
.ccr-dashboard-visit-notice__close{
  font-family:Inter,"Noto Sans JP",system-ui,sans-serif;
  color:rgba(248,232,191,.90);
  border:1px solid rgba(244,211,138,.22);
  background:rgba(244,211,138,.070);
  border-radius:999px;
  cursor:pointer;
}
.ccr-dashboard-visit-notice__actions button{
  padding:8px 13px;
  font-size:.78rem;
  font-weight:650;
  letter-spacing:.02em;
}
.ccr-dashboard-visit-notice__close{
  position:absolute;
  top:12px;
  right:12px;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  font-size:1rem;
  line-height:1;
}
.ccr-dashboard-visit-notice__actions button:hover,
.ccr-dashboard-visit-notice__close:hover{
  border-color:rgba(244,211,138,.42);
  background:rgba(244,211,138,.105);
}
.ccr-client-activity-launcher{
  position:fixed;
  right:clamp(14px,2.2vw,28px);
  bottom:calc(92px + env(safe-area-inset-bottom, 0px));
  z-index:2147481800;
  display:flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border:1px solid rgba(244,211,138,.24);
  border-radius:999px;
  color:#f8e8bf;
  font-family:Inter,"Noto Sans JP",system-ui,sans-serif;
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.02em;
  background:linear-gradient(180deg, rgba(24,36,50,.26), rgba(8,14,23,.18));
  box-shadow:0 10px 26px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.018);
  backdrop-filter:blur(8px) saturate(1.03);
  -webkit-backdrop-filter:blur(8px) saturate(1.03);
  cursor:pointer;
}
.ccr-client-activity-launcher strong{
  min-width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:rgba(244,211,138,.16);
  color:#fff7df;
  font-size:.68rem;
}
.ccr-client-activity-launcher__unique{
  margin-left:3px;
}
.ccr-client-activity-history{
  position:fixed;
  inset:0;
  z-index:2147482500;
  display:grid;
  place-items:center;
  padding:20px;
  opacity:0;
  pointer-events:none;
  transition:opacity .22s ease;
}
.ccr-client-activity-history.is-visible{opacity:1;pointer-events:auto;}
.ccr-client-activity-history__backdrop{
  position:absolute;
  inset:0;
  background:rgba(5,10,18,.060);
  backdrop-filter:blur(3px) saturate(1.01);
  -webkit-backdrop-filter:blur(3px) saturate(1.01);
}
.ccr-client-activity-history__panel{
  position:relative;
  width:min(560px, calc(100vw - 32px));
  max-height:min(76vh, 680px);
  overflow:auto;
  padding:24px 22px 20px;
  border:1px solid rgba(214,229,248,.064);
  border-radius:24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(124,160,205,.030), transparent 34%),
    linear-gradient(180deg, rgba(24,36,50,.30), rgba(8,14,23,.205));
  box-shadow:0 16px 46px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.024);
  color:var(--text,#EAF0F5);
  font-family:Inter,"Noto Sans JP",system-ui,sans-serif;
  backdrop-filter:blur(8px) saturate(1.03);
  -webkit-backdrop-filter:blur(8px) saturate(1.03);
  text-align:center;
}
.ccr-client-activity-history__close{
  position:absolute;
  top:14px;
  right:14px;
  width:32px;
  height:32px;
  border-radius:999px;
  border:1px solid rgba(244,211,138,.22);
  background:rgba(244,211,138,.070);
  color:rgba(248,232,191,.90);
  cursor:pointer;
}
.ccr-client-activity-history__kicker{
  margin:0 36px 6px;
  color:rgba(244,211,138,.86);
  font-size:.68rem;
  font-weight:700;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.ccr-client-activity-history h3{
  margin:0 36px 8px;
  font-family:Inter,"Noto Sans JP",system-ui,sans-serif;
  color:rgba(255,242,207,.92);
  font-size:1.18rem;
  font-weight:700;
  line-height:1.2;
}
.ccr-client-activity-history__meta{
  margin:0 auto 14px;
  color:rgba(222,233,246,.66);
  font-size:.82rem;
  line-height:1.45;
  max-width:38em;
}
.ccr-client-activity-history__unique{
  margin:14px auto 16px;
  padding:12px 12px 10px;
  max-width:480px;
  border:1px solid rgba(244,211,138,.11);
  border-radius:18px;
  background:linear-gradient(180deg, rgba(244,211,138,.030), rgba(255,255,255,.006));
}
.ccr-client-activity-history__unique h4,
.ccr-client-activity-history__subhead{
  margin:0 0 9px;
  color:rgba(248,232,191,.92);
  font-size:.82rem;
  font-weight:760;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.ccr-client-activity-history__unique h4 strong{
  display:inline-grid;
  min-width:22px;
  height:22px;
  margin-left:6px;
  place-items:center;
  border-radius:999px;
  background:rgba(244,211,138,.14);
  color:#fff7df;
  font-size:.72rem;
}
.ccr-client-activity-history__subhead{
  margin-top:4px;
}
.ccr-client-activity-history__list{
  list-style:none;
  margin:0 auto 16px;
  padding:0;
  display:grid;
  gap:8px;
  max-width:460px;
}
.ccr-client-activity-history__list li{
  display:grid;
  justify-items:center;
  gap:3px;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.046);
  background:linear-gradient(180deg, rgba(255,255,255,.016), rgba(255,255,255,.007));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.016);
}
.ccr-client-activity-history__list strong{color:rgba(255,248,231,.90);font-size:.9rem;}
.ccr-client-activity-history__list span{color:rgba(224,236,248,.66);font-size:.78rem;}
.ccr-client-activity-history__list em{color:rgba(244,211,138,.78);font-size:.72rem;font-style:normal;}
.ccr-client-activity-history__actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;}
.ccr-client-activity-history__actions button{
  padding:8px 13px;
  border-radius:999px;
  border:1px solid rgba(244,211,138,.22);
  background:rgba(244,211,138,.070);
  color:rgba(248,232,191,.90);
  font-family:Inter,"Noto Sans JP",system-ui,sans-serif;
  font-size:.78rem;
  font-weight:650;
  cursor:pointer;
}

@media (max-width: 899px){
  .ccr-client-activity-launcher__unique{display:none;}
}

@media (max-width: 640px){
  .ccr-dashboard-visit-notice{width:calc(100vw - 24px);border-radius:22px;}
  .ccr-dashboard-visit-notice__body{padding:22px 16px 18px;}
  .ccr-client-activity-launcher{right:12px;bottom:calc(82px + env(safe-area-inset-bottom, 0px));}
  .ccr-client-activity-launcher__unique{display:none;}
  .ccr-client-activity-history{padding:12px;}
  .ccr-client-activity-history__panel{width:100%;max-height:82vh;border-radius:24px;}
}


/* r9194 — CCR SO-native guest invite overlay
   Root-level replacement for the r9192/r9193 generic modal treatment.
   Mirrors the actual Settings Overlay shell: card/header/body/section hierarchy,
   muted shell border, SO glass background, gold section titles, and contained scroll. */
.ccr-guest-invite-layer{
  position:fixed;
  inset:0;
  z-index:2147483330;
  display:grid;
  place-items:center;
  padding:24px;
  opacity:0;
  pointer-events:none;
  transition:opacity 220ms ease;
  font-family:Inter,"Noto Sans JP",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.ccr-guest-invite-layer.is-visible{
  opacity:1;
  pointer-events:auto;
}
.ccr-guest-invite-layer__backdrop{
  position:absolute;
  inset:0;
  background:rgba(5,10,18,.42);
  backdrop-filter:blur(9px) saturate(1.08);
}
.ccr-guest-invite-panel{
  position:relative;
  width:min(720px, calc(100vw - 48px));
  max-width:100%;
  max-height:min(88vh, 820px);
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(214,229,248,.13);
  border-radius:24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(124,160,205,.075), transparent 34%),
    linear-gradient(180deg, rgba(24,36,50,.86), rgba(8,14,23,.80));
  box-shadow:0 30px 82px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.052);
  backdrop-filter:blur(13px) saturate(1.08);
  color:var(--text);
  text-align:left;
}
.ccr-guest-invite-panel__header{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  gap:12px;
  padding:22px 22px 16px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(27,39,53,.97), rgba(23,33,46,.95));
}
.ccr-guest-invite-panel__header > div{
  min-width:0;
  flex:1 1 auto;
  max-width:100%;
}
.ccr-guest-invite-panel__body{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  min-height:0;
  max-height:100%;
  overflow-x:hidden;
  overflow-y:auto;
  overflow-anchor:none;
  scrollbar-gutter:stable both-edges;
  padding:16px 18px 20px;
  scrollbar-width:thin;
  scrollbar-color:rgba(214,185,117,.34) rgba(255,255,255,.04);
}
.ccr-guest-invite-panel__body::-webkit-scrollbar{ width:10px; }
.ccr-guest-invite-panel__body::-webkit-scrollbar-track{ background:rgba(255,255,255,.04); border-radius:999px; }
.ccr-guest-invite-panel__body::-webkit-scrollbar-thumb{ background:rgba(214,185,117,.34); border-radius:999px; }
.ccr-guest-invite-panel__close{
  position:absolute;
  top:max(14px, env(safe-area-inset-top, 0px) + 2px);
  right:max(14px, env(safe-area-inset-right, 0px) + 2px);
  min-width:38px;
  width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  z-index:8;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(9,15,23,.72);
  color:rgba(242,247,255,.88);
  cursor:pointer;
  font:600 20px/1 Inter,"Noto Sans JP",system-ui,sans-serif;
  box-shadow:0 10px 24px rgba(0,0,0,.26);
  transition:background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.ccr-guest-invite-panel__close:hover,
.ccr-guest-invite-panel__close:focus-visible{
  background:rgba(255,255,255,.075);
  border-color:rgba(255,255,255,.22);
  color:#fff;
  transform:translateY(-1px);
}
.ccr-guest-invite-panel__kicker{
  margin:0 44px 6px 0;
  font-size:.72rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(215,227,236,.66);
}
.ccr-guest-invite-panel h3{
  margin:0 44px 0 0;
  font-size:1.58rem;
  line-height:1.04;
  font-weight:650;
  letter-spacing:-.01em;
  color:var(--text);
}
.ccr-guest-invite-panel__meta{
  max-width:60ch;
  margin:8px 44px 0 0;
  color:var(--text-2);
  line-height:1.5;
  font-size:.95rem;
}
.ccr-guest-invite-form{
  display:grid;
  gap:14px;
}
.ccr-guest-invite-zone{
  display:grid;
  gap:12px;
  min-width:0;
  padding:15px 16px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:18px;
  background:rgba(255,255,255,.035);
}
.ccr-guest-invite-zone__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.ccr-guest-invite-zone__title-row{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  flex-wrap:wrap;
}
.ccr-guest-invite-zone__title{
  margin:0;
  color:rgba(232,214,164,.90);
  text-shadow:0 0 16px rgba(232,214,164,.08);
  font-size:1.02rem;
  line-height:1.2;
  font-weight:700;
  letter-spacing:.01em;
}
.ccr-guest-invite-zone__hint{
  margin:0;
  max-width:38ch;
  color:var(--text-2);
  font-size:.83rem;
  line-height:1.55;
  text-align:right;
}
.ccr-guest-invite-zone__grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}
.ccr-guest-invite-field{
  display:grid;
  gap:7px;
  min-width:0;
  color:rgba(214,227,238,.68);
  font-size:.78rem;
  font-weight:650;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.ccr-guest-invite-field input,
.ccr-guest-invite-field textarea{
  width:100%;
  box-sizing:border-box;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background:rgba(3,12,28,.42);
  color:rgba(255,255,255,.96);
  padding:12px 13px;
  outline:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045);
  font:500 .92rem/1.35 Inter,"Noto Sans JP",system-ui,sans-serif;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.ccr-guest-invite-field input::placeholder,
.ccr-guest-invite-field textarea::placeholder{ color:rgba(213,226,239,.38); }
.ccr-guest-invite-field input:focus,
.ccr-guest-invite-field textarea:focus{
  border-color:rgba(232,214,164,.44);
  background:rgba(3,12,28,.54);
  box-shadow:0 0 0 3px rgba(232,214,164,.10), inset 0 1px 0 rgba(255,255,255,.06);
}
.ccr-guest-invite-form__message textarea{
  min-height:176px;
  resize:vertical;
  line-height:1.52;
  letter-spacing:0;
  text-transform:none;
}
.ccr-guest-invite-form__message small{
  color:var(--text-2);
  font-size:.78rem;
  font-weight:500;
  letter-spacing:.01em;
  line-height:1.45;
  text-transform:none;
}
.ccr-guest-invite-message{
  margin:0;
  padding:10px 12px;
  border-radius:14px;
  text-align:left;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.075);
  color:rgba(238,246,255,.88);
  font-size:.86rem;
  line-height:1.45;
}
.ccr-guest-invite-message.is-error{
  border-color:rgba(255,118,118,.35);
  background:rgba(255,88,88,.08);
  color:rgba(255,224,224,.95);
}
.ccr-guest-invite-message.is-ok{
  border-color:rgba(155,255,198,.30);
  background:rgba(95,211,144,.08);
  color:rgba(215,255,232,.96);
}
.ccr-guest-invite-result{
  display:grid;
  gap:8px;
  margin:0;
  padding:12px;
  border-radius:15px;
  background:rgba(7,14,28,.2);
  border:1px solid rgba(255,255,255,.075);
  text-align:left;
}
.ccr-guest-invite-result__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:var(--text-2);
  font-size:.86rem;
}
.ccr-guest-invite-result__row strong{
  color:rgba(255,255,255,.96);
  font-weight:800;
  letter-spacing:.03em;
}
.ccr-guest-invite-result p{
  margin:6px 0 0;
  color:var(--text-2);
  text-align:left;
  font-size:.84rem;
  line-height:1.45;
}
.ccr-guest-invite-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  padding-top:2px;
}
.ccr-guest-invite-actions button{
  min-height:36px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  padding:7px 14px;
  background:rgba(255,255,255,.045);
  color:rgba(242,247,255,.90);
  font:600 .82rem/1.15 Inter,"Noto Sans JP",system-ui,sans-serif;
  letter-spacing:.02em;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045);
  transition:background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, opacity .18s ease;
}
.ccr-guest-invite-actions button:hover,
.ccr-guest-invite-actions button:focus-visible{
  background:rgba(255,255,255,.075);
  border-color:rgba(255,255,255,.16);
  color:#fff;
  transform:translateY(-1px);
}
.ccr-guest-invite-actions button.is-primary{
  border-color:rgba(232,214,164,.28);
  background:rgba(232,214,164,.12);
  color:rgba(255,255,255,.98);
}
.ccr-guest-invite-actions button.is-primary:hover,
.ccr-guest-invite-actions button.is-primary:focus-visible{
  border-color:rgba(232,214,164,.42);
  background:rgba(232,214,164,.17);
}
.ccr-guest-invite-actions button:disabled{
  opacity:.55;
  cursor:progress;
  transform:none;
}

/* r9220 / pass 25 — compact Invite Friend copy and visible post-send confirmation */
.ccr-guest-invite-panel.is-complete .ccr-guest-invite-panel__body{
  overflow-y:auto;
  padding:18px;
}
.ccr-guest-invite-complete{
  display:grid;
  gap:14px;
  outline:none;
}
.ccr-guest-invite-result__status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  justify-self:start;
  min-height:28px;
  padding:5px 11px;
  border-radius:999px;
  border:1px solid rgba(155,255,198,.28);
  background:rgba(95,211,144,.095);
  color:rgba(218,255,234,.98);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.ccr-guest-invite-actions--complete{
  position:sticky;
  bottom:0;
  justify-content:flex-end;
  padding:10px 0 0;
  background:linear-gradient(180deg, rgba(10,16,26,0), rgba(10,16,26,.72) 45%, rgba(10,16,26,.84));
  z-index:3;
}
.ccr-guest-invite-panel.is-complete .ccr-guest-invite-actions--complete button{
  min-width:110px;
}
.ccr-guest-invite-panel.is-complete .ccr-guest-invite-result{
  background:rgba(7,18,31,.34);
  border-color:rgba(155,255,198,.14);
}

@media (max-width:640px){
  .ccr-guest-invite-layer{ padding:16px; place-items:end center; }
  .ccr-guest-invite-panel{
    width:100%;
    max-height:calc(100vh - 28px);
    border-radius:24px;
  }
  .ccr-guest-invite-panel__header{ padding:22px 16px 14px; }
  .ccr-guest-invite-panel__body{ padding:14px 12px 18px; }
  .ccr-guest-invite-panel__kicker,
  .ccr-guest-invite-panel h3,
  .ccr-guest-invite-panel__meta{ margin-right:42px; }
  .ccr-guest-invite-zone{ padding:12px; border-radius:16px; }
  .ccr-guest-invite-zone__head{ display:grid; gap:5px; }
  .ccr-guest-invite-zone__hint{ text-align:left; max-width:none; }
  .ccr-guest-invite-zone__grid{ grid-template-columns:1fr; }
  .ccr-guest-invite-form__message textarea{ min-height:164px; }
  .ccr-guest-invite-result__row{ flex-direction:column; align-items:flex-start; gap:3px; }
  .ccr-guest-invite-actions{ justify-content:stretch; }
  .ccr-guest-invite-actions button{ flex:1 1 auto; min-height:42px; }
}

/* r9203 — stable consolidated Home / CCR Intelligence invite, archive, and search controls
   Desktop: Invite Friend → Archive (x) → grouped Search Intelligence + Search.
   Lower Source Feed search now uses Search plus mobile-friendly Archive access.
   Mobile keeps the existing lower invite launcher pattern and hides the top ribbon invite control. */
body[data-page="home"] #homeFilterForm{
  grid-template-columns:minmax(280px, 760px) !important;
}
body[data-page="home"] #homeFilterForm .filter-grid--keyword-only,
body[data-page="home"] #homeFilterForm .filter-actions{
  max-width:760px;
}
body[data-page="home"] .home-search-invite-line{
  display:grid;
  grid-template-columns:1fr;
  align-items:center;
  gap:10px;
  width:100%;
}
body[data-page="home"] .home-search-invite-line.is-invite-visible{
  grid-template-columns:minmax(136px, auto) minmax(260px, 1fr);
}
body[data-page="home"] .home-invite-friend-btn{
  min-height:40px;
  padding:.46rem .82rem;
  border-radius:12px;
  border:1px solid rgba(212,184,116,.24);
  background:linear-gradient(180deg, rgba(212,184,116,.105), rgba(212,184,116,.045));
  color:rgba(229,211,166,.84);
  font-family:Inter,"Noto Sans JP",system-ui,sans-serif;
  font-size:.76rem;
  font-weight:680;
  letter-spacing:.024em;
  text-transform:none;
  white-space:nowrap;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 8px 18px rgba(0,0,0,.11);
  cursor:pointer;
  transition:background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
body[data-page="home"] .home-invite-friend-btn[hidden],
body[data-page="home"] .ccr-ribbon-invite-friend-btn[hidden]{
  display:none !important;
}
body[data-page="home"] .home-invite-friend-btn:hover,
body[data-page="home"] .home-invite-friend-btn:focus-visible{
  background:linear-gradient(180deg, rgba(229,199,126,.16), rgba(212,184,116,.075));
  border-color:rgba(239,218,166,.38);
  color:rgba(255,235,181,.94);
  transform:translateY(-1px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.11), 0 10px 22px rgba(0,0,0,.16);
  outline:none;
}
@media (max-width:760px){
  body[data-page="home"] #homeFilterForm,
  body[data-page="home"] #homeFilterForm .filter-grid--keyword-only,
  body[data-page="home"] #homeFilterForm .filter-actions{
    max-width:none;
  }
  body[data-page="home"] .home-search-invite-line.is-invite-visible{
    grid-template-columns:1fr;
  }
  body[data-page="home"] .home-invite-friend-btn{
    width:100%;
  }
  body[data-page="home"] .ccr-ribbon-invite-friend-btn{
    display:none !important;
  }
}
@media (min-width:761px){
  body[data-page="home"] .filter-box{
    max-width:760px !important;
  }
  body[data-page="home"] #homeFilterForm{
    grid-template-columns:minmax(260px, 560px) !important;
    justify-content:center !important;
    justify-items:center !important;
    align-items:center !important;
    gap:10px !important;
    max-width:760px !important;
  }
  body[data-page="home"] #homeFilterForm .filter-grid--keyword-only,
  body[data-page="home"] #homeFilterForm .filter-actions{
    width:100% !important;
    max-width:560px !important;
  }
  body[data-page="home"] #homeFilterForm .filter-actions{
    justify-content:center !important;
    margin-top:2px !important;
    grid-column:1 / -1 !important;
  }
  body[data-page="home"] #homeFilterForm .filter-actions .ui-btn{
    min-width:116px !important;
  }
  body[data-page="home"] #homeFilterForm .home-search-invite-line,
  body[data-page="home"] #homeFilterForm .home-search-invite-line.is-invite-visible{
    display:block !important;
    width:100% !important;
  }
  body[data-page="home"] #homeFilterForm .home-invite-friend-btn{
    display:none !important;
  }

  body[data-page="home"] .ccr-intelligence-ribbon__tools{
    gap:8px !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__search{
    flex:0 1 min(54vw, 680px) !important;
    max-width:min(54vw, 680px) !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:12px !important;
    min-width:0 !important;
    margin-left:0 !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__search:not(.is-invite-visible){
    flex-basis:420px !important;
    max-width:min(38vw, 480px) !important;
  }
  body[data-page="home"] .ccr-ribbon-invite-friend-btn{
    flex:0 0 auto !important;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:28px;
    height:28px;
    padding:3px 10px !important;
    border-radius:999px;
    border:1px solid rgba(233,202,136,.14);
    background:rgba(233,202,136,.036);
    color:rgba(224,211,177,.74);
    font-family:Inter,"Noto Sans JP",system-ui,sans-serif;
    font-size:.72rem !important;
    font-weight:700 !important;
    line-height:1;
    letter-spacing:.004em !important;
    text-transform:none !important;
    white-space:nowrap;
    cursor:pointer;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.045), 0 6px 14px rgba(0,0,0,.08);
  }
  body[data-page="home"] .ccr-ribbon-invite-friend-btn:hover,
  body[data-page="home"] .ccr-ribbon-invite-friend-btn:focus-visible{
    border-color:rgba(233,202,136,.28);
    background:rgba(233,202,136,.075);
    color:rgba(255,235,181,.92);
    outline:none;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__archive-open{
    flex:0 0 auto !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-height:29px !important;
    height:29px !important;
    padding:2px 2px !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    color:rgba(204,214,226,.78) !important;
    font-family:Inter,"Noto Sans JP",system-ui,sans-serif !important;
    font-size:.76rem !important;
    font-weight:750 !important;
    line-height:1 !important;
    letter-spacing:.005em !important;
    text-decoration:none !important;
    text-transform:none !important;
    white-space:nowrap !important;
    cursor:pointer !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__archive-open:hover,
  body[data-page="home"] .ccr-intelligence-ribbon__archive-open:focus-visible{
    color:rgba(240,222,171,.96) !important;
    background:transparent !important;
    border-color:transparent !important;
    box-shadow:none !important;
    outline:none !important;
    text-decoration:none !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__search-unit{
    flex:1 1 300px !important;
    min-width:240px !important;
    max-width:380px !important;
    display:grid !important;
    grid-template-columns:minmax(122px, 1fr) auto !important;
    align-items:stretch !important;
    gap:0 !important;
    border:1px solid rgba(255,255,255,.105) !important;
    border-radius:999px !important;
    background:rgba(5,12,22,.24) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.035), 0 10px 24px rgba(0,0,0,.10) !important;
    overflow:hidden !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__search-unit:focus-within{
    border-color:rgba(233,202,136,.34) !important;
    box-shadow:0 0 0 3px rgba(233,202,136,.075), inset 0 1px 0 rgba(255,255,255,.04) !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__search-unit input,
  body[data-page="home"] .ccr-intelligence-ribbon__search-unit button{
    height:30px !important;
    min-height:30px !important;
    border-radius:0 !important;
    box-shadow:none !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__search-unit input{
    border:0 !important;
    background:transparent !important;
    padding:5px 12px !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__search-unit button{
    border:0 !important;
    border-left:1px solid rgba(255,255,255,.105) !important;
    background:rgba(255,255,255,.045) !important;
    padding:5px 13px !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__search-unit button:hover,
  body[data-page="home"] .ccr-intelligence-ribbon__search-unit button:focus-visible{
    background:rgba(255,255,255,.075) !important;
    color:rgba(255,247,229,.94) !important;
    outline:none !important;
  }
}


/* r9212 — booking request review + client schedule lifecycle controls */
body[data-page="home"] .settings-schedule-requests{
  border:1px solid rgba(174,200,233,.16);
  border-radius:18px;
  background:rgba(6,18,34,.34);
  padding:12px;
}
body[data-page="home"] .settings-schedule-requests__head,
body[data-page="home"] .settings-schedule-request-card__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
body[data-page="home"] .settings-schedule-requests__head{
  margin-bottom:9px;
}
body[data-page="home"] .settings-schedule-requests__head h4,
body[data-page="home"] .settings-schedule-request-card__head h4{
  margin:0;
  color:#f4d38a;
  font-size:.86rem;
  font-weight:850;
  letter-spacing:.01em;
}
body[data-page="home"] .settings-schedule-request-card__head p{
  margin:3px 0 0;
  color:rgba(232,240,252,.62);
  font-size:.72rem;
  font-weight:650;
}
body[data-page="home"] .settings-schedule-request-list{
  display:grid;
  gap:9px;
}
body[data-page="home"] .settings-schedule-request-card{
  padding:10px;
  border:1px solid rgba(244,211,138,.18);
  border-radius:16px;
  background:rgba(255,255,255,.035);
}
body[data-page="home"] .settings-schedule-request-card.has-pending{
  border-color:rgba(244,211,138,.30);
  background:linear-gradient(150deg, rgba(244,211,138,.08), rgba(6,18,34,.32));
}
body[data-page="home"] .settings-schedule-request-card ol{
  list-style:none;
  display:grid;
  gap:7px;
  margin:10px 0 0;
  padding:0;
}
body[data-page="home"] .settings-schedule-request-card li{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  padding:8px 9px;
  border-radius:13px;
  border:1px solid rgba(174,200,233,.12);
  background:rgba(6,18,34,.34);
}
body[data-page="home"] .settings-schedule-request-choice{
  min-width:0;
  display:grid;
  gap:3px;
}
body[data-page="home"] .settings-schedule-request-choice span{
  color:rgba(232,240,252,.68);
  font-size:.72rem;
  font-weight:800;
}
body[data-page="home"] .settings-schedule-request-choice strong{
  color:#fff3cf;
  font-size:.82rem;
  font-weight:850;
  line-height:1.22;
}
body[data-page="home"] .settings-schedule-request-choice em{
  color:rgba(244,211,138,.82);
  font-size:.68rem;
  font-style:normal;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.05em;
}
body[data-page="home"] .settings-schedule-request-card__actions{
  display:flex;
  justify-content:flex-end;
  gap:7px;
  margin-top:10px;
}
body[data-page="home"] .settings-schedule-sessions li{
  grid-template-columns:minmax(0,1fr) auto auto auto;
}
body[data-page="home"] .settings-schedule-sessions li.is-declined{
  opacity:.82;
  border-color:rgba(255,183,118,.20);
  background:rgba(156,94,46,.08);
}
body[data-page="home"] .settings-schedule-sessions li.is-confirmed,
body[data-page="home"] .settings-schedule-sessions li.is-booked,
body[data-page="home"] .settings-schedule-sessions li.is-manual{
  border-color:rgba(126,220,166,.22);
  background:rgba(35,132,89,.10);
}
body[data-page="home"] .settings-schedule-session-remove{
  white-space:nowrap;
  font-size:.66rem;
  padding:.28rem .55rem;
}
body[data-page="home"] .settings-schedule-session-remove.is-cancel{
  border-color:rgba(255,183,118,.28);
  color:#ffd7b2;
}
@media (max-width:760px){
  body[data-page="home"] .settings-schedule-request-card__head,
  body[data-page="home"] .settings-schedule-requests__head{
    align-items:flex-start;
  }
  body[data-page="home"] .settings-schedule-request-card li,
  body[data-page="home"] .settings-schedule-sessions li{
    grid-template-columns:1fr;
    align-items:stretch;
  }
  body[data-page="home"] .settings-schedule-request-card__actions{
    justify-content:flex-start;
  }
}

/* r9231 — Client Intelligence: promote guest-invite record above high-frequency dashboard visits. */
body[data-page="home"] .settings-client-intelligence__section--guest-invites{
  grid-column:1 / -1;
  border-color:rgba(244,211,138,.22);
  background:linear-gradient(135deg, rgba(244,211,138,.095), rgba(8,20,36,.38) 52%, rgba(4,14,27,.42));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045), 0 12px 26px rgba(0,0,0,.16);
}
body[data-page="home"] .settings-client-intelligence__section--guest-invites h5{
  display:flex;
  align-items:center;
  gap:8px;
  color:#f7dca0;
}
body[data-page="home"] .settings-client-intelligence__section--guest-invites h5::after{
  content:'priority record';
  padding:2px 7px;
  border:1px solid rgba(244,211,138,.20);
  border-radius:999px;
  color:rgba(247,220,160,.82);
  background:rgba(244,211,138,.08);
  font-size:.52rem;
  font-weight:760;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body[data-page="home"] .settings-client-intelligence__section--guest-invites ul{
  max-height:280px;
  overflow:auto;
  padding-right:4px;
}
body[data-page="home"] .settings-client-intelligence__section--guest-invites ul::-webkit-scrollbar{ width:8px; }
body[data-page="home"] .settings-client-intelligence__section--guest-invites ul::-webkit-scrollbar-track{ background:rgba(255,255,255,.035); border-radius:999px; }
body[data-page="home"] .settings-client-intelligence__section--guest-invites ul::-webkit-scrollbar-thumb{ background:rgba(244,211,138,.28); border-radius:999px; }
body[data-page="home"] .settings-client-intelligence__section--guest-invites li{
  grid-template-columns:minmax(120px,.42fr) minmax(0,1fr);
  padding:7px 0;
  border-bottom:1px solid rgba(244,211,138,.075);
}
body[data-page="home"] .settings-client-intelligence__section--guest-invites li:last-child{ border-bottom:0; }
body[data-page="home"] .settings-client-intelligence__section--guest-invites li strong{
  color:rgba(255,247,222,.92);
}
body[data-page="home"] .settings-client-intelligence__section--guest-invites li span{
  color:rgba(220,232,242,.78);
}
body[data-page="home"] .settings-client-intelligence__section--visits{
  opacity:.88;
}
@media (max-width:760px){
  body[data-page="home"] .settings-client-intelligence__section--guest-invites ul{ max-height:340px; }
  body[data-page="home"] .settings-client-intelligence__section--guest-invites li{ grid-template-columns:1fr; }
}

/* r9234 — SO-style centered confirmation for admin dashboard deletion. */
.ccr-dashboard-delete-confirm-layer{
  position:fixed;
  inset:0;
  z-index:2147483380;
  display:grid;
  place-items:center;
  padding:24px;
  opacity:0;
  pointer-events:none;
  transition:opacity 180ms ease;
  font-family:Inter,"Noto Sans JP",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.ccr-dashboard-delete-confirm-layer.is-visible{
  opacity:1;
  pointer-events:auto;
}
.ccr-dashboard-delete-confirm-layer__backdrop{
  position:absolute;
  inset:0;
  background:rgba(5,10,18,.48);
  backdrop-filter:blur(7px) saturate(1.04);
}
.ccr-dashboard-delete-confirm{
  position:relative;
  width:min(520px, calc(100vw - 42px));
  max-width:100%;
  overflow:hidden;
  border:1px solid rgba(214,229,248,.14);
  border-radius:24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(220,190,120,.10), transparent 36%),
    linear-gradient(180deg, rgba(24,36,50,.92), rgba(8,14,23,.86));
  box-shadow:0 30px 82px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.052);
  backdrop-filter:blur(13px) saturate(1.08);
  color:var(--text);
}
.ccr-dashboard-delete-confirm__header{
  padding:22px 22px 16px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(27,39,53,.98), rgba(23,33,46,.96));
}
.ccr-dashboard-delete-confirm__header span{
  display:block;
  color:rgba(232,214,164,.82);
  font:700 .72rem/1 Inter,"Noto Sans JP",system-ui,sans-serif;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.ccr-dashboard-delete-confirm__header h3{
  margin:8px 0 0;
  color:#f4f8ff;
  font:760 1.08rem/1.25 Inter,"Noto Sans JP",system-ui,sans-serif;
  letter-spacing:-.015em;
}
.ccr-dashboard-delete-confirm__body{
  display:grid;
  gap:14px;
  padding:18px 22px 22px;
}
.ccr-dashboard-delete-confirm__prompt,
.ccr-dashboard-delete-confirm__copy,
.ccr-dashboard-delete-confirm__hint{
  margin:0;
  color:rgba(222,234,248,.82);
  font:500 .86rem/1.55 Inter,"Noto Sans JP",system-ui,sans-serif;
}
.ccr-dashboard-delete-confirm__prompt{
  color:rgba(248,249,252,.94);
  font-weight:650;
}
.ccr-dashboard-delete-confirm__hint{
  color:rgba(232,214,164,.84);
  font-size:.78rem;
}
.ccr-dashboard-delete-confirm__target{
  display:grid;
  gap:4px;
  padding:12px 14px;
  border:1px solid rgba(232,214,164,.18);
  border-radius:16px;
  background:rgba(232,214,164,.065);
}
.ccr-dashboard-delete-confirm__target span,
.ccr-dashboard-delete-confirm__target em{
  color:rgba(213,226,239,.62);
  font:650 .68rem/1.2 Inter,"Noto Sans JP",system-ui,sans-serif;
  letter-spacing:.10em;
  text-transform:uppercase;
}
.ccr-dashboard-delete-confirm__target strong{
  color:#fff;
  font:760 .98rem/1.25 Inter,"Noto Sans JP",system-ui,sans-serif;
}
.ccr-dashboard-delete-confirm__target em{
  font-style:normal;
  text-transform:none;
  letter-spacing:.02em;
}
.ccr-dashboard-delete-confirm__field{
  display:grid;
  gap:7px;
}
.ccr-dashboard-delete-confirm__field span{
  color:rgba(213,226,239,.72);
  font:700 .72rem/1.2 Inter,"Noto Sans JP",system-ui,sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.ccr-dashboard-delete-confirm__field input{
  width:100%;
  min-height:42px;
  box-sizing:border-box;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  padding:10px 12px;
  background:rgba(255,255,255,.055);
  color:#fff;
  font:700 1rem/1.2 Inter,"Noto Sans JP",system-ui,sans-serif;
  outline:none;
}
.ccr-dashboard-delete-confirm__field input:focus{
  border-color:rgba(232,214,164,.46);
  box-shadow:0 0 0 3px rgba(232,214,164,.12);
}
.ccr-dashboard-delete-confirm__actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  padding-top:2px;
}
.ccr-dashboard-delete-confirm__actions .settings-mini-btn.is-danger:disabled{
  opacity:.42;
  cursor:not-allowed;
  transform:none;
}
@media (max-width:640px){
  .ccr-dashboard-delete-confirm-layer{
    padding:18px;
  }
  .ccr-dashboard-delete-confirm__header{
    padding:20px 18px 14px;
  }
  .ccr-dashboard-delete-confirm__body{
    padding:16px 18px 18px;
  }
  .ccr-dashboard-delete-confirm__actions{
    justify-content:stretch;
  }
  .ccr-dashboard-delete-confirm__actions .settings-mini-btn{
    flex:1 1 140px;
  }
}

/* r9243 — SO: collapsible Account Intelligence Snapshot and Booking Requests menus. */
body[data-page="home"] .settings-client-intelligence.is-collapsed .settings-client-intelligence__head,
body[data-page="home"] .settings-schedule-requests.is-collapsed .settings-schedule-requests__head{
  margin-bottom:0;
}
body[data-page="home"] .settings-client-intelligence__toggle,
body[data-page="home"] .settings-schedule-requests__toggle{
  width:100%;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border:0;
  background:transparent;
  color:rgba(232,214,164,.90);
  padding:0;
  font:inherit;
  text-align:left;
  cursor:pointer;
}
body[data-page="home"] .settings-client-intelligence__toggle span,
body[data-page="home"] .settings-schedule-requests__toggle span{
  min-width:0;
  color:rgba(232,214,164,.90);
  font-size:.88rem;
  font-weight:850;
  letter-spacing:.01em;
  line-height:1.2;
}
body[data-page="home"] .settings-client-intelligence__toggle em{
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:rgba(215,229,242,.64);
  font-size:.66rem;
  font-style:normal;
  font-weight:650;
  line-height:1.2;
  text-align:right;
}
body[data-page="home"] .settings-schedule-requests__toggle em{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:24px;
  min-height:22px;
  padding:0 .45rem;
  border-radius:999px;
  border:1px solid rgba(232,214,164,.20);
  background:rgba(232,214,164,.065);
  color:rgba(232,214,164,.90);
  font-size:.68rem;
  font-style:normal;
  font-weight:850;
  line-height:1;
}
body[data-page="home"] .settings-client-intelligence__toggle b,
body[data-page="home"] .settings-schedule-requests__toggle b{
  flex:0 0 auto;
  display:inline-block;
  color:rgba(232,214,164,.72);
  font-size:.75rem;
  transform:rotate(-90deg);
  transition:transform .18s ease;
}
body[data-page="home"] .settings-client-intelligence.is-open .settings-client-intelligence__toggle b,
body[data-page="home"] .settings-schedule-requests.is-open .settings-schedule-requests__toggle b{
  transform:rotate(0deg);
}
body[data-page="home"] .settings-client-intelligence__body,
body[data-page="home"] .settings-schedule-requests__body{
  margin-top:10px;
}
body[data-page="home"] .settings-client-intelligence__toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 0 10px;
}
body[data-page="home"] .settings-client-intelligence__toolbar .settings-client-intelligence__status{
  margin-top:0;
}
body[data-page="home"] .settings-schedule-requests__body[hidden]{
  display:none !important;
}
@media (max-width:760px){
  body[data-page="home"] .settings-client-intelligence__toggle{
    align-items:flex-start;
    flex-wrap:wrap;
  }
  body[data-page="home"] .settings-client-intelligence__toggle em{
    flex-basis:100%;
    text-align:left;
  }
  body[data-page="home"] .settings-client-intelligence__toolbar{
    align-items:stretch;
    flex-direction:column;
  }
}


/* r10310 — lower Source Feed archive button replacement for retired Clear Filters action */
@media (max-width:760px){
  body[data-page="home"] .home-rss-archive-btn[hidden]{
    display:none !important;
  }
}

/* r10368 — mobile lower action buttons aligned with Search button styling */
@media (max-width:760px){
  body[data-page="home"] .footer-about-wrap{
    gap:10px;
    flex-wrap:wrap;
    
  }
  body[data-page="home"] .footer-invite-friend-btn[hidden],
  body[data-page="home"] .home-rss-archive-btn[hidden]{
    display:none !important;
  }
  body[data-page="home"] .footer-invite-friend-btn,
  body[data-page="home"] .footer-about-btn,
  body[data-page="home"] .home-rss-archive-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:38px;
    padding:.52rem .78rem;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.16) !important;
    background:rgba(255,255,255,.055) !important;
    color:rgba(232,240,248,.86) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 8px 18px rgba(0,0,0,.12);
    font-family:Inter,"Noto Sans JP",system-ui,sans-serif;
    font-size:.76rem;
    font-weight:500;
    letter-spacing:.01em;
    line-height:1.05;
    text-transform:none;
    white-space:nowrap;
  }
  body[data-page="home"] .footer-invite-friend-btn:hover,
  body[data-page="home"] .footer-invite-friend-btn:focus-visible,
  body[data-page="home"] .footer-about-btn:hover,
  body[data-page="home"] .footer-about-btn:focus-visible,
  body[data-page="home"] .home-rss-archive-btn:hover,
  body[data-page="home"] .home-rss-archive-btn:focus-visible{
    border-color:rgba(255,255,255,.22) !important;
    background:rgba(255,255,255,.075) !important;
    color:rgba(244,249,255,.94) !important;
    outline:none;
  }
}


/* r10370 — Study & Research desktop menu + shared panel
   Desktop now uses a true fixed subsection menu with one shared content well below
   Reading / Study Resources / CCR Coaching & Training. The mobile accordion markup
   remains separate and keeps the previous direct expansion behavior. */
body[data-page="home"] .book-shell-study-desktop{
  display:none;
}
body[data-page="home"] .book-shell-study-mobile{
  display:grid;
  gap:14px;
}
@media (min-width:901px){
  body[data-page="home"] .book-shell-library{
    display:grid;
    gap:14px;
  }
  body[data-page="home"] .book-shell-study-mobile{
    display:none;
  }
  body[data-page="home"] .book-shell-study-desktop{
    min-width:0;
  }
  body[data-page="home"] .book-shell-study-menu{
    position:sticky;
    top:0;
    z-index:2;
    display:grid;
    gap:10px;
    padding:0 0 4px;
    background:linear-gradient(180deg, rgba(9,17,29,.96), rgba(9,17,29,.80) 72%, rgba(9,17,29,0));
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
  }
  body[data-page="home"] .book-shell-study-menu__item{
    appearance:none;
    width:100%;
    min-height:48px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:13px 16px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    background:linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.026));
    color:rgba(232,214,164,.90);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
    font-family:Inter,"Noto Sans JP",system-ui,sans-serif;
    font-size:1.02rem;
    font-weight:700;
    letter-spacing:.012em;
    text-align:left;
    cursor:pointer;
    transition:background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
  }
  body[data-page="home"] .book-shell-study-menu__item:hover,
  body[data-page="home"] .book-shell-study-menu__item:focus-visible{
    border-color:rgba(232,214,164,.18);
    background:linear-gradient(180deg, rgba(232,214,164,.075), rgba(255,255,255,.034));
    color:rgba(244,229,188,.96);
    outline:none;
  }
  body[data-page="home"] .book-shell-study-menu__item.is-active{
    border-color:rgba(232,214,164,.24);
    background:linear-gradient(180deg, rgba(232,214,164,.105), rgba(255,255,255,.036));
    color:rgba(242,225,178,.96);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 10px 30px rgba(0,0,0,.14);
  }
  body[data-page="home"] .book-shell-study-menu__item em{
    margin-left:auto;
    padding:3px 8px;
    border:1px solid rgba(232,214,164,.14);
    border-radius:999px;
    color:rgba(218,226,234,.68);
    background:rgba(255,255,255,.035);
    font-size:.72rem;
    font-style:normal;
    font-weight:650;
  }
  body[data-page="home"] .book-shell-study-panel{
    border:1px solid rgba(255,255,255,.08);
    border-radius:20px;
    background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.026));
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04), 0 16px 42px rgba(0,0,0,.16);
    overflow:hidden;
  }
  body[data-page="home"] .book-shell-study-panel__content{
    padding:16px;
  }
}
@media (max-width:900px){
  body[data-page="home"] .book-shell-study-desktop{
    display:none !important;
  }
}

/* r10370 mobile-preservation shim: mobile accordion is now wrapped so the earlier
   direct-child owner rules also apply to the wrapped sections. */
@media (max-width:720px){
  body[data-page="home"] .book-shell-study-mobile{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
    align-items:stretch !important;
    justify-items:stretch !important;
    justify-content:flex-start !important;
  }
  body[data-page="home"] .book-shell-study-mobile > .book-shell-section:not([open]),
  body[data-page="home"] .book-shell-study-mobile > .book-shell-section[open]{
    justify-self:stretch !important;
    align-self:start !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin-left:0 !important;
    margin-right:0 !important;
    box-sizing:border-box !important;
  }
}


/* r10371 — Study & Research mobile tab bar + shared panel
   Mobile now mirrors the accepted desktop architecture with a compact sticky
   horizontal tab bar and one content panel below it. This replaces the old
   mobile accordion without changing the desktop r10370 shared-panel model. */
@media (max-width:900px){
  body[data-page="home"] .book-shell-study-mobile{
    display:grid;
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
  }
  body[data-page="home"] .book-shell-study-mobile-tabs{
    position:sticky;
    top:0;
    z-index:3;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    padding:0 0 8px;
    background:linear-gradient(180deg, rgba(9,17,29,.96), rgba(9,17,29,.82) 76%, rgba(9,17,29,0));
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
  }
  body[data-page="home"] .book-shell-study-mobile-tabs .book-shell-study-menu__item{
    appearance:none;
    width:100%;
    min-width:0;
    min-height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:9px 7px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:14px;
    background:linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.026));
    color:rgba(232,214,164,.88);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
    font-family:Inter,"Noto Sans JP",system-ui,sans-serif;
    font-size:.78rem;
    font-weight:750;
    letter-spacing:.005em;
    line-height:1.12;
    text-align:center;
    cursor:pointer;
    transition:background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
  }
  body[data-page="home"] .book-shell-study-mobile-tabs .book-shell-study-menu__item span{
    display:block;
    min-width:0;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:normal;
  }
  body[data-page="home"] .book-shell-study-mobile-tabs .book-shell-study-menu__item em{
    flex:0 0 auto;
    min-width:18px;
    padding:2px 5px;
    border:1px solid rgba(232,214,164,.13);
    border-radius:999px;
    color:rgba(218,226,234,.66);
    background:rgba(255,255,255,.035);
    font-size:.62rem;
    font-style:normal;
    font-weight:700;
    line-height:1.1;
  }
  body[data-page="home"] .book-shell-study-mobile-tabs .book-shell-study-menu__item.is-active{
    border-color:rgba(232,214,164,.25);
    background:linear-gradient(180deg, rgba(232,214,164,.115), rgba(255,255,255,.036));
    color:rgba(242,225,178,.96);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 8px 24px rgba(0,0,0,.14);
  }
  body[data-page="home"] .book-shell-study-mobile-panel{
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.026));
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04), 0 12px 32px rgba(0,0,0,.14);
    overflow:hidden;
  }
  body[data-page="home"] .book-shell-study-mobile-panel__content{
    padding:12px;
  }
}
@media (max-width:390px){
  body[data-page="home"] .book-shell-study-mobile-tabs{
    gap:6px;
  }
  body[data-page="home"] .book-shell-study-mobile-tabs .book-shell-study-menu__item{
    min-height:40px;
    padding:8px 5px;
    font-size:.72rem;
  }
  body[data-page="home"] .book-shell-study-mobile-tabs .book-shell-study-menu__item em{
    min-width:16px;
    padding:2px 4px;
    font-size:.58rem;
  }
}


/* r10373 — Study & Research mobile rollback + sticky whole header
   Supersedes r10372. Restores the r10371 centered full mobile tab labels, then
   keeps the full mobile Study & Research header sticky as one unit so the close X
   remains in the header zone and never covers the subsection tabs while scrolling. */
body[data-page="home"] .book-shell-mobile-nav{
  display:none;
}
@media (max-width:900px){
  body[data-page="home"] .book-shell-header{
    position:sticky !important;
    top:0 !important;
    z-index:7 !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:14px !important;
    padding:16px 16px 14px !important;
    background:
      radial-gradient(circle at 50% 0%, rgba(124,160,205,.08), transparent 42%),
      linear-gradient(180deg, rgba(27,39,53,.97), rgba(23,33,46,.93)) !important;
    border-bottom:1px solid rgba(255,255,255,.08) !important;
    box-shadow:0 14px 28px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.035) !important;
    backdrop-filter:blur(12px) saturate(1.04) !important;
    -webkit-backdrop-filter:blur(12px) saturate(1.04) !important;
  }
  body[data-page="home"] .book-shell-header__title{
    width:100% !important;
    min-width:0 !important;
    padding-inline:52px !important;
    box-sizing:border-box !important;
    text-align:center !important;
    justify-self:center !important;
  }
  body[data-page="home"] .book-shell-header .settings-shell-kicker,
  body[data-page="home"] .book-shell-header h2,
  body[data-page="home"] .book-shell-header .settings-shell-subtitle{
    text-align:center !important;
  }
  body[data-page="home"] .book-shell-mobile-nav{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }
  body[data-page="home"] .book-shell-mobile-nav[hidden]{
    display:none !important;
  }
  body[data-page="home"] .book-shell-mobile-nav .book-shell-study-mobile-tabs{
    position:relative !important;
    top:auto !important;
    z-index:1 !important;
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:8px !important;
    padding:0 !important;
    background:transparent !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
  }
  body[data-page="home"] .book-shell-study-mobile{
    gap:12px !important;
  }
  body[data-page="home"] .book-shell-study-mobile > .book-shell-study-mobile-tabs{
    display:none !important;
  }
  body[data-page="home"] .book-shell-close{
    z-index:9 !important;
  }
}
@media (max-width:390px){
  body[data-page="home"] .book-shell-header{
    gap:12px !important;
    padding:15px 14px 13px !important;
  }
  body[data-page="home"] .book-shell-header__title{
    padding-inline:46px !important;
  }
  body[data-page="home"] .book-shell-mobile-nav .book-shell-study-mobile-tabs{
    gap:6px !important;
  }
}

/* r10424B Public Access compact control board */
.public-access-console{gap:12px;}
.public-access-toolbar{align-items:center;}
.public-access-toolbar--compact{display:grid;grid-template-columns:max-content minmax(520px,1fr) max-content;gap:12px;align-items:center;position:sticky;top:0;z-index:5;padding:10px 12px;border:1px solid rgba(255,255,255,.09);border-radius:16px;background:linear-gradient(180deg,rgba(15,28,45,.96),rgba(11,22,38,.91));box-shadow:0 14px 34px rgba(0,0,0,.20);backdrop-filter:blur(12px);}
.public-access-master-toggle{white-space:nowrap;}
.public-access-save-actions{justify-content:flex-end;}
.public-access-admin-card{margin-top:10px;}
.public-access-card-head--compact{align-items:center;gap:12px;}
.public-access-card-head--compact .admin-section-subtitle{margin-bottom:3px;}
.public-access-card-head--compact .admin-section-helper{margin:0;font-size:.76rem;line-height:1.35;}
.public-access-summary-card{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;min-width:0;}
.public-access-summary-card__main{min-width:220px;display:flex;flex-direction:column;gap:2px;}
.public-access-kicker{text-transform:uppercase;letter-spacing:.10em;font-size:.65rem;color:rgba(255,218,138,.76);font-weight:750;}
.public-access-summary-card__main strong{font-size:.96rem;color:rgba(255,250,232,.98);}
.public-access-summary-card__main p{margin:0;color:rgba(218,231,245,.76);font-size:.76rem;line-height:1.32;}
.public-access-summary-card__chips{display:flex;flex-wrap:wrap;gap:6px;align-content:center;justify-content:flex-end;min-width:0;}
.public-access-taxonomy-card{padding:13px 14px;border-color:rgba(233,202,136,.16);background:linear-gradient(135deg,rgba(13,27,45,.50),rgba(7,16,31,.32));}
.public-access-taxonomy-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:11px;}
.public-access-taxonomy-head .admin-section-subtitle{margin:2px 0 3px;}
.public-access-taxonomy-head .admin-section-helper{max-width:780px;margin:0;font-size:.78rem;line-height:1.42;color:rgba(218,231,245,.76);}
.public-access-taxonomy-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;}
.public-access-taxonomy-chip{min-width:0;padding:9px 10px;border:1px solid rgba(255,255,255,.10);border-radius:13px;background:rgba(6,15,29,.30);}
.public-access-taxonomy-chip strong{display:block;margin-bottom:3px;color:rgba(255,232,184,.94);font-size:.78rem;letter-spacing:.035em;text-transform:uppercase;}
.public-access-taxonomy-chip span{display:block;color:rgba(214,226,241,.70);font-size:.68rem;line-height:1.34;}
.public-access-status-legend{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;align-items:center;max-width:360px;}
.public-access-chip{display:inline-flex;gap:5px;align-items:center;padding:5px 8px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(7,16,31,.44);color:rgba(225,235,247,.82);font-size:.68rem;white-space:nowrap;line-height:1;}
.public-access-status-pill{display:inline-flex;align-items:center;justify-content:center;min-height:20px;padding:3px 7px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.045);color:rgba(225,235,247,.78);font-size:.58rem;font-weight:780;letter-spacing:.06em;text-transform:uppercase;line-height:1;white-space:nowrap;}
.public-access-status-pill.is-active{border-color:rgba(154,211,170,.30);background:rgba(93,163,119,.12);color:rgba(205,242,215,.88);}
.public-access-status-pill.is-partial{border-color:rgba(233,202,136,.34);background:rgba(233,202,136,.11);color:rgba(255,232,184,.92);}
.public-access-status-pill.is-prepared{border-color:rgba(159,184,213,.25);background:rgba(105,133,168,.11);color:rgba(214,226,241,.80);}
.public-access-chip strong{color:rgba(255,218,138,.92);font-size:.62rem;text-transform:uppercase;letter-spacing:.06em;}
.public-access-chip b{font-weight:650;color:rgba(238,246,255,.93);}
.public-access-mode-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end;}
.public-access-sync-select{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important;}
.public-access-mode-strip{display:grid;grid-template-columns:repeat(4,minmax(190px,1fr));gap:8px;margin-top:6px;}
.public-access-mode-card{display:flex;gap:9px;align-items:center;padding:9px 11px;border:1px solid rgba(255,255,255,.11);border-radius:13px;background:rgba(8,18,34,.31);cursor:pointer;transition:border-color .18s ease,background .18s ease,transform .18s ease;min-height:56px;}
.public-access-mode-card:hover,.public-access-mode-card.is-active{border-color:rgba(255,218,138,.46);background:rgba(28,48,76,.52);transform:translateY(-1px);}
.public-access-mode-card input{margin:0;accent-color:#e9ca88;}
.public-access-mode-card span{display:flex;flex-direction:column;gap:2px;line-height:1.25;min-width:0;}
.public-access-mode-card strong{color:rgba(255,246,214,.96);font-size:.86rem;}
.public-access-mode-card em{font-style:normal;color:rgba(214,226,241,.72);font-size:.70rem;white-space:normal;}
.public-access-matrix{display:grid;gap:7px;margin-top:8px;}
.public-access-matrix-head{display:grid;grid-template-columns:minmax(170px,1.2fr) repeat(5,minmax(70px,.42fr)) minmax(240px,1.35fr);gap:6px;align-items:center;padding:0 9px 2px;color:rgba(255,218,138,.74);font-size:.64rem;text-transform:uppercase;letter-spacing:.08em;font-weight:750;}
.public-access-matrix-head > span:nth-child(n+2):nth-child(-n+6){text-align:center;}
.public-access-matrix-head > span:last-child{text-align:left;}

.public-access-matrix-group{display:grid;gap:5px;}
.public-access-matrix-group-title{
  display:flex;
  align-items:center;
  justify-content:center;
  margin:7px 0 1px;
  padding:7px 12px;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(233,202,136,.035),rgba(233,202,136,.105),rgba(233,202,136,.035));
  border:1px solid rgba(233,202,136,.16);
  color:rgba(255,232,184,.92);
  font-size:.69rem;
  font-weight:790;
  text-align:center;
  text-transform:uppercase;
  letter-spacing:.105em;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}
.public-access-matrix-row{display:grid;grid-template-columns:minmax(170px,1.2fr) repeat(5,minmax(70px,.42fr)) minmax(240px,1.35fr);gap:6px;align-items:center;padding:7px 9px;border:1px solid rgba(255,255,255,.085);border-radius:12px;background:rgba(8,18,34,.24);}
.public-access-matrix-row{transition:border-color .16s ease,background .16s ease,box-shadow .16s ease;}
.public-access-matrix-row:hover{
  border-color:rgba(233,202,136,.16);
  background:linear-gradient(90deg,rgba(8,18,34,.30),rgba(233,202,136,.035),rgba(8,18,34,.24));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.018);
}
.public-access-matrix-row:hover .public-access-matrix-area strong{color:rgba(255,250,232,.98);}
.public-access-matrix-row:hover .public-access-radio-cell{border-color:rgba(255,255,255,.105);}

.public-access-matrix-row.is-private-tool{background:linear-gradient(90deg,rgba(8,18,34,.30),rgba(233,202,136,.035));}
.public-access-matrix-area{display:flex;flex-direction:column;gap:2px;min-width:0;}
.public-access-matrix-area strong{color:rgba(255,246,214,.95);font-size:.80rem;line-height:1.15;}
.public-access-matrix-area em{font-style:normal;color:rgba(214,226,241,.62);font-size:.66rem;line-height:1.18;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.public-access-radio-cell{display:flex;justify-content:center;align-items:center;min-height:28px;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:rgba(4,13,25,.28);cursor:pointer;}
.public-access-radio-cell:hover{border-color:rgba(255,218,138,.30);background:rgba(28,48,76,.34);}
.public-access-radio-cell input{accent-color:#e9ca88;margin:0;}
.public-access-radio-cell span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}
.public-access-radio-cell:has(input:checked){border-color:rgba(255,218,138,.55);background:rgba(233,202,136,.12);box-shadow:inset 0 0 0 1px rgba(255,218,138,.18);}
.public-access-result-cell{display:flex;align-items:center;gap:6px 8px;min-width:0;flex-wrap:wrap;}
.public-access-result-cell strong{flex:0 0 auto;min-width:42px;text-align:center;padding:3px 7px;border-radius:999px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.045);color:rgba(255,232,184,.92);font-size:.65rem;text-transform:uppercase;letter-spacing:.05em;}
.public-access-result-cell span:not(.public-access-status-pill){flex:1 1 150px;min-width:0;color:rgba(214,226,241,.70);font-size:.69rem;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.public-access-lower-grid{display:grid;grid-template-columns:minmax(420px,.8fr) minmax(520px,1.2fr);gap:10px;align-items:start;}
.public-access-limits-grid,.public-access-guest-basic-grid{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:8px;}
.public-access-limits-grid label,.public-access-guest-basic-grid label{display:grid;gap:4px;align-content:start;}
.public-access-limits-grid label span,.public-access-guest-basic-grid label span{font-size:.70rem;color:rgba(214,226,241,.74);}
.public-access-limits-grid input,.public-access-guest-basic-grid input,.public-access-guest-basic-grid select{min-height:36px;padding:7px 9px;}
.public-access-feature-grid{grid-template-columns:repeat(4,minmax(150px,1fr));gap:7px;}
.public-access-feature-toggle{align-items:flex-start;gap:8px;padding:8px 10px;border:1px solid rgba(255,255,255,.10);border-radius:12px;background:rgba(8,18,34,.24);}
.public-access-feature-toggle span{display:flex;flex-direction:column;gap:2px;line-height:1.2;}
.public-access-feature-toggle strong{font-size:.75rem;color:rgba(255,246,214,.94);font-weight:650;}
.public-access-feature-toggle em{font-style:normal;font-size:.65rem;color:rgba(214,226,241,.62);}
.public-access-feature-toggle input{margin-top:2px;}
.public-access-advanced{margin-top:10px;border:1px solid rgba(255,255,255,.1);border-radius:15px;background:rgba(7,16,31,.22);overflow:hidden;}
.public-access-advanced>summary{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 13px;cursor:pointer;color:rgba(255,246,214,.92);font-weight:650;}
.public-access-advanced>summary .helper{font-weight:400;color:rgba(214,226,241,.62);font-size:.72rem;}
.public-access-guest-grid{margin-top:9px;}
.public-access-future-note{padding:13px 15px;color:rgba(218,231,245,.82);font-size:.82rem;line-height:1.48;}
.public-access-future-note p{margin:0;}
@media(max-width:1200px){
  .public-access-toolbar--compact{grid-template-columns:1fr;}
  .public-access-summary-card{align-items:flex-start;}
  .public-access-summary-card__chips{justify-content:flex-start;}
  .public-access-taxonomy-head{flex-direction:column;}
  .public-access-status-legend{justify-content:flex-start;max-width:none;}
  .public-access-taxonomy-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .public-access-mode-strip{grid-template-columns:repeat(2,minmax(180px,1fr));}
  .public-access-lower-grid{grid-template-columns:1fr;}
}
@media(max-width:900px){
  .public-access-mode-strip{grid-template-columns:1fr;}
  .public-access-matrix-head{display:none;}
  .public-access-matrix-row{grid-template-columns:minmax(0,1fr) repeat(5,36px);gap:5px;}
  .public-access-result-cell{grid-column:1/-1;}
  .public-access-matrix-area em{white-space:normal;}
  .public-access-limits-grid,.public-access-guest-basic-grid,.public-access-feature-grid,.public-access-taxonomy-grid{grid-template-columns:1fr;}
}




/* r10425E — definitive desktop header geometry: keep title one-line and separate Account Access from main controls */
@media (min-width:1200px){
  body[data-page="home"] .site-header .container.header-inner{
    width:min(1760px, calc(100% - 2 * var(--pad))) !important;
  }
  body[data-page="home"] .header-inner{
    grid-template-columns:minmax(0, 1fr) auto !important;
    column-gap:clamp(34px,4vw,72px) !important;
    align-items:start !important;
  }
  body[data-page="home"] .masthead{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
  }
  body[data-page="home"] .masthead h1[data-site-title]{
    width:max-content !important;
    max-width:min(100%, 1180px) !important;
    min-width:0 !important;
    overflow:visible !important;
    white-space:nowrap !important;
    font-size:clamp(30px,2.15vw,42px) !important;
    line-height:1.12 !important;
    padding:19px 24px !important;
  }
  body[data-page="home"] .masthead h1[data-site-title] .site-title-text{
    display:inline-flex !important;
    flex-wrap:nowrap !important;
    white-space:nowrap !important;
    max-width:none !important;
  }
  body[data-page="home"] .masthead h1[data-site-title] .site-title-rest,
  body[data-page="home"] .masthead h1[data-site-title] .site-title-ccr{
    white-space:nowrap !important;
  }
  body[data-page="home"] .header-actions{
    align-content:flex-start !important;
    align-items:flex-start !important;
    row-gap:0 !important;
    column-gap:10px !important;
    padding-top:2px !important;
  }
  body[data-page="home"] .home-session-badge-row{
    flex:0 0 100% !important;
    width:100% !important;
    justify-content:flex-end !important;
    
    transform:none !important;
  }
  body[data-page="home"] .home-session-badge.is-public-login{
    transform:none !important;
  }
}

@media (min-width:981px) and (max-width:1199px){
  body[data-page="home"] .site-header .container.header-inner{
    width:min(100%, calc(100% - 2 * var(--pad))) !important;
  }
  body[data-page="home"] .header-inner{
    grid-template-columns:minmax(0, 1fr) auto !important;
    column-gap:clamp(22px,3vw,42px) !important;
    align-items:start !important;
  }
  body[data-page="home"] .masthead h1[data-site-title]{
    width:max-content !important;
    max-width:min(100%, 820px) !important;
    min-width:0 !important;
    overflow:visible !important;
    white-space:nowrap !important;
    font-size:clamp(24px,2.2vw,30px) !important;
    line-height:1.12 !important;
    padding:17px 20px !important;
  }
  body[data-page="home"] .masthead h1[data-site-title] .site-title-text{
    display:inline-flex !important;
    flex-wrap:nowrap !important;
    white-space:nowrap !important;
  }
  body[data-page="home"] .masthead h1[data-site-title] .site-title-rest,
  body[data-page="home"] .masthead h1[data-site-title] .site-title-ccr{
    white-space:nowrap !important;
  }
  body[data-page="home"] .header-actions{
    align-content:flex-start !important;
    row-gap:0 !important;
  }
  body[data-page="home"] .home-session-badge-row{
    
    transform:none !important;
  }
  body[data-page="home"] .home-session-badge.is-public-login{
    transform:none !important;
  }
}

@media (min-width:761px) and (max-width:980px){
  body[data-page="home"] .masthead h1[data-site-title]{
    min-width:0 !important;
    max-width:100% !important;
    font-size:clamp(22px,2.45vw,27px) !important;
    line-height:1.14 !important;
    padding-block:17px 16px !important;
  }
  body[data-page="home"] .masthead h1[data-site-title] .site-title-text{
    flex-wrap:wrap !important;
    white-space:normal !important;
  }
  body[data-page="home"] .home-session-badge-row{
    margin-top:14px !important;
    transform:none !important;
  }
}

@media (max-width:760px){
  body[data-page="home"] .masthead h1[data-site-title]{
    box-sizing:border-box !important;
    line-height:1.14 !important;
    padding-block:17px 16px !important;
  }
}

/* r10427 — graph card balance polish: centered identity/metrics, footer action row */
body[data-page="home"] .selected-ticker-chart-grid > .ticker-chart-card{
  display:flex !important;
  flex-direction:column !important;
}
body[data-page="home"] .selected-ticker-chart-grid > .ticker-chart-card .ticker-chart-card__button{
  flex:1 1 auto !important;
  padding:16px 16px 10px !important;
}
body[data-page="home"] .ticker-chart-card__kicker{
  display:none !important;
}
body[data-page="home"] .ticker-chart-card__symbol{
  
  align-items:center;
  justify-content:center;
  width:100%;
  margin:0 0 .18rem;
  color:rgba(232,214,164,.74);
  font-size:.86rem;
  font-weight:800;
  letter-spacing:.12em;
  line-height:1.15;
  text-transform:uppercase;
}
body[data-page="home"] .ticker-chart-card h3{
  text-align:center !important;
  
}
body[data-page="home"] .ticker-chart-card__value-row{
  justify-content:center !important;
  gap:.82rem !important;
  margin:.34rem 0 .48rem !important;
}
body[data-page="home"] .ticker-chart-card__value-row span,
body[data-page="home"] .ticker-chart-card__value-row em{
  white-space:nowrap;
}
body[data-page="home"] .ticker-chart-card__preview{
  margin:.10rem 0 .56rem !important;
}

body[data-page="home"] .ticker-chart-card__footer{
  position:relative;
  z-index:4;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:0 16px 16px !important;
}
body[data-page="home"] .ticker-chart-card__open-btn{
  display:inline-flex;
  align-items:center;
  flex:1 1 auto;
  min-width:0;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  text-align:left;
  cursor:pointer;
}
body[data-page="home"] .ticker-chart-card__open-btn:hover .ticker-chart-card__link,
body[data-page="home"] .ticker-chart-card__open-btn:focus-visible .ticker-chart-card__link{
  color:rgba(243,228,234,.86) !important;
}
body[data-page="home"] .ticker-chart-card__open-btn:focus-visible,
body[data-page="home"] .ticker-chart-card__remove:focus-visible{
  outline:none;
}
body[data-page="home"] .ticker-chart-card__remove{
  position:static !important;
  top:auto !important;
  right:auto !important;
  bottom:auto !important;
  left:auto !important;
  z-index:auto !important;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:28px;
  height:28px;
  min-width:28px;
  min-height:28px;
  padding:0 !important;
  border:1px solid rgba(226,232,240,.10) !important;
  border-radius:999px !important;
  background:rgba(11,18,26,.22) !important;
  color:rgba(215,224,234,.56) !important;
  font-size:1rem !important;
  line-height:1 !important;
  font-weight:700 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
  box-shadow:none !important;
  backdrop-filter:blur(10px) saturate(1.02) !important;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;
}
body[data-page="home"] .ticker-chart-card__remove:hover,
body[data-page="home"] .ticker-chart-card__remove:focus-visible{
  background:rgba(50,24,28,.34) !important;
  border-color:rgba(244,157,164,.20) !important;
  color:rgba(255,218,220,.82) !important;
  transform:translateY(-1px);
}
@media (max-width:760px){
  body[data-page="home"] .ticker-chart-card__footer{
    padding:0 14px 14px !important;
  }
}

/* r10427A — graph card cleanup follow-up: remove extra symbol line, soften metadata */
body[data-page="home"] .ticker-chart-card__symbol{
  display:none !important;
}
body[data-page="home"] .ticker-chart-card h3{
  margin:0 0 .18rem !important;
}
body[data-page="home"] .ticker-chart-card p{
  margin:0 !important;
  color:rgba(226,236,247,.52) !important;
  font-size:.74rem !important;
  line-height:1.34 !important;
}

/* r10427D — S&R root-level sticky header/nav fix + graph/RSS polish
   Moves the desktop Study & Research subsection menu into the sticky overlay header
   so the CCR kicker, white overlay title, and subsection controls stay together while scrolling. */

body[data-page="home"] .book-shell-desktop-nav{
  display:none;
}
@media (min-width:901px){
  body[data-page="home"] .book-shell-header{
    position:sticky !important;
    top:0 !important;
    z-index:9 !important;
    display:grid !important;
    gap:14px !important;
    background:
      radial-gradient(circle at 48% 0%, rgba(124,160,205,.075), transparent 42%),
      linear-gradient(180deg, rgba(27,39,53,.985), rgba(23,33,46,.955)) !important;
    border-bottom:1px solid rgba(255,255,255,.085) !important;
    box-shadow:0 16px 36px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.035) !important;
    backdrop-filter:blur(14px) saturate(1.05) !important;
    -webkit-backdrop-filter:blur(14px) saturate(1.05) !important;
  }
  body[data-page="home"] .book-shell-header__title{
    min-width:0 !important;
    width:100% !important;
  }
  body[data-page="home"] .book-shell-header .settings-shell-kicker{
    display:block !important;
    margin:0 0 7px !important;
    color:rgba(207,222,239,.66) !important;
    font-size:.72rem !important;
    font-weight:800 !important;
    letter-spacing:.22em !important;
    line-height:1.1 !important;
    text-transform:uppercase !important;
  }
  body[data-page="home"] .book-shell-header h2{
    margin:0 !important;
    color:rgba(246,249,255,.96) !important;
    font-size:1.58rem !important;
    line-height:1.16 !important;
    font-weight:800 !important;
    letter-spacing:-.025em !important;
  }
  body[data-page="home"] .book-shell-desktop-nav{
    display:block !important;
    
    min-width:0 !important;
    box-sizing:border-box !important;
  }
  body[data-page="home"] .book-shell-desktop-nav[hidden]{
    display:none !important;
  }
  body[data-page="home"] .book-shell-mobile-nav{
    display:none !important;
  }
  body[data-page="home"] .book-shell-desktop-nav .book-shell-study-menu{
    position:relative !important;
    top:auto !important;
    z-index:1 !important;
    
    
    align-items:center !important;
    padding:0 !important;
    
    background:transparent !important;
    box-shadow:none !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
  }
  body[data-page="home"] .book-shell-study-menu__brand{
    align-items:center !important;
    justify-content:center !important;
    min-height:42px !important;
    padding:0 14px !important;
    border:1px solid rgba(255,255,255,.07) !important;
    border-radius:999px !important;
    color:rgba(232,214,164,.78) !important;
    background:rgba(255,255,255,.025) !important;
    font-size:.74rem !important;
    font-weight:800 !important;
    letter-spacing:.22em !important;
    line-height:1 !important;
    text-transform:uppercase !important;
  }
  body[data-page="home"] .book-shell-desktop-nav .book-shell-study-menu__item span{
    min-width:0 !important;
  }
  body[data-page="home"] .book-shell-study-desktop{
    display:grid !important;
    gap:14px !important;
  }
  body[data-page="home"] .book-shell-study-desktop > .book-shell-study-menu{
    display:none !important;
  }
  body[data-page="home"] .book-shell-close{
    z-index:11 !important;
  }
}
body[data-page="home"] .selected-source-feed-section .source-feed-remove-btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:28px !important;
  height:28px !important;
  min-width:28px !important;
  min-height:28px !important;
  padding:0 !important;
  font-size:1rem !important;
  line-height:1 !important;
  font-weight:700 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
}


/* r10427E — root-level graph/S&R/search-heading polish
   Removes the extra desktop S&R CCR nav pill, sets chart titles to SO-gold, and centers Search RSS heading by default. */
body[data-page="home"] .selected-ticker-chart-grid > .ticker-chart-card .ticker-chart-card__button{
  align-items:stretch !important;
  text-align:center !important;
}
body[data-page="home"] .ticker-chart-card h3,
body[data-page="home"] .ticker-chart-card .intel-card__headline{
  display:block !important;
  align-self:stretch !important;
  width:100% !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
  color:rgba(232,214,164,.86) !important;
  text-align:center !important;
  justify-self:center !important;
  transform:none !important;
}
body[data-page="home"] .current-feed-title-row,
body[data-page="home"] .current-feed-title-row > div,
body[data-page="home"] .current-feed-title-row h2{
  text-align:center !important;
}
body[data-page="home"] .current-feed-title-row > div{
  justify-items:center !important;
  transform:none !important;
}
body[data-page="home"] .book-shell-study-menu__brand{
  display:none !important;
}
@media (min-width:901px){
}

/* r10427F — graph card title centering correction
   Keeps SO-gold chart titles centered across the full card content column. */
body[data-page="home"] .selected-ticker-chart-grid > .ticker-chart-card .ticker-chart-card__button > h3.intel-card__headline{
  display:block !important;
  width:100% !important;
  max-width:none !important;
  text-align:center !important;
  margin-inline:0 !important;
  transform:none !important;
}

/* r10427G — Study & Research desktop subsections restored to stacked menu
   Keeps the r10427D sticky root header, but returns Reading / Study Resources /
   CCR Coaching & Training to a vertical desktop control stack instead of a single row. */
@media (min-width:901px){
  body[data-page="home"] .book-shell-header{
    grid-template-columns:minmax(220px,340px) minmax(260px,390px) minmax(0,1fr) !important;
    grid-template-areas:"book-title book-nav book-spacer" !important;
    align-items:start !important;
    column-gap:24px !important;
    row-gap:0 !important;
    padding:22px 86px 18px 38px !important;
  }
  body[data-page="home"] .book-shell-header__title{
    grid-area:book-title !important;
    align-self:start !important;
  }
  body[data-page="home"] .book-shell-desktop-nav{
    grid-area:book-nav !important;
    justify-self:stretch !important;
    align-self:start !important;
    width:100% !important;
    max-width:390px !important;
  }
  body[data-page="home"] .book-shell-desktop-nav .book-shell-study-menu{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:8px !important;
    width:100% !important;
    max-width:390px !important;
    margin:0 !important;
  }
  body[data-page="home"] .book-shell-desktop-nav .book-shell-study-menu__item{
    width:100% !important;
    min-height:42px !important;
    justify-content:space-between !important;
    gap:12px !important;
    padding:10px 14px !important;
    text-align:left !important;
    white-space:normal !important;
  }
  body[data-page="home"] .book-shell-desktop-nav .book-shell-study-menu__item span{
    overflow:visible !important;
    text-overflow:clip !important;
    white-space:normal !important;
  }
}
@media (min-width:901px) and (max-width:1120px){
  body[data-page="home"] .book-shell-header{
    grid-template-columns:1fr !important;
    grid-template-areas:"book-title" "book-nav" !important;
    row-gap:14px !important;
  }
  body[data-page="home"] .book-shell-desktop-nav{
    max-width:420px !important;
  }
}

/* r10428 — public module teaser shells for anonymous users */
.public-access-teaser-layer[hidden]{
  display:none !important;
}
.public-access-teaser-layer{
  position:fixed;
  inset:0;
  z-index:2147482600;
  display:grid;
  place-items:center;
  padding:clamp(18px,4vw,48px);
}
.public-access-teaser-backdrop{
  position:absolute;
  inset:0;
  background:rgba(3,10,20,.58);
  backdrop-filter:blur(16px) saturate(1.04);
}
.public-access-teaser-card{
  position:relative;
  z-index:1;
  width:min(760px,calc(100vw - 36px));
  max-height:min(86vh,760px);
  overflow:auto;
  border:1px solid rgba(255,255,255,.12);
  border-radius:28px;
  background:linear-gradient(180deg,rgba(18,34,53,.94),rgba(9,19,33,.90));
  box-shadow:0 34px 90px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.08);
  color:rgba(235,243,250,.92);
}
.public-access-teaser-card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:radial-gradient(circle at 18% 0%,rgba(232,214,164,.12),transparent 36%),radial-gradient(circle at 100% 10%,rgba(120,185,235,.12),transparent 34%);
}
.public-access-teaser-close{
  position:absolute;
  top:18px;
  right:18px;
  z-index:2;
  width:42px;
  height:42px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  background:rgba(3,10,20,.42);
  color:rgba(235,243,250,.86);
  font-size:1.25rem;
  line-height:1;
  cursor:pointer;
}
.public-access-teaser-body{
  position:relative;
  z-index:1;
  padding:34px clamp(26px,4vw,44px) 36px;
}
.public-access-teaser-kicker{
  margin:0 0 10px;
  color:rgba(232,214,164,.72);
  font-size:.76rem;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.public-access-teaser-card h2{
  margin:0 56px 12px 0;
  color:rgba(246,249,255,.96);
  font-size:clamp(1.7rem,3vw,2.35rem);
  line-height:1.05;
  letter-spacing:-.035em;
}
.public-access-teaser-summary{
  max-width:58ch;
  margin:0 0 22px;
  color:rgba(222,233,244,.72);
  font-size:1.02rem;
  line-height:1.55;
}
.public-access-teaser-lock{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 12px;
  margin:0 0 20px;
  padding:13px 15px;
  border:1px solid rgba(232,214,164,.16);
  border-radius:18px;
  background:rgba(232,214,164,.055);
}
.public-access-teaser-lock strong{
  color:rgba(232,214,164,.88);
  font-size:.82rem;
  letter-spacing:.10em;
  text-transform:uppercase;
}
.public-access-teaser-lock span{
  color:rgba(232,240,248,.70);
  font-size:.9rem;
}
.public-access-teaser-list{
  display:grid;
  gap:8px;
  margin:0 0 24px;
  padding:0;
  list-style:none;
}
.public-access-teaser-list li{
  position:relative;
  padding-left:18px;
  color:rgba(222,233,244,.74);
  font-size:.95rem;
  line-height:1.42;
}
.public-access-teaser-list li::before{
  content:"";
  position:absolute;
  left:0;
  top:.62em;
  width:6px;
  height:6px;
  border-radius:999px;
  background:rgba(232,214,164,.62);
}
.public-access-teaser-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.public-access-teaser-primary,
.public-access-teaser-secondary{
  border:1px solid rgba(255,255,255,.13);
  border-radius:999px;
  padding:10px 17px;
  font-size:.88rem;
  font-weight:800;
  letter-spacing:.02em;
  cursor:pointer;
}
.public-access-teaser-primary{
  color:rgba(10,18,28,.96);
  background:linear-gradient(180deg,rgba(232,214,164,.96),rgba(198,174,112,.90));
  border-color:rgba(232,214,164,.38);
}
.public-access-teaser-secondary{
  color:rgba(226,236,247,.78);
  background:rgba(255,255,255,.045);
}
.icon-btn.is-public-disabled{
  opacity:.48;
  cursor:not-allowed;
  filter:saturate(.72);
}
@media (max-width:760px){
  .public-access-teaser-layer{
    padding:14px;
    align-items:end;
  }
  .public-access-teaser-card{
    width:100%;
    border-radius:24px;
  }
  .public-access-teaser-body{
    padding:30px 22px 26px;
  }
  .public-access-teaser-card h2{
    margin-right:48px;
  }
}

/* r10429 — SO-style voluntary Account Access modal with safe return-to-browse path */
body.ccr-entry-login-voluntary .ccr-entry-gate{
  background:linear-gradient(180deg, rgba(3,8,15,.20), rgba(3,8,15,.34)) !important;
  backdrop-filter:blur(7px) saturate(1.02) !important;
}
body.ccr-entry-login-voluntary .ccr-entry-gate::before{
  background:
    radial-gradient(980px 680px at 50% 28%, rgba(232,214,164,.070), transparent 58%),
    radial-gradient(820px 580px at 52% 76%, rgba(93,130,166,.060), transparent 60%),
    linear-gradient(180deg, rgba(4,8,14,.22), rgba(4,8,14,.44)) !important;
}
body.ccr-entry-login-voluntary .ccr-entry-keypad-panel,
body.ccr-entry-login-required .ccr-entry-keypad-panel{
  background:
    radial-gradient(circle at 18% 0%, rgba(232,214,164,.070), transparent 35%),
    linear-gradient(180deg, rgba(14,24,36,.78), rgba(8,15,25,.82)) !important;
  border-color:rgba(232,214,164,.145) !important;
  box-shadow:0 26px 74px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.040), 0 0 0 1px rgba(232,214,164,.035) !important;
  backdrop-filter:blur(18px) saturate(1.06) !important;
}
.ccr-entry-login-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  margin:0 0 .72rem;
}
.ccr-entry-login-titleblock{
  display:grid;
  gap:.18rem;
  min-width:0;
}
.ccr-entry-login-kicker{
  color:rgba(201,213,228,.58);
  font-size:.66rem;
  font-weight:800;
  letter-spacing:.16em;
  line-height:1;
  text-transform:uppercase;
}
.ccr-entry-login-title{
  color:rgba(232,214,164,.92);
  font-family:"IBM Plex Serif", Georgia, serif;
  font-size:clamp(1.16rem, 2.7vw, 1.42rem);
  font-weight:600;
  letter-spacing:.01em;
  line-height:1.15;
}
.ccr-entry-login-context{
  margin:-.25rem 0 1rem;
  color:rgba(220,230,241,.62);
  font-size:.82rem;
  line-height:1.45;
}
.ccr-entry-login-close{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  min-width:32px;
  border-radius:999px;
  border:1px solid rgba(232,214,164,.15);
  background:rgba(255,255,255,.035);
  color:rgba(232,214,164,.78);
  font-size:1.12rem;
  line-height:1;
  cursor:pointer;
  box-shadow:none;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;
}
.ccr-entry-login-close:hover,
.ccr-entry-login-close:focus-visible{
  outline:none;
  background:rgba(232,214,164,.09);
  border-color:rgba(232,214,164,.28);
  color:rgba(255,242,205,.96);
  transform:translateY(-1px);
}
body.ccr-entry-login-required .ccr-entry-login-close,
body.ccr-entry-login-required .ccr-entry-login-return{
  display:none !important;
}
body.ccr-entry-login-voluntary .ccr-entry-login-return{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  margin:.86rem 0 0;
  min-height:42px;
  border-radius:999px;
  border:1px solid rgba(232,214,164,.15);
  background:rgba(255,255,255,.025);
  color:rgba(232,214,164,.84);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.055em;
  text-transform:uppercase;
  cursor:pointer;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;
}
body.ccr-entry-login-voluntary .ccr-entry-login-return:hover,
body.ccr-entry-login-voluntary .ccr-entry-login-return:focus-visible{
  outline:none;
  background:rgba(232,214,164,.08);
  border-color:rgba(232,214,164,.28);
  color:rgba(255,242,205,.98);
  transform:translateY(-1px);
}
body.ccr-entry-login-voluntary .ccr-entry-login-id-label,
body.ccr-entry-login-required .ccr-entry-login-id-label{
  color:rgba(232,214,164,.62) !important;
}
body.ccr-entry-login-voluntary .ccr-entry-login-id-input:focus,
body.ccr-entry-login-required .ccr-entry-login-id-input:focus{
  border-color:rgba(232,214,164,.34) !important;
  box-shadow:0 0 0 3px rgba(232,214,164,.10), inset 0 1px 0 rgba(255,255,255,.035), 0 10px 26px rgba(0,0,0,.20) !important;
}
body.ccr-entry-login-voluntary .ccr-entry-code-dot.is-filled,
body.ccr-entry-login-required .ccr-entry-code-dot.is-filled{
  background:rgba(232,214,164,.92) !important;
  box-shadow:0 0 14px rgba(232,214,164,.20) !important;
}
body.ccr-entry-login-voluntary .ccr-entry-key--unlock,
body.ccr-entry-login-required .ccr-entry-key--unlock{
  background:linear-gradient(180deg, rgba(232,214,164,.22), rgba(232,214,164,.10)) !important;
  color:rgba(255,246,219,.92) !important;
}
body.ccr-entry-login-voluntary .ccr-entry-key:hover,
body.ccr-entry-login-required .ccr-entry-key:hover{
  background:linear-gradient(180deg, rgba(232,214,164,.14), rgba(68,87,105,.11)) !important;
}
@media (max-width:760px){
  .ccr-entry-login-head{
    margin-bottom:.62rem;
  }
  .ccr-entry-login-context{
    font-size:.78rem;
  }
}


/* r10429A — Account Access desktop vertical balance, portfolio teaser activation companion */
@media (min-width:1200px){
  body[data-page="home"] .home-session-badge-row{
    margin-top:34px !important;
  }
}
@media (min-width:981px) and (max-width:1199px){
  body[data-page="home"] .home-session-badge-row{
    margin-top:30px !important;
  }
}

/* r10429E — authenticated Invite Friend affordance fallback
   If the CCR ribbon invite control is not present on desktop, the home search-row invite button becomes the authenticated fallback. */
@media (min-width:761px){
  body[data-page="home"].home-guest-invite-search-fallback-visible #homeFilterForm .home-search-invite-line.is-invite-visible{
    display:grid !important;
    grid-template-columns:minmax(136px, auto) minmax(260px, 1fr) !important;
    align-items:center !important;
    gap:10px !important;
    width:100% !important;
  }
  body[data-page="home"].home-guest-invite-search-fallback-visible #homeFilterForm .home-invite-friend-btn:not([hidden]){
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
  }
}


/* Patch B — SO-style public module blocker for RO / $OV / S&R */
.public-access-teaser-layer.is-public-module-blocker .public-access-teaser-backdrop{
  background:
    radial-gradient(860px 520px at 50% 18%, rgba(232,214,164,.045), transparent 58%),
    linear-gradient(180deg, rgba(5,10,18,.13), rgba(5,10,18,.18));
  backdrop-filter:blur(5px) saturate(1.02);
  -webkit-backdrop-filter:blur(5px) saturate(1.02);
}
.public-access-teaser-layer.is-public-module-blocker .public-access-teaser-card{
  width:min(680px,calc(100vw - 36px));
  border-color:rgba(214,229,248,.082);
  background:
    radial-gradient(circle at 18% 0%, rgba(232,214,164,.045), transparent 34%),
    linear-gradient(180deg, rgba(24,36,50,.42), rgba(8,14,23,.34));
  box-shadow:0 22px 58px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.030), 0 0 0 1px rgba(232,214,164,.020);
  backdrop-filter:blur(12px) saturate(1.04);
  -webkit-backdrop-filter:blur(12px) saturate(1.04);
}
.public-access-teaser-layer.is-public-module-blocker .public-access-teaser-card::before{
  background:
    linear-gradient(90deg, rgba(232,214,164,.34), rgba(232,214,164,.045) 38%, transparent 78%),
    radial-gradient(circle at 100% 10%, rgba(116,165,214,.070), transparent 36%);
  height:1px;
  bottom:auto;
}
.public-access-teaser-layer.is-public-module-blocker .public-access-teaser-kicker{
  color:rgba(232,214,164,.82);
  letter-spacing:.18em;
}
.public-access-teaser-module{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  margin:0 0 16px;
  padding:7px 11px;
  border:1px solid rgba(232,214,164,.16);
  border-radius:999px;
  background:rgba(232,214,164,.045);
  color:rgba(232,214,164,.86);
  font-size:.82rem;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.public-access-teaser-layer.is-public-module-blocker .public-access-teaser-summary{
  max-width:60ch;
  color:rgba(225,235,245,.78);
}
.public-access-teaser-layer.is-public-module-blocker .public-access-teaser-lock{
  background:linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.018));
  border-color:rgba(232,214,164,.16);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.030);
}
.public-access-teaser-layer.is-public-module-blocker .public-access-teaser-secondary:hover,
.public-access-teaser-layer.is-public-module-blocker .public-access-teaser-close:hover{
  border-color:rgba(232,214,164,.22);
  color:rgba(246,249,255,.92);
}
.icon-btn.is-public-disabled[aria-disabled="true"]{
  cursor:help;
}
@media (max-width:760px){
  .public-access-teaser-layer.is-public-module-blocker .public-access-teaser-card{
    width:100%;
    border-radius:24px 24px 20px 20px;
  }
  .public-access-teaser-module{
    white-space:normal;
  }
}

/* Patch D — Account Access visual alignment polish
   Visual-only: center the voluntary sign-in heading stack and align the title with the CCR brand typography. */
body.ccr-entry-login-voluntary .ccr-entry-login-head{
  position:relative;
  display:grid;
  grid-template-columns:1fr;
  justify-items:center;
  align-items:start;
  text-align:center;
  gap:.32rem;
  padding:0 44px;
  margin:0 0 .74rem;
}
body.ccr-entry-login-voluntary .ccr-entry-login-titleblock{
  width:100%;
  display:grid;
  justify-items:center;
  text-align:center;
  gap:.24rem;
  min-width:0;
}
body.ccr-entry-login-voluntary .ccr-entry-login-kicker{
  font-family:Inter, "Noto Sans JP", system-ui, sans-serif;
  color:rgba(201,213,228,.66);
  font-size:.66rem;
  font-weight:800;
  letter-spacing:.22em;
  line-height:1;
}
body.ccr-entry-login-voluntary .ccr-entry-login-title{
  font-family:Inter, "Noto Sans JP", system-ui, sans-serif;
  color:rgba(232,214,164,.94);
  font-size:clamp(1.20rem, 2.55vw, 1.48rem);
  font-weight:800;
  letter-spacing:.005em;
  line-height:1.12;
  text-align:center;
  text-wrap:balance;
}
body.ccr-entry-login-voluntary .ccr-entry-login-context{
  max-width:340px;
  margin:-.08rem auto 1.04rem;
  text-align:center;
  color:rgba(220,230,241,.66);
}
body.ccr-entry-login-voluntary .ccr-entry-login-close{
  position:absolute;
  top:-3px;
  right:0;
}
body.ccr-entry-login-voluntary .ccr-entry-login-id-block{
  justify-items:center;
  gap:9px;
}
body.ccr-entry-login-voluntary .ccr-entry-login-id-label{
  width:100%;
  text-align:center;
  letter-spacing:.16em;
}
body.ccr-entry-login-voluntary .ccr-entry-login-id-input{
  text-align:left;
}
@media (max-width:760px){
  body.ccr-entry-login-voluntary .ccr-entry-login-head{
    padding-inline:38px;
    margin-bottom:.66rem;
  }
  body.ccr-entry-login-voluntary .ccr-entry-login-title{
    font-size:clamp(1.18rem, 5.3vw, 1.36rem);
  }
  body.ccr-entry-login-voluntary .ccr-entry-login-context{
    max-width:300px;
    margin-bottom:.94rem;
  }
}


/* Patch I2 — conservative mobile SIP compression for public module blockers
   Mobile-only, tightly scoped to blocker content. Does not alter outer overlay hit layers, dock, launchers, or global positioning. */
@media (max-width:760px){
  .public-access-teaser-layer.is-public-module-blocker .public-access-teaser-body{
    padding:22px 18px 20px;
  }
  .public-access-teaser-layer.is-public-module-blocker .public-access-teaser-kicker{
    margin:0 48px 7px 0;
    font-size:.66rem;
    letter-spacing:.16em;
  }
  .public-access-teaser-layer.is-public-module-blocker .public-access-teaser-card h2{
    margin:0 48px 9px 0;
    font-size:clamp(1.42rem, 7.4vw, 1.82rem);
    line-height:1.04;
    letter-spacing:-.044em;
  }
  .public-access-teaser-layer.is-public-module-blocker .public-access-teaser-module{
    margin:0 0 10px;
    padding:6px 10px;
    font-size:.72rem;
    letter-spacing:.06em;
  }
  .public-access-teaser-layer.is-public-module-blocker .public-access-teaser-summary{
    margin:0 0 11px;
    font-size:.90rem;
    line-height:1.36;
  }
  .public-access-teaser-layer.is-public-module-blocker .public-access-teaser-lock{
    display:block;
    margin:0 0 12px;
    padding:10px 12px;
    border-radius:16px;
  }
  .public-access-teaser-layer.is-public-module-blocker .public-access-teaser-lock strong{
    display:block;
    margin:0 0 3px;
    font-size:.70rem;
    letter-spacing:.095em;
  }
  .public-access-teaser-layer.is-public-module-blocker .public-access-teaser-lock span{
    display:block;
    font-size:.80rem;
    line-height:1.32;
  }
  .public-access-teaser-layer.is-public-module-blocker .public-access-teaser-list{
    display:none !important;
  }
  .public-access-teaser-layer.is-public-module-blocker .public-access-teaser-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
    margin:0;
  }
  .public-access-teaser-layer.is-public-module-blocker .public-access-teaser-primary,
  .public-access-teaser-layer.is-public-module-blocker .public-access-teaser-secondary{
    width:100%;
    min-height:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 14px;
    font-size:.80rem;
    text-transform:uppercase;
  }
}
@media (max-width:420px){
  .public-access-teaser-layer.is-public-module-blocker .public-access-teaser-body{
    padding:20px 16px 18px;
  }
  .public-access-teaser-layer.is-public-module-blocker .public-access-teaser-card h2{
    font-size:clamp(1.34rem, 8.2vw, 1.66rem);
  }
  .public-access-teaser-layer.is-public-module-blocker .public-access-teaser-summary{
    font-size:.86rem;
    line-height:1.32;
  }
}
@media (max-width:760px) and (max-height:700px){
  .public-access-teaser-layer.is-public-module-blocker .public-access-teaser-body{
    padding-top:18px;
    padding-bottom:16px;
  }
  .public-access-teaser-layer.is-public-module-blocker .public-access-teaser-card h2{
    font-size:clamp(1.28rem, 7.1vw, 1.54rem);
    margin-bottom:7px;
  }
  .public-access-teaser-layer.is-public-module-blocker .public-access-teaser-summary{
    font-size:.82rem;
    line-height:1.28;
  }
  .public-access-teaser-layer.is-public-module-blocker .public-access-teaser-lock span{
    font-size:.76rem;
    line-height:1.26;
  }
}


/* Patch J — public Account Access button in CCR ribbon tab row */
body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell.has-public-signin{
  padding-right:76px !important;
}
body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell.has-public-signin .ccr-intelligence-ribbon__tabs{
  padding-right:84px !important;
}
body[data-page="home"] .ccr-intelligence-ribbon__public-signin{
  position:absolute !important;
  right:8px !important;
  bottom:4px !important;
  z-index:32 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:62px !important;
  min-height:30px !important;
  padding:6px 12px !important;
  border-radius:999px !important;
  border:1px solid rgba(235,202,136,.42) !important;
  background:linear-gradient(180deg, rgba(232,190,112,.18), rgba(232,190,112,.075)) !important;
  color:rgba(255,247,229,.94) !important;
  box-shadow:0 8px 18px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,247,229,.12) !important;
  font:700 .74rem/1 Inter, "Noto Sans JP", sans-serif !important;
  letter-spacing:.018em !important;
  text-transform:none !important;
  cursor:pointer !important;
  touch-action:manipulation !important;
  white-space:nowrap !important;
}
body[data-page="home"] .ccr-intelligence-ribbon__public-signin:hover,
body[data-page="home"] .ccr-intelligence-ribbon__public-signin:focus-visible{
  border-color:rgba(255,224,154,.66) !important;
  background:linear-gradient(180deg, rgba(232,190,112,.24), rgba(232,190,112,.11)) !important;
  color:rgba(255,252,241,.98) !important;
  outline:none !important;
  transform:translateY(-1px) !important;
}
body[data-page="home"] .ccr-intelligence-ribbon__public-signin:active{
  transform:translateY(0) scale(.98) !important;
}
@media (max-width:760px){
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell.has-public-signin{
    padding-right:64px !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell.has-public-signin .ccr-intelligence-ribbon__tabs{
    padding-right:72px !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__public-signin{
    right:6px !important;
    bottom:7px !important;
    min-width:50px !important;
    min-height:24px !important;
    padding:4px 8px !important;
    font-size:.65rem !important;
    letter-spacing:.004em !important;
    box-shadow:0 6px 12px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,247,229,.11) !important;
  }
}

/* Patch J2 — extend CCR ribbon tab seam under public Sign in affordance */
@media (max-width:760px){
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell.has-public-signin::after{
    content:"" !important;
    display:block !important;
    position:absolute !important;
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    height:1px !important;
    width:auto !important;
    background:linear-gradient(90deg, rgba(235,202,136,.54), rgba(235,202,136,.72) 72%, rgba(235,202,136,.76) 100%) !important;
    box-shadow:0 0 12px rgba(232,190,112,.13), 0 1px 0 rgba(255,244,214,.09) !important;
    pointer-events:none !important;
    z-index:31 !important;
    opacity:1 !important;
  }
}


/* Patch J4 — mobile Sign in pill vertical nudge and brighter tab seam */
@media (max-width:760px){
  body[data-page="home"] .ccr-intelligence-ribbon__public-signin{
    bottom:11px !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell.has-public-signin::after{
    background:linear-gradient(90deg, rgba(235,202,136,.72), rgba(235,202,136,.86) 72%, rgba(235,202,136,.90) 100%) !important;
    box-shadow:0 0 14px rgba(232,190,112,.20), 0 1px 0 rgba(255,244,214,.16) !important;
    z-index:34 !important;
  }
}


/* Patch J5 — mobile logged-in initials badge inside site-title block */
body[data-page="home"] .site-title-mobile-user-badge{
  display:none;
}
@media (max-width:760px){
  body[data-page="home"] .masthead h1[data-site-title] .site-title-mobile-user-badge{
    position:absolute;
    top:12px;
    right:14px;
    z-index:3;
    width:34px;
    height:34px;
    min-width:34px;
    min-height:34px;
    border-radius:999px;
    display:none;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(235,202,136,.56);
    background:radial-gradient(circle at 34% 24%, rgba(255,241,205,.17), rgba(232,190,112,.12) 38%, rgba(8,19,33,.60) 100%);
    box-shadow:0 8px 18px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,248,223,.18), 0 0 0 1px rgba(255,255,255,.04);
    color:rgba(255,247,229,.94);
    font:800 .72rem/1 Inter, "Noto Sans JP", system-ui, sans-serif;
    letter-spacing:.065em;
    text-align:center;
    pointer-events:none;
    text-transform:uppercase;
  }
  body[data-page="home"].home-mobile-user-badge-active .masthead h1[data-site-title] .site-title-mobile-user-badge:not([hidden]){
    display:inline-flex;
  }
  body[data-page="home"].home-mobile-user-badge-active .masthead h1[data-site-title]{
    padding-right:58px !important;
  }
  body[data-page="home"].home-mobile-user-badge-active .masthead h1[data-site-title] .site-title-text{
    display:inline-block;
    transform:translateX(-10px);
    transition:transform 180ms ease;
  }
}
@media (max-width:420px){
  body[data-page="home"] .masthead h1[data-site-title] .site-title-mobile-user-badge{
    top:10px;
    right:12px;
    width:31px;
    height:31px;
    min-width:31px;
    min-height:31px;
    font-size:.66rem;
  }
  body[data-page="home"].home-mobile-user-badge-active .masthead h1[data-site-title]{
    padding-right:52px !important;
  }
  body[data-page="home"].home-mobile-user-badge-active .masthead h1[data-site-title] .site-title-text{
    transform:translateX(-8px);
  }
}


/* Patch J6 — keep CCR ribbon public Sign in affordance mobile-only */
@media (min-width:761px){
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell.has-public-signin{
    padding-right:0 !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell.has-public-signin .ccr-intelligence-ribbon__tabs{
    padding-right:0 !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell.has-public-signin::after{
    content:none !important;
    display:none !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__public-signin{
    display:none !important;
  }
}

/* r9373 / Patch N: Public Settings Overlay section policy prompts */
body[data-page="home"] .settings-public-inline-prompt{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:22px;
  padding:3px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.42);
  background:rgba(255,255,255,.105);
  color:#fff;
  font-family:Inter, "Noto Sans JP", system-ui, sans-serif;
  font-size:.62rem;
  font-weight:650;
  letter-spacing:.01em;
  text-transform:none;
  line-height:1;
  white-space:nowrap;
  box-shadow:0 5px 14px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.12);
  cursor:pointer;
}
body[data-page="home"] .settings-public-inline-prompt[hidden]{
  display:none !important;
}
body[data-page="home"] .settings-section-meta[hidden]{
  display:none !important;
}
body[data-page="home"] .settings-shell-section--public-locked > :not(.settings-section-heading){
  display:none !important;
  height:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  overflow:hidden !important;
}
body[data-page="home"] .settings-shell-section--public-locked[data-settings-section="clientDashboards"],
body[data-page="home"] .settings-shell-section--public-locked[data-settings-section="manager"],
body[data-page="home"] .settings-shell-section--public-locked[data-settings-section="discovery"]{
  gap:0 !important;
}
body[data-page="home"] .settings-public-inline-prompt:hover,
body[data-page="home"] .settings-public-inline-prompt:focus-visible{
  border-color:rgba(255,255,255,.68);
  background:rgba(255,255,255,.17);
  color:#fff;
  outline:none;
}
body[data-page="home"] .settings-shell-section--public-locked .settings-section-toggle{
  display:none !important;
}
body[data-page="home"] .settings-shell-section--public-locked .settings-section-heading-row{
  cursor:default;
}
body[data-page="home"] .settings-shell-section--public-locked .settings-section-heading-row[aria-disabled="true"]{
  opacity:1;
}
@media (max-width:760px){
  body[data-page="home"] .settings-public-inline-prompt{
    min-height:21px;
    padding:3px 7px;
    font-size:.60rem;
    letter-spacing:.005em;
  }
  body[data-page="home"] .settings-shell-section--public-limited .settings-section-heading-main,
  body[data-page="home"] .settings-shell-section--public-locked .settings-section-heading-main{
    gap:7px !important;
  }
}


/* Patch P — desktop public Sign in label + RO Universe selected-source tick */
body[data-page="home"] .home-session-badge.is-public-login .home-session-badge__text--login-simple{
  gap:0 !important;
  text-align:center !important;
}
body[data-page="home"] .home-session-badge.is-public-login .home-session-badge__text--login-simple strong{
  padding-left:0 !important;
  border-left:0 !important;
  color:rgba(237,244,252,.92) !important;
  font-size:.76rem !important;
}
body[data-page="home"] .home-session-badge.is-public-login .home-session-badge__text--login-simple strong::after{
  margin-left:4px;
}
body[data-page="home"] .rss-shell-layer .rss-create-source-btn.is-selected,
.rss-create-source-btn.is-selected{
  min-width:30px !important;
  width:30px !important;
  height:28px !important;
  padding:0 !important;
  border-radius:999px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  color:rgba(216,255,225,.96) !important;
  border-color:rgba(80,214,132,.52) !important;
  background:radial-gradient(circle at 34% 25%, rgba(132,255,174,.24), rgba(43,157,89,.18) 56%, rgba(6,26,18,.42)) !important;
  box-shadow:0 0 0 1px rgba(80,214,132,.08), inset 0 1px 0 rgba(255,255,255,.08) !important;
  font-size:.94rem !important;
  line-height:1 !important;
  font-weight:900 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
}
body[data-page="home"] .rss-shell-layer .rss-create-source-btn.is-selected:hover,
body[data-page="home"] .rss-shell-layer .rss-create-source-btn.is-selected:focus-visible,
.rss-create-source-btn.is-selected:hover,
.rss-create-source-btn.is-selected:focus-visible{
  color:rgba(226,255,234,.99) !important;
  border-color:rgba(112,236,158,.70) !important;
  background:radial-gradient(circle at 34% 25%, rgba(160,255,192,.32), rgba(49,178,98,.24) 58%, rgba(6,30,19,.48)) !important;
}


/* Patch P2 — align desktop public Sign in badge with mobile subtle pill */
@media (min-width:761px){
  body[data-page="home"] .home-session-badge.is-public-login{
    min-width:0 !important;
    max-width:none !important;
    padding:4px 10px !important;
    gap:0 !important;
    justify-content:center !important;
    border:1px solid rgba(235,242,252,.22) !important;
    border-radius:999px !important;
    background:linear-gradient(180deg, rgba(255,255,255,.070), rgba(255,255,255,.030)) !important;
    color:rgba(236,244,252,.86) !important;
    box-shadow:0 6px 14px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.07) !important;
    backdrop-filter:blur(10px) !important;
  }
  body[data-page="home"] .home-session-badge.is-public-login:hover,
  body[data-page="home"] .home-session-badge.is-public-login:focus-visible{
    border-color:rgba(244,249,255,.34) !important;
    background:linear-gradient(180deg, rgba(255,255,255,.095), rgba(255,255,255,.044)) !important;
    color:rgba(248,251,255,.94) !important;
    box-shadow:0 7px 16px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.09) !important;
    outline:none !important;
  }
  body[data-page="home"] .home-session-badge.is-public-login .home-session-badge__text--login,
  body[data-page="home"] .home-session-badge.is-public-login .home-session-badge__text--login-simple{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:0 !important;
    max-width:none !important;
    min-width:0 !important;
    text-align:center !important;
    white-space:nowrap !important;
    line-height:1 !important;
  }
  body[data-page="home"] .home-session-badge.is-public-login .home-session-badge__text--login-simple strong{
    display:inline-flex !important;
    align-items:center !important;
    max-width:none !important;
    padding-left:0 !important;
    border-left:0 !important;
    color:rgba(236,244,252,.88) !important;
    font:650 .74rem/1 Inter, "Noto Sans JP", sans-serif !important;
    letter-spacing:.006em !important;
    white-space:nowrap !important;
  }
  body[data-page="home"] .home-session-badge.is-public-login .home-session-badge__text--login-simple strong::after{
    content:none !important;
    display:none !important;
  }
}

/* Patch Q — Account Access PIN field clarity
   Visual-only login UX: render the keypad PIN dots as a distinct second field while preserving keypad entry logic. */
.ccr-entry-pin-block{
  display:grid;
  gap:8px;
  margin:-2px 0 10px;
}
.ccr-entry-pin-label{
  color:var(--text-2);
  font-size:12px;
  font-weight:700;
  letter-spacing:.12em;
  line-height:1;
  text-transform:uppercase;
}
.ccr-entry-pin-field{
  width:100%;
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg, rgba(17,27,38,.78), rgba(19,31,44,.68));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03), 0 10px 26px rgba(0,0,0,.18);
}
.ccr-entry-pin-field .ccr-entry-code-dots{
  margin:0;
}
body.ccr-entry-login-voluntary .ccr-entry-pin-block{
  justify-items:center;
  margin:-2px 0 8px;
}
body.ccr-entry-login-voluntary .ccr-entry-pin-label,
body.ccr-entry-login-required .ccr-entry-pin-label{
  color:rgba(232,214,164,.62) !important;
}
body.ccr-entry-login-voluntary .ccr-entry-pin-label{
  width:100%;
  text-align:center;
  letter-spacing:.16em;
}
body.ccr-entry-login-voluntary .ccr-entry-pin-field,
body.ccr-entry-login-required .ccr-entry-pin-field{
  border-color:rgba(232,214,164,.14);
  background:linear-gradient(180deg, rgba(16,27,39,.76), rgba(13,23,35,.62));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035), 0 10px 24px rgba(0,0,0,.18);
}
body.ccr-entry-login-voluntary .ccr-entry-keypad-prompt,
body.ccr-entry-login-required .ccr-entry-keypad-prompt{
  color:rgba(225,235,246,.76);
  font-size:.88rem;
  letter-spacing:.035em;
}
@media (max-width:760px){
  .ccr-entry-pin-block{
    gap:7px;
    margin:-4px 0 7px;
  }
  .ccr-entry-pin-field{
    min-height:40px;
    border-radius:14px;
    padding-inline:14px;
  }
  .ccr-entry-pin-field .ccr-entry-code-dots{
    gap:8px;
  }
  .ccr-entry-pin-field .ccr-entry-code-dot{
    width:9px;
    height:9px;
  }
  body.ccr-entry-login-voluntary .ccr-entry-keypad-prompt,
  body.ccr-entry-login-required .ccr-entry-keypad-prompt{
    font-size:.80rem;
  }
}


/* Patch Q2 — mobile Account Access Login ID to PIN transition polish
   Mobile-only visual guidance. Keeps keypad PIN logic and authentication flow unchanged. */
.ccr-entry-pin-cue{
  display:none;
}
@media (max-width:760px){
  body.ccr-entry-login-voluntary .ccr-entry-pin-cue,
  body.ccr-entry-login-required .ccr-entry-pin-cue{
    display:block;
    width:100%;
    margin:-2px auto 5px;
    color:rgba(226,236,247,.62);
    font-size:.72rem;
    font-weight:700;
    line-height:1.28;
    letter-spacing:.012em;
    text-align:center;
  }
  .ccr-entry-keypad-slot[data-login-ready="true"][data-length="0"] .ccr-entry-pin-cue{
    color:rgba(232,214,164,.88);
  }
  .ccr-entry-keypad-slot[data-login-ready="true"][data-length="0"] .ccr-entry-pin-field{
    border-color:rgba(232,214,164,.34) !important;
    box-shadow:0 0 0 3px rgba(232,214,164,.08), inset 0 1px 0 rgba(255,255,255,.04), 0 12px 24px rgba(0,0,0,.18) !important;
  }
  .ccr-entry-keypad-slot[data-login-ready="true"][data-length="0"] .ccr-entry-keypad-prompt{
    margin-top:0;
    color:rgba(225,235,246,.58) !important;
    font-size:.72rem !important;
  }
}

/* Patch Q4 — compact Account Access keypad and make mobile initials badge open SO */
body.ccr-entry-login-voluntary .ccr-entry-keypad-shell,
body.ccr-entry-login-required .ccr-entry-keypad-shell{
  width:min(392px, calc(100vw - 34px));
  max-width:392px;
}
body.ccr-entry-login-voluntary .ccr-entry-keypad-panel,
body.ccr-entry-login-required .ccr-entry-keypad-panel{
  padding:clamp(15px, 2.7vw, 22px) !important;
  border-radius:21px !important;
  box-shadow:0 22px 62px rgba(0,0,0,.31), inset 0 1px 0 rgba(255,255,255,.04), 0 0 0 1px rgba(232,214,164,.035) !important;
}
body.ccr-entry-login-voluntary .ccr-entry-login-head,
body.ccr-entry-login-required .ccr-entry-login-head{
  margin-bottom:.46rem;
}
body.ccr-entry-login-voluntary .ccr-entry-login-titleblock,
body.ccr-entry-login-required .ccr-entry-login-titleblock{
  gap:.12rem;
}
body.ccr-entry-login-voluntary .ccr-entry-login-kicker,
body.ccr-entry-login-required .ccr-entry-login-kicker{
  font-size:.60rem;
  letter-spacing:.15em;
}
body.ccr-entry-login-voluntary .ccr-entry-login-title,
body.ccr-entry-login-required .ccr-entry-login-title{
  font-size:clamp(1.02rem, 2.25vw, 1.22rem) !important;
  line-height:1.1;
}
body.ccr-entry-login-voluntary .ccr-entry-login-context,
body.ccr-entry-login-required .ccr-entry-login-context{
  margin:-.12rem 0 .72rem !important;
  font-size:.75rem !important;
  line-height:1.34 !important;
}
body.ccr-entry-login-voluntary .ccr-entry-login-close,
body.ccr-entry-login-required .ccr-entry-login-close{
  width:29px;
  height:29px;
  min-width:29px;
  font-size:1rem;
}
body.ccr-entry-login-voluntary .ccr-entry-login-id-block,
body.ccr-entry-login-required .ccr-entry-login-id-block{
  gap:6px;
  margin-bottom:10px;
}
body.ccr-entry-login-voluntary .ccr-entry-login-id-label,
body.ccr-entry-login-required .ccr-entry-login-id-label,
body.ccr-entry-login-voluntary .ccr-entry-pin-label,
body.ccr-entry-login-required .ccr-entry-pin-label{
  font-size:10px;
}
body.ccr-entry-login-voluntary .ccr-entry-login-id-input,
body.ccr-entry-login-required .ccr-entry-login-id-input{
  min-height:42px !important;
  border-radius:14px !important;
  padding-inline:13px !important;
  font-size:.92rem !important;
}
body.ccr-entry-login-voluntary .ccr-entry-pin-block,
body.ccr-entry-login-required .ccr-entry-pin-block{
  gap:6px;
  margin:-1px 0 6px !important;
}
body.ccr-entry-login-voluntary .ccr-entry-pin-field,
body.ccr-entry-login-required .ccr-entry-pin-field{
  min-height:38px !important;
  border-radius:13px !important;
  padding-inline:12px !important;
}
body.ccr-entry-login-voluntary .ccr-entry-pin-field .ccr-entry-code-dots,
body.ccr-entry-login-required .ccr-entry-pin-field .ccr-entry-code-dots{
  gap:8px;
}
body.ccr-entry-login-voluntary .ccr-entry-pin-field .ccr-entry-code-dot,
body.ccr-entry-login-required .ccr-entry-pin-field .ccr-entry-code-dot{
  width:8px;
  height:8px;
}
body.ccr-entry-login-voluntary .ccr-entry-pin-cue,
body.ccr-entry-login-required .ccr-entry-pin-cue{
  margin:-1px auto 3px !important;
  font-size:.68rem !important;
}
body.ccr-entry-login-voluntary .ccr-entry-keypad-prompt,
body.ccr-entry-login-required .ccr-entry-keypad-prompt{
  font-size:.76rem !important;
  line-height:1.2 !important;
}
body.ccr-entry-login-voluntary .ccr-entry-keypad-status,
body.ccr-entry-login-required .ccr-entry-keypad-status{
  min-height:1.12em;
  margin:5px 0 10px !important;
  font-size:11px;
}
body.ccr-entry-login-voluntary .ccr-entry-keypad-grid,
body.ccr-entry-login-required .ccr-entry-keypad-grid{
  gap:9px;
}
body.ccr-entry-login-voluntary .ccr-entry-key,
body.ccr-entry-login-required .ccr-entry-key{
  min-height:52px !important;
  border-radius:14px !important;
  font-size:clamp(18px, 3.4vw, 24px) !important;
}
body.ccr-entry-login-voluntary .ccr-entry-key--delete,
body.ccr-entry-login-voluntary .ccr-entry-key--unlock,
body.ccr-entry-login-required .ccr-entry-key--delete,
body.ccr-entry-login-required .ccr-entry-key--unlock{
  font-size:.74rem !important;
  letter-spacing:.06em !important;
}
body.ccr-entry-login-voluntary .ccr-entry-login-return{
  margin:.62rem 0 0 !important;
  min-height:36px !important;
  font-size:.70rem !important;
  letter-spacing:.045em !important;
}
@media (max-width:760px){
  body.ccr-entry-login-voluntary .ccr-entry-keypad-slot,
  body.ccr-entry-login-required .ccr-entry-keypad-slot{
    padding:max(10px, env(safe-area-inset-top)) 14px max(10px, env(safe-area-inset-bottom)) 14px !important;
    align-items:flex-start !important;
  }
  body.ccr-entry-login-voluntary .ccr-entry-keypad-shell,
  body.ccr-entry-login-required .ccr-entry-keypad-shell{
    width:min(342px, calc(100vw - 28px)) !important;
    margin-top:clamp(4px, 2.4svh, 18px) !important;
  }
  body.ccr-entry-login-voluntary .ccr-entry-keypad-panel,
  body.ccr-entry-login-required .ccr-entry-keypad-panel{
    padding:13px 13px 12px !important;
    border-radius:18px !important;
    max-height:calc(100dvh - max(20px, env(safe-area-inset-top)) - max(20px, env(safe-area-inset-bottom))) !important;
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  body.ccr-entry-login-voluntary .ccr-entry-login-head,
  body.ccr-entry-login-required .ccr-entry-login-head{
    align-items:center;
    margin-bottom:.38rem;
  }
  body.ccr-entry-login-voluntary .ccr-entry-login-title,
  body.ccr-entry-login-required .ccr-entry-login-title{
    font-size:1.02rem !important;
  }
  body.ccr-entry-login-voluntary .ccr-entry-login-context,
  body.ccr-entry-login-required .ccr-entry-login-context{
    margin:-.06rem 0 .58rem !important;
    font-size:.70rem !important;
    line-height:1.28 !important;
  }
  body.ccr-entry-login-voluntary .ccr-entry-login-id-input,
  body.ccr-entry-login-required .ccr-entry-login-id-input{
    min-height:38px !important;
    border-radius:12px !important;
    font-size:.88rem !important;
  }
  body.ccr-entry-login-voluntary .ccr-entry-pin-field,
  body.ccr-entry-login-required .ccr-entry-pin-field{
    min-height:34px !important;
    border-radius:12px !important;
  }
  body.ccr-entry-login-voluntary .ccr-entry-key,
  body.ccr-entry-login-required .ccr-entry-key{
    min-height:44px !important;
    border-radius:12px !important;
    font-size:1.05rem !important;
  }
  body.ccr-entry-login-voluntary .ccr-entry-key--delete,
  body.ccr-entry-login-voluntary .ccr-entry-key--unlock,
  body.ccr-entry-login-required .ccr-entry-key--delete,
  body.ccr-entry-login-required .ccr-entry-key--unlock{
    font-size:.66rem !important;
  }
  body.ccr-entry-login-voluntary .ccr-entry-login-return{
    min-height:34px !important;
    margin-top:.50rem !important;
  }
}
@media (max-width:420px){
  body.ccr-entry-login-voluntary .ccr-entry-keypad-shell,
  body.ccr-entry-login-required .ccr-entry-keypad-shell{
    width:min(328px, calc(100vw - 24px)) !important;
  }
  body.ccr-entry-login-voluntary .ccr-entry-keypad-panel,
  body.ccr-entry-login-required .ccr-entry-keypad-panel{
    padding:12px 12px 11px !important;
  }
  body.ccr-entry-login-voluntary .ccr-entry-keypad-grid,
  body.ccr-entry-login-required .ccr-entry-keypad-grid{
    gap:8px;
  }
  body.ccr-entry-login-voluntary .ccr-entry-key,
  body.ccr-entry-login-required .ccr-entry-key{
    min-height:42px !important;
  }
}
@media (max-width:760px){
  body[data-page="home"].home-mobile-user-badge-active .masthead h1[data-site-title] .site-title-mobile-user-badge:not([hidden]){
    pointer-events:auto;
    cursor:pointer;
  }
  body[data-page="home"] .masthead h1[data-site-title] .site-title-mobile-user-badge:focus-visible{
    outline:2px solid rgba(255,242,205,.80);
    outline-offset:3px;
  }
  body[data-page="home"] .masthead h1[data-site-title] .site-title-mobile-user-badge:hover,
  body[data-page="home"] .masthead h1[data-site-title] .site-title-mobile-user-badge:focus-visible{
    border-color:rgba(255,224,154,.74);
    background:radial-gradient(circle at 34% 24%, rgba(255,241,205,.22), rgba(232,190,112,.16) 38%, rgba(8,19,33,.64) 100%);
  }
}

/* r2 — mobile lower utility buttons: force Search-weight typography after all legacy button layers.
   Keeps View Archive / Invite Friend / About Site visually quieter on mobile only. */
@media (max-width:760px){
  body[data-page="home"] #homeFilterForm .filter-actions .home-rss-archive-btn,
  body[data-page="home"] .footer-about-wrap .footer-invite-friend-btn,
  body[data-page="home"] .footer-about-wrap .footer-about-btn{
    font-family:Inter,"Noto Sans JP",system-ui,sans-serif !important;
    font-size:.74rem !important;
    font-weight:400 !important;
    letter-spacing:0 !important;
    text-transform:none !important;
    line-height:1.05 !important;
  }
  body[data-page="home"] #homeFilterForm .filter-actions .home-rss-archive-btn *,
  body[data-page="home"] .footer-about-wrap .footer-invite-friend-btn *,
  body[data-page="home"] .footer-about-wrap .footer-about-btn *{
    font-weight:400 !important;
    letter-spacing:0 !important;
    text-transform:none !important;
  }
}

/* r3 — mobile lower utility buttons: exact Search button color/brightness parity.
   Applies the same muted white-glass treatment to Search, View Archive, Invite Friend, and About Site on mobile. */
@media (max-width:760px){
  body[data-page="home"] #homeFilterForm .filter-actions .ui-btn[data-search-filters],
  body[data-page="home"] #homeFilterForm .filter-actions .home-rss-archive-btn,
  body[data-page="home"] .footer-about-wrap .footer-invite-friend-btn,
  body[data-page="home"] .footer-about-wrap .footer-about-btn{
    min-height:0 !important;
    height:auto !important;
    padding:8px 12px !important;
    border-radius:999px !important;
    border:1px solid var(--border) !important;
    background:rgba(255,255,255,.03) !important;
    color:rgba(233,240,247,.66) !important;
    opacity:.82 !important;
    box-shadow:none !important;
    font-family:Inter,"Noto Sans JP",system-ui,sans-serif !important;
    font-size:.8rem !important;
    font-weight:400 !important;
    letter-spacing:0 !important;
    line-height:1.05 !important;
    text-transform:none !important;
    text-shadow:none !important;
  }
  body[data-page="home"] #homeFilterForm .filter-actions .ui-btn[data-search-filters]:hover,
  body[data-page="home"] #homeFilterForm .filter-actions .ui-btn[data-search-filters]:focus-visible,
  body[data-page="home"] #homeFilterForm .filter-actions .home-rss-archive-btn:hover,
  body[data-page="home"] #homeFilterForm .filter-actions .home-rss-archive-btn:focus-visible,
  body[data-page="home"] .footer-about-wrap .footer-invite-friend-btn:hover,
  body[data-page="home"] .footer-about-wrap .footer-invite-friend-btn:focus-visible,
  body[data-page="home"] .footer-about-wrap .footer-about-btn:hover,
  body[data-page="home"] .footer-about-wrap .footer-about-btn:focus-visible{
    background:rgba(255,255,255,.06) !important;
    color:rgba(233,240,247,.66) !important;
    opacity:.82 !important;
    box-shadow:none !important;
    transform:translateY(-1px);
    outline:none;
  }
}


/* S9 — mobile public Sign in moved into site-title account badge slot
   Mobile-only: hides the ribbon Sign in pill, reuses the top-right site-title badge slot,
   and keeps the CCR title optically centered in both public and authenticated states. */
@media (max-width:760px){
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell.has-public-signin{
    padding-right:0 !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell.has-public-signin .ccr-intelligence-ribbon__tabs{
    padding-right:0 !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__tab-scroll-shell.has-public-signin::after{
    content:none !important;
    display:none !important;
  }
  body[data-page="home"] .ccr-intelligence-ribbon__public-signin{
    display:none !important;
  }
  body[data-page="home"].home-mobile-account-badge-active .masthead h1[data-site-title]{
    
    padding-left:56px !important;
    padding-right:56px !important;
  }
  body[data-page="home"].home-mobile-public-signin-badge-active .masthead h1[data-site-title]{
    padding-left:68px !important;
    padding-right:68px !important;
  }
  body[data-page="home"].home-mobile-account-badge-active .masthead h1[data-site-title] .site-title-text,
  body[data-page="home"].home-mobile-user-badge-active .masthead h1[data-site-title] .site-title-text{
    
    transform:none !important;
    transition:none !important;
  }
  body[data-page="home"].home-mobile-account-badge-active .masthead h1[data-site-title] .site-title-mobile-user-badge:not([hidden]){
    display:inline-flex !important;
    pointer-events:auto !important;
    cursor:pointer !important;
  }
  body[data-page="home"] .masthead h1[data-site-title] .site-title-mobile-user-badge.is-public-login:not([hidden]){
    width:auto !important;
    min-width:54px !important;
    max-width:66px !important;
    height:31px !important;
    min-height:31px !important;
    padding:0 9px !important;
    border-color:rgba(235,242,252,.26) !important;
    background:linear-gradient(180deg, rgba(255,255,255,.090), rgba(255,255,255,.038)) !important;
    color:rgba(239,246,253,.90) !important;
    box-shadow:0 7px 16px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.08) !important;
    font:700 .62rem/1 Inter,"Noto Sans JP",system-ui,sans-serif !important;
    letter-spacing:.004em !important;
    text-transform:none !important;
    white-space:nowrap !important;
  }
  body[data-page="home"] .masthead h1[data-site-title] .site-title-mobile-user-badge.is-public-login:hover,
  body[data-page="home"] .masthead h1[data-site-title] .site-title-mobile-user-badge.is-public-login:focus-visible{
    border-color:rgba(244,249,255,.42) !important;
    background:linear-gradient(180deg, rgba(255,255,255,.120), rgba(255,255,255,.052)) !important;
    color:rgba(250,253,255,.96) !important;
  }
}
@media (max-width:420px){
  body[data-page="home"].home-mobile-account-badge-active .masthead h1[data-site-title]{
    padding-left:50px !important;
    padding-right:50px !important;
  }
  body[data-page="home"].home-mobile-public-signin-badge-active .masthead h1[data-site-title]{
    padding-left:62px !important;
    padding-right:62px !important;
  }
  body[data-page="home"] .masthead h1[data-site-title] .site-title-mobile-user-badge.is-public-login:not([hidden]){
    top:10px !important;
    right:10px !important;
    min-width:50px !important;
    max-width:60px !important;
    height:30px !important;
    min-height:30px !important;
    padding:0 8px !important;
    font-size:.59rem !important;
  }
}


/* S9B — restore mobile site-title geometry after public Sign in badge move
   Keep the new top-right account badge slot, but restore the earlier two-line title rhythm by
   removing S9 symmetric padding that narrowed the text column and caused three-line wrapping. */
@media (max-width:760px){
  body[data-page="home"].home-mobile-account-badge-active .masthead h1[data-site-title]{
    text-align:center !important;
    padding-left:18px !important;
    padding-right:58px !important;
  }
  body[data-page="home"].home-mobile-public-signin-badge-active .masthead h1[data-site-title]{
    padding-left:18px !important;
    padding-right:64px !important;
  }
  body[data-page="home"].home-mobile-account-badge-active .masthead h1[data-site-title] .site-title-text,
  body[data-page="home"].home-mobile-user-badge-active .masthead h1[data-site-title] .site-title-text{
    display:inline-block !important;
    max-width:100% !important;
    transform:translateX(-8px) !important;
    transition:transform 180ms ease !important;
  }
  body[data-page="home"].home-mobile-public-signin-badge-active .masthead h1[data-site-title] .site-title-text{
    transform:translateX(-6px) !important;
  }
  body[data-page="home"] .masthead h1[data-site-title] .site-title-mobile-user-badge.is-public-login:not([hidden]){
    min-width:48px !important;
    max-width:56px !important;
    height:29px !important;
    min-height:29px !important;
    padding:0 7px !important;
    font-size:.57rem !important;
  }
}
@media (max-width:420px){
  body[data-page="home"].home-mobile-account-badge-active .masthead h1[data-site-title]{
    padding-left:16px !important;
    padding-right:54px !important;
  }
  body[data-page="home"].home-mobile-public-signin-badge-active .masthead h1[data-site-title]{
    padding-left:16px !important;
    padding-right:58px !important;
  }
  body[data-page="home"] .masthead h1[data-site-title] .site-title-mobile-user-badge.is-public-login:not([hidden]){
    min-width:45px !important;
    max-width:52px !important;
    height:28px !important;
    min-height:28px !important;
    padding:0 6px !important;
    font-size:.55rem !important;
  }
}

/* S54F — duration-first client schedule booking */
body[data-page="home"] .settings-schedule-day-panel.is-client-booking .settings-schedule-duration-row{
  display:grid;
  gap:7px;
  padding:8px;
  border:1px solid rgba(174,200,233,.12);
  border-radius:14px;
  background:rgba(6,18,34,.30);
}
body[data-page="home"] .settings-schedule-day-panel.is-client-booking .settings-schedule-duration-row > span{
  color:rgba(232,240,252,.70);
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}
body[data-page="home"] .settings-schedule-day-panel.is-client-booking .settings-schedule-duration-row > div{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
body[data-page="home"] .settings-schedule-duration-chip{
  min-height:30px;
  padding:6px 10px;
  border:1px solid rgba(174,200,233,.18);
  border-radius:999px;
  background:rgba(6,18,34,.46);
  color:rgba(232,240,252,.78);
  font-size:.75rem;
  font-weight:850;
  cursor:pointer;
  transition:transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}
body[data-page="home"] .settings-schedule-duration-chip:not(:disabled):hover,
body[data-page="home"] .settings-schedule-duration-chip.is-selected{
  color:#fff7df;
  border-color:rgba(244,211,138,.68);
  background:linear-gradient(150deg, rgba(244,211,138,.24), rgba(66,103,151,.18));
  box-shadow:0 0 0 2px rgba(244,211,138,.12);
}
body[data-page="home"] .settings-schedule-lesson-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
}
body[data-page="home"] .settings-schedule-lesson-option{
  min-height:48px;
  display:grid;
  place-items:center;
  gap:2px;
  padding:8px 9px;
  border:1px solid rgba(126,220,166,.28);
  border-radius:15px;
  background:linear-gradient(150deg, rgba(35,132,89,.20), rgba(6,18,34,.56));
  color:rgba(238,248,255,.95);
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055);
  transition:transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
body[data-page="home"] .settings-schedule-lesson-option span{
  font-size:.9rem;
  font-weight:850;
  line-height:1.1;
}
body[data-page="home"] .settings-schedule-lesson-option small{
  color:rgba(232,240,252,.68);
  font-size:.65rem;
  font-weight:800;
  letter-spacing:.03em;
  text-transform:uppercase;
}
body[data-page="home"] .settings-schedule-lesson-option:not(:disabled):hover{
  transform:translateY(-1px);
  border-color:rgba(244,211,138,.54);
}
body[data-page="home"] .settings-schedule-lesson-option.is-selected{
  color:#fff7df;
  border-color:rgba(244,211,138,.78);
  background:linear-gradient(150deg, rgba(244,211,138,.30), rgba(66,103,151,.22));
  box-shadow:0 0 0 2px rgba(244,211,138,.16), 0 12px 28px rgba(0,0,0,.18);
}
@media (max-width:560px){
  body[data-page="home"] .settings-schedule-lesson-grid{
    grid-template-columns:1fr;
  }
}

/* S54I — client booked-pill cancellation */
body[data-page="home"] .settings-schedule-lesson-option--booked{
  border-color:rgba(104,157,255,.58);
  background:linear-gradient(150deg, rgba(43,94,172,.34), rgba(13,27,48,.66));
  color:#edf5ff;
  box-shadow:0 0 0 1px rgba(104,157,255,.18), inset 0 1px 0 rgba(255,255,255,.08);
}
body[data-page="home"] .settings-schedule-lesson-option--booked small{
  color:rgba(197,218,255,.86);
}
body[data-page="home"] .settings-schedule-lesson-option--booked:not(:disabled):hover{
  border-color:rgba(244,211,138,.72);
  background:linear-gradient(150deg, rgba(61,120,213,.40), rgba(37,54,83,.72));
  box-shadow:0 0 0 2px rgba(104,157,255,.18), 0 12px 28px rgba(0,0,0,.20);
}

/* S54I-r2 — client pending-request pills in availability stack */
body[data-page="home"] .settings-schedule-lesson-option--pending{
  border-color:rgba(244,211,138,.62);
  background:linear-gradient(150deg, rgba(162,112,34,.34), rgba(37,29,18,.66));
  color:#fff7df;
  box-shadow:0 0 0 1px rgba(244,211,138,.18), inset 0 1px 0 rgba(255,255,255,.08);
}
body[data-page="home"] .settings-schedule-lesson-option--pending small{
  color:rgba(255,232,184,.90);
}
body[data-page="home"] .settings-schedule-lesson-option--pending:not(:disabled):hover{
  border-color:rgba(255,232,184,.82);
  background:linear-gradient(150deg, rgba(190,135,45,.42), rgba(54,40,23,.74));
  box-shadow:0 0 0 2px rgba(244,211,138,.18), 0 12px 28px rgba(0,0,0,.20);
}

/* S54R-r13 — named same-group bookings stay visible in the private group stack */
body[data-page="home"] .settings-schedule-lesson-option--group{
  cursor:default;
  border-color:rgba(143,169,207,.38);
  background:linear-gradient(150deg, rgba(70,91,124,.26), rgba(13,25,43,.62));
  color:rgba(231,239,251,.88);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055);
}
body[data-page="home"] .settings-schedule-lesson-option--group small{
  color:rgba(194,210,234,.76);
}
body[data-page="home"] .settings-schedule-lesson-option--group.is-pending{
  border-color:rgba(213,178,104,.42);
  border-style:dashed;
  background:linear-gradient(150deg, rgba(122,91,40,.24), rgba(35,29,20,.62));
}
body[data-page="home"] .settings-schedule-lesson-option--group.is-pending small{
  color:rgba(241,216,163,.80);
}
body[data-page="home"] .settings-schedule-lesson-option--group:not(:disabled):hover{
  transform:none;
  border-color:rgba(143,169,207,.38);
}
body[data-page="home"] .settings-schedule-lesson-option--group.is-pending:not(:disabled):hover{
  border-color:rgba(213,178,104,.42);
}
body[data-page="home"] .settings-schedule-lesson-option--anonymous{
  cursor:default;
  border-color:rgba(154,166,184,.30);
  background:linear-gradient(150deg, rgba(75,84,98,.22), rgba(15,24,38,.58));
  color:rgba(224,231,241,.82);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045);
}
body[data-page="home"] .settings-schedule-lesson-option--anonymous small{
  color:rgba(194,203,217,.70);
}
body[data-page="home"] .settings-schedule-lesson-option--anonymous:not(:disabled):hover{
  transform:none;
  border-color:rgba(154,166,184,.30);
}

/* S54I-r3 — center-align client schedule duration chips and lesson pills */
body[data-page="home"] .settings-schedule-day-panel.is-client-booking .settings-schedule-duration-row{
  text-align:center;
  justify-items:center;
}
body[data-page="home"] .settings-schedule-day-panel.is-client-booking .settings-schedule-duration-row > span{
  width:100%;
  text-align:center;
}
body[data-page="home"] .settings-schedule-day-panel.is-client-booking .settings-schedule-duration-row > div{
  width:100%;
  justify-content:center;
  align-items:center;
}
body[data-page="home"] .settings-schedule-duration-chip{
  text-align:center;
}
body[data-page="home"] .settings-schedule-lesson-grid{
  width:100%;
  max-width:660px;
  margin-inline:auto;
  grid-template-columns:repeat(2, minmax(220px, 320px));
  justify-content:center;
  justify-items:center;
}
body[data-page="home"] .settings-schedule-lesson-option{
  width:100%;
  max-width:320px;
  text-align:center;
  justify-self:center;
}
@media (max-width:560px){
  body[data-page="home"] .settings-schedule-lesson-grid{
    grid-template-columns:minmax(0, min(100%, 520px));
    max-width:520px;
  }
  body[data-page="home"] .settings-schedule-lesson-option{
    max-width:520px;
  }
}

/* S54I-r4 — center-align client schedule count pill ("X times · X min") */
body[data-page="home"] .settings-schedule-day-panel.is-client-booking .settings-schedule-day-panel__head{
  display:grid;
  justify-items:center;
  text-align:center;
  gap:6px;
  padding-right:0;
}
body[data-page="home"] .settings-schedule-day-panel.is-client-booking .settings-schedule-day-panel__head > div{
  width:100%;
  margin-inline:auto;
  text-align:center;
}
body[data-page="home"] .settings-schedule-day-panel.is-client-booking .settings-schedule-day-panel__head .settings-schedule-pill{
  position:static;
  transform:none;
  justify-self:center;
  margin-inline:auto;
}

/* S54O — administrator-managed RSS group sources. */
.rss-archive-folder-chip--group{
  border-color:rgba(89,202,164,.48);
  background:linear-gradient(145deg,rgba(27,91,76,.7),rgba(14,42,49,.92));
  color:#d8fff1;
}
.rss-archive-folder-chip--shared{
  border-color:rgba(232,214,164,.42);
  background:linear-gradient(145deg,rgba(89,72,36,.62),rgba(28,38,47,.92));
  color:#f2dfac;
}
.rss-archive-folder-chip--shared .rss-archive-folder-chip__icon::before{
  content:"◆";
  color:#e8d197;
}
.rss-archive-folder-chip--shared.is-active,
.rss-archive-folder-chip--shared.is-drag-over{
  border-color:#ecd99f;
  box-shadow:0 0 0 2px rgba(232,214,164,.14),0 12px 28px rgba(0,0,0,.24);
}
.rss-archive-folder-chip--group .rss-archive-folder-chip__icon::before{
  content:"◉";
  color:#7ee4c0;
}
.rss-archive-folder-chip--group.is-active,
.rss-archive-folder-chip--group.is-drag-over{
  border-color:#83e8c4;
  box-shadow:0 0 0 2px rgba(83,232,196,.16),0 12px 28px rgba(0,0,0,.24);
}
.rss-archive-overlay__grid--group{
  display:grid;
  gap:10px;
}
.rss-archive-group-source{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px;
  border:1px solid rgba(126,228,192,.24);
  border-radius:14px;
  background:rgba(10,35,40,.72);
}
.rss-archive-group-source > div{display:grid;gap:4px;min-width:0}
.rss-archive-group-source strong{color:#e8fff7}
.rss-archive-group-source a{overflow:hidden;text-overflow:ellipsis;color:#91d9c2;font-size:.78rem}
.rss-archive-move-option--group{border-color:rgba(89,202,164,.42);background:rgba(25,82,68,.35)}
.rss-archive-move-option--shared{border-color:rgba(232,214,164,.36);background:rgba(106,83,38,.24)}
.rss-archive-card--shared{border-color:rgba(232,214,164,.17)}
.source-feed-inherited-badge,
.settings-source-row__inherited{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:3px 9px;
  border:1px solid rgba(89,202,164,.42);
  border-radius:999px;
  background:rgba(33,117,94,.18);
  color:#77d6b5;
  font-size:.68rem;
  font-weight:700;
  letter-spacing:.04em;
  white-space:nowrap;
}
body[data-page="home"] .selected-source-feed-section .source-feed-source-card.is-inherited-only .source-feed-source-card__button{
  padding-bottom:3.8rem;
}
body[data-page="home"] .selected-source-feed-section .source-feed-source-card.is-inherited-only .source-feed-inherited-badge{
  position:absolute;
  inset:auto 0 0;
  z-index:3;
  width:100%;
  min-height:38px;
  box-sizing:border-box;
  margin:0;
  padding:7px 12px;
  border:0;
  border-top:1px solid rgba(89,202,164,.42);
  border-radius:0;
  background:linear-gradient(90deg,rgba(33,117,94,.20),rgba(43,139,108,.27),rgba(33,117,94,.20));
  box-shadow:inset 0 1px 0 rgba(151,245,211,.035);
  color:#77d6b5;
}
@media (max-width:640px){
  .rss-archive-group-source{align-items:flex-start;flex-direction:column}
  .rss-archive-group-source .ui-btn{width:100%}
}
.settings-schedule-request-mode{display:inline-flex;align-items:center;gap:.35rem;font-size:.72rem}
.settings-schedule-request-mode select{min-width:4.25rem}

/* S54R-r2 — quiet travel buffers and restore stable per-client schedule colours. */
body[data-page="home"] .settings-schedule-week-grid__cell.is-blank-blocked:not(.is-selected){
  background:rgba(255,255,255,.026) !important;
  color:transparent !important;
  box-shadow:none !important;
}
body[data-page="home"] .settings-schedule-week-grid__cell.is-weekend.is-blank-blocked:not(.is-selected){
  background:rgba(144,62,86,.105) !important;
}
body[data-page="home"] .settings-schedule-week-grid__cell.has-client-tone:not(.is-selected){
  color:rgba(248,250,255,.92) !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.035) !important;
}
body[data-page="home"] .settings-schedule-week-grid__cell.client-tone-0:not(.is-selected){background:linear-gradient(150deg,rgba(53,116,170,.46),rgba(29,65,105,.38)) !important}
body[data-page="home"] .settings-schedule-week-grid__cell.client-tone-1:not(.is-selected){background:linear-gradient(150deg,rgba(53,145,118,.44),rgba(25,83,70,.38)) !important}
body[data-page="home"] .settings-schedule-week-grid__cell.client-tone-2:not(.is-selected){background:linear-gradient(150deg,rgba(139,91,166,.44),rgba(79,46,105,.38)) !important}
body[data-page="home"] .settings-schedule-week-grid__cell.client-tone-3:not(.is-selected){background:linear-gradient(150deg,rgba(178,109,70,.44),rgba(103,61,34,.38)) !important}
body[data-page="home"] .settings-schedule-week-grid__cell.client-tone-4:not(.is-selected){background:linear-gradient(150deg,rgba(60,137,151,.44),rgba(28,78,89,.38)) !important}
body[data-page="home"] .settings-schedule-week-grid__cell.client-tone-5:not(.is-selected){background:linear-gradient(150deg,rgba(163,76,111,.44),rgba(94,39,65,.38)) !important}
body[data-page="home"] .settings-schedule-week-grid__cell.client-tone-6:not(.is-selected){background:linear-gradient(150deg,rgba(132,126,57,.44),rgba(77,72,28,.38)) !important}
body[data-page="home"] .settings-schedule-week-grid__cell.client-tone-7:not(.is-selected){background:linear-gradient(150deg,rgba(86,103,173,.46),rgba(45,57,107,.38)) !important}
/* ===== S56T SOURCE END: layout.css ===== */

/* ===== S56T SOURCE BEGIN: client-dashboard.css ===== */
/* CCR Client Dashboard bridge: SO-style dashboard overlay + standalone viewer
   2026-05-04 DO/SO harmonization pass: this file replaces the earlier wide custom
   dashboard modal styling with the same shell grammar used by the Settings Overlay. */

.ccr-client-dash-layer[hidden],
.ccr-client-submodal[hidden]{
  display:none !important;
}

body.ccr-client-dash-open{
  overflow:hidden;
}
body.ccr-client-dash-open .mobile-bottom-dock{
  display:none !important;
}

/* Overlay shell: intentionally mirrors .settings-shell-layer/card/backdrop. */
.ccr-client-dash-layer{
  position:fixed;
  inset:0;
  z-index:9800;
  color:var(--text, rgba(238,244,250,0.94));
  font-family:var(--font-sans, Inter, system-ui, sans-serif);
}
.ccr-client-dash-backdrop,
.ccr-client-submodal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(5,10,18,.34);
  backdrop-filter:blur(8px) saturate(1.08);
}
.ccr-client-dash-shell{
  position:absolute;
  top:max(18px, env(safe-area-inset-top, 0px) + 12px);
  left:max(24px, env(safe-area-inset-left, 0px) + 16px);
  right:max(24px, env(safe-area-inset-right, 0px) + 16px);
  bottom:max(18px, env(safe-area-inset-bottom, 0px) + 12px);
  width:min(580px, calc(100vw - 48px));
  max-height:none;
  margin-inline:auto;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(214,229,248,.13);
  border-radius:24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(124,160,205,.075), transparent 34%),
    linear-gradient(180deg, rgba(24,36,50,.78), rgba(8,14,23,.70));
  box-shadow:0 30px 82px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.052);
  backdrop-filter:blur(18px) saturate(1.12);
}
.ccr-client-dash-shell-head{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  gap:12px;
  padding:18px 18px 14px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(27,39,53,.93), rgba(23,33,46,.91));
  flex:0 0 auto;
}
.ccr-client-dash-shell-head > div{
  min-width:0;
  flex:1 1 auto;
  max-width:100%;
}
.ccr-client-dash-shell-kicker{
  margin:0 0 6px;
  font-size:.72rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(215,227,236,.66);
}
.ccr-client-dash-shell-head h2{
  margin:0;
  font-size:1.3rem;
  line-height:1.04;
  color:var(--text, rgba(240,245,252,.94));
  letter-spacing:-.018em;
}
.ccr-client-dash-shell-subtitle{
  margin:8px 0 0;
  color:var(--text-2, rgba(203,216,229,.70));
  line-height:1.5;
  font-size:.95rem;
}
.ccr-client-dash-close{
  position:absolute;
  top:max(14px, env(safe-area-inset-top, 0px) + 2px);
  right:max(14px, env(safe-area-inset-right, 0px) + 2px);
  min-width:38px;
  width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  z-index:8;
  background:rgba(9,15,23,.72);
  border-color:rgba(255,255,255,.16);
  box-shadow:0 10px 24px rgba(0,0,0,.26);
}
.ccr-client-dash-scroll{
  display:block;
  flex:1 1 auto;
  min-height:0;
  max-height:100%;
  overflow-x:hidden;
  overflow-y:auto;
  overflow-anchor:none;
  scrollbar-gutter:stable both-edges;
  scrollbar-color:rgba(120,140,162,.72) rgba(5,10,18,.92);
}

/* Dashboard content: SO section/card grammar, not a separate visual language. */
.ccr-client-dash{
  display:grid;
  gap:14px;
  padding:16px 18px 20px;
}
.ccr-client-dash-head,
.ccr-client-dash-card{
  display:grid;
  gap:12px;
  padding:15px 16px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(255,255,255,.030);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
  min-width:0;
}
.ccr-client-dash-head{
  grid-template-columns:minmax(0,1fr);
  align-items:start;
  gap:16px;
}
.ccr-client-dash-kicker{
  margin:0 0 6px;
  color:rgba(215,227,236,.60);
  text-transform:uppercase;
  letter-spacing:.15em;
  font-size:.68rem;
  font-weight:700;
}
.ccr-client-dash-head h2{
  margin:0;
  font-family:var(--font-sans, Inter, system-ui, sans-serif);
  font-size:clamp(1.0rem, 2.1vw, 1.18rem);
  line-height:1.08;
  letter-spacing:-.03em;
  color:rgba(244,248,252,.94);
  overflow-wrap:anywhere;
}
.ccr-client-dash-subline{
  margin:8px 0 0;
  color:var(--text-2, rgba(203,216,229,.68));
  font-size:.88rem;
  line-height:1.45;
  overflow-wrap:anywhere;
}
.ccr-client-dash-status{
  display:flex;
  flex-direction:row;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:flex-start;
  gap:7px;
  min-width:0;
  color:var(--text-2, rgba(203,216,229,.68));
}
.ccr-client-dash-status span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 9px;
  border-radius:999px;
  border:1px solid rgba(232,214,164,.20);
  background:rgba(232,214,164,.060);
  color:rgba(232,214,164,.90);
  font-size:.70rem;
  line-height:1;
  font-weight:700;
  letter-spacing:.035em;
}
.ccr-client-dash-status small{
  color:rgba(203,216,229,.54);
  font-size:.70rem;
  line-height:1.35;
  text-align:left;
}
.ccr-client-dash-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.ccr-client-dash-section-head h3{
  margin:0;
  color:rgba(232,214,164,.90);
  text-shadow:0 0 16px rgba(232,214,164,.08);
  font-size:.9rem;
  line-height:1.2;
  letter-spacing:.01em;
  text-transform:none;
}
.ccr-client-dash-stats{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
}
.ccr-client-dash-stat,
.ccr-client-dash-note-card,
.ccr-client-dashboard-debug-grid div,
.ccr-client-dashboard-debug-pills em{
  border:1px solid rgba(255,255,255,.06);
  background:rgba(11,17,25,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.ccr-client-dash-stat{
  min-width:0;
  padding:10px 11px;
  border-radius:14px;
}
.ccr-client-dash-stat span,
.ccr-client-dash-note-card h4,
.ccr-client-dashboard-debug-grid span,
.ccr-client-dashboard-debug-pills > span{
  display:block;
  margin:0 0 5px;
  color:rgba(203,216,229,.58);
  font-size:.68rem;
  line-height:1.25;
  letter-spacing:.075em;
  text-transform:uppercase;
}
.ccr-client-dash-stat strong{
  display:block;
  min-width:0;
  color:rgba(240,245,252,.90);
  font-size:.88rem;
  line-height:1.28;
  font-weight:650;
  overflow-wrap:anywhere;
}
.ccr-client-dash-actions{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
}
.ccr-client-dash-action,
.ccr-client-dashboard-settings-row .settings-mini-btn{
  appearance:none;
  min-width:0;
  min-height:36px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  background:rgba(255,255,255,.030);
  color:var(--text, rgba(238,244,250,.90));
  padding:8px 11px;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  font-size:.72rem;
  font-weight:700;
  line-height:1.18;
  letter-spacing:.055em;
  text-align:center;
  text-transform:uppercase;
  cursor:pointer;
  transition:background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.ccr-client-dash-action:hover,
.ccr-client-dash-action:focus-visible,
.ccr-client-dashboard-settings-row .settings-mini-btn:hover,
.ccr-client-dashboard-settings-row .settings-mini-btn:focus-visible{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.16);
  color:var(--text, rgba(238,244,250,.96));
  outline:none;
}
.ccr-client-dash-action--primary,
.ccr-client-dash-action.is-on{
  border-color:rgba(232,214,164,.24);
  background:rgba(232,214,164,.075);
  color:rgba(232,214,164,.96);
}
.ccr-client-dashboard-settings-row .settings-mini-btn.is-active{
  background:rgba(79,163,255,.12);
  border-color:rgba(79,163,255,.26);
  color:#dcecff;
}
.ccr-client-dash-action.is-off{
  opacity:.70;
}
.ccr-client-dash-resources,
.ccr-client-dash-notes{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}
.ccr-client-dash-resource{
  position:relative;
  min-width:0;
  min-height:54px;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:center;
  gap:10px;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(11,17,25,.18);
  color:rgba(238,244,250,.88);
  text-decoration:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
  transition:background .18s ease, border-color .18s ease, color .18s ease;
}
.ccr-client-dash-resource:hover,
.ccr-client-dash-resource:focus-visible{
  background:rgba(255,255,255,.030);
  border-color:rgba(232,214,164,.20);
  color:rgba(244,232,190,.98);
  outline:none;
}
.ccr-client-dash-resource__label{
  min-width:0;
  width:100%;
  font-size:.88rem;
  line-height:1.32;
  font-weight:650;
  overflow-wrap:anywhere;
}

/* S27 — Admin dashboard resource removal control. */
.ccr-client-dash-resource-row{
  min-width:0;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:stretch;
  gap:8px;
}
.ccr-client-dash-resource-row.has-delete{
  grid-template-columns:minmax(0,1fr) 30px;
}
.ccr-client-dash-resource-delete{
  width:30px;
  min-width:30px;
  min-height:30px;
  align-self:center;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(232,214,164,.18);
  border-radius:999px;
  background:rgba(13,20,31,.46);
  color:rgba(232,214,164,.86);
  font:800 1rem/1 Inter,"Noto Sans JP",system-ui,sans-serif;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
  transition:background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.ccr-client-dash-resource-delete:hover,
.ccr-client-dash-resource-delete:focus-visible{
  background:rgba(122,42,42,.22);
  border-color:rgba(232,214,164,.32);
  color:#fff2c9;
  outline:none;
  transform:translateY(-1px);
}
@media (max-width:640px){
  .ccr-client-dash-resource-row.has-delete{
    grid-template-columns:minmax(0,1fr) 28px;
    gap:7px;
  }
  .ccr-client-dash-resource-delete{
    width:28px;
    min-width:28px;
    min-height:28px;
    font-size:.94rem;
  }
}
.ccr-client-dash-new{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  position:absolute;
  top:50%;
  right:8px;
  transform:translateY(-50%);
  padding:2px 6px;
  border-radius:999px;
  background:rgba(95,219,187,.12);
  color:rgba(126,245,216,.92);
  border:1px solid rgba(126,245,216,.22);
  font-size:.58rem;
  letter-spacing:.08em;
  font-weight:800;
}
.ccr-client-dash-note-card{
  min-height:96px;
  padding:12px;
  border-radius:14px;
}
.ccr-client-dash-note-card h4{
  color:rgba(232,214,164,.72);
}
.ccr-client-dash-note-card p{
  margin:0;
  color:rgba(232,238,244,.82);
  line-height:1.55;
  font-size:.90rem;
  overflow-wrap:anywhere;
}
.ccr-client-dash-empty,
.ccr-client-dash-loading,
.ccr-client-dashboard-settings-debug,
.ccr-client-dashboard-fallback-warning{
  margin:0;
  color:var(--text-2, rgba(203,216,229,.68));
  line-height:1.55;
  font-size:.90rem;
}
.ccr-client-dash-empty,
.ccr-client-dash-loading{
  padding:13px 14px;
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.08);
  background:rgba(7,16,24,.20);
}
.ccr-client-dash-loading{
  margin:16px 18px 20px;
}
.ccr-client-dash-loading.is-error{
  color:rgba(255,198,198,.92);
  border-color:rgba(255,130,130,.20);
}

/* Client Dashboard list inside SO. */
.ccr-client-dashboard-settings-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.ccr-client-dashboard-settings-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:14px;
  background:rgba(11,17,25,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.014);
}
.ccr-client-dashboard-settings-row__main{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.ccr-client-dashboard-settings-row__main strong{
  color:rgba(238,244,250,.92);
  letter-spacing:-.01em;
  overflow-wrap:anywhere;
}
.ccr-client-dashboard-settings-row__main span{
  color:rgba(203,216,229,.62);
  font-size:.80rem;
  line-height:1.35;
}
.ccr-client-dashboard-settings-row__main small,
.ccr-client-dashboard-settings-source{
  color:rgba(174,190,204,.48);
  font-size:.68rem;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.ccr-client-dashboard-settings-row .settings-mini-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
  flex:0 0 auto;
}
.ccr-client-dashboard-settings-debug{
  padding:10px 12px;
  border:1px dashed rgba(255,255,255,.08);
  border-radius:14px;
  background:rgba(7,16,24,.18);
  font-size:.72rem;
  overflow-wrap:anywhere;
}

/* Debug panels remain visually secondary. */
.ccr-client-dash-card--debug{
  border-style:dashed;
}
.ccr-client-dashboard-debug-grid,
.ccr-client-dashboard-completeness{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.ccr-client-dashboard-debug-grid div{
  border-radius:12px;
  padding:8px 10px;
  min-width:0;
}
.ccr-client-dashboard-debug-grid strong{
  display:block;
  color:rgba(236,244,250,.78);
  font-size:.76rem;
  line-height:1.35;
  font-weight:600;
  overflow-wrap:anywhere;
}
.ccr-client-dashboard-fallback-warning,
.ccr-client-dashboard-settings-source.is-warning{
  color:rgba(255,214,152,.84);
}
.ccr-client-dashboard-completeness-head{
  margin-top:4px;
}
.ccr-client-dashboard-debug-pills{
  min-width:0;
}
.ccr-client-dashboard-debug-pills p{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin:0;
}
.ccr-client-dashboard-debug-pills em{
  align-items:center;
  max-width:100%;
  border-radius:999px;
  color:rgba(236,244,250,.78);
  font-style:normal;
  font-size:.68rem;
  line-height:1.2;
  padding:4px 7px;
}

/* Notes / Coach submodal: same translucent shell grammar. */
.ccr-client-submodal{
  position:fixed;
  inset:0;
  z-index:9900;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  color:var(--text, rgba(238,244,250,.94));
  font-family:var(--font-sans, Inter, system-ui, sans-serif);
}
.ccr-client-submodal__box{
  position:relative;
  width:min(620px, calc(100vw - 32px));
  max-height:calc(100vh - 40px);
  overflow:auto;
  border:1px solid rgba(214,229,248,.13);
  border-radius:24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(124,160,205,.075), transparent 34%),
    linear-gradient(180deg, rgba(24,36,50,.78), rgba(8,14,23,.70));
  box-shadow:0 30px 82px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.052);
  backdrop-filter:blur(18px) saturate(1.12);
  padding:22px;
}
.ccr-client-submodal__close{
  position:absolute;
  top:12px;
  right:12px;
  min-width:36px;
  width:36px;
  height:36px;
  background:rgba(9,15,23,.72);
  border-color:rgba(255,255,255,.16);
  box-shadow:0 10px 24px rgba(0,0,0,.26);
}
.ccr-client-submodal__box h3{
  margin:0 44px 14px 0;
  color:rgba(232,214,164,.90);
  font-family:var(--font-sans, Inter, system-ui, sans-serif);
  font-size:1.12rem;
  line-height:1.2;
  letter-spacing:-.01em;
}
.ccr-client-submodal__textarea{
  width:100%;
  min-height:230px;
  resize:vertical;
  box-sizing:border-box;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(7,16,24,.20);
  color:rgba(238,244,250,.94);
  padding:14px;
  font:inherit;
  line-height:1.5;
  outline:none;
}
.ccr-client-submodal__textarea:focus{
  border-color:rgba(232,214,164,.28);
  box-shadow:0 0 0 3px rgba(232,214,164,.08);
}
.ccr-client-submodal__label{
  display:grid;
  gap:7px;
  margin:0 0 12px;
  color:rgba(203,216,229,.66);
  font-size:.72rem;
  letter-spacing:.075em;
  text-transform:uppercase;
  font-weight:700;
}
.ccr-client-submodal__input{
  width:100%;
  box-sizing:border-box;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(7,16,24,.20);
  color:rgba(238,244,250,.94);
  padding:11px 12px;
  font:inherit;
  line-height:1.4;
  outline:none;
}
.ccr-client-submodal__input:focus{
  border-color:rgba(232,214,164,.28);
  box-shadow:0 0 0 3px rgba(232,214,164,.08);
}
.ccr-client-submodal__status{
  min-height:20px;
  color:rgba(232,214,164,.86);
  margin:10px 0 0;
  font-size:.86rem;
}
.ccr-client-submodal__footer{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:14px;
}

/* Standalone viewer keeps the same dashboard cards while using full-page chrome. */
.ccr-client-standalone-page{
  min-height:100vh;
  margin:0;
  background:
    radial-gradient(circle at 18% 0%, rgba(84,135,165,.25), transparent 36%),
    linear-gradient(180deg, #07101a 0%, #03070c 100%);
  color:rgba(238,244,250,.94);
  font-family:var(--font-sans, Inter, system-ui, sans-serif);
}
.ccr-client-standalone-wrap{
  width:min(920px, calc(100% - 32px));
  margin:0 auto;
  padding:clamp(18px, 4vw, 42px) 0;
}
.ccr-client-standalone-wrap .ccr-client-dash{
  position:relative;
  border:1px solid rgba(214,229,248,.13);
  border-radius:24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(124,160,205,.075), transparent 34%),
    linear-gradient(180deg, rgba(24,36,50,.78), rgba(8,14,23,.70));
  box-shadow:0 30px 82px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.052);
}

@media (max-width:760px){
  .ccr-client-dash-shell{
    top:max(8px, calc(env(safe-area-inset-top, 0px) + 8px));
    left:max(6px, calc(env(safe-area-inset-left, 0px) + 6px));
    right:max(6px, calc(env(safe-area-inset-right, 0px) + 6px));
    bottom:max(8px, calc(env(safe-area-inset-bottom, 0px) + 8px));
    width:auto;
    border-radius:20px;
  }
  .ccr-client-dash-shell-head{
    padding:16px 14px 12px;
  }
  .ccr-client-dash-shell-head h2{
    font-size:1.2rem;
  }
  .ccr-client-dash-shell-subtitle{
    font-size:.88rem;
  }
  .ccr-client-dash-scroll{
    scrollbar-gutter:stable;
  }
  .ccr-client-dash{
    gap:9px;
    padding:10px 8px 14px;
  }
  .ccr-client-dash-head,
  .ccr-client-dash-card{
    gap:8px;
    padding:10px 9px;
    border-radius:16px;
  }
  .ccr-client-dash-head{
    grid-template-columns:1fr;
  }
  .ccr-client-dash-status{
    align-items:flex-start;
    min-width:0;
  }
  .ccr-client-dash-status small{
    text-align:left;
  }
  .ccr-client-dash-stats,
  .ccr-client-dash-actions,
  .ccr-client-dashboard-debug-grid,
  .ccr-client-dashboard-completeness{
    grid-template-columns:1fr;
  }
  .ccr-client-dash-action{
    width:100%;
    min-height:40px;
  }
  .ccr-client-dashboard-settings-row{
    align-items:stretch;
    flex-direction:column;
    gap:10px;
    padding:10px;
  }
  .ccr-client-dashboard-settings-row .settings-mini-actions,
  .ccr-client-submodal__footer{
    display:grid;
    grid-template-columns:1fr;
    width:100%;
  }
  .ccr-client-dashboard-settings-row .settings-mini-btn,
  .ccr-client-submodal__footer .ccr-client-dash-action{
    width:100%;
    justify-content:center;
  }
  .ccr-client-submodal{
    padding:10px;
  }
  .ccr-client-submodal__box{
    width:calc(100vw - 20px);
    max-height:calc(100vh - 20px);
    border-radius:20px;
    padding:18px;
  }
  .ccr-client-submodal__textarea{
    min-height:260px;
  }
  .ccr-client-standalone-wrap{
    width:min(100% - 18px, 920px);
    padding:10px 0 18px;
  }
}
@media (hover:hover){
  .ccr-client-dash-action:hover,
  .ccr-client-dash-resource:hover,
  .ccr-client-dashboard-settings-row .settings-mini-btn:hover{
    transform:translateY(-1px);
  }
}


/* Admin editable Client Dashboard overlay — first safe field-level editor. */
.ccr-client-dash.is-editing{
  gap:12px;
}
.ccr-client-edit-form{
  display:grid;
  gap:12px;
}
.ccr-client-edit-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}
.ccr-client-edit-field{
  display:grid;
  gap:6px;
  min-width:0;
  color:rgba(203,216,229,.62);
  font-size:.68rem;
  line-height:1.2;
  letter-spacing:.075em;
  text-transform:uppercase;
  font-weight:700;
}
.ccr-client-edit-field--wide{
  grid-column:1 / -1;
}
.ccr-client-edit-field input,
.ccr-client-edit-field textarea,
.ccr-client-edit-resource-row input[type="text"]{
  width:100%;
  box-sizing:border-box;
  border:1px solid rgba(255,255,255,.08);
  border-radius:13px;
  background:rgba(5,11,18,.24);
  color:rgba(238,244,250,.94);
  padding:10px 11px;
  font:inherit;
  font-size:.82rem;
  line-height:1.35;
  letter-spacing:0;
  text-transform:none;
  outline:none;
}
.ccr-client-edit-field textarea{
  min-height:86px;
  resize:vertical;
}
.ccr-client-edit-field input:focus,
.ccr-client-edit-field textarea:focus,
.ccr-client-edit-resource-row input[type="text"]:focus{
  border-color:rgba(232,214,164,.28);
  box-shadow:0 0 0 3px rgba(232,214,164,.075);
}
.ccr-client-edit-resources{
  display:grid;
  gap:8px;
}
.ccr-client-edit-resource-row{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr) auto;
  align-items:end;
  gap:8px;
  padding:9px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:14px;
  background:rgba(8,14,22,.18);
}
.ccr-client-edit-resource-row label{
  display:grid;
  gap:5px;
  min-width:0;
  color:rgba(203,216,229,.58);
  font-size:.66rem;
  line-height:1.2;
  letter-spacing:.075em;
  text-transform:uppercase;
  font-weight:700;
}
.ccr-client-edit-resource-new-group{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:5px;
  min-height:38px;
  white-space:nowrap;
}
.ccr-client-edit-resource-new-title{
  color:rgba(203,216,229,.48);
  font-size:.58rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:800;
}
.ccr-client-edit-resource-new{
  display:inline-flex !important;
  grid-template-columns:none !important;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-height:30px;
  padding:0 7px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:999px;
  background:rgba(255,255,255,.025);
  color:rgba(203,216,229,.66);
  font-size:.58rem !important;
  letter-spacing:.06em !important;
  white-space:nowrap;
  cursor:pointer;
}
.ccr-client-edit-resource-new input{
  width:12px;
  height:12px;
  margin:0;
  accent-color:#e8d6a4;
}
.ccr-client-edit-hint,
.ccr-client-edit-status{
  margin:0;
  color:rgba(203,216,229,.56);
  font-size:.76rem;
  line-height:1.45;
}
.ccr-client-edit-status{
  min-height:20px;
  color:rgba(232,214,164,.86);
}
.ccr-client-edit-footer{
  display:grid;
  gap:8px;
}
@media (max-width:760px){
  .ccr-client-edit-grid,
  .ccr-client-edit-resource-row{
    grid-template-columns:1fr;
  }
  .ccr-client-edit-resource-new-group{
    justify-content:flex-start;
    flex-wrap:wrap;
  }
}

/* r9047: new-build client dashboard creation panel inside admin SO */
.ccr-client-dashboard-create-panel{
  display:grid;
  gap:10px;
  margin:0 0 12px;
  padding:10px;
  border:1px solid rgba(232,214,164,.12);
  border-radius:16px;
  background:rgba(7,14,24,.18);
}
.ccr-client-dashboard-create-bar,
.ccr-client-dashboard-create-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}
.ccr-client-dashboard-create-status{
  margin:0;
  color:rgba(232,214,164,.92);
  font-size:.78rem;
  line-height:1.35;
}
.ccr-client-dashboard-create-status.is-error{
  color:rgba(255,170,170,.94);
}
.ccr-client-dashboard-create-form{
  display:grid;
  gap:10px;
  padding-top:2px;
}
.ccr-client-dashboard-create-form p{
  margin:0;
  color:rgba(203,216,229,.62);
  font-size:.78rem;
  line-height:1.45;
}
.ccr-client-dashboard-create-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.ccr-client-dashboard-create-grid label{
  display:grid;
  gap:5px;
  min-width:0;
  color:rgba(203,216,229,.62);
  font-size:.66rem;
  line-height:1.2;
  letter-spacing:.075em;
  text-transform:uppercase;
  font-weight:700;
}
.ccr-client-dashboard-create-grid label.is-wide{
  grid-column:1 / -1;
}
.ccr-client-dashboard-create-grid input,
.ccr-client-dashboard-create-grid textarea{
  width:100%;
  box-sizing:border-box;
  border:1px solid rgba(255,255,255,.08);
  border-radius:13px;
  background:rgba(5,11,18,.24);
  color:rgba(238,244,250,.94);
  padding:10px 11px;
  font:inherit;
  font-size:.82rem;
  line-height:1.35;
  letter-spacing:0;
  text-transform:none;
  outline:none;
}
.ccr-client-dashboard-create-grid textarea{
  resize:vertical;
  min-height:78px;
}
.ccr-client-dashboard-create-grid input:focus,
.ccr-client-dashboard-create-grid textarea:focus{
  border-color:rgba(232,214,164,.28);
  box-shadow:0 0 0 3px rgba(232,214,164,.075);
}
@media (max-width:760px){
  .ccr-client-dashboard-create-grid{
    grid-template-columns:1fr;
  }
}

/* r10312 dashboard resource upload overlay */
.ccr-client-submodal__intro{
  margin:0 0 14px;
  color:rgba(203,216,229,.72);
  font-size:.88rem;
  line-height:1.5;
}
.ccr-client-dash-action--upload{
  border-color:rgba(232,214,164,.22);
  background:rgba(232,214,164,.060);
  color:rgba(232,214,164,.94);
}
.ccr-client-resource-upload-picker{
  display:grid;
  gap:8px;
  margin:0 0 12px;
  color:rgba(203,216,229,.68);
  font-size:.82rem;
}
.ccr-client-resource-upload-picker input[type="file"]{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  white-space:nowrap;
}
.ccr-client-resource-upload-picker em{
  display:block;
  min-height:20px;
  color:rgba(238,244,250,.74);
  font-style:normal;
  overflow-wrap:anywhere;
}
.ccr-client-resource-upload-picker:focus-within .ccr-client-dash-action{
  border-color:rgba(232,214,164,.30);
  box-shadow:0 0 0 3px rgba(232,214,164,.08);
}

/* r10355 — discreet admin dashboard update notification control */
.ccr-client-dash-head-actions{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  flex:0 0 auto;
  gap:6px;
}
/* r10356 — keep admin dashboard Notify inside the header, but pin it to the top right. */
.ccr-client-dash-head:has(.ccr-client-dash-head-actions){
  position:relative;
}
.ccr-client-dash-head:has(.ccr-client-dash-head-actions) > div:first-child{
  padding-right:96px;
}
.ccr-client-dash-head:has(.ccr-client-dash-head-actions) .ccr-client-dash-head-actions{
  position:absolute;
  top:13px;
  right:14px;
  z-index:3;
  justify-content:flex-end;
}
.ccr-client-dash-head-actions .ccr-client-dash-action--notify{
  width:auto;
  min-height:30px;
  padding:6px 11px;
  border-color:rgba(232,214,164,.18);
  background:rgba(232,214,164,.045);
  color:rgba(232,214,164,.88);
  font-size:.66rem;
  letter-spacing:.08em;
  box-shadow:none;
}
.ccr-client-dash-head-actions .ccr-client-dash-action--notify:hover,
.ccr-client-dash-head-actions .ccr-client-dash-action--notify:focus-visible{
  border-color:rgba(232,214,164,.30);
  background:rgba(232,214,164,.085);
  color:rgba(255,242,202,.98);
}

@media (max-width:640px){
  .ccr-client-dash-head:has(.ccr-client-dash-head-actions) > div:first-child{
    padding-right:82px;
  }
  .ccr-client-dash-head:has(.ccr-client-dash-head-actions) .ccr-client-dash-head-actions{
    top:10px;
    right:10px;
  }
  .ccr-client-dash-head:has(.ccr-client-dash-head-actions) .ccr-client-dash-action--notify{
    min-height:28px;
    padding:5px 9px;
    font-size:.62rem;
  }
}
.ccr-dashboard-notify-recipient{
  margin:4px 0 12px;
  color:rgba(203,216,229,.70);
  font-size:.82rem;
  overflow-wrap:anywhere;
}
.ccr-dashboard-notify-preview{
  display:grid;
  gap:7px;
  margin:12px 0 0;
  padding:11px 12px;
  border:1px solid rgba(255,255,255,.085);
  border-radius:14px;
  background:rgba(255,255,255,.032);
}
.ccr-dashboard-notify-preview span{
  color:rgba(203,216,229,.56);
  font-size:.68rem;
  font-weight:700;
  letter-spacing:.10em;
  text-transform:uppercase;
}
.ccr-dashboard-notify-preview strong{
  color:rgba(244,248,252,.92);
  font-size:.84rem;
}
.ccr-dashboard-notify-preview pre{
  margin:0;
  white-space:pre-wrap;
  color:rgba(238,244,250,.86);
  font:500 .82rem/1.48 var(--font-sans, Inter, system-ui, sans-serif);
}

/* S37 — dashboard HTML resource viewer overlay.
   Same-origin .html/.htm dashboard resource links open in an in-shell iframe
   while external links and non-HTML files keep their normal target behavior. */
.ccr-client-html-viewer-layer[hidden]{
  display:none !important;
}
body.ccr-client-html-viewer-open{
  overflow:hidden;
}
body.ccr-client-html-viewer-open .mobile-bottom-dock{
  display:none !important;
}
.ccr-client-html-viewer-layer{
  position:fixed;
  inset:0;
  z-index:9905;
  color:var(--text, rgba(238,244,250,.94));
  font-family:var(--font-sans, Inter, system-ui, sans-serif);
}
.ccr-client-html-viewer-backdrop{
  position:absolute;
  inset:0;
  background:rgba(4,8,15,.48);
  backdrop-filter:blur(10px) saturate(1.08);
}
.ccr-client-html-viewer-shell{
  position:absolute;
  top:max(18px, env(safe-area-inset-top, 0px) + 12px);
  left:max(20px, env(safe-area-inset-left, 0px) + 14px);
  right:max(20px, env(safe-area-inset-right, 0px) + 14px);
  bottom:max(18px, env(safe-area-inset-bottom, 0px) + 12px);
  width:min(1180px, calc(100vw - 40px));
  margin-inline:auto;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(214,229,248,.16);
  border-radius:24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(232,214,164,.08), transparent 32%),
    linear-gradient(180deg, rgba(22,33,46,.90), rgba(7,12,20,.86));
  box-shadow:0 34px 90px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter:blur(18px) saturate(1.12);
}
.ccr-client-html-viewer-head{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:64px;
  padding:13px 14px 12px 18px;
  border-bottom:1px solid rgba(255,255,255,.09);
  background:linear-gradient(180deg, rgba(27,39,53,.94), rgba(18,28,40,.92));
}
.ccr-client-html-viewer-titlewrap{
  min-width:0;
  flex:1 1 auto;
}
.ccr-client-html-viewer-titlewrap p{
  margin:0 0 4px;
  color:rgba(232,214,164,.76);
  font-size:.66rem;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.ccr-client-html-viewer-titlewrap h2{
  margin:0;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:rgba(244,248,252,.95);
  font-size:1rem;
  line-height:1.12;
  letter-spacing:-.01em;
}
.ccr-client-html-viewer-actions{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}
.ccr-client-html-viewer-open-tab{
  display:none !important;
  /* S39: in-app HTML openings no longer expose an Open in new tab action. */

  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:7px 11px;
  border:1px solid rgba(232,214,164,.22);
  border-radius:999px;
  background:rgba(232,214,164,.06);
  color:rgba(255,242,202,.94);
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.08em;
  text-decoration:none;
  text-transform:uppercase;
  white-space:nowrap;
}
.ccr-client-html-viewer-open-tab:hover,
.ccr-client-html-viewer-open-tab:focus-visible{
  border-color:rgba(232,214,164,.34);
  background:rgba(232,214,164,.11);
  color:rgba(255,248,220,.98);
}
.ccr-client-html-viewer-close{
  flex:0 0 auto;
  width:36px;
  height:36px;
}
.ccr-client-html-viewer-framewrap{
  position:relative;
  flex:1 1 auto;
  min-height:0;
  background:rgba(2,5,9,.72);
}
.ccr-client-html-viewer-frame{
  display:block;
  width:100%;
  height:100%;
  border:0;
  background:#fff;
}

/* S40 — opt-in single-resource mobile preview hard viewport + height cap.
   Dashboard HTML links tagged with ?ccr_mobile_preview=1 render inside a
   real phone-width iframe/device wrapper on desktop. Untagged S37 HTML
   overlays are unchanged, the in-overlay Open in new tab control is gone,
   and the simulated phone no longer stretches vertically on 4K displays. */
.ccr-client-html-viewer-preview-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left:0;
  padding:3px 9px;
  border:1px solid rgba(232,214,164,.24);
  border-radius:999px;
  color:rgba(255,242,202,.95);
  background:rgba(232,214,164,.09);
  font-size:.56rem;
  font-weight:850;
  line-height:1.1;
  letter-spacing:.12em;
  text-transform:uppercase;
  vertical-align:middle;
  white-space:nowrap;
  pointer-events:none;
}
.ccr-client-html-viewer-layer.is-mobile-preview:not(.is-shadow-play-admin-console) .ccr-client-html-viewer-head{
  position:relative;
}
.ccr-client-html-viewer-layer.is-mobile-preview:not(.is-shadow-play-admin-console) .ccr-client-html-viewer-preview-badge{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  z-index:2;
}
.ccr-client-html-viewer-layer.is-mobile-preview .ccr-client-html-viewer-framewrap{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;
  overflow:auto;
  background:
    radial-gradient(circle at 50% 0%, rgba(232,214,164,.10), transparent 34%),
    rgba(2,5,9,.78);
}
.ccr-client-html-viewer-layer.is-mobile-preview .ccr-client-html-viewer-device{
  flex:0 0 auto;
  display:flex;
  width:min(var(--ccr-client-html-mobile-preview-width, 390px), calc(100vw - 56px));
  max-width:100%;
  height:min(var(--ccr-client-html-mobile-preview-height, 844px), 100%);
  max-height:100%;
  min-height:0;
  aspect-ratio:390 / 844;
  overflow:hidden;
  border:1px solid rgba(214,229,248,.16);
  border-radius:22px;
  background:#fff;
  box-shadow:0 22px 64px rgba(0,0,0,.38);
}
.ccr-client-html-viewer-layer.is-mobile-preview .ccr-client-html-viewer-frame{
  flex:1 1 auto;
  display:block;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  height:100%;
  min-height:0;
  border:0;
  border-radius:0;
  box-shadow:none;
  overflow:hidden;
}

/* S50J — keep Shadow Play iframe surface black until the app splash has painted.
   This prevents the browser's blank iframe document/device background from flashing white. */
.ccr-client-html-viewer-layer.is-shadow-play .ccr-client-html-viewer-framewrap{
  position:relative;
  background:#000;
}
.ccr-client-html-viewer-layer.is-shadow-play.is-mobile-preview .ccr-client-html-viewer-device{
  position:relative;
  isolation:isolate;
  background:#000;
}
.ccr-client-html-viewer-layer.is-shadow-play .ccr-client-html-viewer-frame{
  position:relative;
  z-index:1;
  background:#000;
  color-scheme:dark;
}
.ccr-client-html-viewer-layer.is-shadow-play-frame-loading .ccr-client-html-viewer-framewrap::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:8;
  background:#000;
  pointer-events:none;
}
.ccr-client-html-viewer-layer.is-shadow-play-frame-loading.is-mobile-preview .ccr-client-html-viewer-device::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:9;
  background:#000;
  pointer-events:none;
}

@media (max-width:760px), (pointer:coarse){
  .ccr-client-html-viewer-shell{
    top:0;
    left:0;
    right:0;
    bottom:0;
    width:100vw;
    max-width:none;
    border-width:0;
    border-radius:0;
  }
  .ccr-client-html-viewer-head{
    min-height:58px;
    padding:calc(env(safe-area-inset-top, 0px) + 8px) calc(env(safe-area-inset-right, 0px) + 10px) 8px calc(env(safe-area-inset-left, 0px) + 12px);
    gap:8px;
  }
  .ccr-client-html-viewer-titlewrap p{
    font-size:.58rem;
    margin-bottom:3px;
  }
  .ccr-client-html-viewer-titlewrap h2{
    font-size:.88rem;
  }
  .ccr-client-html-viewer-open-tab{
    min-height:31px;
    padding:6px 9px;
    font-size:.58rem;
    letter-spacing:.06em;
  }
  .ccr-client-html-viewer-close{
    width:34px;
    height:34px;
  }
  .ccr-client-html-viewer-framewrap{
    padding-bottom:env(safe-area-inset-bottom, 0px);
  }
  .ccr-client-html-viewer-layer.is-mobile-preview .ccr-client-html-viewer-framewrap{
    display:block;
    padding:0 0 env(safe-area-inset-bottom, 0px);
    overflow:hidden;
  }
  .ccr-client-html-viewer-layer.is-mobile-preview .ccr-client-html-viewer-device{
    width:100%;
    height:100%;
    border:0;
    border-radius:0;
    box-shadow:none;
  }
  .ccr-client-html-viewer-layer.is-mobile-preview .ccr-client-html-viewer-frame{
    width:100% !important;
    height:100%;
    border:0;
    border-radius:0;
    box-shadow:none;
  }

}


/* S46 — dashboard mobile active-element selection polish.
   Text blocks remain selectable; dashboard controls/resource actions do not show
   mobile blue selection/tap rectangles when touched. */
@media (hover:none), (pointer:coarse), (max-width:760px){
  :where(
    a,
    button,
    summary,
    label[for],
    label[role="button"],
    [role="button"],
    [role="tab"],
    [role="menuitem"],
    [aria-pressed],
    [aria-expanded],
    .ui-btn,
    .ccr-client-dashboard-btn,
    .ccr-client-dashboard-chip,
    .ccr-client-dashboard-tab,
    .ccr-client-dashboard-resource-action,
    .ccr-client-dashboard-resource-link,
    .ccr-client-dashboard-resource-item__action,
    .ccr-client-html-viewer-close,
    .ccr-client-html-viewer-preview-badge,
    .ccr-client-html-viewer-open-tab
  ),
  :where(
    a,
    button,
    summary,
    label[for],
    label[role="button"],
    [role="button"],
    [role="tab"],
    [role="menuitem"],
    [aria-pressed],
    [aria-expanded],
    .ui-btn,
    .ccr-client-dashboard-btn,
    .ccr-client-dashboard-chip,
    .ccr-client-dashboard-tab,
    .ccr-client-dashboard-resource-action,
    .ccr-client-dashboard-resource-link,
    .ccr-client-dashboard-resource-item__action,
    .ccr-client-html-viewer-close,
    .ccr-client-html-viewer-preview-badge,
    .ccr-client-html-viewer-open-tab
  ) *{
    -webkit-user-select:none !important;
    user-select:none !important;
    -webkit-touch-callout:none !important;
    -webkit-tap-highlight-color:transparent !important;
  }

  :where(a, button, summary, label[for], label[role="button"], [role="button"], [role="tab"], [role="menuitem"], .ui-btn, .ccr-client-dashboard-btn):focus:not(:focus-visible){
    outline:none !important;
  }

  
}

/* S50A — Shadow Play Teacher Console, CCR/SO transparent overlay shell */
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-shell{
  width:min(98vw,1880px);
  height:min(94vh,1040px);
  display:grid;
  grid-template-columns:minmax(230px,310px) minmax(390px,1fr) minmax(260px,390px);
  grid-template-rows:auto minmax(0,1fr);
  gap:12px;
  padding:14px;
  background:linear-gradient(145deg,rgba(6,12,24,.38),rgba(7,18,32,.24));
  border:1px solid rgba(215,176,86,.32);
  box-shadow:0 32px 90px rgba(0,0,0,.46), inset 0 0 0 1px rgba(255,255,255,.045);
  backdrop-filter:blur(10px) saturate(1.1);
  -webkit-backdrop-filter:blur(10px) saturate(1.1);
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-head{
  grid-column:1 / -1;
  grid-row:1;
  background:rgba(4,12,24,.18);
  border:1px solid rgba(215,176,86,.20);
  border-radius:18px;
  padding:10px 12px;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-framewrap{
  grid-column:2;
  grid-row:2;
  min-width:0;
  min-height:0;
  height:100%;
  border-radius:22px;
  background:rgba(3,9,18,.18);
  border:1px solid rgba(255,255,255,.07);
  box-shadow:inset 0 0 32px rgba(0,0,0,.18);
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-mobile-preview .ccr-client-html-viewer-framewrap{
  align-items:center;
  justify-content:center;
}
.ccr-shadow-admin-console{
  min-width:0;
  min-height:0;
  overflow:hidden;
  border-radius:22px;
  border:1px solid rgba(215,176,86,.26);
  background:linear-gradient(160deg,rgba(9,18,34,.34),rgba(8,20,34,.18));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04),0 18px 52px rgba(0,0,0,.24);
  backdrop-filter:blur(12px) saturate(1.12);
  -webkit-backdrop-filter:blur(12px) saturate(1.12);
  color:rgba(244,248,255,.92);
  display:flex;
  flex-direction:column;
}

.ccr-shadow-admin-console :where(button,input,select,textarea,summary,pre,code,span,strong,small,h1,h2,h3,h4,p,div){
  font-family:var(--ccr-shadow-console-font);
}
.ccr-shadow-admin-console--left{grid-column:1;grid-row:2;}
.ccr-shadow-admin-console--right{grid-column:3;grid-row:2;}
.ccr-shadow-console-head{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px 10px;
  border-bottom:1px solid rgba(215,176,86,.17);
  background:linear-gradient(90deg,rgba(215,176,86,.12),rgba(255,255,255,.025));
}
.ccr-shadow-console-head p{
  margin:0;
  color:rgba(215,176,86,.86);
  font:700 10px/1.1 var(--ccr-shadow-console-font);
  text-transform:uppercase;
  letter-spacing:.16em;
}
.ccr-shadow-console-head h3{
  margin:0;
  color:rgba(255,255,255,.94);
  font:760 15px/1.12 var(--ccr-shadow-console-font);
  letter-spacing:.02em;
}
.ccr-shadow-console-title{
  min-width:0;
  flex:1;
}
.ccr-shadow-console-refresh{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:86px;
  height:30px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(215,176,86,.38);
  color:rgba(255,255,255,.92);
  background:linear-gradient(135deg,rgba(215,176,86,.16),rgba(255,255,255,.045));
  cursor:pointer;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.045),0 8px 20px rgba(0,0,0,.16);
  font:760 11px/1 var(--ccr-shadow-console-font);
  letter-spacing:.055em;
  text-transform:uppercase;
  white-space:nowrap;
  transition:transform .16s ease,border-color .16s ease,background .16s ease,opacity .16s ease;
}
.ccr-shadow-console-refresh:hover{
  transform:translateY(-1px);
  border-color:rgba(236,201,112,.58);
  background:linear-gradient(135deg,rgba(215,176,86,.24),rgba(255,255,255,.07));
}
.ccr-shadow-console-refresh:disabled{
  opacity:.62;
  cursor:wait;
}
.ccr-shadow-console-refresh.is-refreshing span{
  display:inline-block;
  animation:ccr-shadow-console-spin .9s linear infinite;
}
.ccr-shadow-console-refresh-status{
  margin:9px 10px 0;
  padding:7px 9px;
  border:1px solid rgba(215,176,86,.18);
  border-radius:12px;
  background:rgba(1,8,18,.2);
  color:rgba(236,201,112,.86);
  font:700 10px/1.25 var(--ccr-shadow-console-font);
  letter-spacing:.07em;
  text-transform:uppercase;
}
.ccr-shadow-console-refresh-status:empty,
.ccr-shadow-console-refresh-status[hidden]{
  display:none;
}
@keyframes ccr-shadow-console-spin{
  to{transform:rotate(360deg);}
}
.ccr-shadow-console-section{
  padding:10px;
  overflow:auto;
}
.ccr-shadow-console-section + .ccr-shadow-console-section{
  border-top:1px solid rgba(255,255,255,.06);
}
.ccr-shadow-console-metrics{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.ccr-shadow-console-metrics div{
  border:1px solid rgba(215,176,86,.18);
  border-radius:14px;
  background:rgba(1,8,18,.22);
  padding:9px 10px;
}
.ccr-shadow-console-metrics span,
.ccr-shadow-score-row span{
  display:block;
  color:rgba(210,224,245,.68);
  font:600 10px/1.1 var(--ccr-shadow-console-font);
  text-transform:uppercase;
  letter-spacing:.09em;
}
.ccr-shadow-console-metrics strong{
  display:block;
  margin-top:3px;
  color:rgba(255,255,255,.96);
  font:760 18px/1 var(--ccr-shadow-console-font);
}
.ccr-shadow-console-users,
.ccr-shadow-console-recordings{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.ccr-shadow-console-user,
.ccr-shadow-console-recording{
  width:100%;
  text-align:left;
  display:grid;
  gap:8px;
  align-items:center;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.035);
  color:rgba(244,248,255,.92);
  border-radius:16px;
  padding:9px;
  cursor:pointer;
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}
.ccr-shadow-console-user{
  grid-template-columns:34px minmax(0,1fr) auto;
}
.ccr-shadow-console-recording{
  grid-template-columns:62px minmax(0,1fr) 44px;
}
.ccr-shadow-console-user:hover,
.ccr-shadow-console-recording:hover,
.ccr-shadow-console-user.is-active{
  border-color:rgba(215,176,86,.48);
  background:rgba(215,176,86,.10);
  transform:translateY(-1px);
}
.ccr-shadow-console-user__badge{
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:999px;
  background:rgba(215,176,86,.16);
  border:1px solid rgba(215,176,86,.32);
  color:rgba(255,229,166,.96);
  font:800 12px/1 var(--ccr-shadow-console-font);
  letter-spacing:.06em;
}
.ccr-shadow-console-user strong,
.ccr-shadow-console-recording strong{
  display:block;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  color:rgba(255,255,255,.96);
  font:700 12px/1.1 var(--ccr-shadow-console-font);
}
.ccr-shadow-console-user small,
.ccr-shadow-console-recording small{
  display:block;
  margin-top:3px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  color:rgba(210,224,245,.62);
  font:600 10px/1.15 var(--ccr-shadow-console-font);
}
.ccr-shadow-console-user__stats,
.ccr-shadow-console-recording > span:last-child{
  text-align:right;
}
.ccr-shadow-console-user__stats b,
.ccr-shadow-console-recording b{
  display:block;
  color:rgba(255,229,166,.98);
  font:800 15px/1 var(--ccr-shadow-console-font);
}
.ccr-shadow-console-recording__text{
  
  
  
  color:rgba(244,248,255,.86);
  font:600 12px/1.2 var(--ccr-shadow-console-font);
}
.ccr-shadow-detail-card{
  border:1px solid rgba(215,176,86,.20);
  background:rgba(2,8,18,.20);
  border-radius:18px;
  padding:12px;
}
.ccr-shadow-detail-kicker{
  color:rgba(215,176,86,.9);
  font:800 10px/1 var(--ccr-shadow-console-font);
  text-transform:uppercase;
  letter-spacing:.14em;
}
.ccr-shadow-detail-card h3{
  margin:6px 0 8px;
  color:rgba(255,255,255,.96);
  font:760 15px/1.25 var(--ccr-shadow-console-font);
}
.ccr-shadow-detail-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:0 0 10px;
}
.ccr-shadow-detail-meta span{
  border:1px solid rgba(255,255,255,.09);
  border-radius:999px;
  background:rgba(255,255,255,.04);
  padding:4px 8px;
  color:rgba(210,224,245,.74);
  font:600 10px/1 var(--ccr-shadow-console-font);
}
.ccr-shadow-detail-audio{
  
  margin:4px 0 10px;
}
.ccr-shadow-score-card{
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(255,255,255,.035);
  overflow:hidden;
}
.ccr-shadow-score-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;
  background:rgba(215,176,86,.10);
}
.ccr-shadow-score-head span{
  color:rgba(215,176,86,.92);
  font:800 10px/1 var(--ccr-shadow-console-font);
  text-transform:uppercase;
  letter-spacing:.12em;
}
.ccr-shadow-score-head strong{
  color:rgba(255,255,255,.98);
  font:800 28px/1 var(--ccr-shadow-console-font);
}
.ccr-shadow-score-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:8px 12px;
  border-top:1px solid rgba(255,255,255,.06);
}
.ccr-shadow-score-row strong{
  color:rgba(255,229,166,.96);
  font:800 14px/1 var(--ccr-shadow-console-font);
}
.ccr-shadow-metadata{
  margin-top:10px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:rgba(255,255,255,.035);
  overflow:hidden;
}
.ccr-shadow-metadata summary{
  cursor:pointer;
  padding:10px 12px;
  color:rgba(215,176,86,.9);
  font:800 11px/1 var(--ccr-shadow-console-font);
  text-transform:uppercase;
  letter-spacing:.11em;
}
.ccr-shadow-metadata pre{
  max-height:320px;
  overflow:auto;
  margin:0;
  padding:10px;
  color:rgba(222,235,255,.78);
  background:rgba(0,0,0,.22);
  font:500 11px/1.45 var(--ccr-shadow-console-font);
  white-space:pre-wrap;
}
.ccr-shadow-console-empty,
.ccr-shadow-console-loading,
.ccr-shadow-console-error{
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(255,255,255,.035);
  color:rgba(210,224,245,.72);
  padding:12px;
  font:600 12px/1.35 var(--ccr-shadow-console-font);
}
.ccr-shadow-console-error{
  border-color:rgba(255,128,128,.28);
  color:rgba(255,190,190,.94);
  background:rgba(120,20,20,.16);
}
@media (max-width:1180px){
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-shell{
    grid-template-columns:minmax(320px,1fr) minmax(320px,1fr);
    grid-template-rows:auto minmax(0,1fr) minmax(240px,38vh);
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-framewrap{grid-column:1 / -1;grid-row:2;}
  .ccr-shadow-admin-console--left{grid-column:1;grid-row:3;}
  .ccr-shadow-admin-console--right{grid-column:2;grid-row:3;}
}
@media (max-width:760px){
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-shell{
    
    
    
    
    grid-template-rows:auto minmax(0,1fr) minmax(210px,34dvh) minmax(210px,34dvh);
    padding:8px;
  }
  
  .ccr-shadow-admin-console--left{grid-column:1;grid-row:3;}
  .ccr-shadow-admin-console--right{grid-column:1;grid-row:4;}
}


/* S50D — Shadow Play Teacher Console professional CCR/SO layout polish */
body.ccr-shadow-play-admin-console-open [data-client-dashboard-history-launcher],
body.ccr-shadow-play-admin-console-open [data-client-dashboard-visit-notice]{
  display:none !important;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-head{
  padding:12px 14px;
  background:linear-gradient(90deg,rgba(215,176,86,.14),rgba(4,13,26,.18) 54%,rgba(255,255,255,.03));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.035);
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-titlewrap p{
  color:rgba(223,188,101,.92);
  font-family:var(--ccr-shadow-console-font);
  letter-spacing:.16em;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-titlewrap h2{
  color:rgba(255,255,255,.96);
  font-family:var(--ccr-shadow-console-font);
  font-weight:780;
  letter-spacing:.015em;
}
.ccr-shadow-console-block-label,
.ccr-shadow-detail-section-label{
  padding:10px 12px 0;
  color:rgba(215,176,86,.76);
  font:800 9px/1 var(--ccr-shadow-console-font);
  text-transform:uppercase;
  letter-spacing:.16em;
}
.ccr-shadow-console-block-label + .ccr-shadow-console-section{
  border-top:0;
  padding-top:8px;
}
.ccr-shadow-admin-console{
  background:linear-gradient(160deg,rgba(8,18,34,.30),rgba(8,20,34,.13));
  border-color:rgba(215,176,86,.24);
}
.ccr-shadow-console-head{
  min-height:58px;
  background:linear-gradient(90deg,rgba(215,176,86,.13),rgba(255,255,255,.022));
}
.ccr-shadow-console-metrics{
  gap:7px;
}
.ccr-shadow-console-metrics div{
  background:rgba(1,8,18,.18);
  border-color:rgba(215,176,86,.16);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.025);
}
.ccr-shadow-console-metrics strong{
  color:rgba(255,244,210,.96);
}
.ccr-shadow-console-user,
.ccr-shadow-console-recording{
  background:rgba(255,255,255,.028);
  border-color:rgba(255,255,255,.075);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.018);
}
.ccr-shadow-console-user:hover,
.ccr-shadow-console-recording:hover,
.ccr-shadow-console-user.is-active,
.ccr-shadow-console-recording.is-active{
  border-color:rgba(226,189,94,.62);
  background:linear-gradient(135deg,rgba(215,176,86,.12),rgba(255,255,255,.035));
  box-shadow:0 0 0 1px rgba(215,176,86,.12),0 10px 28px rgba(0,0,0,.18),inset 0 0 0 1px rgba(255,255,255,.035);
}
.ccr-shadow-console-recording{
  grid-template-columns:64px minmax(0,1fr) 48px;
  gap:9px;
  padding:10px;
}

.ccr-shadow-console-recording__main small{
  color:rgba(210,224,245,.54);
}
.ccr-shadow-console-recording__score b{
  font-size:17px;
  color:rgba(255,229,166,.98);
}
.ccr-shadow-console-recording__score small{
  text-transform:uppercase;
  letter-spacing:.09em;
}
.ccr-shadow-console-section--detail{
  padding-top:8px;
}
.ccr-shadow-detail-card{
  padding:0;
  overflow:hidden;
  background:linear-gradient(160deg,rgba(2,8,18,.24),rgba(255,255,255,.025));
}
.ccr-shadow-detail-section{
  padding:12px;
}
.ccr-shadow-detail-section + .ccr-shadow-detail-section{
  border-top:1px solid rgba(255,255,255,.065);
}
.ccr-shadow-detail-section .ccr-shadow-detail-section-label{
  padding:0 0 9px;
}
.ccr-shadow-detail-kicker{
  color:rgba(255,229,166,.94);
}
.ccr-shadow-detail-card h3{
  margin-top:7px;
  font-size:14px;
  line-height:1.28;
}
.ccr-shadow-audio-capsule{
  margin-top:10px;
  padding:9px;
  border:1px solid rgba(215,176,86,.16);
  border-radius:15px;
  background:rgba(0,0,0,.18);
}
.ccr-shadow-audio-capsule > span{
  display:block;
  margin:0 0 7px;
  color:rgba(215,176,86,.78);
  font:800 9px/1 var(--ccr-shadow-console-font);
  text-transform:uppercase;
  letter-spacing:.14em;
}
.ccr-shadow-detail-audio{
  display:block;
  width:100%;
  margin:0;
  filter:brightness(.88) saturate(.9);
}
.ccr-shadow-score-card{
  background:rgba(255,255,255,.028);
}
.ccr-shadow-score-head{
  background:linear-gradient(90deg,rgba(215,176,86,.14),rgba(255,255,255,.035));
}
.ccr-shadow-score-head strong{
  color:rgba(255,238,190,.98);
  text-shadow:0 0 18px rgba(215,176,86,.16);
}
.ccr-shadow-console-empty--soft{
  margin:10px;
  border-color:rgba(215,176,86,.12);
  color:rgba(210,224,245,.68);
}
.ccr-shadow-metadata{
  margin-top:0;
}
.ccr-shadow-metadata summary{
  background:rgba(255,255,255,.025);
}
@media (max-width:1180px){
  .ccr-shadow-console-block-label{padding-top:8px;}
}

/* S50E — Coach Console row compactness, dedupe display, and overflow polish */
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-shell{
  grid-template-columns:minmax(210px,300px) minmax(390px,1fr) minmax(275px,390px);
}
.ccr-shadow-admin-console{
  --ccr-shadow-console-font:var(--font-body,Inter,"Noto Sans JP",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);
  font-family:var(--ccr-shadow-console-font);
}
.ccr-shadow-console-head{
  min-height:52px;
  padding:10px 12px 9px;
}
.ccr-shadow-console-head p{
  font-size:9px;
  line-height:1.15;
  letter-spacing:.14em;
}
.ccr-shadow-console-head h3{
  font-size:13px;
  line-height:1.1;
  letter-spacing:.01em;
}
.ccr-shadow-console-refresh{
  min-width:72px;
  height:27px;
  padding:0 9px;
  gap:5px;
  font-size:10px;
  letter-spacing:.045em;
}
.ccr-shadow-console-block-label,
.ccr-shadow-detail-section-label{
  font-size:8.5px;
  letter-spacing:.14em;
  padding:9px 11px 0;
  background:transparent !important;
}
.ccr-shadow-console-section{
  padding:8px 9px;
  overflow-x:hidden;
}
.ccr-shadow-console-section[data-shadow-admin-recordings]{
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-gutter:stable;
}
.ccr-shadow-console-metrics{
  gap:6px;
}
.ccr-shadow-console-metrics div{
  padding:8px 9px;
  border-radius:13px;
}
.ccr-shadow-console-metrics span,
.ccr-shadow-score-row span{
  font-size:9px;
  letter-spacing:.08em;
}
.ccr-shadow-console-metrics strong{
  font-size:15px;
}
.ccr-shadow-console-user{
  grid-template-columns:30px minmax(0,1fr) minmax(64px,max-content);
  gap:7px;
  padding:8px;
  border-radius:14px;
}
.ccr-shadow-console-user__badge{
  width:28px;
  height:28px;
  font-size:10px;
}
.ccr-shadow-console-user strong{
  font-size:11px;
}
.ccr-shadow-console-user small{
  font-size:9.5px;
}
.ccr-shadow-console-user__stats b{
  font-size:12px;
}
.ccr-shadow-console-user__stats small{
  font-size:9px;
}
.ccr-shadow-console-recordings{
  gap:7px;
  overflow-x:hidden;
}
.ccr-shadow-console-recording{
  grid-template-columns:minmax(44px,56px) minmax(0,1fr) 42px;
  gap:7px;
  padding:8px 9px;
  border-radius:14px;
  min-width:0;
  overflow:hidden;
}
.ccr-shadow-console-recording *{
  min-width:0;
}
.ccr-shadow-console-recording__id strong{
  font-size:10.5px;
  letter-spacing:.015em;
}
.ccr-shadow-console-recording__id small{
  font-size:8.5px;
  max-width:100%;
}
.ccr-shadow-console-recording__main{
  min-width:0;
  overflow:hidden;
}
.ccr-shadow-console-recording__text{
  display:block;
  width:100%;
  max-width:100%;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:10.5px;
  line-height:1.15;
  color:rgba(244,248,255,.88);
}
.ccr-shadow-console-recording__main small{
  font-size:8.7px;
  line-height:1.15;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  max-width:100%;
}
.ccr-shadow-console-recording__score{
  justify-self:end;
  align-self:center;
  display:flex !important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-width:32px;
  max-width:42px;
  min-height:32px;
  border-radius:11px;
  border:1px solid rgba(215,176,86,.18);
  background:rgba(215,176,86,.055);
  text-align:center;
}
.ccr-shadow-console-recording__score b,
.ccr-shadow-console-recording__score > b{
  font-size:12.5px !important;
  line-height:1;
  color:rgba(255,229,166,.96);
}
.ccr-shadow-console-recording__score small{
  display:none !important;
}
.ccr-shadow-console-recording__group{
  display:block;
  margin-top:2px;
  color:rgba(210,224,245,.68);
  font:800 8px/1 var(--ccr-shadow-console-font);
  letter-spacing:.02em;
}
.ccr-shadow-console-recording.is-active .ccr-shadow-console-recording__score{
  border-color:rgba(236,201,112,.46);
  background:rgba(215,176,86,.12);
}
.ccr-shadow-detail-card h3{
  font-size:13px;
  line-height:1.25;
}
.ccr-shadow-detail-meta{
  gap:5px;
}
.ccr-shadow-detail-meta span{
  font-size:9.2px;
}
.ccr-shadow-audio-capsule{
  transform-origin:left center;
}
.ccr-shadow-audio-capsule audio{
  max-width:100%;
}
@media (max-width:1280px){
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-shell{
    grid-template-columns:minmax(200px,280px) minmax(390px,1fr) minmax(260px,360px);
  }
  .ccr-shadow-console-recording{grid-template-columns:52px minmax(0,1fr) 38px;}
  .ccr-shadow-console-recording__text{font-size:10px;}
}


/* S50F/S50G — mobile Shadow Play Admin switch mode: compact one-line header */
.ccr-client-html-viewer-mode-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  height:24px;
  min-height:24px;
  padding:0 9px;
  border-radius:999px;
  border:1px solid rgba(215,176,86,.34);
  background:linear-gradient(135deg,rgba(215,176,86,.12),rgba(255,255,255,.035));
  color:rgba(255,244,216,.90);
  font:800 8.6px/1 var(--ccr-shadow-console-font,var(--font-body,Inter,"Noto Sans JP",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif));
  letter-spacing:.075em;
  text-transform:uppercase;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.035),0 6px 14px rgba(0,0,0,.12);
  cursor:pointer;
  -webkit-user-select:none;
  user-select:none;
  white-space:nowrap;
}
.ccr-client-html-viewer-mode-toggle[aria-pressed="true"]{
  border-color:rgba(236,201,112,.54);
  background:linear-gradient(135deg,rgba(215,176,86,.20),rgba(255,255,255,.05));
}
@media (max-width:760px){
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-shell{
    width:100vw;
    height:100dvh;
    max-width:none;
    max-height:none;
    border-radius:0;
    grid-template-columns:1fr;
    grid-template-rows:auto minmax(0,1fr);
    gap:5px;
    padding:5px;
    overflow:hidden;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-head{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto auto;
    grid-template-rows:auto;
    gap:6px;
    align-items:center;
    min-height:0;
    padding:5px 7px;
    border-radius:13px;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-titlewrap{
    grid-column:1;
    grid-row:1;
    min-width:0;
    display:flex;
    align-items:center;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-titlewrap p{
    margin:0;
    font-size:9.2px;
    line-height:1;
    letter-spacing:.13em;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-titlewrap h2{
    display:none;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-actions{
    grid-column:3;
    grid-row:1;
    justify-self:end;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-mode-toggle{
    display:flex;
    grid-column:2;
    grid-row:1;
    width:auto;
    justify-self:end;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-framewrap{
    grid-column:1;
    grid-row:2;
    min-height:0;
    height:100%;
    border-radius:18px;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-mobile-preview .ccr-client-html-viewer-device{
    max-height:100%;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-game-mode .ccr-shadow-admin-console{
    display:none !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-game-mode .ccr-client-html-viewer-framewrap{
    display:flex !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-client-html-viewer-shell{
    grid-template-rows:auto minmax(0,.47fr) minmax(0,.53fr);
  }
  
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-admin-console{
    
    grid-column:1;
    min-height:0;
    border-radius:18px;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-admin-console--left{
    grid-row:2;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-admin-console--right{
    grid-row:3;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-console-head{
    min-height:0;
    padding:8px 9px 7px;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-console-head p{
    font-size:8.2px;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-console-head h3{
    font-size:11.5px;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-console-section{
    padding:7px 8px;
  }
}

/* S50K-r1 — hard four-row Coach Console recording viewport + visible metadata copy */
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-admin-console--right{
  display:flex !important;
  flex-direction:column !important;
  min-height:0 !important;
  overflow:hidden !important;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-console-block-label--recordings{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  flex:0 0 auto;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-console-block-label--recordings small{
  display:inline-block;
  color:rgba(210,224,245,.58);
  font:800 7.8px/1 var(--ccr-shadow-console-font);
  letter-spacing:.09em;
  text-transform:uppercase;
  white-space:nowrap;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-console-section--recordings-viewport,
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-console-section[data-shadow-admin-recordings][data-shadow-admin-recordings-viewport="four"]{
  --ccr-shadow-recordings-four-height:224px;
  flex:0 0 var(--ccr-shadow-recordings-four-height) !important;
  height:var(--ccr-shadow-recordings-four-height) !important;
  max-height:var(--ccr-shadow-recordings-four-height) !important;
  min-height:0 !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  scrollbar-gutter:stable;
  overscroll-behavior:contain;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-console-section--detail{
  flex:1 1 auto !important;
  min-height:0 !important;
  overflow:auto !important;
  padding-top:9px;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-detail-card{
  min-height:0 !important;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-detail-topline{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:8px;
  margin:0 0 8px;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-detail-topline .ccr-shadow-detail-section-label{
  padding:0;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-capsule{
  margin-top:9px;
  padding:10px;
  border-color:rgba(215,176,86,.22);
  background:rgba(0,0,0,.24);
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-capsule > span{
  margin-bottom:8px;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-detail-audio{
  width:100%;
  min-height:40px;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-metadata-copy{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  height:26px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(215,176,86,.34);
  background:linear-gradient(135deg,rgba(215,176,86,.14),rgba(255,255,255,.04));
  color:rgba(255,244,216,.94);
  font:800 8.4px/1 var(--ccr-shadow-console-font);
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:nowrap;
  cursor:pointer;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.035),0 6px 14px rgba(0,0,0,.12);
  transition:transform .16s ease,border-color .16s ease,background .16s ease,opacity .16s ease;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-metadata-copy:hover,
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-metadata-copy:focus-visible{
  transform:translateY(-1px);
  border-color:rgba(236,201,112,.58);
  background:linear-gradient(135deg,rgba(215,176,86,.23),rgba(255,255,255,.055));
  outline:none;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-metadata-copy:disabled{
  opacity:.68;
  cursor:default;
  transform:none;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-metadata-copy.is-copied{
  border-color:rgba(113,215,154,.52);
  color:rgba(218,255,230,.96);
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console [data-shadow-admin-copy-status]{
  color:rgba(210,224,245,.62);
  font:800 8px/1 var(--ccr-shadow-console-font);
  letter-spacing:.06em;
  text-transform:uppercase;
  white-space:nowrap;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-detail-section--metadata{
  padding-top:10px;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-metadata{
  margin-top:0;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-metadata pre{
  max-height:420px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
}
@media (max-width:760px){
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-console-section--recordings-viewport,
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-console-section[data-shadow-admin-recordings][data-shadow-admin-recordings-viewport="four"]{
    --ccr-shadow-recordings-four-height:204px;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-detail-topline{
    grid-template-columns:minmax(0,1fr) auto;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-detail-topline [data-shadow-admin-copy-status]{
    grid-column:1 / -1;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-metadata-copy{
    height:24px;
    padding:0 8px;
    font-size:7.8px;
  }
}


/* S50M-r1 — mobile Coach Console reachability fix.
   Desktop S50K-r1 layout is intentionally untouched. On phones, Coach Mode
   becomes a single scrollable stack so selected playback/score/metadata can
   never sit below an unreachable fold. */
@media (max-width:760px){
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-client-html-viewer-shell{
    display:flex !important;
    flex-direction:column !important;
    width:100vw !important;
    height:100dvh !important;
    max-width:none !important;
    max-height:none !important;
    min-height:0 !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    gap:8px !important;
    padding:5px !important;
    align-content:stretch !important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    scroll-padding-top:54px;
    scroll-padding-bottom:22px;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-client-html-viewer-head{
    position:sticky;
    top:0;
    z-index:40;
    flex:0 0 auto !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto auto !important;
    align-items:center !important;
    gap:5px !important;
    min-height:36px !important;
    padding:5px 6px !important;
    border-radius:13px !important;
    background:linear-gradient(90deg,rgba(7,15,29,.93),rgba(8,18,34,.86)) !important;
    backdrop-filter:blur(14px) saturate(1.12);
    -webkit-backdrop-filter:blur(14px) saturate(1.12);
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-client-html-viewer-titlewrap{
    min-width:0 !important;
    max-width:100% !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-client-html-viewer-titlewrap p{
    max-width:min(36vw,132px) !important;
    font-size:8.2px !important;
    letter-spacing:.12em !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-client-html-viewer-titlewrap h2{
    display:none !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-client-html-viewer-mode-toggle{
    display:flex !important;
    grid-column:auto !important;
    width:auto !important;
    min-width:0 !important;
    max-width:124px !important;
    height:25px !important;
    min-height:25px !important;
    padding:0 9px !important;
    font-size:8px !important;
    letter-spacing:.065em !important;
    justify-self:end !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-client-html-viewer-actions{
    grid-column:auto !important;
    justify-self:end !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-client-html-viewer-close{
    width:30px !important;
    height:30px !important;
    min-width:30px !important;
    min-height:30px !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-client-html-viewer-framewrap{
    display:none !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-admin-console{
    display:flex !important;
    grid-column:auto !important;
    grid-row:auto !important;
    width:100% !important;
    min-width:0 !important;
    min-height:0 !important;
    max-height:none !important;
    flex:0 0 auto !important;
    overflow:visible !important;
    border-radius:18px !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-admin-console--left{
    order:1;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-admin-console--right{
    order:2;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-console-head{
    min-height:48px !important;
    padding:8px 9px 7px !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-console-refresh{
    min-width:78px !important;
    height:29px !important;
    padding:0 9px !important;
    font-size:10px !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-console-section{
    overflow:visible !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-console-section--recordings-viewport,
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-console-section[data-shadow-admin-recordings][data-shadow-admin-recordings-viewport="four"]{
    --ccr-shadow-recordings-four-height:204px !important;
    flex:0 0 var(--ccr-shadow-recordings-four-height) !important;
    height:var(--ccr-shadow-recordings-four-height) !important;
    max-height:var(--ccr-shadow-recordings-four-height) !important;
    min-height:0 !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-console-section--detail{
    flex:0 0 auto !important;
    min-height:0 !important;
    max-height:none !important;
    height:auto !important;
    overflow:visible !important;
    padding-top:9px !important;
    padding-bottom:18px !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-detail-card{
    overflow:visible !important;
    min-height:0 !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-detail-section{
    padding:11px !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-audio-capsule{
    margin-top:8px !important;
    padding:9px !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-detail-audio{
    min-height:42px !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-metadata pre{
    max-height:42dvh !important;
    overflow:auto !important;
    -webkit-overflow-scrolling:touch;
  }
}

/* S50N — Coach Console dark custom audio player (no native white audio controls) */
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-capsule{
  background:linear-gradient(160deg,rgba(1,7,16,.78),rgba(6,15,29,.92));
  border-color:rgba(215,176,86,.26);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.025),0 12px 26px rgba(0,0,0,.24);
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-detail-audio{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-player{
  --ccr-shadow-audio-progress:0%;
  display:grid;
  grid-template-columns:42px auto minmax(0,1fr);
  align-items:center;
  gap:11px;
  min-height:54px;
  padding:8px 11px;
  border:1px solid rgba(236,201,112,.18);
  border-radius:999px;
  background:linear-gradient(135deg,rgba(5,12,24,.96),rgba(12,23,38,.92));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.035),inset 0 -10px 18px rgba(0,0,0,.16),0 12px 24px rgba(0,0,0,.28);
  color:rgba(255,244,216,.94);
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:50%;
  border:1px solid rgba(236,201,112,.38);
  background:radial-gradient(circle at 34% 28%,rgba(236,201,112,.28),rgba(95,70,28,.24) 48%,rgba(0,0,0,.22) 100%);
  color:rgba(255,244,216,.98);
  font:900 15px/1 var(--ccr-shadow-console-font,var(--font-body,Inter,"Noto Sans JP",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.05),0 7px 16px rgba(0,0,0,.22);
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-toggle:disabled{
  opacity:.45;
  cursor:not-allowed;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-toggle span{
  display:block;
  transform:translateX(1px);
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-time{
  min-width:76px;
  color:rgba(245,232,198,.92);
  font:800 12px/1 var(--ccr-shadow-console-font,var(--font-body,Inter,"Noto Sans JP",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif));
  letter-spacing:.02em;
  white-space:nowrap;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-seek{
  width:100%;
  min-width:0;
  height:26px;
  margin:0;
  background:transparent;
  accent-color:rgb(236,201,112);
  cursor:pointer;
  -webkit-appearance:none;
  appearance:none;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-seek:disabled{
  opacity:.55;
  cursor:default;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-seek::-webkit-slider-runnable-track{
  height:7px;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(236,201,112,.86) 0 var(--ccr-shadow-audio-progress),rgba(255,255,255,.16) var(--ccr-shadow-audio-progress) 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-seek::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:18px;
  height:18px;
  margin-top:-5.5px;
  border-radius:50%;
  border:1px solid rgba(255,239,194,.92);
  background:linear-gradient(135deg,rgba(255,239,194,.98),rgba(215,176,86,.95));
  box-shadow:0 0 0 4px rgba(215,176,86,.12),0 5px 12px rgba(0,0,0,.32);
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-seek::-moz-range-track{
  height:7px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-seek::-moz-range-progress{
  height:7px;
  border-radius:999px;
  background:rgba(236,201,112,.86);
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-seek::-moz-range-thumb{
  width:18px;
  height:18px;
  border-radius:50%;
  border:1px solid rgba(255,239,194,.92);
  background:linear-gradient(135deg,rgba(255,239,194,.98),rgba(215,176,86,.95));
  box-shadow:0 0 0 4px rgba(215,176,86,.12),0 5px 12px rgba(0,0,0,.32);
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-player.is-unavailable{
  opacity:.72;
}
.ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-shadow-audio-player.is-unavailable .ccr-shadow-audio-time{
  color:rgba(255,206,206,.82);
}
@media (max-width:760px){
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-audio-player{
    grid-template-columns:38px minmax(72px,auto) minmax(0,1fr);
    min-height:50px;
    gap:8px;
    padding:7px 9px;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-audio-toggle{
    width:34px;
    height:34px;
    font-size:14px;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-shadow-audio-time{
    min-width:70px;
    font-size:11px;
  }
}


/* S50O — small UI polish: mobile iframe close centering, SO dashboard action breathing room, library cover opens reader. */
.ccr-client-html-viewer-close{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 !important;
  line-height:1 !important;
  text-align:center !important;
}
.ccr-client-html-viewer-close > span{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  height:100% !important;
  line-height:1 !important;
  transform:translateY(-.5px);
}
@media (max-width:760px){
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-close,
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-client-html-viewer-close{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:0 !important;
    line-height:1 !important;
  }
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console .ccr-client-html-viewer-close > span,
  .ccr-client-html-viewer-layer.is-shadow-play-admin-console.is-shadow-mobile-coach-mode .ccr-client-html-viewer-close > span{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    height:100% !important;
    line-height:1 !important;
    transform:translateY(-.5px);
  }
}
.ccr-client-dashboard-settings-row .settings-mini-actions{
  gap:11px;
}
.ccr-client-dashboard-settings-row .ccr-client-dashboard-icon-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  
  
  
  
  padding:0;
  line-height:1;
}
.ccr-client-dashboard-settings-row .ccr-client-dashboard-icon-action > span{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  line-height:1;
}
.ccr-client-dashboard-settings-row [data-settings-action="client-dashboard-message"].ccr-client-dashboard-icon-action > span{
  font-size:1.14em;
  transform:translateY(-.5px);
}
@media (min-width:641px){
  .ccr-client-dashboard-settings-row .settings-mini-actions{
    flex-wrap:nowrap;
  }
}
.book-shell-card-item__media-button{
  appearance:none;
  -webkit-appearance:none;
  display:block;
  width:100%;
  padding:0;
  margin:0;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  text-align:inherit;
  cursor:pointer;
}
.book-shell-card-item__media-button:focus-visible{
  outline:2px solid rgba(245,214,124,.72);
  outline-offset:3px;
}
.book-shell-card-item__media-button .book-shell-card-item__cover{
  display:block;
}

/* S50O-r2: SO dashboard icon optical centering follow-up.
   Keep S50O-r1 spacing/mail sizing, but force glyphs to sit at true center
   inside their round action containers. */
.ccr-client-dashboard-settings-row .ccr-client-dashboard-icon-action{
  position:relative;
  display:inline-grid !important;
  place-items:center !important;
  align-items:center !important;
  justify-content:center !important;
  width:34px;
  min-width:34px;
  height:34px;
  min-height:34px;
  padding:0 !important;
  line-height:0 !important;
  text-align:center;
  vertical-align:middle;
}
.ccr-client-dashboard-settings-row .ccr-client-dashboard-icon-action > span{
  position:absolute;
  inset:0;
  display:grid !important;
  place-items:center !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  height:100% !important;
  margin:0 !important;
  padding:0 !important;
  line-height:1 !important;
  text-align:center;
  transform:none !important;
  pointer-events:none;
}
.ccr-client-dashboard-settings-row [data-settings-action="client-dashboard-delete"].ccr-client-dashboard-icon-action > span{
  font-size:1.08rem;
  font-weight:700;
}
.ccr-client-dashboard-settings-row [data-settings-action="client-dashboard-open"].ccr-client-dashboard-icon-action > span{
  font-size:1.03rem;
  font-weight:700;
}
.ccr-client-dashboard-settings-row [data-settings-action="client-dashboard-message"].ccr-client-dashboard-icon-action > span{
  font-size:1.16rem;
  font-weight:700;
}


/* S53B — desktop-only SV Interview overlay launcher */
.ccr-client-dash-action--sv-interview{
  border-color:rgba(232,214,164,.22);
  background:rgba(232,214,164,.065);
  color:rgba(245,215,151,.96);
}
.ccr-client-dash-action--sv-interview:hover,
.ccr-client-dash-action--sv-interview:focus-visible{
  border-color:rgba(232,214,164,.34);
  background:rgba(232,214,164,.105);
  color:#ffe3a0;
}
@media (max-width: 900px){
  [data-client-dashboard-desktop-only="1"],
  .ccr-client-dash-action--sv-interview{
    display:none !important;
  }
}


/* S53B — SV Interview uses the Shadow Play-style live app iframe surface without Shadow admin/identity hooks. */
.ccr-client-html-viewer-layer.is-sv-interview .ccr-client-html-viewer-framewrap{
  position:relative;
  background:#000;
}
.ccr-client-html-viewer-layer.is-sv-interview .ccr-client-html-viewer-frame{
  position:relative;
  z-index:1;
  background:#000;
  color-scheme:dark;
}
.ccr-client-html-viewer-layer.is-sv-interview-frame-loading .ccr-client-html-viewer-framewrap::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:8;
  background:#000;
  pointer-events:none;
}
.ccr-client-html-viewer-layer.is-sv-interview .ccr-client-html-viewer-shell{
  width:min(1180px, calc(100vw - 40px));
}
.ccr-client-html-viewer-layer.is-sv-interview .ccr-client-html-viewer-titlewrap p{
  color:rgba(232,214,164,.78);
}
.ccr-client-html-viewer-layer.is-sv-interview .ccr-client-html-viewer-titlewrap h2{
  color:rgba(244,248,252,.96);
}

/* S53C-r1: SV Interview completion notification shown by the CCR parent overlay. */
.ccr-client-sv-completion-toast{
  position:fixed;
  top:86px;
  right:24px;
  z-index:2147483200;
  width:min(340px, calc(100vw - 32px));
  padding:14px 42px 14px 16px;
  border:1px solid rgba(232,214,164,.30);
  border-radius:18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(245,214,124,.16), transparent 34%),
    linear-gradient(180deg, rgba(18,24,34,.96), rgba(8,12,18,.94));
  box-shadow:0 22px 60px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.10);
  color:#f7f3e8;
  font-family:Inter, "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  backdrop-filter:blur(16px);
  animation:ccrSvCompletionToastIn .24s ease-out both;
}
.ccr-client-sv-completion-toast__kicker{
  color:rgba(232,214,164,.82);
  font-size:.68rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-weight:800;
  margin-bottom:4px;
}
.ccr-client-sv-completion-toast__title{
  color:#fff;
  font-size:1rem;
  font-weight:900;
  line-height:1.15;
  margin-bottom:7px;
}
.ccr-client-sv-completion-toast p{
  margin:0 0 7px;
  color:rgba(247,243,232,.86);
  font-size:.84rem;
  line-height:1.35;
}
.ccr-client-sv-completion-toast strong{
  display:block;
  color:#f5d67c;
  font-size:.9rem;
  line-height:1.28;
  font-weight:900;
  margin-bottom:6px;
}
.ccr-client-sv-completion-toast small{
  display:block;
  color:rgba(247,243,232,.62);
  font-size:.74rem;
  line-height:1.3;
}
.ccr-client-sv-completion-toast__close{
  position:absolute;
  top:9px;
  right:9px;
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(232,214,164,.22);
  border-radius:999px;
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.86);
  font-size:18px;
  line-height:1;
  cursor:pointer;
}
.ccr-client-sv-completion-toast__close:hover{
  background:rgba(245,214,124,.14);
  color:#fff;
}
@keyframes ccrSvCompletionToastIn{
  from{ opacity:0; transform:translateY(-8px) scale(.985); }
  to{ opacity:1; transform:translateY(0) scale(1); }
}
@media (max-width:760px){
  .ccr-client-sv-completion-toast{
    top:74px;
    left:12px;
    right:12px;
    width:auto;
    padding:12px 40px 12px 14px;
    border-radius:16px;
  }
}

/* ===== S56T SOURCE END: client-dashboard.css ===== */

/* ===== S56T SOURCE BEGIN: portfolio-ov.css ===== */
body[data-page="home"] .portfolio-shell-head-actions{
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
body[data-page="home"] .portfolio-shell-sfx-btn.is-muted{
  opacity:.72;
  border-color:rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  color:var(--text-2);
}
body[data-page="home"] .portfolio-shell-sfx-btn.is-active{
  box-shadow:0 0 0 1px rgba(125,211,252,.24) inset;
}
body[data-page="home"] .portfolio-ticket-presets{
  flex-wrap:wrap;
}
body[data-page="home"] .portfolio-ticket-side{
  margin-top:2px;
}
body[data-page="home"] .portfolio-curve-empty{
  min-height:132px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}
@media (max-width: 900px){
  body[data-page="home"] .portfolio-shell-head-actions{
    width:100%;
    justify-content:flex-start;
  }
}
body[data-page="home"] .portfolio-ticket-holdings{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.03);
  color:var(--text-2);
  font-size:.76rem;
}
body[data-page="home"] .portfolio-ticket-holdings.is-empty{
  justify-content:flex-start;
}
body[data-page="home"] .portfolio-ticket-holdings .is-up{ color:#c8f7d8; }
body[data-page="home"] .portfolio-ticket-holdings .is-down{ color:#ffd6d6; }
body[data-page="home"] .portfolio-trade-estimate-grid,
body[data-page="home"] .portfolio-performance-metrics{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:8px;
}
body[data-page="home"] .portfolio-warning-strip{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.035);
}
body[data-page="home"] .portfolio-warning-strip.is-warn{
  border-color:rgba(248,113,113,.26);
  background:linear-gradient(180deg, rgba(120,18,28,.32), rgba(65,10,18,.18));
}
body[data-page="home"] .portfolio-warning-strip.is-ok{
  border-color:rgba(34,197,94,.18);
  background:linear-gradient(180deg, rgba(10,80,42,.22), rgba(8,38,24,.14));
}
body[data-page="home"] .portfolio-warning-strip__text{
  display:grid;
  gap:3px;
}
body[data-page="home"] .portfolio-warning-strip__text strong{
  font-size:.8rem;
  color:var(--text-1);
}
body[data-page="home"] .portfolio-warning-strip__text span{
  font-size:.74rem;
  color:var(--text-2);
  line-height:1.4;
}
body[data-page="home"] .portfolio-warning-strip__metrics{
  display:grid;
  gap:4px;
  min-width:160px;
  font-size:.72rem;
  color:var(--text-2);
  text-align:right;
}
body[data-page="home"] .portfolio-warning-strip__metrics b.is-up{ color:#c8f7d8; }
body[data-page="home"] .portfolio-warning-strip__metrics b.is-down{ color:#ffd6d6; }
body[data-page="home"] .portfolio-trade-estimate-grid .portfolio-metric,
body[data-page="home"] .portfolio-performance-metrics .portfolio-metric{
  min-height:74px;
}
body[data-page="home"] .portfolio-alloc-row{
  display:grid;
  gap:7px;
  padding:8px 0;
}
body[data-page="home"] .portfolio-alloc-row__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:.78rem;
}
body[data-page="home"] .portfolio-alloc-row__bar{
  width:100%;
  height:8px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  overflow:hidden;
}
body[data-page="home"] .portfolio-alloc-row__bar span{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(96,165,250,.82), rgba(167,139,250,.92));
}
body[data-page="home"] .portfolio-leader-row{
  align-items:flex-start;
}
body[data-page="home"] .portfolio-leader-row small{
  display:block;
  margin-top:3px;
  color:var(--text-3);
  font-size:.7rem;
}
body[data-page="home"] .portfolio-universe-list .settings-group__body{
  gap:8px;
}
body[data-page="home"] .portfolio-universe-list .settings-group__summary,
body[data-page="home"] .portfolio-universe-list .settings-group__label{
  color:rgba(232,214,164,.90);
  text-align:left;
}
body[data-page="home"] .portfolio-universe-list .settings-group__label::before{
  color:rgba(232,214,164,.72);
}
body[data-page="home"] .portfolio-universe-list .settings-group[open] .settings-group__label::before{
  color:rgba(232,214,164,.90);
}
@media (max-width: 760px){
  body[data-page="home"] .portfolio-trade-estimate-grid,
  body[data-page="home"] .portfolio-performance-metrics{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  body[data-page="home"] .portfolio-ticket-holdings{
    gap:8px;
  }
  body[data-page="home"] .portfolio-warning-strip{
    flex-direction:column;
    align-items:stretch;
  }
  body[data-page="home"] .portfolio-warning-strip__metrics{
    text-align:left;
    min-width:0;
  }
}


body[data-page="home"] .portfolio-reset-confirm{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:0 0 12px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(248,113,113,.24);
  background:linear-gradient(180deg, rgba(120,18,28,.36), rgba(65,10,18,.22));
}
body[data-page="home"] .portfolio-reset-confirm__text{
  display:grid;
  gap:4px;
}
body[data-page="home"] .portfolio-reset-confirm__text strong{
  font-size:.88rem;
  color:#ffe1e1;
}
body[data-page="home"] .portfolio-reset-confirm__text span{
  color:var(--text-2);
  font-size:.78rem;
  line-height:1.45;
}
body[data-page="home"] .portfolio-reset-confirm__actions{
  flex-wrap:wrap;
  justify-content:flex-end;
}
@media (max-width: 760px){
  body[data-page="home"] .portfolio-reset-confirm{
    flex-direction:column;
    align-items:stretch;
  }
  body[data-page="home"] .portfolio-reset-confirm__actions{
    justify-content:flex-start;
  }
}


body[data-page="home"] .portfolio-shortability-badge{
  display:inline-flex;
  align-items:center;
  min-height:20px;
  padding:0 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.04);
  color:var(--text-2);
  font-size:.62rem;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  margin-left:10px;
}
body[data-page="home"] .portfolio-shortability-badge.is-shortable{
  color:#dff4ea;
  border-color:rgba(110,231,183,.22);
  background:rgba(18,84,58,.28);
}
body[data-page="home"] .portfolio-shortability-badge.is-long-only{
  color:#dbe8f7;
  border-color:rgba(148,163,184,.22);
  background:rgba(51,65,85,.24);
}
/* ===== S56T SOURCE END: portfolio-ov.css ===== */

/* ===== S56T SOURCE BEGIN: components.css ===== */
.ui-btn,.lang-toggle button,.icon-btn{border:1px solid var(--border);background:rgba(255,255,255,.03);color:var(--text);border-radius:999px;padding:10px 14px;transition:all var(--fast);box-shadow:none}
.ui-btn:hover,.lang-toggle button:hover,.icon-btn:hover{background:rgba(255,255,255,.06);transform:translateY(-1px)}
.lang-toggle{display:inline-flex;background:rgba(255,255,255,.02);border:1px solid var(--border);border-radius:999px;padding:3px}
.lang-toggle button{padding:8px 12px;border:0;background:none;color:var(--text-2)}
.lang-toggle button.active{background:var(--accent-soft);color:var(--text)}
.icon-btn{display:inline-flex;align-items:center;gap:8px;min-height:42px}

.header-actions .lang-toggle,
.header-actions .icon-btn,
.header-actions .ui-btn{
  min-height:38px;
  height:38px;
  box-sizing:border-box;
}

.header-actions .lang-toggle{
  padding:2px;
}

.header-actions .lang-toggle button{
  min-height:34px;
  height:34px;
  padding:6px 12px;
  line-height:1.05;
}

.header-actions .icon-btn,
.header-actions .ui-btn{
  padding:6px 12px;
  line-height:1.05;
}

.top-strip,.card-grid,.results-list,.region-items{display:grid;gap:16px}
.top-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.top-card,
.intel-card,
.filter-box,
.hero-card{
  background:linear-gradient(180deg,rgba(255,255,255,.022),rgba(255,255,255,.011));
  border:1px solid rgba(255,255,255,.068);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}.top-card,
.intel-card{
  overflow:hidden;
  transition:transform var(--fast),box-shadow var(--fast),border-color var(--fast),background var(--fast);
}.top-card:hover,
.intel-card:hover{
  
  
  border-color:rgba(255,255,255,.12);
}

.top-card:active,.intel-card:active{transform:translateY(-1px)}
.top-card{padding:0;display:block}

.section-header{position:relative;overflow:hidden;min-height:156px;border-radius:20px;border:1px solid var(--border);display:flex;align-items:flex-end}
.section-header img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.section-header::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,11,18,.2),rgba(7,11,18,.9))}
.section-header-content{position:relative;z-index:1;padding:24px;display:grid;gap:8px;backdrop-filter:blur(4px)}
.section-header h2{font-size:clamp(24px,3vw,30px);letter-spacing:.04em;text-transform:uppercase;font-weight:600}
.section-header p{color:#d7e0ea;max-width:60ch}

.intel-card__toggle{
  width:100%;
  padding:20px 14px 16px;
  background:none;
  border:0;
  color:inherit;
  text-align:left;
  display:grid;
  gap:12px;
}

.intel-card__toggle:hover{background:rgba(255,255,255,.012)}

 .intel-card__headline,.top-card h3{
  margin:0 auto;
  
  
  font-weight:620;
  
  
  
}

.intel-card__panel{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--med)}
.intel-card__panel-inner{overflow:hidden}
.intel-card.is-open .intel-card__panel,.top-card.is-open .intel-card__panel{grid-template-rows:1fr}

.intel-card__content{
  padding:0 14px 22px;
  display:grid;
  
}.intel-card__content p{
  margin:0;
  
  
  font-size:.9625rem;
}.meta-row{
  
  align-items:center;
  
  flex-wrap:wrap;
  
  
  
  letter-spacing:.01em;
}.meta-row span::after{content:none !important}.meta-row .meta-date{
  
  white-space:nowrap;
}

.theme-tags,.risk-pill-wrap{
  display:inline-flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.tag,.risk-pill,.type-pill{
  display:inline-flex;
  align-items:center;
  gap:0;
  border:1px solid rgba(255,255,255,.085);
  padding:5px 10px;
  border-radius:999px;
  font-size:.74rem;
  line-height:1;
  background:rgba(255,255,255,.022);
}

.tag,.type-pill{
  color:rgba(233,240,247,.7);
}
.tag[data-theme-tone="macro"]{color:#d9e8ff;border-color:rgba(120,168,255,.20);background:rgba(120,168,255,.08)}
.tag[data-theme-tone="markets"]{color:#f1dfba;border-color:rgba(214,171,84,.20);background:rgba(214,171,84,.08)}
.tag[data-theme-tone="industry"]{color:#e0d4ff;border-color:rgba(167,118,255,.20);background:rgba(167,118,255,.08)}
.tag[data-theme-tone="resources"]{color:#cae6cf;border-color:rgba(97,188,117,.20);background:rgba(97,188,117,.08)}
.tag[data-theme-tone="transport"]{color:#c9ece7;border-color:rgba(87,194,182,.20);background:rgba(87,194,182,.08)}
.tag[data-theme-tone="services"]{color:#f2d2df;border-color:rgba(218,119,165,.20);background:rgba(218,119,165,.08)}

.risk-pill{font-weight:500}
.risk-pill[data-risk="High"]{color:#f1caca;border-color:rgba(255,90,90,.24);background:rgba(255,90,90,.09)}
.risk-pill[data-risk="Medium"]{color:#ecd0a0;border-color:rgba(255,180,84,.24);background:rgba(255,180,84,.08)}
.risk-pill[data-risk="Low"]{color:#c8e6cd;border-color:rgba(86,211,100,.24);background:rgba(86,211,100,.08)}
.risk-pill[data-risk="Watch"]{color:#d0d7df;border-color:rgba(156,163,175,.22);background:rgba(156,163,175,.08)}

.implication{
  border-left:2px solid rgba(79,163,255,.55);
  padding:11px 13px;
  border-radius:0 10px 10px 0;
  background:linear-gradient(90deg,rgba(79,163,255,.09),rgba(79,163,255,.035));
  box-shadow:inset 0 0 0 1px rgba(79,163,255,.045);
  color:rgba(236,243,249,.78);
}

.implication strong{color:rgba(243,247,251,.9)}
.implication-copy{display:inline}

.links-list{display:grid;gap:8px}
.links-list strong{font-size:.78rem;letter-spacing:.03em;color:rgba(233,240,247,.6)}.links-list a{color:rgba(142,190,255,.94);text-decoration:none}.links-list a:hover{text-decoration:underline}

.filter-box{padding:20px;background:linear-gradient(180deg,rgba(255,255,255,.022),rgba(255,255,255,.012));border-color:rgba(255,255,255,.065)}
.filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.filter-group{display:grid;gap:8px}
.filter-group label{font-size:.82rem;color:var(--text-2)}
.filter-group input,.filter-group select,.admin-panel input:not([type="checkbox"]):not([type="range"]),.admin-panel select,.admin-panel textarea{width:100%;background:#111b27;color:var(--text);border:1px solid var(--border);border-radius:10px;padding:10px 12px}
.filter-actions{display:flex;gap:10px;align-items:center;justify-content:center;margin-top:20px;flex-wrap:wrap}

.empty-state{padding:26px;border:1px dashed var(--border);border-radius:var(--radius);color:var(--text-2);text-align:center}
.view-more-wrap{display:flex;justify-content:center}
.search-inline{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.page-lead{color:var(--text-2);max-width:68ch;margin:0}

.hero-card,.filter-box{padding:20px;background:linear-gradient(180deg,rgba(255,255,255,.017),rgba(255,255,255,.008));border-color:rgba(255,255,255,.058)}
.hero-card h2,.section-title-row h2,.section-header h2,.intel-card__headline,.top-card h3{font-family:var(--font-body)}
.hero-card h2,.section-title-row h2{margin:0}
.filter-group label,.masthead .meta-line{letter-spacing:.01em}

@media (max-width:980px){.top-strip{grid-template-columns:1fr 1fr}.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.top-strip{grid-template-columns:1fr}.filter-grid{grid-template-columns:1fr}.intel-card__content p{font-size:.935rem}}

/* === STAGE 4 MICRO POLISH === */

/* 1. Card vertical balance */
.intel-card__toggle,
.top-card .intel-card__toggle {
  padding: 18px 20px 14px;
}

.meta-row {
  margin-top: 6px;
  margin-bottom: 10px;
}

/* 2. Meta + pill system refinement */
.meta-row {
  
  font-size: 12.5px;
  opacity: 0.75;
}

.theme-tags {
  gap: 6px;
}

/* 3. Risk pill integration */
.risk-pill-wrap {
  margin-left: 0;
}

.risk-prefix{
  font-size:11.5px;
  letter-spacing:.01em;
  color:rgba(233,240,247,.56);
  margin-right:2px;
}

.risk-pill {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  opacity: 0.9;
}

/* 4. Pill refinement (reduce awkward wrapping) */
.tag {
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 999px;
}

/* 5. Headline polish */

/* 6. Card tone refinement (very subtle) */
.intel-card,
.top-card {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.032),
    rgba(255,255,255,.018)
  );
}

/* 7. Hover calming (less SaaS feel) */
.top-card:hover,
.intel-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
}

/* 8. Slight hero emphasis */
.top-card {
  border-color: rgba(255,255,255,.11);
}

/* === STAGE 5 DESKTOP LAYOUT UPGRADE === */

@media (min-width: 1100px) {
  .region-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .results-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .top-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

@media (min-width: 1100px) {
  .region-items > .intel-card,
  .results-list > .intel-card,
  .top-strip > .top-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .region-items > .intel-card > .intel-card__toggle,
  .results-list > .intel-card > .intel-card__toggle,
  .top-strip > .top-card > .intel-card__toggle {
    flex: 0 0 auto;
    align-content: start;
  }

  .region-items > .intel-card > .intel-card__panel,
  .results-list > .intel-card > .intel-card__panel,
  .top-strip > .top-card > .intel-card__panel {
    flex: 0 0 auto;
    min-height: 0;
  }

  .region-items > .intel-card.is-open,
  .results-list > .intel-card.is-open,
  .top-strip > .top-card.is-open {
    height: auto;
    align-self: start;
  }

  .region-items,
  .results-list {
    gap: 18px;
  }
}

/* === STAGE 6 DENSITY + SCANNING OPTIMIZATION === */

/* 1. Sharpen internal reading rhythm */
.intel-card__content {
  gap: 12px;
}.intel-card__content p{
  line-height: 1.64;
  color: rgba(233,240,247,.72);
}

/* 2. Make headline-to-meta hierarchy cleaner */
/* 3. Refine meta hierarchy for faster scanning */
.meta-row{
  color: rgba(233,240,247,.62);
  line-height: 1.34;
}.meta-row .meta-date{
  color: rgba(233,240,247,.50);
}

/* 4. Tighten pill system slightly */
.theme-tags,
.risk-pill-wrap {
  gap: 6px;
}

.tag,
.risk-pill,
.type-pill {
  padding: 4px 9px;
  font-size: .72rem;
}

.tag,
.type-pill {
  color: rgba(233,240,247,.66);
}

/* 5. Make implication box more compact and editorial */
.implication {
  padding: 10px 12px;
  color: rgba(236,243,249,.74);
  line-height: 1.58;
}

.implication strong {
  color: rgba(243,247,251,.86);
}

/* 6. Links and secondary text: slightly quieter */
.links-list {
  gap: 6px;
}

.links-list strong {
  font-size: .75rem;
  color: rgba(233,240,247,.54);
}.links-list a{
  color: rgba(142,190,255,.90);
}

/* 8. Desktop scanning refinement */
@media (min-width: 1100px) {
  .intel-card__toggle,
  .top-card .intel-card__toggle {
    gap: 10px;
  }

  .intel-card__content {
    gap: 11px;
  }
}

/* === ROOT META ALIGNMENT CLEANUP === */
@media (min-width:761px){
  body[data-page="home"] .meta-row,
  body[data-page="home"] .top-card .meta-row,
  body[data-page="home"] .intel-card .meta-row{
    justify-content:center;
    
  }

  body[data-page="home"] .meta-row .meta-date,
  body[data-page="home"] .meta-row .theme-tags,
  body[data-page="home"] .meta-row .risk-pill-wrap{
    justify-content:center;
    text-align:center;
    margin-left:0;
    margin-right:0;
    flex:0 0 auto;
  }
}

/* === MOBILE ONLY: card/filter alignment polish === */
@media (max-width:760px){
  .filter-actions{
    justify-content:center !important;
  }.meta-row{
    justify-content:center;
    text-align:center;
  }.meta-row .meta-date,
.meta-row .theme-tags,
.meta-row .risk-pill-wrap,
.risk-pill-wrap,
.theme-tags{
    justify-content:center;
    margin-left:0;
    margin-right:0;
    text-align:center;
  }

  .theme-tags,
  .risk-pill-wrap{
    width:100%;
  }

  .tag,
  .risk-pill,
  .type-pill{
    justify-content:center;
  }
}


@media (max-width:760px){
  .filter-box,
  .filter-box form{
    text-align:center;
  }

  .filter-group label{
    text-align:center;
  }

  .filter-group input,
  .filter-group select{
    text-align:center;
    text-align-last:center;
  }.links-list,
.links-list strong{
    text-align:center !important;
  }

  .links-list{
    justify-items:center;
  }
}


/* === STAGE 12: bottom admin access button === */
.footer-admin-btn{
  font-size:.84rem;
  opacity:.86;
  padding:9px 14px;
}


.ui-btn[data-search-filters],
.ui-btn.home-rss-archive-btn{
  padding:9px 14px;
  color:rgba(233,240,247,.68);
  opacity:.82;
}

@media (max-width:760px){
  .ui-btn[data-search-filters],
  .ui-btn.home-rss-archive-btn{
    min-height:0 !important;
    height:auto !important;
    padding:9px 14px !important;
    color:rgba(233,240,247,.66) !important;
    opacity:.82;
  }
}

/* === Ticker module === */
.ticker-shell{
  position:relative;
  overflow:hidden;
  width:100%;
  margin:18px 0 4px;
  border-top:1px solid rgba(255,255,255,.055);
  border-bottom:1px solid rgba(255,255,255,.055);
  border-left:0;
  border-right:0;
  border-radius:0;
  background:linear-gradient(180deg,rgba(255,255,255,.014),rgba(255,255,255,.003));
  box-shadow:none;
}
.ticker-shell[hidden]{display:none !important}
body[data-page="home"] .ticker-shell + .main-grid{padding-top:0}
.ticker-rail{
  position:relative;
  display:flex;
  align-items:center;
  overflow:hidden;
  white-space:nowrap;
  width:100%;
  min-height:42px;
  padding:11px max(18px, calc((100vw - min(1380px, calc(100vw - 2 * var(--pad)))) / 2));
}
.ticker-track{
  display:flex;
  align-items:center;
  gap:0;
  width:max-content;
  white-space:nowrap;
  will-change:transform;
  animation:ticker-crawl var(--ticker-duration, 32s) linear infinite;
}
.ticker-group{
  display:flex;
  align-items:center;
  flex:0 0 auto;
  width:max-content;
  white-space:nowrap;
}
.ticker-item,.ticker-headline{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:0 18px;
  
  font-size:13px;
  line-height:1.05;
}
.ticker-item__label{
  
  
  letter-spacing:.04em;
  text-transform:uppercase;
  
}
.ticker-item__value,.ticker-headline__text{
  
  font-weight:600;
}
.ticker-item__value.is-placeholder{
  
  font-weight:500;
}
.ticker-item__arrow,
.ticker-item__delta{
  display:inline-flex;
  align-items:center;
  font-size:13px;
  font-weight:600;
  line-height:1;
  color:inherit;
}
.ticker-item__value.is-up,
.ticker-item__arrow.is-up,
.ticker-item__delta.is-up{
  color:#84d79d;
  filter:none;
  opacity:1;
}
.ticker-item__value.is-down,
.ticker-item__arrow.is-down,
.ticker-item__delta.is-down{
  color:#ff8f8f;
  filter:none;
  opacity:1;
}
.ticker-item__value.is-flat,
.ticker-item__arrow.is-flat,
.ticker-item__delta.is-flat{
  color:rgba(222,230,237,.84);
  filter:none;
  opacity:1;
}
.ticker-sep{
  display:inline-block;
  width:1px;
  height:12px;
  background:rgba(255,255,255,.16);
  vertical-align:middle;
}
@keyframes ticker-crawl{
  from{transform:translateX(0)}
  to{transform:translateX(calc(-1 * var(--ticker-cycle-width, 50%)))}
}
@media (max-width:760px){
  .ticker-shell{border-radius:0}
  .ticker-rail{padding:10px 12px}
  .ticker-item,.ticker-headline{padding:0 14px;font-size:12.5px;line-height:1.05}
    
  body[data-page="home"] .ticker-shell::after{display:none !important;content:none !important}
}/* === STAGE 13: headline wrap + expanded text editorial refinement === */
.intel-card__headline,
.top-card h3{
  font-size: 1.12rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-wrap: balance;
  max-width: 30ch;
  color: rgba(244,228,233,.95);
  text-align:center;
  margin-left:auto;
  margin-right:auto;
}.intel-card__content p,
.implication,
.links-list{
  font-size: 0.93rem;
}.intel-card__content p{
  max-width: 66ch;
  text-wrap: pretty;
  text-align: justify;
  text-justify: inter-word;
}

.implication,
.links-list {
  max-width: 68ch;
}

@media (min-width: 1100px) {.intel-card__headline,
.top-card h3{
    max-width: 31ch;
  }.intel-card__content p,
.implication,
.links-list{
    max-width: 64ch;
  }
}

@media (max-width: 760px) {}


/* === STAGE 14: mobile card hierarchy refinement === */
@media (max-width:760px){
  .ticker-shell{
    margin:12px 0;
  }

  body[data-page="home"] .ticker-shell + .main-grid{
    padding-top:0;
  }

  .top-card .intel-card__toggle,
  .intel-card__toggle{
    padding:18px 13px 12px;
    gap:10px;
  }.intel-card__headline,
.top-card h3{
    max-width:26ch;
    font-size:1.12rem;
    line-height:1.26;
    font-weight:660;
    color:rgba(244,228,233,.96);
    text-align:center;
    margin-left:auto;
    margin-right:auto;
  }.meta-row{
    margin-top:4px;
    margin-bottom:8px;
    color:rgba(233,240,247,.58);
  }

  .intel-card__content{
    gap:10px;
  }.intel-card__content p,
.implication,
.links-list{
    font-size:.87rem;
  }.intel-card__content p{
    max-width:60ch;
    color:rgba(233,240,247,.68);
    text-align:justify;
    text-justify:inter-word;
  }

  .implication,
  .links-list{
    color:rgba(233,240,247,.68);
  }
}


.card-image-block{
  display:grid;
  gap:10px;
}

.media-edge-fade-control .image-brightness-row.is-disabled,
.media-edge-transparency-control .image-brightness-row.is-disabled{
  opacity:.52;
}

.media-edge-fade-control .image-brightness-row.is-disabled .range-stepper__btn,
.media-edge-transparency-control .image-brightness-row.is-disabled .range-stepper__btn{
  cursor:not-allowed;
}

.card-image-frame{
  position:relative;
  border:1px solid rgba(255,255,255,.085);
  border-radius:16px;
  overflow:hidden;
  background:#091018;
  box-shadow:0 12px 28px rgba(0,0,0,.22);
}


.card-media-surface--edgefade{
  position:relative;
  isolation:isolate;
  --ccr-edge-fade-px:18px;
}

.card-media-surface--edgefade::after{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:inherit;
  z-index:3;
  background:
    linear-gradient(to right, rgba(9,16,24,.92) 0, rgba(9,16,24,0) var(--ccr-edge-fade-px)),
    linear-gradient(to left, rgba(9,16,24,.92) 0, rgba(9,16,24,0) var(--ccr-edge-fade-px)),
    linear-gradient(to bottom, rgba(9,16,24,.82) 0, rgba(9,16,24,0) var(--ccr-edge-fade-px)),
    linear-gradient(to top, rgba(9,16,24,.82) 0, rgba(9,16,24,0) var(--ccr-edge-fade-px));
  background-repeat:no-repeat;
  background-size:
    min(100%, calc(var(--ccr-edge-fade-px) * 2.6)) 100%,
    min(100%, calc(var(--ccr-edge-fade-px) * 2.6)) 100%,
    100% min(100%, calc(var(--ccr-edge-fade-px) * 2.2)),
    100% min(100%, calc(var(--ccr-edge-fade-px) * 2.2));
  background-position:left top, right top, left top, left bottom;
}


.card-image{
  display:block;
  width:100%;
  max-width:100%;
  aspect-ratio:16 / 9;
  object-fit:cover;
}


.card-video-block{
  display:grid;
  gap:10px;
}

.card-video-launch{
  position:relative;
  display:block;
  width:100%;
  padding:0;
  border:1px solid rgba(255,255,255,.085);
  border-radius:16px;
  overflow:hidden;
  background:#091018;
  cursor:pointer;
  box-shadow:0 12px 28px rgba(0,0,0,.22);
}

.card-video-launch__thumb{
  display:block;
  width:100%;
  aspect-ratio:16 / 9;
  object-fit:cover;
}

.card-video-launch__shade{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(8,13,20,.08),rgba(8,13,20,.32));
}

.card-video-launch__play{
  position:absolute;
  left:50%;
  top:50%;
  width:72px;
  height:52px;
  transform:translate(-50%,-50%);
  border-radius:14px;
  background:rgba(0,0,0,.72);
  box-shadow:0 12px 26px rgba(0,0,0,.28);
  z-index:3;
}


.card-video-launch__play::before{
  content:'';
  position:absolute;
  left:29px;
  top:14px;
  width:0;
  height:0;
  border-left:18px solid #fff;
  border-top:12px solid transparent;
  border-bottom:12px solid transparent;
}

.card-video-embed{
  position:relative;
  border:1px solid rgba(255,255,255,.085);
  border-radius:16px;
  overflow:hidden;
  background:#000;
  box-shadow:0 12px 28px rgba(0,0,0,.22);
}

.card-video-embed iframe{
  display:block;
  width:100%;
  aspect-ratio:16 / 9;
  border:0;
}

.card-native-video{
  display:block;
  width:100%;
  aspect-ratio:16 / 9;
  border:0;
  background:#000;
  object-fit:contain;
}

.card-video-links{
  display:flex;
  justify-content:center;
}

.card-video-links a{
  color:rgba(142,190,255,.94);
  text-decoration:none;
  font-size:.86rem;
  line-height:1.2;
  text-align:center;
}

.card-video-links a:hover{
  text-decoration:underline;
}

@media (max-width:760px){
  .card-video-launch__play{
    width:64px;
    height:46px;
  }

  .card-video-launch__play::before{
    left:26px;
    top:12px;
    border-left-width:16px;
    border-top-width:11px;
    border-bottom-width:11px;
  }
}

/* === DESKTOP TICKER IN FRAME === */
@media (min-width: 981px){
  .ticker-shell{
    margin:0 0 18px;
  }

  .ticker-rail{
    padding:11px 18px;
  }
}


/* === HOME footer about panel === */
.footer-about-btn{
  font-size:.84rem;
  opacity:.86;
  padding:9px 14px;
  cursor:default;
  pointer-events:none;
}

.footer-about-wrap{
  display:grid;
  justify-items:center;
  gap:10px;
  margin-top:12px;
  margin-bottom:12px;
}

.about-site-panel{
  width:min(760px,100%);
  padding:14px 16px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:16px;
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.025));
  color:rgba(228,235,242,.78);
  text-align:center;
  box-shadow:0 14px 34px rgba(0,0,0,.16);
}

.about-site-panel p{
  margin:0;
  font-size:.9rem;
  line-height:1.55;
}

.about-site-panel p + p{ margin-top:8px; }
.about-site-panel strong{ color:rgba(239,244,249,.88); }
.about-site-panel[hidden]{display:none !important;}

body[data-page="home"] .filter-group label{
  color:rgba(220,228,236,.56);
}

body[data-page="home"] .filter-group input,
body[data-page="home"] .filter-group select{
  color:rgba(226,233,240,.84);
  background:rgba(10,18,26,.42);
  border-color:rgba(255,255,255,.085);
  backdrop-filter:blur(6px);
}

body[data-page="home"] .filter-group input:focus,
body[data-page="home"] .filter-group select:focus{
  background:rgba(10,18,26,.52);
  border-color:rgba(140,190,255,.34);
}

body[data-page="home"] .filter-group input::placeholder{
  color:rgba(212,220,228,.46);
}

body[data-page="home"] .ui-btn[data-search-filters],
body[data-page="home"] .ui-btn.home-rss-archive-btn{
  padding:8px 12px;
  font-size:.8rem;
}

@media (max-width:760px){
  .footer-about-wrap{
    margin-top:6px;
    margin-bottom:7px;
    gap:8px;
  }

  .about-site-panel{
    padding:12px 14px;
  }

  .about-site-panel p{
    font-size:.86rem;
    line-height:1.5;
  }

  body[data-page="home"] .ui-btn[data-search-filters],
  body[data-page="home"] .ui-btn.home-rss-archive-btn{
    padding:8px 12px !important;
    font-size:.8rem !important;
  }
}

.body-copy{
  display:grid;
  gap:12px;
}

.body-copy > p,
.body-copy > ul{
  margin:0;
}

.body-copy > .body-figure{
  margin:2px 0;
}

.body-figure{
  display:grid;
  gap:10px;
}

.body-figure__frame{
  position:relative;
  overflow:hidden;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.015));
  box-shadow:0 18px 42px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.06);
}

.body-figure__img{
  display:block;
  width:100%;
  height:auto;
  max-height:min(52vh,540px);
  object-fit:contain;
  background:rgba(7,12,18,.35);
}

.body-figure__caption{
  margin:0;
  padding:0 2px;
  color:rgba(224,232,240,.78);
  font-size:.875rem;
  line-height:1.55;
  text-align:left;
}

.body-figure__caption strong{
  font-weight:700 !important;
  color:inherit;
}

.body-copy > ul{
  padding-left:1.15em;
  display:grid;
  gap:.4em;
}

html[lang="en"] .body-copy > ul,
html[lang="en"] .body-copy > li{
  text-align:left;
  text-justify:auto;
}

.card-media-stack > .card-image-block,
.card-media-stack > .card-video-block{
  margin-top:-2px;
  margin-bottom:-2px;
}

.card-media-gallery > .card-image-block,
.card-media-gallery > .card-video-block{
  margin:0;
}


/* === META STACK REFINEMENT v1024 === */
.meta-row{
  display:grid;
  gap:6px;
  justify-items:center;
}

.meta-main-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:6px 10px;
}

.meta-risk-row{
  display:flex;
  justify-content:center;
  width:100%;
}

.meta-risk-row .risk-pill-wrap{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:0;
}

.meta-main-row .theme-tags{
  display:inline-flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:6px;
}

@media (min-width:761px){
  body[data-page="home"] .meta-row,
  body[data-page="home"] .top-card .meta-row,
  body[data-page="home"] .intel-card .meta-row{
    display:grid;
    gap:6px;
    justify-items:center;
    text-align:center;
  }

  body[data-page="home"] .meta-main-row,
  body[data-page="home"] .meta-risk-row{
    justify-content:center;
    text-align:center;
    width:100%;
  }

  body[data-page="home"] .meta-main-row .meta-date,
  body[data-page="home"] .meta-main-row .theme-tags,
  body[data-page="home"] .meta-risk-row .risk-pill-wrap{
    margin-left:0;
    margin-right:0;
    text-align:center;
  }
}


/* === WORLD MAP / TICKER / FILTER GLASS CONSOLIDATION === */
body[data-page="home"] .site-header{border-bottom-color:rgba(255,255,255,.045);}
body[data-page="home"] .header-actions .lang-toggle{background:rgba(255,255,255,.008);border-color:rgba(255,255,255,.075);}
body[data-page="home"] .header-actions .icon-btn,
body[data-page="home"] .header-actions .ui-btn{background:rgba(255,255,255,.010);border-color:rgba(255,255,255,.075);}
body[data-page="home"] .header-actions .icon-btn:hover,
body[data-page="home"] .header-actions .ui-btn:hover{background:rgba(255,255,255,.028);}
body[data-page="home"] .ticker-shell{
  background:linear-gradient(180deg,rgba(255,255,255,.006),rgba(255,255,255,.0005)) !important;
  border-top-color:rgba(255,255,255,.032) !important;
  border-bottom-color:rgba(255,255,255,.032) !important;
}
body[data-page="home"] .ticker-rail{background:transparent !important;}
body[data-page="home"] .site-header,
body[data-page="home"] .header-inner,
body[data-page="home"] .masthead,
body[data-page="home"] .header-actions{background:transparent !important;}
body[data-page="home"] .home-top-stack .site-header{background:linear-gradient(180deg,rgba(255,255,255,.004),rgba(255,255,255,0)) !important;}
body[data-page="home"] .filter-box{
  background:linear-gradient(180deg,rgba(255,255,255,.012),rgba(255,255,255,.005)) !important;
  border-color:rgba(255,255,255,.052) !important;
}
body[data-page="home"] .filter-group label{color:rgba(220,228,236,.42) !important;}
body[data-page="home"] .filter-group input,
body[data-page="home"] .filter-group select{
  background:rgba(10,18,26,.24) !important;
  border-color:rgba(255,255,255,.078) !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.012);
  color:rgba(226,233,240,.64) !important;
}
body[data-page="home"] .filter-group input:focus,
body[data-page="home"] .filter-group select:focus{background:rgba(10,18,26,.34) !important;}
body[data-page="home"] .filter-group input::placeholder{color:rgba(212,220,228,.30) !important;}
.footer-about-wrap{margin-top:12px !important;margin-bottom:12px !important;gap:10px !important;}
.footer-about-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  line-height:1;
  padding:8px 14px;
  opacity:1;
  color:rgba(213,220,227,.60);
}
.ticker-item,
.ticker-headline{color:rgba(228,235,242,.74);}
.ticker-item__value,
.ticker-headline__text{color:rgba(225,232,239,.70);}
.ticker-item__value.is-placeholder{color:rgba(221,228,236,.56);}
@media (max-width:760px){
  body[data-page="home"] .mobile-bottom-dock .header-actions{
    background:rgba(27,39,51,.22) !important;
    backdrop-filter:blur(6px) !important;
    border-color:rgba(255,255,255,.065) !important;
    box-shadow:0 12px 26px rgba(0,0,0,.18);
  }

  body[data-page="home"] .ticker-shell{
    background:transparent !important;
    border-bottom-color:transparent !important;
    box-shadow:none !important;
  }

  .footer-about-wrap{margin-top:6px !important;margin-bottom:6px !important;gap:10px !important;}
}/* === APPEARANCE CONTROL VARIABLES === */
.top-card h3,
.intel-card__headline{
  color:var(--ccr-card-headline-color,#e2c3cc) !important;
  filter:brightness(var(--ccr-card-headline-brightness,100%));
  opacity:var(--ccr-card-headline-opacity,1);
  font-weight:var(--ccr-card-headline-weight,600) !important;
  font-size:var(--ccr-card-headline-size,1.1rem) !important;
}
.latest-items-title,.section-title-row h2,.hero-card h2,.section-header h2{
  color:var(--ccr-section-subheads-color,#ecf2f8) !important;
  filter:brightness(var(--ccr-section-subheads-brightness,100%));
  opacity:var(--ccr-section-subheads-opacity,1);
  font-weight:var(--ccr-section-subheads-weight,600) !important;
  font-size:var(--ccr-section-subheads-size,1.5rem) !important;
}/* Top-card shells keep padding on the toggle/media layer for tighter news-card rhythm. */
.intel-card,
.hero-card{padding:var(--ccr-card-padding,20px)}
.filter-box{padding:var(--ccr-filter-box-padding,20px)}
.ticker-item__label{
  color:var(--ccr-ticker-label-color,#d7e5ef);
  filter:brightness(var(--ccr-ticker-label-brightness,100%));
  opacity:var(--ccr-ticker-label-opacity,1);
  font-weight:var(--ccr-ticker-label-weight,700);
  font-size:var(--ccr-ticker-label-size,11px) !important;
}
.ticker-item__value{
  color:var(--ccr-ticker-value-color,#e4ebf2);
  filter:brightness(var(--ccr-ticker-value-brightness,100%));
  opacity:var(--ccr-ticker-value-opacity,1);
  font-weight:var(--ccr-ticker-value-weight,600);
  font-size:var(--ccr-ticker-value-size,13px) !important;
}
.ticker-headline__text{
  color:var(--ccr-ticker-headline-color,#e4ebf2);
  filter:brightness(var(--ccr-ticker-headline-brightness,100%));
  opacity:var(--ccr-ticker-headline-opacity,1);
  font-weight:var(--ccr-ticker-headline-weight,600);
  font-size:var(--ccr-ticker-headline-size,13px) !important;
}
.body-copy,.body-copy p{
  color:var(--ccr-body-text-color,#e9f0f7);
  filter:brightness(var(--ccr-body-text-brightness,100%));
  opacity:var(--ccr-body-text-opacity,1);
  font-weight:var(--ccr-body-text-weight,500);
  font-size:var(--ccr-body-text-size,.9625rem) !important;
}
html[lang="en"] .body-copy,
html[lang="en"] .body-copy p{
  text-align:var(--ccr-body-text-align,justify);
  text-justify:inter-word;
}
.implication,.implication strong,.implication-copy{
  color:var(--ccr-implication-text-color,#e9f0f7);
  filter:brightness(var(--ccr-implication-text-brightness,100%));
  opacity:var(--ccr-implication-text-opacity,1);
  font-weight:var(--ccr-implication-text-weight,500);
  font-size:var(--ccr-implication-text-size,.95rem) !important;
}
html[lang="en"] .implication-copy{
  text-align:var(--ccr-implication-text-align,justify);
  text-justify:inter-word;
  display:block;
}

.body-copy strong,
.body-copy p strong,
.body-copy li strong{
  font-weight:700 !important;
  color:inherit;
  filter:none;
  opacity:1;
}

.body-copy .body-inline-link,
.body-copy p .body-inline-link,
.body-copy li .body-inline-link,
.body-figure__caption .body-inline-link{
  color:var(--ccr-body-link-color,#cfe7ff);
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:2px;
  word-break:break-word;
  font-weight:600;
}
.body-copy .body-inline-link:hover,
.body-copy .body-inline-link:focus-visible,
.body-figure__caption .body-inline-link:hover,
.body-figure__caption .body-inline-link:focus-visible{
  color:var(--ccr-body-link-hover-color,#e6f2ff);
}
.implication-copy strong,
.implication strong:not(:first-child){
  font-weight:700 !important;
  color:inherit;
  filter:none;
  opacity:1;
}
.implication .implication-label{
  font-weight:600 !important;
  color:rgba(243,247,251,.9);
  filter:none;
  opacity:1;
}
.implication .implication-copy strong{
  font-weight:700 !important;
  color:inherit;
  filter:none;
  opacity:1;
}
.summary-copy,.summary-copy p{
  color:var(--ccr-summary-text-color,#e9f0f7);
  filter:brightness(var(--ccr-summary-text-brightness,100%));
  opacity:var(--ccr-summary-text-opacity,1);
  font-weight:var(--ccr-summary-text-weight,500);
  font-size:var(--ccr-summary-text-size,.9625rem) !important;
}.meta-date{
  color:var(--ccr-utility-stamps-color,#c7d3dd) !important;
  opacity:var(--ccr-utility-stamps-opacity,.82);
  font-weight:var(--ccr-utility-stamps-weight,500);
  font-size:var(--ccr-utility-stamps-size,.8rem) !important;
}
.tag,.type-pill,.risk-prefix,.risk-pill,.theme-tags,.meta-risk-row,.risk-pill-wrap{
  color:var(--ccr-pills-meta-color,#d7e0e8);
  opacity:var(--ccr-pills-meta-opacity,1);
  font-weight:var(--ccr-pills-meta-weight,500);
  font-size:var(--ccr-pills-meta-size,.74rem) !important;
}.links-list,
.links-list a,
.links-list strong{
  color:var(--ccr-link-lists-color,#8ebeff);
  opacity:var(--ccr-link-lists-opacity,1);
  font-weight:var(--ccr-link-lists-weight,500);
  font-size:var(--ccr-link-lists-size,.92rem) !important;
}
.filter-group label,.filter-note{
  color:var(--ccr-filter-labels-color,#dce4ec);
  opacity:var(--ccr-filter-labels-opacity,1);
  font-weight:var(--ccr-filter-labels-weight,500);
  font-size:var(--ccr-filter-labels-size,.82rem) !important;
}
.about-site-panel,.about-site-panel p,.about-site-panel strong,.empty-state,.helper{
  color:var(--ccr-helper-copy-color,#b8c6d4);
  opacity:var(--ccr-helper-copy-opacity,.86);
  font-weight:var(--ccr-helper-copy-weight,500);
  font-size:var(--ccr-helper-copy-size,.95rem) !important;
}
.page-shell{gap:var(--ccr-main-gap,36px)}
.section-stack{gap:var(--ccr-section-gap,24px)}
.site-world-map-track{animation-duration:var(--ccr-map-desktop-duration,110s)}


/* === MULTI MEDIA STACK === */
.card-media-stack{
  display:grid;
  gap:12px;
}

.card-media-gallery{
  display:grid;
  gap:12px;
}

.card-media-gallery--images{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.card-image-block--gallery .card-image-frame,
.card-media-gallery--images .card-image-frame{
  height:100%;
}

.card-media-gallery--videos{
  grid-template-columns:1fr;
}

@media (max-width:760px){
  .card-media-gallery--images{
    grid-template-columns:1fr;
  }
}.meta-block{
  display:grid;
  gap:6px;
  width:100%;
  margin-top:0;
  margin-bottom:10px;
  justify-items:center;
}.meta-date-row{
  display:flex;
  justify-content:center !important;
  align-items:center;
  width:100%;
  text-align:center;
}.meta-date-row .meta-date{
  display:block;
  width:100%;
  margin-inline:auto;
  text-align:center !important;
}

.meta-block .meta-row{
  margin-top:0;
  margin-bottom:0;
  justify-content:center;
  text-align:center;
}

.intel-card__toggle .meta-block,
.top-card .intel-card__toggle .meta-block,
.intel-card__toggle .meta-date-row,
.top-card .intel-card__toggle .meta-date-row,
.intel-card__toggle .meta-date,
.top-card .meta-date{
  width:100%;
  margin-inline:auto;
  text-align:center !important;
}body[data-page="home"] .type-pill{
  display:none !important;
}




/* Phase 8D.1 — closed-card media preview refinement + filter-stack correction (2026-04-30)
   Uses a taller card-wide contained media preview over a softened blurred background.
   Brightness is passed as a CSS variable so blur/drop-shadow and brightness can coexist. */
.card-toggle-media{
  --ccr-toggle-media-brightness:.96;
  width:100%;
  margin:-1px 0 6px;
}

.card-toggle-media__frame{
  position:relative;
  overflow:hidden;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.072);
  background:linear-gradient(180deg,rgba(255,255,255,.024),rgba(8,13,21,.18));
  box-shadow:0 14px 30px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.03);
  min-height:168px;
}

.card-toggle-media__bg,
.card-toggle-media__stage{
  position:absolute;
  inset:0;
}

.card-toggle-media__bg{
  overflow:hidden;
}

.card-toggle-media__bg-image{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  transform:scale(1.12);
  filter:blur(16px) saturate(.92) brightness(var(--ccr-toggle-media-brightness,.96));
  opacity:.42;
}

.card-toggle-media__frame::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:1;
  background:
    radial-gradient(circle at 50% 14%, rgba(255,255,255,.045), transparent 34%),
    linear-gradient(180deg, rgba(7,12,20,.06) 0%, rgba(7,12,20,.04) 34%, rgba(7,12,20,.18) 100%);
  pointer-events:none;
}

.card-toggle-media__frame::after{
  content:'';
  position:absolute;
  inset:0;
  z-index:3;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(8,13,21,.05), rgba(8,13,21,0) 18%, rgba(8,13,21,0) 82%, rgba(8,13,21,.08)),
    linear-gradient(90deg, rgba(8,13,21,.03), rgba(8,13,21,0) 16%, rgba(8,13,21,0) 84%, rgba(8,13,21,.04));
}

.card-toggle-media__stage{
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px 12px 10px;
}

.card-toggle-media__image{
  display:block;
  width:100%;
  max-width:100%;
  height:144px;
  object-fit:contain;
  object-position:center;
  opacity:.98;
  filter:brightness(var(--ccr-toggle-media-brightness,.96)) drop-shadow(0 12px 22px rgba(0,0,0,.22));
}

.top-card .intel-card__toggle,
.intel-card .intel-card__toggle{
  gap:10px;
}

@media (max-width:760px){
  .card-toggle-media{
    margin:-1px 0 4px;
  }
  .card-toggle-media__frame{
    min-height:142px;
  }
  .card-toggle-media__stage{
    padding:10px 10px 8px;
  }
  .card-toggle-media__image{
    height:120px;
  }
}

/* Phase 8C — hide closed-card preview media while card is open (2026-04-30)
   Prevents duplicate hero/header imagery: closed cards show the preview strip;
   open cards show the original full media inside the expanded content. */
.top-card.is-open > .intel-card__toggle .card-toggle-media,
.intel-card.is-open > .intel-card__toggle .card-toggle-media{
  display:none !important;
}

/* === PHASE A: Latest Items / FMP Market Pulse card rhythm alignment (2026-05-01)
   Scope: home Latest Items CCR cards only. Keeps renderer, expanded media, YouTube links,
   chart logic, FMP panel, RSS, portfolio, login, and live data untouched. */
body[data-page="home"] .top-strip{
  gap:14px;
}

body[data-page="home"] .top-strip > .top-card{
  padding:0 !important;
  border-color:rgba(255,255,255,.064);
  background:linear-gradient(180deg,rgba(255,255,255,.017),rgba(255,255,255,.007));
  box-shadow:0 12px 28px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.02);
}

body[data-page="home"] .top-strip > .top-card:hover{
  border-color:rgba(255,255,255,.096);
  box-shadow:0 14px 30px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.025);
}

body[data-page="home"] .top-strip > .top-card > .intel-card__toggle{
  padding:12px 12px 13px;
  gap:8px;
  align-content:start;
}

body[data-page="home"] .top-strip > .top-card .card-toggle-media{
  margin:0 0 5px;
}

body[data-page="home"] .top-strip > .top-card .card-toggle-media__frame{
  min-height:132px;
  border-radius:13px;
  border-color:rgba(255,255,255,.062);
  background:linear-gradient(180deg,rgba(255,255,255,.016),rgba(6,12,22,.18));
  box-shadow:0 10px 22px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.02);
}

body[data-page="home"] .top-strip > .top-card .card-toggle-media__stage{
  padding:8px 9px 7px;
}

body[data-page="home"] .top-strip > .top-card .card-toggle-media__image{
  height:114px;
  opacity:.96;
}

body[data-page="home"] .top-strip > .top-card h3{
  font-size:clamp(.98rem,1.03vw,1.08rem) !important;
  line-height:1.27;
  max-width:24ch;
  font-weight:650 !important;
  letter-spacing:.004em;
  margin:0 auto;
}

body[data-page="home"] .top-strip > .top-card .meta-block{
  gap:4px;
  margin:1px 0 0;
}

body[data-page="home"] .top-strip > .top-card .meta-date{
  font-size:.76rem;
  color:rgba(211,225,243,.62) !important;
}

body[data-page="home"] .top-strip > .top-card .meta-row{
  gap:4px 7px;
  font-size:.72rem;
  opacity:.72;
}

body[data-page="home"] .top-strip > .top-card .risk-prefix{
  font-size:.68rem;
  color:rgba(211,225,243,.55);
}

body[data-page="home"] .top-strip > .top-card .risk-pill{
  font-size:.68rem;
  padding:2px 7px;
}

@media (min-width:1100px){
  body[data-page="home"] .top-strip{
    gap:14px 16px;
  }
}

@media (max-width:980px){
  body[data-page="home"] .top-strip > .top-card .card-toggle-media__frame{
    min-height:124px;
  }
  body[data-page="home"] .top-strip > .top-card .card-toggle-media__image{
    height:106px;
  }
}

@media (max-width:760px){
  body[data-page="home"] .top-strip{
    gap:12px;
  }
  body[data-page="home"] .top-strip > .top-card > .intel-card__toggle{
    padding:10px 10px 12px;
    gap:7px;
  }
  body[data-page="home"] .top-strip > .top-card .card-toggle-media{
    margin:0 0 4px;
  }
  body[data-page="home"] .top-strip > .top-card .card-toggle-media__frame{
    min-height:116px;
    border-radius:12px;
  }
  body[data-page="home"] .top-strip > .top-card .card-toggle-media__stage{
    padding:7px 8px 6px;
  }
  body[data-page="home"] .top-strip > .top-card .card-toggle-media__image{
    height:98px;
  }
  body[data-page="home"] .top-strip > .top-card h3{
    font-size:1rem !important;
    line-height:1.25;
    max-width:26ch;
  }
  body[data-page="home"] .top-strip > .top-card .meta-date{
    font-size:.72rem;
  }
  body[data-page="home"] .top-strip > .top-card .meta-row{
    font-size:.69rem;
  }
}


/* === PHASE B1: Source-aware CCR Latest Items media spread (2026-05-01)
   YouTube/video fallback thumbnails get a fuller Market-Pulse-like card image treatment.
   Uploaded/hero/gallery images keep the safer contained treatment to avoid cropping people, logos, charts, and text. */
body[data-page="home"] .top-strip > .top-card .card-toggle-media--video .card-toggle-media__frame,
body[data-page="home"] .top-strip > .top-card .card-toggle-media--source-youtube .card-toggle-media__frame{
  min-height:132px;
  background:rgba(0,0,0,.13);
}

body[data-page="home"] .top-strip > .top-card .card-toggle-media--video .card-toggle-media__stage,
body[data-page="home"] .top-strip > .top-card .card-toggle-media--source-youtube .card-toggle-media__stage{
  padding:0;
}

body[data-page="home"] .top-strip > .top-card .card-toggle-media--video .card-toggle-media__image,
body[data-page="home"] .top-strip > .top-card .card-toggle-media--source-youtube .card-toggle-media__image{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  opacity:.82;
  filter:saturate(.88) brightness(var(--ccr-toggle-media-brightness,.96));
}

body[data-page="home"] .top-strip > .top-card .card-toggle-media--video .card-toggle-media__bg-image,
body[data-page="home"] .top-strip > .top-card .card-toggle-media--source-youtube .card-toggle-media__bg-image{
  opacity:.24;
  transform:scale(1.06);
}

body[data-page="home"] .top-strip > .top-card .card-toggle-media--video .card-toggle-media__frame::before,
body[data-page="home"] .top-strip > .top-card .card-toggle-media--source-youtube .card-toggle-media__frame::before{
  background:
    linear-gradient(180deg, rgba(7,12,20,.02) 0%, rgba(7,12,20,.03) 42%, rgba(7,12,20,.12) 100%),
    radial-gradient(circle at 50% 10%, rgba(255,255,255,.032), transparent 38%);
}

body[data-page="home"] .top-strip > .top-card .card-toggle-media--image .card-toggle-media__image{
  max-width:calc(100% - 2px);
}

@media (max-width:980px){
  body[data-page="home"] .top-strip > .top-card .card-toggle-media--video .card-toggle-media__frame,
  body[data-page="home"] .top-strip > .top-card .card-toggle-media--source-youtube .card-toggle-media__frame{
    min-height:124px;
  }
}

@media (max-width:760px){
  body[data-page="home"] .top-strip > .top-card .card-toggle-media--video .card-toggle-media__frame,
  body[data-page="home"] .top-strip > .top-card .card-toggle-media--source-youtube .card-toggle-media__frame{
    min-height:118px;
  }

  body[data-page="home"] .top-strip > .top-card .card-toggle-media--video .card-toggle-media__image,
  body[data-page="home"] .top-strip > .top-card .card-toggle-media--source-youtube .card-toggle-media__image{
    opacity:.84;
  }
}

/* === PHASE C1: Intentional hero-image CCR Latest Items media spread (2026-05-01)
   Scope: public/admin preview homepage cards only. Hero images are editor-selected lead media,
   so they can use a fuller Market-Pulse-like treatment while gallery/thumbnail fallbacks stay protected. */
body[data-page="home"] .top-strip > .top-card .card-toggle-media--source-hero .card-toggle-media__frame{
  
  background:rgba(0,0,0,.12);
}

body[data-page="home"] .top-strip > .top-card .card-toggle-media--source-hero .card-toggle-media__stage{
  padding:0;
}

body[data-page="home"] .top-strip > .top-card .card-toggle-media--source-hero .card-toggle-media__image{
  width:100%;
  height:100%;
  object-fit:cover;
  
  opacity:.86;
  filter:saturate(.92) brightness(var(--ccr-toggle-media-brightness,.96));
}

body[data-page="home"] .top-strip > .top-card .card-toggle-media--source-hero .card-toggle-media__bg-image{
  opacity:.22;
  transform:scale(1.06);
}

body[data-page="home"] .top-strip > .top-card .card-toggle-media--source-hero .card-toggle-media__frame::before{
  background:
    linear-gradient(180deg, rgba(7,12,20,.018) 0%, rgba(7,12,20,.026) 44%, rgba(7,12,20,.13) 100%),
    radial-gradient(circle at 50% 10%, rgba(255,255,255,.034), transparent 40%);
}

@media (max-width:980px){
  }

@media (max-width:760px){
  
  body[data-page="home"] .top-strip > .top-card .card-toggle-media--source-hero .card-toggle-media__image{
    opacity:.88;
  }
}


/* === PHASE D1: CCR hero-image format lock (2026-05-01)
   Scope: intentional lead/hero media only. This makes the public/admin preview
   slot predictable for editor-produced CCR card artwork without changing
   YouTube/video or gallery fallback behavior. Recommended source art: 1920x750. */
body[data-page="home"] .top-strip > .top-card .card-toggle-media--source-hero .card-toggle-media__frame{
  --ccr-card-hero-artwork-ratio:2.56;
  height:132px;
  min-height:0;
  aspect-ratio:2.56 / 1;
}

body[data-page="home"] .top-strip > .top-card .card-toggle-media--source-hero .card-toggle-media__image{
  object-position:center center;
}

@media (max-width:980px){
  body[data-page="home"] .top-strip > .top-card .card-toggle-media--source-hero .card-toggle-media__frame{
    height:124px;
    min-height:0;
  }
}

@media (max-width:760px){
  body[data-page="home"] .top-strip > .top-card .card-toggle-media--source-hero .card-toggle-media__frame{
    height:118px;
    min-height:0;
  }
}


/* r9253 — mobile-only footer Invite Friend normal-flow balance near About Site */
.footer-invite-friend-btn{
  display:none;
}
@media (max-width:760px){
  body[data-page="home"] #regionSections:empty{
    display:none !important;
  }
  body[data-page="home"] .home-main{
    padding-bottom:0 !important;
  }
  body[data-page="home"] .footer-about-wrap{
    display:grid !important;
    grid-template-columns:1fr;
    justify-items:center;
    align-items:center;
    row-gap:12px !important;
    padding-block:0 !important;
    margin-top:18px !important;
    margin-bottom:18px !important;
  }
  body[data-page="home"] .footer-invite-friend-btn,
  body[data-page="home"] .footer-about-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    position:static !important;
    transform:none !important;
    top:auto !important;
    min-height:27px;
    margin:0 !important;
    padding:5px 11px;
    border:1px solid rgba(212,184,116,.18);
    border-radius:999px;
    background:rgba(212,184,116,.038);
    color:rgba(229,211,166,.66);
    font-family:Inter,"Noto Sans JP",system-ui,sans-serif;
    font-size:.68rem;
    font-weight:620;
    letter-spacing:.018em;
    line-height:1;
    box-shadow:none;
    -webkit-tap-highlight-color:transparent;
    touch-action:manipulation;
  }
  body[data-page="home"] .footer-invite-friend-btn{ cursor:pointer; }
  body[data-page="home"] .footer-about-btn{ cursor:default; }
  body[data-page="home"] .footer-invite-friend-btn[hidden]{
    display:none !important;
  }
  body[data-page="home"] .footer-invite-friend-btn:hover,
  body[data-page="home"] .footer-invite-friend-btn:focus-visible{
    border-color:rgba(229,211,166,.28);
    background:rgba(212,184,116,.068);
    color:rgba(238,221,176,.80);
    outline:none;
  }
}


/* S35 — iPhone/WebKit ticker headline typography normalization.
   Android is intentionally left on the existing mobile rules. This only targets
   iOS/WebKit text sizing inside the moving home ticker so one manual headline
   cannot be inflated differently from the surrounding ticker items. */
@supports (-webkit-touch-callout: none){
  @media (max-width:760px){
    body[data-page="home"] .ticker-shell,
    body[data-page="home"] .ticker-rail,
    body[data-page="home"] .ticker-track,
    body[data-page="home"] .ticker-group,
    body[data-page="home"] .ticker-item,
    body[data-page="home"] .ticker-headline,
    body[data-page="home"] .ticker-headline__text{
      -webkit-text-size-adjust:100% !important;
      text-size-adjust:100% !important;
    }

    body[data-page="home"] .ticker-headline,
    body[data-page="home"] .ticker-headline__text{
      font-size:var(--ccr-ticker-headline-mobile-size,var(--ccr-ticker-headline-size,12.5px)) !important;
      line-height:1 !important;
      letter-spacing:normal !important;
      -webkit-font-smoothing:antialiased;
      font-synthesis:none;
    }

    body[data-page="home"] .ticker-headline__text{
      display:inline-block;
      max-width:none;
      white-space:nowrap;
    }
  }
}


/* S46 — mobile active-element selection polish.
   Keep normal body/article text selectable, but prevent blue selection/tap blocks
   on controls, links, tabs, pills and other active UI labels on touch/mobile. */
@media (hover:none), (pointer:coarse), (max-width:760px){
  :where(
    a,
    button,
    summary,
    label[for],
    label[role="button"],
    [role="button"],
    [role="tab"],
    [role="menuitem"],
    [aria-pressed],
    [aria-expanded],
    .ui-btn,
    .icon-btn,
    .lang-toggle button,
    .ticker-item,
    .ticker-mini-pill,
    .filter-chip,
    .pill,
    .tab,
    .rss-tab-btn,
    .rss-source-card,
    .rss-search-show-more,
    .home-invite-friend-btn,
    .home-rss-archive-btn,
    .footer-invite-friend-btn,
    .footer-about-btn,
    .mobile-bottom-dock *,
    .ccr-intelligence-ribbon__tab,
    .site-title-mobile-user-badge,
    .entry-access-copy-btn,
    .range-stepper__btn,
    .appearance-jump-btn
  ),
  :where(
    a,
    button,
    summary,
    label[for],
    label[role="button"],
    [role="button"],
    [role="tab"],
    [role="menuitem"],
    [aria-pressed],
    [aria-expanded],
    .ui-btn,
    .icon-btn,
    .lang-toggle button,
    .ticker-item,
    .ticker-mini-pill,
    .filter-chip,
    .pill,
    .tab,
    .rss-tab-btn,
    .rss-source-card,
    .rss-search-show-more,
    .home-invite-friend-btn,
    .home-rss-archive-btn,
    .footer-invite-friend-btn,
    .footer-about-btn,
    .mobile-bottom-dock *,
    .ccr-intelligence-ribbon__tab,
    .site-title-mobile-user-badge,
    .entry-access-copy-btn,
    .range-stepper__btn,
    .appearance-jump-btn
  ) *{
    -webkit-user-select:none !important;
    user-select:none !important;
    -webkit-touch-callout:none !important;
    -webkit-tap-highlight-color:transparent !important;
  }

  :where(a, button, summary, label[for], label[role="button"], [role="button"], [role="tab"], [role="menuitem"], .ui-btn, .icon-btn):focus:not(:focus-visible){
    outline:none !important;
  }

  :where(input, textarea, select, [contenteditable="true"], .allow-text-selection, .copyable, .copy-target){
    -webkit-user-select:text !important;
    user-select:text !important;
    -webkit-touch-callout:default !important;
  }
}
/* ===== S56T SOURCE END: components.css ===== */

/* ===== S56T SOURCE BEGIN: pages.css ===== */

/* === HYDRATION PLACEHOLDER SUPPRESSION (targeted headings) === */
.latest-items-title:empty,
.section-title-row h2:empty{display:none !important;}

.home-hero{display:grid;gap:0}.hero-card{padding:20px}.latest-items-title-row{padding:0 0 10px}.latest-items-title-row>div{display:grid;gap:8px}.latest-items-title{font-size:var(--ccr-section-subheads-size,1.5rem);margin:0}.section-title-row{display:flex;align-items:end;justify-content:space-between;gap:16px}.anchor-offset{scroll-margin-top:84px}


@media (max-width:760px){
  .home-hero{
    gap:0;
  }

  .latest-items-title-row{
    justify-content:center !important;
    text-align:center !important;
    padding:0 0 9px;
  }

  .latest-items-title-row > div{
    width:100%;
    justify-items:center;
  }

  .latest-items-title{
    display:block;
    width:100%;
    margin:0 auto !important;
    text-align:center !important;
    font-size:var(--ccr-section-subheads-size,1.08rem) !important;
    line-height:1.18 !important;
    color:rgba(246,249,252,.93) !important;
    letter-spacing:.01em;
  }
}

/* === MOBILE ONLY: section heading alignment polish === */
@media (max-width:760px){
  .section-title-row{
    justify-content:center !important;
    text-align:center !important;
  }

  .section-title-row > div{
    width:100%;
    justify-items:center;
  }

  .section-title-row h2{
    width:100%;
    margin:0 auto !important;
    text-align:center !important;
    font-size:var(--ccr-section-subheads-size,1rem) !important;
    line-height:1.2 !important;
  }

  .page-lead{
    display:none !important;
  }
}


/* === ROOT RHYTHM TUNE === */
body[data-page="home"] .home-hero + .section-stack{
  margin-top:-12px;
}


body[data-page="home"] .latest-items-title-row{
  margin:0;
}


/* === STAGE 18: ticker/search rhythm refinement === */
body[data-page="home"] .section-stack > .section-title-row{
  margin-top:-4px;
}


/* === FINAL VISUAL OVERRIDES: mobile Latest Items spacing === */
@media (max-width:760px){
  .latest-items-title-row{
    padding:3px 0 9px !important;
  }
}


/* === DESKTOP ONLY: home alignment rail lives in layout.css === */


/* section-heading appearance rules live in assets/css/components.css */
/* ===== S56T SOURCE END: pages.css ===== */



/* R1B Study Resources mobile cover owner — 2026-10-09
   Study-resource imagery is document-cover media: preserve portrait geometry and
   show the complete cover. This late owner protects the mobile shared-panel path
   without changing Reading or CCR Coaching & Training resource cards. */
body[data-page="home"] .book-shell-study-panel--resources .book-shell-resource-card__media--portrait{
  aspect-ratio:3 / 4 !important;
}
body[data-page="home"] .book-shell-study-panel--resources .book-shell-resource-card__image--contain{
  object-fit:contain !important;
}
@media (max-width:900px){
  body[data-page="home"] .book-shell-study-mobile-panel.book-shell-study-panel--resources .book-shell-resource-card{
    grid-template-columns:minmax(0,1fr) !important;
    justify-items:center !important;
    align-items:start !important;
    gap:14px !important;
    text-align:center !important;
  }
  body[data-page="home"] .book-shell-study-mobile-panel.book-shell-study-panel--resources .book-shell-resource-card__media--portrait{
    grid-column:1 !important;
    grid-row:auto !important;
    width:min(48vw, 180px) !important;
    max-width:180px !important;
    justify-self:center !important;
    aspect-ratio:3 / 4 !important;
  }
  body[data-page="home"] .book-shell-study-mobile-panel.book-shell-study-panel--resources .book-shell-resource-card__image--contain{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
  }
  body[data-page="home"] .book-shell-study-mobile-panel.book-shell-study-panel--resources .book-shell-resource-card__copy{
    grid-column:1 !important;
    width:min(100%, 28rem) !important;
    max-width:100% !important;
    justify-items:center !important;
    text-align:center !important;
  }
  body[data-page="home"] .book-shell-study-mobile-panel.book-shell-study-panel--resources .book-shell-resource-card__copy h3,
  body[data-page="home"] .book-shell-study-mobile-panel.book-shell-study-panel--resources .book-shell-resource-card__copy p{
    width:100% !important;
    max-width:100% !important;
    text-align:center !important;
  }
}

/* CCR Main R1 — preserve CP landscape composition; CCR article media only. */
body[data-page="home"] .ccr-intelligence-ribbon__ccr-media-button .ccr-intelligence-ribbon__rss-media{
  aspect-ratio:16 / 9 !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
}
body[data-page="home"] .ccr-intelligence-ribbon__ccr-media-button .ccr-intelligence-ribbon__rss-media img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center center !important;
}
@media (max-width:760px){
  body[data-page="home"] .ccr-intelligence-ribbon__ccr-media-button .ccr-intelligence-ribbon__rss-media{
    aspect-ratio:1.92 / 1 !important;
    max-height:none !important;
  }
}

/* CCR Main Schedule Glass R10 — 2026-10-21.
   Presentation only: scoped to schedule surfaces. Booking states, grid geometry,
   sticky rails, selection, event handlers and email delivery remain owned by Main. */
body[data-page="home"] .settings-shell-section[data-settings-section="schedule"],
body[data-page="home"] .settings-schedule-expanded-layer,
body[data-page="home"] .settings-schedule-week-panel{
  /* Glass fallback for older engines. Only small sticky rails need firm fills. */
  --schedule-slate-panel:rgba(49,66,82,.18);
  --schedule-slate-surface:rgba(58,74,91,.50);
  --schedule-slate-raised:rgba(68,87,105,.75);
  --schedule-slate-field:rgba(38,53,68,.82);
  --schedule-slate-border:rgba(234,240,245,.20);
  --schedule-slate-text:var(--text,#eaf0f5);
  --schedule-slate-muted:var(--text,#eaf0f5);
  --schedule-glass-inner:rgba(234,240,245,.025);
  --schedule-glass-body:rgba(49,66,82,.08);
  --schedule-glass-grid:rgba(38,53,68,.22);
  --schedule-glass-expanded:rgba(38,53,68,.30);
  --schedule-glass-header:var(--bg,#263544);
  --schedule-glass-anchor:var(--bg-2,#314252);
  --schedule-glass-weekend:rgb(59,48,61);
  --schedule-glass-hover:rgba(68,87,105,.72);
  --schedule-glass-active-border:rgba(234,240,245,.42);
  --schedule-glass-hover-border:rgba(234,240,245,.58);
}
/* The background switch changes the map image. The surrounding Settings glass
   supplies blur/dimming; light schedule tints let that same image show through.
   Shared colour tokens also flow through immediately if a theme updates them. */
@supports (background:color-mix(in srgb, #000 50%, transparent)){
  body[data-page="home"] .settings-shell-section[data-settings-section="schedule"],
  body[data-page="home"] .settings-schedule-expanded-layer,
  body[data-page="home"] .settings-schedule-week-panel{
    --schedule-slate-panel:color-mix(in srgb, var(--bg-2,#314252) 18%, transparent);
    --schedule-slate-surface:color-mix(in srgb, var(--surface,#3a4a5b) 50%, transparent);
    --schedule-slate-raised:color-mix(in srgb, var(--surface-2,#445769) 75%, transparent);
    --schedule-slate-field:color-mix(in srgb, var(--bg,#263544) 82%, transparent);
    --schedule-slate-border:color-mix(in srgb, var(--text,#eaf0f5) 20%, transparent);
    --schedule-slate-muted:color-mix(in srgb, var(--text,#eaf0f5) 70%, var(--text-2,#c2ccd6));
    --schedule-glass-inner:color-mix(in srgb, var(--text,#eaf0f5) 2.5%, transparent);
    --schedule-glass-body:color-mix(in srgb, var(--bg-2,#314252) 8%, transparent);
    --schedule-glass-grid:color-mix(in srgb, var(--bg,#263544) 22%, transparent);
    --schedule-glass-expanded:color-mix(in srgb, var(--bg,#263544) 30%, transparent);
    --schedule-glass-header:var(--bg,#263544);
    --schedule-glass-anchor:var(--bg-2,#314252);
    --schedule-glass-weekend:color-mix(in srgb, var(--schedule-glass-header) 80%, rgb(144,62,86));
    --schedule-glass-hover:color-mix(in srgb, var(--surface-2,#445769) 72%, transparent);
    --schedule-glass-active-border:color-mix(in srgb, var(--text,#eaf0f5) 42%, transparent);
    --schedule-glass-hover-border:color-mix(in srgb, var(--text,#eaf0f5) 58%, transparent);
  }
}
body[data-page="home"] .settings-schedule-week-panel,
body[data-page="home"] .settings-schedule-calendar,
body[data-page="home"] .settings-schedule-day-panel,
body[data-page="home"] .settings-schedule-day-panel.is-admin-editor,
body[data-page="home"] .settings-schedule-requests,
body[data-page="home"] .settings-schedule-sessions{
  background:var(--schedule-slate-panel,#314252);
  border-color:var(--schedule-slate-border,rgba(211,224,236,.20));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
/* Avoid solid inner rectangles when requests or records are opened. */
body[data-page="home"] .settings-schedule-requests__body,
body[data-page="home"] .settings-schedule-sessions__body,
body[data-page="home"] .settings-schedule-requests__toggle em,
body[data-page="home"] .settings-schedule-sessions__toggle em{
  background:var(--schedule-glass-body);
}
body[data-page="home"] .settings-schedule-week-panel{
  container-name:ccr-schedule;
  container-type:inline-size;
  min-width:0;
  gap:12px;
  padding:14px;
}
body[data-page="home"] .settings-schedule-expanded-card{
  background:var(--schedule-glass-expanded);
}
body[data-page="home"] .settings-schedule-expanded-header{
  background:var(--schedule-glass-inner);
}
/* A dedicated date row, with arrows flanking the range and jump tools below. */
body[data-page="home"] .settings-schedule-week-panel .settings-schedule-week-panel__head{
  position:relative;
  grid-template-columns:38px minmax(0,1fr) 38px;
  align-items:center;
  gap:10px;
}
body[data-page="home"] .settings-schedule-week-panel .settings-schedule-week-panel__head > .settings-mini-btn[data-settings-action="schedule-grid-prev"]{
  grid-column:1;
  grid-row:1;
  align-self:start;
  width:38px;
  min-width:0;
  min-height:38px;
  padding:0;
}
body[data-page="home"] .settings-schedule-week-panel .settings-schedule-week-panel__head > div:not(.settings-schedule-week-panel__nav){
  grid-column:2;
  grid-row:1;
  min-width:0;
  text-align:center;
}
body[data-page="home"] .settings-schedule-week-panel .settings-schedule-week-panel__head strong{
  line-height:1.3;
  font-size:1rem;
}
body[data-page="home"] .settings-schedule-week-panel .settings-schedule-week-panel__head em{
  color:var(--schedule-slate-muted);
  line-height:1.4;
  font-size:.68rem;
}
body[data-page="home"] .settings-schedule-week-panel .settings-schedule-week-panel__nav{
  grid-column:1 / -1;
  grid-row:2;
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-start;
  align-items:center;
  gap:8px;
  min-width:0;
  max-width:none;
  padding-top:10px;
  border-top:1px solid var(--schedule-slate-border);
}
body[data-page="home"] .settings-schedule-week-panel .settings-schedule-week-panel__nav > [data-settings-action="schedule-grid-next"]{
  position:absolute;
  right:0;
  top:0;
  width:38px;
  min-width:0;
  min-height:38px;
  padding:0;
}
body[data-page="home"] .settings-schedule-week-panel .settings-schedule-week-panel__jump{
  display:flex;
  flex:0 1 210px;
  width:auto;
  min-width:0;
  min-height:38px;
  gap:8px;
  padding:5px 10px;
  border-radius:10px;
  background:var(--schedule-slate-field);
}
body[data-page="home"] .settings-schedule-week-panel .settings-schedule-week-panel__jump input{
  flex:1 1 auto;
  min-width:0;
  width:128px;
  color-scheme:dark;
  font-size:.78rem;
}
body[data-page="home"] .settings-schedule-week-panel__view,
body[data-page="home"] .settings-schedule-week-pan-rail{
  background:var(--schedule-slate-surface,#3a4a5b);
  border-color:var(--schedule-slate-border);
  color:var(--schedule-slate-muted);
}
/* Use the actual panel width, including in the expanded workspace. */
body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:stretch;
  gap:12px;
  padding:12px;
  border-radius:14px;
  /* 18% panel + 2.5% editor tint: 79.95% of the Settings underlay remains.
     Do not put another firm panel behind the editor. */
  background:var(--schedule-glass-inner);
  border-color:var(--schedule-slate-border);
}
body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin__controls{
  grid-column:1;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px 16px;
  align-items:end;
}
body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin__controls > label,
body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin__label-control{
  min-width:0;
  margin:0;
}
body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin__label-control{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin__controls label{
  gap:6px;
}
body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin__controls span{
  color:var(--schedule-slate-muted);
  line-height:1.4;
  letter-spacing:.05em;
  font-size:.66rem;
}
body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin__controls input,
body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin__controls select{
  min-height:38px;
  height:auto;
  background:var(--schedule-slate-field);
  border-color:var(--schedule-slate-border);
  color:var(--schedule-slate-text);
  color-scheme:dark;
  padding:8px 10px;
  border-radius:10px;
  font-size:.78rem;
}
body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin__cancel-control{
  grid-column:auto;
  padding-top:0;
  border-top:0;
}
body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin__label-control .settings-mini-btn{
  width:auto;
  min-width:0;
  max-width:12rem;
  white-space:normal;
  line-height:1.3;
}
body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin__actions{
  grid-column:1;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  justify-content:stretch;
  align-items:stretch;
  gap:8px;
  padding-top:12px;
  border-top:1px solid var(--schedule-slate-border);
}
body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin__actions > span{
  grid-column:1 / -1;
  margin:0 0 2px;
  line-height:1.4;
}
body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin__actions .settings-mini-btn{
  min-width:0;
  white-space:normal;
  padding:8px;
  line-height:1.3;
}
body[data-page="home"] :is(.settings-shell-section[data-settings-section="schedule"],.settings-schedule-expanded-layer) .settings-mini-btn{
  min-height:38px;
  border-radius:10px;
  font-size:.76rem;
}
body[data-page="home"] :is(.settings-shell-section[data-settings-section="schedule"],.settings-schedule-expanded-layer) .settings-mini-btn:not(.is-danger):not(.is-sent):not(.is-cancel){
  background:var(--schedule-slate-surface);
  border-color:var(--schedule-slate-border);
  color:var(--schedule-slate-text);
}
body[data-page="home"] :is(.settings-shell-section[data-settings-section="schedule"],.settings-schedule-expanded-layer) .settings-mini-btn.is-active:not(.is-sent):not(.is-cancel){
  background:var(--schedule-slate-raised);
  border-color:var(--schedule-glass-active-border);
}
body[data-page="home"] .settings-schedule-week-panel :is(input,select,button):focus-visible{
  outline:2px solid #e8d6a4;
  outline-offset:2px;
}
/* Consistent summary headers; counts stay beside the title. */
body[data-page="home"] :is(.settings-schedule-requests__head,.settings-schedule-sessions__head){
  align-items:center;
  gap:12px;
}
body[data-page="home"] :is(.settings-schedule-requests__toggle,.settings-schedule-sessions__toggle){
  display:grid;
  grid-template-columns:minmax(0,max-content) auto minmax(12px,1fr);
  justify-content:normal;
  align-items:center;
  gap:10px;
  min-width:0;
  min-height:38px;
}
body[data-page="home"] :is(.settings-schedule-requests__toggle,.settings-schedule-sessions__toggle) b{
  justify-self:end;
}
body[data-page="home"] :is(.settings-schedule-requests__toggle,.settings-schedule-sessions__toggle) span{
  line-height:1.35;
}
body[data-page="home"] .settings-schedule-requests__clear{
  flex:0 0 auto;
  max-width:120px;
  white-space:normal;
  line-height:1.3;
}
/* Keep sticky geometry and every appointment/selection colour rule intact. */
body[data-page="home"] .settings-schedule-week-grid-shell{
  background:var(--schedule-glass-grid);
  border-color:var(--schedule-slate-border);
}
/* Opaque fills stop appointment text bleeding through the narrow sticky rails.
   Large panels and the editor retain the same light glass as R8. */
body[data-page="home"] .settings-schedule-week-grid__corner,
body[data-page="home"] .settings-schedule-week-grid__day{
  background:var(--schedule-glass-header);
}
body[data-page="home"] .settings-schedule-week-grid__day.is-anchor-week{
  background:var(--schedule-glass-anchor);
}
body[data-page="home"] .settings-schedule-week-grid__day.is-weekend,
body[data-page="home"] .settings-schedule-week-grid__day.is-weekend.is-anchor-week,
body[data-page="home"] .settings-schedule-week-grid__day.is-weekend.is-context-week,
body[data-page="home"] .settings-schedule-week-grid__day.is-weekend.is-outside-horizon{
  background:var(--schedule-glass-weekend);
}
body[data-page="home"] .settings-schedule-week-grid__time{
  background:var(--schedule-glass-header);
  color:var(--schedule-slate-muted);
}
body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-week-panel{
  /* Header, editor, grid, range notice (when present), then hint. The pan rail
     is hidden in expanded mode, so it must not consume a flexible grid row. */
  grid-template-rows:auto auto minmax(160px,1fr) auto;
  /* The expanded card owns this fill; avoid stacking it twice. */
  background:transparent;
  overflow:auto;
}
body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-day-admin{
  gap:8px;
  padding:8px;
}
body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-day-admin__controls{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px 12px;
}
body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-day-admin__controls label{
  gap:4px;
}
body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-day-admin__actions{
  padding-top:8px;
}
/* The dialog header already supplies its title and allowed date range. */
body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-week-panel__head h4,
body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-week-panel__head em{
  display:none;
}
body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-week-pan-rail{
  display:none;
}
@container ccr-schedule (max-width:40rem){
  body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin__controls{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
  body[data-page="home"] .settings-schedule-week-panel .settings-schedule-week-panel__nav{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
  }
  body[data-page="home"] .settings-schedule-week-panel .settings-schedule-week-panel__view,
  body[data-page="home"] .settings-schedule-week-panel .settings-schedule-week-panel__expand{
    grid-column:1 / -1;
    justify-self:start;
  }
  body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin__label-control{
    grid-column:1 / -1;
  }
  body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin__actions{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin__actions > .settings-mini-btn:last-child{
    grid-column:1 / -1;
  }
}
@media (max-width:760px){
  body[data-page="home"] .settings-schedule-week-panel{
    padding:10px;
    gap:10px;
  }
  body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin{
    padding:10px;
  }
}
/* Viewport fallback also covers older WebViews without container queries. */
@media (max-width:620px){
  body[data-page="home"] .settings-schedule-week-panel .settings-schedule-week-panel__nav{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
  }
  body[data-page="home"] .settings-schedule-week-panel .settings-schedule-week-panel__view,
  body[data-page="home"] .settings-schedule-week-panel .settings-schedule-week-panel__expand{
    grid-column:1 / -1;
    justify-self:start;
  }
  body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin__label-control{
    grid-column:1 / -1;
  }
  body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin__actions{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin__actions > .settings-mini-btn:last-child{
    grid-column:1 / -1;
  }
}
/* At shorter desktop heights, keep dates and navigation on one row so the
   calendar remains visible below the editor. The next-arrow slot stays free. */
@media (min-width:901px) and (max-height:720px){
  body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-week-panel__head{
    grid-template-columns:38px minmax(150px,1fr) auto 38px;
  }
  body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-week-panel__head > div:not(.settings-schedule-week-panel__nav){
    text-align:left;
  }
  body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-week-panel__nav{
    grid-column:3;
    grid-row:1;
    padding-top:0;
    border-top:0;
    gap:6px;
  }
  body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-week-panel__jump{
    flex-basis:190px;
  }
  body[data-page="home"] .settings-schedule-expanded-body .settings-schedule-week-panel__hint{
    display:none;
  }
}
@media (hover:hover) and (pointer:fine){
  body[data-page="home"] :is(.settings-shell-section[data-settings-section="schedule"],.settings-schedule-expanded-layer) .settings-mini-btn:not(:disabled):not(.is-danger):not(.is-sent):not(.is-cancel):hover{
    background:var(--schedule-glass-hover);
    border-color:var(--schedule-glass-hover-border);
  }
}
@media (max-width:380px){
  body[data-page="home"] :is(.settings-schedule-requests__head,.settings-schedule-sessions__head){
    flex-wrap:wrap;
  }
  body[data-page="home"] :is(.settings-schedule-requests__toggle,.settings-schedule-sessions__toggle){
    flex:1 1 100%;
  }
  body[data-page="home"] .settings-schedule-requests__clear{
    width:100%;
    max-width:none;
  }
  body[data-page="home"] .settings-schedule-week-panel .settings-schedule-week-panel__jump{
    flex-basis:165px;
    gap:5px;
  }
  body[data-page="home"] .settings-schedule-week-panel .settings-schedule-week-panel__jump input{
    width:100px;
  }
  body[data-page="home"] .settings-schedule-week-panel .settings-schedule-week-panel__jump span{
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip-path:inset(50%);
    white-space:nowrap;
  }
  body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin__controls{
    grid-template-columns:minmax(0,1fr);
  }
}

/* Populated requests and records must size to their host, including narrow
   desktop settings panels. Keep client IDs and contact details readable. */
body[data-page="home"] .settings-shell-section[data-settings-section="schedule"],
body[data-page="home"] .settings-schedule-panel--calendar,
body[data-page="home"] .settings-schedule-requests,
body[data-page="home"] .settings-schedule-sessions{
  min-width:0;
}
body[data-page="home"] .settings-schedule-panel--calendar{
  container-name:ccr-schedule-content;
  container-type:inline-size;
}
body[data-page="home"] .settings-schedule-request-card{
  min-width:0;
  overflow-wrap:anywhere;
}
body[data-page="home"] .settings-schedule-request-card__head{
  flex-wrap:wrap;
}
body[data-page="home"] .settings-schedule-request-card__head > div{
  flex:1 1 180px;
  min-width:0;
}
body[data-page="home"] .settings-schedule-request-card__head .settings-schedule-pill{
  max-width:100%;
  white-space:normal;
}
body[data-page="home"] :is(.settings-schedule-status,.settings-schedule-request-notice){
  overflow-wrap:anywhere;
}
@container ccr-schedule-content (max-width:40rem){
  body[data-page="home"] .settings-schedule-request-card li,
  body[data-page="home"] .settings-schedule-sessions li{
    grid-template-columns:minmax(0,1fr);
    align-items:stretch;
  }
  body[data-page="home"] .settings-schedule-sessions li strong{
    max-width:100%;
    white-space:normal;
    overflow-wrap:anywhere;
  }
}
@container ccr-schedule-content (max-width:28rem){
  body[data-page="home"] :is(.settings-schedule-requests__head,.settings-schedule-sessions__head){
    flex-wrap:wrap;
  }
  body[data-page="home"] :is(.settings-schedule-requests__toggle,.settings-schedule-sessions__toggle){
    flex:1 1 100%;
  }
  body[data-page="home"] .settings-schedule-requests__clear{
    width:100%;
    max-width:none;
  }
}

/* Bright, fully opaque secondary text stays legible on the lighter glass.
   Appointment fills, selections and disabled states keep their existing rules. */
body[data-page="home"] .settings-schedule-expanded-header span,
body[data-page="home"] .settings-schedule-week-panel__hint,
body[data-page="home"] .settings-schedule-sessions li em,
body[data-page="home"] .settings-schedule-history__preserved{
  color:var(--schedule-slate-muted,#c2ccd6);
}
body[data-page="home"] .settings-schedule-week-grid__day.is-context-week:not(.is-weekend):not(.is-today),
body[data-page="home"] .settings-schedule-week-grid__day em{
  color:var(--schedule-slate-muted);
}
body[data-page="home"] .settings-schedule-week-grid__cell.has-override:not(.has-session):not(.is-selected) .settings-schedule-week-grid__label{
  color:var(--schedule-slate-text,#eaf0f5);
}

/* Zero-minimum tracks prevent enlarged text from forcing the editor or client
   panels wider than their actual host. Keep overflow within the 2D calendars. */
body[data-page="home"] .settings-schedule-week-panel,
body[data-page="home"] .settings-schedule-day-panel,
body[data-page="home"] .settings-schedule-request-compose,
body[data-page="home"] .settings-schedule-calendar{
  grid-template-columns:minmax(0,1fr);
}
body[data-page="home"] .settings-schedule-week-panel :is(.settings-schedule-week-panel__head,.settings-schedule-day-admin,.settings-schedule-day-admin__controls,.settings-schedule-day-admin__actions){
  min-width:0;
}
body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin__controls :is(input,select){
  min-width:0;
  max-width:100%;
}
body[data-page="home"] .settings-schedule-week-panel :is(.settings-mini-btn,.settings-schedule-week-panel__head strong),
body[data-page="home"] .settings-schedule-sessions .settings-mini-btn{
  overflow-wrap:anywhere;
  white-space:normal;
}
body[data-page="home"] :is(.settings-schedule-calendar,.settings-schedule-day-panel,.settings-schedule-request-compose,.settings-schedule-field){
  min-width:0;
  max-width:100%;
}
body[data-page="home"] .settings-schedule-field textarea{
  min-width:0;
  max-width:100%;
}
body[data-page="home"] .settings-schedule-calendar__head{
  min-width:0;
  grid-template-columns:38px minmax(0,1fr) 38px;
}
body[data-page="home"] .settings-schedule-calendar__head :is(h4,strong){
  overflow-wrap:anywhere;
}
/* Intrinsic lesson columns also fit hosts without container-query support. */
body[data-page="home"] .settings-schedule-lesson-grid{
  min-width:0;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,13.75rem),1fr));
}
@container ccr-schedule (max-width:12rem){
  body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin__controls,
  body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin__label-control,
  body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin__actions{
    grid-template-columns:minmax(0,1fr);
  }
  body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin__label-control .settings-mini-btn{
    width:100%;
    max-width:none;
  }
  body[data-page="home"] .settings-schedule-week-panel .settings-schedule-week-panel__nav{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body[data-page="home"] .settings-schedule-week-panel .settings-schedule-week-panel__jump{
    grid-column:1 / -1;
    grid-row:2;
    width:100%;
    flex-basis:auto;
  }
  body[data-page="home"] .settings-schedule-week-panel .settings-schedule-week-panel__jump input{
    width:100%;
  }
}
/* Preserve a readable seven-column calendar at enlarged text sizes. Weekdays
   and dates pan together inside the calendar, while month tools stay visible. */
@container ccr-schedule-content (max-width:12rem){
  body[data-page="home"] .settings-schedule-calendar{
    overflow-x:auto;
  }
  body[data-page="home"] .settings-schedule-calendar :is(.settings-schedule-weekdays,.settings-schedule-month-grid){
    min-width:calc(17.5rem + 36px);
  }
  body[data-page="home"] .settings-schedule-calendar__head{
    position:sticky;
    left:0;
  }
}
/* Contrast must hold over the gradient fills as well as solid panels. */
body[data-page="home"] .settings-schedule-request-card__head p{
  color:var(--schedule-slate-muted,#c2ccd6);
}
body[data-page="home"] .settings-schedule-lesson-option small{
  color:var(--schedule-slate-text,#eaf0f5);
}
body[data-page="home"] .settings-schedule-day.is-selected .settings-schedule-day__time{
  color:#fff3cf;
}

/* Older engines get a deliberately simple stacked layout. Modern engines keep
   the compact panel-width layouts above. */
@supports not (container-type:inline-size){
  body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin__controls,
  body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin__label-control{
    grid-template-columns:minmax(0,1fr);
  }
  body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin__actions{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body[data-page="home"] .settings-schedule-week-panel .settings-schedule-week-panel__nav{
    display:flex;
    flex-wrap:wrap;
  }
  body[data-page="home"] .settings-schedule-week-panel .settings-schedule-day-admin__label-control .settings-mini-btn{
    width:100%;
    max-width:none;
  }
  body[data-page="home"] .settings-schedule-request-card li,
  body[data-page="home"] .settings-schedule-sessions li{
    grid-template-columns:minmax(0,1fr);
  }
  body[data-page="home"] :is(.settings-schedule-requests__head,.settings-schedule-sessions__head){
    flex-wrap:wrap;
  }
  body[data-page="home"] :is(.settings-schedule-requests__toggle,.settings-schedule-sessions__toggle){
    flex:1 1 100%;
  }
  body[data-page="home"] .settings-schedule-calendar{
    overflow-x:auto;
  }
  body[data-page="home"] .settings-schedule-calendar :is(.settings-schedule-weekdays,.settings-schedule-month-grid){
    min-width:calc(17.5rem + 36px);
  }
}

/* Small gold status badges need a firm local backing on bright map regions. */
body[data-page="home"] :is(.settings-shell-section[data-settings-section="schedule"],.settings-schedule-expanded-layer) .settings-schedule-pill{
  background:var(--schedule-slate-field);
}

/* Range-boundary headers keep a firm backing; fade their labels only. */
body[data-page="home"] .settings-schedule-week-grid__day.is-outside-horizon{
  opacity:1;
}
body[data-page="home"] .settings-schedule-week-grid__day.is-outside-horizon > :is(span,strong,em){
  opacity:.72;
}

/* Native placeholder text is outside ordinary text-node contrast checks. */
body[data-page="home"] :is(.settings-shell-section[data-settings-section="schedule"],.settings-schedule-expanded-layer) :is(input,textarea)::placeholder{
  color:var(--text-2,#c2ccd6);
  opacity:1;
}

/* Enabled historical appointments remain muted but readable on light glass.
   A selected appointment needs full emphasis; disabled/range states stay owned
   by their existing rules. Keep the historical saturation treatment. */
body[data-page="home"] .settings-schedule-week-grid__cell.is-historical:enabled:not(.is-outside-horizon){
  opacity:.90;
}
body[data-page="home"] .settings-schedule-week-grid__cell.is-historical.is-selected:enabled:not(.is-outside-horizon){
  opacity:1;
}

/* Historical record dates/names need full text opacity over the lighter glass.
   Their existing colours and historical row treatment remain in place. */
body[data-page="home"] .settings-schedule-history li.is-historical > span,
body[data-page="home"] .settings-schedule-history li.is-historical > strong{
  opacity:1;
}
