/* Shared link and control palette. Keep semantic feedback and game artwork separate. */
:root{
 --fan-control-bg:#edf2f6;
 --fan-control-hover:#e3ebf2;
 --fan-control-selected:#dce6ee;
 --fan-control-border:#d2dde6;
 --fan-control-selected-border:#aebfce;
 --fan-control-text:#496176;
 --fan-control-focus:#8da5b8;
}
@media screen{
 /* No underlines, lifting cards, colored glows, or mismatched transitions. */
 body a{color:var(--fan-control-text)!important;text-decoration:none!important;transition:color .16s ease,background-color .16s ease,border-color .16s ease,box-shadow .16s ease!important}
 body a:hover{color:#345ef1!important;text-decoration:none!important;transform:none!important;box-shadow:none!important}
 body button:not(.cell){transition:color .16s ease,background-color .16s ease,border-color .16s ease,box-shadow .16s ease!important}
 body :where(button:not(.cell),[role="button"],.upload-button,.upload-label,a.primary,a.secondary,a.btn,a.button,a.dark,a.back,a.home-link,a.article-primary,a.article-secondary,a.podcast-back,a[class$="-manage"]){
  background:var(--fan-control-bg)!important;color:var(--fan-control-text)!important;border-color:var(--fan-control-border)!important;box-shadow:none!important;
 }
 @media(hover:hover){
  body :where(button:not(.cell),[role="button"],.upload-button,.upload-label,a.primary,a.secondary,a.btn,a.button,a.dark,a.back,a.home-link,a.article-primary,a.article-secondary,a.podcast-back):hover:not(:disabled):not([aria-disabled="true"]){
   background:var(--fan-control-hover)!important;color:#345ef1!important;border-color:var(--fan-control-selected-border)!important;box-shadow:none!important;transform:none!important;
  }
 }
 body :where(button:not(.cell),a):is(:focus-visible){outline:2px solid var(--fan-control-focus)!important;outline-offset:3px!important;box-shadow:none!important}
 body :where(button:not(.cell),[role="button"],.upload-button,.upload-label,a.primary,a.secondary,a.btn,a.button):active:not(:disabled){background:var(--fan-control-selected)!important;transform:none!important}
 body :where(button:not(.cell),a):is(.active,.selected,.is-active,[aria-selected="true"],[aria-pressed="true"],[aria-current="page"]){
  background:var(--fan-control-selected)!important;color:#345ef1!important;border-color:var(--fan-control-selected-border)!important;box-shadow:none!important;
 }
 /* List links emphasize their text without a filled selection row. */
 body :where(.lesson-link,.track,.deck-tile,.episode-button,.chess-article-link):hover{background:transparent!important;transform:none!important;box-shadow:none!important}
 body :where(.lesson-link,.track,.deck-tile,.episode-button):is(.active,.selected,[aria-current="true"],[aria-current="page"],[aria-pressed="true"]){background:transparent!important;color:#345ef1!important;border-color:var(--fan-control-selected-border)!important;box-shadow:none!important}
 /* Inline icons remain compact, without adding a filled button behind them. */
 body :where(.audio-btn,.audio-button,.material-icon-action,.write-icon,.news-actions button,.news-reaction-picker button){background:transparent!important;color:var(--fan-control-text)!important;box-shadow:none!important}
 body :where(.audio-btn,.audio-button,.material-icon-action,.write-icon,.news-actions button):hover{background:transparent!important;color:#345ef1!important;transform:none!important}
 body .news-reaction-picker button[aria-pressed="true"]{background:transparent!important;box-shadow:none!important}
 body .news-reaction-picker button:hover{background:transparent!important;transform:none!important}
 body :where(button:not(.cell),a):is(:disabled,[aria-disabled="true"]){opacity:.45!important;cursor:default!important;box-shadow:none!important;transform:none!important}
 /* Preserve answer meaning rather than disguising it as navigation selection. */
 body :where(button):is(.correct,.is-correct,.right){background:#e9f5ed!important;color:#386a4b!important;border-color:#b8d8c4!important}
 body :where(button):is(.wrong,.incorrect,.is-wrong){background:#fbefed!important;color:#96594e!important;border-color:#e7c5bf!important}
 body :where(button):is(.correct,.wrong,.incorrect,.is-correct,.is-wrong):hover{filter:none!important}
}
@media(prefers-reduced-motion:reduce){body a,body button:not(.cell){transition:none!important}}

/* Email and mascot captions use the same neutral palette as navigation. */
@media screen{
 body a.contact-gmail{background:var(--fan-control-bg)!important;color:var(--fan-control-text)!important;border-color:var(--fan-control-border)!important;opacity:1}
 body a.contact-gmail:hover{background:var(--fan-control-hover)!important;color:#345ef1!important}
 body .contact-gmail svg [fill]:not([fill="none"]){fill:currentColor!important}
 body :where(.mascot-bubble,.mascot-bubble b,.mascot-bubble span[lang],.mascot-bubble small,.fan-encourage-bubble){color:var(--fan-control-text)!important}
}

/* The top study navigation stays text-only in every interaction state. */
@media screen{
 body .workspace-nav>:is(a,button),
 body .workspace-nav>:is(a,button):is(:hover,:active,:focus-visible,.active,.selected,[aria-expanded="true"],[aria-pressed="true"],[aria-current="page"]){
  background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important;color:var(--fan-control-text)!important;
 }
 body .workspace-nav>:is(a,button):is(:hover,:active,.active,.selected,[aria-expanded="true"]){color:#345ef1!important}
 body .workspace-nav>:is(a,button):focus-visible{outline:none!important;text-decoration:underline!important;text-decoration-thickness:2px!important;text-underline-offset:5px!important}
}

/* Home-page inline actions retain their original text-link presentation. */
@media screen{
 body :is(.card-bottom,.flash-tools,.video-actions,.material-actions) button,
 body .path-card>button,body .lesson-card>button,
 body #word-audio{
  background:transparent!important;border-radius:0!important;box-shadow:none!important;color:var(--fan-control-text)!important;
 }
 body :is(.card-bottom,.flash-tools,.video-actions,.material-actions) button:is(:hover,:active,:focus-visible,[aria-pressed="true"]),
 body .lesson-card>button:is(:hover,:active,:focus-visible,[aria-pressed="true"]),
 body .path-card>button:is(:hover,:active,:focus-visible,[aria-pressed="true"]),
 body #word-audio:is(:hover,:active,:focus-visible){
  background:transparent!important;box-shadow:none!important;color:#345ef1!important;transform:none!important;
 }
 body :is(.card-bottom,.flash-tools,.video-actions,.material-actions) button,body #word-audio{border:0!important}
 /* Only the two resume actions have a complete outlined button. */
 body #active-path>.primary,body #progress-continue{
  border:1px solid var(--fan-control-selected-border)!important;border-radius:9px!important;
 }
}

/* Featured home actions match the existing XEM VIDEO button. */
@media screen{
 body .home-cta-strong,body #active-path>.home-cta-strong,body #progress-continue.home-cta-strong{
  background:#46515f!important;color:#fff!important;border:1px solid #46515f!important;font-weight:600!important;gap:10px!important;
 }
 body .home-cta-strong:is(:hover,:active,:focus-visible),body #active-path>.home-cta-strong:is(:hover,:active,:focus-visible),body #progress-continue.home-cta-strong:is(:hover,:active,:focus-visible){
  background:#343f4c!important;color:#fff!important;border-color:#343f4c!important;
 }
 .home-cta-icon{width:16px;height:16px;flex:none;display:block}
}

/* Resume actions share the compact dimensions of XEM VIDEO. */
@media screen{
 body #active-path>.home-cta-strong,body #progress-continue.home-cta-strong{
  min-height:40px!important;height:40px!important;width:auto!important;flex-shrink:0;
  padding:10px 16px!important;font-size:11px!important;line-height:1.5!important;gap:9px!important;
 }
 /* Drawer navigation remains text-only, including selected and hover states. */
 body .study-menu nav :is(a,button),
 body .study-menu nav :is(a,button):is(:hover,:active,:focus-visible,.active,.selected,[aria-pressed="true"],[aria-current="page"]){
  background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important;color:var(--fan-control-text)!important;
 }
 body .study-menu nav :is(a,button):is(:hover,.active,.selected,[aria-pressed="true"]){color:#345ef1!important}
 body .study-menu nav :is(a,button):focus-visible{outline:none!important;text-decoration:underline!important;text-underline-offset:5px!important}
 body .study-menu-backdrop,body .study-menu-backdrop:is(:hover,:active,:focus-visible){background:#17294544!important;border:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important}
}

/* Plain links never inherit the filled action-button treatment. */
@media screen{
 body a:not(:where(.primary,.secondary,.btn,.button,.dark,.home-cta-strong,.home-link,.contact-icon,.article-primary,.article-secondary,.podcast-back)),
 body a:not(:where(.primary,.secondary,.btn,.button,.dark,.home-cta-strong,.home-link,.contact-icon,.article-primary,.article-secondary,.podcast-back)):is(:hover,:active,.active,.selected,[aria-current="page"]){
  background:transparent!important;box-shadow:none!important;transform:none!important;
 }
 body :is(.workspace-nav,.study-menu nav,.sidebar nav,aside nav,.tabs,.reading-tabs,.chips) button,
 body :is(.track,.level-button,.deck-tile,.episode-button,.lesson-link,.chess-article-link),
 body :is(.workspace-nav,.study-menu nav,.sidebar nav,aside nav,.tabs,.reading-tabs,.chips) button:is(:hover,:active,.active,.selected,[aria-selected="true"],[aria-pressed="true"]),
 body :is(.track,.level-button,.deck-tile,.episode-button,.lesson-link,.chess-article-link):is(:hover,:active,.active,.selected,[aria-selected="true"],[aria-pressed="true"]){
  background:transparent!important;box-shadow:none!important;transform:none!important;
 }
 body :is(.workspace-nav,.study-menu nav,.sidebar nav,aside nav,.tabs,.reading-tabs,.chips) button{
  border-color:transparent!important;border-radius:0!important;
 }
 body a:not(:where(.primary,.secondary,.btn,.button,.dark,.home-cta-strong,.home-link,.contact-icon,.article-primary,.article-secondary,.podcast-back)):focus-visible,
 body :is(.workspace-nav,.study-menu nav,.sidebar nav,aside nav,.tabs,.reading-tabs,.chips) button:focus-visible{
  outline:none!important;text-decoration:underline!important;text-underline-offset:5px!important;
 }
}
@media screen{
 /* Keep existing card frames steady instead of highlighting the whole box. */
 body a:not(:where(.primary,.secondary,.btn,.button,.dark,.home-cta-strong,.home-link,.contact-icon,.article-primary,.article-secondary,.podcast-back)):hover,
 body :is(.path-card,.lesson-card):hover,body .path-card.selected{
  border-color:var(--line,var(--fan-control-border))!important;box-shadow:none!important;transform:none!important;
 }
}

/* Site-wide navigation policy: text emphasis, never a highlighted rectangle. */
@media screen{
 body :is(nav,[role="navigation"],[role="tablist"],.tabs,.grammar-tabs,.groups,.book-scopes,.reviewed-nav,.chips,.knowledge-page-buttons,#sections,#page-list) :is(a,button),
 body :is([role="tab"],.category,.tile,.kana-card,.level-button,.track,.deck-tile,.episode-button,.lesson-link),
 body .sidebar button:not(:where(.primary,.secondary,.btn,.button)),
 body :is(nav,[role="navigation"],[role="tablist"],.tabs,.grammar-tabs,.groups,.book-scopes,.reviewed-nav,.chips,.knowledge-page-buttons,#sections,#page-list) :is(a,button):is(:hover,:active,:focus-visible,.active,.selected,.is-active,[aria-selected="true"],[aria-pressed="true"],[aria-expanded="true"]),
 body :is([role="tab"],.category,.tile,.kana-card,.level-button,.track,.deck-tile,.episode-button,.lesson-link):is(:hover,:active,:focus-visible,.active,.selected,.is-active,[aria-selected="true"],[aria-pressed="true"]),
 body .sidebar button:not(:where(.primary,.secondary,.btn,.button)):is(:hover,:active,:focus-visible,.active,.selected,[aria-pressed="true"]){
  background:transparent!important;background-image:none!important;border-color:transparent!important;box-shadow:none!important;outline:none!important;transform:none!important;filter:none!important;
 }
 body :is(nav,[role="navigation"],[role="tablist"],.tabs,.grammar-tabs,.groups,.book-scopes,.reviewed-nav,.chips,.knowledge-page-buttons,#sections,#page-list) :is(a,button):focus-visible,
 body :is([role="tab"],.category,.tile,.kana-card,.level-button,.track,.deck-tile,.episode-button,.lesson-link):focus-visible{
  text-decoration:underline!important;text-underline-offset:5px!important;
 }
 /* Existing button-shaped links keep a steady appearance on hover. */
 body a:is(.primary,.secondary,.btn,.button,.dark,.back,.home-link,.article-primary,.article-secondary,.podcast-back):is(:hover,:active,:focus-visible){
  background:var(--fan-control-bg)!important;color:var(--fan-control-text)!important;border-color:var(--fan-control-border)!important;box-shadow:none!important;transform:none!important;
 }
 body a.home-cta-strong:is(:hover,:active,:focus-visible){background:#46515f!important;color:#fff!important;border-color:#46515f!important}
 body a.contact-icon:is(:hover,:active,:focus-visible){background:var(--fan-control-bg)!important;border-color:var(--fan-control-border)!important;box-shadow:none!important;transform:none!important}
 /* Decorative link descendants must not add overlays or animate a whole card. */
 body a:not(:where(.primary,.secondary,.btn,.button,.dark,.home-cta-strong,.home-link,.contact-icon,.article-primary,.article-secondary,.podcast-back)):is(:hover,:active)::before,
 body a:not(:where(.primary,.secondary,.btn,.button,.dark,.home-cta-strong,.home-link,.contact-icon,.article-primary,.article-secondary,.podcast-back)):is(:hover,:active)::after{
  background:transparent!important;box-shadow:none!important;transform:none!important;
 }
 body .japan-news-card:hover .news-media img,body .book-cover:hover{transform:none!important;box-shadow:none!important;filter:none!important}
}

/* Match the blue text-only hover used by daily communication links. */
@media screen{
 body a:not(:where(.primary,.secondary,.btn,.button,.dark,.home-cta-strong,.home-link,.contact-icon,.article-primary,.article-secondary,.podcast-back)):hover,
 body a:not(:where(.primary,.secondary,.btn,.button,.dark,.home-cta-strong,.home-link,.contact-icon,.article-primary,.article-secondary,.podcast-back)):hover :is(b,strong,small,h3),
 body :is(nav,[role="navigation"],[role="tablist"],.tabs,.grammar-tabs,.groups,.book-scopes,.reviewed-nav,.chips,.knowledge-page-buttons,#sections,#page-list) :is(a,button):hover,
 body :is(.lesson-link,.track,.level-button,.deck-tile,.episode-button,.category,.tile,.kana-card):hover{
  color:#345ef1!important;transition:color .2s ease!important;
 }
 /* These are permanently framed cards, not hover-generated link boxes. */
 body #main nav.learning-hub a,
 body #main nav.learning-hub a:is(:hover,:active,:focus-visible){
  background:#fff!important;border:1px solid #e1e8f5!important;border-radius:13px!important;box-shadow:0 5px 15px #29436b04!important;transform:none!important;
 }
 /* Hero audio/meaning links never gain a filled background in any state. */
 body #main .card-bottom button,
 body #main .card-bottom button:is(:hover,:active,:focus-visible,.active,[aria-pressed="true"]),
 body #main #word-audio,body #main #word-audio:is(:hover,:active,:focus-visible){
  background:transparent!important;background-image:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important;
 }
 body #main .card-bottom button:hover,body #main #word-audio:hover{color:#345ef1!important}
 /* Restore the original dot indicators, keeping the small ::before circles. */
 body #learning-quotes .learning-quote-dots button,
 body #learning-quotes .learning-quote-dots button:is(:hover,:active,:focus-visible,.active,[aria-current="true"]),
 body #community .community-slider-controls .community-dot,
 body #community .community-slider-controls .community-dot:is(:hover,:active,:focus-visible,.active){
  background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;transform:none!important;
 }
 /* Resume labels use the same typography as XEM VIDEO. */
 body #active-path>.home-cta-strong,body #progress-continue.home-cta-strong,
 body #active-path>.home-cta-strong>span,body #progress-continue.home-cta-strong>span,
 body #videos .video-entry-cta{
  font-family:var(--fan-font)!important;font-size:11px!important;font-weight:600!important;letter-spacing:normal!important;line-height:1.8!important;text-transform:uppercase!important;
 }
 body #active-path>.home-cta-strong,body #progress-continue.home-cta-strong{padding-block:9px!important}
}

/* Explicit home roles: text-only route links, framed video/level controls. */
@media screen{
 body #roadmap .path-card,
 body #roadmap .path-card:is(:hover,:focus-within,.selected){
  background:#fff!important;border:1px solid #e2e8f5!important;box-shadow:none!important;outline:none!important;transform:none!important;
 }
 body #roadmap .path-card>button,
 body #roadmap .path-card>button:is(:hover,:active,:focus-visible,[aria-pressed="true"]){
  width:fit-content;max-width:100%;align-self:flex-start;justify-content:flex-start;gap:8px;
  background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;outline:none!important;transform:none!important;
  color:var(--fan-control-text)!important;transition:color .2s ease!important;
 }
 body #roadmap .path-card>button:is(:hover,:focus-visible),body #roadmap .path-card h3:hover{color:#345ef1!important}
 body #roadmap .path-card>button[aria-pressed="true"]{font-weight:700!important}
 body #videos .video-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 body #videos .video-actions button,
 body #videos .video-actions button:is(:hover,:active,:focus-visible){
  display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 12px!important;
  background:var(--fan-control-bg)!important;border:1px solid var(--fan-control-border)!important;border-radius:9px!important;box-shadow:none!important;
  color:var(--fan-control-text)!important;transform:none!important;
 }
 body #videos .video-actions button:hover{color:#345ef1!important}
 body #word-filters button,
 body #word-filters button:is(:hover,:active,:focus-visible){
  min-width:48px;min-height:40px;padding:9px 13px!important;
  background:var(--fan-control-bg)!important;border:1px solid var(--fan-control-border)!important;border-radius:9px!important;box-shadow:none!important;
  color:var(--fan-control-text)!important;transform:none!important;
 }
 body #word-filters button:is(.active,[aria-pressed="true"]){background:var(--fan-control-selected)!important;border-color:var(--fan-control-selected-border)!important;color:#344e64!important}
 body #word-filters button:hover{color:#345ef1!important}
}

