/* Hominic Tools · Exchange Fee & Preference Calculator v1.0.0 */
[data-hominic-exchange] { container-type:inline-size; container-name:hmexchange; min-width:0; }
.hm-exchange-tool { --hm-fx-navy:#102b4d; --hm-fx-blue:#1475ef; --hm-fx-green:#087a57; --hm-fx-line:#dde5ef; color:#20334b; background:#f5f8fc; border:1px solid var(--hm-fx-line); border-radius:20px; overflow:hidden; font:15px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans KR","Malgun Gothic",sans-serif; text-align:left; width:100%; min-width:0; margin:24px 0; color-scheme:light; }
.hm-exchange-tool,.hm-exchange-tool *,.hm-exchange-tool *::before,.hm-exchange-tool *::after { box-sizing:border-box; }
.hm-exchange-tool [hidden] { display:none !important; }
.hm-exchange-tool h2,.hm-exchange-tool h3,.hm-exchange-tool p,.hm-exchange-tool ul { margin:0; padding:0; font-family:inherit; }
.hm-exchange-tool button,.hm-exchange-tool input,.hm-exchange-tool select,.hm-exchange-tool textarea { font:inherit; color:inherit; margin:0; letter-spacing:normal; }
.hm-exchange-tool button { appearance:none; background:#fff; border:1px solid #cbd7e6; border-radius:10px; min-height:44px; padding:9px 14px; font-weight:650; font-size:13px; line-height:1.4; cursor:pointer; box-shadow:none; text-decoration:none; white-space:normal; }
.hm-exchange-tool button:hover:not(:disabled) { border-color:var(--hm-fx-blue); background:#f0f6ff; }
.hm-exchange-tool button:disabled { color:#8290a3; background:#f6f8fb; cursor:default; }
.hm-exchange-tool button:focus-visible,.hm-exchange-tool input:focus-visible,.hm-exchange-tool select:focus-visible,.hm-exchange-tool textarea:focus-visible,.hm-exchange-tool summary:focus-visible,.hm-exchange-tool [tabindex]:focus-visible { outline:3px solid #69aafc; outline-offset:3px; }
.hm-exchange-tool .hm-fx-header { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:16px 26px; background:var(--hm-fx-navy); color:#fff; }
.hm-exchange-tool .hm-fx-brand { display:flex; align-items:center; gap:10px; font-size:17px; font-weight:750; }
.hm-exchange-tool .hm-fx-logo { display:inline-grid; place-items:center; width:30px; height:30px; position:relative; border:1px solid #71879f; border-radius:7px; font-size:24px; line-height:1; font-weight:800; }
.hm-exchange-tool .hm-fx-logo::after { content:""; width:5px; height:5px; background:#ffad4a; border-radius:50%; position:absolute; right:3px; bottom:3px; }
.hm-exchange-tool .hm-fx-head-note { color:#bdcde0; font-size:11px; letter-spacing:1px; }
.hm-exchange-tool .hm-fx-intro { padding:28px 26px 22px; }
.hm-exchange-tool .hm-fx-kicker { display:block; font-size:11px; letter-spacing:1.5px; font-weight:750; color:var(--hm-fx-blue); margin-bottom:5px; }
.hm-exchange-tool h2 { color:var(--hm-fx-navy); font-size:32px; font-weight:800; line-height:1.35; word-break:keep-all; overflow-wrap:anywhere; margin-bottom:8px; border:0; background:transparent; }
.hm-exchange-tool .hm-fx-intro p { color:#61738a; font-size:15px; word-break:keep-all; overflow-wrap:anywhere; }
.hm-exchange-tool .hm-fx-content { padding:0 26px; display:grid; gap:20px; min-width:0; }
.hm-exchange-tool .hm-fx-top-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:18px; min-width:0; }
.hm-exchange-tool .hm-fx-card { padding:22px; border:1px solid var(--hm-fx-line); border-radius:15px; background:#fff; min-width:0; }
.hm-exchange-tool .hm-fx-section-head { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; margin-bottom:14px; min-width:0; }
.hm-exchange-tool h3 { font-size:19px; color:var(--hm-fx-navy); font-weight:750; line-height:1.45; word-break:keep-all; overflow-wrap:anywhere; background:transparent; border:0; }
.hm-exchange-tool form { margin:16px 0 0; padding:0; border:0; min-width:0; display:grid; gap:13px; }
.hm-exchange-tool .hm-fx-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; min-width:0; }
.hm-exchange-tool .hm-fx-field { display:grid; gap:7px; min-width:0; font-size:12px; font-weight:650; color:#41536b; }
.hm-exchange-tool .hm-fx-input-wrap { display:block; position:relative; min-width:0; }
.hm-exchange-tool input { appearance:none; display:block; background:#fff; width:100%; max-width:100%; min-width:0; min-height:48px; border:1px solid #cbd7e6; border-radius:9px; padding:10px 51px 10px 12px; font-size:17px; font-weight:600; line-height:1.4; font-variant-numeric:tabular-nums; box-shadow:none; }
.hm-exchange-tool input::placeholder { color:#97a5b6; font-weight:400; font-size:14px; opacity:1; }
.hm-exchange-tool .hm-fx-unit { position:absolute; top:50%; right:12px; transform:translateY(-50%); color:#667c96; pointer-events:none; font-size:12px; }
.hm-exchange-tool select { appearance:auto; background:#fff; border:1px solid #cbd7e6; border-radius:9px; min-height:44px; padding:9px 28px 9px 10px; width:100%; max-width:100%; min-width:0; line-height:1.4; font-size:13px; }
.hm-exchange-tool input[aria-invalid="true"],.hm-exchange-tool select[aria-invalid="true"] { border-color:#c74040; background:#fffafa; }
.hm-exchange-tool .hm-fx-hint { color:#6d7f95; font-size:11px; overflow-wrap:anywhere; margin-top:-6px; }
.hm-exchange-tool .hm-fx-presets { display:flex; gap:6px; flex-wrap:wrap; }
.hm-exchange-tool .hm-fx-presets button { padding:9px 12px; font-size:12px; color:#466f9d; }
.hm-exchange-tool .hm-fx-input-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:3px; }
.hm-exchange-tool button.hm-fx-primary { background:var(--hm-fx-blue); color:#fff; border-color:var(--hm-fx-blue); padding-left:22px; padding-right:22px; }
.hm-exchange-tool button.hm-fx-primary:hover { background:#0965d9; border-color:#0965d9; }
.hm-exchange-tool .hm-fx-status { font-size:12px; color:#738399; overflow-wrap:anywhere; min-height:20px; }
.hm-exchange-tool .hm-fx-status.hm-fx-error { color:#b52e35; }
.hm-exchange-tool .hm-fx-result-card { background:linear-gradient(145deg,#fff 0%,#eff6ff 100%); }
.hm-exchange-tool .hm-fx-badge { font-size:11px; font-weight:650; color:#37608d; background:#e3efff; padding:4px 9px; border-radius:7px; }
.hm-exchange-tool .hm-fx-context { font-size:12px; color:#6d7f95; overflow-wrap:anywhere; }
.hm-exchange-tool .hm-fx-hero { padding:24px 19px; border-radius:14px; margin-top:20px; background:var(--hm-fx-navy); color:#fff; }
.hm-exchange-tool .hm-fx-hero > span { display:block; font-size:13px; color:#c0d4ec; }
.hm-exchange-tool .hm-fx-hero strong { display:block; font-size:34px; font-weight:800; line-height:1.4; margin:7px 0; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.hm-exchange-tool .hm-fx-hero p { font-size:12px; color:#a8c5e9; overflow-wrap:anywhere; }
.hm-exchange-tool .hm-fx-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:15px; }
.hm-exchange-tool .hm-fx-metrics > div { border:1px solid #dfebf8; border-radius:11px; padding:14px; background:#fff; min-width:0; }
.hm-exchange-tool .hm-fx-metrics span { display:block; font-size:11px; color:#6c7f97; }
.hm-exchange-tool .hm-fx-metrics strong { display:block; color:#24456c; font-weight:750; font-size:20px; font-variant-numeric:tabular-nums; margin:5px 0; overflow-wrap:anywhere; }
.hm-exchange-tool .hm-fx-metrics small { display:block; font-size:10px; color:#8a9bb0; overflow-wrap:anywhere; }
.hm-exchange-tool .hm-fx-metrics .hm-fx-benefit { background:#eef9f4; border-color:#d4ecdf; }
.hm-exchange-tool .hm-fx-benefit strong { color:var(--hm-fx-green); }
.hm-exchange-tool .hm-fx-before { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; border-top:1px solid #dfe9f5; margin-top:20px; padding-top:15px; font-size:12px; color:#7a8ca3; }
.hm-exchange-tool .hm-fx-before strong { color:#5b7390; overflow-wrap:anywhere; min-width:0; }
.hm-exchange-tool .hm-fx-output-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.hm-exchange-tool .hm-fx-copy-message { font-size:12px; color:#087a57; overflow-wrap:anywhere; }
.hm-exchange-tool .hm-fx-copy-message:not(:empty) { margin-top:10px; }
.hm-exchange-tool .hm-fx-copy-fallback { display:block; width:100%; max-width:100%; min-height:190px; resize:vertical; border:1px solid #ccd9e8; border-radius:9px; padding:12px; background:#fff; font-size:13px; margin-top:10px; }
.hm-exchange-tool .hm-fx-basis { background:#eaf2fc; padding:12px 15px; border-radius:10px; font-size:12px; color:#4e6c8e; margin-top:-5px; overflow-wrap:anywhere; }
.hm-exchange-tool .hm-fx-fee-total { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; color:#6a7e98; font-size:12px; }
.hm-exchange-tool .hm-fx-fee-total strong { color:var(--hm-fx-navy); font-size:17px; overflow-wrap:anywhere; }
.hm-exchange-tool .hm-fx-splitbar { display:flex; height:17px; overflow:hidden; border-radius:8px; background:#e5edf6; margin-top:14px; width:100%; }
.hm-exchange-tool .hm-fx-saved { background:var(--hm-fx-green); }
.hm-exchange-tool .hm-fx-paid { background:var(--hm-fx-blue); }
.hm-exchange-tool .hm-fx-splitlabels { display:flex; flex-wrap:wrap; gap:16px 30px; margin-top:13px; font-size:12px; color:#6b809a; }
.hm-exchange-tool .hm-fx-splitlabels strong { display:block; font-size:20px; color:var(--hm-fx-navy); margin-top:4px; overflow-wrap:anywhere; }
.hm-exchange-tool .hm-fx-splitlabels i { display:inline-block; width:8px; height:8px; background:var(--hm-fx-green); border-radius:50%; margin-right:6px; }
.hm-exchange-tool .hm-fx-splitlabels i.paid { background:var(--hm-fx-blue); }
.hm-exchange-tool .hm-fx-fee-note { font-size:11px; color:#7e90a7; margin-top:15px; overflow-wrap:anywhere; }
.hm-exchange-tool .hm-fx-precision { display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:11px; color:#6a809a; }
.hm-exchange-tool .hm-fx-precision select { width:auto; font-size:12px; }
.hm-exchange-tool .hm-fx-table-hint { color:#7b8fa8; font-size:11px; margin-bottom:10px; overflow-wrap:anywhere; }
.hm-exchange-tool .hm-fx-table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; border:1px solid #e0e7f1; border-radius:10px; max-width:100%; min-width:0; }
.hm-exchange-tool table { border-collapse:collapse; width:100%; min-width:580px; margin:0; table-layout:auto; font-size:12px; background:#fff; color:#3c5675; }
.hm-exchange-tool th,.hm-exchange-tool td { padding:12px; border:0; border-bottom:1px solid #edf1f6; line-height:1.5; font-variant-numeric:tabular-nums; background:transparent; }
.hm-exchange-tool thead th { text-align:right; background:#f0f5fc; color:#5b7390; font-size:11px; white-space:nowrap; }
.hm-exchange-tool tbody th { text-align:left; font-weight:650; white-space:nowrap; }
.hm-exchange-tool th:first-child { text-align:left; }
.hm-exchange-tool td { text-align:right; white-space:nowrap; }
.hm-exchange-tool tbody tr:last-child th,.hm-exchange-tool tbody tr:last-child td { border-bottom:0; }
.hm-exchange-tool .hm-fx-comparison-value { color:var(--hm-fx-blue); font-weight:700; }
.hm-exchange-tool .hm-fx-current th,.hm-exchange-tool .hm-fx-current td { background:#eef6ff; }
.hm-exchange-tool .hm-fx-current th span { display:inline-block; font-size:9px; color:#1475ef; border:1px solid #c9dfff; border-radius:5px; padding:2px 5px; margin-left:4px; }
.hm-exchange-tool .hm-fx-empty { padding:30px 14px; text-align:center; color:#8c9bb0; font-size:12px; white-space:normal; }
.hm-exchange-tool .hm-fx-rounding { font-size:11px; color:#7f91a7; margin-top:10px; overflow-wrap:anywhere; }
.hm-exchange-tool .hm-fx-help { border:1px solid var(--hm-fx-line); border-radius:12px; background:#fff; overflow:hidden; }
.hm-exchange-tool summary { cursor:pointer; padding:13px 16px; min-height:44px; font-size:13px; font-weight:700; color:#49627f; }
.hm-exchange-tool .hm-fx-help > div { padding:0 18px 18px; }
.hm-exchange-tool .hm-fx-help p { font-size:12px; color:#6d8099; margin-top:7px; overflow-wrap:anywhere; }
.hm-exchange-tool .hm-fx-help ul { padding:8px 0 0 18px; list-style:disc; font-size:12px; color:#64768c; }
.hm-exchange-tool .hm-fx-help li { margin-top:7px; overflow-wrap:anywhere; }
.hm-exchange-tool .hm-fx-footer { padding:22px 26px; color:#7c8ca0; font-size:11px; text-align:center; overflow-wrap:anywhere; }
.hm-exchange-tool .hm-fx-visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@container hmexchange (min-width:860px) {
  .hm-exchange-tool .hm-fx-top-grid { grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); gap:22px; }
}
@container hmexchange (max-width:520px) {
  .hm-exchange-tool { border-radius:13px; margin:12px 0; }
  .hm-exchange-tool .hm-fx-header { padding:14px 15px; }
  .hm-exchange-tool .hm-fx-head-note { display:none; }
  .hm-exchange-tool .hm-fx-intro { padding:22px 15px 18px; }
  .hm-exchange-tool h2 { font-size:26px; }
  .hm-exchange-tool .hm-fx-intro p { font-size:13px; }
  .hm-exchange-tool .hm-fx-content { padding:0 12px; gap:16px; }
  .hm-exchange-tool .hm-fx-card { padding:17px 13px; }
  .hm-exchange-tool h3 { font-size:17px; }
  .hm-exchange-tool .hm-fx-hero { padding:20px 15px; }
  .hm-exchange-tool .hm-fx-hero strong { font-size:28px; }
  .hm-exchange-tool .hm-fx-input-actions button,.hm-exchange-tool .hm-fx-output-actions button { flex:1 1 auto; }
}
@container hmexchange (max-width:390px) {
  .hm-exchange-tool .hm-fx-pair { grid-template-columns:minmax(0,1fr); }
  .hm-exchange-tool .hm-fx-metrics { grid-template-columns:minmax(0,1fr); }
}
