/* =========================================================================
   티케팅 — 사용자(소비자형) 공용 테마   [POS 독립 · .tc 스코프]
   모바일 퍼스트 · 웹(Blade) + 앱(Cordova) 공용 · Yes24류 소비자 UI
   AdminLTE 미사용. BS5(reset/grid) + bootstrap-icons + Pretendard 위.
   ========================================================================= */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* [2026-08-26] 강제 다크 차단 — 레이아웃의 <meta name="color-scheme" content="only light"> 와 한 쌍.
   ⚠ 반드시 :root(html) 에 걸어야 한다. 브라우저의 자동 어둡게 판정은 **문서 루트**의 color-scheme 을 본다.
   body(.tc) 에만 걸면 폼 컨트롤·스크롤바 색만 바뀌고 페이지 반전은 그대로다.
   소비자 화면은 다크 팔레트가 없다(밝은 색 전용). 다크 테마를 실제로 만들게 되면 이 선언부터 손볼 것. */
:root{ color-scheme: only light; }

.tc{
  --c-primary:#FA3E3F; --c-primary-2:#D92B2C; --c-accent:#0891b2;
  --c-ink:#16181d; --c-sub:#6b7280; --c-line:#eceef2; --c-bg:#eef0f4;
  --c-green:#16a34a; --c-amber:#d97706; --c-red:#e11d48;
  --tc-w:480px;   /* 앱 컬럼 폭(반응형 토대) — .tc-app / .tc-cta / .tc-sheet 공용. 화면별 광폭은 .tc-app.tc-wide */
  font-family:"Pretendard","Noto Sans KR","Malgun Gothic",system-ui,sans-serif;
  background:var(--c-bg); color:var(--c-ink); margin:0; -webkit-tap-highlight-color:transparent;
}
.tc *{box-sizing:border-box;}

/* 아이콘(Material Symbols 인라인 SVG · TicketIcon::i)
   ⚠ class 에 `bi` 를 그대로 남겨둔 이유 - 이 파일 곳곳(.tc-info .bi, .tc-empty .bi 등 16곳)이
   `.bi` 를 font-size/color 로 제어한다. 아래 두 줄(1em 크기 + currentColor)로 그 규칙들이
   **수정 없이 그대로** SVG 에 먹는다. 부트스트랩 아이콘 폰트는 스태프/관리자 화면이 계속 쓴다. */
svg.mi{width:1em;height:1em;fill:currentColor;vertical-align:-.125em;flex:none;}

