.hfc-root{--hfc-purple:#68408f;--hfc-ink:#36264b;--hfc-line:#e6d9ef;--hfc-lav:#f7f2fc;max-width:1080px;margin:24px auto;padding:20px 24px 110px;color:var(--hfc-ink);font-family:inherit;line-height:1.6;box-sizing:border-box}.hfc-root *{box-sizing:border-box}.hfc-root button,.hfc-root input,.hfc-root select{font:inherit}.hfc-root button,.hfc-back{min-height:44px;padding:10px 16px;border:1px solid #d9c4e9;border-radius:13px;background:#fff;color:var(--hfc-purple);cursor:pointer;transition:background .15s,box-shadow .15s}.hfc-root button:disabled{opacity:.45;cursor:default}.hfc-root button:focus-visible,.hfc-root select:focus-visible,.hfc-root input:focus-visible,.hfc-deck-card:focus-visible{outline:3px solid #397cdd;outline-offset:4px}.hfc-root .hfc-primary{background:linear-gradient(115deg,#9468c0,#68408f);color:#fff;box-shadow:0 5px 15px #68408f20}.hfc-v6-header{margin-bottom:20px}.hfc-v6-header h1{font-size:clamp(26px,4vw,36px);margin:20px 0 5px;color:var(--hfc-purple)}.hfc-v6-header p{margin:4px 0;color:#80728e}.hfc-back{display:inline-flex;align-items:center;text-decoration:none!important;background:#68408f;color:#fff!important;font-weight:700}.hfc-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.hfc-tabs [aria-current=page],.hfc-root .is-on{background:#eee2fb;border-color:#a57acb;box-shadow:inset 0 0 0 2px #d8bdec;color:#623b87}.hfc-home-hero{background:linear-gradient(100deg,#f4edfb,#edf9f7);border:1px solid #dfd1eb;border-radius:24px;min-height:170px;display:flex;align-items:center;padding:25px 30px;margin-bottom:20px}.hfc-home-hero small{font-size:11px;letter-spacing:2px;font-weight:800}.hfc-home-hero h2{font-size:clamp(25px,4vw,34px);margin:5px 0;color:var(--hfc-purple)}.hfc-home-hero p{margin:0;color:#776488}.hfc-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.hfc-stats>div{background:#faf7fd;border:1px solid var(--hfc-line);border-radius:17px;padding:17px 10px;text-align:center;display:flex;flex-direction:column}.hfc-stats strong{font-size:30px;color:var(--hfc-purple)}.hfc-stats span{font-size:13px;color:#81718e}.hfc-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}.hfc-mode{text-align:left;min-height:145px!important;padding:22px!important}.hfc-mode strong,.hfc-mode small{display:block}.hfc-mode strong{font-size:18px}.hfc-mode small{margin-top:10px;font-size:13px;line-height:1.7;opacity:.85}.hfc-motion,.hfc-session-size{display:inline-flex;gap:12px;align-items:center;margin:18px 20px 15px 0}.hfc-motion input{width:20px;height:20px}.hfc-root select,.hfc-root input[type=search],.hfc-root input[type=number]{background:#fff;border:1px solid #d5c1e4;border-radius:10px;padding:10px;max-width:100%;min-height:44px;color:var(--hfc-ink)}.hfc-study-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;font-size:14px;color:#85728e}.hfc-studying{max-width:1000px}.hfc-studying .hfc-v6-header h1{font-size:24px;margin-top:15px}.hfc-study-toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;justify-content:center;margin:14px 0}.hfc-study-toolbar button{font-weight:750;min-width:46px}.hfc-deck-stage{position:relative;isolation:isolate;perspective:1500px;overflow:clip;min-height:450px;padding:10px 18px 25px;border-radius:28px;contain:layout}.hfc-deck-card{position:relative;height:clamp(380px,52vh,500px);min-height:380px;width:100%;transform:translate3d(0,0,0);will-change:transform,opacity;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;transform-origin:50% 75%;outline-offset:-4px!important}.hfc-deck-card *{user-select:none!important;-webkit-user-select:none!important;-webkit-touch-callout:none!important}.hfc-deck-card.is-dragging{cursor:grabbing}.hfc-flip-inner{position:absolute;inset:0;transform-style:preserve-3d;transition:transform 430ms cubic-bezier(.22,.78,.28,1);will-change:transform}.hfc-deck-card.is-flipped .hfc-flip-inner{transform:rotateY(180deg)}.hfc-face{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:35px 42px;gap:18px;text-align:center;background:linear-gradient(145deg,#fff8fe,#f0e9ff 65%,#eafff5);border:1px solid #d8bfea;border-radius:26px;box-shadow:0 16px 30px #57347715;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden}.hfc-front{transform:translateZ(.2px)}.hfc-back-face{transform:rotateY(180deg) translateZ(.2px)}.hfc-face::after{content:'';position:absolute;inset:0;z-index:0;background:var(--hfc-feedback,transparent);opacity:calc(var(--hfc-strength,0)*.45);pointer-events:none}.hfc-face>*{position:relative;z-index:1}.hfc-deck-card[data-grade=GOOD]{--hfc-feedback:#25c785;--hfc-grade-ink:#116d45}.hfc-deck-card[data-grade=AGAIN]{--hfc-feedback:#f36c7d;--hfc-grade-ink:#9b2440}.hfc-deck-card[data-grade=HARD]{--hfc-feedback:#ffbe50;--hfc-grade-ink:#865514}.hfc-japanese{font-family:"Noto Sans JP","Yu Gothic",sans-serif;font-size:clamp(25px,3.1vw,36px);font-weight:700;line-height:2.15;overflow-wrap:anywhere;word-break:normal;max-width:100%;color:#583775}.hfc-japanese ruby{ruby-align:center}.hfc-japanese rt{font-size:.43em;font-weight:500;color:#8c6ca4}.hfc-face[data-long=true] .hfc-japanese{font-size:clamp(19px,2.3vw,26px);line-height:1.9;display:-webkit-box;-webkit-line-clamp:7;-webkit-box-orient:vertical;overflow:hidden}.hfc-meaning{font-size:15px;color:#655273;background:#ffffffa6;border:1px solid #e1d0ed;border-radius:14px;padding:12px 16px;margin:0;max-width:100%;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.hfc-deck-under,.hfc-stack-shadow{position:absolute;inset:20px 26px 25px;background:linear-gradient(135deg,#fbe8f7,#ebe4fa,#e5fbef);border:1px solid #d6c1e6;border-radius:26px;z-index:-1;display:flex;align-items:center;justify-content:center;padding:35px;text-align:center;transform:translateY(14px) scale(.94);opacity:.8;transition:transform 250ms,opacity 250ms;pointer-events:none}.hfc-stack-shadow{inset:28px 36px 21px;transform:rotate(-1.4deg);z-index:-2}.hfc-deck-under.is-arriving{transform:translateY(0) scale(1)!important;opacity:1}.hfc-swipe-label{position:absolute;z-index:3;left:50%;top:20px;transform:translateX(-50%);opacity:var(--hfc-strength,0);color:var(--hfc-grade-ink,#68408f);background:#ffffffe8;border-radius:99px;padding:8px 18px;font-weight:800;pointer-events:none;white-space:nowrap}.hfc-gesture-hint{text-align:center;color:#8c769b;font-size:12px;margin:5px 0 14px}.hfc-grades{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0;position:sticky;bottom:88px;background:#fffffff2;padding:10px 0;z-index:5}.hfc-root .hfc-grade{font-weight:800;min-height:52px}.hfc-root .hfc-again{background:#fff0f3;color:#b33551;border-color:#edb9c5}.hfc-root .hfc-hard{background:#fff8e8;color:#98691e;border-color:#e8d198}.hfc-root .hfc-good{background:#eaf9f0;color:#187a53;border-color:#b1dfc6}.hfc-read-full{display:block;margin:10px auto;font-size:13px!important}.hfc-detail{padding:18px;border:1px solid var(--hfc-line);border-radius:17px;margin:20px 0;background:#faf7fd}.hfc-detail summary{cursor:pointer;font-weight:700}.hfc-detail p{margin:13px 0;line-height:1.85}.hfc-message,.hfc-mode-note,.hfc-empty,.hfc-demo{padding:14px 18px;border:1px solid #ddc9ef;border-radius:15px;background:#faf4ff;margin:14px 0}.hfc-message{border-color:#e4aab8;background:#fff3f5}.hfc-message button{margin:10px;display:block}.hfc-demo{border-color:#dfbd73;background:#fff9e7}.hfc-summary{max-width:700px;margin:auto;text-align:center;padding:30px 15px}.hfc-summary .hfc-stats{grid-template-columns:repeat(3,1fr)}.hfc-summary button{margin:8px}.hfc-library-filters{display:grid;grid-template-columns:2fr repeat(4,1fr);gap:10px;margin:18px 0}.hfc-library-filters label{font-size:12px;display:flex;flex-direction:column;gap:6px}.hfc-library-filters select{width:100%}.hfc-library-row{display:flex;gap:15px;align-items:center;padding:20px;border:1px solid var(--hfc-line);border-radius:18px;margin:14px 0;background:#fff}.hfc-library-row>div{flex:1;min-width:0}.hfc-library-row small{color:#8e7a9c}.hfc-library-row h2{font-size:20px!important;color:#624083!important;margin:8px 0!important;line-height:1.8}.hfc-library-row p{font-size:14px;color:#83728d;margin:5px 0}.hfc-pagination{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap;margin:20px 0}.hfc-pagination input{width:75px}.hfc-progress-panel{border:1px solid var(--hfc-line);padding:22px;border-radius:18px;background:#faf7fd;margin:18px 0}.hfc-progress-panel h2{font-size:20px!important;color:var(--hfc-purple)!important}.hfc-progress-panel progress{width:100%;accent-color:#9161ba}.hfc-week-row{display:flex;gap:14px;align-items:center;margin:8px 0}.hfc-week-row meter{flex:1;accent-color:#9468c0}.hfc-dialog{border:1px solid #cdb3e0;border-radius:20px;padding:25px;max-width:min(700px,92vw);max-height:85dvh;overflow:auto;color:var(--hfc-ink);background:#fff;touch-action:pan-y}.hfc-dialog::backdrop{background:#25103788}.hfc-dialog .hfc-japanese{font-size:24px}.hocdii-flashcard-page .hocdii-contact-widget{visibility:hidden!important;pointer-events:none!important}
@media(max-width:700px){.hfc-root{padding:14px 12px 110px;margin:10px auto}.hfc-modes{grid-template-columns:1fr;gap:10px}.hfc-mode{min-height:95px!important;padding:18px!important}.hfc-stats{gap:7px}.hfc-stats>div{padding:13px 5px}.hfc-stats strong{font-size:25px}.hfc-stats span{font-size:11px}.hfc-deck-stage{padding:8px 6px 22px;min-height:390px}.hfc-deck-card{height:clamp(340px,48dvh,450px);min-height:340px}.hfc-face{padding:28px 20px;gap:14px}.hfc-deck-under{inset:18px 13px 23px}.hfc-stack-shadow{inset:25px 21px 20px}.hfc-japanese{font-size:25px}.hfc-meaning{font-size:13px;padding:10px}.hfc-study-toolbar{gap:7px}.hfc-study-toolbar button{padding:9px 12px}.hfc-root .hfc-grade{font-size:13px;padding:10px 6px}.hfc-grades{gap:7px}.hfc-library-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.hfc-library-filters input{grid-column:1/-1}.hfc-library-row{flex-wrap:wrap;padding:16px}.hfc-library-row>div{flex-basis:100%}.hfc-study-top{font-size:12px}.hfc-v6-header h1{font-size:27px}.hfc-home-hero{padding:23px;min-height:145px}.hfc-swipe-label{top:12px;font-size:13px}}
@media(prefers-reduced-motion:reduce){.hfc-root *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.hfc-root{width:100%;flex-shrink:0}.hocdii-flashcard-page #sidebar,.hocdii-flashcard-page #admin-panel{display:none!important}.hocdii-flashcard-page #main{width:100%;max-width:none}.hfc-root[data-reduced-motion=true] *{animation:none!important;transition:none!important}.hfc-home-hero{position:relative;isolation:isolate;overflow:hidden;min-height:190px;background:#765296;color:#fff}.hfc-home-hero::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#624086eb 0%,#8057a3a6 48%,#79559b22 100%)}.hfc-native-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:-2}.hfc-hero-copy{max-width:64%;position:relative;z-index:1}.hfc-home-hero h1{font-size:clamp(26px,3.3vw,36px);line-height:1.25;color:#fff!important;margin:8px 0!important}.hfc-home-hero p{font-size:14px;line-height:1.65;color:#fff;max-width:450px}.hfc-home-hero small{color:#fff;background:#ffffff27;padding:5px 10px;border-radius:99px;font-size:10px;letter-spacing:1px}.hfc-today{font-size:24px!important;margin:23px 0 5px!important;color:#654184!important}.hfc-home-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(250px,1fr);gap:20px;align-items:start}.hfc-home-panel{padding:22px;border:1px solid #eadff3;border-radius:23px;background:#fff;box-shadow:0 12px 32px #63428c0a;margin:0 0 18px}.hfc-home-panel h2{font-size:19px!important;color:#593b7a!important;margin:0 0 12px!important}.hfc-home-panel h3{font-size:17px!important;color:#593b7a!important;margin:22px 0 14px!important}.hfc-home-panel>p{font-size:13px;color:#8d7a9b}.hfc-home-layout .hfc-modes{gap:8px;margin:15px 0;grid-template-columns:repeat(3,minmax(0,1fr))}.hfc-home-layout .hfc-mode{padding:14px 12px!important;min-height:140px!important;border-radius:13px}.hfc-home-layout .hfc-mode strong{font-size:13px;line-height:1.65}.hfc-home-layout .hfc-mode small{font-size:11px;line-height:1.7}.hfc-type-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hfc-type-grid button{text-align:left;border-radius:15px;padding:14px}.hfc-type-grid button>span{display:flex;align-items:center;gap:10px;justify-content:space-between}.hfc-type-grid b{font-size:13px}.hfc-type-grid small{font-size:13px;color:#997cb0}.hfc-topic-start{width:100%;display:block;border:0!important;border-bottom:1px solid #f0e6f6!important;border-radius:0!important;background:transparent!important;padding:13px 0!important;text-align:left}.hfc-topic-caption{display:flex;justify-content:space-between;gap:14px;font-size:13px}.hfc-topic-caption small{white-space:nowrap;color:#9b87ac}.hfc-topic-start progress{width:100%;height:9px;accent-color:#a37ace;border:0;border-radius:9px;overflow:hidden}.hfc-donut{width:175px;height:175px;border-radius:50%;margin:25px auto;background:conic-gradient(#43b6a1 var(--hfc-percent),#e9e1ef 0);padding:14px}.hfc-donut>div{background:#fff;width:100%;height:100%;border-radius:50%;display:flex;flex-direction:column;justify-content:center;align-items:center}.hfc-donut strong{font-size:34px;color:#68408f}.hfc-donut small{font-size:11px;color:#a18aaf}.hfc-memory-record{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #f1e8f7;font-size:12px}.hfc-memory-record span{color:#9b84ad}.hfc-home-aside .hfc-home-panel>button{display:block;width:100%;margin-top:20px}.hfc-encourage{display:flex;gap:16px;align-items:center;padding:22px;background:linear-gradient(120deg,#f7efff,#edfcf8);border:1px solid #e4d7ef;border-radius:20px}.hfc-encourage>span{font-size:30px}.hfc-encourage strong{font-size:13px}.hfc-encourage p{font-size:12px;color:#9783a4;margin:8px 0}.hfc-home-options{display:flex;flex-wrap:wrap;align-items:center;gap:20px}.hfc-home-options .hfc-session-size{white-space:nowrap}.hfc-home-options select{min-width:75px}.hfc-home-options label{margin:0}
@media(max-width:850px){.hfc-home-layout{grid-template-columns:1fr}.hfc-home-aside{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:15px}.hfc-home-aside .hfc-home-panel{margin:0}.hfc-home-aside>.hfc-demo{grid-column:1/-1}.hfc-home-hero{min-height:170px}.hfc-home-hero h1{font-size:28px}}
@media(max-width:500px){.hfc-home-panel{padding:18px}.hfc-home-layout .hfc-modes{grid-template-columns:1fr}.hfc-home-layout .hfc-mode{min-height:86px!important}.hfc-home-layout .hfc-mode small{margin-top:5px}.hfc-home-aside{display:block}.hfc-home-aside .hfc-home-panel{margin-bottom:15px}.hfc-hero-copy{max-width:75%}.hfc-home-hero{padding:22px 20px;min-height:165px}.hfc-home-hero h1{font-size:26px!important}.hfc-home-hero p{font-size:12px}.hfc-today{font-size:21px!important}.hfc-home-options{gap:15px}}
/* Compact personal-date control shares the native back-button row. */
#hcu-surface .topbrand>[data-hfc-calendar]{height:35px!important;min-height:35px!important;max-height:35px!important;padding:6px 9px!important;margin:0 0 0 auto!important;box-sizing:border-box!important;align-self:center!important;line-height:1.2!important}

/* Preserve native scene art, card dimensions and position; improve copy contrast. */
#hcu-surface #trendsTool.hfc-featured-entry{isolation:isolate;border:2px solid #20a9bd!important;box-shadow:0 4px 16px #067b9b29!important;overflow:hidden!important}
#hcu-surface #trendsTool.hfc-featured-entry b{color:#073e66!important;font-size:clamp(17px,2.1vw,23px)!important;line-height:1.25!important;text-shadow:0 1px 2px #fff}
#hcu-surface #trendsTool.hfc-featured-entry small{color:#20566a!important;font-weight:600!important;line-height:1.4!important}
#hcu-surface #trendsTool.hfc-featured-entry .hfc-entry-action{display:block;grid-column:2;z-index:2;position:relative;font-style:normal;font-size:11px;font-weight:700;color:#007e86;line-height:1.4;margin-top:3px}
#hcu-surface #trendsTool.hfc-featured-entry:after{content:'';position:absolute;inset:0;z-index:3;pointer-events:none;background:linear-gradient(105deg,transparent 35%,#ffffff70 50%,transparent 65%);transform:translateX(-120%);animation:hfc-entry-shine 1.4s ease-out .3s 1}
#hcu-surface #trendsTool.hfc-featured-entry:hover{box-shadow:0 7px 22px #067b9b38!important;filter:brightness(1.03)}
@keyframes hfc-entry-shine{to{transform:translateX(120%)}}
@media(prefers-reduced-motion:reduce){#hcu-surface #trendsTool.hfc-featured-entry:after{animation:none;display:none}}
#hcu-surface .app .reference-dashboard #trendsTool.hfc-featured-entry{grid-template-rows:auto auto auto!important;min-height:108px!important;gap:3px 8px!important}
#hcu-surface .app .reference-dashboard #trendsTool.hfc-featured-entry>b{grid-area:1/2/2/4!important;padding-right:30px!important;color:#073e66!important;font-size:clamp(17px,2.1vw,23px)!important;line-height:1.25!important}
#hcu-surface .app .reference-dashboard #trendsTool.hfc-featured-entry>small{grid-area:2/2/3/4!important;padding-right:30px!important;max-width:100%!important;font-size:11px!important;color:#20566a!important}
#hcu-surface .app .reference-dashboard #trendsTool.hfc-featured-entry>.hfc-entry-action{grid-area:3/2/4/4!important;width:auto!important;max-width:none!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;font-size:11px!important;line-height:1.4!important;padding-right:30px!important}
#hcu-surface .app .reference-dashboard #trendsTool.hfc-featured-entry>span:not(.action-chevron){grid-area:1/1/4/2!important}
/* 1.4: opaque paper, separate faces and rounded focus; native calendar art stays untouched. */
.hfc-root{--hfc-purple:#124e7d;--hfc-ink:#162f48;--hfc-line:#b8cede;--hfc-lav:#edf5fc;color:#162f48;background:#fff;overflow-x:clip;margin:14px auto;padding-top:12px}
.hfc-root button{background:#e6f0fa;border-color:#8caecd;color:#173f68;font-weight:700;box-shadow:0 2px 4px #173f6810}
.hfc-root button:hover:not(:disabled){background:#d5e7f8;box-shadow:0 3px 9px #173f6828}
.hfc-root .hfc-primary,.hfc-study-top>button,.hfc-back,.hfc-tabs [aria-current=page],.hfc-root .is-on{background:#12659d!important;color:#fff!important;border-color:#0f5687!important;box-shadow:0 3px 9px #174a7330}
.hfc-tabs button{background:#e8f1fa}.hfc-v6-header h1,.hfc-today,.hfc-home-panel h2,.hfc-home-panel h3{color:#143e68!important}
.hfc-root .hfc-v6-header p,.hfc-root .hfc-home-panel>p,.hfc-root .hfc-encourage p,.hfc-stats span,.hfc-root .hfc-memory-record span,.hfc-root .hfc-type-grid small,.hfc-root .hfc-topic-caption small{color:#415e77}
.hfc-stats>div{background:#edf5fd;border:1px solid #a4c5df;box-shadow:0 3px 8px #173f680c;border-top:4px solid #1973ac}.hfc-stats>div:nth-child(2){border-top-color:#6d4da6;background:#f3effb}.hfc-stats>div:nth-child(3){border-top-color:#c57b16;background:#fff6e7}.hfc-stats>div:nth-child(4){border-top-color:#16805d;background:#eaf8f1}.hfc-stats strong{color:#154c78}
.hfc-home-panel{background:#fff;border:1px solid #b8cede;box-shadow:0 4px 14px #183d6210}.hfc-root .hfc-mode{background:#edf5fc;border-color:#92b4d1}.hfc-root .hfc-mode.hfc-primary{background:#145d96}.hfc-root .hfc-mode:nth-child(2){background:#e9f7ef;border-color:#78b899;color:#145d41}.hfc-root .hfc-mode:nth-child(3){background:#fff2dc;border-color:#d7aa61;color:#704708}.hfc-root .hfc-mode small{color:inherit;opacity:1}.hfc-root .hfc-type-grid button{background:#f0f6fc;border:1px solid #98b7d1;color:#173f68}.hfc-root .hfc-type-grid button:nth-child(2){background:#fff2db;border-color:#c99a4d;color:#754900}.hfc-root .hfc-type-grid button:disabled{opacity:.65}.hfc-topic-start{color:#173f68!important}.hfc-topic-start progress{accent-color:#168466}.hfc-donut{background:conic-gradient(#168466 var(--hfc-percent),#dfe9f2 0)}.hfc-donut strong{color:#144b77}.hfc-donut small{color:#48647b}.hfc-encourage{background:#edf7f6;border-color:#a5cbc3}
.hfc-deck-stage{overflow:visible;min-height:0;padding:10px 8px 24px;perspective:1400px}.hfc-deck-card{border-radius:24px;outline-offset:3px!important;height:clamp(360px,48dvh,470px);min-height:360px}.hfc-deck-card:focus-visible{outline:2px solid #145e99!important;box-shadow:0 0 0 4px #d8eaf7;border-radius:24px}.hfc-flip-inner{border-radius:24px}.hfc-face{border-radius:24px;padding:50px 34px 28px;background:#fff;border:2px solid #3b80af;box-shadow:0 9px 22px #153d6424;gap:16px}.hfc-front{background:#fff}.hfc-back-face{background:#e9f7ef;border-color:#22805e}.hfc-face-label{position:absolute!important;top:18px;left:22px;font-size:12px;font-weight:800;letter-spacing:1px;padding:4px 10px;border-radius:6px;background:#deedfa;color:#124e7d}.hfc-back-face .hfc-face-label{background:#16734f;color:#fff}.hfc-japanese{color:#163b60;font-size:clamp(24px,2.7vw,34px);line-height:1.85}.hfc-japanese rt{color:#3b5871}.hfc-back-face .hfc-japanese{color:#124d38}.hfc-meaning{background:#fff;border-color:#a3bed1;color:#2b465d;font-size:15px}.hfc-deck-under,.hfc-stack-shadow{background:#e3edf6;border-color:#9eb7cc;border-radius:24px;opacity:1}.hfc-face::after{border-radius:22px;opacity:calc(var(--hfc-strength,0)*.65)}.hfc-swipe-label{top:12px;background:#fff;color:var(--hfc-grade-ink);box-shadow:0 2px 8px #153d6420}.hfc-gesture-hint{color:#415e77}.hfc-study-top{margin:8px 0 12px}.hfc-study-toolbar{gap:9px}.hfc-study-toolbar button{border-radius:10px;background:#e6f0fa;color:#173f68;border-color:#8dacca}.hfc-grades{background:#fff;bottom:var(--hcu-bottom-inset,88px);padding:10px 0}.hfc-root .hfc-again{background:#b82c48!important;color:#fff!important;border-color:#9a223a}.hfc-root .hfc-hard{background:#b7740d!important;color:#fff!important;border-color:#955b06}.hfc-root .hfc-good{background:#157952!important;color:#fff!important;border-color:#106040}.hfc-detail{background:#fff;border:1px solid #a6bed2;border-left:4px solid #218366;color:#193d5a}.hfc-detail summary{color:#175c42}.hfc-detail[hidden]{display:none!important}.hfc-dialog{border:2px solid #7a9fbd;color:#193d5a;background:#fff}.hfc-read-full{background:#dcebf7!important;color:#173f68!important}.hfc-display-settings{border:1px solid #b5cadd;background:#f1f6fb;border-radius:10px;padding:10px 14px}.hfc-display-settings summary{cursor:pointer;font-weight:700}.hfc-display-settings small{display:block;max-width:340px;color:#415e77;margin-top:8px}
@media(max-width:700px){.hfc-root{margin:8px auto;padding:8px 10px 100px}.hfc-face{padding:46px 18px 22px}.hfc-deck-card{height:clamp(310px,45dvh,420px);min-height:310px}.hfc-deck-stage{min-height:0;padding:7px 5px 22px}.hfc-study-toolbar button{padding:8px 10px}.hfc-study-top{gap:10px}.hfc-japanese{font-size:24px}.hfc-face-label{top:12px;left:15px;font-size:10px}.hfc-v6-header{margin-bottom:12px}}
@media(max-height:500px) and (min-width:701px){.hfc-deck-card{height:330px;min-height:330px}}
/* Only non-JLPT native engine pages: remove the empty sector wrapper, preserve real branch links. */
body.hfc-compact-exam-header .hcu-g2-sector:has(+ #hcu-mount):not(:has(.hcu-g2-sector-picker a)){display:none!important}
@media(min-width:701px){body.hfc-compact-exam-header #main>.hcm-breadcrumb{margin-bottom:10px!important}}
.hfc-face[data-long=true] .hfc-japanese{-webkit-line-clamp:4;font-size:clamp(20px,2vw,26px);line-height:1.7}.hfc-meaning{-webkit-line-clamp:2}.hfc-study-toolbar{flex-wrap:wrap;justify-content:center}
.hfc-face .hfc-meaning{flex:none;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-height:1.5!important;overflow:hidden!important}
body.hfc-learning-active #hocdiiContactToggle{display:none!important}
/* Raised card rim remains rounded through flip/drag. */
.hfc-face{border-width:3px;box-shadow:0 3px 0 #91acc0,0 8px 0 -2px #d8e3ec,0 18px 32px #143c642e,inset 0 0 0 2px #fff}.hfc-back-face{box-shadow:0 3px 0 #5c9e84,0 8px 0 -2px #bcd9ca,0 18px 32px #143c642e,inset 0 0 0 2px #fff}
/* Stable study viewport. Only explanatory content scrolls; the page and grading controls stay put. */
body.hfc-learning-active{overflow:hidden!important;overscroll-behavior:none}
.hfc-root.hfc-studying{position:fixed;z-index:10000;top:var(--hfc-study-top,0px);bottom:var(--hcu-bottom-inset,88px);left:0;right:0;width:min(1180px,100%);max-width:1180px;margin:0 auto!important;padding:12px 20px!important;border:1px solid #b4cbdc;border-radius:16px;background:#f2f7fb;box-shadow:0 8px 40px #123a6438;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto auto auto;grid-template-areas:'top' 'deck' 'hint' 'tools' 'grades' 'full';gap:6px}
.hfc-studying>.hfc-v6-header,.hfc-studying>.hfc-mode-note{display:none}.hfc-studying>.hfc-study-top{grid-area:top;margin:0;min-height:44px}.hfc-studying>.hfc-deck-stage{grid-area:deck;min-height:0;height:100%;padding:6px 8px 18px;margin:0}.hfc-studying .hfc-deck-card{height:100%!important;min-height:0!important}.hfc-studying>.hfc-gesture-hint{grid-area:hint;margin:0;font-size:11px}.hfc-studying>.hfc-study-toolbar{grid-area:tools;margin:0;gap:7px}.hfc-studying>.hfc-grades{grid-area:grades;position:relative;bottom:auto;margin:0;padding:3px 0;background:transparent}.hfc-studying>.hfc-read-full{grid-area:full;margin:0 auto;padding:6px 14px;min-height:40px}.hfc-studying>.hfc-detail{grid-area:detail;min-height:0;overflow:auto;overscroll-behavior:contain;margin:0;padding:12px 16px}.hfc-studying>.hfc-message{position:absolute;top:60px;left:20px;right:20px;z-index:8;max-height:180px;overflow:auto}
@media(min-width:701px) and (min-height:501px){.hfc-root.hfc-studying.hfc-with-detail{grid-template-columns:minmax(0,1fr) minmax(270px,.65fr);grid-template-areas:'top top' 'deck detail' 'hint detail' 'tools detail' 'grades grades' 'full full'}}
@media(max-width:700px){.hfc-root.hfc-studying{padding:8px 10px!important;gap:5px;border-radius:0;grid-template-rows:auto minmax(0,1fr) auto auto auto;grid-template-areas:'top' 'deck' 'tools' 'grades' 'full'}.hfc-studying>.hfc-gesture-hint{display:none}.hfc-root.hfc-studying.hfc-with-detail{grid-template-rows:auto minmax(0,1fr) minmax(70px,.33fr) auto auto auto;grid-template-areas:'top' 'deck' 'detail' 'tools' 'grades' 'full'}.hfc-studying .hfc-japanese{font-size:22px;line-height:1.7}.hfc-studying .hfc-face{padding:42px 15px 14px;gap:8px}.hfc-studying .hfc-meaning{font-size:12px;padding:7px 10px}.hfc-studying .hfc-study-toolbar button{padding:7px 10px;min-height:44px}.hfc-studying .hfc-grade{min-height:46px}.hfc-studying .hfc-study-top>span{font-size:11px}.hfc-studying .hfc-detail p{font-size:13px;line-height:1.65;margin:8px 0}}
@media(max-height:500px) and (min-width:701px){.hfc-root.hfc-studying,.hfc-root.hfc-studying.hfc-with-detail{padding:6px 10px!important;grid-template-columns:minmax(0,1fr) 300px;grid-template-rows:44px minmax(0,1fr) auto auto;grid-template-areas:'top top' 'deck detail' 'deck tools' 'deck grades'}.hfc-studying>.hfc-gesture-hint{display:none}.hfc-studying>.hfc-read-full{position:absolute;right:12px;top:6px;min-height:40px}.hfc-studying>.hfc-study-top{padding-right:145px}.hfc-studying .hfc-japanese{font-size:20px;line-height:1.5}.hfc-studying .hfc-face{padding:35px 14px 10px;gap:6px}.hfc-studying .hfc-meaning{font-size:12px;padding:5px 8px}.hfc-studying .hfc-study-toolbar{gap:5px}.hfc-studying .hfc-study-toolbar button{padding:6px 8px;min-height:40px}.hfc-studying .hfc-grade{min-height:44px}.hfc-studying .hfc-face-label{top:7px;left:12px;font-size:9px}.hfc-studying>.hfc-detail{padding:8px}.hfc-studying .hfc-detail p{font-size:12px;line-height:1.5}}
.hfc-detail[data-revealed=false]>p:not(.hfc-detail-prompt){display:none!important}.hfc-detail[data-revealed=true]>.hfc-detail-prompt{display:none!important}.hfc-detail-prompt{color:#49667e;font-style:italic}
.hfc-deck-card{container-type:size}
@container (max-height:280px){.hfc-face{padding:34px 14px 10px!important;gap:7px!important}.hfc-face .hfc-meaning{padding:6px 8px!important}.hfc-face-label{top:8px!important;font-size:9px!important}}
@container (max-height:190px){.hfc-face .hfc-meaning{padding:4px 7px!important}.hfc-face{padding:28px 12px 7px!important;gap:5px!important}}
.hfc-root .hfc-hard{background:#9f5f06!important;border-color:#864f06!important}
/* Theme integration: clear the main stacking context and respect the pinned site header. */
body.hfc-learning-active #main{z-index:auto!important}
body.hfc-learning-active #hocdiiContactWidget{visibility:hidden!important;pointer-events:none!important}body.hfc-learning-active #go-to-top{display:none!important}
body.hfc-learning-active::after{content:'';position:fixed;inset:var(--hfc-study-top,0px) 0 var(--hfc-study-bottom,88px);background:#e9f0f7;z-index:100150;pointer-events:none}
#hcu-surface #hocdii-flashcards.hfc-root.hfc-studying{left:50%!important;right:auto!important;margin:0!important;transform:translateX(-50%);z-index:100200!important}

/* Theme footer must not overlap the fixed study controls. */
body.hfc-learning-active .hocdii-footer-extra{display:none!important}


/* Keep every character available within the fixed card; never ellipsize meanings. */
.hfc-face .hfc-japanese,.hfc-face[data-long=true] .hfc-japanese{display:block!important;-webkit-line-clamp:unset!important;overflow:auto!important;max-height:55%;min-height:0;flex:0 1 auto;overscroll-behavior:contain;scrollbar-width:thin}
.hfc-face .hfc-meaning{display:block!important;-webkit-line-clamp:unset!important;overflow:auto!important;max-height:40%;min-height:0;flex:0 1 auto;overscroll-behavior:contain;scrollbar-width:thin}
@media(max-width:700px){.hfc-root.hfc-studying{gap:3px}.hfc-studying .hfc-study-toolbar{gap:6px}.hfc-studying .hfc-study-toolbar button{padding:5px 9px;min-height:44px}.hfc-studying .hfc-grades{gap:6px;padding:0}.hfc-studying .hfc-grade{padding:6px 8px;min-height:44px;font-size:13px}.hfc-studying>.hfc-read-full{min-height:32px;padding:3px 12px;font-size:12px!important}.hfc-studying>.hfc-study-top{min-height:38px}.hfc-studying>.hfc-study-top>button{min-height:36px;padding:5px 10px}}

/* 1.5: compact dashboard controls and stronger discovery hierarchy. */
.hfc-home-options{padding:12px 14px;background:#edf5fc;border:1px solid #91b3ce;border-radius:14px;gap:10px;margin:8px 0 18px;align-items:center;position:relative;clear:both}
.hfc-home-options>.hfc-primary{margin:0}.hfc-home-options .hfc-session-size{margin:0;gap:8px;font-size:13px;font-weight:700}.hfc-home-options .hfc-display-settings{padding:7px 10px;margin:0}.hfc-home-options select{min-height:40px;padding:5px 8px}
.hfc-root .hfc-modes{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px;margin:16px 0 22px}.hfc-root .hfc-mode{min-height:74px!important;padding:12px 8px!important;text-align:center;display:flex;align-items:center;justify-content:center}.hfc-root .hfc-mode strong{font-size:15px;line-height:1.5;white-space:normal}.hfc-root .hfc-mode small{display:none}
.hfc-root .hfc-type-grid{gap:10px}.hfc-root .hfc-type-grid button{padding:12px!important;text-align:left;min-height:74px}.hfc-root .hfc-type-grid button>span{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;width:100%}.hfc-root .hfc-type-grid b{font-size:14px;line-height:1.45;color:#163f60;word-break:normal}.hfc-root .hfc-type-grid small{font-size:15px;font-weight:800;min-width:30px;text-align:center;color:#164b73;background:#dcebf7;border-radius:8px;padding:3px 5px}.hfc-type-note{font-size:12px!important;color:#456077!important;line-height:1.6}.hfc-encourage{margin-bottom:18px}.hfc-home-layout{margin-bottom:18px}.hfc-root .hfc-memory-record span{color:#274f6e}.hfc-root .hfc-native-back{background:linear-gradient(135deg,#28649e,#153d66)!important;color:#fff!important;border:1px solid #5689bb!important;border-radius:10px;box-shadow:inset 0 1px 0 #ffffff50,0 3px 6px #12385925;font-size:13px;font-weight:750;min-height:36px;padding:6px 12px}
#hcu-surface .app .reference-dashboard #trendsTool.hfc-featured-entry{border:2px solid #3e8ac5!important;box-shadow:0 5px 14px #1d629738,inset 0 0 0 1px #fff!important;background-color:#d9efff!important;position:relative}
#hcu-surface .app .reference-dashboard #trendsTool.hfc-featured-entry>b{color:#07375e!important;font-weight:900!important;text-shadow:0 1px 0 #fff;font-size:23px!important}
#hcu-surface #trendsTool.hfc-featured-entry:focus-visible{outline:3px solid #f2ab21;outline-offset:3px}
@media(prefers-reduced-motion:no-preference){#trendsTool.hfc-featured-entry{animation:hfc-entry-glow 3s ease-in-out 2}@keyframes hfc-entry-glow{50%{box-shadow:0 0 0 4px #48a9ed40,0 7px 18px #1d62974d}}}
@media(max-width:700px){.hfc-root .hfc-modes{gap:6px}.hfc-root .hfc-mode{min-height:80px!important;padding:9px 5px!important;border-radius:12px}.hfc-root .hfc-mode strong{font-size:12px}.hfc-root .hfc-home-panel{padding:16px}.hfc-root .hfc-type-grid button{padding:10px!important}.hfc-root .hfc-type-grid b{font-size:13px}.hfc-root .hfc-type-grid button>span{grid-template-columns:minmax(0,1fr);gap:4px}.hfc-root .hfc-type-grid small{justify-self:start;min-width:32px}.hfc-home-options{gap:8px}.hfc-home-options>.hfc-primary{width:100%;min-height:42px}.hfc-home-options .hfc-session-size{flex:1}.hfc-home-options .hfc-display-settings{font-size:12px}#hcu-surface .app .reference-dashboard #trendsTool.hfc-featured-entry>b{font-size:20px!important}}

#hcu-surface #trendsTool.hfc-featured-entry .hfc-entry-badge{position:absolute;right:14px;top:9px;display:inline-block;background:#f6b826;color:#073456;font-size:9px;line-height:1.3;letter-spacing:.8px;font-weight:900;padding:4px 7px;border-radius:6px;box-shadow:0 2px 5px #163c6620}#hcu-surface #trendsTool.hfc-featured-entry .hfc-entry-action{justify-self:start;background:#e1f0fc;border:1px solid #8bb8d9;color:#0f507a;padding:3px 8px;border-radius:7px;font-weight:800;margin-top:3px}

.hfc-progress-caption{text-align:center;color:#214e70;font-weight:700;margin:0 0 14px}.hfc-topic-caption{align-items:start!important;gap:8px}.hfc-topic-caption small{white-space:nowrap;font-size:11px}

/* Isolate the badge from native span/icon grid rules. */
#hcu-surface #trendsTool.hfc-featured-entry>i.hfc-entry-badge{position:absolute!important;inset:9px 12px auto auto!important;width:auto!important;min-width:0!important;max-width:none!important;height:auto!important;grid-area:auto!important;transform:none!important;font-style:normal!important;white-space:nowrap!important;overflow:visible!important;font-size:9px!important;line-height:1.3!important;z-index:2;letter-spacing:.6px}
.hfc-v6-header{position:relative;padding:18px 20px;margin:0 0 18px!important;border:1px solid #97c7e6;border-left:5px solid #197fc0;border-radius:16px;background:linear-gradient(115deg,#e4f4ff,#edf0ff 65%,#e9fbf5);box-shadow:0 4px 16px #174e7b16}.hfc-v6-header h1{margin:0 0 7px!important;color:#0c507f!important;font-size:clamp(24px,3vw,34px)!important;line-height:1.3!important}.hfc-v6-header h1:before{content:'✦ ';color:#dd9814}.hfc-v6-header p{margin:4px 0!important;color:#315978!important;font-size:14px}.hfc-v6-header .hfc-demo{margin-top:12px!important}
@media(prefers-reduced-motion:no-preference){.hfc-v6-header{animation:hfc-heading-glow 2.8s ease-in-out 2}@keyframes hfc-heading-glow{50%{box-shadow:0 4px 19px #208dce35;border-left-color:#1fa78a}}}
.hfc-library-tools{background:#f2f7fc;border:1px solid #a6c3da;border-radius:16px;padding:16px;margin:0 0 14px}.hfc-library-search{font-size:13px;font-weight:750;display:grid;gap:6px}.hfc-library-search input{width:100%;min-height:44px}.hfc-filter-chips{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.hfc-filter-chips button{padding:7px 10px;min-height:40px;font-size:12px;font-weight:700}.hfc-library-advanced{border-top:1px solid #c3d6e5;padding-top:10px}.hfc-library-advanced summary{font-size:13px;font-weight:750;cursor:pointer}.hfc-library-advanced .hfc-library-filters{grid-template-columns:repeat(2,minmax(0,1fr));margin:12px 0 0}.hfc-filter-result{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:12px;font-size:13px}.hfc-filter-result button{padding:5px 9px;min-height:36px;font-size:12px}.hfc-library-row{flex-wrap:wrap}.hfc-library-row>div{flex-basis:100%}.hfc-library-row h2{line-height:1.65!important}.hfc-library-row small{color:#355871;font-weight:650}
@media(max-width:700px){.hfc-v6-header{padding:14px 15px}.hfc-v6-header h1{font-size:25px!important}.hfc-library-tools{padding:12px}.hfc-library-advanced select{font-size:13px}.hfc-library-advanced .hfc-library-filters{gap:10px}}

/* Focus study occupies the visual viewport; external navigation is covered and inert. */
html.hfc-focus-lock,html.hfc-focus-lock body{overflow:hidden!important;overscroll-behavior:none}
body.hfc-learning-active::after{inset:0!important;z-index:2147483000!important}
#hcu-surface #hocdii-flashcards.hfc-root.hfc-studying{top:var(--hfc-focus-top,0px)!important;bottom:auto!important;height:var(--hfc-focus-height,100dvh)!important;max-height:var(--hfc-focus-height,100dvh)!important;z-index:2147483001!important;padding-top:max(8px,env(safe-area-inset-top))!important;padding-bottom:max(8px,env(safe-area-inset-bottom))!important;--hcu-bottom-inset:0px}
/* 1.6 — enamel palette, clear hierarchy, and a balanced study workspace. */
.hfc-root{--hfc-ink:#173d61;--hfc-purple:#1466aa;--hfc-line:#a8c9e5;--hfc-lav:#f0f7ff}
.hfc-root button{box-shadow:inset 0 1px 0 #ffffffb3,0 3px 0 #123f661c,0 5px 12px #153d6114;font-weight:700}
.hfc-root button:hover:not(:disabled){filter:brightness(1.06);box-shadow:inset 0 1px 0 #fff,0 3px 0 #123f6626,0 7px 17px #153d6124}
.hfc-root button:active:not(:disabled){box-shadow:inset 0 2px 5px #123f6633}
.hfc-root .hfc-primary,.hfc-root .hfc-tabs [aria-current=page],.hfc-root .is-on{background:linear-gradient(180deg,#56b8f1 0%,#1985cd 47%,#0962ad 49%,#125487 100%)!important;color:#fff!important;border:1px solid #15639b!important;box-shadow:inset 0 1px 0 #c9eeff,0 3px 0 #0a4269,0 6px 14px #17578030}
.hfc-stats>div{position:relative;overflow:hidden;border:1px solid #1e77ba!important;border-radius:18px;padding:18px 10px;background:linear-gradient(165deg,#60c5ff,#1986d7 48%,#1165b6 49%,#164d8c)!important;box-shadow:inset 0 1px 0 #e1f6ff,0 4px 0 #185b8a,0 8px 18px #1b5d8b25}
.hfc-stats>div:nth-child(2){background:linear-gradient(165deg,#b68cff,#8555db 48%,#7441cb 49%,#523096)!important;border-color:#7044ad!important;box-shadow:inset 0 1px 0 #eadcff,0 4px 0 #54328d,0 8px 18px #623a9525}
.hfc-stats>div:nth-child(3){background:linear-gradient(165deg,#ffd66e,#ffad25 48%,#f69809 49%,#bc6405)!important;border-color:#b56706!important;box-shadow:inset 0 1px 0 #fff2c8,0 4px 0 #ab6507,0 8px 18px #c5821925}
.hfc-stats>div:nth-child(4){background:linear-gradient(165deg,#56dfbd,#12ac88 48%,#079b75 49%,#087258)!important;border-color:#09866a!important;box-shadow:inset 0 1px 0 #c7fff0,0 4px 0 #096b54,0 8px 18px #14826525}
.hfc-stats strong,.hfc-stats span{color:#fff!important;text-shadow:0 1px 2px #153b6850}.hfc-stats strong{font-size:32px}.hfc-stats span{font-weight:650}.hfc-stats>div:nth-child(3) strong,.hfc-stats>div:nth-child(3) span{color:#442600!important;text-shadow:0 1px 0 #ffeac0}
.hfc-home-panel{border-color:#a6c6e2;border-radius:22px;background:linear-gradient(145deg,#fff,#f5faff);box-shadow:inset 0 1px 0 #fff,0 6px 18px #214f7814}
.hfc-root .hfc-mode{background:linear-gradient(180deg,#7acaf7,#2895d7 48%,#177ac0 50%,#155a96)!important;color:#fff!important;border-color:#216da5!important}
.hfc-root .hfc-mode:nth-child(2){background:linear-gradient(180deg,#69dcb3,#27b98d 48%,#11a278 50%,#087958)!important;border-color:#0c8867!important;color:#fff!important}
.hfc-root .hfc-mode:nth-child(3){background:linear-gradient(180deg,#ffdc83,#ffbd45 48%,#efa321 50%,#d0840d)!important;border-color:#ba7b19!important;color:#4b2b04!important}
.hfc-root .hfc-type-grid button{background:linear-gradient(160deg,#64c8fb,#248bd4 52%,#1263ab)!important;border-color:#226ba5!important;box-shadow:inset 0 1px 0 #d4f1ff,0 3px 0 #205b89,0 6px 13px #22658f22}
.hfc-root .hfc-type-grid button:nth-child(2){background:linear-gradient(160deg,#ffdc78,#ffb730 52%,#d9820b)!important;border-color:#b57815!important}
.hfc-root .hfc-type-grid button:nth-child(3){background:linear-gradient(160deg,#ae90f0,#8656d1 52%,#60339e)!important;border-color:#7046aa!important}
.hfc-root .hfc-type-grid button:nth-child(4){background:linear-gradient(160deg,#66debf,#1aaf8b 52%,#087b62)!important;border-color:#11876e!important}
.hfc-root .hfc-type-grid b{color:#fff!important;text-shadow:0 1px 1px #173f5b44}.hfc-root .hfc-type-grid button:nth-child(2) b{color:#4c3008!important;text-shadow:none}
.hfc-root .hfc-type-grid small{background:#fff!important;color:#164c78!important;border:1px solid #ffffffaa;box-shadow:inset 0 1px 0 #fff,0 2px 4px #164c7833;min-width:36px;padding:4px 7px}
.hfc-donut{background:conic-gradient(#12ad88 0 var(--hfc-percent),#d8e9f3 var(--hfc-percent) 100%)!important;border:2px solid #fff;box-shadow:inset 0 2px 5px #19496530,0 4px 12px #16887222}
.hfc-donut>div{background:radial-gradient(circle at 35% 20%,#fff,#eff9ff)!important;box-shadow:0 2px 7px #164d7328}.hfc-donut strong{color:#086795!important}
.hfc-topic-start{border-radius:12px!important;margin:7px 0!important;padding:13px 12px!important;background:linear-gradient(180deg,#fff,#eaf4fd)!important;border:1px solid #c2d9eb!important}
.hfc-topic-start progress{appearance:none;-webkit-appearance:none;height:11px!important;border:0;border-radius:20px;overflow:hidden;background:#d6e5f0;box-shadow:inset 0 1px 3px #173e6633;margin-top:10px}
.hfc-topic-start progress::-webkit-progress-bar{background:#d6e5f0;border-radius:20px;box-shadow:inset 0 1px 3px #173e6633}.hfc-topic-start progress::-webkit-progress-value{border-radius:20px;background:linear-gradient(180deg,#71ead1,#20bb9a 45%,#099c7d 50%,#08765f);box-shadow:inset 0 1px 0 #c7fff4}.hfc-topic-start progress::-moz-progress-bar{border-radius:20px;background:linear-gradient(#71ead1,#099c7d,#08765f)}
.hfc-encourage{display:flex;align-items:center;gap:15px;padding:20px!important;border:1px solid #318dad!important;border-radius:20px;background:linear-gradient(135deg,#1368a3,#148eaa 60%,#22ad9b)!important;color:#fff!important;box-shadow:inset 0 1px 0 #a2e8fa,0 4px 0 #126382,0 8px 18px #1a6c8722}
.hfc-encourage>span{flex:0 0 48px!important;display:grid!important;place-items:center;width:48px!important;height:48px;font-size:29px!important;line-height:1;color:#fff2ad;border:1px solid #ffffff70;border-radius:15px;background:linear-gradient(145deg,#ffffff50,#ffffff0d);box-shadow:inset 0 1px 0 #fff8;letter-spacing:0}
.hfc-encourage strong{font-size:16px;color:#fff!important}.hfc-encourage p{font-size:13px!important;line-height:1.65;color:#eefaff!important;margin:5px 0 0!important}
.hfc-root.hfc-studying{background:radial-gradient(ellipse at 15% 0%,#d9eeff,transparent 65%),#eef5fb!important}
.hfc-studying>.hfc-deck-stage{padding:7px 9px 15px!important}
.hfc-studying .hfc-deck-card{border:2px solid #70c6f6!important;border-radius:26px!important;box-shadow:0 0 0 3px #fff,0 0 0 5px #2678b3,0 6px 0 5px #16527c40,0 15px 25px #143e6b26!important;outline:none}
.hfc-studying .hfc-face{background:linear-gradient(145deg,#51b2ed 0%,#197fca 32%,#146db5 60%,#124e8a 100%)!important;border-radius:23px!important;padding:64px 30px 40px;gap:24px;overflow:hidden}
.hfc-studying .hfc-back-face{background:linear-gradient(145deg,#37c9a4,#149c7d 35%,#0b8268 64%,#075b4c)!important}
.hfc-studying .hfc-face:before{content:'';position:absolute;inset:1px 1px auto;height:34%;border-radius:22px 22px 48% 15%;background:linear-gradient(165deg,#ffffff30,#ffffff00);pointer-events:none}
.hfc-studying .hfc-face-label{top:19px;left:23px;color:#0f527f!important;background:#ffffffed!important;border:1px solid #fff!important;box-shadow:0 2px 7px #0d38672a;letter-spacing:1.2px;padding:5px 10px!important;border-radius:8px;font-size:10px!important}
.hfc-studying .hfc-back-face .hfc-face-label{color:#08674e!important}
.hfc-studying .hfc-japanese{position:relative;width:100%;max-width:32ch;margin:0 auto;font-size:clamp(22px,2.3vw,34px);font-weight:750;line-height:1.85;letter-spacing:.015em;color:#fff!important;text-shadow:0 1px 2px #07375666;text-wrap:pretty}
.hfc-studying .hfc-japanese rt{color:#e1f5ff!important;text-shadow:none}
.hfc-studying .hfc-meaning{position:relative;width:100%;max-width:52ch;background:linear-gradient(180deg,#fff,#edf6ff)!important;color:#193f62!important;border:1px solid #ffffffcc!important;border-radius:15px!important;box-shadow:inset 0 1px 0 #fff,0 5px 13px #0a3d6630;padding:13px 18px;font-size:14px;line-height:1.75}
.hfc-studying>.hfc-detail{align-self:start;width:100%;max-height:100%;border:1px solid #7fb6d6!important;border-left:4px solid #129c87!important;border-radius:19px!important;background:linear-gradient(145deg,#fff,#f0faff)!important;box-shadow:inset 0 1px 0 #fff,0 5px 16px #24597d16;padding:0 18px 17px!important;scrollbar-width:thin}
.hfc-detail>summary{position:sticky;top:0;z-index:1;margin:0 -18px 14px;padding:15px 18px;background:linear-gradient(135deg,#d1f5ed,#dcefff);border-bottom:1px solid #a1cfdd;font-size:15px;font-weight:800;color:#095d61;list-style:none}.hfc-detail>summary::-webkit-details-marker{display:none}.hfc-detail>summary:before{content:'✦';display:inline-block;margin-right:9px;color:#098d81}
.hfc-detail p{font-size:14px;line-height:1.85;margin:12px 0;padding:0 0 12px;border-bottom:1px solid #d9eaf2}.hfc-detail p:last-child{border-bottom:0;padding-bottom:0;margin-bottom:0}.hfc-detail-prompt{font-style:normal!important;color:#3a627b!important;line-height:1.8!important}
.hfc-root .hfc-grade{color:#fff!important;border-radius:14px!important;font-weight:800;box-shadow:inset 0 1px 0 #ffffff90,0 3px 0 #123b5f40,0 5px 10px #123b5f16!important}
.hfc-root .hfc-again{background:linear-gradient(180deg,#ff819a,#e74567 46%,#cd2b50 50%,#a51f43)!important;border-color:#a92849!important}.hfc-root .hfc-hard{background:linear-gradient(180deg,#ffd66d,#edac30 46%,#d28c14 50%,#a56309)!important;border-color:#9a640c!important;color:#3f2604!important}.hfc-root .hfc-good{background:linear-gradient(180deg,#52dcb2,#19ad82 46%,#0a956d 50%,#08724f)!important;border-color:#087554!important}
@media(min-width:701px) and (min-height:501px){.hfc-root.hfc-studying.hfc-with-detail{grid-template-columns:minmax(0,1fr) minmax(280px,.56fr);column-gap:22px;row-gap:8px}.hfc-studying>.hfc-detail{margin-top:2px;min-height:190px}.hfc-studying>.hfc-study-top{padding:0 3px 4px}.hfc-studying>.hfc-study-toolbar{padding-top:3px}}
@media(min-width:1600px){.hfc-root.hfc-studying{max-width:1380px!important}.hfc-studying .hfc-japanese{font-size:34px}}
@media(max-width:700px){.hfc-stats{gap:8px}.hfc-stats strong{font-size:27px}.hfc-stats span{font-size:11px}.hfc-root .hfc-type-grid button>span{grid-template-columns:minmax(0,1fr) auto;gap:5px}.hfc-root .hfc-type-grid small{font-size:13px;padding:3px 5px;min-width:29px}.hfc-root.hfc-studying.hfc-with-detail{grid-template-rows:auto minmax(0,1fr) minmax(85px,.32fr) auto auto auto;gap:6px}.hfc-studying .hfc-deck-card{border-radius:21px!important}.hfc-studying .hfc-face{padding:48px 17px 19px;gap:14px;border-radius:18px!important}.hfc-studying .hfc-face-label{top:12px;left:15px;font-size:9px!important}.hfc-studying .hfc-japanese{font-size:22px;line-height:1.75}.hfc-studying .hfc-meaning{font-size:12px;padding:9px 11px}.hfc-studying>.hfc-detail{height:100%;padding:0 12px 10px!important;align-self:stretch;border-radius:14px!important}.hfc-detail>summary{margin:0 -12px 8px;padding:9px 12px;font-size:13px}.hfc-detail p{font-size:12px!important;margin:7px 0;padding-bottom:7px}.hfc-studying>.hfc-deck-stage{padding:6px 7px 12px!important}.hfc-encourage{padding:17px!important}}
@media(max-height:600px){.hfc-studying .hfc-japanese{font-size:20px;line-height:1.55}.hfc-studying .hfc-face{padding:39px 16px 12px;gap:10px}.hfc-studying .hfc-meaning{padding:7px 10px;font-size:12px}.hfc-studying .hfc-face-label{top:9px;left:15px}.hfc-studying>.hfc-detail{min-height:0}}
/* 1.6.1 — typography and action hierarchy. Native calendar and topbrand are untouched. */
.hfc-root,.hfc-root button,.hfc-root input,.hfc-root select,.hfc-root h1,.hfc-root h2,.hfc-root h3,.hfc-root strong,.hfc-root b,.hfc-root small,.hfc-root p,.hfc-root span{font-family:Arial,"Helvetica Neue",sans-serif!important}
.hfc-root h1,.hfc-root h2,.hfc-root h3,.hfc-root button,.hfc-root b,.hfc-root strong{font-weight:700!important}
.hfc-root .hfc-japanese,.hfc-root .hfc-japanese *{font-family:"Noto Sans JP","Yu Gothic","Hiragino Kaku Gothic ProN",Meiryo,sans-serif!important}
.hfc-root:not(.hfc-studying){margin-top:12px;padding-top:12px}
.hfc-root .hfc-v6-header{padding:12px 17px;margin-bottom:12px!important;border-radius:14px;box-shadow:0 3px 10px #174e7b12}
.hfc-root .hfc-v6-header h1{font-size:22px!important;line-height:1.35!important;margin:0 0 5px!important}
.hfc-root .hfc-v6-header p{font-size:19px!important;font-weight:700!important;line-height:1.4;color:#174c75!important;margin:0!important}
.hfc-root .hfc-tabs{margin:12px 0;gap:8px}.hfc-root .hfc-tabs button{min-height:40px;padding:7px 16px}
.hfc-root .hfc-home-options{margin:0 0 18px;padding:10px 12px;gap:10px;box-shadow:inset 0 1px 0 #fff}
.hfc-root .hfc-today{font-size:21px;margin:16px 0 12px;line-height:1.4}.hfc-root .hfc-stats{margin:12px 0 20px}.hfc-root .hfc-stats>div{padding:15px 10px}.hfc-root .hfc-stats strong{font-size:29px}.hfc-root .hfc-stats span{font-size:13px;font-weight:600!important;line-height:1.5}
.hfc-root .hfc-home-panel h2{font-size:20px;line-height:1.4;margin:0 0 15px}.hfc-root .hfc-home-panel h3{font-size:16px;line-height:1.5;margin:20px 0 12px}
/* Contrast is measured at the label area; the glossy highlight stays at the rim. */
.hfc-root .hfc-stats>div:nth-child(3),.hfc-root .hfc-type-grid button:nth-child(2),.hfc-root .hfc-hard{background:linear-gradient(180deg,#ffd26a 0%,#bb7b0c 22%,#a26406 55%,#8b5103 100%)!important;color:#fff!important;border-color:#98600a!important}
.hfc-root .hfc-stats>div:nth-child(3) strong,.hfc-root .hfc-stats>div:nth-child(3) span,.hfc-root .hfc-type-grid button:nth-child(2) b{color:#fff!important;text-shadow:0 1px 1px #51300266!important}
.hfc-root .hfc-type-grid button,.hfc-root .hfc-stats>div{background:linear-gradient(165deg,#4eb6ef 0%,#237bb7 25%,#1566aa 65%,#174e85 100%)!important}
.hfc-root .hfc-stats>div:nth-child(2),.hfc-root .hfc-type-grid button:nth-child(3){background:linear-gradient(165deg,#ac82ec 0%,#7946ba 25%,#6536a8 65%,#4f298d 100%)!important}
.hfc-root .hfc-stats>div:nth-child(4),.hfc-root .hfc-type-grid button:nth-child(4){background:linear-gradient(165deg,#4ad4af 0%,#118a70 25%,#08795d 65%,#07614b 100%)!important}
.hfc-root .hfc-stats>div:nth-child(3),.hfc-root .hfc-type-grid button:nth-child(2){background:linear-gradient(165deg,#ffd26a 0%,#b8790c 25%,#a26406 65%,#8b5103 100%)!important}
.hfc-root .hfc-stats strong,.hfc-root .hfc-stats span,.hfc-root .hfc-type-grid b{color:#fff!important}
/* The three study modes are primary destinations, visually distinct from filter tiles. */
.hfc-root .hfc-modes{gap:12px;margin:8px 0 23px;padding:4px 0 19px;border-bottom:1px solid #bfd4e5}
.hfc-root .hfc-mode,.hfc-root .hfc-mode.hfc-primary{min-height:124px!important;padding:15px 10px!important;border-radius:20px!important;border:2px solid #5ca8db!important;background:linear-gradient(160deg,#309cdd 0%,#1c72b0 25%,#12548d 70%,#103c69 100%)!important;box-shadow:inset 0 0 0 2px #ffffff30,0 5px 0 #0b426a,0 9px 18px #15507830!important;color:#fff!important}
.hfc-root .hfc-mode.hfc-primary{border-color:#e5b34c!important;box-shadow:inset 0 0 0 2px #ffffff40,0 5px 0 #0b426a,0 0 0 3px #e5b34c33,0 9px 18px #15507830!important}
.hfc-root .hfc-mode:nth-child(2){background:linear-gradient(160deg,#33bf9a,#0b8b6b 25%,#087659 70%,#07553f)!important;border-color:#43bd9c!important;color:#fff!important}
.hfc-root .hfc-mode:nth-child(3){background:linear-gradient(160deg,#a17be1,#7950b6 25%,#603c98 70%,#452570)!important;border-color:#a68bd1!important;color:#fff!important}
.hfc-root .hfc-mode>span{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:100%;min-width:0}.hfc-root .hfc-mode-icon{display:grid;place-items:center;font-size:26px;line-height:1;width:44px;height:44px;border-radius:13px;background:#ffffff1c;border:1px solid #ffffff48;box-shadow:inset 0 1px 0 #ffffff50}
.hfc-root .hfc-mode strong{font-size:14px;line-height:1.4;color:#fff!important;text-shadow:0 1px 2px #10335a55}
/* Results carry semantic colors regardless of their index in the grid. */
.hfc-root .hfc-summary .hfc-stats>[data-result=AGAIN]{background:linear-gradient(165deg,#fb7791,#c62e50 28%,#a91e40)!important;border-color:#a52345!important;box-shadow:inset 0 1px 0 #ffc9d4,0 4px 0 #8d1d36,0 7px 16px #aa25432b}
.hfc-root .hfc-summary .hfc-stats>[data-result=HARD]{background:linear-gradient(165deg,#ffd26a,#aa6d08 28%,#8b5103)!important;border-color:#98600a!important;box-shadow:inset 0 1px 0 #fff0c5,0 4px 0 #7b4704,0 7px 16px #a264062b}
.hfc-root .hfc-summary .hfc-stats>[data-result=GOOD]{background:linear-gradient(165deg,#4ad4af,#108569 28%,#07614b)!important;border-color:#087554!important;box-shadow:inset 0 1px 0 #b9ffeb,0 4px 0 #07543d,0 7px 16px #08795d2b}
.hfc-root .hfc-summary .hfc-stats strong,.hfc-root .hfc-summary .hfc-stats span{color:#fff!important;text-shadow:0 1px 2px #173b5d55!important}
.hfc-root .hfc-again{background:linear-gradient(180deg,#fa7d98 0%,#cc3156 25%,#a91e40 100%)!important}.hfc-root .hfc-good{background:linear-gradient(180deg,#4ad4af 0%,#108569 25%,#07614b 100%)!important}.hfc-root .hfc-hard{background:linear-gradient(180deg,#ffd26a 0%,#aa6d08 25%,#8b5103 100%)!important;color:#fff!important}
.hfc-deck-card[data-grade=GOOD]{--hfc-feedback:#15956e;--hfc-grade-ink:#086647}.hfc-deck-card[data-grade=AGAIN]{--hfc-feedback:#cf3255;--hfc-grade-ink:#a51e40}.hfc-deck-card[data-grade=HARD]{--hfc-feedback:#cf9018;--hfc-grade-ink:#8b5103}
/* Japanese tokens stay together; long content remains scrollable on the face itself. */
.hfc-studying .hfc-japanese{font-size:clamp(22px,2.1vw,30px);line-height:1.75;letter-spacing:0;word-break:normal;line-break:strict;overflow-wrap:anywhere;text-wrap:balance;max-width:35ch;scrollbar-gutter:stable both-edges}
.hfc-jp-token,.hfc-japanese ruby{display:inline-block;max-width:100%;vertical-align:baseline;white-space:normal;word-break:normal;overflow-wrap:anywhere}.hfc-japanese ruby{white-space:nowrap}
.hfc-root.hfc-studying{grid-template-rows:auto minmax(0,1fr) auto auto auto;grid-template-areas:'top' 'deck' 'hint' 'tools' 'grades'}
@media(min-width:701px) and (min-height:501px){.hfc-root.hfc-studying.hfc-with-detail{grid-template-rows:auto minmax(0,1fr) auto auto auto;grid-template-areas:'top top' 'deck detail' 'hint detail' 'tools detail' 'grades grades'}}
/* Recolor only the overlay at the Flashcard entry's left; preserve the original scene image. */
#hcu-surface .app .reference-dashboard #trendsTool.hfc-featured-entry:before{background:linear-gradient(90deg,#145380 0%,#1b6ca2 42%,#287ca8d9 65%,transparent 85%)!important}
#hcu-surface .app .reference-dashboard #trendsTool.hfc-featured-entry>b,#hcu-surface .app .reference-dashboard #trendsTool.hfc-featured-entry>small{font-family:Arial,"Helvetica Neue",sans-serif!important;color:#fff!important;text-shadow:0 1px 2px #0a365a80!important}
#hcu-surface .app .reference-dashboard #trendsTool.hfc-featured-entry>b{font-size:21px!important;line-height:1.35!important;font-weight:700!important}
#hcu-surface .app .reference-dashboard #trendsTool.hfc-featured-entry>small{font-size:12px!important;line-height:1.5!important;font-weight:600!important}
#hcu-surface #trendsTool.hfc-featured-entry .hfc-entry-action{background:#fff!important;color:#125482!important;border:1px solid #a2d4f4!important;font:700 12px/1.4 Arial,sans-serif!important;padding:5px 11px!important;box-shadow:0 2px 5px #0b335633}
@media(max-width:700px){.hfc-root .hfc-v6-header{padding:11px 13px}.hfc-root .hfc-v6-header h1{font-size:19px!important}.hfc-root .hfc-v6-header p{font-size:17px!important}.hfc-root .hfc-tabs{gap:6px}.hfc-root .hfc-tabs button{padding:7px 12px;font-size:13px}.hfc-root .hfc-stats{gap:7px}.hfc-root .hfc-stats>div{padding:12px 5px}.hfc-root .hfc-stats strong{font-size:26px}.hfc-root .hfc-stats span{font-size:11px}.hfc-root .hfc-home-panel{padding:14px}.hfc-root .hfc-home-panel h2{font-size:18px}.hfc-root .hfc-modes{gap:8px;padding-bottom:16px}.hfc-root .hfc-mode{min-height:112px!important;padding:12px 5px!important;border-radius:15px!important}.hfc-root .hfc-mode strong{font-size:12px}.hfc-root .hfc-mode-icon{width:36px;height:36px;font-size:23px;border-radius:11px}.hfc-root .hfc-home-options .hfc-display-settings{margin-left:auto}.hfc-studying .hfc-japanese{font-size:22px;line-height:1.65}.hfc-root.hfc-studying{grid-template-rows:auto minmax(0,1fr) auto auto;grid-template-areas:'top' 'deck' 'tools' 'grades'}.hfc-root.hfc-studying.hfc-with-detail{grid-template-rows:auto minmax(0,1fr) minmax(85px,.3fr) auto auto;grid-template-areas:'top' 'deck' 'detail' 'tools' 'grades'}#hcu-surface .app .reference-dashboard #trendsTool.hfc-featured-entry>b{font-size:18px!important}}
@media(max-height:500px) and (min-width:701px){.hfc-root.hfc-studying,.hfc-root.hfc-studying.hfc-with-detail{grid-template-columns:minmax(0,1fr) 300px;grid-template-rows:40px minmax(0,1fr) auto auto;grid-template-areas:'top top' 'deck detail' 'deck tools' 'deck grades'}.hfc-studying .hfc-japanese{font-size:20px;line-height:1.55}.hfc-studying>.hfc-study-top{padding-right:0}}
.hfc-root .hfc-v6-header .hfc-demo{font-size:12px!important;font-weight:400!important;line-height:1.5!important;padding:7px 10px;margin-top:8px!important}
.hfc-japanese ruby{display:ruby!important;white-space:normal!important}.hfc-root .hfc-japanese .hfc-jp-token{margin:0!important;padding:0!important;min-width:0!important;letter-spacing:0!important;line-height:inherit!important}

/* 1.6.2: Shuffle-inspired web motion. Only transform/opacity during drag. */
.hfc-studying .hfc-deck-card{touch-action:none;transform-origin:50% 50%}
.hfc-studying .hfc-deck-under{transform:translate3d(0,12px,0) scale(.96);transition:none}

.hfc-deck-card.is-dragging,.hfc-deck-card.is-leaving{will-change:transform,opacity}
.hfc-deck-card.is-leaving{pointer-events:none}

.hfc-studying .hfc-deck-stage{display:grid;isolation:isolate}
.hfc-studying .hfc-deck-under,.hfc-studying .hfc-deck-card{grid-area:1/1;position:relative;inset:auto;width:100%;height:100%;box-sizing:border-box}
.hfc-studying .hfc-deck-under{padding:0;z-index:0;opacity:1;border:2px solid #70c6f6;border-radius:26px;container-type:size}
.hfc-studying .hfc-deck-card{z-index:1;will-change:auto}
.hfc-studying .hfc-deck-card.is-dragging,.hfc-studying .hfc-deck-card.is-leaving{will-change:transform,opacity}
.hfc-studying .hfc-deck-under .hfc-face{color:#fff}
@media(max-width:700px){}

/* 1.6.3: composite drag/feedback, keep layer prepared before first touch. */
.hfc-studying .hfc-deck-card{will-change:transform,opacity;transform:translate3d(0,0,0)}
.hfc-studying .hfc-deck-under{will-change:transform}
.hfc-studying .hfc-face::after{display:none!important}
.hfc-feedback-layer{position:absolute!important;inset:0;z-index:2!important;border-radius:inherit;background:var(--hfc-feedback,transparent);opacity:0;pointer-events:none;will-change:opacity}
.hfc-swipe-label{will-change:opacity}
.hfc-studying .hfc-japanese{overflow-x:hidden!important;overflow-y:auto!important;padding-block:.6em .2em;box-sizing:border-box;line-height:1.95!important}
.hfc-root .hfc-japanese ruby{display:ruby!important;ruby-position:over;white-space:nowrap!important}
.hfc-root .hfc-japanese rt{display:ruby-text!important;font-size:.5em!important;line-height:1.2!important;visibility:visible!important;opacity:1!important}
/* Compact two text rows; CTA follows on its own row. Keep the scene seam unchanged. */
#hcu-surface#hcu-surface .app .reference-dashboard #trendsTool.hfc-featured-entry{grid-template-columns:28px minmax(0,1fr) 24px!important;grid-template-rows:auto auto auto!important;gap:5px 8px!important;padding:14px 12px!important;height:auto!important;min-height:118px!important}
#hcu-surface#hcu-surface .app .reference-dashboard #trendsTool.hfc-featured-entry>b{font-size:clamp(14px,1.7vw,21px)!important;line-height:1.3!important;padding:0!important;max-width:100%!important;min-width:0!important;white-space:normal!important}
#hcu-surface#hcu-surface .app .reference-dashboard #trendsTool.hfc-featured-entry>small{font-size:clamp(10px,1.1vw,12px)!important;line-height:1.4!important;padding:0!important;max-width:100%!important;min-width:0!important;white-space:normal!important}
#hcu-surface#hcu-surface .app .reference-dashboard #trendsTool.hfc-featured-entry>span:not(.action-chevron){font-size:26px!important;width:28px!important;grid-area:1/1/3/2!important;align-self:center!important}
#hcu-surface#hcu-surface .app .reference-dashboard #trendsTool.hfc-featured-entry>b,#hcu-surface#hcu-surface .app .reference-dashboard #trendsTool.hfc-featured-entry>small{grid-column:2/4!important}
@media(max-width:600px){
 #hcu-surface#hcu-surface .app .reference-dashboard #trendsTool.hfc-featured-entry>b{font-size:14px!important}
 #hcu-surface#hcu-surface .app .reference-dashboard #trendsTool.hfc-featured-entry>small{font-size:10px!important}
}

#hcu-surface#hcu-surface .app .reference-dashboard #trendsTool.hfc-featured-entry>small .hfc-banner-line{display:block!important;width:auto!important;font:inherit!important;white-space:nowrap!important;line-height:1.4!important}

#hcu-surface#hcu-surface .app .reference-dashboard #trendsTool.hfc-featured-entry>small{display:block!important}
#hcu-surface#hcu-surface .app .reference-dashboard #trendsTool.hfc-featured-entry>small .hfc-banner-line{position:static!important;grid-area:auto!important;transform:none!important;background:none!important;border:0!important;padding:0!important;margin:0!important;min-width:0!important;max-width:100%!important}

/* 1.6.4: explicit ruby placement works without CSS ruby/ruby-text support. */
.hfc-root .hfc-japanese .hfc-ruby{display:inline-block!important;position:relative!important;white-space:nowrap!important;vertical-align:baseline!important;line-height:1.15!important;overflow:visible!important}
.hfc-root .hfc-japanese .hfc-ruby-base{display:inline!important;font:inherit!important;letter-spacing:inherit!important}
.hfc-root .hfc-japanese .hfc-ruby>.hfc-ruby-reading{display:block!important;position:absolute!important;inset:auto!important;bottom:calc(100% - .2em)!important;left:50%!important;transform:translateX(-50%)!important;min-width:100%!important;width:max-content!important;height:auto!important;margin:0!important;padding:0!important;text-align:center!important;white-space:nowrap!important;font-size:.48em!important;line-height:1.15!important;font-weight:500!important;visibility:visible!important;opacity:1!important;pointer-events:none}
.hfc-studying .hfc-feedback-layer{z-index:0!important}
.hfc-deck-card[data-grade=AGAIN] .hfc-feedback-layer{background:linear-gradient(145deg,#e35879,#b12549 45%,#861531)!important}
.hfc-deck-card[data-grade=HARD] .hfc-feedback-layer{background:linear-gradient(145deg,#e2ad36,#ab740e 45%,#815006)!important}
.hfc-deck-card[data-grade=GOOD] .hfc-feedback-layer{background:linear-gradient(145deg,#39c4a0,#0d8a68 45%,#075b45)!important}
/* Study suggestions are actions, not permanently selected tiles. */
.hfc-root .hfc-modes{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;padding:0 0 18px!important;margin:8px 0 22px!important}
.hfc-root .hfc-mode,.hfc-root .hfc-mode.hfc-primary{min-height:82px!important;padding:14px!important;border-radius:14px!important;border:1px solid #2673aa!important;box-shadow:0 3px 8px #153e6420!important;background:linear-gradient(135deg,#2488c7,#155889)!important;text-align:left!important}
.hfc-root .hfc-mode:nth-child(2){border-color:#198469!important;background:linear-gradient(135deg,#1da78b,#0b7059)!important}
.hfc-root .hfc-mode:nth-child(3){border-color:#7958a7!important;background:linear-gradient(135deg,#966bc6,#604188)!important}
.hfc-root .hfc-mode>span{flex-direction:row!important;justify-content:flex-start!important;gap:12px!important;width:100%!important}
.hfc-root .hfc-mode .hfc-mode-icon{width:34px!important;height:34px!important;min-width:34px!important;flex:0 0 34px!important;border:0!important;box-shadow:none!important;background:#ffffff15!important;font-size:24px!important;border-radius:9px!important}
.hfc-root .hfc-mode strong{font-size:14px!important;line-height:1.4!important;text-shadow:none!important;text-align:left!important}
.hfc-root .hfc-mode:after{content:'›';font-size:22px;opacity:.75;margin-left:8px}
@media(max-width:700px){.hfc-root .hfc-modes{grid-template-columns:1fr!important;gap:9px!important}.hfc-root .hfc-mode,.hfc-root .hfc-mode.hfc-primary{min-height:62px!important;padding:12px 14px!important}.hfc-root .hfc-mode strong{font-size:15px!important}}

/* 1.6.6: preview and live front use identical typography, rim and layers. */
.hfc-studying .hfc-deck-under{box-shadow:0 0 0 3px #fff,0 0 0 5px #2678b3,0 6px 0 5px #16527c40,0 15px 25px #143e6b26!important;outline:none;border-radius:26px!important}
@media(max-width:700px){.hfc-studying .hfc-deck-under{border-radius:21px!important}}

/* Intrinsic ruby width: both rows contribute to layout; last line supplies base baseline. */
.hfc-root .hfc-japanese .hfc-ruby{display:inline-block!important;text-align:center!important;vertical-align:baseline!important;padding-inline:.035em!important;line-height:1.15!important}
.hfc-root .hfc-japanese .hfc-ruby-base{display:block!important;line-height:1.15!important}
.hfc-root .hfc-japanese .hfc-ruby>.hfc-ruby-reading{position:static!important;inset:auto!important;transform:none!important;display:block!important;min-width:0!important;width:auto!important;font-size:.48em!important;line-height:1.25!important;letter-spacing:0!important;margin:0!important;padding:0 .04em!important}
/* Locale-owned date selection; no device-native date popup. */
.hfc-calendar{width:380px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box;padding:20px;border:1px solid #b9ccdf;border-radius:18px;background:#fff;color:#163c52;box-shadow:0 16px 60px #17394e38;font:15px/1.5 system-ui;overscroll-behavior:contain}
.hfc-calendar::backdrop{background:#142d475c}.hfc-calendar h2{font-size:20px;margin:0 0 14px}.hfc-calendar label{display:block;font-weight:600}.hfc-calendar input{display:block;box-sizing:border-box;width:100%;padding:11px 12px;margin:6px 0 14px;border:1px solid #aec4d7;border-radius:9px;background:#fff;color:#163c52;font:inherit}
.hfc-calendar-nav{display:grid;grid-template-columns:40px minmax(0,1fr) 90px 40px;gap:5px;align-items:center}.hfc-calendar select,.hfc-calendar button{font:inherit;min-width:0;min-height:40px;border:1px solid #c5d5e3;border-radius:8px;background:#f5f9fc;color:#163c52;box-shadow:none;padding:5px;cursor:pointer}.hfc-calendar select{width:100%}.hfc-calendar-nav>button{font-size:25px}.hfc-calendar-week,.hfc-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center}.hfc-calendar-week{font-size:12px;font-weight:700;padding:12px 0 7px}.hfc-calendar-grid button{min-height:39px;border-color:transparent;background:#fff}.hfc-calendar-grid button[aria-current=date]{border-color:#80b7de}.hfc-calendar-grid button[aria-pressed=true]{background:#126eac;color:#fff}.hfc-calendar button:focus-visible,.hfc-calendar select:focus-visible,.hfc-calendar input:focus-visible{outline:3px solid #6fb6e5;outline-offset:2px}.hfc-calendar button:disabled{opacity:.35;cursor:default}.hfc-calendar>[role=alert]{color:#b32943;font-size:13px;margin:10px 0}.hfc-calendar>p:not([role]){font-size:12px;color:#506e82;margin:8px 0}.hfc-calendar-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.hfc-calendar-actions button{padding:8px 12px}.hfc-calendar-actions button:first-child{background:#126eac;color:#fff;border-color:#126eac}@media(max-width:360px){.hfc-calendar{padding:14px}.hfc-calendar-nav{grid-template-columns:35px minmax(0,1fr) 78px 35px;gap:3px}}
/* Stable layers while dragging, returning and promoting the preview card. */
.hfc-studying .hfc-deck-stage{isolation:isolate}.hfc-studying .hfc-deck-card,.hfc-studying .hfc-deck-under{-webkit-backface-visibility:hidden;backface-visibility:hidden}.hfc-study-top>span{font-variant-numeric:tabular-nums;white-space:nowrap}
.hfc-calendar>[role=alert]{min-height:3em}

/* 1.6.7: labels are prepared once; dragging changes only compositor/style state,
   never text child lists that trigger the host exam layout observer. */
.hfc-swipe-label>[data-grade-label]{display:none}
.hfc-deck-card[data-grade=AGAIN] .hfc-swipe-label>[data-grade-label=AGAIN],
.hfc-deck-card[data-grade=HARD] .hfc-swipe-label>[data-grade-label=HARD],
.hfc-deck-card[data-grade=GOOD] .hfc-swipe-label>[data-grade-label=GOOD]{display:inline}

/* R94: shared exam palette and quieter study surfaces. */
#hcu-surface#hcu-surface#hcu-surface .hfc-root .hfc-stats>div{background:#fff!important;border:1px solid #d2e2ed!important;border-top:3px solid #3583ac!important;border-radius:14px!important;box-shadow:0 4px 12px #173e680d!important;color:#194f70!important;padding:18px 8px!important}
#hcu-surface#hcu-surface#hcu-surface .hfc-root .hfc-stats>div:nth-child(2){border-top-color:#8b75b2!important}
#hcu-surface#hcu-surface#hcu-surface .hfc-root .hfc-stats>div:nth-child(3){border-top-color:#c19237!important}
#hcu-surface#hcu-surface#hcu-surface .hfc-root .hfc-stats>div:nth-child(4){border-top-color:#389b86!important}
#hcu-surface#hcu-surface#hcu-surface .hfc-root .hfc-stats strong{color:#194f70!important;text-shadow:none!important}
#hcu-surface#hcu-surface#hcu-surface .hfc-root .hfc-stats span{color:#546e80!important}
#hcu-surface#hcu-surface#hcu-surface .hfc-root .hfc-primary,#hcu-surface#hcu-surface#hcu-surface .hfc-root .hfc-tabs [aria-current=page]{background:linear-gradient(135deg,#21688f,#195172)!important;border:1px solid #29698e!important;border-radius:12px!important;box-shadow:inset 0 1px 0 #ffffff20,0 3px 8px #164c7418!important;color:#fff!important}
#hcu-surface#hcu-surface#hcu-surface .hfc-root .hfc-mode:not(.hfc-primary){background:#f3f8fb!important;color:#214d67!important;border:1px solid #c4dce8!important;box-shadow:0 3px 9px #164c7410!important}
#hcu-surface#hcu-surface#hcu-surface .hfc-root .hfc-mode:not(.hfc-primary) strong,#hcu-surface#hcu-surface#hcu-surface .hfc-root .hfc-type-grid button b,#hcu-surface#hcu-surface#hcu-surface .hfc-root .hfc-type-grid button small{color:#214d67!important;text-shadow:none!important}
#hcu-surface#hcu-surface#hcu-surface .hfc-root .hfc-today,#hcu-surface#hcu-surface#hcu-surface .hfc-root .hfc-home-panel h2,#hcu-surface#hcu-surface#hcu-surface .hfc-root .hfc-home-panel h3,#hcu-surface#hcu-surface#hcu-surface .hfc-root .hfc-v6-header h1{color:#194f70!important}
#hcu-surface#hcu-surface#hcu-surface .hfc-root .hfc-type-grid button{background:#f1f7fb!important;color:#214d67!important;border:1px solid #c8dce8!important;box-shadow:0 3px 8px #164c740c!important}
.hfc-root{--hfc-purple:#195a80;--hfc-ink:#193a52;--hfc-line:#c9dce8;--hfc-lav:#f1f7fb;background:#f8fbfd;border-radius:20px;padding:18px;color:var(--hfc-ink)}
.hfc-root .hfc-home-panel{background:#fff;border:1px solid #d3e2ec;border-radius:18px;box-shadow:0 4px 0 #164c7410,0 12px 24px #164c7409}
.hfc-root .hfc-home-panel h2,.hfc-root .hfc-home-panel h3,.hfc-root .hfc-today{color:#194f70!important}
.hfc-root .hfc-tabs{gap:8px;padding:5px;background:#eaf2f7;border:1px solid #d4e3ec;border-radius:15px}
.hfc-root .hfc-tabs button{border:0;border-radius:11px;box-shadow:none;min-height:44px}
.hfc-root .hfc-mode,.hfc-root .hfc-type-grid button{border-radius:15px;border:1px solid #c4dce8;box-shadow:0 3px 0 #164c7412,0 6px 14px #164c7410}
.hfc-root .hfc-home-hero{border-radius:18px;background:linear-gradient(120deg,#174e76,#207d91);box-shadow:0 10px 24px #164c741c}
.hfc-root .hfc-encourage{background:#eef8f5;border-color:#c7e4da;border-radius:16px}
@media(max-width:600px){.hfc-root{padding:12px;border-radius:15px}.hfc-root .hfc-home-panel{padding:16px}.hfc-root .hfc-tabs button{padding:10px 12px}}
/* 1.6.12: type scales with available card width and content length on both faces. */
.hfc-studying>.hfc-deck-stage{container-type:inline-size}
.hfc-root.hfc-studying .hfc-japanese[data-text-size]{max-width:100%;line-height:1.65;font-weight:700}
.hfc-root.hfc-studying .hfc-japanese[data-text-size=word]{font-size:clamp(36px,min(14cqi,14vh),88px)}
.hfc-root.hfc-studying .hfc-japanese[data-text-size=compact]{font-size:clamp(26px,min(7.5cqi,10vh),56px)}
.hfc-root.hfc-studying .hfc-japanese[data-text-size=phrase]{font-size:clamp(24px,min(5cqi,8vh),40px)}
.hfc-root.hfc-studying .hfc-japanese[data-text-size=sentence]{font-size:clamp(21px,min(4.5cqi,6vh),32px)}
.hfc-root.hfc-studying .hfc-japanese[data-text-size=long]{font-size:clamp(20px,3.6cqi,26px);line-height:1.8;text-wrap:pretty}
.hfc-root.hfc-studying .hfc-meaning{font-size:clamp(15px,2.4cqi,19px);line-height:1.75}
.hfc-root.hfc-studying .hfc-detail p{font-size:16px!important;line-height:1.8}
@media(max-width:700px){.hfc-root.hfc-studying .hfc-detail p{font-size:14px!important}}
@media(max-height:500px){.hfc-root.hfc-studying .hfc-japanese[data-text-size=word]{font-size:clamp(32px,12vh,58px)}.hfc-root.hfc-studying .hfc-japanese[data-text-size=compact]{font-size:clamp(26px,9vh,40px)}}
