*{box-sizing:border-box}body{margin:0;font:15px/1.6 system-ui,sans-serif;color:#192c28;background:#f5f7f7}header{border-bottom:1px solid #d9e3e0;background:white}header>div,main,footer{max-width:1150px;margin:auto;padding:22px}header>div{display:flex;justify-content:space-between}a{color:#126653;text-decoration:none}h1{font-size:36px;line-height:1.2;margin:12px 0}h2{font-size:20px}p{color:#5a6d67}.layout{display:grid;grid-template-columns:210px 1fr;gap:32px;margin-top:24px}nav a{display:block;padding:10px;border-radius:5px}nav a.active{background:#dcefe7;font-weight:bold}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.tile{border:1px solid #d8e3df;border-radius:7px;padding:22px;background:white}.tile h2{margin:0 0 8px}.tool{background:white;border:1px solid #d8e3df;padding:26px;border-radius:7px}label{display:block;font-weight:600;margin:14px 0 5px}input,textarea,select{width:100%;font:inherit;padding:10px;border:1px solid #b9ccc5;border-radius:4px}textarea{min-height:140px}button,.btn{font:inherit;background:#176b53;color:white;border:0;border-radius:4px;padding:10px 17px;margin:15px 8px 8px 0;cursor:pointer}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#eff5f2;padding:18px}output{display:block}table{width:100%;border-collapse:collapse}td,th{text-align:left;padding:10px;border-bottom:1px solid #ddd}.row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.error{color:#b22424}.preview img{max-width:100%}footer{font-size:13px;color:#60756d}@media(max-width:750px){.layout{grid-template-columns:1fr}nav{display:flex;overflow:auto}nav a{white-space:nowrap}.grid{grid-template-columns:1fr}.row{grid-template-columns:1fr}h1{font-size:30px}}@media print{header,nav,footer,.controls,.tool>label,.tool>input,.tool>textarea,.tool>select,button,h1,.intro{display:none!important}.layout{display:block}.tool{border:0;padding:0}main{padding:0}.document{display:block!important}}
/* Unified workspace theme; shared by all localized tool pages. */
.md-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;margin-top:20px}.md-layout>div,.md-layout>section{min-width:0}.md-layout h2{font-size:13px;margin:20px 0 7px;line-height:1.7}.md-source{height:460px;font:13px/1.7 ui-monospace,Consolas,monospace;tab-size:2}.md-preview{height:460px;overflow:auto;padding:22px;border:1px solid #dfe5ec;border-radius:5px;background:#fafcfd;overflow-wrap:anywhere}.md-preview h1{font-size:26px}.md-preview h2{font-size:21px}.md-preview h3{font-size:18px}.md-preview pre{font-size:12px;overflow:auto;white-space:pre}.md-preview img{max-width:100%;height:auto}.md-preview blockquote{margin:16px 0;padding-left:15px;border-left:3px solid #8ea99b}.md-preview table{font-size:12px}.md-preview ul,.md-preview ol{padding-left:22px}#md-output{min-height:140px;font:13px/1.7 ui-monospace,Consolas,monospace}#md-error:empty{display:none}#md-status{font-size:13px;color:#116449}@media(max-width:900px){.md-layout{grid-template-columns:minmax(0,1fr)}.md-source,.md-preview{height:340px}}
.codec-preview{margin-top:20px;max-height:500px;overflow:auto;background:#edf0f4}.codec-preview img{display:block;max-width:100%;height:auto;margin:auto}.codec-preview img[hidden]{display:none}#codec-text{font-family:ui-monospace,Consolas,monospace;font-size:13px}#codec-error:empty{display:none}#codec-status{font-size:13px;color:#116449}
.code-toolbar{display:flex;align-items:end;gap:16px;flex-wrap:wrap}.code-toolbar>div{min-width:130px}.code-toolbar label{margin-top:0}.code-toolbar button{margin-bottom:0}.code-input{min-height:230px;font:13px/1.7 ui-monospace,Consolas,monospace;tab-size:2}.code-output{overflow:auto;max-height:650px;background:#fff;border:1px solid #dfe5ec;border-radius:5px;min-height:140px;font:13px/1.75 ui-monospace,Consolas,monospace;tab-size:2}.code-line{display:flex;min-width:max-content}.code-line:nth-child(odd){background:#f4f7fa}.code-line-number{width:52px;flex:0 0 52px;text-align:right;padding:0 12px;color:#8592a2;border-right:1px solid #dfe5ec;user-select:none}.code-line code{white-space:pre;padding:0 14px;color:#245c78}#code-error:empty{display:none}#code-status{font-size:13px;color:#116449}
.mailto-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px}.mailto-layout h2{margin:0 0 18px;font-size:18px}.mailto-editor{min-width:0}.mailto-preview{background:#eef4f0;border-left:3px solid #75a58c;padding:24px;min-width:0;align-self:stretch}.mailto-preview h3{font-size:18px;font-weight:550;margin:16px 0 22px}.mailto-preview dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 12px;font-size:13px}.mailto-preview dt{color:#687180}.mailto-preview dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.mailto-body{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:28px;font-size:14px}.mailto-results{border-top:1px solid #dfe5ec;margin-top:28px;padding-top:8px}.mailto-results textarea{min-height:82px;font:13px/1.6 ui-monospace,Consolas,monospace;background:#f8fafc}#mailto-error:empty{display:none}#mailto-status{font-size:13px;color:#116449}@media(max-width:850px){.mailto-layout{grid-template-columns:minmax(0,1fr)}.mailto-preview{min-height:260px}}
.email-output{min-height:340px;font-family:ui-monospace,Consolas,monospace;line-height:1.55}.email-notice{font-size:13px;border-left:3px solid #4870c9;padding:10px 14px;background:#f1f5fc;margin-top:0}.email-hint{font-size:12px}.email-actions{display:flex;flex-wrap:wrap;gap:8px}.email-actions button{margin-right:0}#email-status{font-size:13px;color:#116449}#email-error:empty{display:none}
.suite-output{min-height:280px;font-family:Consolas,monospace;white-space:pre;overflow:auto}
.suite-note{font-size:13px;color:#596575;line-height:1.6}
.suite-frame{display:block;width:100%;height:420px;border:1px solid #d5dce3;background:#fff;margin:16px auto;box-sizing:border-box}
.tool-guide{display:grid;grid-template-columns:1fr 1.6fr;gap:32px;margin-top:28px;padding:24px 0;border-top:1px solid #dce3e9;line-height:1.8;overflow-wrap:anywhere}
.tool-guide h2{font-size:18px;margin:0 0 8px}
.tool-guide p{margin:0;color:#596575}
@media(max-width:700px){.tool-guide{grid-template-columns:1fr;gap:20px}}
.world-table{overflow-x:auto;margin-top:24px}
.world-table table{width:100%;border-collapse:collapse;text-align:left}
.world-table th,.world-table td{padding:12px;border-bottom:1px solid #dce3e9;min-width:180px}
.world-table small{color:#596575}

/* Cost-desk reference theme: shared by every language and category. */
:root{color-scheme:light;--ink:#17223b;--muted:#65748b;--paper:#f3f6fc;--white:#fff;--line:#dce4ef;--green:#2468e8;--blue:#2468e8;--navy:#142443;--lime:#e8effd;--shadow:none}
body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.65 'Segoe UI','Microsoft Yahei',sans-serif;letter-spacing:0}
header{background:var(--navy);color:white;border:0}
header>div,main,footer{max-width:1200px;margin:auto;padding:24px}
header>div{min-height:148px;display:flex;align-items:center;justify-content:space-between;gap:24px}
header a{font-size:30px;color:white;letter-spacing:-.02em}
header a:before{content:none}
header select{width:auto;max-width:160px;color:var(--ink);background:white;border-color:#cbd5e1;font-size:14px;padding:10px 12px}
main{min-height:calc(100vh - 240px);padding-top:28px;padding-bottom:40px}
.layout{display:grid;grid-template-columns:184px minmax(0,1fr);gap:24px;margin-top:0}
nav{align-self:start;position:sticky;top:24px;background:white;border:1px solid var(--line);border-radius:16px;padding:12px}
nav a{display:flex;align-items:center;gap:10px;padding:11px 12px;margin:3px 0;border-radius:8px;color:var(--ink);font-size:14px;font-weight:400;transition:background .15s}
nav a:before{content:none}
nav a:hover{background:#f3f6fc;color:var(--blue)}
nav a.active{background:#e8effd;color:#2457a7;font-weight:600}
#content{min-width:0}
h1{font-size:34px;line-height:1.3;margin:0 0 12px;font-weight:700;overflow-wrap:anywhere;letter-spacing:0}
h2{font-size:20px;line-height:1.45}
#content>p{max-width:none;margin:0 0 22px;color:var(--muted);line-height:1.8}
#content>a:not(.tile){display:inline-block;margin:0 0 16px;font-size:14px;color:var(--blue)}
a{color:var(--blue)}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.tile{display:flex;flex-direction:column;align-items:flex-start;min-height:180px;background:white;border:1px solid var(--line);border-radius:16px;padding:24px;color:var(--ink);box-shadow:none;transition:border-color .15s,box-shadow .15s}
.tile:before,.tile:after{content:none}
.tile:hover{transform:none;border-color:#9bb8ee;box-shadow:0 4px 16px #14244308}
.tile h2{font-size:20px;line-height:1.45;margin:0 0 12px;font-weight:700;overflow-wrap:anywhere}
.tile p{font-size:14px;line-height:1.8;margin:0;color:var(--muted)}
.tool,.panel,.card{background:white;border:1px solid var(--line);border-radius:16px;padding:24px;box-shadow:none}
.tool>label:first-child{margin-top:0}
.tool h2{font-size:20px;color:var(--ink)}
label{display:block;margin:14px 0 6px;font-size:15px;font-weight:400;color:var(--ink)}
input,textarea,select{min-width:0;width:100%;font:inherit;color:var(--ink);background:white;border:1px solid #cbd5e1;border-radius:8px;padding:10px}
input:focus,textarea:focus,select:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px #2468e81a}
input[type=file]{padding:16px;background:#f3f6fc;border:1px dashed #b3c7e9}
input[type=file]::file-selector-button{font:inherit;border:1px solid #cbd5e1;border-radius:6px;background:white;color:var(--ink);padding:8px 12px;margin-right:12px;cursor:pointer}
input[type=checkbox],input[type=radio]{width:auto;accent-color:var(--blue)}
textarea{min-height:170px;resize:vertical}
button,.btn,.button{display:inline-block;font:inherit;font-weight:400;background:var(--blue);border:0;border-radius:8px;padding:12px 19px;color:white;cursor:pointer;text-decoration:none;margin:12px 8px 0 0}
button:hover,.btn:hover,.button:hover{background:#1957cd}
button.secondary,.button.soft{background:#e8effd;color:#2457a7}
button.secondary:hover{background:#dce7fc}
button:disabled,.btn:disabled{opacity:.5;cursor:not-allowed}
a:focus-visible,button:focus-visible{outline:3px solid #91b4f4;outline-offset:3px}
pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.8;background:#f3f6fc;color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:20px;margin:22px 0 0}
td,th{padding:12px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
th{font-size:14px;color:var(--ink);background:#f3f6fc}
.row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.preview img{max-width:100%;height:auto;border-radius:8px}
output#result{white-space:pre-line;overflow-wrap:anywhere;line-height:1.8;margin-top:22px;padding:20px;border:1px solid var(--line);border-radius:8px;background:#f3f6fc}
output#result:empty{display:none}
.kpi,.metric-value{font-size:42px;color:var(--blue);font-weight:700}
.note,.email-notice{background:#edf3ff;color:#2457a7;border-color:#b3c7e9;border-radius:8px;padding:14px}
.mailto-preview{background:#f3f6fc;border:1px solid var(--line);border-radius:12px;padding:24px}
.md-preview,.code-output,.suite-frame{border-color:var(--line);border-radius:8px}
.md-preview blockquote{border-color:#b3c7e9}
.codec-preview{background:#f3f6fc;border-radius:8px}
.code-line:nth-child(odd){background:#f3f6fc}
.tool-guide{display:grid;grid-template-columns:1fr 1.6fr;gap:28px;margin-top:20px;background:white;border:1px solid var(--line);border-radius:16px;padding:24px;line-height:1.8;overflow-wrap:anywhere}
.tool-guide h2{font-size:20px;margin:0 0 10px}
.tool-guide p,.suite-note,.world-table small{color:var(--muted)}
footer{border-top:0;font-size:13px;color:var(--muted)}
footer p{margin:0;color:inherit}
@media(max-width:1100px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.layout{grid-template-columns:168px minmax(0,1fr);gap:20px}}
@media(max-width:760px){header>div,main,footer{padding-left:20px;padding-right:20px}header>div{min-height:120px;gap:16px}header a{font-size:25px}header select{max-width:130px!important;font-size:13px}.layout{grid-template-columns:minmax(0,1fr);gap:22px}nav{display:flex;position:static;overflow:auto;gap:6px;padding:8px;border:1px solid var(--line)}nav a{flex:0 0 auto;white-space:nowrap;margin:0;padding:9px 12px}h1{font-size:27px}.row,.tool-guide{grid-template-columns:minmax(0,1fr)}.tool,.tile,.tool-guide{padding:22px}.tile{min-height:180px}.tool-guide{gap:20px}.kpi,.metric-value{font-size:36px}}
@media(max-width:480px){.grid{grid-template-columns:minmax(0,1fr)}.tile{min-height:0}header a{font-size:22px}header select{max-width:112px!important}.tool{padding:20px}pre{padding:16px}button,.btn{max-width:100%}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@media print{body{background:white}header,nav,footer,button,.btn{display:none!important}main{max-width:none;padding:0}.layout{display:block}.tool{border:0;box-shadow:none;padding:0}.tool-guide{break-inside:avoid}.grid{display:block}.tile{break-inside:avoid}}
