:root {
  --bg: #0b0e13;
  --bg2: #10151c;
  --panel: #151b24;
  --panel2: #1b2330;
  --line: #243040;
  --line2: #2f3d50;
  --text: #e8edf3;
  --muted: #8d9aab;
  --primary: #4f8cff;
  --primary2: #3b6fd6;
  --danger: #e5484d;
  --fold: #5b6572;
  --check: #3ec97e;
  --call: #2aa868;
  --bet1: #f4b03a;
  --bet2: #f06a2a;
  --bet3: #e23d3d;
  --allin: #9b1c1c;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 600px at 20% -10%, #16213a 0%, var(--bg) 55%);
  color: var(--text);
  font: 14px/1.5 Inter, "Noto Sans KR", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: 15px; }
h3 { font-size: 13px; color: var(--text); }
.hint { color: var(--muted); font-size: 12.5px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.hidden { display: none !important; }
.sep { flex: 1; }

/* ----- 상단 ----- */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px; padding: 10px 20px; background: rgba(11, 14, 19, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
.brand .logo { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), #8b5cf6); color: #fff; font-size: 16px; }
.tabs { display: flex; gap: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.tab { background: transparent; color: var(--muted); border: 0; border-radius: 8px; padding: 6px 14px; cursor: pointer; font: inherit; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.tab:hover { color: var(--text); }
.tab.on { background: var(--panel2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.pill { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: rgba(79, 140, 255, .18); color: #9cc0ff; }
.topstatus { margin-left: auto; color: var(--muted); font-size: 12.5px; }

/* ----- 레이아웃 ----- */
.layout { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 18px; padding: 18px 20px 40px; max-width: 1600px; margin: 0 auto; }
@media (max-width: 1000px) { .layout { grid-template-columns: 1fr; } }
.side, .main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.cardhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }

/* ----- 입력 ----- */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; min-width: 0; }
.field > label { font-size: 12px; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.inline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.inline.wrap { flex-wrap: wrap; row-gap: 8px; margin: 8px 0; }
input[type=text], input:not([type]), input[type=number], textarea, select {
  background: var(--bg2); color: var(--text); border: 1px solid var(--line2); border-radius: 8px; padding: 7px 10px; font: inherit; width: 100%; min-width: 0;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 140, 255, .2); }
input.narrow { width: 86px; }
textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.4; }
textarea.err { border-color: var(--danger); }
input[type=range] { width: 110px; accent-color: var(--primary); }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin: 4px 0; }
.check input { accent-color: var(--primary); }
details.adv { border: 1px dashed var(--line2); border-radius: 10px; padding: 8px 12px; margin: 6px 0 10px; }
details.adv summary { cursor: pointer; color: var(--muted); font-size: 13px; }
details.adv[open] summary { margin-bottom: 8px; color: var(--text); }

/* ----- 버튼 ----- */
.btn { background: var(--panel2); color: var(--text); border: 1px solid var(--line2); border-radius: 9px; padding: 8px 14px; cursor: pointer; font: inherit; font-weight: 500; transition: background .15s, transform .05s, border-color .15s; white-space: nowrap; }
.btn:hover { background: #222c3a; border-color: #3b4b61; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.primary { background: linear-gradient(180deg, var(--primary), var(--primary2)); border-color: var(--primary2); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { border-color: rgba(229, 72, 77, .5); color: #ff8a8e; background: rgba(229, 72, 77, .08); }
.btn.ghost { background: transparent; }
.btn.small { padding: 5px 10px; font-size: 12.5px; border-radius: 7px; }
.actionsRow { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 8px; }
.actionsRow .btn.primary { flex: 1; }

/* ----- 진행 ----- */
.progress { height: 6px; background: var(--bg2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); margin: 6px 0; }
.progress .bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), #8b5cf6); transition: width .25s; }
.status { font-size: 12.5px; color: var(--muted); min-height: 18px; }
.status .err { color: #ff8a8e; }

/* ----- 요약 타일 ----- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 1300px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.stat .s { font-size: 11px; color: var(--muted); }

/* ----- 레인지 ----- */
.ranges { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (max-width: 1000px) and (min-width: 700px) { .ranges { grid-template-columns: 1fr 1fr; } }
.rangeBox { min-width: 0; }
.rangehead { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.rangehead select.preset { width: auto; min-width: 96px; padding: 3px 6px; font-size: 12px; }
.rangeBox .grid169 .cell { font-size: 9.5px; }
.rangeBox textarea { width: 100%; }

/* ----- 13×13 그리드 ----- */
.grid169 { display: grid; grid-template-columns: repeat(13, 1fr); gap: 2px; user-select: none; margin-top: 8px; }
.grid169 .cell { position: relative; aspect-ratio: 1; border-radius: 4px; background: var(--bg2); border: 1px solid #1d2632; font-size: 10px; display: flex; align-items: center; justify-content: center; color: #c9d4df; overflow: hidden; cursor: pointer; }
.grid169 .cell.pair { border-color: #37465a; }
.grid169 .cell .fill { position: absolute; inset: 0; background: var(--primary); opacity: .8; transform-origin: bottom; }
.grid169 .cell .lbl { position: relative; z-index: 1; text-shadow: 0 0 3px #000, 0 0 2px #000; font-weight: 600; }
.grid169.strat .cell { font-size: 10.5px; }
.grid169.strat .cell .bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column-reverse; height: 100%; }
.grid169.strat .cell .seg { width: 100%; }
.grid169 .cell.sel { outline: 2px solid #fff; outline-offset: -2px; }
.grid169 .cell.dim { opacity: .22; }
.grid169 .cell:hover { outline: 2px solid rgba(255, 255, 255, .7); outline-offset: -2px; }
.gridwrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; align-items: start; margin-top: 10px; }
@media (max-width: 1300px) { .gridwrap { grid-template-columns: 1fr; } }
.cellinfo { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 12.5px; position: sticky; top: 70px; }
.cellinfo h4 { margin: 0 0 8px; font-size: 14px; }
.cellinfo .row { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.cellinfo .row .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.cellinfo .row .nm { flex: 1; }
.cellinfo .row .pct { font-weight: 600; min-width: 48px; text-align: right; }
.cellinfo .row .ev { color: var(--muted); min-width: 60px; text-align: right; }
.cellinfo .meter { height: 6px; background: #0b0e13; border-radius: 999px; overflow: hidden; display: flex; margin: 8px 0 4px; }
.cellinfo .meter div { height: 100%; }

/* ----- 카드 피커 ----- */
.cardPicker { display: grid; grid-template-columns: repeat(13, 1fr); gap: 3px; margin: 8px 0; }
.cardPicker .card { padding: 4px 0; text-align: center; border-radius: 5px; background: var(--bg2); border: 1px solid var(--line); cursor: pointer; font-size: 12px; box-shadow: none; }
.cardPicker .card:hover { border-color: var(--line2); }
.cardPicker .card.used { opacity: .22; cursor: default; }
.cardPicker .card.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.cardPicker .s0, .cardPicker .s3 { color: #e6edf3; }
.cardPicker .s1 { color: #60a5fa; }
.cardPicker .s2 { color: #f87171; }
.cardPicker .card.on.s1, .cardPicker .card.on.s2 { color: #fff; }

/* ----- 경로·행동 ----- */
.path { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; align-items: center; }
.path .crumb { background: var(--panel2); border: 1px solid var(--line2); border-radius: 999px; padding: 4px 11px; cursor: pointer; font-size: 12.5px; color: var(--muted); }
.path .crumb:hover { color: var(--text); }
.path .crumb.cur { background: var(--primary); border-color: var(--primary); color: #fff; }
.path .crumb + .crumb::before { content: ""; }
.nodehead { font-size: 13.5px; line-height: 1.6; margin: 4px 0 10px; }
.nodehead b { font-weight: 600; }
.badge { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: #7c2d12; color: #fed7aa; margin-left: 6px; vertical-align: middle; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.actions .act { border-radius: 10px; padding: 8px 12px; border: 1px solid var(--line2); cursor: pointer; background: var(--panel2); min-width: 128px; transition: transform .05s, border-color .15s; }
.actions .act:hover { border-color: #51627a; }
.actions .act:active { transform: translateY(1px); }
.actions .act .nm { font-weight: 600; display: flex; align-items: center; gap: 7px; }
.actions .act .nm .muted { color: var(--muted); font-weight: 500; }
.actions .act .sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.actions .act .ev { font-size: 12px; color: var(--muted); margin-top: 2px; }
table.detail { border-collapse: collapse; width: 100%; margin-top: 10px; font-size: 12px; }
table.detail th, table.detail td { border-bottom: 1px solid var(--line); padding: 4px 6px; text-align: right; }
table.detail th { color: var(--muted); font-weight: 500; }
table.detail th:first-child, table.detail td:first-child { text-align: left; }
.lockBox { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 10px; }
.lockBox input[type=number] { width: 70px; }
.lockBox input.mid { width: 120px; }
.lockBox label { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; }
.rates { display: flex; flex-direction: column; gap: 6px; }
.rate { display: grid; grid-template-columns: 64px 1fr 52px; align-items: center; gap: 8px; font-size: 12.5px; white-space: nowrap; }
.rate .track { height: 8px; background: var(--bg2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.rate .track div { height: 100%; background: linear-gradient(90deg, var(--bet1), var(--bet2)); }
.rate b { text-align: right; }
.warn { color: #fbbf24; }
.err { color: #ff8a8e; }
.muted { color: var(--muted); }

/* ----- 프리플랍 학습 페이지 (GTO Wizard 식) ----- */
.page { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 40px; max-width: 1600px; margin: 0 auto; }
.formatbar { display: flex; flex-direction: column; gap: 8px; }
.fmt { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.fmt > label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.fmt input, .fmt select { width: auto; }
.fmt input.narrow { width: 70px; }
.fmt input.mid { width: 110px; }
.fmt details.more { display: inline-block; }
.fmt details.more summary { cursor: pointer; color: var(--muted); font-size: 12.5px; list-style: none; padding: 5px 10px; border: 1px dashed var(--line2); border-radius: 8px; }
.fmt details.more[open] summary { color: var(--text); }
.fmt details.more .fmt { margin-top: 8px; }
.fmtbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.actionbar { padding: 12px 16px; }
.posrow { display: flex; gap: 6px; flex-wrap: wrap; align-items: stretch; }
.pos { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 64px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; transition: border-color .15s; }
.pos:hover { border-color: var(--line2); }
.pos .pn { font-weight: 700; font-size: 12.5px; letter-spacing: .02em; }
.pos .pa { font-size: 12px; color: var(--muted); min-height: 16px; }
.pos.folded { opacity: .45; }
.pos.cur { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 140, 255, .18); }
.pos.cur .pa { color: #9cc0ff; }
.pos .dot { width: 8px; height: 8px; border-radius: 50%; }
.pos.hero { outline: 2px solid var(--bet1); outline-offset: -1px; }
.study { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
@media (max-width: 1100px) { .study { grid-template-columns: 1fr; } }
.matrixcard .grid169 { max-width: 720px; }
.sidecard { position: sticky; top: 70px; }
.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 9px; padding: 2px; }
.seg button { background: transparent; border: 0; color: var(--muted); padding: 5px 10px; border-radius: 7px; cursor: pointer; font: inherit; font-size: 12.5px; }
.seg button.on { background: var(--panel2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.summary { margin-top: 12px; }
.summary .bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--bg2); border: 1px solid var(--line); }
.summary .bar div { height: 100%; }
.summary .legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 12.5px; }
.summary .legend span { display: inline-flex; align-items: center; gap: 6px; }
.summary .legend .sw { width: 10px; height: 10px; border-radius: 3px; }
.summary .legend b { font-weight: 600; }
.summary .legend .ev { color: var(--muted); }
.grid169 .cell .val { position: relative; z-index: 1; font-size: 9px; color: #fff; text-shadow: 0 0 3px #000; }
.grid169.strat .cell.ev, .grid169.strat .cell.eq { flex-direction: column; gap: 0; }
.grid169 .cell.filtered { opacity: .12; }
.tendrow { border-top: 1px dashed var(--line); padding-top: 8px; }
.tendrow select { max-width: 240px; }
.customgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 14px; margin-top: 8px; }
.customgrid label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.customgrid input { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.badge.cap { background: #1e3a5f; color: #bfdbfe; }
.lockranges { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-bottom: 6px; }
@media (max-width: 900px) { .lockranges { grid-template-columns: 1fr; } }
.lockranges label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.lockranges input { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
/* 레인지 비교: 플레이어별 작은 13×13 */
.ranges-compare { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 8px; }
.ranges-compare .mini { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.ranges-compare .mini.cur { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(79, 140, 255, .18); }
.ranges-compare .mini.folded { opacity: .45; }
.ranges-compare .mini .head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-bottom: 6px; font-size: 12.5px; }
.ranges-compare .mini .head b { font-size: 13.5px; }
.ranges-compare .mini .grid169 { gap: 1px; margin-top: 0; }
.ranges-compare .mini .grid169 .cell { border-radius: 2px; border: 0; font-size: 0; cursor: default; }
.ranges-compare .mini .grid169 .cell:hover { outline: 1px solid #fff; }

/* ----- 연습 ----- */
.score { font-size: 13px; color: var(--muted); }
.table { position: relative; background: radial-gradient(ellipse at center, #1d5c3a 0%, #123d27 60%, #0f2d1e 100%); border: 6px solid #2b2017; border-radius: 160px; min-height: 300px; margin: 8px 0 12px; display: grid; place-items: center; overflow: hidden; }
.table .center { text-align: center; color: #d7f3e3; font-size: 13px; }
.table .center b { display: block; font-size: 18px; color: #fff; }
.table .seat { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 3px; transform: translate(-50%, -50%); }
.table .seat .name { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #e8f7ee; }
.table .seat .act { font-size: 11px; color: #cfe9da; background: rgba(0, 0, 0, .3); padding: 1px 7px; border-radius: 999px; min-height: 16px; }
.table .seat.folded { opacity: .4; }
.table .seat.hero .name { background: var(--primary); color: #fff; }
.table .seat.cur .name { outline: 2px solid var(--bet1); }
.table .seat .btn-dealer { width: 18px; height: 18px; border-radius: 50%; background: #fff; color: #000; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.cards { display: flex; gap: 6px; }
.pcard { width: 44px; height: 62px; border-radius: 6px; background: #fff; color: #111; display: grid; place-items: center; font-weight: 700; font-size: 18px; box-shadow: 0 3px 10px rgba(0, 0, 0, .4); }
.pcard.s1 { color: #1d4ed8; }
.pcard.s2 { color: #dc2626; }
.pcard.s0 { color: #15803d; }
.prresult { margin-top: 12px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); }
.prresult.good { border-color: rgba(62, 201, 126, .5); }
.prresult.bad { border-color: rgba(229, 72, 77, .5); }
.prresult h4 { margin: 0 0 8px; font-size: 14px; }
.history { display: flex; flex-direction: column; gap: 6px; max-height: 520px; overflow: auto; }
.history .h { font-size: 12.5px; display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); }
.history .h .loss { font-weight: 600; }
.history .h.good .loss { color: var(--check); }
.history .h.bad .loss { color: #ff8a8e; }

/* ----- 포스트플랍 드릴 ----- */
.ppspot { background: radial-gradient(ellipse at center, #1d5c3a 0%, #123d27 60%, #0f2d1e 100%); border: 6px solid #2b2017; border-radius: 28px; min-height: 240px; margin: 8px 0 12px; padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; align-items: center; color: #d7f3e3; }
.ppspot .hint { color: #cfe9da; }
.ppspot .board { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ppspot .board .lbl, .ppspot .mine .lbl { font-size: 11.5px; color: #bfe3cf; margin-right: 6px; }
.ppspot .mine { display: flex; gap: 8px; align-items: center; justify-self: end; }
.ppspot .mine .pcard { outline: 2px solid var(--bet1); }
.ppspot .info { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.ppspot .info b { color: #fff; }
.ppspot .hist { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.ppspot .hist span { background: rgba(0, 0, 0, .35); border-radius: 999px; padding: 2px 10px; font-size: 12px; }
.ppspot .hist span.card { background: #fff; color: #111; font-weight: 700; }
.ppspot .hist span.card.s1 { color: #1d4ed8; }
.ppspot .hist span.card.s2 { color: #dc2626; }
.ppspot .hist span.card.s0 { color: #15803d; }

/* ----- 분석 ----- */
.antable { overflow: auto; }
.antable table { border-collapse: collapse; width: 100%; font-size: 12.5px; white-space: nowrap; }
.antable th, .antable td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: right; }
.antable th { color: var(--muted); font-weight: 500; position: sticky; top: 0; background: var(--panel); }
.antable th:nth-child(-n+3), .antable td:nth-child(-n+3) { text-align: left; }
.antable td.sum { text-align: left; color: var(--muted); font-size: 12px; max-width: 260px; white-space: normal; }
.antable input.label { width: 96px; padding: 3px 6px; font-size: 12px; }
.antable input[type=radio] { accent-color: var(--primary); }
.antable tr.me td { background: rgba(79, 140, 255, .08); }
.antable .pos { color: var(--check); }
.antable .neg { color: #ff8a8e; }
.antable .small { color: var(--muted); font-size: 11px; }
.antable tr:hover td { background: rgba(255, 255, 255, .03); }
.shownlist { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 10px; }
.shownlist span { background: var(--bg2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
#anText { width: 100%; margin-top: 8px; }

/* ----- 알림 ----- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1f2937; color: #fff; border: 1px solid var(--line2); border-radius: 10px; padding: 10px 16px; font-size: 13px; box-shadow: var(--shadow); z-index: 50; max-width: 90vw; }
.toast.err { border-color: var(--danger); background: #3b1518; }
