/* 고티처 디자인 시스템 — C안(멀티플레이어 협업) 확정본, 2026-10-30
   스타일: accent-ladder(taste-skill), 셸: Ruled T-frame.
   규칙: 흰 바탕 하나, 잉크 하나, 강조 #2251ff 하나. 강조의 원색은 작은 표시(주 버튼·주 데이터·활성 아이콘)에만,
   넓은 면은 옅은 사다리(soft·track)로. 사람 다섯 명의 고정 색은 아바타·커서·이름표에만.
   글씨는 본문 16px 이상, 버튼 40px 이상(교사 연령층). PC 우선, 좁은 폭은 쌓기만. */

@import url("https://cdn.jsdelivr.net/gh/wanteddev/wanted-sans@v1.0.3/packages/wanted-sans/fonts/webfonts/variable/split/WantedSansVariable.min.css");

:root {
  --font: "Wanted Sans Variable", "Wanted Sans", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;

  /* 바탕·면 */
  --bg: #ffffff;            /* 바탕과 패널 */
  --surface: #f3f4f6;       /* 한 단계 톤: 안쪽 우물, 보조 버튼 */
  --hover: #eceef1;         /* 보조 버튼·행 hover */
  --line: #e6e8ec;          /* 패널 가장자리 */
  --rule: #eff1f4;          /* 표 행 구분 */
  --control: #c9cdd4;       /* 입력칸 테두리: 한 단계 진하게 */

  /* 글자 */
  --ink: #0d0d0d;
  --muted: #4b5059;         /* 보조 글자 8.3:1 */
  --faint: #656b75;         /* 메타·자리표시 5.3:1 */

  /* 강조 사다리 */
  --accent: #2251ff;
  --accent-hover: #1640e0;
  --accent-soft: #eaf0ff;
  --accent-track: #d3defe;
  --accent-ink: #0b2a99;

  /* 상태 */
  --positive: #1d7a46;
  --negative: #c4242a;
  --pill-pos-bg: #dcfae5; --pill-pos-ink: #04250e;
  --pill-neg-bg: #ffedea; --pill-neg-ink: #831c1e;
  --pill-warn-bg: #fffbeb; --pill-warn-line: #fde68a; --pill-warn-ink: #92400e;

  /* 크기 — 다섯 단계 */
  --fs-title: 28px;   /* 화면 제목(h1) */
  --fs-lead: 22px;    /* 큰 숫자·강조 줄 */
  --fs-section: 19px; /* 카드 제목 */
  --fs-body: 16px;
  --fs-small: 14px;

  /* 셸·격자 */
  --sidebar: 232px;
  --topbar: 64px;
  --gutter: 29px;
  --gap: 24px;
  --pad: 24px;
  --radius-card: 10px;
  --radius-in: 8px;
  --control-h: 44px;
  --control-h-sm: 40px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 바탕 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* 고정 상단바(64)·폰 하단바(64) 밑으로 포커스가 숨지 않게 */
html.has-shell { scroll-padding-top: calc(var(--topbar) + 16px); scroll-padding-bottom: 24px; }
.skip { position: fixed; left: 12px; top: 10px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; transform: translateY(-160%); transition: transform .15s; }
.skip:focus { transform: none; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-body)/1.5 var(--font); -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul.plain, ol.plain { list-style: none; padding: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.num, table { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: var(--fs-small); }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; }
.wrap-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- 셸: 사이드바 232 + 상단 64, 같은 바탕, 1px 선 ---------- */
.side { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 0 14px 16px; background: var(--bg); z-index: 20; }
.brand { height: var(--topbar); display: flex; align-items: center; gap: 10px; padding: 0 8px; font-weight: 800; font-size: 21px; letter-spacing: -0.03em; text-decoration: none; flex: none; }
.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.nav a { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 10px; border-radius: 10px; text-decoration: none; font-weight: 500; color: #2b2f36; transition: background-color .15s; }
.nav a:hover { background: var(--surface); }
.nav a[aria-current] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.nav a[aria-current] svg { color: var(--accent); }
.nav svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.nav .cnt { margin-left: auto; font-size: var(--fs-small); font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 1px 9px; }
.nav a[aria-current] .cnt { background: #fff; }
.group { margin: 24px 10px 6px; font-size: var(--fs-small); color: var(--muted); font-weight: 600; }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; text-decoration: none; transition: background-color .15s; }
.me:hover { background: var(--surface); }
.me b { display: block; font-size: 15px; }
.me div span { font-size: var(--fs-small); color: var(--muted); }

.top { position: fixed; top: 0; left: var(--sidebar); right: 0; height: var(--topbar); border-bottom: 1px solid var(--line); background: var(--bg); display: flex; align-items: center; gap: 16px; padding-left: var(--gutter); z-index: 15; }
.crumb { display: flex; align-items: center; gap: 8px; font-size: var(--fs-body); min-width: 0; }
.crumb a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.crumb a:hover { color: var(--ink); }
.crumb b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb svg { color: var(--faint); flex: none; }
.quick { flex: 0 1 460px; position: relative; }
.quick input { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px 0 42px; font: 400 16px/1 var(--font); background: var(--bg); transition: border-color .15s; }
.quick input::placeholder { color: var(--faint); }
.quick input:hover { border-color: var(--control); }
.quick input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } /* taste-skill-ignore: 포커스 표시 */
.quick svg { position: absolute; left: 15px; top: 11px; color: var(--muted); }
.online { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); color: var(--muted); white-space: nowrap; }
.bell { position: relative; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 0; background: none; border-radius: 999px; font-size: var(--fs-small); color: var(--muted); cursor: pointer; white-space: nowrap; transition: background-color .15s; }
.bell:hover { background: var(--surface); }
.bell b { color: var(--ink); }
.bell .dot-n { position: absolute; top: 7px; left: 25px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.switch { height: 100%; display: flex; align-items: center; gap: 10px; padding: 0 var(--gutter) 0 20px; border: 0; border-left: 1px solid var(--line); background: none; cursor: pointer; text-align: left; flex: none; }
.switch:hover { background: var(--surface); }
.switch b { display: block; font-size: 15px; line-height: 1.2; }
.switch span span { font-size: var(--fs-small); color: var(--muted); line-height: 1.2; }

.main { margin-left: var(--sidebar); padding: calc(var(--topbar) + 28px) var(--gutter) 64px; min-height: 100svh; }
.main.narrow > * { max-width: 1150px; }

/* 셸 없는 화면(가입·초대 입장·제출): 가운데 한 열 */
.bare-top { height: var(--topbar); display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); }
.bare-top .brand { padding: 0; height: auto; }
.bare-top .ctx { color: var(--muted); font-size: var(--fs-body); }
.bare-top .end { margin-left: auto; font-size: var(--fs-small); color: var(--muted); display: flex; align-items: center; gap: 10px; }
.bare { max-width: 720px; margin: 0 auto; padding: 48px 24px 96px; }