/* News cards highlight only their read-article label, never the title. */
@media screen{
 body #japan-news .news-post-link,
 body #japan-news .news-post-link:is(:hover,:active,:focus-visible){color:var(--fan-control-text)!important}
 body #japan-news .news-post-link h3,
 body #japan-news .news-post-link:is(:hover,:active,:focus-visible) h3{color:var(--fan-control-text)!important;transition:none!important}
 body #japan-news .news-featured .news-post-link h3,
 body #japan-news .news-featured .news-post-link:is(:hover,:active,:focus-visible) h3{color:#fff!important}
 body #japan-news .news-post-link .news-read{transition:color .2s ease!important}
 body #japan-news .news-post-link:is(:hover,:focus-visible) .news-read{color:#345ef1!important}
}

/* Route selection labels and triangles share one light, aligned row. */
@media screen{
 body #roadmap .path-card>button,
 body #roadmap .path-card>button[aria-pressed="true"]{
  display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;
  gap:8px!important;margin-top:auto!important;min-height:48px;padding:15px 0!important;
  font-family:var(--fan-font)!important;font-size:12px!important;line-height:1.5!important;font-weight:400!important;letter-spacing:0!important;
 }
 body #roadmap .path-card>button .path-label{display:block;font:inherit!important;white-space:nowrap}
 body #roadmap .path-card>button .path-direction{display:block;width:12px;height:12px;flex:0 0 12px;align-self:center}
}

