/* Hominic Tools · Percent Calculator v1.0.0 */
[data-hominic-percent] { container-type:inline-size; container-name:hmpercent; min-width:0; }
.hm-percent-tool { --hm-pc-navy:#102b4d; --hm-pc-blue:#1475ef; --hm-pc-green:#087a57; --hm-pc-line:#dde5ef; color:#20334b; background:#f5f8fc; border:1px solid var(--hm-pc-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%; margin:24px 0; min-width:0; color-scheme:light; }
.hm-percent-tool,.hm-percent-tool *,.hm-percent-tool *::before,.hm-percent-tool *::after { box-sizing:border-box; }
.hm-percent-tool [hidden] { display:none !important; }
.hm-percent-tool h2,.hm-percent-tool h3,.hm-percent-tool p,.hm-percent-tool ul { margin:0; padding:0; font-family:inherit; }
.hm-percent-tool button,.hm-percent-tool input,.hm-percent-tool select,.hm-percent-tool textarea { font:inherit; color:inherit; margin:0; letter-spacing:normal; }
.hm-percent-tool button { appearance:none; background:#fff; border:1px solid #cbd7e6; border-radius:10px; min-height:44px; padding:9px 15px; font-weight:650; line-height:1.4; cursor:pointer; box-shadow:none; text-decoration:none; white-space:normal; }
.hm-percent-tool button:hover:not(:disabled) { border-color:var(--hm-pc-blue); background:#f0f6ff; }
.hm-percent-tool button:disabled { color:#8190a3; background:#f6f8fb; cursor:default; }
.hm-percent-tool button:focus-visible,.hm-percent-tool input:focus-visible,.hm-percent-tool select:focus-visible,.hm-percent-tool textarea:focus-visible,.hm-percent-tool summary:focus-visible { outline:3px solid #69aafc; outline-offset:3px; }
.hm-percent-tool .hm-pc-header { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:16px 26px; background:var(--hm-pc-navy); color:#fff; }
.hm-percent-tool .hm-pc-brand { display:flex; align-items:center; gap:10px; font-size:17px; font-weight:750; }
.hm-percent-tool .hm-pc-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-percent-tool .hm-pc-logo::after { content:""; width:5px; height:5px; background:#ffad4a; border-radius:50%; position:absolute; right:3px; bottom:3px; }
.hm-percent-tool .hm-pc-head-note { color:#bdcde0; font-size:11px; letter-spacing:1px; }
.hm-percent-tool .hm-pc-intro { padding:28px 26px 22px; }
.hm-percent-tool .hm-pc-kicker { display:block; font-size:11px; letter-spacing:1.5px; font-weight:750; color:var(--hm-pc-blue); margin-bottom:5px; }
.hm-percent-tool h2 { color:var(--hm-pc-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-percent-tool .hm-pc-intro p { color:#61738a; font-size:15px; word-break:keep-all; overflow-wrap:anywhere; }
.hm-percent-tool .hm-pc-toolbar { margin:0 26px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; padding:14px 0; border-top:1px solid var(--hm-pc-line); }
.hm-percent-tool .hm-pc-toolbar label { display:flex; align-items:center; gap:10px; font-size:13px; font-weight:650; min-width:0; }
.hm-percent-tool select { appearance:auto; background:#fff; border:1px solid #cbd7e6; border-radius:9px; min-height:44px; padding:9px 30px 9px 12px; width:auto; max-width:100%; line-height:1.4; }
.hm-percent-tool .hm-pc-toolbar-actions { display:flex; flex-wrap:wrap; gap:8px; }
.hm-percent-tool .hm-pc-toolbar-actions button { font-size:13px; }
.hm-percent-tool .hm-pc-global-status { margin:0 26px; color:var(--hm-pc-green); font-size:13px; overflow-wrap:anywhere; }
.hm-percent-tool .hm-pc-global-status:not(:empty) { margin-bottom:12px; }
.hm-percent-tool .hm-pc-cards { padding:0 26px; display:grid; gap:16px; }
.hm-percent-tool .hm-pc-card { min-width:0; background:#fff; border:1px solid var(--hm-pc-line); border-radius:15px; padding:22px; box-shadow:0 3px 10px #102b4d05; }
.hm-percent-tool .hm-pc-card-head { display:flex; align-items:flex-start; gap:11px; margin-bottom:18px; min-width:0; }
.hm-percent-tool .hm-pc-card-head > div { min-width:0; }
.hm-percent-tool .hm-pc-step { display:grid; place-items:center; flex-shrink:0; width:32px; height:32px; border-radius:9px; background:#eaf3ff; color:var(--hm-pc-blue); font-size:13px; font-weight:800; margin-top:1px; }
.hm-percent-tool h3 { font-size:19px; color:var(--hm-pc-navy); font-weight:750; line-height:1.45; word-break:keep-all; overflow-wrap:anywhere; background:transparent; border:0; }
.hm-percent-tool .hm-pc-card-head p { font-size:13px; color:#6b7b8f; margin-top:3px; overflow-wrap:anywhere; }
.hm-percent-tool form { margin:0; padding:0; min-width:0; border:0; }
.hm-percent-tool .hm-pc-row { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; align-items:stretch; }
.hm-percent-tool .hm-pc-input-side { min-width:0; }
.hm-percent-tool .hm-pc-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.hm-percent-tool .hm-pc-field { display:grid; gap:7px; min-width:0; font-size:13px; font-weight:650; color:#41536b; }
.hm-percent-tool .hm-pc-input-wrap { display:block; position:relative; min-width:0; }
.hm-percent-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 12px; font-size:17px; font-weight:600; line-height:1.4; font-variant-numeric:tabular-nums; box-shadow:none; }
.hm-percent-tool input::placeholder { color:#97a5b6; font-weight:400; font-size:14px; opacity:1; }
.hm-percent-tool .hm-pc-input-wrap:has(.hm-pc-unit) input { padding-right:33px; }
.hm-percent-tool .hm-pc-unit { position:absolute; top:50%; right:12px; transform:translateY(-50%); color:#667c96; pointer-events:none; }
.hm-percent-tool input[aria-invalid="true"],.hm-percent-tool select[aria-invalid="true"] { border-color:#c74040; background:#fffafa; }
.hm-percent-tool .hm-pc-direction { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-top:12px; font-size:13px; font-weight:650; }
.hm-percent-tool .hm-pc-direction select { min-width:120px; }
.hm-percent-tool .hm-pc-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.hm-percent-tool .hm-pc-actions button { font-size:13px; }
.hm-percent-tool button.hm-pc-primary { background:var(--hm-pc-blue); color:#fff; border-color:var(--hm-pc-blue); padding-left:22px; padding-right:22px; }
.hm-percent-tool button.hm-pc-primary:hover { background:#0965d9; border-color:#0965d9; }
.hm-percent-tool .hm-pc-status { font-size:12px; line-height:1.6; color:#738399; margin-top:10px; overflow-wrap:anywhere; min-height:20px; }
.hm-percent-tool .hm-pc-status.hm-pc-error { color:#b52e35; }
.hm-percent-tool .hm-pc-result { display:flex; flex-direction:column; justify-content:center; background:#f0f6ff; border:1px solid #d8e8ff; border-radius:12px; padding:18px; min-width:0; }
.hm-percent-tool .hm-pc-result-top { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; font-size:12px; font-weight:650; color:#496889; }
.hm-percent-tool .hm-pc-badge { border-radius:6px; padding:3px 7px; background:#e0ebfa; color:#316191; font-size:11px; }
.hm-percent-tool [data-trend="increase"] .hm-pc-badge { background:#d9f2e9; color:#087a57; }
.hm-percent-tool [data-trend="decrease"] .hm-pc-badge { background:#e0ebfa; color:#235fa0; }
.hm-percent-tool .hm-pc-value { display:block; font-size:32px; font-weight:800; line-height:1.3; color:var(--hm-pc-blue); margin:8px 0; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.hm-percent-tool .hm-pc-result p { font-size:12px; color:#5f7894; overflow-wrap:anywhere; }
.hm-percent-tool .hm-pc-formula { display:grid; gap:2px; margin-top:12px; padding-top:10px; border-top:1px solid #d6e5f8; font-size:12px; color:#5c7592; overflow-wrap:anywhere; }
.hm-percent-tool .hm-pc-formula > span:first-child { font-size:10px; font-weight:750; }
.hm-percent-tool .hm-pc-copy-message { font-size:12px; color:#087a57; overflow-wrap:anywhere; }
.hm-percent-tool .hm-pc-copy-message:not(:empty) { margin-top:10px; }
.hm-percent-tool .hm-pc-copy-fallback { display:block; width:100%; max-width:100%; min-height:170px; resize:vertical; border:1px solid #ccd9e8; border-radius:9px; padding:12px; background:#fff; font-size:13px; margin-top:10px; }
.hm-percent-tool .hm-pc-help { margin:18px 26px 0; border:1px solid var(--hm-pc-line); border-radius:12px; background:#fff; overflow:hidden; }
.hm-percent-tool summary { cursor:pointer; padding:12px 16px; min-height:44px; font-size:13px; font-weight:700; color:#49627f; }
.hm-percent-tool .hm-pc-help ul { padding:0 20px 16px 34px; list-style:disc; font-size:12px; color:#64768c; }
.hm-percent-tool .hm-pc-help li { padding-left:2px; margin-top:7px; overflow-wrap:anywhere; }
.hm-percent-tool .hm-pc-footer { padding:20px 26px; color:#7c8ca0; font-size:11px; text-align:center; overflow-wrap:anywhere; }
@container hmpercent (min-width:760px) {
  .hm-percent-tool .hm-pc-row { grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:24px; }
}
@container hmpercent (max-width:520px) {
  .hm-percent-tool { border-radius:13px; margin:12px 0; }
  .hm-percent-tool .hm-pc-header { padding:14px 15px; }
  .hm-percent-tool .hm-pc-head-note { display:none; }
  .hm-percent-tool .hm-pc-intro { padding:22px 15px 18px; }
  .hm-percent-tool h2 { font-size:27px; }
  .hm-percent-tool .hm-pc-intro p { font-size:13px; }
  .hm-percent-tool .hm-pc-toolbar,.hm-percent-tool .hm-pc-global-status { margin-left:15px; margin-right:15px; }
  .hm-percent-tool .hm-pc-cards { padding:0 12px; gap:12px; }
  .hm-percent-tool .hm-pc-card { padding:16px 13px; }
  .hm-percent-tool h3 { font-size:17px; }
  .hm-percent-tool .hm-pc-step { width:28px; height:28px; font-size:11px; }
  .hm-percent-tool .hm-pc-card-head { gap:8px; }
  .hm-percent-tool .hm-pc-help { margin:14px 12px 0; }
  .hm-percent-tool .hm-pc-value { font-size:29px; }
}
@container hmpercent (max-width:390px) {
  .hm-percent-tool .hm-pc-fields { grid-template-columns:minmax(0,1fr); }
  .hm-percent-tool .hm-pc-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hm-percent-tool .hm-pc-actions .hm-pc-primary { grid-column:1/-1; }
  .hm-percent-tool .hm-pc-actions button { padding-left:8px; padding-right:8px; }
  .hm-percent-tool .hm-pc-toolbar { align-items:flex-start; }
}