/* ---------- 제목 줄 ---------- */
.title { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.title .grow { flex: 1; min-width: 0; }
h1, .h1 { font-size: var(--fs-title); line-height: 1.25; letter-spacing: -0.03em; font-weight: 800; }
.sub { margin-top: 8px; color: var(--muted); font-size: 17px; }
.sub b { color: var(--ink); font-weight: 600; }
.stamp { font-size: var(--fs-small); color: var(--faint); white-space: nowrap; }

/* ---------- 버튼: 알약 하나, 높이 44(작게 40) ---------- */
.btn { height: var(--control-h); padding: 0 22px; border-radius: 999px; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 16px/1 var(--font); cursor: pointer; text-decoration: none;
  transition: background-color .15s, color .15s, transform .12s; white-space: nowrap; flex: none; }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.pri { background: var(--accent); color: #fff; }
.btn.pri:hover { background: var(--accent-hover); }
.btn.ink { background: var(--ink); color: #fff; }
.btn.ink:hover { background: #2a2a2a; }
.btn.sec { background: var(--surface); color: var(--ink); }
.btn.sec:hover { background: var(--hover); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--surface); }
.btn.danger { background: transparent; color: var(--negative); box-shadow: inset 0 0 0 1px #f0b7b9; } /* taste-skill-ignore: 위험 행동 외곽선 */
.btn.danger:hover { background: var(--pill-neg-bg); }
.btn.sm { height: var(--control-h-sm); padding: 0 16px; font-size: 15px; }
.btn.lg { height: 52px; padding: 0 28px; font-size: 17px; }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--surface); color: var(--faint); cursor: default; transform: none; }
.tlink { font-weight: 700; text-decoration: none; color: var(--ink); background: none; border: 0; padding: 6px 0; cursor: pointer; font-size: inherit; } /* 위아래 6px: 누를 곳 높이 32px 이상 */
.tlink:hover { color: var(--accent); }
.tlink.acc { color: var(--accent-ink); }

/* ---------- 격자·카드 ---------- */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.grid.stretch { align-items: stretch; }
.s12 { grid-column: span 12; } .s9 { grid-column: span 9; } .s8 { grid-column: span 8; } .s7 { grid-column: span 7; } .s6 { grid-column: span 6; }
.s5 { grid-column: span 5; } .s4 { grid-column: span 4; } .s3 { grid-column: span 3; }
.stack-y { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-card); display: flex; flex-direction: column; min-width: 0; }
.card-h { display: flex; align-items: center; gap: 12px; padding: 18px var(--pad) 14px; min-height: 60px; }
.card-h h2, .card-h h3 { margin: 0; font-size: var(--fs-section); font-weight: 700; letter-spacing: -0.02em; }
.card-h .n { font-size: var(--fs-small); font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 1px 9px; }
.card-h .r { margin-left: auto; font-size: var(--fs-small); color: var(--muted); display: flex; align-items: center; gap: 10px; }
.card-b { padding: 0 var(--pad) var(--pad); }
.card-f { margin-top: auto; padding: 14px var(--pad) var(--pad); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: var(--fs-small); color: var(--muted); }
.well { background: var(--surface); border-radius: var(--radius-in); padding: 14px 16px; }
.well.acc { background: var(--accent-soft); color: var(--accent-ink); }

/* ---------- 탭(밑줄) ---------- */
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 48px; border: 0; background: none; padding: 0; font: 600 16px/1 var(--font); color: var(--muted); text-decoration: none; cursor: pointer; white-space: nowrap; }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs [aria-selected="true"], .tabs [aria-current] { color: var(--ink); }
.tabs [aria-selected="true"]::after, .tabs [aria-current]::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: -1px; height: 2px; background: var(--ink); border-radius: 2px; }
.tabs .c { font-size: var(--fs-small); color: var(--faint); font-weight: 600; }

