:root{font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR",sans-serif;color:#172927;background:#f3f6f4;font-size:14px;font-synthesis:none;--line:#d6e2dd;--muted:#4b635c;--accent:#146456;--accent-dark:#0e4e43;--accent-pale:#e7f3ee}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
main{max-width:1000px;margin:auto;padding:62px 28px 36px}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(30px,5vw,42px);letter-spacing:-.055em;line-height:1.2}
h2{font-size:17px;letter-spacing:-.02em}
p{line-height:1.55;word-break:keep-all;overflow-wrap:anywhere}
.page-head{margin-bottom:26px}
.page-head p{color:var(--muted);margin-top:9px}
.page-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.toggle-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.link-button{display:inline-flex;align-items:center;padding:8px 12px;min-height:36px;border:1px solid #adc5ba;border-radius:8px;background:#f3f7f5;color:var(--accent);font-size:13px;font-weight:680;text-decoration:none}
.link-button:hover,.link-button[aria-pressed=true]{background:var(--accent-pale);border-color:#277d6c}
.providers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}
button,input,select{font:inherit}
button{cursor:pointer}
button:disabled{cursor:default;opacity:.55}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #277d6c;outline-offset:3px}
.provider{display:flex;align-items:center;justify-content:space-between;text-align:left;flex-wrap:wrap;gap:8px 10px;padding:14px;min-height:68px;border:1px solid var(--line);border-radius:12px;color:inherit;background:#fff}
.provider:hover{border-color:#81aaa0}
.provider[aria-selected=true]{border-color:#277d6c;background:var(--accent-pale);box-shadow:inset 0 0 0 1px #277d6c}
.provider-name{font-weight:720;font-size:16px;line-height:1.25}
.provider-name small{display:block;font-size:11px;font-weight:500;color:var(--muted);margin-top:4px}
.provider-state{font-size:11px;font-weight:650;color:#516761;background:#edf2ef;border-radius:5px;padding:4px 7px;white-space:nowrap}
.provider-state[data-tone=success]{background:#d9efe6;color:#195644}
.provider-state[data-tone=warning]{background:#fff0d8;color:#794912}
.key-card,.step-card{border:1px solid var(--line);background:#fff;border-radius:14px;padding:22px}
.field-heading{display:flex;align-items:center;justify-content:space-between;gap:6px 12px;min-height:25px;margin-bottom:6px}
label{font-weight:680;color:#223a34;font-size:13px}
.text-button{border:0;background:none;color:var(--accent);font-size:12px;font-weight:650;padding:5px 0}
.text-button:hover:enabled{text-decoration:underline}
input,select{width:100%;min-width:0;min-height:44px;border:1px solid #bdd0c9;border-radius:8px;background:#fff;color:inherit;padding:10px 12px}
input::placeholder{color:#647872}
select:disabled{background:#f5f8f6;color:#566e65}
.caption{margin-top:8px;font-size:12px;color:var(--muted)}
.steps{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}
.step-head{display:flex;align-items:flex-start;gap:11px;margin-bottom:19px}
.step-head p{margin-top:3px;color:var(--muted);font-size:13px}
.step-number{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;flex:none;font-weight:750;color:var(--accent);background:var(--accent-pale)}
.primary,.secondary{min-height:44px;border-radius:8px;padding:9px 14px;font-weight:700;width:100%}
.primary{background:var(--accent);border:1px solid var(--accent);color:white;margin-top:10px}
.primary:hover:enabled{background:var(--accent-dark)}
.secondary{background:#eef5f1;border:1px solid #adc5ba;color:#165448}
.secondary:hover:enabled{background:#e0efe7}
.result{margin-top:13px;border:1px solid #e0e9e4;border-radius:9px;background:#f7f9f8;color:var(--muted);padding:13px;font-size:13px}
.result.success{background:#eaf6ef;border-color:#bedfcc;color:#1e5442}
.result.warning{background:#fff8eb;border-color:#ebd7ae;color:#6e4719}
.result.loading{background:#eef5f3;color:#235b4d}
.result h3{font-size:15px;line-height:1.5;margin:2px 0 4px}
.status-label{font-size:11px;font-weight:750}
.result .next{margin-top:7px}
.result .account-status{margin-top:7px;font-weight:650}
.result .meta{margin-top:10px;font-size:11px;padding-top:7px;border-top:1px solid #849e913b}
.result-link{display:inline-block;margin-top:8px;font-weight:700;color:inherit;text-underline-offset:3px}
#local-message{margin:12px 0;padding:12px;border-radius:8px;background:#fff8eb;color:#6e4719}
#vault-message{margin:12px 0;padding:12px;border-radius:8px;background:#e7f3ee;color:var(--accent-dark)}
#login{max-width:420px}
#login label{display:block;margin-bottom:8px}
.vault-actions{margin-bottom:12px}
.vault-list{list-style:none;margin:12px 0;padding:0;border:1px solid var(--line);border-radius:12px;background:#fff}
.vault-list li{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:14px 16px}
.vault-list li+li{border-top:1px solid var(--line)}
.vault-list p{color:var(--muted);font-size:12px;margin-top:3px}
footer{display:flex;gap:10px 20px;flex-wrap:wrap;justify-content:space-between;align-items:baseline;margin-top:18px;padding:0 2px;color:var(--muted);font-size:12px}
footer nav{display:flex;gap:15px;flex-wrap:wrap}
footer a{color:var(--accent);font-weight:650;text-underline-offset:3px}
@media(max-width:760px){.providers{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){main{padding:30px 14px}.page-head{margin-bottom:19px}.providers{gap:6px}.provider{padding:10px;min-height:52px}.provider-name{font-size:14px}.provider-state{font-size:10px}.steps{grid-template-columns:1fr;gap:10px;margin-top:10px}.key-card,.step-card{padding:15px}.step-head{margin-bottom:13px}}
