
      * { box-sizing: border-box; }
      body {
        margin: 0; padding: 12px; font-size: 14px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        font-family: "Cinzel", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; background: #030202;
        background-image: radial-gradient(circle at 50% 50%, #170d06 0%, #020101 100%); color: #f0e6d2;
      }
      .main-wrapper { max-width: 100%; margin: 0 auto; width: 100%; }
      .panels-row { display: flex; gap: 8px; align-items: stretch; margin-bottom: 8px; }
      .panels-row > div { flex: 1; min-width: 0; }
      .panels-row .megaphone-panel, .panels-row .chat-panel, .panels-row .activity-log-panel { height: 100%; box-sizing: border-box; margin-bottom: 0; }
      #tvRankingsContainer { display: none; }
      .app-header { margin-bottom: 8px; }
      h1 { color: #f7a81b; text-shadow: 0 0 8px #ff8000; font-weight: 900; letter-spacing: 2px; margin: 0; font-size: 22px; }
      .app-subtitle { color: #d4af37; opacity: 0.75; font-size: 12px; letter-spacing: 2px; margin-top: 2px; }
      .player-card { position: relative; display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(180deg, #1f1105 0%, #0a0502 100%); border: 1px solid #a335ee; border-left: 4px solid #a335ee; border-radius: 3px; padding: 6px 14px 6px 10px; box-shadow: 0 0 10px rgba(163, 53, 238, 0.4); cursor: pointer; animation: playerCardPulse 1.8s ease-in-out infinite; }
      .player-card:hover { box-shadow: 0 0 22px rgba(163, 53, 238, 0.9); }
      @keyframes playerCardPulse { 0%, 100% { box-shadow: 0 0 10px rgba(163,53,238,0.4); transform: scale(1); } 50% { box-shadow: 0 0 24px rgba(163,53,238,0.9), 0 0 38px rgba(163,53,238,0.4); transform: scale(1.03); } }
      .player-card .player-label { font-size: 10px; opacity: 0.8; letter-spacing: 1.5px; }
      .player-card .player-name { color: #a335ee; font-weight: bold; font-size: 15px; letter-spacing: 1px; text-shadow: 0 0 6px rgba(163, 53, 238, 0.6); }
      .player-card .player-medal { font-size: 16px; }
      /* 작가 이름 클릭 -> 프로필. TV 모드에선 마우스가 없으므로 클릭/밑줄 자체를 끈다. */
      .profile-link { cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-decoration-color: rgba(212, 175, 55, 0.45); text-underline-offset: 2px; }
      .profile-link:hover { color: #ffd100; }
      body.tv-mode .profile-link { pointer-events: none; text-decoration: none; }
      .profile-header-name { font-size: 20px; font-weight: bold; color: #a335ee; letter-spacing: 1px; }
      .profile-ig-link { display: flex; align-items: center; gap: 5px; width: fit-content; margin-top: 5px; color: #ffffff; opacity: 0.92; text-decoration: none; }
      .profile-ig-link:hover { opacity: 1; }
      .profile-ig-link svg { display: block; flex-shrink: 0; }
      .emoji-swatch-btn { font-size: 18px; line-height: 1; padding: 6px 8px; background: #1f1105; border: 1px solid rgba(212,175,55,0.3); border-radius: 4px; cursor: pointer; }
      .emoji-swatch-btn.selected { border-color: #ffd100; background: rgba(255,209,0,0.15); box-shadow: 0 0 6px rgba(255,209,0,0.4); }
      .color-swatch-btn { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(212,175,55,0.3); cursor: pointer; padding: 0; color: #fff; font-size: 12px; }
      .color-swatch-btn.selected { border-color: #ffd100; box-shadow: 0 0 6px rgba(255,209,0,0.6); }
      .profile-intro { font-size: 12px; opacity: 0.85; margin-top: 4px; line-height: 1.5; }
      .profile-section-title { color: #ffd100; font-size: 12px; font-weight: bold; letter-spacing: 1.5px; margin: 14px 0 4px; border-bottom: 1px solid #3d2510; padding-bottom: 3px; }
      .profile-row { display: flex; justify-content: space-between; gap: 8px; padding: 5px 2px; font-size: 13px; }
      .profile-row .profile-row-label { opacity: 0.75; }
      .profile-row .profile-row-value { font-weight: bold; text-align: right; }
      .profile-private-box { border: 1px dashed #a335ee; border-radius: 4px; background: rgba(163, 53, 238, 0.07); padding: 8px 10px; margin-top: 14px; }
      .profile-private-note { font-size: 10px; color: #a335ee; opacity: 0.9; margin-bottom: 4px; letter-spacing: 1px; }
      .profile-visitor-line { display: block; text-align: center; font-size: 11px; letter-spacing: 2px; opacity: 0.85; margin-bottom: 8px; }
      .profile-visitor-line b { color: #ffd100; }
      .profile-visitor-line b.pv-today { color: #00f0ff; }
      .site-visitor-line { display: block; text-align: center; font-size: 11px; letter-spacing: 2px; opacity: 0.85; margin-top: 2px; }
      .site-visitor-line b { color: #ffd100; }
      .site-visitor-line b.pv-today { color: #00f0ff; }
      /* 본인 프로필 하단 패스워드 변경/로그아웃 - 매일 쓰는 버튼이 아니라 조용한 텍스트 링크 (2.0333) */
      .profile-text-link { cursor: pointer; opacity: 0.75; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; }
      .profile-text-link:hover { opacity: 1; color: #ffd100; }
      /* 레어도 색 등급 (RECORDS/MY CAREER 숫자) - 등급이 높아질수록 글로우/펄스가 세짐 (2.0330) */
      .title-prefix { color: #9c9284; font-weight: 600; font-size: 0.86em; letter-spacing: 0.2px; margin-right: 3px; }
      .titles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 8px; margin: 6px 0 10px; }
      .title-badge { background: #1f1105; border: 1px solid #3a2313; border-radius: 8px; padding: 9px 11px; }
      .title-badge.locked { background: #160d07; border-color: #2a1a0f; }
      .title-badge-name { font-size: 13px; font-weight: 800; color: #f0e6d2; word-break: break-word; }
      .title-badge.locked .title-badge-name { color: #5c5346; letter-spacing: 2px; }
      .title-badge-desc { font-size: 10.5px; color: #8f8071; margin-top: 3px; line-height: 1.4; }
      .title-badge.locked .title-badge-desc { color: #6b6152; }
      .ladder { background: #1f1105; border: 1px solid #3a2313; border-radius: 10px; padding: 20px 16px 16px; position: relative; margin: 6px 0 10px; }
      .ladder-track { display: flex; align-items: center; gap: 0; overflow-x: auto; padding: 0 26px 4px; scrollbar-width: none; }
      .ladder-track::-webkit-scrollbar { display: none; }
      .ladder-scroll-arrow { position: absolute; top: 38px; width: 26px; height: 26px; border-radius: 50%; background: #160d07; border: 1px solid #ffd100; color: #ffd100; display: flex; align-items: center; justify-content: center; font-size: 12px; cursor: pointer; z-index: 2; box-shadow: 0 0 8px rgba(255,209,0,0.25); user-select: none; }
      .ladder-scroll-arrow.ladder-left { left: 6px; }
      .ladder-scroll-arrow.ladder-right { right: 6px; }
      .ladder-scroll-arrow.is-hidden { display: none; }
      .ladder-node { display: flex; flex-direction: column; align-items: center; min-width: 80px; flex-shrink: 0; }
      .ladder-dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; border: 2px solid #2a1a0f; background: #160d07; color: #5c5346; position: relative; z-index: 1; }
      .ladder-node.done .ladder-dot { border-color: #f0e6d2; background: radial-gradient(circle at 35% 30%, #ffffff, #f0e6d2 60%); color: #2a2013; box-shadow: 0 0 10px rgba(240,230,210,0.4); }
      .ladder-node.current .ladder-dot { border-color: #ffd100; background: #1f1105; color: #ffd100; box-shadow: 0 0 0 3px rgba(255,209,0,0.18); }
      .ladder-line { height: 2px; flex: 1; min-width: 16px; background: #2a1a0f; margin-top: -18px; }
      .ladder-line.done { background: #ffd100; }
      .ladder-label { margin-top: 9px; font-size: 11px; font-weight: 700; color: #5c5346; text-align: center; white-space: nowrap; }
      .ladder-node.done .ladder-label, .ladder-node.current .ladder-label { color: #f0e6d2; }
      .ladder-flavor { margin-top: 16px; font-size: 11.5px; color: #8f8071; text-align: center; font-style: italic; letter-spacing: 0.2px; }
      .ladder-node.t-green.done .ladder-dot { border-color: #1eff00; background: radial-gradient(circle at 35% 30%, #eaffe0, #1eff00 60%); color: #04310a; box-shadow: 0 0 14px rgba(30,255,0,0.55); }
      .ladder-node.t-green.done .ladder-label { color: #1eff00; text-shadow: 0 0 8px rgba(30,255,0,0.5); }
      .ladder-node.t-blue.done .ladder-dot { border-color: #2f9bff; background: radial-gradient(circle at 35% 30%, #dff0ff, #2f9bff 60%); color: #01203f; box-shadow: 0 0 14px rgba(47,155,255,0.55); }
      .ladder-node.t-blue.done .ladder-label { color: #2f9bff; text-shadow: 0 0 8px rgba(47,155,255,0.5); }
      .ladder-node.t-purple.done .ladder-dot { border-color: #b866ff; background: radial-gradient(circle at 35% 30%, #f2e2ff, #b866ff 60%); color: #2a0a42; box-shadow: 0 0 14px rgba(184,102,255,0.55); }
      .ladder-node.t-purple.done .ladder-label { color: #b866ff; text-shadow: 0 0 8px rgba(184,102,255,0.5); }
      .ladder-node.t-orange.done .ladder-dot { border-color: #ff8a1e; background: radial-gradient(circle at 35% 30%, #ffe9d1, #ff8a1e 60%); color: #3a1a00; box-shadow: 0 0 14px rgba(255,138,30,0.55); }
      .ladder-node.t-orange.done .ladder-label { color: #ff8a1e; text-shadow: 0 0 8px rgba(255,138,30,0.5); }
      .ladder-node.t-gold.done .ladder-dot { border-color: #ffd100; background: radial-gradient(circle at 35% 30%, #fff3c4, #ffd100 60%); color: #2a1a00; box-shadow: 0 0 14px rgba(255,209,0,0.55); }
      .ladder-node.t-gold.done .ladder-label { color: #ffd100; text-shadow: 0 0 8px rgba(255,209,0,0.5); }
      .titles-equip-row { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, rgba(163,53,238,0.14), rgba(255,209,0,0.06)); border: 1px solid rgba(255,209,0,0.35); border-radius: 8px; padding: 8px 12px; margin: 4px 0 10px; }
      .ms-tab-row { display: flex; gap: 6px; padding: 0 16px; margin-top: 8px; }
      .ms-tab-btn { flex: 1; background: #1f1105; border: 1px solid #3a2313; color: #9c8f7a; padding: 6px 4px; font-size: 11px; font-weight: bold; border-radius: 5px; cursor: pointer; }
      .ms-tab-btn.active { background: rgba(163,53,238,0.16); border-color: #a335ee; color: #d9a8ff; }
      .picker-item { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 7px; border: 1px solid #3a2313; background: #1f1105; cursor: pointer; margin-bottom: 6px; }
      .picker-item.selected { border-color: #ffd100; background: rgba(255,209,0,0.08); }
      .tier-green  { color: #1eff00; text-shadow: 0 0 8px rgba(30,255,0,0.7); }
      .tier-blue   { color: #2f9bff; text-shadow: 0 0 6px rgba(47,155,255,0.9), 0 0 16px rgba(47,155,255,0.55); }
      .tier-purple { position: relative; color: #b866ff; text-shadow: 0 0 8px rgba(184,102,255,1), 0 0 22px rgba(184,102,255,0.6); background: radial-gradient(ellipse at center, rgba(184,102,255,0.16) 0%, transparent 72%); padding: 2px 5px; margin: -2px -5px; border-radius: 4px; display: inline-block; animation: tierBreathePurple 3s ease-in-out infinite; }
      .tier-orange { position: relative; color: #ff8a1e; text-shadow: 0 0 8px rgba(255,138,30,1), 0 0 26px rgba(255,138,30,0.7); background: radial-gradient(ellipse at center, rgba(255,138,30,0.2) 0%, transparent 72%); padding: 2px 5px; margin: -2px -5px; border-radius: 4px; display: inline-block; animation: tierPulseOrange 1.8s ease-in-out infinite; }
      .tier-gold   { position: relative; color: #ffd100; text-shadow: 0 0 8px rgba(255,209,0,1), 0 0 32px rgba(255,209,0,0.85); background: radial-gradient(ellipse at center, rgba(255,209,0,0.26) 0%, transparent 72%); padding: 2px 5px; margin: -2px -5px; border-radius: 4px; display: inline-block; animation: tierPulseGold 1.5s ease-in-out infinite; }
      .tier-mote { position: absolute; width: 3px; height: 3px; background: #fff6cf; border-radius: 50%; box-shadow: 0 0 4px rgba(255,209,0,0.9); animation: tierFloatUp 2.6s ease-in infinite; }
      .tier-mote:nth-child(1) { left: 6%; bottom: 0; animation-delay: 0s; }
      .tier-mote:nth-child(2) { left: 45%; bottom: 0; animation-delay: 0.9s; }
      .tier-mote:nth-child(3) { left: 82%; bottom: 0; animation-delay: 1.7s; }
      @keyframes tierBreathePurple { 0%,100% { text-shadow: 0 0 6px rgba(184,102,255,0.8), 0 0 14px rgba(184,102,255,0.4); } 50% { text-shadow: 0 0 10px rgba(184,102,255,1), 0 0 28px rgba(184,102,255,0.8); } }
      @keyframes tierPulseOrange { 0%,100% { text-shadow: 0 0 6px rgba(255,138,30,0.75), 0 0 16px rgba(255,138,30,0.4); transform: scale(1); } 50% { text-shadow: 0 0 10px rgba(255,138,30,1), 0 0 34px rgba(255,138,30,0.9); transform: scale(1.05); } }
      @keyframes tierPulseGold { 0%,100% { text-shadow: 0 0 6px rgba(255,209,0,0.8), 0 0 18px rgba(255,209,0,0.5), 0 0 2px rgba(255,255,255,0.4); transform: scale(1); } 50% { text-shadow: 0 0 12px rgba(255,209,0,1), 0 0 42px rgba(255,209,0,1), 0 0 8px rgba(255,255,255,0.75); transform: scale(1.08); } }
      @keyframes tierFloatUp { 0% { opacity: 0; transform: translateY(4px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-22px); } }
      @media (prefers-reduced-motion: reduce) { .tier-purple, .tier-orange, .tier-gold, .tier-mote, .tw-btn-primary, .player-card { animation: none !important; } }
      .tw-btn-primary { background: linear-gradient(180deg, #ffe14d 0%, #ffd100 100%); color: #1c0f05; border-color: #fff; box-shadow: 0 0 14px rgba(255,209,0,0.5); position: relative; animation: artistsBtnPulse 1.7s ease-in-out infinite; }
      .tw-btn-primary:hover:not(:disabled) { background: #ffd100; color: #000; box-shadow: 0 0 20px #ffd100; }
      .tw-btn-primary .tier-mote { display: block; }
      @keyframes artistsBtnPulse { 0%, 100% { box-shadow: 0 0 14px rgba(255,209,0,0.5); transform: scale(1); } 50% { box-shadow: 0 0 30px rgba(255,209,0,0.95), 0 0 48px rgba(255,209,0,0.45); transform: scale(1.035); } }
      .artist-row { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 6px; border-bottom: 1px solid #241608; font-size: 13px; cursor: pointer; }
      .artist-row:last-child { border-bottom: none; }
      .artist-row.offline .artist-row-name { opacity: 0.55; }
      .artist-color-bar { width: 2px; height: 13px; border-radius: 2px; background: transparent; flex-shrink: 0; }
      .online-dot { width: 7px; height: 7px; border-radius: 50%; background: #1eff00; box-shadow: 0 0 6px #1eff00; flex-shrink: 0; }
      .online-dot.off { background: #4a4030; box-shadow: none; opacity: 0.5; }
      .artist-row-main { display: flex; align-items: baseline; gap: 6px; min-width: 0; flex: 1; }
      .artist-row-name { flex-shrink: 0; }
      .artist-row-intro { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; opacity: 0.7; font-size: 11px; -webkit-mask-image: linear-gradient(to right, #000 70%, transparent 96%); mask-image: linear-gradient(to right, #000 70%, transparent 96%); }
      .tw-btn {
        background: linear-gradient(180deg, #3d2510 0%, #1c0f05 100%); color: #f0e6d2; border: 1px solid #d4af37;
        font-family: "Cinzel", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; font-weight: bold; border-radius: 2px; text-shadow: 1px 1px 3px #000; box-shadow: inset 0 0 5px rgba(212, 175, 55, 0.3);
        padding: 8px 12px; cursor: pointer; font-size: 13px; touch-action: manipulation; transition: all 0.15s ease;
      }
      .tw-btn:hover:not(:disabled) { background: #ffd100; color: #000000; box-shadow: 0 0 14px #ffd100; border-color: #ffffff; }
      /* 모바일은 :hover 가 안 먹혀서 누른 순간 아무 반응이 없어 보였음(사용성 점검 중 발견) -
         눌리는 즉시 살짝 눌린 느낌을 줘서, 응답 오기 전 불안해서 두 번 탭하는 것을 방지한다.
         2.0385(A3): 기존 brightness(0.9) "어두워짐"은 새까만 버튼에서 보이지 않았음 -
         "밝아짐"으로 교체(사장님이 목업 3안 중 1 선택). 행 형태 탭 요소에도 동일 적용. */
      /* 2.0392: 눌림이 즉시 보이게 - 누를 때는 0.04s(즉각), 뗄 때는 기본 0.15s 로 부드럽게 복귀.
         2.0394: 사장님이 강도 목업에서 "콤보 A" 선택 - 축소 0.90 + 아래로 1.5px + 안쪽 그림자
         + 밝아짐 1.3. animation:none 은 반짝이 버튼(ARTISTS/본인 카드)의 상시 애니메이션이
         transform 을 점유해 눌림을 무력화하던 버그 수정. 클릭 가능한데 빠져 있던 요소들
         (본인 카드/더보기 3종/텍스트 링크류)도 전부 포함. */
      .tw-btn:active:not(:disabled), .player-card:active {
        transform: scale(0.90) translateY(1.5px); filter: brightness(1.3);
        box-shadow: inset 0 3px 9px rgba(0,0,0,0.65);
        transition-duration: 0.04s; animation: none;
      }
      .player-card { transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease; }
      .past-day-bar:active, .artist-row:active, .picker-item:active { transform: scale(0.97) translateY(1px); filter: brightness(1.3); transition-duration: 0.04s; }
      .past-day-bar, .artist-row, .picker-item { transition: transform 0.15s ease, filter 0.15s ease; }
      .chat-more-btn, .megaphone-more-btn, .activity-log-more-btn { transition: transform 0.15s ease, filter 0.15s ease; }
      .chat-more-btn:active, .megaphone-more-btn:active, .activity-log-more-btn:active { transform: scale(0.92); filter: brightness(1.5); transition-duration: 0.04s; }
      .profile-link:active, .profile-text-link:active, .pdb-fold-back:active, .tv-logout-link:active { filter: brightness(1.6); }
      @media (prefers-reduced-motion: reduce) { .tw-btn:active:not(:disabled), .player-card:active, .past-day-bar:active, .artist-row:active, .picker-item:active, .chat-more-btn:active, .megaphone-more-btn:active, .activity-log-more-btn:active { transform: none; } }
      .tw-btn:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }
      .tw-btn-confirm { background: linear-gradient(180deg, #1eff00 0%, #074700 100%); color: #fff; border: 1px solid #55ff40; }
      .tw-btn-danger { background: linear-gradient(180deg, #ff0000 0%, #470000 100%); color: #fff; border: 1px solid #ff5555; }
      .tw-btn-transfer { background: linear-gradient(180deg, #00d2ff 0%, #004b7a 100%); color: #fff; border: 1px solid #00f0ff; }
      .day-col { background: rgba(10, 6, 3, 0.96); border: 1px solid #d4af37; box-shadow: inset 0 0 10px rgba(0,0,0,0.8); display: flex; flex-direction: column; position: relative; transition: all 0.2s ease; }
      .day-col.is-today {
        border: 2px solid #00f0ff !important;
        box-shadow: 0 0 15px rgba(0, 240, 255, 0.4), inset 0 0 15px rgba(0, 240, 255, 0.15) !important;
      }
      .day-col.is-today .day-header {
        background: linear-gradient(180deg, #004b6e 0%, #001f30 100%) !important;
        color: #00f0ff !important;
        border-bottom: 1px solid #00f0ff !important;
      }
      .today-badge {
        background: #00f0ff;
        color: #000000;
        font-size: 10px;
        font-weight: 900;
        padding: 2px 6px;
        border-radius: 2px;
        display: inline-block;
        margin-left: 4px;
        letter-spacing: 1px;
      }
      .day-header { background: linear-gradient(180deg, #2b1a09 0%, #120a03 100%); color: #ffd100; border-bottom: 1px solid #d4af37; padding: 8px 4px; text-align: center; font-weight: 800; font-size: 15px; letter-spacing: 1.5px; }
      .day-date { font-size: 13px; font-weight: bold; margin-top: 4px; padding: 2px 0; text-align: center; }
      .slot-card { position: relative; background: rgba(5, 3, 2, 0.85); border: 1px solid #3d2510; padding: 6px 8px; font-size: 12px; margin-top: 4px; display: flex; justify-content: space-between; align-items: center; min-height: 34px; word-break: break-word; }
      .slot-card.my-slot { border-color: #1eff00; background: rgba(4, 30, 0, 0.75); color: #1eff00; }
      .slot-card.available { opacity: 0.5; }
      .slot-card.pending-cancel-slot { border: 1px solid #ff3333 !important; background: rgba(255, 0, 0, 0.2) !important; color: #ff9999 !important; font-weight: bold; }
      .slot-card.pending-transfer-slot { border: 1px solid #00f0ff !important; background: rgba(0, 200, 255, 0.2) !important; color: #80f0ff !important; font-weight: bold; }
      .slot-card.slot-won { animation: slotWinGlow 1.6s ease-in-out 2; }
      @keyframes slotWinGlow { 0%, 100% { box-shadow: none; } 50% { box-shadow: 0 0 14px rgba(30,255,0,0.75), 0 0 26px rgba(30,255,0,0.3); } }
      .slot-card.slot-won-hot { animation: slotWinPop 1.8s ease-out 1; }
      @keyframes slotWinPop { 0% { transform: scale(1); box-shadow: none; } 12% { transform: scale(1.05); box-shadow: 0 0 18px rgba(30,255,0,0.9), 0 0 34px rgba(30,255,0,0.4); } 35% { transform: scale(1); box-shadow: 0 0 12px rgba(30,255,0,0.5); } 100% { transform: scale(1); box-shadow: none; } }
      .win-badge { position: absolute; top: -9px; right: 6px; z-index: 2; font-size: 9px; font-weight: bold; letter-spacing: 1px; padding: 2px 7px; border-radius: 3px; background: #1eff00; color: #041e00; pointer-events: none; animation: slotWinBadge 1.8s ease-out 1 forwards; }
      @keyframes slotWinBadge { 0% { opacity: 0; transform: translateY(6px); } 15% { opacity: 1; transform: translateY(0); } 70% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-8px); } }
      @media (prefers-reduced-motion: reduce) {
        .slot-card.slot-won, .slot-card.slot-won-hot { animation: none; box-shadow: 0 0 12px rgba(30,255,0,0.5); }
        .win-badge { animation: none; opacity: 1; }
      }
      .slot-color-bar { display: inline-block; width: 2px; height: 12px; border-radius: 2px; background: transparent; vertical-align: middle; margin-right: 4px; }
      .slot-emoji { margin-left: 3px; font-size: 11px; }
      .header-title { width: 100%; }
      .app-title-row { text-align: center; margin-bottom: 12px; }
      .app-title-row h1 { display: inline-block; margin: 0; }
      .app-nav-row { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid rgba(212,175,55,0.25); }
      .app-status-row { display: flex; justify-content: center; }
      .app-status-row-inner { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
      .capacity-mini { display: flex; align-items: center; gap: 8px; }
      .capacity-mini-text { font-size: 12px; font-weight: bold; white-space: nowrap; }
      .capacity-mini-text .stat-value { color: #ffd100; }
      .capacity-mini-bar { width: 100px; height: 8px; overflow: hidden; background: #000; border: 1px solid #d4af37; border-radius: 2px; }
      .capacity-mini-fill { height: 100%; transition: width 0.3s ease; background: linear-gradient(90deg, #ff8000, #ffd100); }
      .grid-container { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; width: 100%; }
      .shift-block { padding: 8px 6px; border-bottom: 1px dashed rgba(255,255,255,0.1); font-size: 13px; font-weight: bold; flex: 1; transition: background 0.2s ease; position: relative; overflow: hidden; }
      /* 2.0382: flex:1(기준 0 + 반반 분배)과 overflow:hidden(최소 높이 보호 해제)이 만나
         오전/오후 인원이 다른 날 인원 많은 쪽 마지막 줄이 잘리던 버그(사장님 스크린샷 -
         손 풀린 NYANG 반 잘림). TV 외에는 기준 높이를 내용물 크기로 - 내용은 절대 안 잘리고,
         데스크톱에서 다른 날보다 짧을 때 남는 공간만 반반 분배(기존 미관 유지). TV 는 화면을
         꽉 채우기 위한 압축이 의도라 기존 그대로 둔다. */
      body:not(.tv-mode) .shift-block { flex: 1 1 auto; }
      .shift-block.today-shift {
        background: rgba(0, 80, 120, 0.25) !important;
        border: 1px solid rgba(0, 240, 255, 0.4) !important;
        border-radius: 3px;
        margin: 4px 2px;
      }
      .shift-header-box { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; border-left: 3px solid #ffd100; padding-left: 6px; }
      .shift-block.today-shift .shift-header-box { border-left-color: #00f0ff !important; }
      .shift-title-text { font-size: 15px; font-weight: 900; color: #ffd100; letter-spacing: 0.5px; }
      .shift-time-text { font-size: 12px; color: #00ffcc; font-weight: 800; letter-spacing: 0.5px; }
      .cancel-btn { background: #520202; color: #fff; border: 1px solid #ff3333; border-radius: 2px; padding: 2px 6px; cursor: pointer; font-size: 11px; font-weight: bold; flex-shrink: 0; margin-left: 2px; }
      .transfer-btn { background: #003e54; color: #fff; border: 1px solid #00c8ff; border-radius: 2px; padding: 2px 6px; cursor: pointer; font-size: 11px; font-weight: bold; flex-shrink: 0; margin-left: 2px; }
      .admin-btn { background: #4a3b00; color: #ffd100; border: 1px solid #ffd100; border-radius: 2px; padding: 2px 5px; cursor: pointer; font-size: 10px; font-weight: bold; flex-shrink: 0; margin-left: 2px; touch-action: manipulation; }
      .admin-btn:active { filter: brightness(1.35); } /* 2.0385(A3): 어두워짐 -> 밝아짐 통일 */
      /* 사장님이 폰으로 매일 쓰는 관리 버튼인데 실제 터치 영역이 15~18px 밖에 안 됐음(사용성
         점검 중 발견) - 글자 크기는 그대로 두고 여백만 넉넉하게 키워 오탭을 줄인다. */
      .slot-menu-toggle { cursor: pointer; font-size: 8px; color: #ffd100; padding: 8px 10px; margin-left: 2px; user-select: none; flex-shrink: 0; touch-action: manipulation; }
      .slot-menu-toggle:active { filter: brightness(1.4); } /* 2.0385(A3): 어두워짐 -> 밝아짐 통일 */
      .slot-menu-dropdown { position: absolute; top: 100%; right: 0; z-index: 30; background: #1c0f05; border: 1px solid #ffd100; border-radius: 3px; padding: 4px; display: none; flex-direction: column; gap: 3px; margin-top: 2px; box-shadow: 0 4px 12px rgba(0,0,0,0.6); white-space: nowrap; }
      .slot-menu-dropdown .admin-btn { margin-left: 0; width: 100%; text-align: center; }
      .lock-notice { background: rgba(255, 69, 0, 0.15); border: 1px solid #ff4500; color: #ff9980; font-size: 11px; padding: 5px; border-radius: 2px; margin-top: 4px; text-align: center; line-height: 1.3; font-weight: bold; }
      /* 2.0387(A4): 연결 배지 - 하단 내비 바로 위 고정(사장님: 배지 디자인 + 위치 B).
         서버 재시도(빨강, 점 깜빡임)와 오프라인(주황, "마지막 화면 표시 중") 구분.
         성공 토스트(bottom 24px)와 높이가 달라 겹치지 않음. */
      .network-status { position: fixed; bottom: 74px; left: 50%; transform: translateX(-50%); z-index: 9400; display: none; font-size: 12px; font-weight: bold; color: #ffb8b8; background: rgba(60,10,10,0.94); border: 1px solid rgba(255,94,94,0.6); border-radius: 14px; padding: 6px 14px; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,0.5); }
      .network-status .net-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ff5e5e; margin-right: 6px; animation: netBlink 1.2s ease-in-out infinite; vertical-align: middle; }
      @keyframes netBlink { 50% { opacity: 0.25; } }
      .network-status.off { color: #ffd9ad; border-color: rgba(255,157,61,0.6); background: rgba(60,35,10,0.94); }
      .network-status.off .net-dot { background: #ff9d3d; animation: none; }
      @media (prefers-reduced-motion: reduce) { .network-status .net-dot { animation: none; } }
      .modal-backdrop { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); display: none; justify-content: center; align-items: center; z-index: 999; padding: 12px; }
      .modal-content { background: #120d08; border: 2px solid #d4af37; border-radius: 4px; width: 100%; max-width: 500px; padding: 20px; max-height: 85vh; overflow: hidden; display: flex; flex-direction: column; color: #f0e6d2; }
      .modal-title { flex-shrink: 0; font-size: 16px; font-weight: bold; color: #ffd100; margin-bottom: 12px; border-bottom: 1px solid #d4af37; padding-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
      .modal-scroll-body { overflow-y: auto; overflow-x: hidden; min-height: 0; scrollbar-width: thin; scrollbar-color: rgba(255,209,0,0.35) transparent; }
      /* MY PAGE 는 탭마다 내용 길이가 크게 달라(TITLES 는 길고 MY ROSTER 는 한 줄) 탭 전환 시
         모달 전체가 훅 줄어드는 게 어색하다는 지적 - 최소 높이를 고정해 탭 전환 중엔 안 흔들리게 */
      #myShiftsModal .modal-scroll-body { min-height: 60vh; }
      .modal-scroll-body::-webkit-scrollbar { width: 6px; }
      .modal-scroll-body::-webkit-scrollbar-track { background: transparent; }
      .modal-scroll-body::-webkit-scrollbar-thumb { background: rgba(255,209,0,0.35); border-radius: 10px; }
      .modal-scroll-body::-webkit-scrollbar-thumb:hover { background: rgba(255,209,0,0.55); }
      .stat-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
      .stat-table th, .stat-table td { border: 1px solid #3d2510; padding: 8px; text-align: left; font-size: 12px; }
      .stat-table th { background: #251608; color: #ffd100; font-weight: bold; }
      .tw-input, .tw-textarea, .tw-select { width: 100%; padding: 10px; background: #040201; border: 1px solid #d4af37; color: #ffd100; font-size: 13px; border-radius: 2px; margin-top: 8px; }
      .tw-textarea { height: 80px; resize: none; }
      .transfer-banner { background: linear-gradient(90deg, #002b3d, #004b6e); border: 1px solid #00f0ff; padding: 10px; margin-bottom: 8px; border-radius: 4px; box-shadow: 0 0 10px rgba(0,240,255,0.3); }
      .title-earned-banner { background: linear-gradient(90deg, #2b1d00, #6e4b00); border: 1px solid #ffd100; padding: 10px; margin-bottom: 8px; border-radius: 4px; box-shadow: 0 0 10px rgba(255,209,0,0.3); }
      .nav-btn-row { display: flex; justify-content: center; margin-bottom: 8px; }
      /* 2.0416: 21시 오픈 직전에는 주차 이동을 막는다(사장님 지시). 눌리긴 하되 흐리게 -
         눌렀을 때 이유를 토스트로 알려주는 편이 "왜 안 눌리지"보다 낫다. */
      body.open-locked .btn-prev-week, body.open-locked .top-week-btn { opacity: 0.4; }
      /* 2.0416: 오픈 직전 15초는 **열리는 날짜 하나만** 화면에 남긴다(사장님 지시).
         스크롤 자체를 얼면 그 날 카드가 한 화면보다 길어 EVENING 을 못 잡으므로,
         얼지 않고 "갈 곳을 없애는" 방식을 쓴다. 21:00 에 클래스가 풀리며 원래대로 돌아온다. */
      body.open-locked .day-col:not(.opening-day) { display: none; }
      body.open-locked .opening-day { animation: openFocusPulse 1s ease-in-out infinite alternate; }
      @keyframes openFocusPulse { from { box-shadow: inset 0 0 10px rgba(0,0,0,0.8); } to { box-shadow: inset 0 0 10px rgba(0,0,0,0.8), 0 0 14px rgba(255,209,0,0.55); } }
      .shift-board-label { text-align: center; font-weight: bold; font-size: 15px; color: #ffd100; letter-spacing: 1px; margin-bottom: 2px; }
      /* 2.0390(A9): 마지막 갱신 시각 - 주차 라벨 바로 아래 전용 줄(사장님: 2-B).
         min-height 로 자리를 항상 확보해 갱신 순간 레이아웃이 안 튄다. TV 는 숨김. */
      .sync-time-line { text-align: center; font-size: 10px; color: #a8967a; opacity: 0.85; letter-spacing: 0.5px; margin-bottom: 6px; min-height: 13px; font-variant-numeric: tabular-nums; }
      body.tv-mode .nav-btn-row, body.tv-mode .shift-board-label, body.tv-mode .sync-time-line { display: none !important; }
      .activity-log-panel { background: linear-gradient(90deg, #1a1207, #2b1d0a); border: 1px solid #d4af37; padding: 10px; margin-bottom: 12px; border-radius: 4px; }
      .tv-rankings-panel { background: linear-gradient(90deg, #1a1207, #2b1d0a); border: 1px solid #d4af37; padding: 10px; margin-bottom: 12px; border-radius: 4px; }
      .tv-rankings-title { font-weight: bold; color: #ffd100; margin-bottom: 8px; font-size: 12px; letter-spacing: 1px; border-left: 3px solid #ffd100; padding-left: 6px; }
      .tv-rank-item { font-size: 13px; padding: 5px 0; border-top: 1px solid rgba(212,175,55,0.2); display: flex; justify-content: space-between; gap: 8px; }
      .tv-rank-item:first-child { border-top: none; }
      .tv-rank-count { opacity: 0.7; font-size: 11px; white-space: nowrap; }
      .activity-log-title { font-weight: bold; color: #ffd100; margin-bottom: 8px; font-size: 12px; letter-spacing: 1px; border-left: 3px solid #ffd100; padding-left: 6px; }
      .activity-log-item { font-size: 12px; padding: 5px 0; border-top: 1px solid rgba(212,175,55,0.2); display: flex; justify-content: space-between; gap: 8px; }
      .activity-log-text { white-space: pre-line; }
      .self-highlight { color: #ffd100 !important; font-weight: 800; }
      .activity-log-item:first-child { border-top: none; }
      .activity-log-time { opacity: 0.75; font-size: 10px; white-space: nowrap; flex-shrink: 0; }
      .activity-log-more-btn { background: none; border: none; color: #00f0ff; font-size: 11px; cursor: pointer; padding: 6px 0 0 0; text-decoration: underline; }
      .chat-panel { background: linear-gradient(90deg, #1a1207, #2b1d0a); border: 1px solid #d4af37; padding: 10px; margin-bottom: 8px; border-radius: 4px; }
      .chat-title { font-weight: bold; color: #ffd100; margin-bottom: 8px; font-size: 12px; letter-spacing: 1px; border-left: 3px solid #ffd100; padding-left: 6px; }
      .chat-item { font-size: 12px; padding: 4px 0; border-top: 1px solid rgba(212,175,55,0.15); }
      .chat-item:first-child { border-top: none; }
      .chat-time { opacity: 0.75; }
      .chat-mention { color: #00f0ff; font-weight: bold; }
      .at-sign { font-family: Arial, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; }
      .megaphone-text .at-sign { color: #ffd100; -webkit-text-fill-color: #ffd100; }
      .chat-more-btn { background: none; border: none; color: #00f0ff; font-size: 11px; cursor: pointer; padding: 6px 0 0 0; text-decoration: underline; }
      .chat-quota-line { font-size: 11px; opacity: 0.8; margin-top: 8px; }
      .chat-quota-line b { color: #ffd100; }
      .chat-input-row { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
      .chat-input-row textarea { width: 100%; box-sizing: border-box; background: #040201; border: 1px solid #d4af37; color: #ffd100; padding: 6px 8px; border-radius: 2px; font-size: 12px; font-family: inherit; resize: none; }
      .chat-input-row textarea:disabled { opacity: 0.5; }
      .chat-input-footer { display: flex; justify-content: space-between; align-items: center; }
      .chat-char-count { font-size: 10px; opacity: 0.75; white-space: nowrap; }
      .megaphone-panel { background: linear-gradient(90deg, #1a1207, #2b1d0a); border: 1px solid #d4af37; padding: 10px; margin-bottom: 12px; border-radius: 4px; }
      .megaphone-title { font-weight: bold; color: #ffd100; margin-bottom: 8px; font-size: 12px; letter-spacing: 1px; border-left: 3px solid #ffd100; padding-left: 6px; }
      .megaphone-item { font-size: 12px; padding: 5px 0; border-top: 1px solid rgba(212,175,55,0.2); display: flex; justify-content: space-between; gap: 8px; }
      .megaphone-item:first-child { border-top: none; }
      .megaphone-item.admin-slot { position: relative; overflow: hidden; border: 1px solid #ff6a00; border-radius: 3px; padding: 5px 6px; margin-bottom: 4px; background: rgba(255,106,0,0.08); animation: megaphonePulseOrange 3s ease-in-out infinite; animation-delay: var(--fx-delay, 0s); }
      .megaphone-item.active-slot { position: relative; overflow: hidden; border: 1px solid #ffd100; border-radius: 3px; padding: 5px 6px; margin-bottom: 4px; background: rgba(255,209,0,0.06); animation: megaphonePulseGold 3s ease-in-out infinite; animation-delay: var(--fx-delay, 0s); }
      .megaphone-item.champ-slot { position: relative; overflow: hidden; border: 1px solid #ffd100; border-radius: 3px; padding: 5px 6px; margin-bottom: 4px; background: rgba(255,209,0,0.13); animation: megaphonePulseGold 2.4s ease-in-out infinite; animation-delay: var(--fx-delay, 0s); }
      .megaphone-item.champ-slot .megaphone-text { color: #ffd100; font-weight: bold; }
      .megaphone-item.admin-slot::before, .megaphone-item.active-slot::before {
        content: ""; position: absolute; top: 0; left: -20%; width: 14%; height: 100%;
        background:
          radial-gradient(circle at 30% 25%, rgba(255,255,255,0.22) 0%, transparent 18%),
          radial-gradient(circle at 65% 65%, rgba(255,255,255,0.18) 0%, transparent 14%),
          radial-gradient(circle at 45% 45%, rgba(255,255,255,0.14) 0%, transparent 22%),
          linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
        animation: megaphoneShine 7.5s ease-in-out infinite; animation-delay: var(--fx-delay, 0s); pointer-events: none;
      }
      .megaphone-item.admin-slot .megaphone-text, .megaphone-item.active-slot .megaphone-text {
        background: linear-gradient(90deg, #fff5cc, #ffd100, #fff5cc);
        background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
        animation: megaphoneTextShimmer 3.5s ease-in-out infinite; animation-delay: var(--fx-delay, 0s);
      }
      /* 셰이머(background-clip:text)는 부모 span 안 모든 글자에 적용되는데, 이모지는 고유 색을
         가진 글리프라 같이 덧씌워지면 누렇게 뜬다 - wrapEmojis() 가 감싸는 .msg-emoji(및 이미
         .slot-emoji 로 한 번 더 감싸져 있는 장착 이모지)만 배경/색을 리셋해 원래 이모지 색이 살아남. */
      .megaphone-text .msg-emoji, .megaphone-text .slot-emoji {
        background: none; -webkit-background-clip: initial; background-clip: initial;
        -webkit-text-fill-color: initial; color: initial; animation: none;
      }
      @keyframes megaphonePulseOrange { 0%, 100% { box-shadow: 0 0 4px rgba(255,106,0,0.25); } 50% { box-shadow: 0 0 12px rgba(255,106,0,0.6); } }
      @keyframes megaphonePulseGold { 0%, 100% { box-shadow: 0 0 4px rgba(255,209,0,0.2); } 50% { box-shadow: 0 0 12px rgba(255,209,0,0.55); } }
      @keyframes megaphoneShine { 0% { left: -20%; } 30% { left: 106%; } 100% { left: 106%; } }
      @keyframes megaphoneTextShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
      .megaphone-item.megaphone-empty-slot { opacity: 0.4; font-style: italic; }
      .megaphone-countdown { color: #ffd100; font-weight: bold; font-size: 11px; white-space: nowrap; flex-shrink: 0; }
      /* 카운트다운이 있는 상단 슬롯은 세로 배치 - 메시지가 전체 폭을 쓰고 남음 시간은 아래 줄 오른쪽
         (폭 좁은 화면에서 첫 줄이 카운트다운에 밀려 꺾이던 가독성 문제 해결, 아카이브 타임스탬프와 동일한 위치 언어) */
      .megaphone-item.admin-slot, .megaphone-item.active-slot { flex-direction: column; gap: 2px; }
      .megaphone-item.admin-slot .megaphone-countdown, .megaphone-item.active-slot .megaphone-countdown { align-self: flex-end; }
      .megaphone-archive-time { opacity: 0.75; font-size: 10px; white-space: nowrap; flex-shrink: 0; }
      .megaphone-more-btn { background: none; border: none; color: #00f0ff; font-size: 11px; cursor: pointer; padding: 6px 0 0 0; text-decoration: underline; }
      .megaphone-quota-line { font-size: 11px; opacity: 0.8; margin-top: 8px; }
      .megaphone-quota-line b { color: #ffd100; }
      .megaphone-input-row { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
      .megaphone-input-row textarea { width: 100%; box-sizing: border-box; background: #040201; border: 1px solid #d4af37; color: #ffd100; padding: 6px 8px; border-radius: 2px; font-size: 12px; font-family: inherit; resize: none; }
      .megaphone-input-row textarea:disabled { opacity: 0.5; }
      .megaphone-input-footer { display: flex; justify-content: space-between; align-items: center; }
      .megaphone-char-count { font-size: 10px; opacity: 0.75; white-space: nowrap; }
      .podium-container { display: flex; justify-content: center; align-items: flex-end; gap: 8px; margin: 16px 0 20px 0; min-height: 145px; }
      .podium-step { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; border-radius: 4px 4px 0 0; padding: 4px 2px 6px 2px; text-align: center; border: 1px solid #d4af37; border-bottom: none; position: relative; }
      .podium-1st { height: 125px; background: linear-gradient(180deg, #594306 0%, #1c1402 100%); border-color: #ffd100; box-shadow: 0 0 12px rgba(255, 209, 0, 0.4); }
      .podium-2nd { height: 105px; background: linear-gradient(180deg, #3d4045 0%, #111315 100%); border-color: #c0c0c0; box-shadow: 0 0 8px rgba(192, 192, 192, 0.3); }
      .podium-3rd { height: 90px; background: linear-gradient(180deg, #422817 0%, #140b05 100%); border-color: #cd7f32; box-shadow: 0 0 8px rgba(205, 127, 50, 0.3); }
      .podium-name { font-weight: 900; font-size: 12px; text-shadow: 1px 1px 2px #000; width: 100%; padding: 0 2px; }
      /* 색상바+메달+이름+칭호+이모지 조합은 잘라서 숨기지 않고(사장님 지시: "무조건 다 보이는거야"),
         칸보다 길면 좌우로 흐르게(marquee) 한다 - applyMarqueeIfOverflow()/applyArtistRowMarquee() 가
         렌더 직후 실측(scrollWidth vs clientWidth)해서 실제로 넘칠 때만 켠다(안 넘치면 그대로 정지). */
      .marquee-clip { display: block; overflow: hidden; white-space: nowrap; min-width: 0; }
      .marquee-track { display: inline-block; white-space: nowrap; }
      .marquee-track.scrolling { animation: marqueeScroll linear infinite; }
      .marquee-seg { display: inline-block; padding-right: 28px; }
      @keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
      @media (prefers-reduced-motion: reduce) { .marquee-track.scrolling { animation: none !important; } }
      .podium-count { font-size: 10px; color: #ffd100; margin-top: 2px; font-weight: bold; white-space: nowrap; }
      .podium-rank { position: absolute; top: 4px; left: 6px; font-size: 10px; font-weight: bold; opacity: 0.75; }
      .weekly-count-badge { font-size: 10px; opacity: 0.8; font-weight: normal; margin-left: 2px; }
      
      /* 2.0339 쉬프트 오픈 알람: 박스 자체 버스트(좌표 계산 없음) + 화면 정중앙 배너 */
      .shift-block.just-unlocked { animation: shiftUnlockGlow 1.4s ease-in-out 3; }
      @keyframes shiftUnlockGlow {
        0%, 100% { box-shadow: inset 0 0 0 rgba(255,128,0,0); }
        50% { box-shadow: inset 0 0 18px rgba(255,128,0,0.55); }
      }
      .unlock-fx { position: absolute; inset: -6px; pointer-events: none; z-index: 6; overflow: visible; }
      .unlock-fx .fx-flash {
        position: absolute; inset: 0; border-radius: 3px;
        background: radial-gradient(circle at 50% 42%, rgba(255,224,160,0.95) 0%, rgba(255,150,30,0.55) 40%, transparent 75%);
        opacity: 0; animation: fxFlash 0.65s ease-out forwards;
      }
      .unlock-fx .fx-ring {
        position: absolute; left: 50%; top: 42%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
        border-radius: 50%; border: 2px solid rgba(255,190,80,0.95);
        transform: scale(0); opacity: 1; animation: fxRing 0.75s cubic-bezier(.15,.75,.3,1) forwards;
      }
      .unlock-fx .fx-spark {
        position: absolute; left: 50%; top: 42%; width: 3px; height: 3px; border-radius: 50%;
        background: #ffe4b0; box-shadow: 0 0 5px #ffb347; opacity: 0; animation: fxSpark 0.75s ease-out forwards;
      }
      @keyframes fxFlash { 0% { opacity: 0; } 22% { opacity: 1; } 100% { opacity: 0; } }
      @keyframes fxRing { 0% { transform: scale(0); opacity: 1; border-width: 3px; } 100% { transform: scale(11); opacity: 0; border-width: 1px; } }
      @keyframes fxSpark {
        0% { opacity: 1; transform: translate(-50%,-50%) translate(0,0); }
        100% { opacity: 0; transform: translate(-50%,-50%) translate(var(--sx),var(--sy)); }
      }
      .shift-open-scrim {
        position: fixed; inset: 0; z-index: 90; pointer-events: none;
        background: rgba(2,1,0,0); transition: background 0.4s ease;
      }
      .shift-open-scrim.active { background: rgba(2,1,0,0.55); }
      .shift-open-banner {
        position: fixed; top: 50%; left: 50%;
        transform: translate(-50%,-50%) scale(0.7);
        z-index: 100; pointer-events: none;
        transition: transform 0.5s cubic-bezier(.2,1.4,.4,1), opacity 0.4s ease;
        opacity: 0; width: min(420px, 88vw);
      }
      .shift-open-banner.active { transform: translate(-50%,-50%) scale(1); opacity: 1; transition-delay: 0.15s; }
      .shift-open-banner.leaving { transform: translate(-50%,-50%) scale(0.85); opacity: 0; transition: transform 0.45s cubic-bezier(.4,0,.7,.3), opacity 0.4s ease; }
      .shift-open-banner .banner {
        position: relative; display: flex; align-items: center; gap: 14px;
        padding: 16px 22px 16px 14px;
        background: linear-gradient(180deg, #1c1206 0%, #0c0602 100%);
        border: 1px solid #d4af37; border-radius: 4px;
        box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 14px 40px -12px rgba(0,0,0,0.8), 0 0 26px rgba(255,128,0,0.35);
        overflow: hidden;
      }
      .shift-open-banner .banner::before {
        content: ""; position: absolute; inset: 2px; border: 1px solid rgba(255,209,0,0.25); border-radius: 3px; pointer-events: none;
      }
      .shift-open-banner .banner-shine {
        position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
        background: linear-gradient(75deg, transparent 0%, rgba(255,255,255,0) 30%, rgba(255,240,200,0.55) 50%, rgba(255,255,255,0) 70%, transparent 100%);
        transform: skewX(-18deg);
      }
      .shift-open-banner.active .banner-shine { animation: shineSweep 1.3s ease-in-out 0.45s 1; }
      @keyframes shineSweep { 0% { left: -60%; } 100% { left: 130%; } }
      .shift-open-banner .banner-badge {
        position: relative; flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%;
        background: radial-gradient(circle at 50% 40%, #2a1a06 0%, #0c0602 75%);
        border: 2px solid #d4af37; display: flex; align-items: center; justify-content: center;
        box-shadow: 0 0 14px rgba(255,128,0,0.55), inset 0 0 8px rgba(0,0,0,0.7);
      }
      .shift-open-banner .banner-badge::before {
        content: ""; position: absolute; inset: -9px; border-radius: 50%;
        background: conic-gradient(from 0deg, transparent 0deg, rgba(255,170,40,0.55) 20deg, transparent 60deg, transparent 180deg, rgba(255,170,40,0.4) 205deg, transparent 260deg);
        opacity: 0;
      }
      .shift-open-banner.active .banner-badge::before { opacity: 1; animation: bannerBadgeSpin 2.4s linear infinite; }
      @keyframes bannerBadgeSpin { 100% { transform: rotate(360deg); } }
      .shift-open-banner .banner-badge-star { color: #ffd100; font-size: 22px; line-height: 1; text-shadow: 0 0 10px rgba(255,209,0,0.9); }
      .shift-open-banner .banner-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: #e0a750; }
      .shift-open-banner .banner-title {
        font-size: 22px; font-weight: 900; letter-spacing: 0.01em; margin-top: 3px;
        color: #ffd100; text-shadow: 0 0 12px rgba(255,170,40,0.6); white-space: nowrap;
      }
      
      /* 2.0340: 오픈 5초 전 카운트다운 - 매 초 숫자가 다른 방향에서 슬램하며 등장 */
      .shift-open-countdown { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 100; pointer-events: none; }
      .cd-slam {
        display: inline-block;
        font-family: "Impact", "Arial Narrow Bold", sans-serif; font-size: 110px; font-weight: 900;
        color: #ffd100; -webkit-text-stroke: 2px rgba(255,255,255,0.5);
        text-shadow: 0 0 30px rgba(255,209,0,0.9); opacity: 0;
      }
      .cd-slam.go { animation-duration: 0.6s; animation-timing-function: cubic-bezier(.2,.9,.3,1.3); animation-fill-mode: forwards; }
      .cd-slam.dir-left { animation-name: slamLeft; }
      .cd-slam.dir-right { animation-name: slamRight; }
      .cd-slam.dir-top { animation-name: slamTop; }
      .cd-slam.dir-bottom { animation-name: slamBottom; }
      .cd-slam.dir-zoom { animation-name: slamZoom; }
      @keyframes slamLeft { 0% { transform: translateX(-220px) rotate(-10deg); opacity: 0; } 70% { transform: translateX(10px) rotate(3deg); opacity: 1; } 100% { transform: translateX(0) rotate(0); opacity: 1; } }
      @keyframes slamRight { 0% { transform: translateX(220px) rotate(10deg); opacity: 0; } 70% { transform: translateX(-10px) rotate(-3deg); opacity: 1; } 100% { transform: translateX(0) rotate(0); opacity: 1; } }
      @keyframes slamTop { 0% { transform: translateY(-180px) scale(0.7); opacity: 0; } 70% { transform: translateY(8px) scale(1.05); opacity: 1; } 100% { transform: translateY(0) scale(1); opacity: 1; } }
      @keyframes slamBottom { 0% { transform: translateY(180px) scale(0.7); opacity: 0; } 70% { transform: translateY(-8px) scale(1.05); opacity: 1; } 100% { transform: translateY(0) scale(1); opacity: 1; } }
      @keyframes slamZoom { 0% { transform: scale(2.6); opacity: 0; filter: blur(6px); } 100% { transform: scale(1); opacity: 1; filter: blur(0); } }
      @media (prefers-reduced-motion: reduce) {
        .unlock-fx *, .shift-open-banner, .shift-open-scrim, .shift-block.just-unlocked, .cd-slam { transition-duration: 0.01s !important; animation: none !important; }
      }
      
      .update-dot {
        position: absolute; top: -4px; right: -4px; width: 10px; height: 10px;
        border-radius: 50%; background: #ff3333; box-shadow: 0 0 6px #ff3333;
      }
      
      .mobile-bottom-nav { display: none !important; }
      .desktop-bottom-nav { display: flex !important; }
      .top-today-btn { display: none !important; }
      
      body.tv-mode { padding: 6px; overflow: hidden; background: #020101; }
      body.tv-mode #userInfo { display: none !important; }
      body.tv-mode #transferBannerContainer { display: none !important; }
      body.tv-mode .main-wrapper {
        display: grid; height: calc(100vh - 12px); gap: 8px; padding: 4px;
        grid-template-columns: 0.6fr 1.1fr 1.25fr 1.1fr 0.6fr;
        grid-template-rows: auto 1fr;
        grid-template-areas: "tvrank tvmega tvtitle tvchat tvlog" "tvgrid tvgrid tvgrid tvgrid tvgrid";
      }
      body.tv-mode .panels-row { display: contents; }
      body.tv-mode .tv-header-bar { grid-area: tvtitle; margin-bottom: 0; display: flex; flex-direction: column; justify-content: center; }
      body.tv-mode .tv-header-bar h1 { font-size: 28px; white-space: nowrap; }
      body.tv-mode .app-subtitle { font-size: 13px; }
      body.tv-mode .app-title-row { margin-bottom: 12px; }
      body.tv-mode .app-nav-row { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
      .tv-clock { display: none; }
      body.tv-mode .tv-clock { display: block; font-size: 38px; font-weight: 900; color: #ffd100; text-shadow: 0 0 12px rgba(255,209,0,0.45); letter-spacing: 3px; margin-top: 10px; font-variant-numeric: tabular-nums; }
      body.tv-mode .tv-clock-date { font-size: 14px; font-weight: bold; color: #f0e6d2; opacity: 0.8; letter-spacing: 2px; margin-top: 2px; }
      .tv-logout-link { display: none; }
      body.tv-mode .tv-logout-link { display: block; position: fixed; bottom: 6px; right: 8px; font-size: 9px; letter-spacing: 1px; color: #f0e6d2; opacity: 0.25; cursor: pointer; z-index: 50; }
      body.tv-mode .tv-logout-link:hover { opacity: 0.85; }
      #tvFullscreenPrompt { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(2,1,1,0.94); color: #ffd100; font-size: 22px; font-weight: bold; letter-spacing: 2px; align-items: center; justify-content: center; text-align: center; cursor: pointer; padding: 20px; text-shadow: 0 0 12px rgba(255,209,0,0.45); }
      #tvFullscreenPrompt .tv-fs-sub { display: block; margin-top: 12px; font-size: 14px; font-weight: normal; color: #f0e6d2; opacity: 0.75; letter-spacing: 1px; text-shadow: none; }
      /* 예약/취소/양도 성공 시 명시적으로 "됐다"고 알려주는 토스트(사용성 점검 중 발견 -
         기존엔 실패만 alert 뜨고 성공은 모달만 닫혀서 처음 쓰는 사람은 됐는지 불안해했음). */
      .success-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: linear-gradient(180deg, #1eff00 0%, #074700 100%); color: #fff; border: 1px solid #55ff40; border-radius: 4px; padding: 10px 18px; font-size: 13px; font-weight: bold; text-shadow: 1px 1px 2px #000; box-shadow: 0 4px 16px rgba(0,0,0,0.5); z-index: 10000; opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; max-width: 88vw; text-align: center; }
      .success-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
      /* 2.0384(A2): 오류 토스트 - 성공 토스트의 빨간 버전 (같은 엘리먼트에 .error 클래스 토글) */
      .success-toast.error { background: linear-gradient(180deg, #ff5e5e 0%, #5c0f0f 100%); border-color: #ff8a8a; }
      /* 2.0368: 캐시 즉시 렌더 - 신선한 데이터가 오기 전까지 그리드 조작 잠금 + 갱신 중 표시.
         2.0369: 상단 작은 박스 -> 화면 정중앙 "데이터 최신화 중..." + 점 애니메이션으로 교체
         (사장님이 목업 5종 중 "글자 주변만 어둡게" 선택). 캐시라는 내부 사정은 문구에서 제거,
         글자 뒤에만 경계 없는 라디얼 딤을 깔아 가독성 확보. */
      .stale-dim { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(340px, 90vw); height: 170px; z-index: 9490; pointer-events: none; background: radial-gradient(ellipse at center, rgba(2,1,0,0.85) 0%, rgba(2,1,0,0.55) 40%, rgba(2,1,0,0) 72%); }
      .stale-notice { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 9500; pointer-events: none; font-size: 16px; font-weight: bold; color: #ffd100; text-shadow: 0 0 12px rgba(255,209,0,0.55), 0 2px 8px rgba(0,0,0,0.9); white-space: nowrap; }
      body.stale-data .stale-dim, body.stale-data .stale-notice { display: block; }
      /* 2.0374: 소프트 갱신 - 표시는 동일하게, 그리드 잠금 없음 (탭이 그대로 통과됨) */
      body.refreshing-soft .stale-dim, body.refreshing-soft .stale-notice { display: block; }
      .stale-dots span { display: inline-block; animation: staleDotPulse 1.2s ease-in-out infinite; }
      .stale-dots span:nth-child(2) { animation-delay: 0.2s; }
      .stale-dots span:nth-child(3) { animation-delay: 0.4s; }
      @keyframes staleDotPulse { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
      @media (prefers-reduced-motion: reduce) { .stale-dots span { animation: none; } }
      body.stale-data #shiftsContainer { pointer-events: none; opacity: 0.9; }
      /* 2.0370: 모바일 지난 날짜 접기 - 요약 정보 바 */
      .past-day-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid rgba(212,175,55,0.25); border-left: 3px solid rgba(212,175,55,0.5); border-radius: 4px; background: #100a04; padding: 9px 10px; cursor: pointer; user-select: none; font-size: 12px; color: #a8967a; }
      .past-day-bar .pdb-date { font-weight: bold; color: #8f8066; white-space: nowrap; }
      .past-day-bar .pdb-date-sub { opacity: 0.7; font-weight: normal; font-size: 10px; }
      .past-day-bar .pdb-info { flex: 1; text-align: right; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      .past-day-bar .pdb-info b { color: #ffd100; font-weight: bold; }
      .past-day-bar .pdb-chev { opacity: 0.7; font-size: 9px; flex-shrink: 0; }
      /* 2.0371: 모달 안 로딩 문구 - 전역 갱신 표시와 같은 문구/점 애니메이션으로 통일 */
      .loading-inline { font-size: 13px; font-weight: bold; color: #ffd100; opacity: 0.9; margin: 8px 0; }
      /* 2.0388(A6): 빈 화면 다음 행동 힌트 - 시안색 한 줄 (사장님: 1+2 혼합) */
      .empty-hint { display: block; font-size: 11px; color: #00f0ff; margin-top: 4px; opacity: 0.9; }
      /* 2.0395(B3): 낙관적 예약 슬롯 - 반투명 금색 이탤릭 "확인 중" */
      .slot-card.slot-pending-mine { opacity: 0.65; color: #ffd100; font-style: italic; border-color: rgba(255,209,0,0.55); animation: pendingMinePulse 1.2s ease-in-out infinite; }
      @keyframes pendingMinePulse { 50% { opacity: 0.9; } }
      @media (prefers-reduced-motion: reduce) { .slot-card.slot-pending-mine { animation: none; } }
      /* 2.0393(B2): 챗 @멘션 자동완성 칩 - 입력창 아래, 비어있으면 자리 차지 안 함.
         chat-input-row 안에 있어 TV 모드에선 기존 규칙으로 자동 숨김. */
      .chat-mention-chips { display: flex; flex-wrap: wrap; gap: 5px; }
      .chat-mention-chips:empty { display: none; }
      .mention-chip { font-size: 11px; font-weight: bold; color: #00f0ff; border: 1px solid rgba(0,240,255,0.5); background: rgba(0,240,255,0.08); border-radius: 12px; padding: 4px 11px; cursor: pointer; user-select: none; transition: transform 0.15s ease, filter 0.15s ease; }
      .mention-chip:active { transform: scale(0.94); filter: brightness(1.4); transition-duration: 0.04s; }
      /* 2.0398(B6): 도움말 - 아코디언 + 신규 유도 점 */
      .help-new-dot { position: absolute; top: -4px; right: -4px; width: 9px; height: 9px; border-radius: 50%; background: #ffd100; box-shadow: 0 0 6px #ffd100; animation: helpDotBlink 1.4s ease-in-out infinite; }
      @keyframes helpDotBlink { 50% { opacity: 0.3; } }
      @media (prefers-reduced-motion: reduce) { .help-new-dot { animation: none; } }
      .help-acc { border: 1px solid rgba(212,175,55,0.3); border-radius: 4px; margin-bottom: 7px; overflow: hidden; }
      .help-acc-h { font-size: 13px; font-weight: bold; padding: 10px 12px; color: #fff; background: #1a1207; display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; transition: transform 0.15s ease, filter 0.15s ease; }
      .help-acc-h:active { filter: brightness(1.3); transition-duration: 0.04s; }
      .help-acc-h .chev { font-size: 10px; opacity: 0.6; transition: transform 0.2s; }
      .help-acc.open .help-acc-h .chev { transform: rotate(180deg); }
      .help-acc-b { display: none; font-size: 12.5px; color: #e8dcc8; padding: 10px 12px; border-top: 1px solid rgba(212,175,55,0.18); line-height: 1.7; }
      .help-acc.open .help-acc-b { display: block; }
      .help-acc-b b { color: #ffd100; }
      /* 2.0401(B1): 관리자 콘솔 - 5탭 전면 모달 (관리자 전용) */
      .adm-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
      .adm-tab { flex: 1; text-align: center; font-size: 11px; font-weight: bold; padding: 8px 0; border: 1px solid rgba(212,175,55,0.4); border-radius: 4px; color: #a8967a; background: #140d04; cursor: pointer; user-select: none; transition: transform 0.15s ease, filter 0.15s ease; }
      .adm-tab:active { transform: scale(0.94); filter: brightness(1.3); transition-duration: 0.04s; }
      .adm-tab.on { color: #1a1207; background: linear-gradient(180deg, #ffd100, #c9a227); border-color: #ffd100; }
      .adm-sub { display: flex; gap: 4px; margin-bottom: 9px; }
      .adm-sub-btn { flex: 1; text-align: center; font-size: 10.5px; font-weight: bold; padding: 6px 0; border: 1px solid rgba(0,240,255,0.4); border-radius: 4px; color: #a8967a; cursor: pointer; user-select: none; transition: transform 0.15s ease, filter 0.15s ease; }
      .adm-sub-btn:active { transform: scale(0.94); filter: brightness(1.3); transition-duration: 0.04s; }
      .adm-sub-btn.on { color: #06282c; background: linear-gradient(180deg, #00f0ff, #00a8b4); border-color: #00f0ff; }
      .adm-sec { font-size: 11px; font-weight: bold; color: #d4af37; letter-spacing: 1px; margin: 12px 0 6px; border-left: 3px solid #d4af37; padding-left: 7px; }
      .adm-card { border: 1px solid rgba(212,175,55,0.28); border-radius: 5px; background: linear-gradient(90deg, #140d04, #1d1306); padding: 9px 11px; margin-bottom: 7px; font-size: 12px; line-height: 1.6; }
      .adm-card b { color: #fff; }
      .adm-muted { color: #a8967a; }
      .adm-good { color: #4de6a8; } .adm-warn { color: #ff9d3d; } .adm-bad { color: #ff5e5e; } .adm-cy { color: #00f0ff; } .adm-gd { color: #ffd100; }
      .adm-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 7px; }
      .adm-kpi { border: 1px solid rgba(212,175,55,0.35); border-radius: 5px; padding: 7px 9px; background: linear-gradient(135deg, #1d1306, #140d04); }
      .adm-kpi.hero { grid-column: span 2; border-color: rgba(255,209,0,0.6); }
      .adm-kpi .kl { font-size: 9.5px; color: #a8967a; letter-spacing: 0.5px; }
      .adm-kpi .kv { font-size: 17px; font-weight: bold; color: #ffd100; }
      .adm-kpi.hero .kv { font-size: 23px; }
      .adm-kpi .kd { font-size: 9.5px; }
      .adm-hbar { display: flex; align-items: center; gap: 6px; margin: 3px 0; font-size: 10.5px; }
      .adm-hbar .lb { width: 62px; color: #e8dcc8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      .adm-hbar .tr { flex: 1; height: 9px; background: #1a1207; border-radius: 2px; overflow: hidden; }
      .adm-hbar .fl { height: 100%; background: linear-gradient(90deg, #8a6a10, #ffd100); }
      .adm-hbar .fl.lo { background: linear-gradient(90deg, #5a2a1e, #ff9d3d); }
      .adm-hbar .fl.cy { background: linear-gradient(90deg, #00707a, #00f0ff); }
      .adm-hbar .vl { width: 64px; color: #a8967a; text-align: right; white-space: nowrap; font-size: 10px; }
      .adm-bars { display: flex; align-items: flex-end; gap: 4px; height: 52px; padding: 12px 2px 0; }
      .adm-bar { flex: 1; background: linear-gradient(180deg, #ffd100, #8a6a10); border-radius: 2px 2px 0 0; position: relative; min-height: 2px; }
      .adm-bar.cur { background: linear-gradient(180deg, #00f0ff, #00707a); }
      .adm-bar span { position: absolute; top: -12px; left: -6px; right: -6px; text-align: center; font-size: 8.5px; color: #a8967a; white-space: nowrap; }
      .adm-bar-lb { display: flex; gap: 4px; font-size: 9px; color: #a8967a; text-align: center; }
      .adm-bar-lb i { flex: 1; font-style: normal; white-space: nowrap; overflow: hidden; }
      .adm-table-wrap { overflow-x: auto; border: 1px solid rgba(212,175,55,0.3); border-radius: 5px; }
      .adm-table { width: 100%; border-collapse: collapse; font-size: 11px; white-space: nowrap; }
      .adm-table th { color: #d4af37; text-align: left; padding: 6px 7px; border-bottom: 1px solid rgba(212,175,55,0.35); font-size: 10px; cursor: pointer; user-select: none; position: sticky; top: 0; background: #140d04; }
      .adm-table td { padding: 6px 7px; border-bottom: 1px solid rgba(212,175,55,0.14); }
      .adm-table td.nm { color: #fff; font-weight: bold; cursor: pointer; }
      .adm-table tr.sum td { border-top: 1px solid rgba(212,175,55,0.5); color: #ffd100; font-weight: bold; }
      .adm-heat { display: grid; grid-template-columns: 34px repeat(7, 1fr); gap: 3px; font-size: 9.5px; }
      .adm-heat .hl { color: #a8967a; display: flex; align-items: center; }
      .adm-heat .hc { height: 20px; border-radius: 3px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.8); font-size: 9px; }
      .adm-mini-btn { display: inline-block; font-size: 10.5px; font-weight: bold; border-radius: 3px; padding: 4px 10px; margin-left: 5px; cursor: pointer; user-select: none; transition: transform 0.15s ease, filter 0.15s ease; }
      .adm-mini-btn:active { transform: scale(0.92); filter: brightness(1.35); transition-duration: 0.04s; }
      .adm-mini-ok { background: #2c4a1e; color: #b8f090; border: 1px solid #5c8a3e; }
      .adm-mini-no { background: #4a1e1e; color: #f09090; border: 1px solid #8a3e3e; }
      .adm-stream { font-size: 11px; color: #a8967a; }
      .adm-stream > div { padding: 4px 0; border-bottom: 1px solid rgba(212,175,55,0.12); }
      .adm-stream b { color: #e8dcc8; font-weight: normal; }
      .adm-stream .tm { color: #6a5a42; font-size: 9.5px; margin-right: 5px; }
      .adm-detail { border: 1px solid rgba(0,240,255,0.35); border-radius: 5px; padding: 9px 11px; margin: 4px 0 8px; font-size: 11.5px; background: rgba(0,240,255,0.03); }
      /* 2.0408(작가 탭 사용성): 가로 스크롤 표 대신 한 줄 카드. 폰에서 바로 읽힌다. */
      .adm-sortbar { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin: 4px 0 8px; }
      .adm-chip { font-size: 10.5px; font-weight: bold; color: #a8967a; border: 1px solid rgba(212,175,55,0.4); border-radius: 12px; padding: 4px 10px; cursor: pointer; user-select: none; transition: transform 0.15s ease, filter 0.15s ease; }
      .adm-chip:active { transform: scale(0.92); filter: brightness(1.35); transition-duration: 0.04s; }
      .adm-chip.on { color: #1a1207; background: linear-gradient(180deg, #ffd100, #c9a227); border-color: #ffd100; }
      .adm-arow { border: 1px solid rgba(212,175,55,0.25); border-radius: 5px; background: linear-gradient(90deg, #140d04, #1d1306); padding: 8px 11px; margin-bottom: 5px; cursor: pointer; user-select: none; transition: transform 0.15s ease, filter 0.15s ease; }
      .adm-arow:active { transform: scale(0.985); filter: brightness(1.2); transition-duration: 0.04s; }
      .adm-arow.open { border-color: rgba(0,240,255,0.5); }
      .adm-arow-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
      .adm-arow-name { font-size: 13px; font-weight: bold; color: #fff; }
      .adm-arow-main { font-size: 15px; font-weight: bold; color: #ffd100; white-space: nowrap; }
      .adm-arow-sub { font-size: 10.5px; color: #a8967a; margin-top: 2px; line-height: 1.55; }
      /* 2.0391(B1): ARTISTS 명부 검색창 - 타이핑 즉시 클라이언트 필터(셔플 순서 유지) */
      .artists-search-box { display: flex; align-items: center; gap: 7px; background: #040201; border: 1px solid rgba(212,175,55,0.5); border-radius: 3px; padding: 7px 10px; margin: 2px 0 8px; }
      .artists-search-box svg { flex-shrink: 0; opacity: 0.65; }
      .artists-search-box input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: #ffd100; font-size: 13px; font-family: inherit; }
      .artists-search-box input::placeholder { color: rgba(168,150,122,0.55); }
      /* 2.0379: 스켈레톤 - 캐시가 없어도 뼈대(라벨/이름)는 즉시 보여주고 값 자리만 반짝이는
         바로 채운다 (사장님 지시: 로딩 문구만 보여주지 말고 템플릿을 먼저 보여줘라) */
      .skel-bar { display: inline-block; width: 56px; height: 11px; border-radius: 2px; vertical-align: middle; background: linear-gradient(90deg, rgba(212,175,55,0.10) 25%, rgba(212,175,55,0.32) 50%, rgba(212,175,55,0.10) 75%); background-size: 200% 100%; animation: skelShimmer 1.2s linear infinite; }
      .skel-bar.w-lg { width: 110px; }
      .skel-bar.w-sm { width: 34px; height: 10px; }
      .skel-line { display: block; height: 13px; margin: 9px 0; border-radius: 2px; background: linear-gradient(90deg, rgba(212,175,55,0.10) 25%, rgba(212,175,55,0.32) 50%, rgba(212,175,55,0.10) 75%); background-size: 200% 100%; animation: skelShimmer 1.2s linear infinite; }
      @keyframes skelShimmer { 0% { background-position: 200% 0; } 100% { background-position: 0% 0; } }
      @media (prefers-reduced-motion: reduce) { .skel-bar, .skel-line { animation: none; } }
      /* 2.0376: 화면이 어떤 버전 코드로 돌고 있는지 확인용 (배포해도 열린 화면은 옛 코드라
         "고쳤는데 그대로다" 혼선 방지 - 새로고침 여부를 눈으로 판별) */
      .app-version-tag { text-align: center; font-size: 10px; opacity: 0.35; color: #a8967a; padding: 10px 0 4px; letter-spacing: 1px; }
      body.tv-mode .app-version-tag { display: none; }
      .pdb-fold-back { float: right; font-size: 10px; opacity: 0.8; cursor: pointer; padding: 0 2px; font-weight: normal; }
      /* 2.0386(A5): 터치 타깃 확장 - 보이는 크기/간격은 1px 도 안 바꾸고 투명 히트 영역만 확대
         (사장님 지시: UI 간격 유지). 원칙 = 이웃 히트 영역과 절대 겹치지 않게, 여유 있는
         방향으로만 확장. tap-tgt: 사방 44px(고립 요소) / tap-tgt-y: 세로만 44px(좌우로 버튼이
         붙은 수락·거절 쌍 - 좌우는 간격 절반인 3px 만) / tap-tgt-x: 가로 위주 소폭(세로로
         촘촘한 슬롯 줄의 ▼ - 왼쪽 이름 링크를 침범하지 않는 선까지만). */
      .tap-tgt, .tap-tgt-y, .tap-tgt-x, .tap-tgt-l, .tap-tgt-r { position: relative; }
      .tap-tgt::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: max(100%, 44px); height: max(100%, 44px); }
      /* 좌우로 붙은 버튼 쌍(사장님 규칙): 왼쪽 버튼은 오른쪽만 빼고 확장, 오른쪽 버튼은 왼쪽만
         빼고 확장, 셋 이상일 때 가운데는 위아래만(tap-tgt-y) - 이웃끼리 절대 안 겹침 */
      .tap-tgt-l::after { content: ""; position: absolute; left: -14px; right: 0; top: 50%; transform: translateY(-50%); height: 44px; }
      .tap-tgt-r::after { content: ""; position: absolute; left: 0; right: -14px; top: 50%; transform: translateY(-50%); height: 44px; }
      .tap-tgt-y::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); height: 44px; }
      .tap-tgt-x::after { content: ""; position: absolute; left: -10px; right: -8px; top: -4px; bottom: -4px; }
      .undo-btn { background: #3a2a00; color: #ffd100; border: 1px solid #ffd100; border-radius: 2px; padding: 2px 6px; cursor: pointer; font-size: 11px; font-weight: bold; flex-shrink: 0; margin-left: 2px; }
      .undo-toast-btn { background: none; border: none; border-bottom: 1px solid #ffd100; color: #ffd100; font-size: 12px; font-weight: bold; cursor: pointer; padding: 0 0 1px; margin-left: 12px; font-family: inherit; }
      .tap-tgt-slot { position: relative; }
      .tap-tgt-slot::after { content: ""; position: absolute; left: 0; right: 0; top: -8px; bottom: -8px; }
      .slot-menu-dropdown .tap-tgt-slot::after { top: 0; bottom: 0; }
      @media (prefers-reduced-motion: reduce) { .success-toast { transition: opacity 0.01s linear; } }
      body.tv-mode #megaphoneContainer { grid-area: tvmega; overflow: hidden; }
      body.tv-mode #chatContainer { grid-area: tvchat; overflow: hidden; }
      body.tv-mode #activityLogContainer { grid-area: tvlog; overflow: hidden; }
      body.tv-mode #tvRankingsContainer { display: block; grid-area: tvrank; overflow: hidden; }
      body.tv-mode .megaphone-panel, body.tv-mode .chat-panel, body.tv-mode .activity-log-panel, body.tv-mode .tv-rankings-panel { margin-bottom: 0; height: 100%; }
      body.tv-mode .megaphone-input-row, body.tv-mode .megaphone-quota-line, body.tv-mode .megaphone-more-btn, body.tv-mode .activity-log-more-btn { display: none !important; }
      body.tv-mode .chat-input-row, body.tv-mode .chat-quota-line, body.tv-mode .chat-more-btn { display: none !important; }
      /* TV 챗: 챗은 아래로 갈수록 최신인데 칸이 overflow:hidden 이라 최신(아래)이 잘리던 문제.
         목록을 바닥에 고정해 넘치는 만큼 위(오래된 쪽)가 잘려나가게 한다. */
      body.tv-mode .chat-panel { display: flex; flex-direction: column; box-sizing: border-box; }
      body.tv-mode #chatList { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
      body.tv-mode #shiftsContainer { grid-area: tvgrid; height: 100%; }
      body.tv-mode .grid-container { grid-template-columns: repeat(7, 1fr) !important; gap: 6px; }
      body.tv-mode .day-col { height: 100%; }
      body.tv-mode .day-header { font-size: 24px !important; padding: 6px 2px; }
      body.tv-mode .day-date { font-size: 16px !important; }
      body.tv-mode .shift-title-text { font-size: 20px !important; font-weight: 900 !important; display: block; }
      body.tv-mode .shift-time-text { font-size: 15px !important; font-weight: 800 !important; display: block; }
      body.tv-mode .slot-card { font-size: 18px !important; padding: 10px 8px; min-height: 44px; }
      body.tv-mode .tw-btn { display: none !important; }
      /* TV는 전시용 - 슬롯 안의 관리/액션 버튼(노쇼/지각/승인/거절/양도/취소)도 전부 숨긴다 */
      body.tv-mode .admin-btn, body.tv-mode .transfer-btn, body.tv-mode .cancel-btn { display: none !important; }
      body.tv-mode .mobile-bottom-nav { display: none !important; }
      
      @media screen and (max-width: 768px) {
        body:not(.tv-mode) { padding: 8px; padding-bottom: 70px; font-size: 12px; }
        body:not(.tv-mode) .grid-container { grid-template-columns: 1fr; }
        body:not(.tv-mode) .day-col { min-width: 100%; }
        body:not(.tv-mode) .panels-row { flex-direction: column; }
        body:not(.tv-mode) .tw-btn { width: 100%; margin-bottom: 4px; text-align: center; }
        body:not(.tv-mode) .app-nav-row .tw-btn { width: auto; margin-bottom: 0; }
        body:not(.tv-mode) .desktop-bottom-nav { display: none !important; }
        body:not(.tv-mode) .top-week-btn { display: none !important; }
        body:not(.tv-mode) .top-today-btn { display: block !important; }
        body:not(.tv-mode) .mobile-bottom-nav {
          display: flex !important;
          position: fixed;
          bottom: 0;
          left: 0;
          width: 100%;
          background: rgba(12, 8, 5, 0.98);
          border-top: 2px solid #d4af37;
          padding: 8px;
          gap: 6px;
          z-index: 900;
          box-shadow: 0 -4px 15px rgba(0,0,0,0.8);
        }
        body:not(.tv-mode) .mobile-bottom-nav .tw-btn { margin-bottom: 0; font-size: 11px; padding: 10px 4px; }
      }
    
/* ===== 홈 화면 추가 안내 =====
   앱 톤(어두운 바탕 + 금색)에 맞춘다. iga = install guide/anything. */

/* 안드로이드용 하단 바 - 진짜 설치창을 띄우는 버튼 하나면 되므로 가볍게 */
.iga-bar {
  position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 9000;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: linear-gradient(90deg, #1a1207, #2b1d0a);
  border: 1px solid #ffd100; border-radius: 8px;
  padding: 10px 12px; color: #e8dcc8; font-size: 12.5px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
  transform: translateY(140%); transition: transform 0.28s ease;
}
.iga-bar.show { transform: translateY(0); }
.iga-bar b { color: #ffd100; }
.iga-sub { flex: 1 1 100%; font-size: 11px; color: #a8967a; }
.iga-btn {
  margin-left: auto; background: linear-gradient(180deg, #ffd100, #c9a227);
  color: #1a1207; font-weight: bold; font-size: 12px;
  padding: 7px 16px; border-radius: 5px; cursor: pointer; white-space: nowrap;
}
.iga-x { color: #a8967a; cursor: pointer; padding: 4px 6px; font-size: 13px; }

/* 아이폰/인앱브라우저용 전체 안내 - 공유 버튼 위치를 화살표로 찍어줘야 하므로 화면을 덮는다 */
.iga-scrim {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(0, 0, 0, 0.82);
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
  opacity: 0; transition: opacity 0.24s ease;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.iga-scrim.show { opacity: 1; }

.iga-card {
  position: relative; width: 100%; max-width: 340px;
  background: linear-gradient(170deg, #1c1409, #120c05);
  border: 1px solid #6b551c; border-radius: 14px;
  padding: 22px 20px 18px; color: #e8dcc8;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: translateY(14px); transition: transform 0.24s ease;
}
.iga-scrim.show .iga-card { transform: translateY(0); }

.iga-close {
  position: absolute; top: 8px; right: 8px;
  background: none; border: 0; color: #8a7a60;
  font-size: 15px; line-height: 1; padding: 6px 8px; cursor: pointer;
}
.iga-title { font-size: 16px; font-weight: bold; color: #ffd100; margin-bottom: 6px; }
.iga-lede { font-size: 12.5px; line-height: 1.65; color: #b9a888; margin-bottom: 16px; }
.iga-lede b { color: #e8dcc8; }

.iga-steps { list-style: none; margin: 0 0 16px; padding: 0; }
.iga-steps li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-top: 1px solid #2e2412;
  font-size: 13px; line-height: 1.5;
}
.iga-steps li:first-child { border-top: 0; }
.iga-n {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%;
  background: #ffd100; color: #1a1207;
  font-size: 11px; font-weight: bold; text-align: center; line-height: 20px;
}
.iga-txt { flex: 1 1 auto; }
.iga-txt b { color: #ffd100; }
.iga-glyph { flex: 0 0 22px; width: 22px; height: 22px; color: #7fb4ff; }

.iga-done, .iga-go {
  display: block; text-align: center;
  background: linear-gradient(180deg, #ffd100, #c9a227);
  color: #1a1207; font-weight: bold; font-size: 13px;
  padding: 11px 16px; border-radius: 7px; cursor: pointer;
}
.iga-hint { margin-top: 10px; font-size: 11px; color: #8a7a60; text-align: center; line-height: 1.6; }
.iga-hint b { color: #b9a888; }

/* 사파리 공유 버튼을 가리키는 화살표. 카드가 아니라 화면 기준으로 붙인다. */
.iga-arrow {
  position: fixed; left: 0; right: 0; text-align: center;
  color: #ffd100; font-size: 30px; line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}
.iga-arrow-bottom { bottom: 8px; animation: igaBounceDown 1.1s ease-in-out infinite; }
/* iOS 26 사파리: 공유가 오른쪽 아래 ⋯ 안으로 들어갔다. 화살표도 그쪽을 가리킨다. */
.iga-arrow-br {
  bottom: 8px; left: auto; right: 22px; text-align: right;
  animation: igaBounceDown 1.1s ease-in-out infinite;
}
.iga-arrow-top { top: 8px; transform: rotate(180deg); animation: igaBounceUp 1.1s ease-in-out infinite; }

@keyframes igaBounceDown {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(9px); }
}
@keyframes igaBounceUp {
  0%, 100% { transform: rotate(180deg) translateY(0); }
  50%      { transform: rotate(180deg) translateY(9px); }
}

@media (prefers-reduced-motion: reduce) {
  .iga-bar, .iga-scrim, .iga-card { transition: none; }
  .iga-arrow-bottom, .iga-arrow-top { animation: none; }
}