/* Opaque practice cards and an unboxed mascot in every pointer state. */
@media screen{
 body #practice a.practice-card,
 body #practice a.practice-card:is(:hover,:active,:focus-visible){
  background:#fff!important;
 }
 body .fan-mascot :is(.mascot-play,.mascot-close),
 body .fan-mascot :is(.mascot-play,.mascot-close):is(:hover,:active,:focus-visible){
  background:transparent!important;border:0!important;box-shadow:none!important;
 }
 body .fan-mascot .mascot-play:focus-visible{outline:none!important}
 body .fan-mascot .mascot-play:focus-visible img{filter:drop-shadow(0 0 5px var(--fan-control-focus))}
}

/* Practice footer icons follow the caption's font size and vertical center. */
@media screen{
 body #practice .practice-card>span:last-child{align-items:center;font-family:var(--fan-font)!important;font-size:12px!important;line-height:1.5!important;font-weight:400!important;letter-spacing:.04em!important}
 body #practice .practice-card>span:last-child b{
  display:inline-flex;align-items:center;justify-content:center;
  font:inherit!important;letter-spacing:0!important;line-height:1!important;flex:none;
 }
 body #practice .practice-card>span:last-child .fan-content-icon{
  width:1em;height:1em;font-size:inherit!important;vertical-align:middle;
 }
 body #practice .practice-card>span:last-child .fan-content-icon svg{width:1em;height:1em}
}

