/* /var/www/maple-app/Util/7/starslum.css
   기능 설명: 메이플 레코드 스타포스 시뮬레이터 전용 스타일시트
   - 기존 사이트 다크 슬레이트·코랄 톤(#131722, #0c1018, #ff7b54~#f0643b) 통일
   - 아이템 아이콘 타일, 노작 메소 입력 + 한글 단위 힌트, 1-스크린 콕핏 레이아웃 */

.sf-page-shell {
  padding-top: 22px;
  padding-bottom: 52px;
}

.sf-svg-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* 숫자 입력 스피너 제거 */
.sf-page-shell input[type="number"]::-webkit-outer-spin-button,
.sf-page-shell input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.sf-page-shell input[type="number"] {
  -moz-appearance: textfield;
}

.text-white { color: #f8fafc; }
.text-amber { color: #fbbf24; }
.text-emerald { color: #34d399; }
.text-sky { color: #38bdf8; }
.text-rose { color: #fb7185; }

/* 1. 상단 페이지 헤더 (잠재능력 시뮬레이터와 100% 통일) */
.sf-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 16px;
}

.sf-header-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sf-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ff8c5a;
}

.sf-page-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.sf-page-subtitle {
  margin: 2px 0 0;
  font-size: 0.84rem;
  color: #8b949e;
  line-height: 1.45;
}

.sf-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sf-event-segment {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #0c1018;
  border: 1px solid #1e2636;
  padding: 4px;
  border-radius: 10px;
}

.btn-sf-seg {
  background: transparent;
  color: #8b949e;
  border: 1px solid transparent;
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-sf-seg:hover {
  color: #e2e8f0;
}

.btn-sf-seg.active {
  background: linear-gradient(180deg, #ff7b54 0%, #f0643b 100%);
  color: #ffffff;
  border-color: rgba(255, 160, 122, 0.35);
  box-shadow: 0 3px 10px rgba(240, 100, 59, 0.28);
}

.btn-sf-seg.is-shining.active {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  border-color: rgba(253, 224, 71, 0.45);
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.34);
}

.btn-sf-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #1a202e;
  color: #cbd5e1;
  border: 1px solid #2b354a;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-sf-secondary:hover:not(:disabled) {
  background: #232b3d;
  color: #ffffff;
  border-color: #3f4e6d;
}

/* 2. 140/160/200/250제 장비 & 설정 허브 */
.sf-control-hub {
  background: #131722;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.sf-hub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.sf-tier-tabs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.sf-tier-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 14px;
  border-radius: 9px;
  background: #0c1018;
  border: 1px solid #222b3e;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.14s ease;
}

.sf-tier-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--tier-accent, #64748b);
  opacity: 0.65;
}

.sf-tier-tab:hover {
  color: #e2e8f0;
  border-color: #36435e;
}

.sf-tier-tab.active {
  color: #ffffff;
  background: #182032;
  border-color: var(--tier-accent, #ff8c5a);
}

.sf-tier-tab.active::before {
  width: 4px;
  opacity: 1;
}

.sf-tier-tab small {
  font-size: 0.69rem;
  font-weight: 700;
  color: #64748b;
}

.sf-tier-tab.active small {
  color: var(--tier-accent, #cbd5e1);
}

.sf-active-equip-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: #94a3b8;
}

.sf-active-equip-badge strong {
  color: #f8fafc;
  font-weight: 800;
}

.sf-badge-item-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}

.sf-badge-sep {
  color: #475569;
}

.sf-lv-tag {
  font-size: 0.69rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tier-140 { background: rgba(52, 211, 153, 0.15); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.3); }
.tier-160 { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.tier-200 { background: rgba(192, 132, 252, 0.15); color: #c084fc; border: 1px solid rgba(192, 132, 252, 0.3); }
.tier-250 { background: rgba(251, 191, 36, 0.15); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.32); }

/* 1줄 균등 장비 타일 스트립 (아이콘 + 이름) */
.sf-equip-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.sf-equip-chip {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 7px 9px;
  border-radius: 9px;
  background: #0c1018;
  border: 1px solid #20293c;
  cursor: pointer;
  font-family: inherit;
  min-width: 0;
  transition: all 0.13s ease;
}

.sf-equip-chip:hover {
  border-color: #3a4966;
  background: #111725;
}

.sf-equip-chip.active {
  background: rgba(240, 100, 59, 0.12);
  border-color: rgba(255, 140, 90, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 140, 90, 0.18);
}

.sf-equip-icon-box {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #141b29;
  border: 1px solid #242e42;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sf-equip-chip.active .sf-equip-icon-box {
  background: rgba(240, 100, 59, 0.14);
  border-color: rgba(255, 140, 90, 0.42);
}

.sf-equip-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.sf-equip-chip-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.sf-equip-chip-name {
  font-size: 0.79rem;
  font-weight: 800;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sf-equip-chip-sub {
  font-size: 0.68rem;
  color: #8b949e;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sf-equip-chip.active .sf-equip-chip-sub {
  color: #ffbe9d;
}

/* 하단 파라미터 + 원클릭 토글 툴바 (높이 32px 통일 · 줄바꿈 방지) */
.sf-params-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sf-param-group,
.sf-toggle-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.sf-inline-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #8b949e;
  white-space: nowrap;
  flex-shrink: 0;
}

.sf-inline-field > span {
  white-space: nowrap;
  flex-shrink: 0;
}

/* 전역 style.css의 input/select 규칙 덮어쓰기 방지 */
.sf-control-hub .sf-mini-input,
.sf-control-hub .sf-mini-select,
.sf-analytics-panel .sf-mini-select {
  height: 32px;
  min-height: 32px;
  margin: 0;
  box-sizing: border-box;
  background: #0c1018;
  border: 1px solid #253046;
  color: #f8fafc;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 0.79rem;
  font-weight: 800;
  font-family: inherit;
  line-height: 1;
  outline: none;
  width: auto;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.14s ease;
}

.sf-control-hub .sf-mini-select {
  padding: 0 10px;
  cursor: pointer;
}

.sf-control-hub .sf-mini-input:focus,
.sf-control-hub .sf-mini-select:focus {
  border-color: #f0883e;
}

.sf-control-hub .sf-mini-input.w-lv {
  width: 54px;
  text-align: center;
  padding: 0 6px;
}

.sf-control-hub .sf-mini-input.w-spare-meso {
  width: 136px;
  text-align: right;
  padding: 0 36px 0 9px;
}

.sf-unit-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.sf-unit-box span {
  position: absolute;
  right: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #8b949e;
  pointer-events: none;
  white-space: nowrap;
}

.sf-spare-kr-hint {
  display: inline-flex;
  align-items: center;
  height: 32px;
  box-sizing: border-box;
  font-size: 0.73rem;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  padding: 0 8px;
  border-radius: 7px;
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.sf-star-pair {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.sf-pair-arrow {
  color: #475569;
  font-size: 0.76rem;
}

.sf-quick-targets {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 32px;
  box-sizing: border-box;
  background: #0c1018;
  border: 1px solid #253046;
  padding: 3px;
  border-radius: 8px;
  flex-shrink: 0;
}

.sf-qstar-btn {
  height: 100%;
  background: transparent;
  color: #8b949e;
  border: none;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 0.74rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.13s ease;
}

.sf-qstar-btn:hover {
  color: #f8fafc;
}

.sf-qstar-btn.active {
  background: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
}

.sf-pill-cluster {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.sf-cluster-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
  margin-right: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}

.sf-toggle-pill {
  height: 32px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0c1018;
  color: #8b949e;
  border: 1px solid #253046;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.13s ease;
}

.sf-toggle-pill:hover {
  border-color: #3f4f70;
  color: #e2e8f0;
}

.sf-toggle-pill.active {
  background: rgba(240, 100, 59, 0.16);
  color: #ff9f68;
  border-color: rgba(255, 140, 90, 0.52);
}

/* 3. 메인 1-스크린 2단 콕핏 */
.sf-cockpit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(350px, 0.96fr);
  gap: 14px;
  align-items: stretch;
}

.sf-card {
  background: #131722;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 15px;
  padding: 15px 17px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.sf-live-telemetry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.sf-tel-item {
  background: #0c1018;
  border: 1px solid #1f2738;
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 0;
}

.sf-tel-item span {
  display: block;
  font-size: 0.69rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 2px;
}

.sf-tel-item strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sf-stage-visual {
  background: #0c1018;
  border: 1px solid #222b3e;
  border-radius: 13px;
  padding: 13px 14px;
  margin-bottom: 11px;
}

.sf-stage-visual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.sf-visual-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sf-stage-icon-frame {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #141b29;
  border: 1px solid #263147;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sf-stage-item-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}

.sf-visual-left h2 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 900;
  color: #f8fafc;
}

.sf-visual-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sf-star-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
}

.sf-sep-arrow {
  color: #475569;
  font-size: 0.8rem;
}

.sf-peak-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: #94a3b8;
  background: #141a28;
  border: 1px solid #242e42;
  padding: 2px 8px;
  border-radius: 999px;
}

.sf-star-rows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.sf-star-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 11px;
}

.sf-star-cluster {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.sf-star-dot {
  font-size: 1.02rem;
  line-height: 1;
  color: #273145;
  user-select: none;
  transition: color 0.12s ease, text-shadow 0.12s ease;
}

.sf-star-dot.filled {
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.sf-star-dot.is-high.filled {
  color: #ff8c5a;
  text-shadow: 0 0 9px rgba(255, 140, 90, 0.6);
}

.sf-star-dot.is-target {
  color: #38bdf8;
}

.sf-star-dot.filled.is-target {
  color: #34d399;
  text-shadow: 0 0 9px rgba(52, 211, 153, 0.65);
}

.sf-status-banner {
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sf-status-banner.is-idle {
  background: #131825;
  border: 1px solid #222b3e;
  color: #94a3b8;
}

.sf-status-banner.is-success {
  background: rgba(52, 211, 153, 0.13);
  border: 1px solid rgba(52, 211, 153, 0.36);
  color: #6ee7b7;
}

.sf-status-banner.is-fail {
  background: rgba(148, 163, 184, 0.11);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
}

.sf-status-banner.is-destroy {
  background: rgba(244, 63, 94, 0.16);
  border: 1px solid rgba(251, 113, 133, 0.48);
  color: #fda4af;
}

.sf-status-banner.is-goal {
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.55);
  color: #fde047;
}

.sf-destroyed-box {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(251, 113, 133, 0.45);
  border-radius: 12px;
  padding: 11px 12px;
  margin-bottom: 11px;
}

.sf-destroyed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
  font-size: 0.79rem;
  color: #fda4af;
}

.sf-destroyed-head span {
  font-size: 0.73rem;
  color: #cbd5e1;
}

.sf-destroyed-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-rec-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 9px;
  background: #1a2132;
  border: 1px solid #334155;
  color: #f8fafc;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.14s ease;
}

.btn-rec-option:hover {
  background: #232d44;
  border-color: #64748b;
}

.btn-rec-option.is-keep {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.45);
  color: #e0f2fe;
}

.btn-rec-option.is-keep:hover {
  background: rgba(56, 189, 248, 0.26);
}

.btn-rec-option strong {
  font-size: 0.81rem;
  font-weight: 800;
}

.btn-rec-option small {
  font-size: 0.7rem;
  opacity: 0.85;
}

.sf-odds-panel {
  background: #0c1018;
  border: 1px solid #20293c;
  border-radius: 11px;
  padding: 11px 13px;
  margin-bottom: 10px;
}

.sf-odds-bar {
  display: flex;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #1a2233;
  margin-bottom: 9px;
}

.sf-bar-seg {
  height: 100%;
  transition: width 0.2s ease;
}

.seg-success { background: #34d399; }
.seg-fail { background: #475569; }
.seg-destroy { background: #fb7185; }

.sf-odds-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sf-odd-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8rem;
}

.odd-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-success { background: #34d399; }
.dot-fail { background: #64748b; }
.dot-destroy { background: #fb7185; }

.odd-lbl {
  color: #8b949e;
  font-size: 0.75rem;
  font-weight: 700;
}

.sf-odd-cell strong {
  font-size: 0.95rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.sf-cost-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: #0c1018;
  border: 1px solid #20293c;
  border-radius: 10px;
  padding: 9px 13px;
  margin-bottom: 11px;
}

.sf-cost-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.sf-cost-title {
  font-size: 0.77rem;
  font-weight: 700;
  color: #94a3b8;
}

.sf-cost-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.sf-mini-tag {
  font-size: 0.67rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

.tag-disc { background: rgba(52, 211, 153, 0.14); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.3); }
.tag-boom-red { background: rgba(251, 191, 36, 0.14); color: #fde047; border: 1px solid rgba(251, 191, 36, 0.32); }
.tag-sg { background: rgba(56, 189, 248, 0.15); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.34); }

.sf-cost-right {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-variant-numeric: tabular-nums;
}

.cost-strike {
  font-size: 0.74rem;
  color: #64748b;
  text-decoration: line-through;
}

.sf-cost-right strong {
  font-size: 1rem;
  font-weight: 900;
}

.sf-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.btn-sf-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ff7b54 0%, #f0643b 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 160, 122, 0.34);
  border-radius: 11px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(240, 100, 59, 0.25);
  transition: transform 0.14s ease, filter 0.14s ease;
}

.btn-sf-primary:hover:not(:disabled) {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.btn-sf-auto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #2b354b 0%, #1d2436 100%);
  color: #f8fafc;
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 11px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.btn-sf-auto:hover:not(:disabled) {
  border-color: #fbbf24;
  background: linear-gradient(180deg, #35425c 0%, #232c42 100%);
  transform: translateY(-1px);
}

.btn-sf-primary:disabled,
.btn-sf-auto:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-stage-action {
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
}

.btn-act-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 900;
}

.btn-stage-action small {
  font-size: 0.71rem;
  font-weight: 600;
  opacity: 0.88;
}

/* 4. 우측 통합 분석 탭 패널 */
.sf-side-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  background: #0c1018;
  border: 1px solid #20293c;
  padding: 4px;
  border-radius: 11px;
  margin-bottom: 12px;
}

.sf-side-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  color: #8b949e;
  border: 1px solid transparent;
  padding: 7px 6px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.sf-side-tab:hover {
  color: #e2e8f0;
}

.sf-side-tab.active {
  background: #1b2436;
  color: #f8fafc;
  border-color: #32405c;
}

.sf-tab-count {
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(240, 100, 59, 0.2);
  color: #ff9f68;
  padding: 1px 6px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.sf-tab-pane {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.sf-tab-pane.active {
  display: flex;
}

.sf-pane-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.75rem;
  color: #8b949e;
  font-weight: 700;
}

.sf-exact-tag {
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
}

.sf-ev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.sf-ev-card {
  background: #0c1018;
  border: 1px solid #20293c;
  border-radius: 10px;
  padding: 9px 11px;
  min-width: 0;
}

.sf-ev-card span {
  display: block;
  font-size: 0.69rem;
  font-weight: 700;
  color: #8b949e;
  margin-bottom: 2px;
}

.sf-ev-card strong {
  display: block;
  font-size: 0.93rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sf-ev-table-wrap {
  max-height: 192px;
  overflow-y: auto;
  border: 1px solid #1f2738;
  border-radius: 10px;
  background: #0c1018;
  margin-bottom: 10px;
}

.sf-ev-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
}

.sf-ev-table th,
.sf-ev-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sf-ev-table th:first-child,
.sf-ev-table td:first-child {
  text-align: left;
}

.sf-ev-table thead th {
  position: sticky;
  top: 0;
  background: #141a28;
  color: #8b949e;
  font-weight: 700;
  z-index: 1;
}

.sf-ev-tip {
  margin-top: auto;
  padding: 8px 11px;
  border-radius: 9px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  font-size: 0.74rem;
  color: #fde047;
  line-height: 1.45;
}

.sf-bulk-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 10px;
}

.btn-bulk-go {
  padding: 7px 14px;
  font-size: 0.8rem;
  border-radius: 8px;
}

.sf-empty-box {
  background: #0c1018;
  border: 1px dashed #253046;
  border-radius: 10px;
  padding: 28px 14px;
  text-align: center;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.55;
}

.sf-empty-box strong {
  color: #cbd5e1;
}

.sf-bulk-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sf-bulk-row {
  background: #0c1018;
  border: 1px solid #20293c;
  border-radius: 10px;
  padding: 9px 11px;
}

.sf-bulk-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.77rem;
  margin-bottom: 5px;
}

.sf-bulk-row-top strong {
  font-variant-numeric: tabular-nums;
}

.sf-bulk-track {
  width: 100%;
  height: 6px;
  background: #171f30;
  border-radius: 999px;
  overflow: hidden;
}

.sf-bulk-fill {
  height: 100%;
  border-radius: 999px;
}

.bar-lucky { background: linear-gradient(90deg, #34d399, #10b981); }
.bar-median { background: linear-gradient(90deg, #38bdf8, #0ea5e9); }
.bar-avg { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.bar-unlucky { background: linear-gradient(90deg, #fb7185, #e11d48); }

.sf-bulk-note {
  margin-top: 8px;
  font-size: 0.72rem;
  color: #8b949e;
  text-align: center;
}

.sf-log-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.75rem;
  color: #8b949e;
  font-weight: 700;
}

.sf-log-scroll {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 365px;
  overflow-y: auto;
}

.sf-log-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 9px;
  background: #0c1018;
  border: 1px solid #1f2738;
  font-size: 0.75rem;
}

.sf-log-item.is-success {
  border-color: rgba(52, 211, 153, 0.32);
  background: rgba(16, 185, 129, 0.05);
}

.sf-log-item.is-destroy {
  border-color: rgba(251, 113, 133, 0.42);
  background: rgba(244, 63, 94, 0.08);
}

.sf-log-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.sf-log-seq {
  color: #64748b;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sf-log-text {
  color: #e2e8f0;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sf-res-pill {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  flex-shrink: 0;
}

.res-success { background: rgba(52, 211, 153, 0.16); color: #6ee7b7; }
.res-fail { background: rgba(148, 163, 184, 0.14); color: #94a3b8; }
.res-destroy { background: rgba(244, 63, 94, 0.2); color: #fda4af; }
.res-recover { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; }

.sf-log-cost {
  color: #94a3b8;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 반응형 미디어 쿼리 */
@media (max-width: 1080px) {
  .sf-cockpit-grid {
    grid-template-columns: 1fr;
  }
  .sf-equip-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .sf-equip-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sf-live-telemetry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sf-action-row,
  .sf-destroyed-btns {
    grid-template-columns: 1fr;
  }
  .sf-odds-metrics {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .sf-odd-cell {
    justify-content: space-between;
  }
  .sf-star-dot {
    font-size: 0.88rem;
  }
}