/* 분할 선택(세그먼트) */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); }
.seg button { height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: none; font: 600 15px/1 var(--font); color: var(--muted); cursor: pointer; transition: background-color .15s, color .15s; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); }

/* ---------- 입력 ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span, .field > label, .lbl { font-size: 15px; font-weight: 600; }
.field .hint { font-size: var(--fs-small); color: var(--muted); font-weight: 400; }
.input, .select, .textarea { width: 100%; height: var(--control-h); border: 1px solid var(--control); border-radius: var(--radius-in); background: #fff; padding: 0 14px; font: 400 16px/1.3 var(--font); transition: border-color .15s; }
.textarea { height: auto; min-height: 140px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .select:hover, .textarea:hover { border-color: #aeb3bb; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } /* taste-skill-ignore: 포커스 표시 */
.input.lg { height: 52px; font-size: 18px; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 42px; border-radius: 999px; }
.joined { display: flex; }
.joined .input { border-radius: var(--radius-in) 0 0 var(--radius-in); background: var(--surface); color: var(--ink); }
.joined .btn { border-radius: 0 var(--radius-in) var(--radius-in) 0; height: var(--control-h); }
.toggle { position: relative; width: 44px; height: 26px; flex: none; }
.toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.toggle i { position: absolute; inset: 0; border-radius: 999px; background: #c4c8cf; transition: background-color .2s; pointer-events: none; }
.toggle i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.toggle input:checked + i { background: var(--ink); }
.toggle input:checked + i::after { transform: translateX(18px); }
.toggle input:focus-visible + i { outline: 3px solid var(--accent); outline-offset: 2px; }
.chk { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--fs-body); }
.chk input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
/* 칸 옆 오류: GTU.fieldError가 붙인다. 원인과 고칠 방법을 한 문장으로 */
.field-err { display: flex; align-items: flex-start; gap: 6px; color: var(--negative); font-size: 15px; font-weight: 600; margin-top: 2px; }
.field-err::before { content: "!"; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--negative); color: #fff; font: 800 12px/18px var(--font); text-align: center; margin-top: 2px; }
.input[aria-invalid="true"] { border-color: var(--negative); }
.picks[aria-invalid="true"] .pick { box-shadow: inset 0 0 0 1px #f0b7b9; } /* taste-skill-ignore: 고르지 않은 칸 오류 표시 */

/* 고르기 칩(반·학년) */
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { min-width: 64px; height: var(--control-h); padding: 0 18px; border: 0; border-radius: 999px; background: var(--surface); font: 600 16px/1 var(--font); cursor: pointer; transition: background-color .15s, color .15s, transform .12s; }
.pick:hover { background: var(--hover); }
.pick:active { transform: scale(.97); }
.pick[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- 표: 선과 정렬 ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-body); }
.tbl th { text-align: left; font-weight: 500; font-size: var(--fs-small); color: var(--muted); padding: 0 12px 10px; white-space: nowrap; }
.tbl td { padding: 0 12px; height: 56px; border-top: 1px solid var(--rule); vertical-align: middle; }
.tbl th:first-child, .tbl td:first-child { padding-left: 0; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl .r { text-align: right; }
.tbl tfoot td { border-top: 1px solid var(--line); font-weight: 700; }
.tbl tr.link { cursor: pointer; }
.tbl tr.link:hover td { background: #fafbfc; }
.tbl .id { font-weight: 600; }
.tbl .sub2 { display: block; font-size: var(--fs-small); color: var(--muted); margin-top: 2px; font-weight: 400; }
.dash { color: var(--faint); }

/* ---------- 알약·상태 ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font: 600 14px/1 var(--font); white-space: nowrap; flex: none; background: var(--surface); color: #33373e; }
.pill.pos { background: var(--pill-pos-bg); color: var(--pill-pos-ink); }
.pill.neg { background: var(--pill-neg-bg); color: var(--pill-neg-ink); }
.pill.warn { background: var(--pill-warn-bg); color: var(--pill-warn-ink); box-shadow: inset 0 0 0 1px var(--pill-warn-line); } /* taste-skill-ignore: 주의 알약 테두리 */
.pill.acc { background: var(--accent-soft); color: var(--accent-ink); }
.st { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c4c8cf; flex: none; }
.st.done { color: var(--positive); }
.st.done::before { background: currentColor; }
.st.late { color: var(--negative); }
.st.late::before { background: currentColor; }
.notice { background: var(--pill-warn-bg); box-shadow: inset 0 0 0 1px var(--pill-warn-line); color: var(--pill-warn-ink); border-radius: var(--radius-in); padding: 14px 16px; font-size: 15px; } /* taste-skill-ignore: 주의 상자 테두리 */
.notice b { color: #6b2f05; }

/* ---------- 진행 막대: 참 비율, 양 끝 표시 ---------- */
.track { height: 10px; border-radius: 999px; background: var(--accent-track); overflow: hidden; }
.track i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .6s var(--ease); }
.track.thin { height: 6px; }
.track.done i { background: var(--ink); }
.track.grey { background: var(--surface); }
.big { display: flex; align-items: baseline; gap: 6px; }
.big b { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); line-height: 1; }
.big span { color: var(--muted); font-size: 17px; }

/* ---------- 사람: 아바타·이름표·커서 ---------- */
.av { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font: 800 14px/1 var(--font); flex: none; border: 2px solid var(--bg); }
.av.ink-t { color: var(--ink); }
.av.sm { width: 26px; height: 26px; font-size: 12px; }
.av.lg { width: 40px; height: 40px; font-size: 16px; }
.av.xl { width: 56px; height: 56px; font-size: 22px; }
.av.off { opacity: .32; }
.av.ghost { background: var(--surface) !important; color: var(--faint); }
.stack { display: inline-flex; }
.stack .av { margin-left: -9px; }
.stack .av:first-child { margin-left: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--positive); flex: none; display: inline-block; }
.dot.idle { background: #c4c8cf; }
.ptag { display: inline-flex; align-items: center; gap: 4px; font: 700 13px/1 var(--font); color: #fff; background: var(--who); padding: 4px 7px; border-radius: 6px; white-space: nowrap; }
.ptag.ink-t { color: var(--ink); }
.cursor { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; transition: transform 1s cubic-bezier(.5, 0, .2, 1); will-change: transform; }
.cursor .nm { position: absolute; left: 14px; top: 14px; font: 700 13px/1 var(--font); color: #fff; background: var(--who); padding: 5px 8px; border-radius: 8px; white-space: nowrap; box-shadow: 0 4px 12px rgba(13, 13, 13, .14); } /* taste-skill-ignore: 떠 있는 커서 이름표 */
.cursor.ink-t .nm { color: var(--ink); }
.editing { box-shadow: inset 0 0 0 2px var(--who); } /* taste-skill-ignore: 다른 사람이 고치는 칸 표시 */

/* ---------- 목록 행 ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 0; border-top: 1px solid var(--rule); }
.list > li:first-child { border-top: 0; }
.list .t { font-weight: 600; line-height: 1.35; }
.list .m { font-size: var(--fs-small); color: var(--muted); margin-top: 2px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; font-size: var(--fs-body); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }

/* ---------- 빈 상태·불러오는 중·오류 ---------- */
.empty { border: 1px dashed var(--control); border-radius: var(--radius-in); padding: 18px 20px; color: var(--muted); font-size: var(--fs-body); }
.skel { display: inline-block; height: 1em; border-radius: 4px; background: var(--surface); vertical-align: middle; }
.err { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-in); background: var(--pill-neg-bg); color: var(--pill-neg-ink); font-size: 15px; }

/* ---------- 떠 있는 것: 메뉴·알림 묶음·대화상자·토스트 ---------- */
.pop { position: absolute; z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(13, 13, 13, .12); padding: 8px; min-width: 260px; } /* taste-skill-ignore: 떠 있는 메뉴 */
.pop[hidden] { display: none; }
.pop .pi { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-size: 15px; line-height: 1.4; }
.pop .pi:hover { background: var(--surface); }
.pop .ph { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 6px; font-size: var(--fs-small); color: var(--muted); }
.pop .ph b { color: var(--ink); font-size: 16px; }
.pop .pf { padding: 10px 12px 6px; font-size: var(--fs-small); color: var(--muted); border-top: 1px solid var(--rule); margin-top: 4px; }
.scrim { position: fixed; inset: 0; background: rgba(13, 13, 13, .32); z-index: 60; display: grid; place-items: center; padding: 24px; }
.scrim[hidden] { display: none; }
.dialog { background: #fff; border-radius: 16px; width: min(560px, 100%); max-height: calc(100svh - 48px); overflow: auto; box-shadow: 0 24px 60px rgba(13, 13, 13, .2); } /* taste-skill-ignore: 대화상자 */
.dialog .dh { display: flex; align-items: center; gap: 12px; padding: 22px 24px 8px; }
.dialog .dh h2 { font-size: 21px; letter-spacing: -0.02em; }
.dialog .db { padding: 8px 24px 8px; display: flex; flex-direction: column; gap: 16px; }
.dialog .df { padding: 16px 24px 22px; display: flex; justify-content: flex-end; gap: 10px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 14px;
  font: 600 16px/1.4 var(--font); max-width: min(560px, calc(100vw - 32px)); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80;
  box-shadow: 0 10px 30px rgba(13, 13, 13, .18); } /* taste-skill-ignore: 떠 있는 알림 */
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast button { margin-left: 12px; background: none; border: 0; color: #9db4ff; font-weight: 700; cursor: pointer; }

/* ---------- 움직임: 되돌림만 ---------- */
@keyframes gt-flash { from { background: var(--accent-soft); } to { background: transparent; } }
.just, .just td { animation: gt-flash 1.2s var(--ease); }
@keyframes gt-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.arrive { animation: gt-in .45s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.nav a.phone-only { display: none; }
.top .ptitle { display: none; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }

/* ---------- 좁은 폭: PC 전용이라 쌓기만 ---------- */
@media (max-width: 1100px) {
  :root { --sidebar: 76px; }
  .s9, .s8, .s7, .s6, .s5, .s4, .s3 { grid-column: span 12; }
  .online .lbl, .bell .lbl, .switch > span:last-child span { display: none; }
  .side .brand .wm { display: none; }
  .side .brand { justify-content: center; padding: 0; }
  .side { padding: 0 8px 16px; }
  .nav a { flex-direction: column; height: 60px; gap: 2px; font-size: 13px; justify-content: center; padding: 0 2px; text-align: center; }
  .nav .cnt { display: none; }
  .group, .nav.sub { display: none; }
  .me { justify-content: center; padding: 6px 0; }
  .me div { display: none; }
  .title { flex-wrap: wrap; }
  .title .grow { flex-basis: 100%; }
  .quick { flex-basis: 300px; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; --pad: 18px; --gap: 16px; --fs-title: 24px; }
  .side { inset: auto 0 0 0; width: auto; height: 64px; flex-direction: row; padding: 0 8px; border-right: 0; border-top: 1px solid var(--line); }
  .side .brand, .group, .nav.sub, .me { display: none; }
  .nav { flex-direction: row; margin: 0; width: 100%; justify-content: space-around; align-items: center; }
  .nav a { flex-direction: column; gap: 2px; height: 56px; justify-content: center; font-size: 13px; padding: 0 4px; flex: 1; }
  .nav a.phone-only { display: flex; }
  .nav .cnt { display: none; }
  .top { left: 0; padding-left: 16px; gap: 8px; }
  .top .quick, .online, .top .crumb { display: none; }
  .top .ptitle { display: flex; flex: 1; min-width: 0; }
  .switch { padding: 0 16px; margin-left: auto; }
  .switch > span:last-child { display: none; }
  .main { margin-left: 0; padding: calc(var(--topbar) + 20px) 16px 104px; }
  html.has-shell { scroll-padding-bottom: 88px; }
  /* 폰은 손가락: 누르는 것은 높이 44 이상 */
  .btn.sm, .seg button, .pick { height: 44px; }
  .bare-top .brand { min-height: 44px; }
  .tlink { padding: 11px 0; }
  .title { flex-direction: column; align-items: stretch; gap: 12px; }
  .title .btn { width: 100%; }
  .bare { padding: 28px 16px 72px; }
  .bare-top { padding: 0 16px; }
  .bare-top .end .lbl { display: none; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .tabs { gap: 20px; }
  .pop { left: 8px !important; right: 8px !important; min-width: 0; }
}