/* A compact four-icon remote spans the vocabulary card. */
@media screen{
 body #vocabulary .vocab-remote{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;width:100%;margin-top:12px}
 body #vocabulary .vocab-remote :is(.flash-controls,.review-controls){display:contents}
 body #vocabulary .vocab-remote :is(.flash-controls,.review-controls)>button{
  display:flex!important;align-items:center;justify-content:center;gap:0;
  width:100%;min-width:0;min-height:34px!important;height:34px;padding:8px!important;
  font-family:var(--fan-font)!important;font-size:14px!important;font-weight:400!important;line-height:1!important;
  border:1px solid var(--fan-control-border)!important;border-radius:8px!important;
 }
 body #vocabulary .vocab-remote button>span{display:none!important}
 body #vocabulary .vocab-action-icon{display:block;width:1em;height:1em;flex:0 0 1em}
}

/* Match the listen control to its three neighboring remote buttons. */
@media screen{
 body #main #vocabulary .vocab-remote #word-audio,
 body #main #vocabulary .vocab-remote #word-audio:is(:hover,:active,:focus-visible){
  background:var(--fan-control-bg)!important;border:1px solid var(--fan-control-border)!important;border-radius:8px!important;
 }
 body #main #vocabulary .vocab-remote #word-audio:hover{background:var(--fan-control-hover)!important}
 body .contact-dialog .contact-close{
  display:grid!important;place-items:center!important;width:34px!important;height:34px!important;
  min-width:34px!important;min-height:34px!important;padding:0!important;line-height:0!important;
 }
 body .contact-dialog .contact-close svg{display:block;width:16px;height:16px;flex:none;margin:0}
}

