    /* ==========================================================================
       KM RENT Scheduler - Standalone Responsive CSS (Zero External CDN / Vanilla)
       ========================================================================== */
    :root {
      color-scheme: dark;
      /* Tokyo Night (Night variant - Default) */
      --bg-main: #1a1b26;
      --bg-panel: #16161e;
      --bg-card: #24283b;
      --bg-card-hover: rgba(122, 162, 247, 0.08);
      --bg-card-selected: #394b70;
      --bg-inset: rgba(22, 22, 30, 0.7);
      --bg-overlay: rgba(15, 15, 20, 0.6);
      --border: #414868;
      --border-highlight: #7aa2f7;
      --text-main: #c0caf5;
      --text-muted: #a9b1d6;
      --text-subtle: #9aa5ce;
      --text-on-selected: #c0caf5;
      --accent: #7aa2f7;
      --accent-hover: #7dcfff;
      --accent-edge: #f7768e;
      --on-accent: #1a1b26;
      --success: #9ece6a;
      --success-bg: rgba(158, 206, 106, 0.12);
      --success-border: rgba(158, 206, 106, 0.4);
      --warning: #e0af68;
      --warning-fg: var(--warning);
      --warning-bg: rgba(224, 175, 104, 0.12);
      --warning-border: rgba(224, 175, 104, 0.4);
      --danger: #db4b4b;
      --danger-fg: #e99696; /* AA 가독성 보정 전경색 */
      --danger-bg: rgba(219, 75, 75, 0.12);
      --danger-border: rgba(219, 75, 75, 0.4);
      --info: #7dcfff;
      --info-fg: var(--info);
      --info-bg: rgba(125, 207, 255, 0.12);
      --info-border: rgba(125, 207, 255, 0.4);
      --indigo: #bb9af7;
      --indigo-bg: rgba(187, 154, 247, 0.12);
      --indigo-border: rgba(187, 154, 247, 0.4);
      --purple: #9d7cd8;
      --purple-fg: var(--indigo);
      --teal: #73daca;
      --orange: #ff9e64;
      --cyan: #7dcfff;
      --link: #7dcfff;
      --focus-ring: #7aa2f7;
      --scrollbar: #414868;
      --radius: 8px;
      --radius-sm: 4px;
      --radius-pill: 9999px;
      --space-1: 4px;
      --space-2: 6px;
      --space-3: 8px;
      --header-touch-target: 44px;
      --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);

      /* 하위 호환 별칭 (미정의 변수 원천 차단) */
      --text-primary: var(--text-main);
      --text-secondary: var(--text-muted);
      --color-text-muted: var(--text-muted);
      --neutral: var(--text-subtle);
      --schedule-release: var(--accent);
      --schedule-return: var(--cyan);
      --diff-change: var(--warning);
      --diff-after: var(--info);
      --weekend-sun: var(--accent-edge);
      --weekend-sat: var(--accent);

      /* 크기 및 레이아웃 기본값 */
      --inventory-reserve-touch-target: 44px;
      --inventory-reserve-max-width: 640px;
      --unlinked-reservation-max-width: 520px;
      --equipment-deeplink-touch-target: 44px;
      --version-badge-touch-target: 44px;
      --col-width-col-eq-no: 140px;
      --col-width-col-model: 240px;
      --col-width-col-spec: 120px;
      --col-width-col-status: 240px;
      --col-width-col-location: 200px;
      --col-width-col-contract: 180px;

      /* 서버 설정(config/ui_settings.json) 도착 전 임시 기본값, 값 변경은 config에서 */
      --condition-memo-font-size: 14px;
      --condition-memo-line-height: 1.45;
      --condition-memo-max-lines: 3;
      --condition-memo-text-color: var(--text-main);
      --condition-memo-text-align: left;
      /* 레이아웃 기본값 (config/ui_settings.json layout) */
      --inventory-eqno-width: 140px;
      --inventory-model-max-width: 360px; /* layout-wide-balance: 기종 열 상한 */
      --inventory-status-min-width: 240px;
      --inventory-location-max-width: 280px;
      --sidekick-candidate-min-width: 160px;
      /* PC 데스크톱 주간 캘린더 분할 기본값 (config/ui_settings.json layout) */
      --schedule-weekly-calendar-percent: 65%;
      --schedule-weekly-sidekick-percent: 35%;
      --schedule-weekly-column-max-height: none;
      --schedule-weekly-column-overflow-y: visible;

      /* CSV View Column Width Tokens (Desktop Grid) */
      --csv-col-eq-no-width: 90px;
      --csv-col-model-width: 240px;
      --csv-col-rental-status-width: 96px;
      --csv-col-condition-width: 88px;
      --csv-col-reservation-width: 80px;

      /* CSV View Column Width Tokens (Mobile Grid <= 760px) */
      --csv-mobile-col-eq-no-width: 80px;
      --csv-mobile-col-rental-status-width: 68px;
      --csv-mobile-col-condition-width: 76px;

      /* Z-Index Stacking Hierarchy Tokens */
      --z-index-base: 1;
      --z-index-sticky-header: 10;
      --z-index-dropdown: 50;
      --z-index-detail-sheet: 900;       /* CSV 장비 상세 시트 (1차 레이어) */
      --z-index-modal: 1000;              /* 예약 선택, 컨디션 등 파생 모달 (2차 레이어) */
      --z-index-modal-surface: 1001;      /* 모달 시트 서피스 */
      --z-index-popover: 1050;            /* 팝오버 / 버전 정보 */
      --z-index-action-menu: 10000;       /* 필터/역필터 액션 메뉴 */
    }

    :root[data-theme-variant="storm"] {
      --bg-main: #24283b;
      --bg-panel: #1f2335;
      --bg-card: #292e42;
      --bg-card-selected: #394b70;
      --bg-inset: rgba(31, 35, 53, 0.7);
      --on-accent: #24283b;
    }

    /* Red Edge Decorations (Strictly 2 locations: active nav tab + modal/sheet header title bar) */
    .modal-header h3::before,
    .sheet-header h3::before,
    .ticket-sheet-header .ticket-detail-title::before,
    .inventory-reserve-header h3::before {
      content: "";
      display: inline-block;
      width: 3px;
      height: 18px;
      background: var(--accent-edge);
      border-radius: 2px;
      margin-right: 8px;
      vertical-align: middle;
    }