/* 앱 컬럼(모바일=폰 폭, 태블릿/데스크톱=넓은 중앙 컬럼) */
.tc-app{max-width:var(--tc-w);margin:0 auto;min-height:100vh;background:#fff;position:relative;box-shadow:0 0 50px rgba(20,24,33,.07);}

/* 상단 앱바 */
.tc-bar{position:sticky;top:0;z-index:20;height:54px;display:flex;align-items:center;gap:8px;padding:0 8px;
  background:rgba(255,255,255,.9);backdrop-filter:blur(10px);border-bottom:1px solid var(--c-line);}
.tc-bar .ic-btn{width:40px;height:40px;display:flex;align-items:center;justify-content:center;font-size:20px;color:var(--c-ink);
  background:none;border:none;cursor:pointer;border-radius:10px;}
.tc-bar .ic-btn:active{background:#f1f2f5;}
.tc-bar .ttl{font-weight:700;font-size:16px;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

/* 본문(하단 CTA 공간 확보) */
.tc-body{padding-bottom:96px;}
.tc-sec{padding:18px 18px;}
.tc-sec + .tc-sec{border-top:8px solid #f5f6f8;}
.tc-h{font-size:15px;font-weight:800;margin:0 0 12px;letter-spacing:-.01em;}

/* 하단 CTA */
.tc-cta{position:fixed;bottom:0;left:0;right:0;z-index:30;max-width:var(--tc-w);margin:0 auto;
  padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.96);
  backdrop-filter:blur(10px);border-top:1px solid var(--c-line);display:flex;gap:10px;align-items:center;}
.tc-cta .price-min{flex:none;}
.tc-cta .price-min .k{font-size:11px;color:var(--c-sub);}
.tc-cta .price-min .v{font-size:18px;font-weight:800;}

/* 버튼 (큰 터치 타깃) */
.tc-btn{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;height:52px;border-radius:14px;
  font-weight:700;font-size:16px;border:none;cursor:pointer;text-decoration:none;transition:.12s;}
.tc-btn-primary{background:var(--c-primary);color:#fff;}
.tc-btn-primary:active{background:var(--c-primary-2);color:#fff;}
.tc-btn-primary:disabled{background:#cbd0da;cursor:not-allowed;}
/* 처리 중(예매 버튼 누른 뒤 응답 대기): 회색(비활성)과 구분되게 브랜드색 유지 + 스피너 (09-17) */
.tc-btn-primary.is-busy:disabled{background:var(--c-primary);color:#fff;opacity:.9;cursor:progress;}
.tc-spin{width:18px;height:18px;border:2.5px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;
  animation:tcSpin .8s linear infinite;flex:none;}
@keyframes tcSpin{to{transform:rotate(360deg);}}
/* 좌석 화면 나가기 확인창(09-17) - 가운데 카드형, 버튼 세로 2개([계속 예매하기] 강조 / [나가기] 약하게) */
.tc-leave{position:fixed;inset:0;z-index:1100;display:flex;align-items:center;justify-content:center;padding:24px;}
.tc-leave[hidden]{display:none;}
.tc-leave .dim{position:absolute;inset:0;background:rgba(16,18,23,.5);}
.tc-leave .box{position:relative;width:100%;max-width:340px;background:#fff;border-radius:18px;padding:22px 20px 16px;
  box-shadow:0 12px 40px rgba(0,0,0,.18);}
.tc-leave .ttl{font-size:17px;font-weight:800;color:var(--c-ink);margin-bottom:8px;}
.tc-leave .desc{font-size:14px;color:var(--c-sub);line-height:1.55;margin-bottom:16px;word-break:keep-all;}
.tc-leave .acts{display:flex;flex-direction:column;gap:8px;}
.tc-leave .acts .tc-btn{height:48px;flex:none;}
.tc-btn-outline{background:#fff;color:var(--c-primary);border:1.5px solid var(--c-primary);}
.tc-btn-ghost{background:#f3f4f7;color:var(--c-ink);}

/* 포스터 히어로 */
.tc-hero{position:relative;width:100%;aspect-ratio:3/4;max-height:62vh;background:#1b1430 center/cover no-repeat;overflow:hidden;}
.tc-hero .grad{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05) 40%,rgba(0,0,0,.78));}
.tc-hero .meta{position:absolute;left:0;right:0;bottom:0;padding:18px;color:#fff;}
.tc-hero .meta .t{font-size:22px;font-weight:800;line-height:1.3;text-shadow:0 1px 12px rgba(0,0,0,.4);}
.tc-hero .meta .m{font-size:13px;opacity:.92;margin-top:8px;display:flex;align-items:center;gap:7px;}

/* 상태 배지 */
.tc-badge{display:inline-block;font-size:11.5px;font-weight:800;border-radius:999px;padding:3px 11px;}
.tc-badge.onsale{background:#dcfce7;color:#15803d;}
.tc-badge.ready{background:#eef2ff;color:#4338ca;}
.tc-badge.soldout{background:#ffe4e6;color:#be123c;}
.tc-badge.closed{background:#f1f3f5;color:#6b7280;}
.tc-badge.float{position:absolute;top:14px;left:14px;z-index:2;}

/* 정보 행 */
.tc-info{display:flex;align-items:flex-start;gap:10px;padding:9px 0;font-size:14px;}
.tc-info .bi{color:var(--c-primary);font-size:17px;margin-top:1px;}
.tc-info .k{color:var(--c-sub);width:64px;flex:none;}

/* 등급/가격 */
.tc-grade{display:flex;align-items:center;gap:12px;padding:14px 0;border-top:1px solid var(--c-line);}
.tc-grade:first-child{border-top:none;}
.tc-grade .sw{width:14px;height:14px;border-radius:4px;flex:none;}
.tc-grade .nm{font-weight:700;font-size:15px;}
.tc-grade .pr{font-size:13px;color:var(--c-sub);margin-top:2px;}
.tc-grade .av{margin-left:auto;font-size:12px;font-weight:700;display:inline-flex;align-items:center;gap:5px;}
.tc-grade .av.ok{color:var(--c-green);}
.tc-grade .av.low{color:var(--c-amber);}
.tc-grade .av.no{color:var(--c-red);}

/* 가격 섹션(유료 공연만) - 등급명 왼쪽 · 금액 오른쪽. 잔여 표기는 넣지 않는다(예매박스 담당). */
.tc-pricebox{background:#f7f8fa;border-radius:12px;padding:6px 16px;}
.tc-pricebox .pb-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;
  border-top:1px solid #eceef2;font-size:14.5px;}
.tc-pricebox .pb-row:first-child{border-top:none;}
.tc-pricebox .pb-row .nm{color:var(--c-sub);}
.tc-pricebox .pb-row .pr{font-weight:800;color:var(--c-ink);}

/* 예매박스 잔여 좌석 - 페이지를 연 시점의 값(실시간 폴링 없음) */
.tc-bookbox .bb-seats{border-bottom:1px solid var(--c-line);padding-bottom:12px;margin-bottom:12px;}
.tc-bookbox .bb-seats-h{font-size:12.5px;font-weight:800;color:var(--c-sub);margin-bottom:8px;}
.tc-bookbox .bb-seats-f{font-size:11px;color:#9aa3af;margin-top:8px;}
.tc-bookbox .bb-grade .rm{margin-left:auto;font-size:14px;font-weight:800;color:var(--c-ink);
  font-variant-numeric:tabular-nums;}
.tc-bookbox .bb-grade .rm.zero{color:var(--c-red);}
.tc-dot{width:7px;height:7px;border-radius:50%;display:inline-block;}

/* 본문 텍스트 */
.tc-desc{font-size:14px;line-height:1.7;color:#374151;}
.tc-note{font-size:12.5px;line-height:1.7;color:var(--c-sub);}
.tc-note li{margin-bottom:4px;}

/* 접근 게이트 */
.tc-gate{min-height:calc(100vh - 54px);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 24px;text-align:center;}
.tc-gate .badge-ic{width:74px;height:74px;border-radius:20px;display:flex;align-items:center;justify-content:center;font-size:34px;color:#fff;
  background:linear-gradient(135deg,var(--c-primary),var(--c-accent));box-shadow:0 10px 26px rgba(250,62,63,.35);margin-bottom:18px;}
.tc-gate .g-title{font-size:20px;font-weight:800;}
.tc-gate .g-sub{font-size:13.5px;color:var(--c-sub);margin-top:6px;}
.tc-code{width:100%;margin-top:26px;}
.tc-code input{width:100%;height:56px;border:1.5px solid #d8dee9;border-radius:14px;text-align:center;
  font-size:20px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;font-family:ui-monospace,Menlo,Consolas,monospace;}
.tc-code input:focus{outline:none;border-color:var(--c-primary);box-shadow:0 0 0 .25rem rgba(250,62,63,.12);}
.tc-or{display:flex;align-items:center;gap:12px;color:#aeb6c4;font-size:12.5px;margin:22px 0;}
.tc-or::before,.tc-or::after{content:"";flex:1;height:1px;background:var(--c-line);}

/* 가상 대기실 */
.tc-queue{min-height:calc(100vh - 54px);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 24px;text-align:center;}
.tc-ring{width:128px;height:128px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:conic-gradient(var(--c-primary) calc(var(--p,0)*1%),#eceef2 0);transition:background .4s;}
.tc-ring .inner{width:104px;height:104px;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;}
.tc-ring .pv{font-size:26px;font-weight:800;color:var(--c-primary);line-height:1;}
.tc-ring .pl{font-size:11px;color:var(--c-sub);margin-top:3px;}
.tc-queue .q-title{font-size:18px;font-weight:800;margin-top:22px;}
.tc-queue .q-num{font-size:15px;color:var(--c-sub);margin-top:8px;}
.tc-queue .q-num b{color:var(--c-ink);font-size:22px;}
.tc-progress{width:100%;height:8px;border-radius:5px;background:#eceef2;overflow:hidden;margin-top:18px;}
.tc-progress>span{display:block;height:100%;border-radius:5px;background:linear-gradient(90deg,var(--c-primary),var(--c-accent));transition:width .4s;}

/* 라벨 칩 */
.tc-chips{display:flex;gap:8px;flex-wrap:wrap;}
.tc-chip{font-size:12px;color:#4b5563;background:#f3f4f7;border-radius:999px;padding:6px 12px;display:inline-flex;align-items:center;gap:5px;}
.tc-chip .bi{color:var(--c-primary);}

/* =========================================================================
   좌석/수량 선택 (U5/U6)
   ========================================================================= */
/* 앱바 보유 타이머 */
.tc-hold{flex:none;display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:700;color:var(--c-primary);
  background:#FEECEC;border:1px solid #e6dcfb;border-radius:999px;padding:5px 11px;font-variant-numeric:tabular-nums;}
.tc-hold .bi{font-size:14px;}
.tc-hold.warn{color:var(--c-red);background:#fff1f2;border-color:#fecdd3;animation:tcPulse 1s infinite;}
@keyframes tcPulse{50%{opacity:.55;}}

.tc-seatwrap{padding:16px 14px 96px;}

/* 무대 */
.tc-stage{height:34px;border-radius:8px;display:flex;align-items:center;justify-content:center;
  font-size:12px;font-weight:800;letter-spacing:.35em;color:#9aa3b2;
  background:linear-gradient(180deg,#2a2f3a,#1c2029);color:#cbd2dd;margin:0 8px 22px;}

/* 좌석맵 (가로 스크롤) */
.tc-seatmap{overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:6px;}
.srow{display:flex;align-items:center;gap:8px;margin-bottom:7px;width:max-content;}
.srow .rlab{width:16px;flex:none;text-align:center;font-size:11px;font-weight:800;color:var(--c-sub);}
.srow .seats{display:flex;gap:6px;}
.seat{width:24px;height:24px;border-radius:6px;border:none;padding:0;flex:none;cursor:pointer;position:relative;
  display:flex;align-items:center;justify-content:center;transition:transform .1s,box-shadow .12s;}
.seat.aisle{margin-right:16px;}
.seat.blank{background:transparent!important;cursor:default;pointer-events:none;box-shadow:none;}
.seat.open:active{transform:scale(.9);}
.seat.held{background:#dfe3ea;color:#9aa3b2;cursor:not-allowed;font-size:11px;}
.seat.sold{background:#9aa3b2;cursor:not-allowed;opacity:.5;}
.seat.blocked{background:#e5e7eb;color:#9aa3b2;cursor:not-allowed;opacity:.55;}
.seat.mine{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--c-primary);transform:scale(1.04);z-index:1;}
.seat.mine::after{content:"\F26E";font-family:"bootstrap-icons";color:#fff;font-size:13px;
  text-shadow:0 1px 2px rgba(0,0,0,.45);}

/* 상태 범례(선택가능/내선택/점유중/판매완료)는 2026-08-24 요청으로 제거 - CSS 도 함께 삭제.
   좌석 색만으로 구분되고, 좁은 화면에서 두 줄로 밀려 도면을 위로 밀어냈다.
   되살릴 일이 생기면 이 자리에 다시 넣을 것(마크업은 seats.blade 의 등급 범례 위). */

/* 등급 범례 — 상태 범례를 지웠으므로 여기서 위 구분선을 대신 그린다 */
.tc-glegend{display:flex;flex-wrap:wrap;gap:8px 16px;justify-content:center;margin-top:18px;
  padding-top:16px;border-top:1px solid var(--c-line);font-size:12px;color:#4b5563;}
.tc-glegend span{display:inline-flex;align-items:center;gap:6px;}
.tc-glegend i{width:11px;height:11px;border-radius:3px;display:inline-block;}

/* 자유석 수량 행 */
.tc-qrow{display:flex;align-items:center;gap:12px;padding:16px 0;border-top:1px solid var(--c-line);}
.tc-qrow:first-of-type{border-top:none;}
.tc-qrow .sw{width:14px;height:14px;border-radius:4px;flex:none;}
.tc-qrow .info{flex:1;}
.tc-qrow .info .nm{font-weight:700;font-size:15px;}
.tc-qrow .info .pr{font-size:13px;color:var(--c-sub);margin-top:2px;}
.tc-qrow.off{opacity:.5;}

/* 수량 stepper */
.tc-stepper{display:inline-flex;align-items:center;gap:0;border:1.5px solid var(--c-line);border-radius:12px;overflow:hidden;}
.tc-stepper button{width:38px;height:38px;border:none;background:#fff;color:var(--c-ink);font-size:15px;display:flex;
  align-items:center;justify-content:center;cursor:pointer;}
.tc-stepper button:active{background:#f1f2f5;}
.tc-stepper .qn{min-width:34px;text-align:center;font-weight:800;font-size:15px;font-variant-numeric:tabular-nums;}

/* 하단 CTA 선택 요약 */
/* 결제 화면 하단 요약(총 N매 / 금액) — pay.blade 가 쓴다. 좌석 화면은 아래 시트로 대체됐다. */
.tc-cta .pick-sum{flex:1;min-width:0;}
.tc-cta .pick-sum .k{font-size:12px;color:var(--c-sub);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.tc-cta .pick-sum .v{font-size:18px;font-weight:800;}

/* 좌석 선택 하단 시트(08-24 정돈) — 예전에는 [칩 줄] + ['2매' 라벨] + [버튼] 세 덩어리가
   반투명 바 위에서 각자 놀아 좌석이 비쳐 보이고 어수선했다. 한 장의 흰 시트로 묶는다.
   ⚠ 여기 규칙은 **좌석 화면(.tc-seats)에만** 적용한다 - 다른 화면의 CTA 는 종전 그대로. */
.tc-app.tc-seats .tc-cta{background:#fff;backdrop-filter:none;border-top:0;
  border-radius:16px 16px 0 0;box-shadow:0 -6px 24px rgba(20,24,33,.13);padding-top:12px;}
/* 헤더 줄: '선택 좌석 2' + (금액) + 전체삭제. 칩 줄(order:-1)보다 위로 올린다. */
.tc-app.tc-seats .pick-head{order:-2;flex:0 0 100%;display:flex;align-items:center;
  justify-content:space-between;gap:10px;}
.tc-app.tc-seats .pick-head[hidden]{display:none;}
.tc-app.tc-seats .pick-head .k{font-size:13.5px;font-weight:800;color:var(--c-ink);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.tc-app.tc-seats .pick-head .k b{color:var(--c-primary);}
.tc-app.tc-seats .pick-head .right{flex:none;display:flex;align-items:center;gap:12px;}
.tc-app.tc-seats .pick-head .v{font-size:16px;font-weight:800;color:var(--c-ink);}
/* 전체삭제는 '버튼처럼' 보이면 예매 버튼과 경쟁한다 - 밑줄 링크 톤으로 낮춘다 */
.tc-app.tc-seats .pick-head .clear{background:none;border:0;padding:2px 0;
  font-size:12.5px;font-weight:700;color:var(--c-sub);
  text-decoration:underline;text-underline-offset:3px;cursor:pointer;}
.tc-app.tc-seats .pick-head .clear:hover{color:var(--c-ink);}
/* 요약이 헤더로 올라갔으니 버튼이 마지막 줄을 통째로 쓴다(NOL 과 같은 전폭 기본 버튼).
   ⚠ 아래 공통 규칙 `.tc-cta #payBtn{flex:none;min-width:140px}` 를 덮어야 한다 - 안 그러면
     140px 짜리가 왼쪽에 붙고 오른쪽이 텅 빈다(요약 블록이 밀어주던 자리가 사라졌으므로). */
.tc-app.tc-seats .tc-cta #payBtn{flex:1 1 100%;min-width:0;}
.tc-cta #payBtn{flex:none;min-width:140px;padding:0 18px;}
/* 선택 좌석 칩(좌석 선택 화면 전용) — 하단 요약 한 줄이 ellipsis 로 잘려 좌석번호 확인이 안 되던 문제.
   .tc-cta 는 가로 flex 라, 칩 줄만 전체폭 첫 줄로 빼기 위해 이 페이지에서만 wrap 을 허용한다. */
.tc-app.tc-seats .tc-cta{flex-wrap:wrap;}
/* 세 줄(헤더·칩·버튼) 간격은 .tc-cta 의 gap:10px 이 일정하게 잡는다 - 개별 margin 금지 */
.tc-app.tc-seats .tc-pick-chips{order:-1;flex:0 0 100%;display:flex;gap:8px;overflow-x:auto;
  padding-bottom:3px;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
.tc-app.tc-seats .tc-pick-chips::-webkit-scrollbar{display:none;}
/* 선택한 좌석은 이 화면에서 **가장 중요한 정보**다(내가 어디를 골랐는지).
   연회색 작은 칩이라 눈에 안 띄던 것을 키우고 브랜드색 음영을 줬다. 08-24 요청.
   ⚠ 칩 줄은 위 규칙(order:-1; flex:0 0 100%)으로 **자기 줄을 통째로 쓴다** -
     그래서 키워도 옆 버튼을 밀지 않는다(.tc-cta 한 줄 flex 함정 회피). */
.tc-pick-chip{flex:none;display:inline-flex;align-items:center;gap:6px;cursor:pointer;
  background:rgba(250,62,63,.10);color:var(--c-primary-2);border:1.5px solid rgba(250,62,63,.35);
  border-radius:999px;box-shadow:0 1px 3px rgba(217,43,44,.14);
  padding:7px 11px 7px 14px;font-size:14.5px;font-weight:800;letter-spacing:-.2px;white-space:nowrap;}
.tc-pick-chip .x{color:var(--c-primary-2);opacity:.75;font-size:17px;line-height:1;padding:1px;border-radius:50%;}
.tc-pick-chip .x:hover{background:rgba(250,62,63,.18);opacity:1;}

/* =========================================================================
   결제 (U7)
   ========================================================================= */
.tc-paytop{margin-bottom:12px;}
.tc-paytop .ev{font-size:16px;font-weight:800;}
.tc-paytop .dt{font-size:13px;color:var(--c-sub);margin-top:5px;display:flex;align-items:center;gap:6px;}
.tc-paytop .dt .bi{color:var(--c-primary);}
.tc-payrow{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--c-line);}
.tc-payrow .l{flex:1;}
.tc-payrow .lb{font-weight:700;font-size:15px;}
.tc-payrow .gd{display:block;font-size:12.5px;color:var(--c-sub);margin-top:2px;}
.tc-payrow .amt{font-weight:800;font-size:15px;}

.tc-select{width:100%;height:50px;border:1.5px solid #d8dee9;border-radius:13px;padding:0 14px;font-size:15px;
  font-weight:600;color:var(--c-ink);background:#fff;appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 5.5l4.8 5 4.8-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;}
.tc-select:focus{outline:none;border-color:var(--c-primary);box-shadow:0 0 0 .25rem rgba(250,62,63,.12);}

.tc-pays{display:flex;flex-direction:column;gap:10px;}
.tc-payopt{display:flex;align-items:center;gap:12px;width:100%;height:56px;padding:0 16px;border-radius:14px;
  border:1.5px solid var(--c-line);background:#fff;cursor:pointer;font-size:15px;font-weight:600;color:var(--c-ink);text-align:left;}
.tc-payopt > .bi:first-child{font-size:20px;color:var(--c-sub);}
.tc-payopt span{flex:1;}
.tc-payopt .ck{font-size:20px;color:var(--c-line);}
.tc-payopt.on{border-color:var(--c-primary);background:#faf8ff;}
.tc-payopt.on > .bi:first-child{color:var(--c-primary);}
.tc-payopt.on .ck{color:var(--c-primary);}

.tc-agree{display:flex;align-items:flex-start;gap:10px;font-size:13px;color:#4b5563;line-height:1.5;cursor:pointer;}
.tc-agree input{width:20px;height:20px;flex:none;margin-top:1px;accent-color:var(--c-primary);}

/* =========================================================================
   발권 완료 (U8)
   ========================================================================= */
.tc-done-head{text-align:center;padding:30px 24px 8px;}
.tc-done-head .ok{width:64px;height:64px;border-radius:50%;margin:0 auto 16px;display:flex;align-items:center;justify-content:center;
  font-size:34px;color:#fff;background:linear-gradient(135deg,#16a34a,#0891b2);box-shadow:0 10px 24px rgba(22,163,74,.32);}
.tc-done-head .t{font-size:20px;font-weight:800;}
.tc-done-head .s{font-size:13px;color:var(--c-sub);margin-top:8px;line-height:1.6;}

.tc-ticket{background:#fff;border:1px solid var(--c-line);border-radius:18px;overflow:hidden;
  box-shadow:0 6px 20px rgba(20,24,33,.06);margin-bottom:16px;}
.tc-ticket .qr{display:flex;justify-content:center;padding:24px 0 18px;background:linear-gradient(180deg,#faf8ff,#fff);}
.tc-ticket .qr .tc-qr img,.tc-ticket .qr .tc-qr canvas,.tc-ticket .qr .tc-qr svg{display:block;}
.tc-ticket-rip{position:relative;height:0;border-top:2px dashed #dfe3ea;margin:0 16px;}
.tc-ticket-rip::before,.tc-ticket-rip::after{content:"";position:absolute;top:-11px;width:20px;height:20px;border-radius:50%;background:var(--c-bg);}
.tc-ticket-rip::before{left:-26px;}
.tc-ticket-rip::after{right:-26px;}
.tc-ticket .info{padding:18px 20px 20px;}
.tc-ticket .info .ev{font-size:16px;font-weight:800;}
/* 좌석 라벨이 "A구역 16열 10번" 처럼 길어져도 카드 밖으로 넘치지 않게 줄바꿈 허용 */
.tc-ticket .info .row2{display:flex;align-items:center;gap:10px;margin:10px 0;flex-wrap:wrap;min-width:0;}
.tc-ticket .info .seat{font-size:20px;font-weight:800;color:var(--c-primary);
    white-space:normal;word-break:keep-all;line-height:1.25;min-width:0;flex:1 1 auto;}
.tc-ticket .info .grade{font-size:12px;font-weight:700;color:#4b5563;background:#f3f4f7;border-radius:999px;padding:4px 11px;white-space:nowrap;}
.tc-ticket .info .dt{font-size:13px;color:var(--c-sub);display:flex;align-items:flex-start;gap:7px;margin-top:5px;line-height:1.45;}
.tc-ticket .info .dt .bi{color:var(--c-primary);flex:none;margin-top:2px;}

/* =========================================================================
   마이페이지 / 예매내역 (U9)
   ========================================================================= */
.tc-order .top{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;}
.tc-order .top .dt{font-size:12.5px;color:var(--c-sub);}
.tc-order .top .badges{display:flex;align-items:center;gap:6px;flex-wrap:wrap;}   /* [09-16] 상태 배지 + 조장 예매 배지를 왼쪽에 붙임 */
.tc-order .top .dt{margin-left:auto;padding-left:8px;white-space:nowrap;}
.tc-order .ev{font-size:17px;font-weight:800;}
.tc-order .vn{font-size:13px;color:var(--c-sub);margin-top:5px;display:flex;align-items:center;gap:6px;}
.tc-order .seatline{display:flex;align-items:center;gap:7px;margin-top:12px;font-size:14px;}
.tc-order .seatline .bi{color:var(--c-primary);}
.tc-order .seatline b{font-weight:800;}
.tc-order .seatline .g{color:var(--c-sub);font-size:12.5px;}
.tc-order .acts{display:flex;gap:10px;margin-top:16px;}
.tc-order .acts .tc-btn{height:46px;font-size:14px;border-radius:12px;}
/* [2026-09-16] 카드 버튼은 반반(조장: QR 보기 | 취소요청). 조원은 QR 보기 하나라 전체 폭. 라벨은 한 줄 고정 -
   잠금 문구(.tc-qr-locked)를 버튼 옆에 두던 시절 취소 버튼이 세로 4글자로 찌그러졌다. 문구는 이제 모달 안(.qr-ph)으로. */
.tc-order .acts .tc-btn{flex:1;min-width:0;white-space:nowrap;}
.tc-order .acts .tc-btn.is-locked{border-color:#d8dee9;color:#6b7280;}

.tc-empty{min-height:60vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--c-sub);padding:24px;}
.tc-empty .bi{font-size:46px;color:#cbd0da;margin-bottom:14px;}
.tc-empty .t{font-size:16px;font-weight:800;color:var(--c-ink);}
.tc-empty .s{font-size:13px;margin-top:6px;}
/* 빈 상태 안내의 CTA 버튼.
   .tc-empty 가 세로 flex 라 .tc-btn 의 flex:1 이 '세로로' 늘어나 버튼이 화면을 채우고,
   .tc-empty .bi(46px) 규칙이 버튼 안 아이콘까지 키워 라벨이 밀려나던 것을 막는다. */
.tc-empty .tc-empty-cta{flex:0 0 auto;width:auto;min-width:200px;max-width:100%;padding:0 22px;margin-top:18px;}
.tc-empty .tc-empty-cta .bi{font-size:16px;color:inherit;margin-bottom:0;}

/* =========================================================================
   포털 / 인트로 (사용자 메인)
   ========================================================================= */
.tc-portal-search{position:relative;margin:14px 16px 4px;}
.tc-portal-search .bi{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--c-sub);font-size:16px;}
.tc-portal-search input{width:100%;height:46px;border:1.5px solid #e3e7ee;border-radius:13px;padding:0 14px 0 40px;
  font-size:14px;background:#f7f8fa;}
.tc-portal-search input:focus{outline:none;border-color:var(--c-primary);background:#fff;box-shadow:0 0 0 .2rem rgba(250,62,63,.1);}

.tc-cats{display:flex;gap:8px;overflow-x:auto;-webkit-overflow-scrolling:touch;padding:12px 16px 4px;}
.tc-cats::-webkit-scrollbar{display:none;}
.tc-cat{flex:none;font-size:13px;font-weight:600;color:#4b5563;background:#f3f4f7;border:none;border-radius:999px;
  padding:8px 15px;cursor:pointer;white-space:nowrap;}
.tc-cat.on{background:var(--c-primary);color:#fff;}

.tc-feature{display:block;position:relative;margin:14px 16px 4px;border-radius:18px;overflow:hidden;
  min-height:148px;padding:16px;color:#fff;text-decoration:none;box-shadow:0 8px 22px rgba(20,24,33,.18);}
.tc-feature .tc-badge{position:relative;z-index:1;}
.tc-feature .fmeta{position:absolute;left:16px;right:16px;bottom:46px;}
.tc-feature .ft{font-size:19px;font-weight:800;line-height:1.3;text-shadow:0 1px 10px rgba(0,0,0,.35);}
.tc-feature .fm{font-size:12.5px;opacity:.95;margin-top:6px;display:flex;align-items:center;gap:6px;}
.tc-feature .fgo{position:absolute;left:16px;bottom:9px;display:inline-flex;align-items:center;gap:4px;
  font-size:13px;font-weight:700;background:rgba(255,255,255,.18);backdrop-filter:blur(6px);border-radius:999px;padding:7px 14px;}

.tc-portal-sec{padding:18px 16px;}
.tc-portal-sec .tc-h{display:flex;align-items:center;gap:7px;}
.tc-portal-sec .tc-h .cnt{font-size:12px;font-weight:700;color:var(--c-primary);background:#FEECEC;border-radius:999px;padding:2px 9px;}

.tc-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;}
.tc-ecard{display:block;border-radius:14px;overflow:hidden;background:#fff;border:1px solid var(--c-line);text-decoration:none;color:inherit;
  box-shadow:0 3px 12px rgba(20,24,33,.05);}
.tc-ecard:active{transform:scale(.98);}
.tc-ecard .poster{position:relative;aspect-ratio:3/4;background:#1b1430;}
.tc-ecard .poster .float{position:absolute;top:8px;left:8px;}
.tc-ecard .poster .cat{position:absolute;bottom:8px;right:8px;font-size:10.5px;font-weight:700;color:#fff;
  background:rgba(0,0,0,.4);border-radius:999px;padding:2px 9px;}
.tc-ecard .ec-body{padding:11px 12px 13px;}
.tc-ecard .ec-t{font-size:14px;font-weight:800;line-height:1.35;overflow:hidden;text-overflow:ellipsis;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:38px;}
.tc-ecard .ec-m{font-size:11.5px;color:var(--c-sub);margin-top:5px;display:flex;align-items:center;gap:5px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.tc-ecard .ec-m .bi{font-size:12px;flex:none;}
/* .ec-p(카드 가격)는 08-21 요청으로 렌더하지 않는다 - 가격은 공연 상세에서만 노출 */

/* 좌상단 코너 리본 - 공연까지 남은 일수(D-day). 상태 배지(오픈예정/예매중)를 대체한다.
   .tc-feature / .tc-ecard .poster 가 position:relative + overflow:hidden 이라 모서리에서 잘려 삼각 띠가 된다. */
.tc-ribbon{position:absolute;top:0;left:0;width:104px;height:104px;overflow:hidden;z-index:2;pointer-events:none;}
.tc-ribbon span{position:absolute;left:-40px;top:20px;width:152px;padding:5px 0;transform:rotate(-45deg);
  display:block;text-align:center;font-size:12.5px;font-weight:800;letter-spacing:.3px;color:#fff;
  background:linear-gradient(135deg,#4b5563,#374151);box-shadow:0 4px 12px rgba(15,18,25,.28);}
.tc-ribbon.on span{background:linear-gradient(135deg,var(--c-primary),var(--c-primary-2));}     /* 예매중 */
.tc-ribbon.today span{background:linear-gradient(135deg,#ff5a4d,#D92B2C);}                       /* 공연 당일 */
.tc-ribbon.soon span{background:linear-gradient(135deg,#5b6472,#39404b);}                        /* 오픈 전 */
.tc-ribbon.off span{background:linear-gradient(135deg,#9aa3af,#6b7280);}                         /* 매진·종료 */

/* =========================================================================
   스태프 — QR 입장 체크인 (소비자 셸 재사용)
   ========================================================================= */
.tc-scan-count{flex:none;font-size:13px;font-weight:700;color:var(--c-sub);background:#f3f4f7;border-radius:999px;padding:5px 12px;}
.tc-scan-count b{color:var(--c-primary);font-size:15px;}
.tc-scanwrap{padding:14px 16px 96px;}
.tc-scanwrap .ev-line{font-size:12.5px;color:var(--c-sub);text-align:center;margin-bottom:12px;}

.tc-scanner{position:relative;width:100%;aspect-ratio:1/1;max-height:46vh;border-radius:18px;overflow:hidden;
  background:radial-gradient(circle at 50% 40%,#2a2f3a,#14171d);display:flex;align-items:center;justify-content:center;}
.tc-scanner.flash{animation:scFlash .25s;}
@keyframes scFlash{0%{filter:brightness(2.2);}100%{filter:brightness(1);}}
.tc-scanner .cn{position:absolute;width:34px;height:34px;border:3px solid rgba(255,255,255,.85);}
.tc-scanner .cn.tl{top:24px;left:24px;border-right:none;border-bottom:none;border-radius:8px 0 0 0;}
.tc-scanner .cn.tr{top:24px;right:24px;border-left:none;border-bottom:none;border-radius:0 8px 0 0;}
.tc-scanner .cn.bl{bottom:24px;left:24px;border-right:none;border-top:none;border-radius:0 0 0 8px;}
.tc-scanner .cn.br{bottom:24px;right:24px;border-left:none;border-top:none;border-radius:0 0 8px 0;}
.tc-scanner .scan-line{position:absolute;left:30px;right:30px;height:2px;background:linear-gradient(90deg,transparent,#22d3ee,transparent);
  box-shadow:0 0 12px #22d3ee;animation:scMove 2.4s ease-in-out infinite;}
@keyframes scMove{0%,100%{top:32px;}50%{top:calc(100% - 32px);}}
.tc-scanner .scan-hint{color:rgba(255,255,255,.78);font-size:12.5px;text-align:center;line-height:1.7;}
.tc-scanner .scan-hint .bi{font-size:26px;}

/* 결과 패널 */
.tc-result{display:flex;align-items:center;gap:14px;border-radius:14px;padding:16px;margin-top:14px;}
.tc-result .ic{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:24px;color:#fff;flex:none;}
.tc-result .t{font-size:16px;font-weight:800;}
.tc-result .s{font-size:13px;margin-top:3px;}
.tc-result.ok{background:#ecfdf5;}   .tc-result.ok .ic{background:var(--c-green);}   .tc-result.ok .t{color:#15803d;}   .tc-result.ok .s{color:#3f7a5b;}
.tc-result.dup{background:#fffbeb;}  .tc-result.dup .ic{background:var(--c-amber);}  .tc-result.dup .t{color:#b45309;}  .tc-result.dup .s{color:#92702a;}
.tc-result.inv{background:#fff1f2;}  .tc-result.inv .ic{background:var(--c-red);}    .tc-result.inv .t{color:#be123c;}  .tc-result.inv .s{color:#9f3a52;}

/* 수동 입력 */
.tc-scan-manual{display:flex;gap:8px;margin-top:14px;}
.tc-scan-manual input{flex:1;height:46px;border:1.5px solid #e3e7ee;border-radius:12px;padding:0 14px;font-size:14px;}
.tc-scan-manual input:focus{outline:none;border-color:var(--c-primary);box-shadow:0 0 0 .2rem rgba(250,62,63,.1);}
.tc-scan-manual button{width:48px;height:46px;border:none;border-radius:12px;background:var(--c-primary);color:#fff;font-size:18px;flex:none;}

/* 최근 스캔 */
.tc-scan-recent{margin-top:22px;}
.tc-scan-recent .rh{font-size:13px;font-weight:800;color:var(--c-sub);margin-bottom:8px;}
.tc-scan-recent ul{list-style:none;margin:0;padding:0;}
.tc-scan-recent li{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:11px;background:#f7f8fa;margin-bottom:7px;font-size:13px;}
.tc-scan-recent li.empty{color:var(--c-sub);justify-content:center;background:none;}
.tc-scan-recent li .tm{color:var(--c-sub);font-variant-numeric:tabular-nums;}
.tc-scan-recent li .st{font-weight:800;}
.tc-scan-recent li .gd{font-size:11px;color:#4b5563;background:#eceef2;border-radius:999px;padding:2px 8px;}
.tc-scan-recent li .nm{margin-left:2px;color:#374151;}
.tc-scan-recent li .ok{margin-left:auto;color:var(--c-green);font-size:18px;}

/* =========================================================================
   공유 바텀시트 (전 화면 공용)
   ========================================================================= */
.tc-sheet-dim{position:fixed;inset:0;background:rgba(16,18,23,.45);z-index:1040;opacity:0;visibility:hidden;transition:.2s;}
.tc-sheet-dim.on{opacity:1;visibility:visible;}
.tc-sheet{position:fixed;left:0;right:0;bottom:0;z-index:1050;max-width:var(--tc-w);margin:0 auto;
  background:#fff;border-radius:20px 20px 0 0;padding:10px 18px calc(18px + env(safe-area-inset-bottom));
  transform:translateY(100%);transition:transform .25s cubic-bezier(.22,.61,.36,1);box-shadow:0 -8px 30px rgba(20,24,33,.18);}
.tc-sheet.on{transform:translateY(0);}
.tc-sheet .grip{width:40px;height:4px;border-radius:3px;background:#dfe3ea;margin:4px auto 12px;}
.tc-sheet .sh-title{font-size:16px;font-weight:800;text-align:center;margin-bottom:12px;}
.tc-sheet .sh-url{font-size:12px;color:var(--c-sub);background:#f5f6f8;border-radius:10px;padding:10px 12px;
  word-break:break-all;text-align:center;margin-bottom:14px;}
.tc-sheet .sh-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;}
.tc-sheet .sh-btn{display:flex;flex-direction:column;align-items:center;gap:7px;padding:14px 4px;border:none;border-radius:14px;
  background:#f5f6f8;cursor:pointer;font-size:12px;font-weight:600;color:var(--c-ink);}
.tc-sheet .sh-btn:active{background:#eceef2;}
.tc-sheet .sh-btn .bi{font-size:22px;color:var(--c-primary);}
.tc-sheet .sh-qr{display:none;justify-content:center;padding:18px 0 6px;}
.tc-sheet .sh-qr img,.tc-sheet .sh-qr canvas{display:block;}

/* QR 모달 */
.tc-qrmodal{border:none;border-radius:20px;}
.tc-qrmodal .body{padding:26px 24px 22px;text-align:center;}   /* [09-16] 상단 X 제거로 위 여백 확보 */
.tc-qrmodal .t{font-size:17px;font-weight:800;}
.tc-qrmodal .s{font-size:13px;color:var(--c-sub);margin-top:5px;}
.tc-qrmodal .qrwrap{display:flex;justify-content:center;padding:22px 0 16px;}
.tc-qrmodal .qrwrap img,.tc-qrmodal .qrwrap canvas{display:block;}
.tc-qrmodal .hint{font-size:12.5px;color:var(--c-sub);}
.tc-qrmodal .close-btn{width:100%;margin-top:16px;}   /* [09-16] 하단 닫기 - 조원 안내 팝업(grpModal)과 같은 모양 */
.tc-qrmodal #qrList{max-height:60vh;overflow-y:auto;margin-top:6px;}
.tc-qrmodal .qr-item{padding:16px 0;border-top:1px dashed var(--c-line);}
.tc-qrmodal .qr-item:first-child{border-top:none;}
.tc-qrmodal .qr-cap{font-size:14px;font-weight:800;color:var(--c-primary);margin-bottom:10px;}
.tc-qrmodal .qrbox{display:flex;justify-content:center;}
.tc-qrmodal .qrbox img,.tc-qrmodal .qrbox canvas,.tc-qrmodal .qrbox svg{display:block;}
/* [2026-10-12] 현장 지적 - QR 이 작아(190px) 여러 장이 한 화면에 같이 보이면 스캐너가 어느 것을 찍었는지 헷갈림.
   한 장이 화면 폭을 거의 채우게 키우고 장 사이를 벌려, 한 번에 한 장만 보이게 한다. SVG 는 viewBox 가 있어 그대로 커진다. */
.tc-qrmodal .qrbox svg,.tc-qrmodal .qr-ph>svg{width:min(78vw,300px);height:auto;}
.tc-qrmodal .qr-item{padding:26px 0;}
.tc-qrmodal .qr-item:first-child{padding-top:10px;}
/* QR 모달 잠금 자리표시(_qrlocked) - 진짜 QR 이 아니다(토큰 없음). 흐린 고정 무늬 위에 자물쇠 + 공개 시각 문구.
   정각이 되면 JS 가 order/{id}/qr 응답(_qrlist)으로 통째로 바꿔 끼운다. inset 대신 네 변 지정(구형 웹뷰). */
.tc-qrmodal .qr-ph{position:relative;display:inline-block;}
.tc-qrmodal .qr-ph>svg{display:block;filter:blur(2.5px);opacity:.22;}
.tc-qrmodal .qr-ph .ov{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  padding:0 14px;font-size:13px;font-weight:700;line-height:1.45;color:#374151;word-break:keep-all;text-align:center;}
.tc-qrmodal .qr-ph .ov .bi{font-size:30px;color:#9aa3af;}
.tc-qrmodal .qr-ph .ov .share{color:var(--c-primary);}   /* [09-30] 둘째 줄(QR티켓 전달하기 …) - 닫기 버튼과 같은 브랜드 색 */

/* =========================================================================
   소비자 인증 (로그인/회원가입)   [.tc-auth 스코프 — 광범위 셀렉터 금지]
   ========================================================================= */
.tc-auth{padding:30px 22px calc(28px + env(safe-area-inset-bottom));min-height:calc(100vh - 54px);}
.tc-auth .a-logo{text-align:center;margin-bottom:24px;}
.tc-auth .a-logo .ic{font-size:38px;color:var(--c-primary);}
.tc-auth .a-logo .t{font-size:20px;font-weight:800;margin-top:8px;}
.tc-auth .a-logo .s{font-size:13px;color:var(--c-sub);margin-top:4px;}
.tc-auth .fld{margin-bottom:14px;}
.tc-auth .fld label{display:block;font-size:13px;font-weight:700;color:#374151;margin-bottom:6px;}
.tc-auth .tc-in{width:100%;height:50px;border:1.5px solid #d8dee9;border-radius:13px;padding:0 14px;font-size:15px;
  background:#fff;color:var(--c-ink);transition:.15s;}
.tc-auth .tc-in:focus{outline:none;border-color:var(--c-primary);box-shadow:0 0 0 .25rem rgba(250,62,63,.12);}
.tc-auth .err{color:var(--c-red);font-size:12.5px;margin-top:6px;}
.tc-auth .a-err{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca;border-radius:11px;padding:10px 13px;font-size:13px;margin-bottom:16px;}
.tc-auth .a-divider{display:flex;align-items:center;gap:10px;color:var(--c-sub);font-size:12px;margin:18px 0;}
.tc-auth .a-divider::before,.tc-auth .a-divider::after{content:"";flex:1;height:1px;background:var(--c-line);}
.tc-auth .a-sns{display:flex;flex-direction:column;gap:10px;}
.tc-auth .a-sns .btn-sns{display:flex;align-items:center;justify-content:center;gap:8px;height:50px;border-radius:13px;
  border:none;font-size:15px;font-weight:700;cursor:pointer;text-decoration:none;}
.tc-auth .a-sns .kakao{background:#fee500;color:#191600;}
.tc-auth .a-sns .phone{background:#f1f3f8;color:var(--c-ink);}
.tc-auth .a-foot{text-align:center;font-size:13px;color:var(--c-sub);margin-top:22px;}
.tc-auth .a-foot a{color:var(--c-primary);font-weight:700;text-decoration:none;}
/* 문의 전화(tel:) 줄 - 안내 문장 아래 한 줄로 (09-04 회의) */
.tc-auth .a-foot .a-tel{display:block;margin-top:8px;}
.tc-auth .a-otp{display:flex;gap:8px;}
.tc-auth .a-otp .tc-in{flex:1;}
.tc-auth .a-otp button{flex:none;padding:0 16px;border:none;border-radius:13px;background:var(--c-primary);color:#fff;font-weight:700;font-size:14px;cursor:pointer;}
.tc-auth .a-otp button:disabled{opacity:.5;}

/* [2026-09-16] 안드로이드 키패드 가림 대응(BNK 신고 - 직원 로그인 휴대폰 칸이 키패드 뒤에 갇힘).
   인증 화면은 내용이 짧아 문서 높이 = 화면 높이라 스크롤 공간이 0 인데, 키패드가 떠도 페이지를 안 줄이는
   앱 내장 웹뷰(adjustPan/전체화면)는 입력칸을 자동으로 올려 주지도 않는다. 입력 중일 때만(kb-open, 레이아웃 JS 토글)
   아래 여백을 줘 스크롤 공간을 만들고, JS 가 라벨+입력칸을 상단 바 아래로 올린다. visualViewport 를 아는
   브라우저는 JS 가 실측 px 로 덮어쓴다(인라인). 55vh = 안드로이드 숫자 키패드(40~50%) + 여유. */
.tc-auth.kb-open{padding-bottom:55vh;}
/* 로그인 화면 주최사 로고·타이틀 레터링(emp_login). 작은 화면(세로 700px 이하)은 줄여 입력칸을 위로 올린다(보조 조치). */
.tc-auth .a-logo .a-img{height:auto;display:block;margin:0 auto 6px;}
.tc-auth .a-logo .a-img-logo{width:200px;max-width:70%;}
.tc-auth .a-logo .a-img-title{width:280px;max-width:82%;}
@media (max-height:700px){
  .tc-auth{padding-top:18px;}
  .tc-auth .a-logo{margin-bottom:16px;}
  .tc-auth .a-logo .a-img-logo{width:140px;}
  .tc-auth .a-logo .a-img-title{width:220px;}
}

/* =========================================================================
   반응형 토대 (Phase 0) — 모바일(기본) 위에 태블릿/데스크톱 확장. 비파괴.
   앱 컬럼 폭은 --tc-w 하나로 제어(.tc-app/.tc-cta/.tc-sheet 공용).
   화면별 광폭(포털 그리드·좌석맵 등)은 .tc-app 에 tc-wide 클래스 추가.
   ========================================================================= */
@media (min-width:768px){
  .tc{ --tc-w:600px; background:#fff; }            /* 컬럼 바깥 회색 배경 제거 → 흰 페이지(사이드 회색 띠 없앰) */
  .tc-app.tc-wide{ --tc-w:min(1120px, 94vw); box-shadow:none; }   /* 광폭 페이지: 화면폭 비례 + 그림자 제거(풀 화이트) */
  .tc-sec{ padding:22px 24px; }
}
@media (min-width:1024px){
  .tc{ --tc-w:720px; }                             /* 폼/글 위주는 읽기 좋은 폭 유지 */
  .tc-app.tc-wide{ --tc-w:min(1680px, 94vw); }     /* 포털·좌석 등 거의 풀와이드(웹 형태) */
}

/* =========================================================================
   반응형 Phase 1 — 포털(카드 다열) + 공연상세(데스크톱 2단). 모바일 무변경.
   ========================================================================= */
/* 포털: 카드 그리드를 컨테이너 폭에 맞춰 자동 채움(auto-fill) → 넓을수록 열이 늘어 웹 카탈로그처럼 꽉 참. */
@media (min-width:768px){
  .tc-grid{ grid-template-columns:repeat(auto-fill, minmax(210px, 1fr)); gap:18px; }
  .tc-portal-search{ max-width:560px; }
  .tc-feature{ min-height:230px; }
}
@media (min-width:1024px){
  .tc-feature{ min-height:280px; border-radius:20px; }
  .tc-feature .ft{ font-size:24px; }
}

/* 공연상세: 데스크톱 레이아웃 (인터파크/NOL 골격)
     1행  탭바        — 전체 폭
     2행  좌 포스터(sticky) | 우 기본정보 + 예매박스(sticky)
     3행  선택된 탭 내용 — 전체 폭
   ⚠ 탭바(.tc-tabbar)는 .tc-sec 이 아니라서 예전 규칙에 안 걸려 왼쪽 컬럼으로 떨어졌다.
     그래서 탭은 포스터 아래, 탭 내용은 오른쪽에 갈라져 보였다. order/grid-column 으로 명시 배치한다.
   모바일(1단)은 DOM 순서 그대로라 무변경. */
@media (min-width:1024px){
  .ev-detail .tc-body{ display:grid; grid-template-columns:minmax(0,1fr) 320px; column-gap:40px;
    align-items:start; padding:20px 20px 60px; max-width:1160px; margin-left:auto; margin-right:auto; }

  /* 탭바 = 전체 폭 최상단. 스크롤해도 상단에 붙어 이동 버튼 역할을 계속한다. */
  .ev-detail .tc-tabbar{ grid-column:1/-1; order:-1; margin-bottom:20px; padding:0; top:54px; }

  /* 왼쪽: 포스터 + 모든 섹션이 세로로 이어진다(앵커 이동 대상) */
  .ev-detail .tc-hero{ grid-column:1; order:0; aspect-ratio:16/10; max-height:none;
    border-radius:16px; overflow:hidden; }
  .ev-detail .tc-anchorsec{ grid-column:1; order:1; padding:26px 0 0; border-top:0; scroll-margin-top:120px; }
  .ev-detail .tc-anchorsec + .tc-anchorsec{ border-top:1px solid var(--c-line); margin-top:26px; }
  /* 마지막 섹션이 짧으면 탭을 눌러도 화면 위로 올라오지 못한다. 아래 여백을 조금 둬서 이동이 되게 한다. */
  .ev-detail .tc-anchorsec:last-of-type{ padding-bottom:22vh; }

  /* 오른쪽: 기본정보 + 예매박스를 한 덩어리로 sticky */
  .ev-detail .ev-side{ grid-column:2; grid-row:2 / span 99; order:0; position:sticky; top:88px; }
  .ev-detail .ev-side > .tc-sec{ padding:0; border-top:0; }

  .ev-detail .tc-bookbox{ display:block; margin-top:18px; }

  .ev-detail .tc-cta{ display:none; }   /* 하단 고정바는 예매박스로 대체 */
}

/* 예매박스 — 모바일에서는 하단 CTA 가 담당하므로 숨긴다 */
.tc-bookbox{ display:none; border:1px solid var(--c-line); border-radius:14px; padding:16px 16px 18px;
  background:#fff; box-shadow:0 6px 20px rgba(20,24,33,.06); }
.tc-bookbox .bb-price{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.tc-bookbox .bb-price .k{ font-size:13px; color:var(--c-sub); }
.tc-bookbox .bb-price .v{ font-size:22px; font-weight:800; }
.tc-bookbox .bb-grades{ margin:12px 0 14px; border-top:1px solid var(--c-line); padding-top:12px; }
.tc-bookbox .bb-grade{ display:flex; align-items:center; gap:8px; font-size:13.5px; padding:3px 0; }
.tc-bookbox .bb-grade .sw{ width:10px; height:10px; border-radius:3px; flex:none; }
.tc-bookbox .bb-grade .nm{ flex:1 1 auto; min-width:0; }
.tc-bookbox .bb-grade .av{ font-size:12px; font-weight:700; }
.tc-bookbox .bb-grade .av.ok{ color:#16a34a; }
.tc-bookbox .bb-grade .av.low{ color:#d97706; }
.tc-bookbox .bb-grade .av.no{ color:#9aa3b2; }
.tc-bookbox .tc-btn{ width:100%; }

/* =========================================================================
   반응형 Phase 2 — 좌석/수량 선택. 지정석맵·실공연장 도면을 넓은 캔버스로,
   하단 결제바는 중앙 고정폭으로. 모바일 무변경.
   ========================================================================= */
@media (min-width:768px){
  .tc-app.tc-seats{ --tc-w:min(1040px, 94vw); box-shadow:none; }       /* 좌석 캔버스는 넉넉하게(웹 형태) */
  .tc-app.tc-seats .tc-cta{ max-width:720px; }                          /* 하단 결제바는 중앙 고정폭(과도한 가로폭 방지) */
  .tc-app.tc-seats .tc-planwrap{ height:66vh; min-height:460px; }       /* 실공연장 도면 더 크게(specificity로 인라인 override) */
  .tc-seatmap .srow{ margin-inline:auto; }                              /* 지정석 그리드 가운데 정렬(넘치면 우측 오버플로 스크롤) */
  .tc-seatwrap{ padding:20px 22px 104px; }
  .tc-qrow .info .nm{ font-size:16px; }
}
@media (min-width:1024px){
  .tc-app.tc-seats .tc-planwrap{ height:70vh; min-height:520px; }
  .tc-app.tc-seats .seat{ width:26px; height:26px; }                    /* 마우스 클릭 편하게 살짝 크게 */
  .tc-app.tc-seats .srow .seats{ gap:7px; }
}

/* =========================================================================
   반응형 Phase 3 — 결제(2단 체크아웃) · 발권완료/마이페이지(티켓·주문 카드 다열).
   모바일 무변경.
   ========================================================================= */
/* 결제: 데스크톱 2단(좌 예매내역 sticky + 우 결제수단/약관). 하단 결제바 중앙 고정폭. */
@media (min-width:768px){
  .tc-app.pay-page{ --tc-w:min(940px, 94vw); box-shadow:none; }
  .tc-app.pay-page .tc-cta,
  .tc-app.done-page .tc-cta{ max-width:720px; }
}
@media (min-width:1024px){
  .pay-page .tc-body{ display:grid; grid-template-columns:360px minmax(0,1fr); column-gap:32px;
    align-items:start; max-width:1000px; margin-left:auto; margin-right:auto; padding:24px 20px 120px; }
  .pay-page .tc-body > .tc-sec:first-child{ grid-column:1; position:sticky; top:66px; }
  .pay-page .tc-body > .tc-sec:not(:first-child){ grid-column:2; }
}

/* 발권완료: 입장권 카드 다열(auto-fill). 완료 헤더는 전체폭 중앙. */
@media (min-width:768px){
  .tc-app.done-page{ --tc-w:min(1000px, 94vw); box-shadow:none; }
  .done-page .tc-body > .tc-sec{ display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
    gap:18px; align-items:start; }
  .done-page .tc-ticket{ margin:0; }
}

/* 마이페이지: 예매내역 카드 다열(auto-fill). 빈 상태는 전체폭. */
@media (min-width:768px){
  .tc-app.mine-page{ --tc-w:min(1040px, 94vw); box-shadow:none; }
  .mine-page .tc-body{ display:grid; grid-template-columns:repeat(auto-fill, minmax(340px, 1fr));
    gap:16px; align-content:start; align-items:start; padding:18px 16px 40px; }
  .mine-page .tc-body > .tc-sec{ margin:0; }
  .mine-page .tc-empty{ grid-column:1 / -1; }
}

/* =========================================================================
   반응형 Phase 4 — 로그인(auth)·게이트(gate)·대기실(queue). 데스크톱에서
   전체폭으로 늘어지지 않게 중앙 카드폭으로 제한. 모바일 무변경.
   ========================================================================= */
@media (min-width:768px){
  .tc-auth{ max-width:420px; margin-left:auto; margin-right:auto; }   /* 로그인/회원가입/행번인증/명단게이트 */
  .tc-gate{ max-width:460px; margin-left:auto; margin-right:auto; }   /* 초대코드 게이트 */
  .tc-queue{ max-width:460px; margin-left:auto; margin-right:auto; }  /* 가상 대기실 */
  .tc-ring{ width:152px; height:152px; }                              /* 대기 링 살짝 크게 */
  .tc-ring .inner{ width:124px; height:124px; }
  .tc-ring .pv{ font-size:30px; }
}

/* =========================================================================
   공연상세 탭 — 관리자 [공연 상세] 입력 항목과 1:1.
   내용 있는 탭만 서버가 렌더하므로 여기선 탭바 모양과 활성 표시만 담당.
   ========================================================================= */
.tc-tabbar{
  display:flex; gap:4px; padding:0 12px; border-bottom:1px solid var(--c-line);
  overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none;
  position:sticky; top:54px; background:#fff; z-index:9;
}
.tc-tabbar::-webkit-scrollbar{ display:none; }
.tc-tab{
  flex:0 0 auto; appearance:none; border:0; background:transparent; cursor:pointer;
  padding:12px 10px 10px; font-size:13.5px; font-weight:600; color:#8a93a3;
  border-bottom:2px solid transparent; white-space:nowrap;
}
/* 활성 탭은 브랜드색(BNK 레드). 08-21 컬러 전환 때 이 한 곳만 남보라(#4f46e5)로 남아 있었다 */
.tc-tab.on{ color:var(--c-primary); border-bottom-color:var(--c-primary); font-weight:800; }
/* 앵커 이동 방식이라 섹션은 전부 펼쳐져 있다. 모바일은 기본 .tc-sec 구분선을 그대로 쓴다. */
.tc-anchorsec{ scroll-margin-top:104px; }    /* 탭바(sticky) 에 제목이 가리지 않도록 */

/* 장소 탭 주소줄 + 주소복사 */
.tc-addrline{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  margin-top:8px; font-size:12.5px; color:#8a93a3;
}
.tc-addrcopy{
  flex:0 0 auto; appearance:none; cursor:pointer; font-size:12px; color:#4b5563;
  background:#f4f6f8; border:1px solid #e2e6ea; border-radius:6px; padding:4px 9px;
}
.tc-addrcopy:active{ background:#e9edf1; }

@media (min-width:768px){
  .tc-tabbar{ padding:0 18px; }
  .tc-tab{ font-size:14px; padding:14px 12px 12px; }
}

/* =========================================================================
   좌석 표기 통일(T32) — 화면마다 34/20/14px 로 널뛰던 것을 역할에 맞춰 정리.
   표기 문장은 TicketSeatLabel 이 만든다: "1층 A구역 3열 12번"
   ========================================================================= */

/* 발권완료 — 좌석을 QR 위(절취선 위)로 승격 */
.tc-ticket .seathead{
  padding:16px 18px 0; text-align:center; background:#faf8ff;
  font-size:24px; font-weight:800; letter-spacing:-.3px; line-height:1.25;
  color:var(--c-primary); word-break:keep-all;
}
.tc-ticket .seathead + .qr{ padding-top:12px; }
.tc-ticket .info .row2{ margin:8px 0; }

/* 마이페이지 — 좌석 칩(3개 + 외 N) */
.tc-order .seatline{ align-items:flex-start; flex-wrap:wrap; }
.tc-order .seatline .chips{ display:flex; flex-wrap:wrap; gap:5px; min-width:0; flex:1 1 auto; }
.tc-order .seatline .seatchip{
  font-size:14px; font-weight:800; color:var(--c-primary);
  background:#FEECEC; border-radius:8px; padding:3px 9px; word-break:keep-all;
}
.tc-order .seatline .more{ font-size:12.5px; font-weight:700; color:var(--c-sub); align-self:center; }
.tc-order .seatline .g{ flex:0 0 auto; }

/* QR 모달 캡션 — 스태프에게 보여주는 순간이라 가장 크게 */
.tc-qrmodal .qr-cap{ font-size:20px; line-height:1.3; margin-bottom:12px; word-break:keep-all; }

/* 개별 입장권 — 34px 유지하되 긴 문장이 넘치지 않게 */
.tv-seat{ font-size:clamp(24px, 7.5vw, 34px); line-height:1.2; word-break:keep-all; }

@media (min-width:768px){
  .tc-ticket .seathead{ font-size:26px; }
  .tc-order .seatline .seatchip{ font-size:15px; }
}

/* 공연상세 안내 이미지 — 관리자가 올린 포스터·공지 이미지를 글 아래에 순서대로 */
.tc-cimg{ display:block; width:100%; max-width:100%; height:auto; border-radius:10px; margin-top:12px; }
.tc-desc + .tc-cimg{ margin-top:14px; }

/* 캐스팅 인물 - 원형 사진 가로 스크롤 (1인 = 사진 + 역할 + 이름).   [08-26]
   가로 스크롤은 .tc-cats(카테고리 칩)와 같은 방식이라 새 스크립트가 없다.
   ⚠ .tc-sec 의 좌우 여백(18px)을 음수 마진으로 상쇄한 뒤 스크롤 안쪽에서 다시 준다.
      안 그러면 마지막 인물이 화면 끝에 붙어 "더 있다"는 신호가 사라진다. */
.tc-cast{ display:flex; gap:14px; overflow-x:auto; -webkit-overflow-scrolling:touch;
  margin:0 -18px; padding:2px 18px 6px; scroll-snap-type:x proximity; }
.tc-cast::-webkit-scrollbar{ display:none; }
.tc-cast-i{ flex:none; width:84px; text-align:center; scroll-snap-align:start; }
.tc-cast-i .ph{ display:block; width:84px; height:84px; border-radius:50%; object-fit:cover;
  background:#f3f4f7; margin-bottom:8px; }
/* 사진이 없는 인물 - 이름 첫 글자. 빈 원만 두면 "사진 로딩 실패"로 읽힌다 */
.tc-cast-i .ph.no{ display:flex; align-items:center; justify-content:center;
  font-size:30px; font-weight:800; color:#9aa3af; letter-spacing:-.02em; }
.tc-cast-i .rl{ font-size:13px; font-weight:800; color:var(--c-ink); line-height:1.35; word-break:keep-all; }
.tc-cast-i .nm{ font-size:12.5px; color:var(--c-sub); line-height:1.4; margin-top:2px; word-break:keep-all; }
/* 인물 목록과 자유 텍스트(캐스팅 변경 안내 등)가 같이 있으면 사이를 띄운다 */
.tc-cast + .tc-desc{ margin-top:16px; }

/* QR 생성 실패 시 대체 문구 - 빈칸으로 두면 관람객이 원인을 알 수 없다 */
.tc-qr-err{display:inline-block;max-width:220px;padding:14px 12px;font-size:13px;line-height:1.5;color:#b42318;background:#fff4f3;border:1px solid #fecdc9;border-radius:10px;text-align:center;word-break:keep-all;}
/* 입장 QR 노출 전(공연 3시간 전까지) 안내 - [QR 보기] 버튼 자리에 대신 뜬다 */
.tc-qr-locked{display:inline-flex;align-items:center;gap:6px;padding:10px 12px;font-size:12.5px;line-height:1.45;color:#6b7280;background:#f5f6f8;border-radius:10px;word-break:keep-all;}
.tc-qr-locked .bi{font-size:15px;color:#9aa3af;}

/* ── 협찬사 광고 카드(폐쇄형 포털 전용 · 2026-09-14 다운트) - .tc-ecard 뼈대 그대로, 리본만 협찬 톤 ── */
.tc-ribbon.ad span{background:linear-gradient(135deg,#1e3a8a,#0f2461);}                          /* 협찬 - 다운트 블루 */
.tc-ecard.tc-sponsor .poster .cat{background:rgba(15,36,97,.78);}
.tc-ecard.tc-sponsor .ec-m{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;}
.tc-ecard.tc-sponsor .ec-m .bi{vertical-align:-2px;margin-right:4px;}
.tc-ecard.tc-sponsor .poster .ph{position:absolute;inset:0;background:center/cover no-repeat;opacity:0;transition:opacity .9s ease;z-index:1;}
.tc-ecard.tc-sponsor .poster .ph.on{opacity:1;}
.tc-ecard.tc-sponsor .poster .cat{z-index:2;}
.tc-ecard.tc-sponsor .ec-t{display:flex;align-items:center;min-height:19px;}
.tc-ecard.tc-sponsor .ec-logo{height:15px;width:auto;display:block;}
@media (prefers-reduced-motion:reduce){.tc-ecard.tc-sponsor .poster .ph{transition:none;}}
