/* 모바일 전용 UI */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { background: #14161c; color: #e8eaf0; font-family: -apple-system, "Apple SD Gothic Neo", sans-serif; font-size: 15px; }
button { background: #3b82f6; color: #fff; border: none; border-radius: 10px;
  padding: 12px 16px; font-size: 15px; cursor: pointer; min-height: 44px; }
button.ghost { background: #2a2e3a; }
button.danger { background: #5b2a2a; }
button.small { padding: 8px 12px; font-size: 13px; min-height: 40px; }
input, select { background: #262a36; border: 1px solid #343a4a; color: #fff; border-radius: 10px;
  padding: 10px 12px; font-size: 16px; min-height: 44px; }
input.pct { width: 64px; min-height: 40px; }
select.pct { min-height: 40px; max-width: 110px; }
label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #9aa0b0; }

header { position: sticky; top: 0; z-index: 10; background: #14161c;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid #262a36; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #fff; letter-spacing: -0.5px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-name { font-weight: 800; font-size: 16px; letter-spacing: -0.3px; }
.logo-sub { font-size: 11px; color: #9aa0b0; }
.head-actions { display: flex; align-items: center; gap: 8px; }
.head-actions button { width: 40px; min-height: 40px; padding: 0; font-size: 17px; }
.badge { background: #2a2e3a; border-radius: 20px; padding: 5px 11px; font-size: 12px; white-space: nowrap; }
.badge.live { background: #3a2a2a; color: #ff9a9a; }
.badge.paper { background: #2a3a2e; color: #9affb0; }
.badge.paused { background: #3a3325; color: #ffd479; }

.tabs { position: sticky; top: 60px; z-index: 9; background: #14161c;
  display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto; border-bottom: 1px solid #262a36; }
.tabs button { background: #2a2e3a; flex-shrink: 0; font-weight: 600; }
.tabs button.active { background: #3b82f6; }

.loading { text-align: center; padding: 40px 20px; color: #9aa0b0; }

main { padding: 14px 14px 30px; max-width: 640px; margin: 0 auto; }
section { margin-bottom: 22px; }
.sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
h2 { font-size: 16px; }
.muted { color: #9aa0b0; font-size: 13px; font-weight: 400; }
.hint { color: #9aa0b0; font-size: 12px; margin-top: 8px; }
.card { background: #1d2029; border-radius: 14px; padding: 16px; }
.row { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.kv { display: flex; justify-content: space-between; align-items: center; padding: 9px 0;
  border-bottom: 1px solid #262a36; font-size: 15px; }
.kv:last-child { border-bottom: none; }

.hero { background: #1d2029; border-radius: 16px; padding: 18px 16px; margin-bottom: 20px; }
.hero-price { font-size: 30px; font-weight: 800; }
.hero-sub { color: #9aa0b0; font-size: 13px; margin: 4px 0; }
.hero-pnl { font-size: 20px; font-weight: 800; margin: 6px 0 10px; }
.hero-row { display: flex; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.hero-row .small { margin-left: auto; }
.pos { color: #4ade80; } .neg { color: #f87171; }
.buy { color: #4ade80; font-weight: 700; } .sell { color: #60a5fa; font-weight: 700; }

.seg { display: flex; gap: 6px; }
.seg button { background: #2a2e3a; padding: 8px 12px; font-size: 13px; min-height: 38px; }
.seg button.active { background: #3b82f6; }
#priceChart { width: 100%; height: 220px; background: #1d2029; border-radius: 14px; display: block; }

.slot { background: #1d2029; border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.slot.holding { border: 1px solid #2c4a35; }
.slot-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.slot-top strong { font-size: 17px; }
.slot-next { margin-left: auto; font-size: 14px; font-weight: 600; }
.slot-edit { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.slot-edit .small { margin-left: auto; }
.pill { display: inline-block; padding: 4px 11px; border-radius: 12px; font-size: 12px; }
.pill.holding { background: #2c3a2a; color: #4ade80; }
.pill.empty { background: #2a2e3a; color: #9aa0b0; }

.trade { padding: 11px 4px; border-bottom: 1px solid #262a36; font-size: 14px; }
.trade-main { display: flex; align-items: center; gap: 10px; }
.trade-main strong { margin-left: auto; }
.trade-main .muted { min-width: 74px; }
.trade-sub { font-size: 12px; margin-top: 3px; }

.dropdown { background: #262a36; border-radius: 10px; margin-top: 6px;
  max-height: 280px; overflow-y: auto; }
.dd-item { padding: 13px 14px; border-bottom: 1px solid #343a4a; font-size: 16px; font-weight: 600; }
.dd-item:last-child { border-bottom: none; }
.dd-item:active { background: #343a4a; }

footer { text-align: center; color: #6b7280; font-size: 12px; padding: 10px 0 30px; }
