
    /* ── SVG 아이콘 버튼 ── */
    .ic-btn {
      display: flex; flex-direction: column; align-items: center;
      gap: 4px; padding: 7px 10px; background: white;
      border: 1.5px solid #e5e7eb; border-radius: 11px;
      cursor: pointer; transition: all .15s; user-select: none;
      min-width: 48px;
    }
    .ic-btn svg { width: 18px; height: 18px; stroke: #374151; stroke-width: 1.8; fill: none;
      stroke-linecap: round; stroke-linejoin: round; }
    .ic-btn span { display: none; }
    .ic-btn:hover { background: #f9fafb; border-color: #d1d5db; transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,.07); }
    .ic-btn:active { transform: translateY(0); box-shadow: none; }
    .ic-btn.dark { background: #3B82F6; border-color: #3B82F6; }
    .ic-btn.dark svg { stroke: #fff; }
    .ic-btn.dark span { color: rgba(255,255,255,.85); }
    .ic-btn.dark:hover { background: #3B82F6; border-color: #3B82F6; }
    .ic-btn.active-outline { border-color: #3B82F6; background: #eff6ff; }

    /* ── 자리 기록 모달 ── */
    #seatHistoryModal {
      display: none; position: fixed; inset: 0;
      background: rgba(0,0,0,.35); z-index: 9000;
      align-items: center; justify-content: center;
      backdrop-filter: blur(3px);
    }
    #seatHistoryModal.show { display: flex; }

    /* ── 자리 설정 모달 ── */
    #seatSettingsModal {
      display: none; position: fixed; inset: 0;
      background: rgba(0,0,0,.35); z-index: 9000;
      align-items: center; justify-content: center;
      backdrop-filter: blur(3px);
    }
    #seatSettingsModal.show { display: flex; }
    .settings-modal-card {
      background: white; border-radius: 20px;
      padding: 28px 32px; width: 560px; max-width: 95vw;
      box-shadow: 0 24px 60px rgba(0,0,0,.18);
      animation: popIn .25s cubic-bezier(.175,.885,.32,1.275);
    }
    .settings-modal-title {
      font-size: 15px; font-weight: 700; color: #111;
      margin-bottom: 20px; display: flex; align-items: center;
      justify-content: space-between;
    }
    .settings-modal-close {
      width: 28px; height: 28px; border-radius: 50%;
      border: none; background: #f3f4f6; color: #6b7280;
      font-size: 16px; cursor: pointer; display: flex;
      align-items: center; justify-content: center;
      transition: background .15s;
    }
    .settings-modal-close:hover { background: #e5e7eb; color: #111; }
    /* 컨트롤 패널 */
    .ctrl-tab { background:#e5e7eb; color:#6b7280; transition:all .1s; }
    .ctrl-tab:hover { background:#d1d5db; }
    .ctrl-tab.active { background:#1a1c22; color:#fff; }
    .ctrl-log-info  { color:#374151; }
    .ctrl-log-warn  { color:#d97706; }
    .ctrl-log-error { color:#dc2626; }
    .ctrl-log-cmd   { color:#3b82f6; font-weight:700; }
    .ctrl-log-result{ color:#059669; }
    body.dark #ctrlPanelModal { background:#1a1b22 !important; border-color:#3a3b47 !important; }
    body.dark #ctrlPanelModal > div:first-child { background:#23242e !important; border-color:#3a3b47 !important; }
    body.dark #ctrlLog { color:#d1d5db !important; }
    body.dark #ctrlInput { color:#d1d5db !important; }
    body.dark #ctrlPanelModal > div:last-child { background:#23242e !important; border-color:#3a3b47 !important; }
    body.dark .ctrl-log-info { color:#9ca3af; }
    /* 컨트롤 ··· 메뉴 */
    .ctrl-menu-item { display:flex; align-items:center; gap:8px; padding:7px 10px; border-radius:7px; font-size:12px; color:#374151; cursor:pointer; user-select:none; font-weight:600; white-space:nowrap; }
    .ctrl-menu-item:hover { background:#f3f4f6; }
    .ctrl-menu-item input { accent-color:#3b82f6; cursor:pointer; margin:0; }
    body.dark #ctrlMenu { background:#23242e !important; border-color:#3a3b47 !important; }
    body.dark .ctrl-menu-item { color:#d1d5db; }
    body.dark .ctrl-menu-item:hover { background:#3a3b47; }
    /* ── 자유 배치 책상 편집기 ── */
    .desk-editor { display:flex; flex-direction:column; gap:10px; }
    .desk-tools { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
    .desk-tools { row-gap:8px; }
    .desk-tool-btn { display:flex; align-items:center; gap:5px; padding:6px 12px; background:#fff; border:1.5px solid #e5e7eb; border-radius:9px; font-size:12.5px; font-weight:600; color:#374151; cursor:pointer; transition:all .12s; }
    .desk-tool-btn:hover { background:#f3f4f6; border-color:#d1d5db; }
    .desk-tool-btn.danger { color:#ef4444; border-color:#fecaca; }
    .desk-tool-btn.danger:hover { background:#fef2f2; border-color:#fca5a5; }
    .desk-tool-div { width:1px; align-self:stretch; background:#e5e7eb; margin:3px 4px; flex-shrink:0; }
    .desk-snap-label { display:flex; align-items:center; gap:9px; margin-left:auto; font-size:12.5px; font-weight:600; color:#374151; white-space:nowrap; user-select:none; }
    body.dark .desk-tool-div { background:#3a3b47; }
    body.dark .desk-snap-label { color:#d1d5db; }
    body.dark .desk-tool-btn.danger { color:#f87171; border-color:#7f1d1d; }
    .desk-canvas { position:relative; width:100%; height:520px; background:#f8fafc; background-image:radial-gradient(#d7dde6 1.1px, transparent 1.1px); background-size:22px 22px; border:1px solid #e5e7eb; border-radius:16px; overflow:hidden; touch-action:none; }
    #deskCanvas { display:flex; justify-content:center; align-items:flex-start; }
    #deskViewInner { position:relative; flex:none; margin-top:14px; }
    #deskEditCanvas { height:440px; }   /* 모달이 스크롤 없이 한눈에 들어오게 */
    .desk { position:absolute; width:84px; height:64px; background:#fff; border:2px solid #c8d0da; border-radius:12px; display:flex; align-items:center; justify-content:center; cursor:grab; user-select:none; box-shadow:0 2px 6px rgba(0,0,0,.06); }
    .desk:hover { border-color:#93c5fd; }
    .desk.selected { border-color:#3B82F6; box-shadow:0 0 0 3px rgba(59,130,246,.25); z-index:6; }
    .desk.assigned { background:#eff6ff; border-color:#93c5fd; }
    .desk.dragging { cursor:grabbing; box-shadow:0 8px 20px rgba(0,0,0,.18); z-index:12; }
    .desk.unused { background:#e2e8f0 !important; border-color:#94a3b8 !important; opacity:.55; }
    .desk.unused .desk-name { color:#94a3b8 !important; }
    .desk-ro { cursor:default; }
    .desk-ro:hover { border-color:#c8d0da; }
    .desk-ro.assigned { cursor:pointer; }
    .desk-ro.assigned:hover { border-color:#3B82F6; }
    .desk-ghost { position:absolute; border:2px dashed #3B82F6; border-radius:12px; background:rgba(59,130,246,.10); pointer-events:none; z-index:4; }
    body.dark .desk.unused { background:#1f2028 !important; border-color:#4a4b5a !important; }
    /* ── 조 멤버 칩 ── */
    .gmember { position:relative; display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; min-width:40px; height:28px; font-size:13px; font-weight:700; color:var(--gc-text); padding:0 11px; border-radius:20px; border:1.5px solid var(--gc-border); background:var(--gc-bg); white-space:nowrap; cursor:grab; user-select:none; transition:box-shadow .12s ease, filter .12s ease; }
    .gmember:hover { box-shadow:0 2px 6px rgba(0,0,0,.13); filter:brightness(.97); }
    .gmember:active { cursor:grabbing; }
    .gmember.locked { }
    .gmember-lock { position:absolute; top:-6px; right:-6px; width:16px; height:16px; border-radius:50%; background:#3B82F6; display:flex; align-items:center; justify-content:center; box-shadow:0 1px 3px rgba(0,0,0,.3); pointer-events:none; }
    .gmember-lock svg { width:9px; height:9px; stroke:#fff; }
    .gmember-drag { opacity:.35; }
    .gcard.drop-hover { box-shadow:0 0 0 2px #3B82F6 inset, 0 6px 16px rgba(59,130,246,.18); }
    .gcard-members { display:flex; flex-wrap:wrap; gap:6px; min-height:32px; align-content:flex-start; }
    /* ── 배치 편집 모달 (그리드) ── */
    #layoutEditModal { display:none; position:fixed; inset:0; background:rgba(0,0,0,.35); z-index:9000; align-items:center; justify-content:center; backdrop-filter:blur(3px); }
    #layoutEditModal.show { display:flex; }
    .layout-cell { aspect-ratio:1; min-height:32px; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:600; color:#475569; background:#fff; border:1.5px solid #cbd5e1; border-radius:8px; cursor:pointer; user-select:none; transition:all .1s; }
    .layout-cell:hover { border-color:#3B82F6; }
    .layout-cell.unused { background:#e2e8f0; border-color:#94a3b8; color:#94a3b8; }
    body.dark #layoutGrid { background:#1a1b22 !important; border-color:#3a3b47 !important; }
    body.dark .layout-cell { background:#2a2b36; border-color:#4a4b5a; color:#d1d5db; }
    body.dark .layout-cell.unused { background:#1f2028; color:#6b7280; }
    .desk-label { position:absolute; top:-9px; left:50%; transform:translateX(-50%); background:#64748b; color:#fff; font-size:10px; font-weight:700; padding:1px 7px; border-radius:9px; white-space:nowrap; max-width:90px; overflow:hidden; text-overflow:ellipsis; }
    .desk-name { font-size:14px; font-weight:700; color:#1e40af; text-align:center; padding:0 4px; word-break:break-all; line-height:1.1; }
    .desk.round { width:118px; height:84px; border-radius:18px; background:#eef2ff; border-color:#c7d2fe; }
    .desk-float-toolbar { position:absolute; display:flex; gap:2px; background:#fff; border:1px solid #e5e7eb; border-radius:10px; box-shadow:0 6px 18px rgba(0,0,0,.16); padding:3px; z-index:50; }
    .desk-float-toolbar button { width:30px; height:30px; border:none; background:transparent; border-radius:7px; cursor:pointer; display:flex; align-items:center; justify-content:center; color:#374151; font-size:15px; }
    .desk-float-toolbar button:hover { background:#f3f4f6; }
    .desk-empty-hint { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); color:#9ca3af; font-size:14px; text-align:center; pointer-events:none; }
    body.dark .desk-tool-btn { background:#2a2b36; border-color:#3a3b47; color:#d1d5db; }
    body.dark .desk-canvas { background:#1a1b22; background-image:radial-gradient(#3a3b47 1.1px, transparent 1.1px); border-color:#3a3b47; }
    body.dark .desk { background:#2a2b36; border-color:#4a4b5a; }
    body.dark .desk.assigned { background:#1e3a5f; border-color:#2563eb; }
    body.dark .desk-name { color:#93c5fd; }
    body.dark .desk.round { background:#23253a; border-color:#3b3f6b; }
    body.dark .desk-float-toolbar { background:#23242e; border-color:#3a3b47; }
    body.dark .desk-float-toolbar button { color:#d1d5db; }
    body.dark .desk-float-toolbar button:hover { background:#3a3b47; }
    body.dark .settings-modal-close { background: #3a3b47 !important; color: #d1d5db !important; }
    body.dark .settings-modal-close:hover { background: #4a4b5a !important; color: #fff !important; }
    .settings-modal-row {
      display: flex; align-items: center; gap: 10px;
      padding: 12px 0; border-bottom: 1px solid #f3f4f6;
    }
    .settings-modal-row:last-child { border-bottom: none; padding-bottom: 0; }
    .settings-modal-label {
      font-size: 13px; font-weight: 600; color: #374151; width: 80px; flex-shrink: 0;
    }

    /* ── 룰렛 ── */
    .roulette-pointer {
      position: absolute; top: -14px; left: 50%;
      transform: translateX(-50%);
      width: 0; height: 0;
      border-left: 11px solid transparent;
      border-right: 11px solid transparent;
      border-top: 22px solid #374151;
      filter: drop-shadow(0 2px 3px rgba(0,0,0,.2));
      z-index: 10;
    }
    .roulette-center {
      position: absolute; top: 50%; left: 50%;
      transform: translate(-50%,-50%);
      width: 60px; height: 60px;
      background: white; border-radius: 50%;
      border: 1.5px solid #e5e7eb;
      display: flex; align-items: center; justify-content: center;
      cursor: default; z-index: 10; user-select: none;
    }

    /* ── 자리 ── */
    .seat {
      border: 2px solid #c8d0da; border-radius: 10px;
      background: white; display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      cursor: pointer; transition: all .15s;
      position: relative; padding: 4px; user-select: none;
    }
    .seat:hover { border-color: #94a3b8; background: #f9fafb; }
    .seat.unused { background: #e2e8f0; border-color: #94a3b8; border-style: solid; opacity: 1; }
    .seat.assigned { background: #eff6ff; border-color: #93c5fd; cursor: default; }
    .seat-num { font-size: 9px; color: #94a3b8; position: absolute; top: 3px; left: 5px; }
    .seat-name { font-size: 15px; font-weight: 700; color: #1e40af; text-align: center; word-break: break-all;
      position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 90%; }
    #seatGrid { overflow: hidden; position: relative; }

    /* ── 토스트 ── */
    #toast {
      position: fixed; bottom: 24px; left: 50%;
      transform: translateX(-50%) translateY(60px);
      background: #111; color: white; padding: 10px 22px;
      border-radius: 10px; font-size: 13px; font-weight: 500;
      z-index: 999; pointer-events: none;
      transition: transform .3s cubic-bezier(.175,.885,.32,1.275);
      white-space: nowrap;
    }
    #toast.show { transform: translateX(-50%) translateY(0); }
    #toast.error {
      background:#fff; color:#1f2937; border:1px solid #f1d5d5;
      box-shadow:0 10px 30px rgba(0,0,0,.13);
      font-size:13.5px; font-weight:600; line-height:1.5;
      display:inline-flex; align-items:center; gap:10px;
      padding:13px 18px; border-radius:13px;
      white-space:normal; text-align:left; max-width:min(92vw,440px);
    }
    body.dark #toast.error { background:#23242e; color:#e5e7eb; border-color:#5b2b2b; }

    /* ── 다크모드 ── */
    body.dark { background: #18191f; color: #e5e7eb; }
    body.dark .bg-white { background: #23242e !important; }
    body.dark .bg-gray-50 { background: #18191f !important; }
    body.dark .bg-gray-100 { background: #2a2b36 !important; }
    body.dark .border-gray-100, body.dark .border-gray-200 { border-color: #3a3b47 !important; }
    body.dark .text-gray-700, body.dark .text-gray-600, body.dark .text-gray-800 { color: #d1d5db !important; }
    body.dark .text-gray-500, body.dark .text-gray-400 { color: #9ca3af !important; }
    body.dark .settings-modal-card { background: #23242e; border: 1px solid #3a3b47; }
    .settings-grid-wrap { background: #f9fafb; border: 1px solid #e5e7eb; }
    body.dark .settings-grid-wrap { background: #1a1b22 !important; border-color: #3a3b47 !important; }
    body.dark .notice-display { color: #f3f4f6 !important; }

    /* 조짜기 패널 */
    .grp-panel    { background:#f9fafb; border:1.5px solid #e5e7eb; }
    .grp-label    { color:#6b7280; }
    .grp-join-panel { background:#f0f9ff; border:1.5px solid #bae6fd; }
    .grp-join-label { color:#0369a1; }
    .grp-add-btn  { background:white; border:1.5px dashed #d1d5db; color:#9ca3af; }
    .grp-del-btn  { background:white; }
    .grp-all-btn  { background:white; border:1px solid #d1d5db; color:#374151; }
    body.dark .grp-panel     { background:#23242e !important; border-color:#3a3b47 !important; }
    body.dark .grp-label     { color:#9ca3af !important; }
    body.dark .grp-join-panel{ background:#1e2d3d !important; border-color:#1d4ed8 !important; }
    body.dark .grp-join-label{ color:#60a5fa !important; }
    body.dark .grp-add-btn   { background:#2a2b36 !important; border-color:#4a4b5a !important; color:#9ca3af !important; }
    body.dark .grp-del-btn   { background:#2a2b36 !important; }
    body.dark .grp-all-btn   { background:#2a2b36 !important; border-color:#3a3b47 !important; color:#d1d5db !important; }
    .gc-form-row  { background:#f9fafb; }
    .gc-select    { background:white; color:#374151; }
    .gc-type-btn  { background:white; color:#374151; }
    .gc-dropdown-item:hover { background:#f0f0f0; }
    body.dark .gc-form-row  { background:#1a1b22 !important; border-color:#3a3b47 !important; }
    body.dark .gc-select    { background:#2a2b36 !important; color:#d1d5db !important; border-color:#3a3b47 !important; }
    body.dark .gc-type-btn  { background:#2a2b36 !important; color:#d1d5db !important; border-color:#3a3b47 !important; }
    body.dark .gc-dropdown-item { color:#d1d5db; }
    body.dark .gc-dropdown-item:hover { background:#3a3b47 !important; }
    body.dark #winModal > div { background: #23242e !important; }
    body.dark #winModalName { color: #f3f4f6 !important; }
    body.dark .settings-modal-title { color: #f3f4f6; }
    body.dark #layoutEditHeader { background:#23242e !important; border-bottom-color:#3a3b47 !important; }
    body.dark .settings-modal-row { border-color: #3a3b47; }
    body.dark .settings-modal-label { color: #d1d5db; }
    body.dark .seat { background: #2a2b36 !important; border-color: #4a4b5a !important; }
    body.dark .seat.assigned { background: #1e3a5f !important; border-color: #2563eb !important; }
    body.dark .seat.unused { background: #1f2028 !important; }
    body.dark .seat-name { color: #93c5fd !important; }
    body.dark .ic-btn { background: #2a2b36; border-color: #3a3b47; }
    body.dark .ic-btn svg { stroke: #d1d5db; }
    body.dark .speed-pill { background: #2a2b36; border-color: #3a3b47; color: #9ca3af; }
    body.dark .speed-pill.active { background: #374151; color: #f3f4f6; border-color: #6b7280; }
    body.dark .student-item { color: #d1d5db; border-color: #3a3b47; }
    body.dark .student-item:hover { background: #2a2b36 !important; }
    body.dark input, body.dark textarea { background: #2a2b36 !important; color: #e5e7eb !important; border-color: #3a3b47 !important; }
    body.dark .menu-btn { background: #2a2b36 !important; border-color: #3a3b47 !important; color: #d1d5db !important; }
    body.dark .menu-btn.bg-blue-400 { background: #3B82F6 !important; color: white !important; }

    @keyframes spin {
      from { transform: rotate(0deg); }
      to   { transform: rotate(360deg); }
    }
    @keyframes popIn {
      0%  { transform: scale(.5); opacity: 0; }
      100%{ transform: scale(1);  opacity: 1; }
    }
    .spin-pop { animation: popIn .4s cubic-bezier(.175,.885,.32,1.275); }

    /* ── 번호뽑기 설정 모달 ── */
    #spinSettingsModal {
      display: none; position: fixed; inset: 0;
      background: rgba(0,0,0,.35); z-index: 200;
      align-items: center; justify-content: center;
      backdrop-filter: blur(3px);
    }
    #spinSettingsModal.show { display: flex; }
    .apple-toggle {
      position: relative; width: 44px; height: 26px;
      background: #d1d5db; border-radius: 13px;
      cursor: pointer; transition: background .25s; border: none;
      flex-shrink: 0; padding: 0; outline: none;
    }
    .apple-toggle.on { background: #3B82F6; }
    .apple-toggle::after {
      content: ''; position: absolute;
      top: 3px; left: 3px;
      width: 20px; height: 20px;
      background: white; border-radius: 50%;
      box-shadow: 0 1px 4px rgba(0,0,0,.25);
      transition: transform .25s cubic-bezier(.25,.46,.45,.94);
    }
    .apple-toggle.on::after { transform: translateX(18px); }
    .speed-pill {
      padding: 5px 12px; border-radius: 8px; font-size: 12px; font-weight: 600;
      border: 1.5px solid #e5e7eb; background: white; color: #6b7280; cursor: pointer; transition: all .15s;
    }
    .speed-pill.active { background: #111; color: white; border-color: #111; }
    .history-item {
      display: flex; align-items: center; gap: 10px;
      padding: 9px 6px; border-bottom: 1px solid #f3f4f6;
    }
    .history-item:last-child { border-bottom: none; }
    .history-item:hover { background: #f9fafb; border-radius: 6px; }
    .seat.front-priority { border-color: #86efac !important; }
    @keyframes constraintShake {
      0%,100% { transform: translateX(0); }
      20% { transform: translateX(-8px); }
      40% { transform: translateX(8px); }
      60% { transform: translateX(-5px); }
      80% { transform: translateX(5px); }
    }
    .seat.drag-over { outline: 2px solid #3B82F6; outline-offset: 2px; }
    .seat.dragging { opacity: 0.4; }
    #studentList::-webkit-scrollbar { display: none; }
    #studentList { scrollbar-width: none; -ms-overflow-style: none; }
    @keyframes groupShuffle {
      0%   { transform: translateY(0)    rotate(-4deg) scale(1); }
      50%  { transform: translateY(-12px) rotate(4deg) scale(1.08); }
      100% { transform: translateY(0)    rotate(-4deg) scale(1); }
    }
    @keyframes groupReveal {
      from { opacity: 0; transform: translateY(14px) scale(.94); }
      to   { opacity: 1; transform: translateY(0)    scale(1); }
    }
    .group-shuffle-chip {
      padding: 6px 14px; border-radius: 20px;
      font-size: 13px; font-weight: 600; color: #3730a3;
      background: #e0e7ff; display: inline-block;
      animation: groupShuffle .55s ease-in-out infinite alternate;
    }
    .group-reveal-card { animation: groupReveal .35s cubic-bezier(.175,.885,.32,1.275) both; }
    /* 조짜기 설정 모달 */
    #groupSettingsModal {
      display: none; position: fixed; inset: 0;
      background: rgba(0,0,0,.35); z-index: 9000;
      align-items: center; justify-content: center;
      backdrop-filter: blur(3px);
    }
    #groupSettingsModal.show { display: flex; }

    /* ── 모바일 반응형 ── */
    @media (max-width: 640px) {
      body {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 10px 8px !important;
        gap: 14px !important;
        flex-wrap: nowrap !important;
      }
      /* 메인 카드 전체 너비 */
      #mainCard {
        min-width: 0 !important;
        padding: 10px 10px 20px !important;
      }
      /* 탭 바 가로 스크롤 */
      #mainCard > div:first-child {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        width: 100% !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
      }
      /* 탭 내용 패딩 */
      .tab-content { padding: 6px 0 !important; }
      /* 아이콘 버튼 툴바 가로 스크롤 */
      .tab-content > div:first-child {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        padding-bottom: 6px;
        scrollbar-width: none;
      }
      .tab-content > div:first-child::-webkit-scrollbar { display: none; }
      /* 자리 그리드 가로 스크롤 */
      #seatSection { overflow-x: auto; -webkit-overflow-scrolling: touch; }
      #seatGrid { min-width: max-content; overflow: hidden; border-radius: 16px; }
      /* 학생 리스트 패널 전체 너비 */
      #studentPanel {
        width: 100% !important;
        max-width: 100% !important;
      }
      #studentList { min-height: 80px !important; max-height: 200px !important; }
      /* 룰렛 반응형 */
      #rouletteCanvas { width: 260px !important; height: 260px !important; }
      .relative[style*="340px"] { width: 260px !important; height: 260px !important; }
      /* 모달 전체 너비 */
      .settings-modal-card {
        padding: 18px 14px !important;
        width: 96vw !important;
      }
    }
  


    .tn-section{background:#f9fafb;border:1px solid #eef0f3;border-radius:14px;padding:14px 16px;margin-bottom:14px;}
    body.dark .tn-section{background:#23242e;border-color:#34353f;}
    .tn-h{font-size:13px;font-weight:800;color:#374151;margin-bottom:10px;}
    body.dark .tn-h{color:#d1d5db;}
    .tn-opt,.tn-src-btn{padding:7px 14px;border-radius:9px;border:1.5px solid #e5e7eb;background:#fff;color:#6b7280;font-size:13px;font-weight:600;cursor:pointer;transition:all .12s;}
    .tn-opt.active,.tn-src-btn.active{background:#3B82F6;border-color:#3B82F6;color:#fff;}
    body.dark .tn-opt,body.dark .tn-src-btn{background:#2a2b36;border-color:#3a3b47;color:#9ca3af;}
    body.dark .tn-opt.active,body.dark .tn-src-btn.active{background:#3B82F6;border-color:#3B82F6;color:#fff;}
    .tn-team{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1.5px solid #e5e7eb;border-radius:20px;padding:5px 8px 5px 13px;font-size:13px;font-weight:700;color:#374151;}
    body.dark .tn-team{background:#2a2b36;border-color:#3a3b47;color:#e5e7eb;}
    .tn-team input{width:36px;border:1px solid #e5e7eb;border-radius:6px;text-align:center;font-size:12px;padding:2px;font-weight:700;outline:none;}
    .tn-team .x{cursor:pointer;color:#d1d5db;font-size:15px;line-height:1;padding:0 2px;}
    .tn-team .x:hover{color:#ef4444;}
    .tn-round{display:flex;flex-direction:column;justify-content:space-around;gap:14px;min-width:148px;}
    .tn-match{display:flex;flex-direction:column;gap:4px;background:#fff;border:1.5px solid #e5e7eb;border-radius:10px;padding:6px;box-shadow:0 1px 3px rgba(0,0,0,.05);}
    body.dark .tn-match{background:#2a2b36;border-color:#3a3b47;}
    .tn-slot{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:7px 10px;border-radius:7px;font-size:13px;font-weight:700;color:#374151;background:#f3f4f6;cursor:pointer;transition:all .12s;white-space:nowrap;}
    body.dark .tn-slot{background:#1f2029;color:#d1d5db;}
    .tn-slot:hover:not(.empty):not(.win){background:#dbeafe;}
    .tn-slot.win{background:#3B82F6;color:#fff;}
    .tn-slot.empty{color:#cbd5e1;cursor:default;font-weight:500;}
    .tn-slot.bye{cursor:default;opacity:.75;}
    .tn-slot .sk{font-size:10px;opacity:.55;font-weight:700;}
    .tn-champ{display:flex;flex-direction:column;justify-content:center;}
    .tn-champ-box{background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#fff;padding:16px 24px;border-radius:14px;font-size:17px;font-weight:800;box-shadow:0 6px 18px rgba(245,158,11,.35);text-align:center;line-height:1.5;}
  


  #loginLanding .ll-wrap{ display:flex; width:100%; height:100%; }
  #loginLanding .ll-left{ flex:1 1 100%; display:flex; flex-direction:column; justify-content:center; padding:48px 24px; background:#faf9f6; overflow-y:auto; }
  #loginLanding .ll-inner{ width:100%; max-width:402px; margin:0 auto; }
  #loginLanding .ll-brand{ display:flex; align-items:center; gap:10px; font-size:18px; font-weight:800; color:#1b2031; letter-spacing:-.01em; margin-bottom:42px; }
  #loginLanding .ll-h1{ font-size:39px; line-height:1.1; letter-spacing:-.025em; color:#14171f; margin:0 0 16px; font-weight:800; }
  #loginLanding .ll-h1 em{ font-style:normal; color:#4f46e5; }
  #loginLanding .ll-sub{ color:#5c616e; font-size:15px; line-height:1.62; margin:0 0 30px; }
  #loginLanding .ll-feats{ display:grid; grid-template-columns:repeat(4,1fr); gap:9px; margin-bottom:32px; }
  #loginLanding .ll-feat{ display:flex; flex-direction:column; align-items:center; gap:9px; }
  #loginLanding .ll-feat .ic{ width:46px; height:46px; border-radius:14px; background:#fff; border:1px solid #ecebe4; display:flex; align-items:center; justify-content:center; color:#4f46e5; box-shadow:0 2px 7px rgba(20,20,45,.05); }
  #loginLanding .ll-feat span{ font-size:11.5px; font-weight:700; color:#444a56; letter-spacing:-.01em; }
  #loginLanding .ll-gbtn{ width:100%; display:inline-flex; align-items:center; justify-content:center; gap:11px; padding:14px; border:1px solid #e2e0d7; border-radius:13px; background:#fff; font-size:15px; font-weight:700; color:#1b2031; cursor:pointer; transition:border-color .15s, box-shadow .15s, transform .05s; }
  #loginLanding .ll-gbtn:hover{ border-color:#c7c4b8; box-shadow:0 5px 16px rgba(20,20,45,.08); }
  #loginLanding .ll-gbtn:active{ transform:translateY(1px); }
  #loginLanding .ll-skip{ display:block; width:100%; text-align:center; margin-top:15px; background:none; border:none; color:#868b96; font-size:13px; font-weight:600; cursor:pointer; }
  #loginLanding .ll-skip:hover{ color:#4f46e5; }
  #loginLanding .ll-note{ color:#71757e; font-size:12px; line-height:1.6; margin:24px 0 0; }
  #loginLanding .ll-note b{ color:#4f46e5; font-weight:700; }
  #loginLanding .ll-right{ display:none; }
  #loginLanding .ll-right::before{ content:""; position:absolute; inset:0; background-image:radial-gradient(rgba(255,255,255,.07) 1.3px, transparent 1.3px); background-size:23px 23px; }
  #loginLanding .ll-prev{ position:relative; width:366px; max-width:78%; background:#fff; border-radius:20px; box-shadow:0 34px 80px rgba(0,0,0,.42); transform:rotate(-3deg); padding:18px; }
  #loginLanding .ll-bar{ display:flex; align-items:center; gap:6px; margin-bottom:15px; }
  #loginLanding .ll-bar i{ width:9px; height:9px; border-radius:50%; background:#e4e7ed; }
  #loginLanding .ll-bar b{ margin-left:8px; font-size:12px; font-weight:700; color:#9aa0ad; letter-spacing:-.01em; }
  #loginLanding .ll-grid{ display:grid; grid-template-columns:repeat(6,1fr); gap:8px; }
  #loginLanding .ll-seat{ aspect-ratio:1/.8; border-radius:7px; background:#eef1f6; }
  #loginLanding .ll-seat.on{ background:#dde2fb; }
  #loginLanding .ll-seat.pick{ background:#4f46e5; box-shadow:0 0 0 3px rgba(79,70,229,.2); }
  #loginLanding .ll-tag{ position:absolute; right:-22px; bottom:54px; background:#fb923c; color:#fff; font-size:12.5px; font-weight:800; padding:8px 13px; border-radius:11px; box-shadow:0 12px 26px rgba(251,146,60,.42); transform:rotate(3deg); }
  #loginLanding .ll-chip{ position:absolute; background:#fff; border-radius:13px; box-shadow:0 16px 36px rgba(0,0,0,.24); padding:11px 14px; font-size:12.5px; font-weight:700; color:#2a2f3a; display:flex; align-items:center; gap:9px; }
  #loginLanding .ll-chip .ci{ width:27px; height:27px; border-radius:8px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
  @media (max-width:900px){
    #loginLanding .ll-right{ display:none; }
    #loginLanding .ll-left{ flex:1 1 100%; padding:40px 26px; }
  }
