.mac-check-page { color:#252a2d; background:#fff; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif; line-height:1.7; color-scheme:light; }
.mac-check-page .grid-container { max-width:1200px; }
.mac-page-header { padding-top:20px; padding-bottom:12px; }
.mac-page-header h1 { font-size:clamp(24px,3vw,32px); font-weight:600; margin:18px 0 10px; }
.mac-page-header p { margin-bottom:12px; }
.mac-check-page h2 { font-size:22px; font-weight:600; }
.mac-check-page h3 { font-size:17px; font-weight:600; margin-top:24px; }
.mac-check-page a { color:#1779ba; }
.mac-check-page .button { margin:0; border-radius:3px; font-size:14px; line-height:1.4; }
.mac-check-page button:focus-visible, .mac-check-page summary:focus-visible { outline:3px solid #1779ba; outline-offset:3px; }
.mac-tool { border:1px solid #cbd0d4; padding:20px; border-radius:5px; }
.mac-toolbar { display:flex; justify-content:space-between; align-items:end; gap:16px; flex-wrap:wrap; }
.mac-toolbar fieldset { border:0; margin:0; padding:0; }
.mac-toolbar legend { font-size:14px; color:#555; margin:0 0 6px; }
.mac-toolbar label { display:inline-flex; align-items:center; gap:7px; margin:0 22px 0 0; font-size:16px; }
.mac-toolbar input { margin:0; }
.mac-status-line { display:flex; justify-content:space-between; flex-wrap:wrap; gap:6px 20px; margin:18px 0 10px; font-size:14px; }
#keyboardSurface { background:#f1f2f3; border:2px solid #d7dbde; border-radius:6px; padding:16px; overflow-x:auto; }
#keyboardSurface:focus { outline:2px solid #1779ba; outline-offset:3px; }
#keyboard { display:grid; grid-template-columns:repeat(60,minmax(0,1fr)); grid-template-rows:34px repeat(5,58px); gap:7px 0; min-width:730px; }
.mac-key { position:relative; display:flex; align-items:center; justify-content:center; min-width:0; margin:0 3px; padding:2px; border:1px solid #b9bfc4; border-bottom-width:3px; border-radius:5px; background:#fff; color:#30363a; font-size:14px; line-height:1.25; text-align:center; overflow-wrap:anywhere; }
.mac-key small { position:absolute; bottom:3px; right:5px; font-size:11px; color:#515b63; }
.mac-key.checked { background:#dcefdc; border-color:#6f9f73; }
.mac-key.pressed { background:#1779ba; border-color:#125f91; color:white; }
.mac-key.pressed small { color:white; }
.mac-key.suspect { border-color:#bb761a; box-shadow:inset 0 0 0 1px #bb761a; }
.mac-key.system { color:#70767b; background:transparent; border-style:dashed; border-width:1px; font-size:12px; }
.mac-key.upper, .mac-key.lower { height:27px; font-size:14px; }
.mac-key.lower { align-self:end; }
.mac-key.upper small, .mac-key.lower small { font-size:10px; bottom:1px; right:3px; }
.mac-legend { display:flex; flex-wrap:wrap; gap:6px 20px; margin:14px 0 6px; font-size:13px; }
.mac-legend span { display:inline-flex; align-items:center; gap:6px; }
.sample { display:inline-block; width:12px; height:12px; border:1px solid #6f9f73; border-radius:2px; }
.sample.checked { background:#dcefdc; }.sample.pressed { background:#1779ba; border-color:#1779ba; }.sample.suspect { border-color:#bb761a; background:#fff1dc; }
.mac-small { font-size:13px; color:#555e65; margin:8px 0 12px; }
.mac-readings { display:flex; flex-wrap:wrap; border-top:1px solid #ddd; border-bottom:1px solid #ddd; padding:14px 0; gap:12px 36px; margin:16px 0 8px; }
.mac-readings div { min-width:130px; }.mac-readings dt { font-size:13px; color:#555e65; font-weight:400; }.mac-readings dd { font-size:20px; font-weight:600; margin:0; overflow-wrap:anywhere; }
.mac-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:16px 0; }.mac-actions span { font-size:13px; }
.mac-details { border-top:1px solid #ddd; padding-top:12px; font-size:14px; }.mac-details summary { cursor:pointer; }.mac-details p { margin:10px 0; }
.mac-log { max-height:180px; overflow:auto; font-size:13px; font-family:monospace; }
.mac-section { margin:32px 0; padding-top:20px; border-top:1px solid #ddd; }.mac-section p { max-width:900px; }
.mac-check-page #imeSample { max-width:760px; color:#252a2d; background:#fff; }
.mac-ad { margin:28px 0; text-align:center; color:#777; font-size:12px; }
.mac-ad .adsbygoogle { min-height:100px; }
.mac-complete { padding:8px 0; color:#286331; font-weight:600; }.mac-complete[hidden] { display:none; }
.mac-check-page footer { border-top:1px solid #ddd; margin-top:32px; padding:24px 0; }
.mac-scroll-hint { display:none; }
@media(max-width:850px) { .mac-scroll-hint { display:block; } }
@media(max-width:640px) { .mac-tool { padding:12px; } #keyboardSurface { padding:10px; } .mac-toolbar { gap:12px; } .mac-readings { gap:12px; } .mac-readings div { flex:1 1 44%; min-width:0; } .mac-page-header { padding-top:14px; } }
