:root {
  color-scheme:light;--ink:#17283c;--muted:#526475;--blue:#214fa8;--blue-dark:#153a82;--paper:#fcfcfa;--line:#dce2e4;
  --body:"Segoe UI",Arial,Helvetica,sans-serif;--display:"Segoe UI Variable Display","Segoe UI",Arial,sans-serif;
  font-family:var(--body);color:var(--ink);background:var(--paper);font-size:16px;font-synthesis:none
}
:root[lang="ar"]{--body:"Segoe UI","Tahoma","Arial",sans-serif;--display:var(--body)}
:root[lang="ja"]{--body:"Hiragino Sans","Yu Gothic UI","Meiryo",sans-serif;--display:var(--body)}
:root[lang="ko"]{--body:"Malgun Gothic","Apple SD Gothic Neo",sans-serif;--display:var(--body)}
:root[lang="zh-Hant"]{--body:"Microsoft JhengHei","PingFang TC","Noto Sans TC",sans-serif;--display:var(--body)}
:root[lang="zh-Hans"]{--body:"Microsoft YaHei","PingFang SC","Noto Sans SC",sans-serif;--display:var(--body)}
:root[lang="th"]{--body:"Tahoma","Leelawadee UI","Noto Sans Thai",sans-serif;--display:var(--body)}
*{box-sizing:border-box}
body{margin:0;min-width:280px}
[hidden]{display:none!important}
a{color:var(--blue);text-underline-offset:3px}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.65}
button,a,input,select,textarea{touch-action:manipulation}
:focus-visible{outline:3px solid #337bdb;outline-offset:3px}
button{background:none;border:0}
svg.icon{flex:none;vertical-align:middle}
.wrap{width:min(1192px,calc(100% - 96px));margin-inline:auto}
.skip{position:absolute;inset-inline-start:-9999px}.skip:focus{inset-inline-start:1rem;top:1rem;background:white;padding:.75rem;z-index:10}
.top{background:#fff;border-bottom:1px solid var(--line)}
.bar{display:flex;align-items:center;min-height:76px;gap:34px}
.brand{display:inline-flex;align-items:center;gap:7px;font-family:var(--display);font-size:27px;font-weight:760;letter-spacing:-1.4px;text-decoration:none;color:var(--ink);line-height:1}
:root[lang="ar"] .brand,:root[lang="ja"] h1,:root[lang="ko"] h1,:root[lang="zh-Hant"] h1,:root[lang="zh-Hans"] h1,:root[lang="th"] h1,:root[lang="ar"] h1,:root[lang="ar"] h2{letter-spacing:normal}
.brand-mark{color:var(--blue);display:grid;place-items:center}
.bar nav{display:flex;align-items:center;gap:8px;margin-inline-start:auto}
.nav-link,.language-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 12px;font-size:.925rem;font-weight:600;text-decoration:none;white-space:nowrap;color:var(--muted);border-radius:6px}
.nav-link[aria-current=page]{color:var(--blue);background:#ecf1fa}
.nav-link:hover,.language-toggle:hover{background:#eef2f5;color:var(--ink)}
.language{position:relative;border-inline-start:1px solid var(--line);padding-inline-start:20px}
.language-toggle{padding-inline:4px;color:var(--ink)}
.language-list{position:absolute;inset-inline-end:0;top:calc(100% + 9px);z-index:20;min-width:220px;max-width:min(280px,92vw);max-height:min(72vh,440px);overflow-y:auto;overscroll-behavior:contain;background:white;padding:6px;border:1px solid var(--line);border-radius:8px;box-shadow:0 5px 18px #1839511f}
.language-list a{display:block;padding:9px 10px;border-radius:4px;text-decoration:none;color:var(--ink);font-size:.93rem}.language-list a:hover,.language-list a[aria-current]{background:#eef3fa;color:var(--blue);font-weight:600}
.language-group{padding:4px 6px;margin:4px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.language-group-label{display:block;padding:4px 4px 2px;font-size:.8rem;font-weight:700;color:var(--muted)}
.language-group-scripts{display:grid;grid-template-columns:1fr 1fr;gap:4px}
.language-group-scripts a{padding:7px 8px;text-align:center}
.saved-count{border-radius:20px;background:var(--blue);color:#fff;font-size:.75rem;min-width:18px;text-align:center}
.hero{margin:32px 0 34px;display:grid;grid-template-columns:1.16fr 1fr;position:relative;overflow:hidden;border-radius:15px;background:#eaf1f6;isolation:isolate;border:1px solid #dae3ea}
.hero-copy{padding:clamp(30px,3.65vw,55px);padding-inline-end:15px;position:relative;z-index:1;align-self:center}
h1,h2,h3,p{margin:0}
h1,h2,h3,.quick-item strong,.tool-row strong{font-family:var(--display)}
h1{font-size:clamp(2.6rem,5.1vw,4.6rem);line-height:1.05;font-weight:720;letter-spacing:-.058em;text-wrap:balance}
.hero h1{max-width:10em}
.hero-copy p{font-size:clamp(1rem,1.35vw,1.16rem);line-height:1.53;color:#42576a;max-width:430px;margin-top:17px}
.hero-art{position:relative;min-width:0;min-height:322px;background:#c5d6e5}
.hero-art img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;object-position:54% 50%}
.hero-art:after{content:"";position:absolute;inset:0 auto 0 -1px;width:18%;background:linear-gradient(90deg,#eaf1f6 0%,transparent)}
[dir="rtl"] .hero-art:after{inset:0 -1px 0 auto;background:linear-gradient(270deg,#eaf1f6 0%,transparent)}
.search-box{display:flex;align-items:center;gap:12px;background:white;border:1px solid #bdcbd5;border-radius:9px;padding-block:0;padding-inline:16px 13px;height:51px;max-width:500px;color:#496274}
.hero .search-box{margin-top:24px;max-width:438px}
.search-box:focus-within{outline:2px solid var(--blue);outline-offset:2px}
.search-box input{height:100%;min-width:0;flex:1;border:0;background:transparent;outline:0;font-size:1rem}
.search-box input::placeholder{color:#627280;opacity:1}
kbd{font:14px var(--body);border:1px solid #d4dce2;border-radius:4px;min-width:22px;text-align:center;line-height:24px;color:#6a7884;background:#f9fafb}
.sect-head{display:flex;align-items:baseline;gap:12px;margin-bottom:15px}
h2{font-size:clamp(1.45rem,2vw,1.85rem);line-height:1.2;letter-spacing:-.04em;font-weight:710}
.quick-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.quick-item{display:flex;align-items:center;gap:14px;min-height:96px;padding:16px 18px;border-radius:10px;text-decoration:none;color:var(--ink);border:1px solid var(--tile-border);background:var(--tile-bg)}
.q0{--tile-bg:#f0f4ec;--tile-border:#d9e1d2;--tile-fg:#3f633e;--icon-bg:#e1ead7}
.q1{--tile-bg:#faf2e8;--tile-border:#e9ddcd;--tile-fg:#93592d;--icon-bg:#f3e2ca}
.q2{--tile-bg:#eef2fa;--tile-border:#d9e0ee;--tile-fg:#485f98;--icon-bg:#dfe6f6}
.quick-art,.row-icon{display:grid;place-items:center;flex:none}
.quick-art{width:51px;height:54px;border-radius:10px;color:var(--tile-fg);background:var(--icon-bg)}
.quick-item strong,.quick-item small,.tool-row strong,.tool-row small{display:block}
.quick-item strong{font-size:1.07rem;line-height:1.3;letter-spacing:-.025em}
.quick-item small{color:#4d5c64;font-size:.9rem;line-height:1.4;margin-top:3px}
.quick-item:hover,.tool-row:hover{border-color:#8a9eb1}.quick-item:hover strong,.tool-row a:hover strong{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.directory{margin-top:34px;margin-bottom:58px;scroll-margin-top:16px}
.directory .sect-head{margin-bottom:15px}
#result-count{font-size:.92rem;color:var(--muted)}
.filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:19px}
.filter{display:flex;align-items:center;gap:7px;padding:8px 13px;border:1px solid #d5dce0;border-radius:7px;color:#405369;background:white;font-weight:560;font-size:.91rem;min-height:37px}
.filter[aria-pressed=true]{background:var(--blue);border-color:var(--blue);color:white}
.filter[aria-pressed=false]:hover{border-color:#8498ac;background:#f6f8fa}
.listing{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 25px;border-top:1px solid var(--line)}
.tool-row{position:relative;min-width:0;display:flex;align-items:center;border-bottom:1px solid var(--line)}
.tool-row a{display:flex;align-items:center;gap:15px;align-self:stretch;min-width:0;flex:1;padding-block:15px;padding-inline:1px 6px;text-decoration:none;color:var(--ink)}
.row-icon{width:39px;height:41px;border-radius:6px}
.row-icon.files,.row-icon.pdf,.row-icon.images{color:#375f51;background:#eaf0e8}.row-icon.money{color:#80552f;background:#f6eddf}.row-icon.dates{color:#57547f;background:#ebeaf2}.row-icon.math{color:#3e6176;background:#e6eff4}.row-icon.developer{color:#29526b;background:#e8f0f5}.row-icon.security{color:#784a2a;background:#f7ece4}.row-icon.text{color:#49594b;background:#ecf1ec}.row-icon.generators{color:#5f4c76;background:#f0ecf5}
.tool-row strong{font-size:1.025rem;line-height:1.3;font-weight:650;letter-spacing:-.015em}
.tool-row small{color:var(--muted);margin-top:3px;font-size:.91rem;line-height:1.45}
.bookmark{display:grid;place-items:center;flex:none;width:35px;height:38px;border-radius:6px;color:#708195}
.bookmark:hover{background:#eaf0f7}.bookmark[aria-pressed=true]{color:var(--blue)}.bookmark[aria-pressed=true] svg{fill:#dbe7fd}
.empty{text-align:center;background:#f1f4f6;padding:40px 18px}.empty h3{margin:10px 0 6px}.empty p{color:var(--muted);margin-bottom:15px}
.breadcrumbs,.crumb{display:flex;align-items:center;gap:10px;font-size:.92rem;color:var(--muted);margin:29px 0 18px}
.breadcrumbs a{color:var(--muted);text-decoration:none}.breadcrumbs a:hover{text-decoration:underline}
.tool-heading{display:flex;align-items:flex-start;gap:16px;margin:20px 0 27px}.tool-heading h1,.sub-intro h1,.prose h1{font-size:clamp(2.15rem,4.2vw,3.65rem);max-width:900px;letter-spacing:-.05em;text-wrap:pretty}
.tool-heading p,.sub-intro p:not(.crumb){font-size:1.1rem;line-height:1.55;color:var(--muted);margin-top:12px;max-width:760px}
.tool-heading>.bookmark{margin-inline-start:auto;border:1px solid var(--line);background:white;width:43px;height:42px}
.work-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.9fr);gap:20px}
.calc-panel,.file-workspace,.result-panel{border-radius:12px;padding:clamp(19px,2.7vw,32px);border:1px solid var(--line);background:white;min-width:0}
/* Reserve the drop zone, instructions and rows of options before the file module loads. */
.file-workspace {
  --file-base: clamp(253px, calc(200px + 6vw), 275px);
  --option-rows: 0;
  min-block-size: calc(var(--file-base) + var(--option-rows) * 84px);
}
.file-workspace:where([data-option-count]:not([data-option-count="0"])) { --option-rows: 1; }
@media (max-width: 875px) {
  .file-workspace[data-option-count="4"] { --option-rows: 2; }
}
@media (max-width: 680px) {
  .file-workspace[data-option-count="3"] { --option-rows: 2; }
}
@media (max-width: 465px) {
  .file-workspace { --file-base: 280px; }
  .file-workspace[data-option-count="2"] { --option-rows: 2; }
  .file-workspace[data-option-count="3"] { --option-rows: 3; }
  .file-workspace[data-option-count="4"] { --option-rows: 4; }
}
.result-panel{background:#edf3f7;border-color:#d8e2e9;align-self:start}
.calc-panel h2,.result-panel h2{font-size:1.3rem;margin-bottom:21px}
.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:17px 15px}
.field{min-width:0}.field label,.file-workspace label{font-size:.94rem;font-weight:600;line-height:1.35}
.field>label,.field small{display:block}.field small{font-size:.83rem;color:var(--muted);margin-top:5px;line-height:1.4}
.field input,.field select,.field textarea,.file-workspace .control,.file-workspace input:not([type=file]):not([type=checkbox]):not([type=range]),.file-workspace select,.file-workspace textarea{width:100%;border:1px solid #afbfc9;border-radius:6px;background-color:#fff;padding:9px 11px;min-height:42px;margin-top:6px;font:inherit}
[dir="rtl"] .field input[data-number]{text-align:right;unicode-bidi:plaintext}
select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%234e6370' stroke-width='1.6'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;padding-inline-end:31px!important}
[dir="rtl"] select{background-position:left 10px center}
textarea{resize:vertical}.field:has(textarea){grid-column:1/-1}
.actions{display:flex;gap:10px;margin-top:23px;align-items:center;flex-wrap:wrap}
.button,.button-secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border-radius:6px;padding:9px 16px;font-size:.96rem;font-weight:650;text-decoration:none;line-height:1.3}
.button{color:#fff;background:var(--blue);border:1px solid var(--blue)}.button:hover{background:var(--blue-dark)}
.button-secondary{color:var(--blue);border:1px solid #bccbd6;background:white}.button-secondary:hover{background:#f1f6fa}
.result-label{color:#38546b;font-size:.94rem}.result-value,.result-idle{display:block;font-size:clamp(1.85rem,3.2vw,3rem);line-height:1.13;font-weight:650;letter-spacing:-.045em;color:#214a73;overflow-wrap:anywhere;margin:6px 0 15px;font-variant-numeric:tabular-nums}
.result-table{margin:12px 0 0}.result-table>div{display:flex;justify-content:space-between;gap:14px;padding:8px 0;border-top:1px solid #d2dfe7;align-items:baseline}.result-table dt,.result-table dd{font-size:.94rem;line-height:1.45}.result-table dd{margin:0;text-align:end;font-weight:600;white-space:pre-line;overflow-wrap:anywhere}
.result-note,.notice{font-size:.92rem;line-height:1.55;color:#425a6b;margin-top:14px}.error-message{color:#912f28;line-height:1.5}
.method,.related{margin:32px 0}.method,.tool-guide{max-width:820px;overflow-wrap:anywhere}.method h2,.related h2{font-size:1.45rem;margin-bottom:13px}.method p,.method li,.prose p{line-height:1.7;color:#415464;margin:8px 0}.method h3{font-size:1rem;margin-top:12px}.method ul,.method ol{margin-top:5px;padding-inline-start:21px}
.ad-unit{text-align:center;min-height:120px;margin-top:25px}.ad-unit>span{display:block;font-size:.82rem;color:var(--muted)}
.prose{max-width:760px;margin:22px 0 90px}.prose h1{margin-bottom:20px}.prose p{margin:16px 0}
.sub-intro{margin:32px 0 20px}body[data-kind=saved] .directory .sect-head h2{display:none}
footer{border-top:1px solid var(--line);background:#f4f6f6;padding:26px 0;margin-top:35px}
.foot{display:flex;align-items:center;justify-content:space-between;gap:22px}.brand-foot{font-size:21px}.brand-foot .icon{width:27px;height:25px}
.foot p{font-size:.87rem;color:var(--muted);margin-top:6px}.foot nav{display:flex;gap:18px;flex-wrap:wrap}.foot nav a,.foot nav button{font-size:.9rem;text-decoration:none;color:#425568}.foot nav a:hover{text-decoration:underline}
[dir="rtl"] code,[dir="rtl"] pre,[dir="rtl"] .code-input,[dir="rtl"] .file-text-preview{direction:ltr;unicode-bidi:isolate;text-align:left}
@media(min-width:1600px){.hero-art{min-height:360px}}
@media(max-width:900px){.wrap{width:calc(100% - 48px)}.bar{gap:15px}.language{padding-inline-start:14px}.quick-list{gap:10px}.quick-item{padding:13px;gap:10px}.quick-art{width:40px;height:45px}.quick-item small{font-size:.85rem}.listing{column-gap:18px}.hero-art{min-height:315px}.work-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}}
@media(max-width:690px){
  .wrap{width:calc(100% - 32px)}.bar{min-height:62px;gap:6px}.brand{font-size:21px;gap:4px;flex:0 0 auto;letter-spacing:-.9px}.brand-mark>.icon{width:28px}
  .bar nav{gap:2px;min-width:0}.nav-link{padding:7px}.nav-link span{display:none}.nav-link .icon{width:18px;height:18px}.language{min-width:0;flex:0 1 auto;padding-inline-start:6px}.language-toggle{gap:4px;max-width:100%;padding-inline:2px}.language-toggle span{font-size:.83rem;min-width:0;max-width:118px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .hero{margin:18px 0 24px;grid-template-columns:1fr;border-radius:12px}.hero-copy{padding:22px 18px 20px;align-self:start}.hero h1{font-size:clamp(2.1rem,7.8vw,3.25rem);max-width:72%;text-wrap:pretty}.hero-copy p{max-width:71%;font-size:.95rem;line-height:1.42;margin-top:9px}
  .hero-art{position:absolute;inset-block:0 auto;inset-inline-end:0;inset-inline-start:auto;width:31%;height:calc(100% - 72px);min-height:0;z-index:0}.hero-art img{object-fit:cover;object-position:50% 55%}.hero-art:after{width:25%}
  .hero .search-box{margin-top:16px;max-width:none;height:46px}.search-box kbd{display:none}
  .quick-list{grid-template-columns:1fr;gap:7px}.quick-item{min-height:59px;padding:8px 12px;gap:12px;border-radius:7px}.quick-art{width:38px;height:38px;border-radius:5px}.quick-art .icon{width:24px;height:24px}.quick-item strong{font-size:1rem}.quick-item small{margin-top:1px;font-size:.87rem}
  .sect-head{margin-bottom:10px}.directory{margin-top:24px}.filters{gap:5px;margin-bottom:12px}.filter{min-height:34px;padding:6px 9px;font-size:.86rem;gap:5px}.filter .icon{width:14px;height:14px}
  .listing{grid-template-columns:1fr}.tool-row a{padding-block:12px;padding-inline:0;gap:10px}.row-icon{width:35px;height:36px}
  .work-grid{grid-template-columns:minmax(0,1fr);gap:12px}.result-panel{order:2}.result-table dt,.result-table dd{font-size:.9rem}.tool-heading{margin:14px 0 17px}.tool-heading p{font-size:1rem}.breadcrumbs{font-size:.86rem;margin-top:19px}.foot{align-items:flex-start;flex-direction:column}.foot nav{gap:16px}
}
@media(max-width:360px){.bar{gap:3px}.brand{font-size:18px}.nav-link{padding:5px}.language-toggle>.icon:first-child{display:none}.language-toggle span{max-width:86px}.hero-copy p{max-width:78%}.hero-art{width:26%}.quick-item small{font-size:.84rem}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.edition-links{display:flex;flex-wrap:wrap;gap:8px;max-width:900px;margin:20px 0}.edition-links a{padding:7px 10px;background:#f0f4f7;border:1px solid var(--line);border-radius:5px;font-size:.91rem}.back-pay{margin-top:18px}
.result-prompt{font:1rem/1.5 var(--body);letter-spacing:0;color:var(--muted);margin:0}
@media(max-width:690px){.nav-link span{display:inline;position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}}

.hero-copy .hero-privacy strong {display:block;color:var(--ink, #182839);font-size:1.18em;line-height:1.35;margin-block-end:.2em}
.foot {flex-wrap:wrap}.foot small {flex-basis:100%}
