/* Phase 3: solid grouped surfaces and native type, adapted from the iOS kit. */
html body #ja24Dictionary.ja41-compact{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif!important;box-sizing:border-box!important;border:1px solid var(--dict-edge)!important;border-radius:18px!important;box-shadow:0 12px 36px #122f4c29!important}
html body #ja24Dictionary.ja41-compact>.ja24-dict-head{min-height:62px!important;max-height:62px!important;height:62px!important;grid-template-columns:52px minmax(0,1fr) 36px!important;gap:8px!important;padding:10px!important;background:var(--dict-end,#19334c)!important;box-shadow:none!important;border-bottom:1px solid #ffffff2b!important}
html body #ja24Dictionary.ja41-compact header h3{font:650 14px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:0!important;text-shadow:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html body #ja24Dictionary.ja41-compact form{height:38px!important;min-height:38px!important;border:1px solid #b9c9db!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important;overflow:hidden}
html body #ja24Dictionary.ja41-compact form input{height:36px!important;font-size:16px!important;font-weight:400!important;color:#1c3553!important;-webkit-text-fill-color:#1c3553!important;padding:6px 8px!important}
html body #ja24Dictionary.ja41-compact form button{height:36px!important;width:34px!important;min-width:34px!important;padding:6px!important;display:grid!important;place-items:center;background:#fff!important;box-shadow:none!important;border:0!important}
html body #ja24Dictionary.ja41-compact .ja24-x{display:grid!important;place-items:center!important;min-width:36px!important;width:36px!important;height:36px!important;min-height:36px!important;background:#b4233e!important;color:#fff!important;border:1px solid #ffffff75!important;border-radius:10px!important;box-shadow:none!important;padding:7px!important}
html body #ja24Dictionary.ja41-compact .ja24-x img{filter:brightness(0) invert(1);width:20px;height:20px}
html body #ja24Dictionary.ja41-compact>.ja24-dict-results{background:var(--dict-light,#f2f2f7)!important;background-image:none!important;padding:9px!important;scrollbar-gutter:stable}
html body #ja24Dictionary.ja41-compact .ja25-word-card{padding:13px 11px!important;gap:10px!important;margin-bottom:9px!important;background:#fff!important;border:1px solid var(--dict-edge)!important;border-radius:13px!important;box-shadow:none!important}
html body #ja24Dictionary.ja41-compact .ja25-card-copy strong{font-size:14px!important;font-weight:600!important;line-height:1.6!important}
html body #ja24Dictionary.ja41-compact .ja25-card-copy>span:not(.ja25-badges),html body #ja24Dictionary.ja41-compact .ja25-card-copy small{font-size:12px!important;line-height:1.6!important}
html body #ja24Dictionary.ja41-compact .ja25-card-kanji{font-size:27px!important;line-height:1.7!important;max-width:37%!important}
html body #ja24Dictionary.ja41-compact .ja25-detail-card{background:#fff!important;padding:14px!important;border:1px solid var(--dict-edge)!important;border-radius:13px!important;box-shadow:none!important;margin-top:10px!important}
html body #ja24Dictionary.ja41-compact .ja25-detail-card :is(p,li){font-size:14px!important;line-height:1.8!important}
html body #ja24Dictionary.ja41-compact .ja25-definition{font-size:15px!important;line-height:1.75!important;border-radius:11px!important;padding:12px!important}
html body #ja24Dictionary.ja41-compact .ja25-word-hero{background:var(--dict-end)!important;color:#fff!important;box-shadow:none!important;border-radius:12px!important;margin:0 0 12px!important;padding:14px!important}
html body #ja24Dictionary.ja41-compact .ja25-word-hero :is(b,i,small){color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important}
html body #ja24Dictionary.ja41-compact .ja25-word-hero>div>span:first-child{color:#fff!important;font-size:30px!important;line-height:1.6!important}
html body #ja24Dictionary.ja41-compact .ja25-example{background:#fff!important;border-radius:11px!important;padding:12px!important;margin-bottom:10px!important}
html body #ja24Dictionary.ja41-compact .ja25-example p{font-size:16px!important;line-height:2.1!important}html body #ja24Dictionary.ja41-compact .ja25-example>strong{font-size:13px!important;font-weight:500!important;line-height:1.7!important}html body #ja24Dictionary.ja41-compact .ja25-example rt{font-size:11px!important}
html body #ja24Dictionary.ja41-compact .ja25-segment button{font-size:12px!important;min-height:36px!important;padding:7px 10px!important;box-shadow:none!important}
html body #ja24Dictionary.ja41-compact>footer{font-size:11px!important;padding:9px 10px!important;border-top:1px solid var(--dict-edge)!important;background:var(--dict-soft)!important;min-height:43px!important}
html body #ja24Dictionary .ja41-dict-settings>summary{list-style:none;width:34px;height:34px;min-height:34px;display:grid;place-items:center;background:#fff;border:1px solid var(--dict-edge);border-radius:9px;padding:6px;box-sizing:border-box}html body #ja24Dictionary .ja41-dict-settings>summary::-webkit-details-marker{display:none}html body #ja24Dictionary .ja41-dict-settings img{width:20px;height:20px}
html body #ja24Dictionary .ja41-dict-settings .ja38-dict-tools{box-shadow:0 8px 22px #122f4c26!important;border:1px solid var(--dict-edge)!important;border-radius:12px!important;padding:12px!important;gap:10px!important}html body #ja24Dictionary .ja38-dict-tools :is(button,select){min-height:38px!important;font-size:13px!important}
html body #ja24Dictionary :is(button,input,summary):focus-visible{outline:3px solid #005fcc!important;outline-offset:2px}
/* Keep existing season/schedule logic and the approved calendar footprint. */
html body .ja-calendar-widget{background:#fff!important;background-image:none!important;border:1px solid #d6deea!important;border-radius:18px!important;box-shadow:none!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;color:#1c3553!important}
html body #jaCalendarMonth{font-size:18px!important;font-weight:650!important;color:#1c3553!important;-webkit-text-fill-color:#1c3553!important}
html body :is(#jaCalendarPrev,#jaCalendarNext,#jaCalendarToday){background:#f2f3f7!important;border:1px solid #d6deea!important;color:#0066cc!important;min-width:34px!important;min-height:34px!important;border-radius:10px!important;box-shadow:none!important;display:grid;place-items:center;padding:6px!important}
html body :is(#jaCalendarPrev,#jaCalendarNext):disabled{background:#f7f8fb!important;color:#68788b!important;opacity:.65!important}
html body #jaCalendarDays{gap:4px!important}html body #jaCalendarDays .ja-day{background:#fff!important;border:1px solid transparent!important;box-shadow:none!important;border-radius:11px!important;color:#263a55!important;transition:background .12s}
html body #jaCalendarDays .ja-day>span:first-child{font-size:14px!important;font-weight:550!important;color:inherit!important}
html body #jaCalendarDays .ja-day:hover{background:#eef4fe!important;border-color:#96b8e1!important}
html body #jaCalendarDays .ja-day.selected{background:#0066cc!important;color:#fff!important;border-color:#0066cc!important;box-shadow:none!important}
html body #jaCalendarDays .ja-day.today:not(.selected){border-color:#0066cc!important;color:#0056ad!important}
html body #jaCalendarDays .ja-day :is(i,.n3,.n2){font-size:9px!important;line-height:1.35!important;border-radius:4px!important;font-style:normal;box-shadow:none!important}
html body #jaCalendarDays .ja-day.selected i{background:#fff!important;color:#17456d!important}
html body #jaCalendarDays :focus-visible{outline:3px solid #005fcc!important;outline-offset:1px}
html body #jaCalendarSelection{background:#f2f4f8!important;color:#243d5d!important;border-radius:11px!important;font-size:12px!important;line-height:1.6!important}
@media(max-width:700px){html body #ja24Dictionary.ja41-compact>.ja24-dict-head{grid-template-columns:41px minmax(0,1fr) 34px!important;height:58px!important;min-height:58px!important;max-height:58px!important;padding:8px!important;gap:6px!important}html body #ja24Dictionary.ja41-compact header h3{font-size:12px!important}html body #ja24Dictionary.ja41-compact .ja24-x{width:34px!important;min-width:34px!important;height:36px!important}html body #ja24Dictionary.ja41-compact .ja25-card-kanji{font-size:24px!important}html body #ja24Dictionary.ja41-compact .ja25-card-copy strong{font-size:13px!important}html body #ja24Dictionary.ja41-compact .ja25-card-copy>span:not(.ja25-badges){font-size:12px!important}html body #ja24Dictionary.ja41-compact .ja25-example p{font-size:15px!important}html body #ja24Dictionary.ja41-compact .ja25-detail-card{padding:11px!important}html body #ja24Dictionary.ja41-compact>.ja24-dict-results{padding:7px!important}html body #ja24Dictionary.ja41-compact .ja25-definition{font-size:14px!important}}
@media(prefers-reduced-motion:reduce){html body #jaCalendarDays .ja-day{transition:none!important}}

html body #ja24Dictionary{--dict-accent:#0066cc}html body #ja24Dictionary[data-theme=teal]{--dict-accent:#086874}html body #ja24Dictionary[data-theme=violet]{--dict-accent:#663399}html body #ja24Dictionary[data-theme=midnight]{--dict-accent:#805414}html body #ja24Dictionary[data-theme=sakura]{--dict-accent:#9d3155}html body #ja24Dictionary[data-theme=sage]{--dict-accent:#285f45}
