:root {
  --afk-blue: #68c7eb;
  --afk-blue-deep: #257da8;
  --afk-blue-soft: #ebf8ff;
  --afk-violet: #9788e4;
  --afk-violet-deep: #6655bb;
  --afk-violet-soft: #f2efff;
  --afk-ink: #17243a;
  --afk-text: #3b4d64;
  --afk-muted: #66758b;
  --afk-subtle: #8a97a8;
  --afk-line: #d9e5ef;
  --afk-line-soft: #e7edf3;
  --afk-danger: #b43b59;
  --afk-success: #1f8a5b;
}

html { scroll-behavior: smooth; }
.public-shell { background: radial-gradient(circle at 6% 5%, rgba(104, 199, 235, .15), transparent 23%), radial-gradient(circle at 96% 16%, rgba(151, 136, 228, .16), transparent 26%), linear-gradient(180deg, #f8fcff 0%, #f3f7ff 47%, #fff 100%) !important; }
.public-shell main { max-width: 1320px; }
.public-shell .public-panel { border-color: rgba(205, 220, 233, .94); box-shadow: 0 20px 48px rgba(48, 70, 104, .08); }
.public-shell > main > header { position: relative; overflow: hidden; background: radial-gradient(circle at 96% 15%, rgba(151, 136, 228, .2), transparent 30%), radial-gradient(circle at 8% 100%, rgba(104, 199, 235, .18), transparent 32%), rgba(255, 255, 255, .96); }
.public-shell > main > header::after { position: absolute; right: -2.5rem; bottom: -4rem; width: 11rem; height: 11rem; border: 1.25rem solid rgba(255, 255, 255, .45); border-radius: 999px; content: ""; pointer-events: none; }
.afk-head-action { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .4rem; border: 1px solid #d5d1ef; background: #fff; color: var(--afk-violet-deep); font-weight: 850; text-decoration: none; cursor: pointer; }
.afk-head-action svg { width: 1rem; height: 1rem; }

/* ---------- 안내 띠 ---------- */
.afk-intro-strip { display: grid; gap: .55rem; }
.afk-intro-strip > span { display: flex; align-items: center; gap: .45rem; min-width: 0; border: 1px solid #dce8f1; border-radius: .85rem; padding: .7rem .85rem; color: var(--afk-muted); background: rgba(255, 255, 255, .9); font-size: .8rem; font-weight: 700; }
.afk-intro-strip svg { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; color: var(--afk-violet-deep); }
.afk-intro-strip b { color: #33445c; }

/* ---------- 패널 공통 ---------- */
.afk-panel, .afk-result, .afk-efficiency { padding: 1rem; }
.afk-card-heading { display: flex; align-items: flex-start; gap: .75rem; }
.afk-card-heading > div { min-width: 0; }
.afk-card-heading small, .afk-result-head small, .afk-section-heading small { display: block; color: #8372d3; font-size: .68rem; font-weight: 950; letter-spacing: .09em !important; }
.afk-card-heading h2, .afk-result-head h2, .afk-section-heading h2 { margin: .16rem 0 0; color: var(--afk-ink); font-size: 1.15rem; font-weight: 950; letter-spacing: -.02em !important; }
.afk-card-heading p { margin: .25rem 0 0; color: var(--afk-muted); font-size: .82rem; line-height: 1.55; font-weight: 650; }
.afk-card-icon, .afk-choice-icon { display: grid; flex: 0 0 auto; place-items: center; color: #fff; background: linear-gradient(135deg, var(--afk-blue), #4ca5ce); }
.afk-card-icon { width: 2.8rem; height: 2.8rem; border-radius: .8rem; box-shadow: 0 8px 20px rgba(72, 156, 197, .18); }
.afk-card-icon.is-violet, .afk-choice-icon.is-violet { background: linear-gradient(135deg, #aa9beb, #7868cf); box-shadow: 0 8px 20px rgba(111, 91, 195, .18); }

/* ---------- 캐릭터 조회 ---------- */
.afk-character-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; margin-top: 1rem; }
.afk-search-field { position: relative; min-width: 0; }
.afk-search-field > svg { position: absolute; top: 50%; left: .85rem; width: 1.05rem; height: 1.05rem; color: #8795a7; transform: translateY(-50%); pointer-events: none; }
.afk-search-field input, .afk-number-field input { width: 100%; border: 1px solid #cad9e6; border-radius: .75rem; color: #263750; background: #fff; font-weight: 800; box-shadow: inset 0 1px 2px rgba(35, 55, 84, .03); transition: border-color .18s ease, box-shadow .18s ease; }
.afk-search-field input { min-height: 3rem; padding: .7rem .85rem .7rem 2.55rem; font-size: .92rem; }
.afk-search-field input::placeholder { color: #9aa6b6; font-weight: 650; }
.afk-search-field input:focus, .afk-number-field input:focus { border-color: #82bfe0; outline: none; box-shadow: 0 0 0 3px rgba(104, 199, 235, .17); }
.afk-secondary-button { min-height: 3rem; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid #d2cef0; border-radius: .75rem; padding: .7rem 1rem; color: var(--afk-violet-deep); background: var(--afk-violet-soft); font-size: .85rem; font-weight: 900; white-space: nowrap; transition: background .18s ease, transform .18s ease; }
.afk-secondary-button svg { width: 1.05rem; height: 1.05rem; }
.afk-secondary-button:hover { background: #e9e4ff; }
.afk-secondary-button:active { transform: translateY(1px); }
.afk-secondary-button:disabled { cursor: wait; opacity: .66; }
.afk-inline-status { margin-top: .6rem; border: 1px solid #cde3ef; border-radius: .7rem; padding: .6rem .75rem; color: #276f94; background: #eef9ff; font-size: .8rem; font-weight: 750; line-height: 1.5; }
.afk-inline-status.is-error { border-color: #f1c7d1; color: #9e344f; background: #fff1f4; }
.afk-inline-status.is-warning { border-color: #f0d5a3; color: #8c641c; background: #fff9eb; }
.afk-character-profile { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; align-items: center; gap: .65rem; margin-top: .6rem; border: 1px solid #d7e7f1; border-radius: .8rem; padding: .6rem .7rem; background: linear-gradient(135deg, #f2fbff, #f6f3ff); }
.afk-profile-mark { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: .7rem; color: #fff; background: linear-gradient(135deg, var(--afk-blue), var(--afk-violet)); }
.afk-profile-mark svg { width: 1.2rem; height: 1.2rem; }
.afk-character-profile small, .afk-character-profile strong { display: block; }
.afk-character-profile small { color: var(--afk-subtle); font-size: .7rem; font-weight: 750; }
.afk-character-profile strong { overflow: hidden; margin-top: .1rem; color: #293c54; font-size: .92rem; font-weight: 950; text-overflow: ellipsis; white-space: nowrap; }
.afk-profile-level { text-align: right; }
.afk-profile-level strong { color: var(--afk-violet-deep); }

/* ---------- 레이아웃 ---------- */
.afk-workspace { display: grid; gap: 1rem; }
.afk-form { margin: 0; }
.afk-fieldset { min-width: 0; margin: 1rem 0 0; border: 0; border-top: 1px solid var(--afk-line-soft); padding: .9rem 0 0; }
.afk-fieldset > legend { padding: 0 .45rem 0 0; color: var(--afk-text); font-size: .85rem; font-weight: 950; }
.afk-burning-list, .afk-input-grid { display: grid; gap: .6rem; }

/* ---------- 시설 선택 ---------- */
.afk-facility-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.afk-facility-option { position: relative; min-width: 0; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; align-items: center; gap: .6rem; border: 1.5px solid #dce5ed; border-radius: .9rem; padding: .7rem; background: #fff; cursor: pointer; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.afk-facility-option:hover { border-color: #bdcfe0; }
.afk-facility-option input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.afk-facility-option .afk-choice-icon { width: 2.4rem; height: 2.4rem; border-radius: .7rem; }
.afk-facility-option .afk-choice-icon svg { width: 1.2rem; height: 1.2rem; }
.afk-facility-option strong, .afk-facility-option small { display: block; }
.afk-facility-option strong { color: #33455c; font-size: .92rem; font-weight: 950; }
.afk-facility-option small { margin-top: .12rem; overflow: hidden; color: var(--afk-subtle); font-size: .74rem; font-weight: 750; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.afk-facility-option > i { display: grid; width: 1.35rem; height: 1.35rem; place-items: center; border: 1px solid #d5dee7; border-radius: 999px; color: transparent; background: #fff; }
.afk-facility-option > i svg { width: .82rem; height: .82rem; }
.afk-facility-option:has(input:checked) { border-color: #a89ce1; background: linear-gradient(135deg, #f2fbff, #f5f2ff); box-shadow: 0 0 0 3px rgba(151, 136, 228, .12); }
.afk-facility-option:has(input:checked) small { color: var(--afk-violet-deep); }
.afk-facility-option:has(input:checked) > i { border-color: var(--afk-violet); color: #fff; background: var(--afk-violet); }
.afk-facility-option:focus-within, .afk-switch-card:focus-within { outline: 3px solid rgba(104, 199, 235, .25); outline-offset: 2px; }

/* ---------- 숫자 입력 ---------- */
.afk-input-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.afk-input-grid > label > span:first-child, .afk-mode-panel > label > span:first-child { display: block; margin-bottom: .35rem; color: #53647a; font-size: .8rem; font-weight: 900; }
.afk-number-field { position: relative; min-width: 0; }
.afk-number-field input { min-height: 3rem; padding: .6rem 2.8rem .6rem .8rem; font-size: 1rem; font-variant-numeric: tabular-nums; }
.afk-number-field em { position: absolute; top: 50%; right: .8rem; color: #8492a5; font-size: .78rem; font-style: normal; font-weight: 850; transform: translateY(-50%); pointer-events: none; }
.afk-fieldset label > small, .afk-mode-panel label > small { display: block; margin-top: .3rem; color: var(--afk-subtle); font-size: .72rem; line-height: 1.4; }
.afk-stepper { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) 2.6rem; gap: .3rem; }
.afk-stepper > button { display: grid; place-items: center; border: 1px solid #cad9e6; border-radius: .75rem; color: var(--afk-violet-deep); background: #f7f9fc; transition: background .15s ease; }
.afk-stepper > button:hover { background: var(--afk-violet-soft); }
.afk-stepper > button svg { width: 1rem; height: 1rem; }
.afk-snapshot-note, .afk-muted-note { display: flex; align-items: flex-start; gap: .4rem; margin: .6rem 0 0; border-radius: .65rem; font-size: .76rem; line-height: 1.5; font-weight: 700; }
.afk-snapshot-note { padding: .55rem .65rem; color: #28739a; background: #edf9ff; }
.afk-muted-note { color: var(--afk-subtle); }
.afk-snapshot-note svg, .afk-muted-note svg { width: .95rem; height: .95rem; flex: 0 0 auto; margin-top: .1rem; }

/* ---------- 버닝 ---------- */
.afk-burning-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.afk-switch-card { position: relative; min-width: 0; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; align-items: center; gap: .55rem; border: 1px solid #dce5ed; border-radius: .82rem; padding: .6rem .65rem; background: #fff; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.afk-switch-card:hover { border-color: #bdcfe0; background: #fbfdff; }
.afk-switch-card .afk-choice-icon { width: 2.2rem; height: 2.2rem; border-radius: .65rem; }
.afk-switch-card .afk-choice-icon svg { width: 1.1rem; height: 1.1rem; }
.afk-choice-icon.is-fire { background: linear-gradient(135deg, #ffb06f, #f17f80); box-shadow: 0 8px 18px rgba(225, 117, 91, .15); }
.afk-switch-card strong, .afk-switch-card small { display: block; }
.afk-switch-card strong { color: #33455c; font-size: .84rem; font-weight: 950; }
.afk-switch-card small { margin-top: .1rem; color: var(--afk-subtle); font-size: .72rem; line-height: 1.35; font-weight: 650; }
.afk-switch-card:has(input:checked) { border-color: #c9bff0; background: #faf8ff; }
.afk-switch { position: relative; width: 2.4rem; height: 1.35rem; border-radius: 999px; background: #d7e0e9; transition: background .18s ease; }
.afk-switch i { position: absolute; top: .18rem; left: .18rem; width: .99rem; height: .99rem; border-radius: 999px; background: #fff; box-shadow: 0 2px 5px rgba(25, 40, 63, .2); transition: transform .18s ease; }
.afk-switch-card input:checked + .afk-switch { background: linear-gradient(90deg, var(--afk-blue), var(--afk-violet)); }
.afk-switch-card input:checked + .afk-switch i { transform: translateX(1.04rem); }

/* ---------- 계산 기준 ---------- */
.afk-mode-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; border: 1px solid #dfe8ef; border-radius: .85rem; padding: .3rem; background: #f4f7fa; }
.afk-mode-tabs button { min-width: 0; display: flex; align-items: center; justify-content: center; gap: .45rem; border: 0; border-radius: .65rem; padding: .6rem .45rem; color: #77869a; background: transparent; text-align: left; }
.afk-mode-tabs button > svg { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; }
.afk-mode-tabs button span, .afk-mode-tabs button small { display: block; }
.afk-mode-tabs button span { font-size: .84rem; font-weight: 900; }
.afk-mode-tabs button small { margin-top: .08rem; font-size: .7rem; font-weight: 650; opacity: .8; }
.afk-mode-tabs button.is-active { color: #584aa6; background: #fff; box-shadow: 0 5px 13px rgba(63, 78, 107, .1); }
.afk-mode-panel { margin-top: .6rem; border: 1px solid #e2e9ef; border-radius: .85rem; padding: .75rem; background: #fbfdff; }
.afk-chip-row { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .7rem; }
.afk-chip { display: inline-flex; align-items: center; justify-content: center; min-height: 2.1rem; border: 1px solid #d9e3ec; border-radius: 999px; padding: .3rem .8rem; color: #53647a; background: #fff; font-size: .8rem; font-weight: 850; font-variant-numeric: tabular-nums; text-decoration: none; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.afk-chip:hover { border-color: #b9aee8; color: var(--afk-violet-deep); }
.afk-chip[aria-pressed="true"] { border-color: var(--afk-violet); color: #fff; background: linear-gradient(135deg, #8fa4ea, var(--afk-violet)); }
.afk-chip:disabled { cursor: not-allowed; opacity: .4; }
.afk-form-error { margin-top: .8rem; border: 1px solid #f0c6d0; border-radius: .7rem; padding: .6rem .75rem; color: var(--afk-danger); background: #fff1f4; font-size: .8rem; font-weight: 800; line-height: 1.5; }
.afk-live-status { display: flex; align-items: center; gap: .45rem; margin: .85rem 0 0; color: var(--afk-subtle); font-size: .78rem; font-weight: 750; }
.afk-live-status i { width: .5rem; height: .5rem; border-radius: 999px; background: #c3ccd7; }
.afk-live-status.is-ready { color: var(--afk-success); }
.afk-live-status.is-ready i { background: #2fb676; box-shadow: 0 0 0 3px rgba(47, 182, 118, .15); }
.afk-live-status.is-busy i { background: var(--afk-violet); animation: afk-pulse 1s ease-in-out infinite; }
.afk-live-status.is-error { color: var(--afk-danger); }
.afk-live-status.is-error i { background: var(--afk-danger); }
@keyframes afk-pulse { 50% { opacity: .3; } }

/* ---------- 결과 ---------- */
.afk-result { align-self: start; background: radial-gradient(circle at 100% 0, rgba(151, 136, 228, .16), transparent 31%), linear-gradient(180deg, #fff, #f8fbff) !important; scroll-margin-top: 1rem; transition: opacity .2s ease; }
.afk-result.is-stale #afk-result-content { opacity: .45; }
.afk-result-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.afk-result-head > span { flex: 0 0 auto; border: 1px solid #d9e1e9; border-radius: 999px; padding: .3rem .6rem; color: #7b8899; background: #f4f7fa; font-size: .74rem; font-weight: 900; }
.afk-result-head > span.is-ready { border-color: #c9c0ee; color: #6654b7; background: #f1edff; }
.afk-result-head > span.is-vip { border-color: #b9e0f2; color: var(--afk-blue-deep); background: var(--afk-blue-soft); }
.afk-result-empty { min-height: 16rem; display: grid; justify-items: center; align-content: center; padding: 1rem; text-align: center; }
.afk-result-empty > span { display: grid; width: 4rem; height: 4rem; place-items: center; border-radius: 1.2rem; color: #fff; background: linear-gradient(135deg, var(--afk-blue), var(--afk-violet)); box-shadow: 0 16px 32px rgba(96, 99, 183, .21); }
.afk-result-empty > span svg { width: 2rem; height: 2rem; }
.afk-result-empty strong { margin-top: 1rem; color: #2d4058; font-size: 1rem; font-weight: 950; }
.afk-result-empty p { max-width: 21rem; margin: .4rem 0 0; color: var(--afk-muted); font-size: .82rem; line-height: 1.65; }

.afk-hero-result { margin-top: 1rem; border: 1px solid #d6cff2; border-radius: 1rem; padding: 1rem; background: linear-gradient(135deg, #f2fbff, #f3f0ff); }
.afk-hero-result > small { display: block; color: var(--afk-muted); font-size: .78rem; font-weight: 800; }
.afk-hero-levels { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin-top: .35rem; font-variant-numeric: tabular-nums; }
.afk-hero-levels > span:first-child { color: var(--afk-muted); font-size: .95rem; font-weight: 800; }
.afk-hero-levels > span:first-child em { font-style: normal; font-weight: 700; }
.afk-hero-levels strong { color: #5a48b0; font-size: 1.9rem; font-weight: 950; line-height: 1.15; letter-spacing: -.03em !important; }
.afk-hero-levels strong em { font-size: 1.05rem; font-style: normal; font-weight: 850; }
.afk-result-arrow { display: grid; place-items: center; color: #8a78d8; }
.afk-result-arrow svg { width: 1.3rem; height: 1.3rem; }
.afk-result-eta { margin: .45rem 0 0; color: var(--afk-blue-deep); font-size: .84rem; font-weight: 850; }
.afk-progress { height: .55rem; overflow: hidden; margin-top: .7rem; border-radius: 999px; background: #e7edf3; }
.afk-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--afk-blue), var(--afk-violet)); transition: width .35s ease; }
.afk-result-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: .75rem; }
.afk-result-stats article { min-width: 0; display: grid; grid-template-columns: 2rem minmax(0, 1fr); align-items: center; column-gap: .5rem; border: 1px solid #e1e8ef; border-radius: .75rem; padding: .6rem; background: rgba(255, 255, 255, .92); }
.afk-result-stats article > span { grid-row: 1 / 3; display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: .55rem; color: #6e5fc1; background: #f0edff; }
.afk-result-stats svg { width: 1rem; height: 1rem; }
.afk-result-stats small, .afk-result-stats strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.afk-result-stats small { align-self: end; color: var(--afk-subtle); font-size: .72rem; font-weight: 750; }
.afk-result-stats strong { align-self: start; color: #34465d; font-size: .9rem; font-weight: 950; font-variant-numeric: tabular-nums; }
.afk-result-notice { margin-top: .65rem; border: 1px solid #d4e7f1; border-radius: .7rem; padding: .6rem .7rem; color: #2f7597; background: #eef9ff; font-size: .78rem; font-weight: 750; line-height: 1.5; }

.afk-compare { margin-top: .9rem; border-top: 1px solid #e4eaf0; padding-top: .8rem; }
.afk-compare h3, .afk-milestones h3 { display: flex; align-items: center; gap: .4rem; margin: 0; color: #46586e; font-size: .85rem; font-weight: 950; }
.afk-compare h3 svg { width: 1rem; height: 1rem; color: var(--afk-violet-deep); }
.afk-compare-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: .55rem; }
.afk-compare-item { min-width: 0; display: grid; gap: .15rem; border: 1.5px solid #dfe7ee; border-radius: .85rem; padding: .65rem .7rem; background: #fff; text-align: left; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.afk-compare-item:hover { border-color: #bcb1e8; }
.afk-compare-item.is-selected { border-color: var(--afk-violet); box-shadow: 0 0 0 3px rgba(151, 136, 228, .12); cursor: default; }
.afk-compare-item.is-vip.is-selected { border-color: var(--afk-blue); box-shadow: 0 0 0 3px rgba(104, 199, 235, .15); }
.afk-compare-name { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; color: var(--afk-muted); font-size: .76rem; font-weight: 850; }
.afk-compare-name i { border-radius: 999px; padding: .08rem .4rem; color: #fff; background: var(--afk-success); font-size: .66rem; font-style: normal; font-weight: 900; }
.afk-compare-item strong { overflow: hidden; color: var(--afk-ink); font-size: 1rem; font-weight: 950; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.afk-compare-item small { color: var(--afk-subtle); font-size: .72rem; font-weight: 750; }
.afk-compare-summary { margin: .55rem 0 0; color: var(--afk-text); font-size: .82rem; font-weight: 800; line-height: 1.5; }
.afk-compare-summary:empty { display: none; }

.afk-milestones { margin-top: .9rem; border-top: 1px solid #e4eaf0; padding-top: .8rem; }
.afk-milestones > div { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.afk-milestone { display: inline-flex; align-items: baseline; gap: .35rem; border: 1px solid #dce5ec; border-radius: 999px; padding: .28rem .6rem; color: #69788c; background: #fff; font-size: .74rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.afk-milestone b { font-weight: 900; }
.afk-milestone small { color: var(--afk-subtle); font-size: .68rem; font-weight: 700; }
.afk-milestone.is-hyper { border-color: #f0c7b5; color: #a45a36; background: #fff5ef; }
.afk-milestone.is-beyond { border-color: #d5cef1; color: #6c5bbd; background: #f4f1ff; }
.afk-share-button { width: 100%; min-height: 2.9rem; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; margin-top: 1rem; border: 1px solid #d2cef0; border-radius: .8rem; color: var(--afk-violet-deep); background: var(--afk-violet-soft); font-size: .86rem; font-weight: 900; transition: background .15s ease; }
.afk-share-button:hover { background: #e9e4ff; }
.afk-share-button svg { width: 1.05rem; height: 1.05rem; }

/* ---------- 효율표 ---------- */
.afk-efficiency { scroll-margin-top: 1rem; }
.afk-section-heading { display: flex; flex-direction: column; gap: .65rem; }
.afk-section-heading > div { display: flex; align-items: center; gap: .65rem; }
.afk-section-heading > p { max-width: 34rem; margin: 0; color: var(--afk-muted); font-size: .8rem; line-height: 1.55; font-weight: 650; }
.afk-rate-toolbar { display: flex; flex-direction: column; gap: .6rem; margin-top: 1rem; }
.afk-rate-toolbar .afk-chip-row { margin: 0; }
.afk-rate-search { position: relative; display: block; width: 100%; }
.afk-rate-search svg { position: absolute; top: 50%; left: .75rem; width: 1rem; height: 1rem; color: #8795a7; transform: translateY(-50%); pointer-events: none; }
.afk-rate-search input { width: 100%; min-height: 2.5rem; border: 1px solid #cad9e6; border-radius: .75rem; padding: .45rem .75rem .45rem 2.2rem; color: #263750; font-size: .88rem; font-weight: 800; }
.afk-rate-search input:focus { border-color: #82bfe0; outline: none; box-shadow: 0 0 0 3px rgba(104, 199, 235, .17); }
.afk-rate-table { width: 100%; margin-top: .8rem; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.afk-rate-table thead th { position: sticky; top: calc(var(--mwr-nav-height, 0px) + env(safe-area-inset-top)); z-index: 2; border-bottom: 1px solid var(--afk-line); padding: .6rem .7rem; color: var(--afk-text); background: #f7fafc; font-size: .8rem; font-weight: 950; text-align: right; }
.afk-rate-table thead th:first-child { text-align: left; }
.afk-rate-table tbody { scroll-margin-top: calc(var(--mwr-nav-height, 0px) + 3rem); }
.afk-rate-group-row th { border-bottom: 1px solid var(--afk-line-soft); padding: .55rem .7rem .4rem; color: #8372d3; background: #fff; font-size: .74rem; font-weight: 950; letter-spacing: .04em !important; text-align: left; }
.afk-rate-row th, .afk-rate-row td { border-bottom: 1px solid #eef2f6; padding: .45rem .7rem; }
.afk-rate-row th { color: #596a80; font-size: .84rem; font-weight: 850; text-align: left; white-space: nowrap; }
.afk-rate-row td { text-align: right; }
.afk-rate-row td strong, .afk-rate-row td small { display: block; }
.afk-rate-row td strong { color: #293d56; font-size: .88rem; font-weight: 900; }
.afk-rate-row td small { color: var(--afk-subtle); font-size: .7rem; font-weight: 700; }
.afk-rate-table[data-selected="vip"] td.is-vip, .afk-rate-table[data-selected="mvp"] td.is-mvp { background: rgba(151, 136, 228, .06); }
.afk-rate-table[data-selected="vip"] th.is-vip, .afk-rate-table[data-selected="mvp"] th.is-mvp { color: var(--afk-violet-deep); }
.afk-rate-row.is-current th, .afk-rate-row.is-current td { background: linear-gradient(90deg, #eefaff, #f2efff) !important; }
.afk-rate-row.is-current th { color: #5f4fb2; }
.afk-rate-row.is-current th::after { content: " · 현재"; font-size: .7rem; }
.afk-rate-row.is-found th, .afk-rate-row.is-found td { animation: afk-found 1.6s ease; }
@keyframes afk-found { 0%, 40% { background: #fff2c6; } }
.afk-data-note { margin-top: .9rem; border: 1px solid #dbe8f0; border-radius: .75rem; padding: .7rem .8rem; color: #66768a; background: linear-gradient(135deg, #f2fbff, #f6f3ff); font-size: .78rem; line-height: 1.55; }
.afk-data-note p { display: flex; align-items: flex-start; gap: .42rem; margin: 0; }
.afk-data-note svg { width: 1rem; height: 1rem; flex: 0 0 auto; margin-top: .15rem; color: #6a59b9; }

/* ---------- 모바일 요약 바 · 토스트 ---------- */
.afk-mobile-bar { position: fixed; right: .75rem; bottom: calc(var(--mwr-dock-height, 0px) + env(safe-area-inset-bottom) + .6rem); left: .75rem; z-index: 40; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 1.2rem; align-items: center; gap: .6rem; border: 0; border-radius: 1rem; padding: .7rem .9rem; color: #fff; background: linear-gradient(135deg, #4fa9d6, #7d68d0); box-shadow: 0 14px 34px rgba(62, 58, 140, .35); text-align: left; }
.afk-mobile-bar[hidden] { display: none; }
body:has(.afk-mobile-bar:not([hidden])) { padding-bottom: calc(var(--mwr-dock-height, 0px) + env(safe-area-inset-bottom) + 6rem); }
.afk-mobile-bar small, .afk-mobile-bar strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.afk-mobile-bar small { font-size: .7rem; font-weight: 750; opacity: .85; }
.afk-mobile-bar strong { font-size: .95rem; font-weight: 950; font-variant-numeric: tabular-nums; }
.afk-mobile-bar svg { width: 1.1rem; height: 1.1rem; transform: rotate(-90deg); }
.afk-toast { position: fixed; bottom: calc(var(--mwr-dock-height, 0px) + env(safe-area-inset-bottom) + 5.5rem); left: 50%; z-index: 50; max-width: calc(100vw - 2rem); border-radius: .8rem; padding: .65rem 1rem; color: #fff; background: rgba(23, 36, 58, .92); font-size: .84rem; font-weight: 800; transform: translate(-50%, .5rem); opacity: 0; transition: opacity .2s ease, transform .2s ease; }
.afk-toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

@media (min-width: 640px) {
  .afk-intro-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .afk-panel, .afk-result, .afk-efficiency { padding: 1.3rem; }
  .afk-section-heading { flex-direction: row; align-items: center; justify-content: space-between; }
  .afk-rate-toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
  .afk-rate-search { width: 11rem; flex: 0 0 auto; }
}

@media (min-width: 960px) {
  .afk-workspace { grid-template-columns: minmax(0, 1.05fr) minmax(22rem, .95fr); align-items: start; }
  .afk-result { position: sticky; top: calc(var(--mwr-nav-height, 0px) + 1rem); max-height: calc(100vh - var(--mwr-nav-height, 0px) - 2rem); overflow-y: auto; }
}

@media (min-width: 1100px) {
  .afk-toast { bottom: 1.5rem; }
}

@media (max-width: 479px) {
  .public-shell main { padding-right: .65rem; padding-left: .65rem; }
  .afk-panel, .afk-result, .afk-efficiency { padding: .9rem; }
  .afk-facility-option { grid-template-columns: minmax(0, 1fr) auto; padding: .65rem; }
  .afk-facility-option .afk-choice-icon { display: none; }
  .afk-burning-list { grid-template-columns: 1fr; }
  .afk-mode-tabs button small { display: none; }
  .afk-character-profile { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .afk-profile-level { grid-column: 1 / -1; border-top: 1px solid rgba(199, 218, 232, .78); padding-top: .5rem; text-align: left; }
  .afk-hero-levels strong { font-size: 1.6rem; }
  .afk-rate-row th, .afk-rate-row td, .afk-rate-table thead th { padding-right: .45rem; padding-left: .45rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .afk-secondary-button, .afk-facility-option, .afk-switch-card, .afk-switch, .afk-switch i, .afk-progress span, .afk-chip, .afk-compare-item, .afk-toast, .afk-result { transition: none; }
  .afk-live-status.is-busy i, .afk-rate-row.is-found th, .afk-rate-row.is-found td { animation: none; }
}