@media screen{
 body .contact-dialog .contact-tabs{gap:8px}
 body .contact-dialog .contact-tabs button{display:grid;place-items:center;width:36px;height:36px;min-width:36px;min-height:36px;padding:0!important;border-radius:50%!important;line-height:1!important}
 body .contact-dialog .contact-tabs button svg{display:block;width:20px;height:20px;margin:0;flex:none}
}

/* Contact icons share one neutral color until their channel is selected. */
@media screen{
 body .contact-icon,body .contact-dialog .contact-tabs button{color:var(--fan-control-text)!important}
 body .contact-icon svg [fill]:not([fill="none"]):not([fill="white"]):not([fill="#fff"]):not([fill="#ffffff"]),
 body .contact-dialog .contact-tabs button svg [fill]:not([fill="none"]):not([fill="white"]):not([fill="#fff"]):not([fill="#ffffff"]){fill:currentColor!important}
 body .contact-icon[data-contact-selected="true"],body .contact-dialog .contact-tabs button[aria-pressed="true"]{color:var(--contact-brand)!important}
 body .contact-icon[data-contact-selected="true"] svg [fill]:not([fill="none"]):not([fill="white"]),
 body .contact-dialog .contact-tabs button[aria-pressed="true"] svg [fill]:not([fill="none"]):not([fill="white"]){fill:var(--brand-fill,currentColor)!important}
 body .contact-dialog .contact-actions a.contact-open,
 body .contact-dialog .contact-actions a.contact-open:is(:hover,:active,:focus-visible){
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:var(--fan-control-bg)!important;color:var(--fan-control-text)!important;
  border:1px solid var(--fan-control-border)!important;border-radius:8px!important;padding:9px 14px;
 }
 body .contact-dialog .contact-actions .contact-open svg{display:block;width:16px;height:16px;flex:none}
}

