:root{
    --bg:#07101f;
    --bg2:#0b1527;
    --surface:rgba(16,29,49,.78);
    --surface-solid:#101d31;
    --card:#111f35;
    --line:rgba(255,255,255,.09);
    --text:#f7f9fc;
    --muted:#9dadc3;
    --accent:#55e6c1;
    --accent2:#5fa8ff;
    --danger:#ff6b7a;
    --shadow:0 24px 70px rgba(0,0,0,.32);
    --radius:24px;
    --max:1120px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
    margin:0;
    min-height:100vh;
    background:
        radial-gradient(circle at 15% -10%,rgba(95,168,255,.18),transparent 32rem),
        radial-gradient(circle at 90% 15%,rgba(85,230,193,.12),transparent 28rem),
        linear-gradient(180deg,var(--bg),#091322 48%,#07101f);
    color:var(--text);
    font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP","Hiragino Sans",Meiryo,sans-serif;
    line-height:1.6;
}
button,input{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
a{color:inherit}
.ambient{position:fixed;inset:auto;pointer-events:none;filter:blur(100px);opacity:.18;z-index:-1}
.ambient-a{width:320px;height:320px;background:#5fa8ff;top:18vh;left:-140px;border-radius:50%}
.ambient-b{width:300px;height:300px;background:#55e6c1;right:-120px;top:55vh;border-radius:50%}
.site-header{
    width:min(calc(100% - 32px),var(--max));
    height:76px;margin:auto;display:flex;align-items:center;justify-content:space-between;
}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.brand-mark{
    width:38px;height:38px;border-radius:12px;display:grid;place-items:center;
    background:linear-gradient(135deg,var(--accent),var(--accent2));color:#04111b;font-weight:900;font-size:22px;
    box-shadow:0 8px 30px rgba(85,230,193,.18)
}
.brand strong{font-size:18px;letter-spacing:.02em}
.brand small{color:var(--muted);font-weight:700;margin-left:2px}
.header-nav{display:flex;gap:20px}
.header-nav a{color:var(--muted);font-size:13px;text-decoration:none}
.header-nav a:hover{color:var(--text)}
main{width:100%}
.hero{
    width:min(calc(100% - 32px),var(--max));margin:56px auto 28px;padding:54px 56px 44px;
    border:1px solid var(--line);border-radius:34px;
    background:linear-gradient(145deg,rgba(18,34,58,.88),rgba(9,21,39,.88));
    box-shadow:var(--shadow);position:relative;overflow:hidden;
}
.hero:after{
    content:"";position:absolute;width:360px;height:360px;border-radius:50%;
    background:radial-gradient(circle,rgba(85,230,193,.16),transparent 66%);
    right:-120px;top:-160px;pointer-events:none
}
.hero-compact{margin-top:24px;padding-top:36px;padding-bottom:34px}
.eyebrow,.section-kicker{
    color:var(--accent);font-size:11px;font-weight:800;letter-spacing:.18em;text-transform:uppercase
}
.eyebrow{display:flex;gap:10px;align-items:center}
.eyebrow span{width:24px;height:1px;background:var(--accent)}
.hero h1{font-size:clamp(34px,6vw,68px);letter-spacing:-.045em;line-height:1.1;margin:18px 0 16px;max-width:830px}
.hero-compact h1{font-size:clamp(30px,5vw,50px)}
.hero-copy{color:var(--muted);font-size:clamp(14px,2vw,18px);margin:0 0 30px;max-width:720px}
.search-shell{
    display:flex;align-items:center;gap:10px;padding:8px 8px 8px 18px;max-width:820px;
    background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);border-radius:20px;
    backdrop-filter:blur(18px);transition:.2s ease
}
.search-shell:focus-within{border-color:rgba(85,230,193,.65);box-shadow:0 0 0 4px rgba(85,230,193,.08)}
.search-icon{color:var(--muted);font-size:24px}
.search-shell input{flex:1;min-width:0;background:none;border:0;outline:none;color:white;font-size:18px;padding:10px 4px}
.search-shell input::placeholder{color:#73849c}
.primary{
    border:0;background:linear-gradient(135deg,var(--accent),#65b8ff);color:#04131b;font-weight:900;
    border-radius:14px;cursor:pointer;box-shadow:0 10px 30px rgba(85,230,193,.15)
}
.primary:hover{filter:brightness(1.05)}
.search-submit{padding:14px 24px}
.hero-actions{display:flex;align-items:center;gap:16px;margin-top:18px;flex-wrap:wrap}
.camera-action{
    border:1px solid rgba(95,168,255,.35);background:rgba(95,168,255,.09);color:var(--text);
    border-radius:17px;padding:10px 15px 10px 10px;display:flex;align-items:center;gap:10px;cursor:pointer;text-align:left
}
.camera-action-icon{width:34px;height:34px;display:grid;place-items:center;background:rgba(95,168,255,.18);border-radius:10px}
.camera-action strong{display:block;font-size:13px}
.camera-action small{display:block;color:var(--muted);font-size:10px;margin-top:-2px}
.quick-examples{display:flex;gap:7px;flex-wrap:wrap}
.quick-examples button{
    color:#aebdd0;border:1px solid var(--line);background:rgba(255,255,255,.04);
    border-radius:999px;padding:8px 11px;cursor:pointer;font-size:12px
}
.quick-examples button:hover{border-color:rgba(85,230,193,.38);color:var(--text)}
.category-section,.usecase-section,.utility-section,.local-history-section,.results-wrap{
    width:min(calc(100% - 32px),var(--max));margin:74px auto
}
.section-heading{margin-bottom:24px}
.section-heading h2,.results-heading h2{font-size:clamp(28px,4vw,42px);letter-spacing:-.03em;margin:6px 0}
.section-heading p{margin:0;color:var(--muted)}
.section-heading.compact{margin-bottom:14px}
.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.category-card{
    min-height:145px;padding:20px;border:1px solid var(--line);border-radius:20px;
    background:linear-gradient(155deg,rgba(255,255,255,.055),rgba(255,255,255,.025));
    color:var(--text);text-align:left;cursor:pointer;transition:.2s ease
}
.category-card:hover{transform:translateY(-3px);border-color:rgba(85,230,193,.32);background:rgba(255,255,255,.07)}
.category-card>span{font-size:25px;display:block;margin-bottom:18px}
.category-card strong{font-size:17px;display:block}
.category-card small{color:var(--muted);font-size:11px}
.usecase-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.usecase-card{
    text-decoration:none;border:1px solid var(--line);background:rgba(255,255,255,.035);
    border-radius:22px;overflow:hidden;transition:.2s ease
}
.usecase-card:hover{transform:translateY(-3px);border-color:rgba(95,168,255,.35)}
.usecase-image{height:150px;background:#0c182a;display:grid;place-items:center;overflow:hidden}
.usecase-image img{width:100%;height:100%;object-fit:contain;padding:16px}
.usecase-card>div:last-child{padding:17px}
.usecase-card strong{display:block;font-size:14px;min-height:44px}
.usecase-card span{display:block;color:var(--accent);font-size:12px;margin-top:10px}
.utility-section{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.utility-card{
    display:flex;gap:15px;align-items:flex-start;padding:20px;border:1px solid var(--line);
    border-radius:20px;background:rgba(255,255,255,.035)
}
.utility-card>span{font-size:26px;width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:rgba(85,230,193,.08);color:var(--accent)}
.utility-card strong{font-size:14px}
.utility-card p{font-size:11px;color:var(--muted);margin:4px 0 0}
.recent-list{display:flex;gap:8px;flex-wrap:wrap}
.recent-list a{padding:8px 12px;border:1px solid var(--line);border-radius:999px;text-decoration:none;color:#c8d4e4;font-size:12px}
.muted{color:var(--muted);font-size:13px}
.results-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:26px}
.ghost-button{
    border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--text);
    padding:10px 14px;border-radius:12px;cursor:pointer
}
.result-group{margin:30px 0}
.result-group-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.result-group-heading h3{font-size:13px;color:#c1cee0;margin:0}
.fraction-toggle{
    display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:6px 10px;
    border:1px solid rgba(0,217,255,.28);border-radius:9px;background:rgba(0,217,255,.055);
    color:#9fdff0;font:inherit;font-size:11px;cursor:pointer;transition:border-color .18s ease,background .18s ease,color .18s ease
}
.fraction-toggle span{font-size:13px;line-height:1}.fraction-toggle b{font:inherit;font-weight:700;white-space:nowrap}
.fraction-toggle:hover{border-color:var(--accent);color:#d9f8ff}
.fraction-toggle[aria-pressed="true"]{border-color:rgba(184,61,255,.52);background:rgba(184,61,255,.11);color:#e8c4ff}
.result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.result-card{
    min-width:0;border:1px solid var(--line);border-radius:20px;padding:18px;
    background:linear-gradient(155deg,rgba(255,255,255,.055),rgba(255,255,255,.025));
    overflow:hidden
}
.primary-card{border-color:rgba(85,230,193,.42);background:linear-gradient(145deg,rgba(85,230,193,.10),rgba(95,168,255,.06))}
.result-top{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:11px;margin-bottom:14px}
.result-icon{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:rgba(255,255,255,.06);color:var(--accent);font-size:15px}
.result-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.result-value{display:flex;align-items:baseline;gap:7px;min-width:0}
.result-value strong{font-size:clamp(25px,3.2vw,36px);letter-spacing:-.035em;overflow-wrap:anywhere}
.result-value span{font-size:13px;color:#c5d1e0}
.result-card p{font-size:10px;color:var(--muted);margin:10px 0 0}
.result-image{
    display:block;width:100%;height:auto;aspect-ratio:5/3;object-fit:cover;
    background:rgba(0,0,0,.12);border-radius:14px;margin-bottom:14px
}
.notice{padding:18px;border-radius:16px;border:1px solid var(--line)}
.notice.error{border-color:rgba(255,107,122,.35);background:rgba(255,107,122,.08)}
.new-search-mobile{display:none;text-align:center;margin-top:28px}
.new-search-mobile a{color:var(--accent)}
.site-footer{
    width:min(calc(100% - 32px),var(--max));margin:110px auto 30px;padding:30px 0 10px;
    border-top:1px solid var(--line);color:var(--muted);font-size:12px
}
.site-footer strong{color:var(--text)}
.site-footer p{margin:4px 0}
.footer-links{display:flex;gap:16px;margin:16px 0}
.footer-links a{text-decoration:none}
.disclaimer{max-width:760px}
.camera-sheet{
    position:fixed;inset:0;background:rgba(1,6,14,.72);backdrop-filter:blur(14px);z-index:50;
    display:grid;place-items:end center;padding:18px
}
.camera-sheet[hidden]{display:none}
.camera-dialog{
    width:min(100%,560px);max-height:92vh;overflow:auto;background:#101d31;border:1px solid var(--line);
    border-radius:28px;padding:28px;box-shadow:var(--shadow);position:relative
}
.sheet-close{position:absolute;right:15px;top:15px;width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:#14243b;color:white;font-size:24px;cursor:pointer}
.sheet-icon{font-size:32px}
.camera-dialog h2{font-size:28px;margin:8px 0 5px}
.camera-dialog>p{color:var(--muted);font-size:13px}
.wide{width:100%;padding:14px}
.ocr-preview{width:100%;max-height:220px;object-fit:contain;border-radius:15px;background:#08111e;margin:18px 0 10px}
.ocr-progress{height:5px;background:#23344a;border-radius:999px;overflow:hidden}
.ocr-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--accent),var(--accent2));transition:width .2s}
#ocrStatus{font-size:12px!important}
.field-label{display:block;color:var(--muted);font-size:11px;margin:14px 0 6px}
.ocr-text{width:100%;border:1px solid var(--line);background:#0b1728;color:white;border-radius:13px;padding:13px;outline:none;margin-bottom:10px}
.candidate-list{display:flex;flex-wrap:wrap;gap:7px}
.candidate-list button{border:1px solid rgba(85,230,193,.3);background:rgba(85,230,193,.08);color:var(--text);border-radius:999px;padding:7px 10px;cursor:pointer;font-size:12px}
.sheet-note{font-size:10px!important}
@media(max-width:900px){
    .category-grid{grid-template-columns:repeat(2,1fr)}
    .result-grid{grid-template-columns:repeat(2,1fr)}
    .usecase-grid{grid-template-columns:repeat(2,1fr)}
    .utility-section{grid-template-columns:1fr}
}
@media(max-width:640px){
    .site-header{height:64px}
    .header-nav{display:none}
    .hero{width:calc(100% - 20px);margin:18px auto 18px;padding:30px 18px 22px;border-radius:24px}
    .hero h1{font-size:36px}
    .hero-copy{font-size:13px;margin-bottom:20px}
    .search-shell{padding:6px 6px 6px 12px;border-radius:16px}
    .search-shell input{font-size:16px;padding:8px 2px}
    .search-icon{display:none}
    .search-submit{padding:12px 16px}
    .hero-actions{display:block}
    .camera-action{width:100%;justify-content:flex-start;margin-bottom:12px}
    .quick-examples{flex-wrap:nowrap;overflow-x:auto;padding-bottom:3px}
    .quick-examples button{flex:0 0 auto}
    .category-section,.usecase-section,.utility-section,.local-history-section,.results-wrap{width:calc(100% - 20px);margin:48px auto}
    .category-grid{gap:8px}
    .category-card{min-height:122px;padding:15px;border-radius:16px}
    .category-card>span{margin-bottom:10px}
    .usecase-grid{grid-template-columns:1fr 1fr;gap:8px}
    .usecase-image{height:110px}
    .usecase-card>div:last-child{padding:12px}
    .usecase-card strong{font-size:12px}
    .results-wrap{margin-top:34px}
    .results-heading{align-items:center}
    .result-grid{grid-template-columns:1fr;gap:9px}
    .result-card{border-radius:17px;padding:16px}
    .result-value strong{font-size:30px}
    .result-image{height:100px}
    .new-search-mobile{display:block}
    .camera-sheet{padding:0;place-items:end stretch}
    .camera-dialog{width:100%;border-radius:26px 26px 0 0;padding:24px 18px calc(18px + env(safe-area-inset-bottom))}
    .site-footer{width:calc(100% - 24px);margin-top:70px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}


/* =========================================================
   ROI CAMERA v4
   The rest of the site intentionally keeps the original v2 design.
   ========================================================= */
.roi-v3-dialog{
    width:min(100%,640px);
}
.roi-version{
    display:inline-flex;
    margin-bottom:4px;
    padding:3px 8px;
    border:1px solid rgba(85,230,193,.28);
    background:rgba(85,230,193,.07);
    border-radius:999px;
    color:var(--accent);
    font-size:9px;
    font-weight:900;
    letter-spacing:.12em;
}
.roi-description{
    text-align:left!important;
    line-height:1.55;
}
.roi-description strong{color:var(--text)}
.roi-stage{
    position:relative;
    width:100%;
    height:390px;
    margin:14px 0 8px;
    overflow:hidden;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.12);
    background:#030810;
    user-select:none;
    -webkit-user-select:none;
    touch-action:none;
}
.roi-stage video{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    background:#030810;
}
.roi-selection{
    position:absolute;
    z-index:8;
    border:3px solid var(--accent);
    border-radius:13px;
    background:rgba(85,230,193,.035);
    box-shadow:
        0 0 0 9999px rgba(0,0,0,.34),
        0 0 0 1px rgba(0,0,0,.45),
        0 0 28px rgba(85,230,193,.42);
    cursor:move;
    touch-action:none;
}
.roi-selection.is-dragging{
    border-color:#fff;
    box-shadow:
        0 0 0 9999px rgba(0,0,0,.25),
        0 0 0 2px var(--accent),
        0 0 36px rgba(85,230,193,.55);
}
.roi-selection.is-scanning{
    animation:roiPulse .85s ease-in-out infinite alternate;
}
@keyframes roiPulse{
    from{box-shadow:0 0 0 9999px rgba(0,0,0,.34),0 0 16px rgba(85,230,193,.35)}
    to{box-shadow:0 0 0 9999px rgba(0,0,0,.34),0 0 38px rgba(85,230,193,.75)}
}
.roi-label{
    position:absolute;
    left:50%;
    top:-31px;
    transform:translateX(-50%);
    white-space:nowrap;
    border:1px solid rgba(85,230,193,.45);
    background:rgba(5,14,24,.92);
    color:#eafff9;
    border-radius:999px;
    padding:3px 9px;
    font-size:10px;
    font-weight:900;
    pointer-events:none;
}
.roi-handle{
    position:absolute;
    z-index:10;
    width:46px;
    height:46px;
    padding:0;
    border:0;
    background:transparent;
    touch-action:none;
}
.roi-handle:before{
    content:"";
    position:absolute;
    width:21px;
    height:21px;
    border-color:#fff;
    filter:drop-shadow(0 1px 2px rgba(0,0,0,.8));
}
.roi-handle-nw{left:-22px;top:-22px;cursor:nwse-resize}
.roi-handle-nw:before{right:2px;bottom:2px;border-left:4px solid;border-top:4px solid;border-radius:6px 0 0 0}
.roi-handle-ne{right:-22px;top:-22px;cursor:nesw-resize}
.roi-handle-ne:before{left:2px;bottom:2px;border-right:4px solid;border-top:4px solid;border-radius:0 6px 0 0}
.roi-handle-sw{left:-22px;bottom:-22px;cursor:nesw-resize}
.roi-handle-sw:before{right:2px;top:2px;border-left:4px solid;border-bottom:4px solid;border-radius:0 0 0 6px}
.roi-handle-se{right:-22px;bottom:-22px;cursor:nwse-resize}
.roi-handle-se:before{left:2px;top:2px;border-right:4px solid;border-bottom:4px solid;border-radius:0 0 6px 0}
.roi-camera-state{
    position:absolute;
    z-index:12;
    inset:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
    padding:20px;
    text-align:center;
    background:rgba(3,8,16,.84);
}
.roi-camera-state[hidden]{display:none}
.roi-camera-state small{font-size:10px;color:var(--muted)}
.camera-mini-spinner{
    width:27px;
    height:27px;
    border:2px solid rgba(255,255,255,.15);
    border-top-color:var(--accent);
    border-radius:50%;
    animation:roiSpin .8s linear infinite;
    margin-bottom:6px;
}
@keyframes roiSpin{to{transform:rotate(360deg)}}
.roi-warning{
    width:34px;
    height:34px;
    border-radius:50%;
    display:grid;
    place-items:center;
    border:1px solid rgba(255,107,122,.5);
    background:rgba(255,107,122,.12);
    color:#ff8995;
    font-weight:900;
}
.roi-live-values{
    display:flex;
    gap:14px;
    justify-content:center;
    color:var(--muted);
    font-size:9px;
    margin:2px 0 10px;
}
.roi-live-values strong{color:#dce8f5}
.roi-scan-button{
    min-height:50px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
}
.roi-scan-button:disabled{
    opacity:.65;
    cursor:progress;
}
.roi-sub-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-top:9px;
}
.roi-sub-button{
    border:1px solid var(--line);
    background:rgba(255,255,255,.04);
    color:var(--muted);
    border-radius:12px;
    padding:10px;
    font-size:11px;
    cursor:pointer;
}
.roi-sub-button:hover{color:var(--text);border-color:rgba(85,230,193,.3)}
.roi-result-panel{
    margin-top:14px;
    border-top:1px solid var(--line);
    padding-top:14px;
}
.roi-crop-heading{
    display:flex;
    justify-content:space-between;
    align-items:baseline;
    gap:10px;
    margin-bottom:7px;
}
.roi-crop-heading strong{font-size:12px}
.roi-crop-heading small{font-size:9px;color:var(--muted)}
.roi-crop-preview{
    width:100%;
    height:115px!important;
    max-height:115px!important;
    object-fit:contain!important;
    background:#06101b!important;
    border:1px solid var(--line);
    border-radius:12px!important;
    margin:0 0 10px!important;
}
@media(max-width:640px){
    .roi-v3-dialog{
        height:100dvh;
        max-height:100dvh;
        overflow:auto;
        border-radius:0!important;
        padding-top:calc(18px + env(safe-area-inset-top))!important;
    }
    .roi-v3-dialog .sheet-icon{font-size:25px}
    .roi-v3-dialog h2{font-size:22px;margin:5px 0}
    .roi-description{font-size:11px!important;margin:3px 0!important}
    .roi-stage{
        height:50vh;
        min-height:310px;
        max-height:520px;
        margin:10px 0 7px;
    }
    .roi-handle{
        width:52px;
        height:52px;
    }
    .roi-handle-nw{left:-25px;top:-25px}
    .roi-handle-ne{right:-25px;top:-25px}
    .roi-handle-sw{left:-25px;bottom:-25px}
    .roi-handle-se{right:-25px;bottom:-25px}
    .roi-live-values{margin-bottom:7px}
}

.roi-button-spinner{
    width:17px;
    height:17px;
    border:2px solid rgba(4,19,27,.22);
    border-top-color:#04131b;
    border-radius:50%;
    display:inline-block;
    animation:roiButtonSpin .7s linear infinite;
}
@keyframes roiButtonSpin{to{transform:rotate(360deg)}}


/* =========================================================
   PRETTY MATH v1
   Native MathML rendering for fractions, roots and equations.
   ========================================================= */
.math-value{
    display:block;
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    padding:2px 0 5px;
    scrollbar-width:thin;
}
.pretty-math{
    font-family:"STIX Two Math","Cambria Math","Times New Roman",serif;
    font-size:1.13em;
    line-height:1.25;
    color:var(--text);
    white-space:nowrap;
}
.primary-card .pretty-math{
    font-size:1.22em;
}
.pretty-math mfrac{
    font-size:1em;
}
.pretty-math msqrt{
    padding-inline:.05em;
}
.pretty-math mi{
    font-style:italic;
}
.pretty-math mn,
.pretty-math mo{
    font-variant-numeric:lining-nums tabular-nums;
}
.pretty-math .math-annotation{
    font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP","Hiragino Sans",Meiryo,sans-serif;
    font-size:.56em;
    color:var(--muted);
}
.result-card:has(.pretty-math) .result-value{
    min-height:50px;
    align-items:center;
}
.result-card:has(.pretty-math) .result-value > strong{
    font-size:clamp(24px,3vw,34px);
}
@media(max-width:640px){
    .pretty-math{
        font-size:1.05em;
    }
    .primary-card .pretty-math{
        font-size:1.14em;
    }
    .result-card:has(.pretty-math) .result-value{
        min-height:46px;
    }
}

/* =========================================================
   CYBER UI RENEWAL · 2026-08-13
   Existing conversion, OCR and MathML behavior is preserved.
   ========================================================= */
:root{
    --bg:#020817;
    --bg2:#041020;
    --surface:rgba(7,20,38,.88);
    --surface-solid:#071426;
    --card:#0a1728;
    --line:rgba(130,170,220,.20);
    --line-strong:rgba(89,174,255,.42);
    --text:#f5f8ff;
    --muted:#94a6bd;
    --accent:#00d9ff;
    --accent2:#326cff;
    --violet:#7c4dff;
    --magenta:#f238ff;
    --danger:#ff6b7a;
    --shadow:0 22px 68px rgba(0,0,0,.38);
    --glow:0 0 34px rgba(0,217,255,.10);
    --radius:18px;
    --max:1240px;
}
html{scroll-padding-top:88px}
body{
    background:
        radial-gradient(circle at 12% 6%,rgba(14,165,255,.13),transparent 26rem),
        radial-gradient(circle at 84% 18%,rgba(124,77,255,.11),transparent 28rem),
        linear-gradient(180deg,#010612 0%,var(--bg) 46%,#030b18 100%);
    color:var(--text);
    font-family:Inter,"Noto Sans JP","Hiragino Sans","Yu Gothic",Meiryo,sans-serif;
    font-variant-numeric:tabular-nums;
    overflow-x:hidden;
}
body::before{
    content:"";
    position:absolute;
    z-index:-1;
    top:76px;
    left:0;
    width:100%;
    height:430px;
    opacity:.38;
    pointer-events:none;
    background:
        radial-gradient(circle at 14% 62%,rgba(0,217,255,.7) 0 1px,transparent 2px),
        radial-gradient(circle at 32% 30%,rgba(50,108,255,.65) 0 1px,transparent 2px),
        radial-gradient(circle at 63% 55%,rgba(124,77,255,.7) 0 1px,transparent 2px),
        radial-gradient(circle at 88% 24%,rgba(242,56,255,.65) 0 1px,transparent 2px),
        repeating-linear-gradient(16deg,transparent 0 84px,rgba(42,119,219,.07) 85px,transparent 86px);
    mask-image:linear-gradient(to bottom,#000 25%,transparent 100%);
}
button,input,select{font:inherit}
button{color:inherit}
a,button{touch-action:manipulation}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.ambient{filter:blur(110px);opacity:.13}
.ambient-a{background:var(--accent2)}
.ambient-b{background:var(--violet)}
.cyber-panel{
    border:1px solid var(--line);
    border-radius:var(--radius);
    background:linear-gradient(145deg,rgba(10,27,48,.94),rgba(5,16,31,.92));
    box-shadow:var(--shadow),inset 0 1px 0 rgba(255,255,255,.025);
}
.gradient-text{
    background:linear-gradient(95deg,var(--accent),#6da2ff 48%,var(--magenta));
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
}

/* Header */
.site-header{
    width:100%;
    height:74px;
    margin:0;
    position:sticky;
    top:0;
    z-index:40;
    border-bottom:1px solid rgba(130,170,220,.14);
    background:rgba(2,8,23,.88);
    backdrop-filter:blur(18px);
}
.header-inner{
    width:min(calc(100% - 40px),var(--max));
    height:100%;
    margin:auto;
    display:flex;
    align-items:center;
    gap:30px;
}
.brand{gap:10px;flex:0 0 auto}
.brand-logo{width:46px;height:46px;object-fit:contain;filter:drop-shadow(0 0 12px rgba(0,217,255,.20))}
.brand-name{display:flex;align-items:baseline;white-space:nowrap;letter-spacing:.015em}
.brand-name strong{font-size:20px}
.brand-name>span{font-size:20px;font-weight:800;background:linear-gradient(90deg,#74a7ff,var(--magenta));-webkit-background-clip:text;background-clip:text;color:transparent}
.header-nav{display:flex;align-items:center;gap:26px;margin-left:auto}
.header-nav a{font-size:13px;color:#ced8e7;text-decoration:none;white-space:nowrap}
.header-nav a:hover{color:var(--accent)}
.header-tools{display:flex;align-items:center;gap:9px}
.header-tool,.header-camera{
    min-height:38px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.025);
    color:#d9e3f0;text-decoration:none;font-size:12px;display:flex;align-items:center;gap:7px;padding:0 13px;cursor:pointer
}
.header-camera{display:none;width:38px;padding:0;justify-content:center}
.menu-toggle{display:none;background:none;border:0;padding:8px;cursor:pointer}
.menu-toggle span{display:block;width:20px;height:2px;margin:4px;background:#dbe8f7;border-radius:2px}

/* Hero and smart search */
.hero{
    width:min(calc(100% - 40px),var(--max));
    margin:0 auto;
    padding:54px 8px 30px;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    overflow:visible;
}
.hero::after{display:none}
.hero-grid{display:grid;grid-template-columns:minmax(0,1fr) 350px;align-items:center;gap:70px}
.hero-content{min-width:0}
.eyebrow{color:#76dfff;font-size:10px;letter-spacing:.2em}
.eyebrow span{background:linear-gradient(90deg,var(--accent),var(--violet))}
.hero h1,.hero-compact h1{
    max-width:880px;
    margin:16px 0 14px;
    font-size:clamp(34px,4vw,52px);
    line-height:1.18;
    letter-spacing:-.04em;
}
.hero-copy{margin:0;color:#b4c2d4;font-size:15px;line-height:1.9}
.hero-points{display:flex;gap:34px;margin-top:22px;color:#c7d4e5;font-size:12px;font-weight:700}
.hero-points span{display:flex;align-items:center;gap:7px}
.hero-points b{width:28px;height:28px;display:grid;place-items:center;border:1px solid rgba(0,217,255,.22);border-radius:50%;color:var(--accent);background:rgba(0,217,255,.055)}
.install-card{
    position:relative;
    min-height:172px;
    padding:22px 20px;
    display:grid;
    grid-template-columns:54px 1fr;
    align-items:center;
    gap:16px;
    border:1px solid transparent;
    border-radius:14px;
    background:linear-gradient(#081427,#081427) padding-box,linear-gradient(135deg,var(--accent),var(--violet),var(--magenta)) border-box;
    box-shadow:0 0 36px rgba(124,77,255,.14);
}
.install-card[hidden]{display:none}
.install-card-icon{width:46px;height:66px;border:2px solid #dcecff;border-radius:9px;display:grid;place-items:center;color:var(--accent);font-size:28px;box-shadow:inset 0 0 14px rgba(0,217,255,.08)}
.install-card strong{display:block;font-size:14px;margin-bottom:5px}
.install-card p{margin:0 0 11px;color:#bdc9d9;font-size:11px;line-height:1.55}
.install-button{width:100%;border:0;border-radius:999px;padding:9px 12px;background:linear-gradient(100deg,#12c9ed,var(--violet),#c337ff);font-weight:800;font-size:12px;cursor:pointer;box-shadow:0 7px 24px rgba(124,77,255,.26)}
.install-button:disabled{cursor:default;opacity:.62;box-shadow:none}
.install-close{position:absolute;right:10px;top:7px;border:0;background:transparent;font-size:21px;cursor:pointer;color:#e8eef8}
.install-help{display:block;min-height:1.45em;margin-top:7px;color:#91a4bc;font-size:9px;line-height:1.45}
.smart-entry{margin-top:34px}
.smart-entry-label{display:block;margin:0 0 8px;color:#92a7c0;font-size:11px;font-weight:700}
.search-shell{
    width:100%;max-width:none;min-height:66px;
    padding:7px 7px 7px 20px;
    gap:10px;
    border:1px solid transparent;
    border-radius:16px;
    background:linear-gradient(rgba(4,16,32,.96),rgba(4,16,32,.96)) padding-box,linear-gradient(100deg,var(--accent),rgba(50,108,255,.9),var(--magenta)) border-box;
    box-shadow:0 0 28px rgba(50,108,255,.12),inset 0 0 24px rgba(0,217,255,.025);
}
.search-shell:focus-within{border-color:transparent;box-shadow:0 0 0 3px rgba(0,217,255,.11),0 0 36px rgba(50,108,255,.17)}
.search-shell input{font-size:19px;padding:9px 4px}
.search-shell input::placeholder{color:#6f829c}
.search-icon{color:var(--accent)}
.search-submit{height:50px;padding:0 27px;display:flex;align-items:center;gap:8px;border-radius:12px;background:linear-gradient(105deg,#0bbfe8,var(--accent2) 48%,#c337ff);color:white;box-shadow:0 7px 26px rgba(50,108,255,.25)}
.search-clear{border:0;background:transparent;color:#b8c4d4;font-size:25px;cursor:pointer;padding:0 8px}
.hero-actions{align-items:flex-start;margin-top:13px;gap:18px}
.camera-action{flex:0 0 auto;border-color:rgba(0,217,255,.35);background:rgba(0,217,255,.055);border-radius:12px;padding:8px 13px}
.camera-action:hover{border-color:var(--accent);background:rgba(0,217,255,.09)}
.camera-action-icon{width:30px;height:30px;border-radius:8px;background:rgba(0,217,255,.11);color:var(--accent)}
.camera-action strong{font-size:11px}.camera-action small{font-size:9px}
.example-wrap{min-width:0;display:flex;align-items:center;gap:10px;padding-top:5px}
.example-wrap>span{flex:0 0 auto;color:#8698b0;font-size:10px}
.quick-examples{flex-wrap:wrap;overflow-x:visible;padding:1px 0 4px}
.quick-examples button{flex:0 0 auto;padding:5px 10px;border-color:rgba(89,174,255,.25);background:rgba(7,24,44,.72);font-size:10px}
.quick-examples button:hover{border-color:var(--accent);color:white}
.hero-results{padding-top:42px;text-align:center}
.hero-results .hero-grid{display:block}.hero-results .hero-content{max-width:1160px;margin:auto}
.hero-results h1{margin-left:auto;margin-right:auto;font-size:clamp(30px,3vw,42px)}
.hero-results .hero-copy{font-size:13px}
.smart-entry-results{width:min(100%,900px);margin:24px auto 0;text-align:left}
.smart-entry-results .hero-actions{justify-content:center}

/* Main converter */
.converter-layout{
    width:min(calc(100% - 40px),var(--max));
    margin:16px auto 0;
    display:grid;
    grid-template-columns:minmax(0,1fr) 252px;
    gap:14px;
    align-items:stretch;
}
.converter-card{padding:0 20px 16px}
.converter-tabs{display:flex;gap:5px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.converter-tabs::-webkit-scrollbar{display:none}
.converter-tab{
    flex:1 0 auto;min-width:88px;height:58px;padding:0 10px;position:relative;border:0;background:transparent;color:#a9b7c9;font-size:12px;font-weight:700;cursor:pointer
}
.converter-tab span{margin-right:7px;color:#bbc9d9;font-size:16px}
.converter-tab::after{content:"";position:absolute;left:10px;right:10px;bottom:-1px;height:2px;border-radius:2px;background:transparent}
.converter-tab.is-active,.converter-tab[aria-selected="true"]{color:white;background:linear-gradient(180deg,transparent,rgba(0,217,255,.055))}
.converter-tab.is-active span{color:var(--accent)}
.converter-tab.is-active::after{background:var(--accent);box-shadow:0 0 12px rgba(0,217,255,.65)}
.converter-fields{display:grid;grid-template-columns:minmax(0,1fr) 58px minmax(0,1fr);gap:14px;align-items:end;padding:20px 0 14px}
.converter-field label{display:block;margin:0 0 7px;color:#cbd6e4;font-size:11px;font-weight:700}
.value-unit-control{height:64px;display:grid;grid-template-columns:minmax(110px,1fr) minmax(155px,.95fr);border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#071425}
.value-unit-control input,.value-unit-control output{min-width:0;width:100%;border:0;background:transparent;color:white;padding:0 16px;display:flex;align-items:center;font-size:25px;font-weight:800;outline:0}
.value-unit-control select{min-width:0;border:0;border-left:1px solid var(--line);background:#0b192b;color:#dce5f1;padding:0 34px 0 13px;font-size:11px;outline:0;cursor:pointer}
.swap-button{width:46px;height:46px;margin:0 auto 9px;border:1px solid transparent;border-radius:50%;background:linear-gradient(#09172a,#09172a) padding-box,linear-gradient(135deg,var(--accent),var(--violet),var(--magenta)) border-box;color:#8deaff;font-size:22px;cursor:pointer;box-shadow:0 0 18px rgba(124,77,255,.20)}
.swap-button:hover{transform:rotate(180deg);transition:transform .25s ease}
.converter-result-row{min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px 8px 14px;border:1px solid rgba(130,170,220,.14);border-radius:9px;background:rgba(255,255,255,.025);font-size:11px;color:#dce6f3}
.converter-result-row button{border:0;background:transparent;color:#a9b8cc;font-size:10px;cursor:pointer}
.converter-result-row button:hover{color:var(--accent)}
.converter-hint{margin-top:14px;padding:9px 12px;border:1px solid rgba(130,170,220,.12);border-radius:8px;background:rgba(255,255,255,.025);color:#9eb0c7;font-size:10px}
.converter-hint>span{color:var(--accent);font-size:15px;margin-right:7px}.converter-hint strong{color:#dfe8f5}
.suggestion-card{padding:17px 14px;box-shadow:none}
.suggestion-card h2{margin:0 0 13px;font-size:14px}.suggestion-card h2 span{color:#b783ff;margin-right:5px}
.suggestion-item{padding:10px;border:1px solid rgba(130,170,220,.13);border-radius:8px;background:rgba(255,255,255,.025);margin-bottom:8px}
.suggestion-item>span{display:block;color:#9588e8;font-size:9px;margin-bottom:3px}.suggestion-item strong{display:block;font-size:10px;color:#d8e3f1;overflow-wrap:anywhere}
.suggestion-link{display:block;margin-top:9px;padding:9px;border:1px solid var(--line);border-radius:8px;text-align:center;color:#d1dbea;text-decoration:none;font-size:9px}
.suggestion-link:hover{border-color:var(--accent);color:white}

/* Shortcuts and dashboard */
.shortcut-section,.dashboard-grid,.results-wrap{width:min(calc(100% - 40px),var(--max));margin:22px auto}
.section-title-row{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:10px}
.section-title-row h2{font-size:17px;line-height:1.3;margin:2px 0}.section-title-row>span{color:#7f92aa;font-size:9px}
.section-title-row.compact{margin-bottom:12px}.section-kicker{font-size:8px;color:var(--accent);letter-spacing:.16em}
.shortcut-rail{display:flex;gap:9px;overflow-x:auto;padding:1px 1px 5px;scrollbar-width:thin}
.shortcut-card{flex:0 0 185px;min-height:62px;display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);border-radius:10px;background:linear-gradient(145deg,rgba(12,29,50,.88),rgba(7,18,34,.9));text-align:left;cursor:pointer}
.shortcut-card:hover{border-color:rgba(0,217,255,.38);transform:translateY(-1px)}
.shortcut-icon{width:34px;height:34px;flex:0 0 auto;display:grid;place-items:center;border:1px solid rgba(0,217,255,.18);border-radius:9px;background:rgba(0,217,255,.055);color:var(--accent);font-size:17px}
.shortcut-card strong,.shortcut-card small{display:block}.shortcut-card strong{font-size:9px}.shortcut-card small{margin-top:2px;color:#a7b7cb;font-size:10px;font-weight:800}
.dashboard-grid{display:grid;grid-template-columns:1.55fr 1fr 1fr;gap:12px;margin-top:18px}
.feature-panel,.history-panel,.utility-panel{padding:15px;min-width:0;box-shadow:none}
.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}
.feature-tile{min-height:105px;padding:12px 8px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.018);text-align:center}
.feature-tile>span{display:grid;place-items:center;width:34px;height:34px;margin:0 auto 8px;border-radius:9px;background:rgba(124,77,255,.09);color:#b995ff;font-size:18px}.feature-tile strong,.feature-tile small{display:block}.feature-tile strong{font-size:10px}.feature-tile small{margin-top:4px;color:#8497af;font-size:8px;line-height:1.5}
.recent-list{display:flex;flex-direction:column;gap:6px;flex-wrap:nowrap}
.recent-list a{display:flex;align-items:center;min-height:32px;padding:6px 9px;border:1px solid rgba(130,170,220,.13);border-radius:8px;background:rgba(255,255,255,.02);font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.recent-list a::before{content:"◷";color:#8bdfff;margin-right:8px}.muted{font-size:9px}
.tool-examples{display:flex;flex-direction:column;gap:7px}
.tool-examples button{display:grid;grid-template-columns:30px 1fr auto;align-items:center;gap:8px;min-height:43px;padding:7px;border:1px solid rgba(130,170,220,.13);border-radius:8px;background:rgba(255,255,255,.02);text-align:left;cursor:pointer}
.tool-examples button>span{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:rgba(50,108,255,.10);color:#72b6ff}.tool-examples strong{font-size:9px;overflow:hidden;text-overflow:ellipsis}.tool-examples small{color:#7f92aa;font-size:8px}

/* Results */
.results-wrap{margin-top:12px}
.results-layout{display:grid;grid-template-columns:minmax(0,1fr) 252px;gap:14px;align-items:start}
.results-main{min-width:0}
.results-heading{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:13px;margin:0 0 14px;padding:15px 17px;box-shadow:none}
.results-title-icon{width:40px;height:40px;display:grid;place-items:center;border:1px solid rgba(0,217,255,.35);border-radius:11px;color:var(--accent);font-size:22px;background:rgba(0,217,255,.055)}
.results-heading h2{margin:1px 0;font-size:18px;letter-spacing:0}.results-heading h2 span{color:#55dbff}.results-heading p{margin:0;color:#8fa3bb;font-size:9px}
.ghost-button{padding:8px 11px;border-radius:8px;font-size:9px}.ghost-button:hover{border-color:var(--accent);color:var(--accent)}
.result-group{margin:0 0 15px;padding:14px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(145deg,rgba(8,22,41,.76),rgba(4,14,28,.78))}
.result-group-heading{margin-bottom:10px}
.result-group-heading h3{color:#c9d5e4;font-size:10px}
.result-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.result-card{
    position:relative;padding:13px;border:1px solid transparent;border-radius:11px;
    background:linear-gradient(145deg,rgba(10,28,50,.98),rgba(7,19,36,.98)) padding-box,linear-gradient(135deg,rgba(0,217,255,.45),rgba(50,108,255,.34),rgba(124,77,255,.48)) border-box;
    transition:filter .18s ease,transform .18s ease;
}
.result-card:hover{filter:brightness(1.08);transform:translateY(-1px)}
.primary-card{background:linear-gradient(145deg,rgba(7,35,59,.98),rgba(15,17,57,.98)) padding-box,linear-gradient(135deg,var(--accent),var(--violet),var(--magenta)) border-box;box-shadow:0 0 20px rgba(50,108,255,.10)}
.result-top{margin:0 0 10px;gap:7px;color:#dce5f1;font-size:9px}
.result-icon{width:27px;height:27px;border:1px solid rgba(124,77,255,.26);border-radius:8px;background:rgba(124,77,255,.11);color:#c99cff;font-size:13px}
.result-label{font-weight:700;flex:1}
.result-copy{width:28px;height:28px;padding:0;border:1px solid rgba(130,170,220,.14);border-radius:8px;background:rgba(255,255,255,.025);color:#8cb9ed;cursor:pointer}
.result-copy:hover{border-color:var(--accent);color:var(--accent)}
.result-value{gap:5px}.result-value strong{font-size:clamp(16px,1.75vw,23px);line-height:1.25;color:#3bdcff;letter-spacing:-.025em}.result-value span{font-size:10px;color:#8edff2}
.result-card p{font-size:8px;line-height:1.5;margin-top:7px}.result-image{height:auto;aspect-ratio:5/3;margin-bottom:9px;border-radius:8px}
.results-sidebar{display:flex;flex-direction:column;gap:12px}
.sidebar-card{padding:13px;box-shadow:none}
.sidebar-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.sidebar-heading h2{margin:0;font-size:12px}.sidebar-heading>span{color:var(--accent)}
.related-list{display:flex;flex-direction:column;gap:6px}
.related-list a{display:grid;grid-template-columns:29px 1fr auto;align-items:center;gap:8px;min-height:43px;padding:6px;border:1px solid rgba(130,170,220,.13);border-radius:8px;background:rgba(255,255,255,.022);text-decoration:none}
.related-list a:hover{border-color:rgba(0,217,255,.38)}
.related-icon{width:27px;height:27px;display:grid;place-items:center;border-radius:7px;background:rgba(0,217,255,.065);color:var(--accent);font-size:12px}.related-list strong,.related-list small{display:block}.related-list strong{font-size:8px}.related-list small{font-size:7px;color:#8497af}.related-list b{color:#71849e;font-size:15px}
.sidebar-history a{min-height:37px}

/* Footer and mobile navigation */
.site-footer{width:min(calc(100% - 40px),var(--max));margin:58px auto 16px;padding:22px 0 8px;display:grid;grid-template-columns:1fr auto;gap:8px 24px;align-items:center;font-size:9px}
.footer-brand{display:flex;align-items:center;gap:10px}.footer-brand img{object-fit:contain}.footer-brand p{margin:0}.footer-links{margin:0;justify-content:flex-end}.disclaimer{grid-column:1/-1}.site-footer>small{grid-column:1/-1}
.bottom-nav{display:none}
.toast{position:fixed;z-index:100;left:50%;bottom:30px;transform:translate(-50%,10px);padding:9px 14px;border:1px solid rgba(0,217,255,.38);border-radius:999px;background:rgba(4,17,32,.96);box-shadow:0 8px 30px rgba(0,0,0,.38);color:#ecf8ff;font-size:11px;opacity:0;transition:.2s ease;pointer-events:none}
.toast.is-visible{opacity:1;transform:translate(-50%,0)}
.toast[hidden]{display:none}

@media(max-width:1023px){
    .header-inner{gap:17px}.header-nav{gap:15px}.header-nav a{font-size:11px}.header-tool{padding:0 10px}
    .hero-grid{grid-template-columns:minmax(0,1fr) 310px;gap:30px}
    .converter-layout,.results-layout{grid-template-columns:minmax(0,1fr) 220px}
    .value-unit-control{grid-template-columns:minmax(90px,1fr) minmax(125px,1fr)}
    .dashboard-grid{grid-template-columns:1.5fr 1fr}.utility-panel{grid-column:1/-1}.tool-examples{display:grid;grid-template-columns:repeat(3,1fr)}
    .result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:767px){
    body{padding-bottom:calc(66px + env(safe-area-inset-bottom))}
    html{scroll-padding-top:74px}
    .site-header{height:60px}
    .header-inner{width:calc(100% - 20px);justify-content:space-between;gap:5px}
    .menu-toggle{display:block;order:0}.brand{order:1;margin-right:auto}.brand-logo{width:34px;height:34px}.brand-name strong,.brand-name>span{font-size:14px}
    .header-tools{order:2}.header-tool{display:none}.header-camera{display:flex}
    .header-nav{display:none;position:absolute;top:60px;left:0;right:0;margin:0;padding:12px 16px 18px;flex-direction:column;align-items:stretch;gap:2px;border-bottom:1px solid var(--line);background:rgba(2,8,23,.98);box-shadow:0 14px 30px rgba(0,0,0,.35)}
    .site-header.is-menu-open .header-nav{display:flex}.header-nav a{padding:10px 12px;border-radius:8px;font-size:12px}.header-nav a:hover{background:rgba(255,255,255,.035)}
    .hero{width:calc(100% - 20px);margin:0 auto;padding:28px 2px 18px}
    .hero-grid{grid-template-columns:1fr;gap:22px}.hero h1,.hero-compact h1{font-size:clamp(28px,8.5vw,38px)}.hero-copy{font-size:12px;line-height:1.75}.hero-copy br{display:none}
    .hero-points{gap:16px;font-size:10px}.hero-points b{width:24px;height:24px}
    .install-card{min-height:126px;grid-template-columns:44px 1fr;padding:15px 16px}.install-card-icon{width:38px;height:54px;font-size:22px}.install-card p{font-size:9px}.install-button{padding:7px 10px;font-size:10px}
    .smart-entry{margin-top:22px}.search-shell{min-height:58px;padding:5px 5px 5px 13px}.search-icon{display:none}.search-shell input{font-size:15px;padding:8px 2px}.search-submit{height:46px;padding:0 15px;font-size:11px}.search-submit span{display:none}
    .hero-actions{display:flex;flex-direction:column;align-items:stretch}.camera-action{width:max-content;max-width:100%}.example-wrap{display:block;width:100%;max-width:100%;overflow:hidden}.example-wrap>span{display:block;margin-bottom:6px}.quick-examples{width:100%;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none}.quick-examples::-webkit-scrollbar{display:none}
    .hero-results{text-align:left}.hero-results h1{font-size:27px}.smart-entry-results{margin-top:18px}
    .converter-layout{width:calc(100% - 20px);grid-template-columns:1fr;margin-top:8px}.converter-card{padding:0 11px 12px}.suggestion-card{display:none}
    .converter-tab{height:53px;min-width:72px;font-size:9px}.converter-tab span{display:block;margin:0;font-size:14px}
    .converter-fields{grid-template-columns:minmax(0,1fr) 46px minmax(0,1fr);gap:7px;padding-top:14px}.value-unit-control{height:auto;grid-template-columns:1fr}.value-unit-control input,.value-unit-control output{height:49px;padding:0 10px;font-size:20px}.value-unit-control select{height:39px;border-left:0;border-top:1px solid var(--line);padding:0 24px 0 9px;font-size:9px}.swap-button{width:38px;height:38px;margin-bottom:23px}
    .converter-result-row{font-size:9px}.converter-result-row button span{display:none}.converter-hint{font-size:8px}
    .shortcut-section,.dashboard-grid,.results-wrap{width:calc(100% - 20px)}
    .shortcut-card{flex-basis:164px}.dashboard-grid{grid-template-columns:1fr}.utility-panel{grid-column:auto}.feature-grid{grid-template-columns:repeat(2,1fr)}.tool-examples{display:flex}
    .results-layout{grid-template-columns:1fr}.results-sidebar{order:2}.results-heading{grid-template-columns:38px 1fr auto;padding:12px}.results-title-icon{width:36px;height:36px}.results-heading h2{font-size:14px}.ghost-button{font-size:0}.ghost-button::after{content:"▣";font-size:13px}
    .result-grid{grid-template-columns:1fr}.result-group{padding:10px}.result-card{padding:11px}.result-value strong{font-size:20px}.result-card p{font-size:8px}.results-sidebar{display:grid;grid-template-columns:1fr 1fr}
    .site-footer{width:calc(100% - 24px);grid-template-columns:1fr;margin:38px auto 8px}.footer-links{justify-content:flex-start;flex-wrap:wrap}.disclaimer{grid-column:auto}.site-footer>small{grid-column:auto}
    .bottom-nav{position:fixed;z-index:45;left:0;right:0;bottom:0;min-height:62px;padding:5px 5px env(safe-area-inset-bottom);display:grid;grid-template-columns:repeat(5,1fr);border-top:1px solid var(--line);background:rgba(3,12,26,.96);backdrop-filter:blur(18px)}
    .bottom-nav a,.bottom-nav button{border:0;background:transparent;text-decoration:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:#8fa1b8;font-size:18px;cursor:pointer}.bottom-nav small{font-size:8px}.bottom-nav a:first-child{color:var(--accent)}
    .toast{bottom:calc(78px + env(safe-area-inset-bottom))}
}

@media(max-width:480px){
    .brand-name strong,.brand-name>span{font-size:13px}.header-camera{display:none}
    .hero{padding-top:22px}.hero h1,.hero-compact h1{font-size:29px}.eyebrow{font-size:8px}.hero-points{justify-content:space-between;gap:5px}
    .install-card{grid-template-columns:36px 1fr}.install-card-icon{width:32px;height:48px}
    .search-submit{padding:0 12px}.search-clear{font-size:20px;padding:0 3px}
    .converter-tab{min-width:65px}.converter-fields{grid-template-columns:1fr 38px 1fr}.converter-field label{font-size:9px}.swap-button{width:34px;height:34px;font-size:17px}
    .results-sidebar{grid-template-columns:1fr}.results-heading .section-kicker{display:none}.results-heading p{display:none}
}

/* Readability and hero network decoration */
body::before{
    height:560px;
    opacity:.68;
    background:
        radial-gradient(circle at 6% 71%,rgba(0,217,255,.95) 0 1px,transparent 2.5px),
        radial-gradient(circle at 14% 49%,rgba(50,108,255,.85) 0 1.5px,transparent 3px),
        radial-gradient(circle at 25% 76%,rgba(0,217,255,.82) 0 1px,transparent 2.5px),
        radial-gradient(circle at 39% 35%,rgba(80,130,255,.9) 0 1px,transparent 2.5px),
        radial-gradient(circle at 56% 68%,rgba(124,77,255,.9) 0 1.5px,transparent 3px),
        radial-gradient(circle at 73% 38%,rgba(167,71,255,.9) 0 1px,transparent 2.5px),
        radial-gradient(circle at 89% 62%,rgba(242,56,255,.85) 0 1.5px,transparent 3px),
        repeating-linear-gradient(18deg,transparent 0 72px,rgba(32,122,230,.105) 73px,transparent 74px),
        repeating-linear-gradient(163deg,transparent 0 104px,rgba(118,74,255,.07) 105px,transparent 106px);
    -webkit-mask-image:linear-gradient(to bottom,#000 7%,rgba(0,0,0,.96) 72%,transparent 100%);
    mask-image:linear-gradient(to bottom,#000 7%,rgba(0,0,0,.96) 72%,transparent 100%);
}
.hero{
    position:relative;
    isolation:isolate;
}
.hero::before{
    content:"";
    display:block;
    position:absolute;
    z-index:-2;
    inset:-28px -34px -42px;
    pointer-events:none;
    opacity:.86;
    background:
        radial-gradient(circle at 8% 72%,rgba(0,217,255,.95) 0 2px,rgba(0,217,255,.17) 3px 8px,transparent 9px),
        radial-gradient(circle at 18% 56%,rgba(50,108,255,.9) 0 1.5px,rgba(50,108,255,.12) 3px 7px,transparent 8px),
        radial-gradient(circle at 34% 81%,rgba(0,217,255,.85) 0 1px,transparent 3px),
        radial-gradient(circle at 61% 62%,rgba(124,77,255,.9) 0 1.5px,rgba(124,77,255,.12) 3px 7px,transparent 8px),
        radial-gradient(circle at 83% 35%,rgba(196,61,255,.95) 0 2px,rgba(196,61,255,.12) 3px 9px,transparent 10px),
        radial-gradient(circle at 94% 74%,rgba(242,56,255,.85) 0 1.5px,transparent 3px);
    -webkit-mask-image:linear-gradient(90deg,rgba(0,0,0,.72),#000 48%,#000 92%,transparent);
    mask-image:linear-gradient(90deg,rgba(0,0,0,.72),#000 48%,#000 92%,transparent);
}
.hero::after{
    content:"";
    display:block;
    position:absolute;
    z-index:-3;
    inset:-20px -34px -32px;
    pointer-events:none;
    background:
        radial-gradient(ellipse at 82% 72%,rgba(66,74,255,.18),transparent 38%),
        radial-gradient(ellipse at 18% 74%,rgba(0,174,255,.13),transparent 31%),
        linear-gradient(108deg,transparent 8%,rgba(0,217,255,.045) 42%,rgba(124,77,255,.08) 72%,transparent 94%);
    filter:blur(2px);
}
.hero-grid,.smart-entry{position:relative;z-index:1}

.converter-tab{font-size:13px}
.value-unit-control select{font-size:14px;font-weight:650}
.converter-result-row{font-size:13px}
.converter-hint{font-size:12px;line-height:1.7}
.suggestion-card h2{font-size:16px}
.suggestion-item>span{font-size:11px}
.suggestion-item strong{font-size:12px;line-height:1.55}
.suggestion-link{font-size:11px}
.section-kicker{font-size:10px}
.shortcut-card strong{font-size:11px;line-height:1.45}
.shortcut-card small{font-size:12px}
.feature-tile strong{font-size:12px}
.feature-tile small{font-size:10px}
.recent-list a{font-size:12px}
.muted{font-size:11px}
.tool-examples strong{font-size:11px}
.tool-examples small{font-size:10px}
.results-heading p{font-size:11px}
.result-group-heading h3{font-size:13px}
.result-top{font-size:12px}
.result-label{font-size:13px}
.result-value span{font-size:14px}
.result-card p{font-size:11px;line-height:1.65}
.sidebar-heading h2{font-size:14px}
.related-list strong{font-size:12px}
.related-list small{font-size:10px}
.quick-examples button{font-size:12px}
.example-wrap>span{font-size:11px}
.site-footer{font-size:12px;line-height:1.75}
.footer-brand strong{font-size:14px}
.footer-brand p{font-size:11px}
.footer-links a{font-size:12px}
.site-footer .disclaimer,.site-footer>small{font-size:11px}

@media(min-width:1024px){
    .hero-results h1{white-space:nowrap}
}

@media(max-width:767px){
    body::before{height:490px;opacity:.52}
    .hero::before{inset:-16px -18px -24px;opacity:.66}
    .converter-tab{font-size:11px}
    .value-unit-control select{font-size:12px}
    .converter-result-row{font-size:11px}
    .converter-hint{font-size:10px}
    .result-top,.result-label{font-size:12px}
    .result-value span{font-size:12px}
    .result-card p{font-size:10px}
    .related-list strong{font-size:11px}
    .related-list small{font-size:10px}
    .site-footer{font-size:11px}
    .footer-links a{font-size:11px}
    .bottom-nav small{font-size:10px}
}
