/* Shared product theme. System fonts and local artwork only. */
:root,body{--ink:#191b24;--muted:#636776;--border:#e3e4e9;--accent:#5546e8;--paper:#fff;--ui-primary:246 78% 59%;--ui-primary-foreground:0 0% 100%;--ui-foreground:230 18% 12%;--ui-secondary:240 14% 96%;--ui-muted:230 9% 43%;--ui-border:234 13% 87%;--ui-ring:246 78% 59%;color:var(--ink);background:#f7f7f9;-webkit-font-smoothing:antialiased;font-feature-settings:"ss01" on,"cv11" on}
body{font-size:14px}.wrap{width:min(1200px,calc(100% - 80px));max-width:1200px}.topbar{height:88px;border:0;gap:24px}.brand{gap:12px}.brand:before{content:"";display:block;width:36px;height:36px;border-radius:11px;background:#20212b url('./icon.svg') center/36px no-repeat}.brand-name{font-size:19px;font-weight:750;letter-spacing:-.05em}.brand-note{display:none}.topnav{gap:28px;font-size:12px;color:#666976}.topnav a:hover{color:var(--accent)}
.tool-strip{display:flex;gap:3px;padding:6px;background:#fff;border:1px solid var(--border);border-radius:14px;overflow:auto;scrollbar-width:thin;scrollbar-color:#d9d9e1 transparent;overscroll-behavior-x:contain}.tool-strip a{display:inline-flex;flex:none;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:9px 12px;border-radius:9px;text-decoration:none;white-space:nowrap;font-size:12px;font-weight:550;color:#606575;transition:background .15s,color .15s}.tool-strip svg{width:15px;height:15px;flex-shrink:0}.tool-strip a:hover{background:#f3f2f9;color:#262333}.tool-strip a[aria-current=page]{background:#24242e;color:#fff}.tool-strip a[aria-current=page] svg{stroke:#c2baff}
.intro,.hero{padding:44px 0 30px}.intro h1,.hero h1,.title-line h1{font-size:34px;line-height:1.4;font-weight:750;letter-spacing:-.055em;color:#191b24;margin:0 0 10px}.intro p,.hero p,.intro>p:last-child{font-size:14px;line-height:1.85;color:var(--muted)}.intro-copy{max-width:680px}.intro .pill{font-size:11px;border:0;background:#eeecfc;color:#5c4f9e;padding:5px 9px;border-radius:6px}.pill .dot{background:#6c5ce7}.privacy-badge{font-size:11px;color:#737786}
h2{letter-spacing:-.025em}.button,button{transition:background .15s,border-color .15s,box-shadow .15s}.button{border-color:#dfe0e7;border-radius:9px;color:#383b49;background:#fff;font-weight:550;box-shadow:0 1px 2px #14132605}.button:hover{border-color:#bab9c9;background:#f8f8fc}.button.primary,button.bg-primary{background:#5546e8;border-color:#5546e8;color:#fff;box-shadow:0 3px 8px #5546e81a}.button.primary:hover,button.bg-primary:hover{background:#4434d1;border-color:#4434d1}.icon-button:hover{background:#edecf4;color:#3e348d}.button:disabled,button:disabled{opacity:.45;box-shadow:none}input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]),select,textarea{border-color:#dcdde5;border-radius:9px;background:#fff;color:#242736;box-shadow:0 1px 2px #14132603;transition:border-color .15s,box-shadow .15s}input:focus-visible,select:focus-visible,textarea:focus-visible{border-color:#9389ee;outline:0!important;box-shadow:0 0 0 3px #5546e812!important}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #8174ed;outline-offset:3px}input::placeholder,textarea::placeholder{color:#9799a7}input[type=checkbox],input[type=radio],input[type=range]{accent-color:#5546e8}
.card,.chart,.chart-card,.editor-panel,.settings-card,.limit-card,.preview-card,.input-card,.form-panel,.breakdown,.calculator-layout .comparison,.import-panel,.metrics article{border:1px solid var(--border);border-radius:18px;background:#fff;box-shadow:0 4px 20px #18152b03}.card h2,.input-card h2,.panel-heading h2,.chart h2,.chart-heading h2,.import-panel h2,.settings-card h2{color:#2b2c3c;font-weight:650}.field-note,.help,.source{color:#707382}.help{line-height:1.8}.page-about{margin-top:48px;padding-top:28px;border-color:#dedfe6;gap:36px}.page-about h2{font-size:14px;font-weight:650;color:#434552}.page-about summary{font-size:13px;color:#4d5060;min-height:32px;display:list-item}.page-about p{font-size:12px;line-height:1.95;color:#686b79}.page-about details{border-color:#e7e7ed}.page-about details p+p{margin-top:10px}.site-footer{margin-top:44px;border-color:#dedfe6;color:#747786;font-size:12px;padding:28px 0}.site-footer a:hover{color:var(--accent)}.notice{background:#eeecfb;border-color:#e4dff9;border-radius:12px}.notice p,.notice>span{color:#665994}.status-message{border-radius:12px}
/* Dark results keep the main value separate from the form. */
.result,.net-card,.result-card,.timer-panel{color:#fff;background:#23232f;border:1px solid #23232f;border-radius:20px;box-shadow:0 10px 30px #1815250a}.result .tag,.net-card h2,.result-label h2{color:#c4c0db;font-size:13px;font-weight:500}.result-caption,.result-sub{color:#b6b3c9}.result .big{font-size:48px;font-weight:600;letter-spacing:-.045em;color:#fff}.big small{color:#b7b2ce;font-weight:400}.result .stats{border-color:#ffffff20}.result .stats p{color:#b7b3ca}.result .stats strong{color:#e0dafc;font-size:22px}.result-label>span{color:#c7c0f1;background:#ffffff0b}.result-card .big-count>span:first-child{color:#fff;font-weight:550}.result-card .unit{color:#a7a1bd}.result-card .width-counts{border-color:#ffffff1a}.result-card .width-counts span,.result-card .unit-note{color:#bbb6ce}.result-card .width-counts strong{color:#e0dafc}.annual-net strong{font-size:56px;font-weight:550;color:#fff}.annual-net>span{color:#bcb7d0}.net-card .result-top{color:#c0bbd4}.estimate-badge{background:#ffffff0a;border-color:#ffffff26;color:#d2cde5}.net-bottom{border-color:#ffffff20}.net-bottom strong,.ratio strong{color:#f0edff}.net-bottom>p>span,.ratio>span{color:#b5b0c8}.date-result{letter-spacing:-.045em}.timer-top>span:first-child{color:#d9d0ff;background:#ffffff0a;border-color:#ffffff20}.timer-top>span:last-child,.round-label,#timer-hint,.timer-bottom{color:#c1bbd2}.timer-track{height:5px;background:#ffffff16}.timer-track>div{background:#c1b5ff}.timer-panel button.timer-reset{background:#393744;border-color:#575260;color:#eee9ff}.timer-panel button.timer-reset:hover{background:#494552}.timer-clock{font-weight:450;letter-spacing:-.07em}
.bar-track{background:#f0eff6;border-radius:5px;height:10px}.bar{background:#c5c0e5;border-radius:5px}.bar.target{background:#7564eb}.bar-value{color:#636078}.chart{padding:28px}.chart h2{font-size:16px}.bar-row{margin-top:20px}.breakdown .stack>span:nth-child(1),.breakdown-row:nth-child(1) .legend-dot{background:#7564eb!important}.breakdown .stack>span:nth-child(2),.breakdown-row:nth-child(2) .legend-dot{background:#aaa1d7!important}.breakdown .stack>span:nth-child(3),.breakdown-row:nth-child(3) .legend-dot{background:#cbc5e5!important}.breakdown .stack>span:nth-child(4),.breakdown-row:nth-child(4) .legend-dot{background:#e2dfee!important}.comparison-grid strong,.difference{color:#6354b3}.wall-grid article{background:#fff;border:1px solid var(--border);border-radius:14px;padding:22px}.wall-grid article:first-child{background:#f2efff;border-color:#e0d9f7}.wall-number{color:#6351c7}.walls h2{font-size:17px}.walls .wall-grid{gap:16px}
.panel-header{background:#fcfcfe;border-color:#e9e8ef}.editor-bottom,.source-stats{border-color:#eeedf3}.custom-check{border-color:#c9c6d7}.filter-options input:checked+.custom-check{background:#5546e8;border-color:#5546e8}.limit-presets button[aria-pressed=true]{background:#efecfd;border-color:#c6bdf4;color:#5a45c1}.filter-hint{color:#898496}#filtered-preview{border-color:#e5e1f1;background:#f8f7fc}#progress-fill{background:#8774ef}.over-limit #progress-fill{background:#dc2626}.table-wrap,.filters{background:#fff;border-color:var(--border);border-radius:14px}.table-wrap th{background:#f6f5fa;color:#625c76}.table-wrap td,.table-wrap th{border-color:#eeedf3}.table-wrap tbody tr:hover{background:#f9f8fe}.table-wrap th button{font-weight:600}.upload-zone{background:#f7f6fd;border-color:#d1cbea;border-radius:12px}.official{color:#6354b3}.metrics strong,.metrics p.range{color:#323043}.metrics article:first-child{background:#f2effd;border-color:#e0d9f4}.metrics article:first-child strong{color:#6653c7}.filters label{font-size:12px;color:#646071}
/* Weather */
.weather-card{display:grid;grid-template-columns:1.2fr 1fr;gap:0;padding:0;overflow:hidden;border:1px solid var(--border);border-radius:20px;box-shadow:0 5px 24px #201c3605}.weather-card>div:first-child{background:#23232f;color:#fff;padding:32px 36px}.observation{color:#b9b2ce;font-size:12px;gap:12px}.observation .pill{font-size:10px;color:#d0c6f0;border-color:#ffffff1a;background:#ffffff08}.weather-card h2{font-size:21px;font-weight:500;color:#e7e0fa;margin:26px 0 2px}.temperature-label{font-size:12px;color:#aaa2be;margin-top:5px}.big-temp{display:flex;align-items:baseline;gap:5px;margin:0 0 18px;letter-spacing:-.065em;font-variant-numeric:tabular-nums}.big-temp #current{font-size:88px;font-weight:450;line-height:1.2}.big-temp>span:last-child{font-size:27px;color:#b8adcd;margin:0;letter-spacing:0}.weather-card .comparison{font-size:15px;background:transparent;border:0;box-shadow:none;padding:0;margin:0 0 6px;color:#ddd3fa}.weather-card .comparison.cool{color:#b3d5ff}.weather-card .comparison.warm{color:#ffccb4}.weather-card #yesterday{color:#b7adc9;font-size:12px;margin-top:7px}.forecast{padding:32px 36px;background:#fff;border:0;justify-content:center}.forecast h3{color:#777180;font-size:12px;font-weight:500;margin-bottom:10px}.forecast #forecast-weather{font-size:25px;font-weight:550;color:#333043;line-height:1.6;letter-spacing:-.03em}.highlow{gap:0;margin:28px 0 22px}.highlow>span{display:flex;flex-direction:column;gap:7px;width:50%;font-size:12px;color:#777181}.highlow>span+span{border-left:1px solid #ece9f1;padding-left:28px}.highlow strong{font-size:34px;font-weight:500;line-height:1.2;padding:0;font-variant-numeric:tabular-nums}.highlow>span:first-child strong{color:#b65d57}.highlow>span:last-child strong{color:#6a5cba}.forecast #forecast-info{font-size:12px;line-height:1.8;color:#797383}.chart-card{padding:28px;margin-top:24px}.chart-heading h2{font-size:16px}.chart-heading .small{font-size:12px;color:#757080}.legend{gap:16px;font-size:12px;color:#736d7e}.legend .today:before{background:#7564eb;border-radius:2px}.legend .yesterday:before{height:0;background:none;border-top:2px dashed #9a93ae}#chart{margin:18px 0 10px}.chart-card>p.small{font-size:12px;color:#777181}.chart-card details{border-top:1px solid #eeebf3;margin-top:20px;padding-top:12px;color:#746d81;font-size:12px}.city-label{font-size:12px;color:#736b82;min-width:180px;gap:6px}.city-label select{font-size:16px;min-height:46px}#retry{min-height:44px}
/* Pet card */
.pet-card{background:#fff;border-color:var(--border);border-radius:20px}.pet-card .card-top{color:#787183;font-size:11px}.pet-card .actual-age{font-size:44px;font-weight:600;color:#353043}.pet-card .human-age strong{color:#7661cf}.pet-card .card-bottom{border-color:#eeeaf5}.pet-art{height:150px;margin:16px auto}.birthday-strip{background:#efecfc;border:1px solid #e2dbf7;border-radius:14px}.birthday-strip .countdown strong{color:#6c55ca}.days-together strong{color:#69549e}.type-options input:checked+span{background:#f0ecfe;border-color:#b7a9ef;color:#654ac2}.card-actions button{border-radius:9px}
/* File tools */
.dropzone,.file-zone{background:#f8f7fd;border:1px dashed #c9c1e6;border-radius:14px}.dropzone.dragging{background:#eeebfc;border-color:#8773de}.dropzone>svg{color:#8071b3}.empty,.output-empty{background:#f3f2f7;border:1px dashed #d6d2e2;border-radius:18px}.empty h3{color:#4c455d;font-size:18px}.empty p,.output-empty{color:#777180}.empty>span{font-size:36px;color:#ada3c5}.format-note{background:#f3f1fa;color:#716584}.image-card{border-color:var(--border);border-radius:16px}.image-card header{border-color:#eeebf3}.image-card .preview-grid{background:#e8e4f0}.image-card .preview-grid figure{background:#faf9fc}.image-footer .change{color:#6650bf}.image-footer .change.larger{color:#9c6c21}.pdf-modes{gap:6px;background:#eeecf4;padding:5px;border:1px solid #e4e0ed;border-radius:12px;width:fit-content}.pdf-modes button{box-shadow:none;background:transparent;border-color:transparent;min-height:44px}.pdf-modes button[aria-pressed=true]{background:#fff;color:#3b3257;border-color:#dfdaeb;box-shadow:0 2px 5px #241b3b08}.pdf-result{background:#f7f5fe;border-color:#e4ddf6;border-radius:12px}.local-badge{background:#f0ecfc;color:#786399}.mode-switch{padding:4px;background:#f0eef6;border-radius:10px;gap:4px}.mode-switch button{background:transparent;border-color:transparent;box-shadow:none}.mode-switch button[aria-pressed=true]{background:#fff;border-color:#e0dae9;color:#574477;box-shadow:0 2px 4px #241b3b08}.business-row{color:#6952bf}.weekdays label{border-color:#e4dfed}.weekdays label:has(input:checked){background:#f1edfc;border-color:#d8cff0}
/* Directory */
.home-intro{display:block;position:relative;padding:54px 52px;margin:28px 0 36px;overflow:hidden;background:#23232f;border:1px solid #23232f;border-radius:24px}.home-intro:after{content:"";position:absolute;width:260px;height:260px;right:-45px;top:-100px;transform:rotate(-24deg);border:44px solid #b2a4fb15;border-radius:60px;pointer-events:none}.home-intro h1{position:relative;z-index:1;max-width:800px;color:#fff;font-size:42px;line-height:1.45;font-weight:650;letter-spacing:-.055em}.home-intro .intro-copy{position:relative;z-index:1;color:#bfb9cf;font-size:14px;margin:16px 0 0}.home-intro .intro-copy:before{content:"";width:7px;height:7px;border-radius:50%;display:inline-block;background:#c5ef90;margin-right:10px;vertical-align:2px}.list-heading{margin-bottom:18px}.list-heading h2{font-size:15px;color:#33303e}.list-heading>span{font-size:12px;color:#787281}.tools{gap:16px}.tools .tool,.tools .tool:first-child,.tools .tool:nth-child(2),.tools .tool:nth-child(7){grid-column:span 1;border:1px solid #e3e1e9;border-radius:16px;padding:24px;background:#fff;box-shadow:0 2px 5px #241b3b02;position:relative;transition:transform .18s,border-color .18s,box-shadow .18s}.tools .tool:hover{transform:translateY(-3px);border-color:#beb3e2;box-shadow:0 12px 28px #30204d0a}.tools .tool .tool-icon{width:42px;height:42px;background:#f1eef9;border:0;border-radius:12px;margin-bottom:24px}.tools .tool .tool-icon svg{width:21px;height:21px;stroke:#756294}.tools .tool h2,.tools .tool:first-child h2{font-size:17px;font-weight:650;color:#2c2937;letter-spacing:-.035em;margin-bottom:10px}.tools .tool p,.tools .tool:first-child p{font-size:13px;line-height:1.85;color:#74707f;margin-bottom:22px}.tools .tool .tool-bottom,.tools .tool:first-child .tool-bottom{padding-top:16px;border-color:#eeeaf3;color:#82798e;font-size:11px}.tools .tool .tool-bottom svg{color:#8774ac}.tools .tool:hover .tool-bottom svg{color:#5e45a6}.tools .tool:nth-child(3n+2) .tool-icon{background:#eef2f9}.tools .tool:nth-child(3n+2) .tool-icon svg{stroke:#5d7396}.tools .tool:nth-child(3n) .tool-icon{background:#edf5ef}.tools .tool:nth-child(3n) .tool-icon svg{stroke:#5d8668}.home-note{margin-top:30px;border:0;background:transparent;padding:0;font-size:12px;line-height:1.9;color:#787180;max-width:850px}
@media(min-width:1000px){.input-card,.form-panel{padding:28px}.intro,.hero{padding-top:48px}}
@media(max-width:900px){.wrap{width:calc(100% - 48px)}.home-intro{padding:40px}.home-intro h1{font-size:34px}.intro h1,.hero h1,.title-line h1{font-size:30px}.tools .tool{padding:22px}.weather-card>div:first-child,.forecast{padding:28px}.big-temp #current{font-size:76px}.forecast #forecast-weather{font-size:22px}}
@media(max-width:760px){.wrap{width:calc(100% - 32px)}.topbar{height:74px;gap:12px}.brand-name{font-size:17px}.brand:before{width:30px;height:30px;background-size:30px;border-radius:9px}.topnav{font-size:11px;gap:15px}.tool-strip{border-radius:12px;padding:5px}.tool-strip a{padding:8px 11px;font-size:12px}.intro,.hero{padding:30px 0 24px}.intro h1,.hero h1,.title-line h1{font-size:27px;line-height:1.45;letter-spacing:-.05em}.intro p,.hero p,.intro>p:last-child{font-size:13px}.home-intro{margin:20px 0 28px;padding:32px 26px;border-radius:18px}.home-intro h1{font-size:30px;max-width:13em}.home-intro .intro-copy{font-size:12px;margin-top:14px}.home-intro:after{width:200px;height:200px;right:-75px;top:-80px;border-width:32px}.tools{gap:12px}.tools .tool,.tools .tool:first-child,.tools .tool:nth-child(2),.tools .tool:nth-child(7){padding:22px;border-radius:14px}.tools .tool .tool-icon{margin-bottom:20px}.tools .tool h2,.tools .tool:first-child h2{font-size:17px}.tools .tool p{font-size:13px}.page-about{margin-top:34px;gap:18px}.site-footer{margin-top:32px}.result,.net-card,.result-card,.timer-panel{border-radius:16px}.result .big{font-size:38px}.annual-net strong{font-size:46px}.chart{padding:22px}.pet-card .actual-age{font-size:36px}.pet-art{height:125px}.wall-grid article{padding:18px}.chart-card{padding:22px}.city-label{min-width:150px}.pdf-modes{width:100%}.fields{align-items:start}.fields>label,.fields label{align-self:start;align-content:start}}
@media(max-width:640px){.intro:has(.city-label){display:flex;flex-direction:row;align-items:flex-start;gap:12px;flex-wrap:wrap}.intro:has(.city-label)>div{flex:1;min-width:190px}.intro:has(.city-label) h1{font-size:25px}.intro:has(.city-label) p{font-size:12px}.city-label{min-width:106px;flex-basis:106px;gap:3px;font-size:11px}.city-label select{padding:8px 10px;min-height:44px;margin-top:4px}.weather-card{grid-template-columns:1fr;border-radius:16px}.weather-card>div:first-child{padding:26px}.weather-card h2{font-size:19px;margin-top:22px}.big-temp #current{font-size:80px}.forecast{padding:24px 26px}.forecast #forecast-weather{font-size:22px}.highlow{margin:22px 0 18px}.highlow strong{font-size:30px}.highlow>span+span{padding-left:24px}.chart-card{padding:22px 16px;margin-top:18px}.chart-heading{flex-direction:row;align-items:center;gap:12px}.chart-heading h2{font-size:15px}.chart-heading .small{font-size:11px}.legend{font-size:11px;gap:10px}.legend span:before{width:12px;margin-right:4px}.chart-card>p.small{font-size:11px}.card-top,.card-bottom{flex-wrap:wrap}.result .big{font-size:36px}.output-empty{padding:36px 12px}}
@media(max-width:360px){.brand{gap:8px}.brand-name{font-size:16px}.topnav{gap:10px;font-size:10px}.brand:before{width:26px;height:26px;background-size:26px}.home-intro{padding:28px 22px}.home-intro h1{font-size:26px}.intro:has(.city-label)>div{min-width:100%;flex-basis:100%}.city-label{flex-basis:100%;grid-template-columns:60px 1fr;align-items:center;gap:10px}.city-label select{margin:0}.chart-heading{flex-wrap:wrap}.result .big{font-size:31px}.pet-card .actual-age{font-size:32px}.annual-net strong{font-size:40px}}
@media(prefers-reduced-motion:reduce){.tools .tool:hover{transform:none}}
/* Native file inputs remain keyboard accessible; the picker uses a Japanese label. */
.file-zone{position:relative;align-items:flex-start;cursor:pointer}.file-zone .file-input{position:absolute;left:20px;bottom:20px;width:1px;height:1px;min-height:0;opacity:0}.file-zone:focus-within{outline:2px solid #8174ed;outline-offset:3px}.file-select-button{font-size:13px;background:#fff;border-color:#d6cdeb;margin-top:4px;pointer-events:none}.file-zone:hover .file-select-button{background:#f0ecfb;border-color:#b4a7d3}#canvas-wrap{min-height:240px;align-items:center}#quality-value{color:#6550c2}
@media(max-width:650px){#canvas-wrap{min-height:180px}}

/* Tool pages start with navigation, followed by the tool's own heading. */
.tool-page .tool-strip{margin-top:20px}
.tool-page .intro,.tool-page .hero{padding-top:32px}
.tool-page .site-footer{flex-wrap:wrap;justify-content:flex-start;column-gap:24px}
.tool-page .site-footer>span:first-child{margin-right:auto}
@media(max-width:760px){.tool-page .tool-strip{margin-top:12px}.tool-page .intro,.tool-page .hero{padding-top:24px}.tool-page .site-footer{flex-direction:row;row-gap:12px}}

/* A clean header: all desktop tabs fit or wrap; phones can swipe without a bar. */
.tool-strip{scrollbar-width:none;-ms-overflow-style:none}
.tool-strip::-webkit-scrollbar{display:none;width:0;height:0}
@media(min-width:761px){.tool-strip{flex-wrap:wrap;overflow:visible;gap:2px}.tool-strip a{padding-inline:9px;gap:6px}}
@media(min-width:1100px){.tool-strip a{flex:1;padding-inline:6px;gap:5px;font-size:11px}}