@media screen{

 body #materials .podcast-material-icon svg{display:block;width:29px;height:29px}
}

/* Unboxed letters on white paper; only the glyph changes color. */
@media screen{
 body #chart,body #chart .empty-cell{background:#fff!important;border:0!important;border-radius:0!important}
 body #chart .kana-card,body #chart .kana-card:is(:hover,:active,:focus-visible,.selected){background:#fff!important;border:0!important;border-radius:0!important;box-shadow:none!important;outline:none!important;color:#496176!important}
 body #chart .kana-card strong{color:inherit!important;transition:color .18s}
 body #chart .kana-card:is(:hover,:focus-visible,.selected){color:#345ef1!important}
 .alphabet-stroke-popover{position:fixed;z-index:120;width:260px;max-width:calc(100vw - 24px);padding:16px;background:#fff;border:1px solid #d2dde6;border-radius:12px;box-shadow:0 10px 35px #314b6026;color:#496176}
 .alphabet-stroke-popover[hidden]{display:none!important}
 .alphabet-stroke-popover header{position:static;display:flex;align-items:center;justify-content:space-between;height:auto;padding:0;margin:0 0 8px;background:none;border:0}
 .alphabet-stroke-popover .stroke-sheets{display:flex;justify-content:center;gap:6px}
 .alphabet-stroke-popover svg{display:block;width:100%;min-width:0;max-height:190px;background:#fbfcfd;border:1px solid #edf2f6;border-radius:8px}
 .alphabet-stroke-popover .stroke-credit{display:block;font-size:10px!important;margin-top:8px;color:#718495!important}
 .alphabet-stroke-popover .stroke-counter{font-size:12px;min-height:18px;margin:8px 0 0}
 .alphabet-stroke-popover .stroke-replay{font-size:12px!important;padding:5px 8px!important;min-height:28px!important}
}
