.stamp-page{color:#172033}
.stamp-page [hidden]{display:none!important}
.stamp-heading{margin-bottom:1.4rem}
.stamp-eyebrow{margin:0 0 .55rem;color:#087f72;font-size:.84rem;font-weight:800}
.stamp-heading h1{margin:0 0 .75rem;color:#0f172a;font-size:clamp(2rem,4vw,3rem);line-height:1.12;letter-spacing:0}
.stamp-heading>p{max-width:820px;margin:0;color:#596b82;line-height:1.75}
.stamp-jump{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}
.stamp-jump a{padding:.55rem .75rem;border:1px solid #cfdae6;border-radius:6px;background:#fff;color:#34516e;font-size:.82rem;font-weight:700;text-decoration:none}
.stamp-reference,.stamp-calculator,.stamp-section,.stamp-faq,.stamp-sources{margin-top:1.15rem;border:1px solid #d7e1ec;border-radius:8px;background:#fff}
.stamp-reference{padding:1.25rem;border-left:4px solid #087f72;background:#f4faf8}
.stamp-reference h2{margin:0;color:#153349;font-size:1.25rem;letter-spacing:0}
.stamp-reference>div{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.8rem}
.stamp-reference span{padding:.4rem .6rem;border-radius:5px;background:#dff3ee;color:#17675d;font-size:.78rem;font-weight:800}
.stamp-reference>p:last-child{margin:.8rem 0 0;color:#5f746f;line-height:1.65}
.stamp-calculator{overflow:hidden;box-shadow:0 14px 36px rgba(15,23,42,.06)}
.stamp-workspace{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(280px,.92fr)}
.stamp-form{padding:1.35rem;background:#f8fafc}
.stamp-form header h2{margin:0;color:#142d46;font-size:1.35rem;letter-spacing:0}
.stamp-form header>p:last-child{margin:.45rem 0 0;color:#6b7d92;line-height:1.6}
.stamp-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem;margin-top:1rem}
.stamp-field{display:block;min-width:0;color:#2d435c;font-size:.85rem;font-weight:800}
.stamp-wide{grid-column:1/-1}
.stamp-field>span{display:block;margin-bottom:.4rem}
.stamp-field select,.stamp-field input{width:100%;height:49px;border:1px solid #cbd8e8;border-radius:7px;background:#fff;color:#172033;padding:0 .8rem}
.stamp-field select{line-height:1.3}
.stamp-field small{display:block;margin-top:.42rem;color:#75869a;font-weight:500;line-height:1.55}
.stamp-unit{display:flex;align-items:center;border:1px solid #cbd8e8;border-radius:7px;background:#fff;overflow:hidden}
.stamp-unit input{min-width:0;border:0;border-radius:0;text-align:right;font-weight:800}
.stamp-unit b{padding:0 .8rem;color:#5b6f86;white-space:nowrap}
.stamp-korean{display:block;margin-top:.45rem;color:#087f72;font-size:.86rem}
.stamp-quick{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.65rem}
.stamp-quick button{min-height:38px;padding:.45rem .62rem;border:1px solid #cedae8;border-radius:6px;background:#fff;color:#405973;font-size:.76rem;font-weight:700;cursor:pointer}
.stamp-actions{display:flex;gap:.55rem;margin-top:1rem}
.stamp-actions button,.stamp-copy{min-height:47px;border:1px solid #087f72;border-radius:7px;padding:.65rem 1rem;background:#087f72;color:#fff;font-weight:800;cursor:pointer}
.stamp-actions .secondary{border-color:#cbd8e8;background:#fff;color:#344d67}
.stamp-status{min-height:1.5rem;margin:.85rem 0 0;padding:.8rem .9rem;border-radius:7px;background:#edf2f7;color:#52667e;line-height:1.55}
.stamp-status[data-type=success]{background:#e7f6f1;color:#17685a}
.stamp-status[data-type=error]{background:#fff0ef;color:#9b3c37}
.stamp-result{padding:1.35rem;background:#13293d;color:#fff}
.stamp-result-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;padding-bottom:1rem;border-bottom:1px solid rgba(255,255,255,.16)}
.stamp-result-head p{margin:0;color:#a7f3d0;font-size:.82rem;font-weight:800}
.stamp-result-head strong{display:block;margin-top:.3rem;color:#fff;font-size:clamp(1.8rem,4vw,2.55rem);line-height:1.15;overflow-wrap:anywhere}
.stamp-result-head>span{padding:.4rem .6rem;border-radius:5px;background:#dff8ef;color:#176a58;font-size:.76rem;font-weight:900}
.stamp-result-head>span[data-status=taxable]{background:#fff0d2;color:#70531e}
.stamp-result-head>span[data-status=pending]{background:#e2e8f0;color:#4b5d70}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.stamp-breakdown{margin-top:.8rem}
.stamp-breakdown>div{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:.65rem;padding:.65rem 0;border-bottom:1px solid rgba(255,255,255,.12)}
.stamp-breakdown span{color:#aebed0;font-size:.76rem}
.stamp-breakdown strong{color:#f8fafc;font-size:.88rem;text-align:right;overflow-wrap:anywhere}
.stamp-breakdown .stamp-total-row strong{color:#99f6e4;font-size:1.05rem}
.stamp-reason{margin:1rem 0 0;padding:.8rem;border-radius:7px;background:rgba(255,255,255,.08);color:#e2e8f0;font-size:.84rem;line-height:1.65}
.stamp-warnings{margin:.75rem 0 0;padding-left:1.1rem;color:#f9dba3;font-size:.8rem;line-height:1.6}
.stamp-warnings:empty{display:none}
.stamp-split{margin-top:1rem;padding:1rem;border:1px solid rgba(255,255,255,.16);border-radius:7px;background:rgba(255,255,255,.05)}
.stamp-split span,.stamp-split strong{display:block}
.stamp-split span{color:#b9c8d7;font-size:.76rem}
.stamp-split strong{margin:.25rem 0;color:#fff;font-size:1.12rem}
.stamp-split p{margin:.5rem 0 0;color:#b9c8d7;font-size:.75rem;line-height:1.6}
.stamp-copy{width:100%;margin-top:1rem;border-color:#fff;background:#fff;color:#17334b}
.stamp-legal{margin:1rem 0 0;padding:1rem;border:1px solid #f0d8a1;border-radius:7px;background:#fff8e6;color:#725d2e;line-height:1.65}
.stamp-section,.stamp-faq,.stamp-sources{padding:1.4rem}
.stamp-section h2,.stamp-faq h2,.stamp-sources h2,.stamp-related h2{margin:0 0 .7rem;color:#142d46;font-size:1.42rem;letter-spacing:0}
.stamp-section>p,.stamp-sources>p{margin:.45rem 0 0;color:#5e7188;line-height:1.75}
.stamp-table-wrap{margin-top:1rem;overflow-x:auto;border:1px solid #d8e2ed;border-radius:7px}
.stamp-table-wrap table{width:100%;min-width:480px;margin:0;border-collapse:collapse}
.stamp-table-wrap th,.stamp-table-wrap td{padding:.75rem .85rem;border-bottom:1px solid #e3eaf1;text-align:left}
.stamp-table-wrap thead th{background:#eef7f5;color:#174e48;font-size:.82rem}
.stamp-table-wrap tbody th{color:#2a4057;font-weight:700}
.stamp-table-wrap tbody td{color:#5f7288;font-weight:700}
.stamp-table-wrap tr:last-child th,.stamp-table-wrap tr:last-child td{border-bottom:0}
.stamp-note{padding:.85rem 1rem;border-left:3px solid #087f72;background:#f0f8f6!important;color:#486760!important}
.stamp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-top:1rem}
.stamp-grid section{padding:1rem;border:1px solid #dce5ee;border-radius:7px;background:#f8fafc}
.stamp-grid h3{margin:0;color:#243a52;font-size:1rem;letter-spacing:0}
.stamp-grid p{margin:.45rem 0 0;color:#62758b;font-size:.88rem;line-height:1.7}
.stamp-grid strong{color:#0d655c}
.stamp-section a{color:#087f72;font-weight:800}
.stamp-faq details{border-top:1px solid #dfe7ef}
.stamp-faq details:last-child{border-bottom:1px solid #dfe7ef}
.stamp-faq summary{padding:1rem .15rem;color:#263d57;font-weight:800;cursor:pointer}
.stamp-faq details p{margin:0;padding:0 .15rem 1rem;color:#607287;line-height:1.7}
.stamp-sources>div{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}
.stamp-sources a{padding:.62rem .75rem;border:1px solid #cedae6;border-radius:6px;background:#f8fafc;color:#17675d;font-size:.8rem;font-weight:700;text-decoration:none}
.stamp-related{margin-top:1.2rem;padding-top:1.35rem;border-top:1px solid #d7e1ec}
.stamp-related>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}
.stamp-related a{min-width:0;padding:1rem;border:1px solid #d7e1ec;border-radius:7px;background:#fff;text-decoration:none}
.stamp-related strong,.stamp-related span{display:block}
.stamp-related strong{color:#253b53}
.stamp-related span{margin-top:.35rem;color:#718298;font-size:.8rem;line-height:1.5}
.stamp-page button:focus-visible,.stamp-page input:focus,.stamp-page select:focus,.stamp-page a:focus-visible,.stamp-page summary:focus-visible{outline:3px solid rgba(8,127,114,.23);outline-offset:2px}
@media screen and (max-width:980px){.stamp-workspace{grid-template-columns:1fr}.stamp-result{border-top:1px solid #d7e1ec}.stamp-grid{grid-template-columns:1fr 1fr}}
@media screen and (max-width:736px){.stamp-heading h1{font-size:2rem}.stamp-form,.stamp-result,.stamp-section,.stamp-faq,.stamp-sources{padding:1rem}.stamp-fields,.stamp-grid,.stamp-related>div{grid-template-columns:1fr}.stamp-wide{grid-column:auto}.stamp-actions{display:grid;grid-template-columns:1fr}.stamp-actions button{width:100%}.stamp-breakdown>div{grid-template-columns:1fr}.stamp-breakdown strong{text-align:left}.stamp-result-head{align-items:flex-start}.stamp-jump a{flex:1 1 auto;text-align:center}}
@media screen and (max-width:360px){.stamp-form,.stamp-result,.stamp-section,.stamp-faq,.stamp-sources{padding:.85rem}.stamp-result-head strong{font-size:1.65rem}.stamp-unit input{padding:0 .55rem}.stamp-unit b{padding:0 .55rem}}
