        :root {
            --bg: #f2f5fa;
            --bg-soft: #eaf0f9;
            --surface: #ffffff;
            --line: #d7e0ec;
            --text: #0f172a;
            --muted: #637189;
            --accent: #2f6cf6;
            --accent-strong: #1e53d9;
            --accent-soft: #e9f1ff;
            --ncore-logo-blue: #5878a8;
            --ncore-logo-blue-strong: #4f6f9f;
            --ncore-logo-blue-soft: rgba(88, 120, 168, 0.26);
            --danger: #e04b57;
            --radius-control: 8px;
            --radius-panel: 12px;
            --radius-dialog: 16px;
            --shadow-sm: 0 6px 18px -14px rgba(24, 36, 61, 0.28);
            --shadow-md: 0 14px 28px -22px rgba(22, 36, 66, 0.30);
            --shadow-dialog: 0 24px 44px -28px rgba(19, 34, 62, 0.38);
            --space-1: 0.25rem;
            --space-2: 0.5rem;
            --space-3: 0.75rem;
            --space-4: 1rem;
            --space-5: 1.25rem;
            --space-6: 1.5rem;
            --space-7: 2rem;
            --space-8: 3.5rem;
            --space-11: 2.75rem;
            --type-xs: 0.75rem;
            --type-sm: 0.875rem;
            --type-md: 1rem;
            --type-lg: 1.25rem;
            --type-xl: 1.5rem;
            --control-height: 2.5rem;
            --border-width: 1px;
            --focus-width: 2px;
            --focus-offset: 1px;
            --checkbox-size: 1rem;
            --control-surface: #f8fbff;
            --control-focus-border: #b7ccf8;
            --control-focus-ring: 0 0 0 3px rgba(47, 108, 246, 0.12);
            --weight-label: 700;
            --weight-heading: 800;
            --line-copy: 1.5;
            --line-title: 1.35;
            --line-section: 1.4;
            --scrim-blur: 4px;
            --dialog-width: 820px;
            --dialog-max-height: 844px;
            --scrim: rgba(15, 23, 42, 0.60);
            --danger-border: #fecdd3;
            --danger-surface: #fff1f2;
            --danger-text: #be123c;
        }

        .ncore-dialog-overlay,
        .ncore-people-create-overlay {
            position: fixed;
            inset: 0;
            z-index: 70;
            display: none;
            align-items: flex-start;
            justify-content: center;
            overflow-y: auto;
            padding: var(--space-4);
            background: var(--scrim);
            backdrop-filter: blur(var(--scrim-blur));
        }
        .ncore-dialog-overlay.is-open,
        .ncore-people-create-overlay.is-open { display: flex; }
        .ncore-dialog-panel,
        .ncore-people-create-panel {
            display: flex;
            flex-direction: column;
            width: min(var(--dialog-width), calc(100vw - var(--space-7)));
            max-height: min(var(--dialog-max-height), calc(100vh - var(--space-8)));
            margin: var(--space-3) 0;
            overflow: hidden;
            background: var(--surface);
            border: var(--border-width) solid var(--line);
            border-radius: var(--radius-dialog);
            box-shadow: var(--shadow-dialog);
        }
        .ncore-dialog-header,
        .ncore-people-create-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: var(--space-4);
            flex: 0 0 auto;
            padding: var(--space-4) var(--space-6);
            border-bottom: var(--border-width) solid var(--line);
        }
        .ncore-dialog-scroll,
        .ncore-people-create-scroll {
            min-height: 0;
            flex: 1 1 auto;
            overflow-y: auto;
            padding: var(--space-5) var(--space-6);
        }
        .ncore-dialog-form,
        .ncore-people-create-form {
            min-height: 0;
            display: flex;
            flex: 1 1 auto;
            flex-direction: column;
        }
        .ncore-dialog-grid {
            display: grid;
            gap: var(--space-3);
            margin-top: var(--space-4);
        }
        .ncore-dialog-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .ncore-dialog-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        .ncore-dialog-inline {
            display: flex;
            align-items: center;
            gap: var(--space-3);
        }
        .ncore-form-checkbox-input {
            width: var(--checkbox-size);
            height: var(--checkbox-size);
            accent-color: var(--accent);
        }
        .ncore-dialog-section,
        .ncore-people-create-section {
            padding-bottom: var(--space-5);
            border-bottom: var(--border-width) solid var(--line);
        }
        .ncore-dialog-section + .ncore-dialog-section,
        .ncore-people-create-section + .ncore-people-create-section { margin-top: var(--space-5); }
        .ncore-dialog-section--accent,
        .ncore-people-create-section--accent {
            padding: var(--space-4);
            border: var(--border-width) solid var(--accent-soft);
            border-radius: var(--radius-panel);
            background: var(--accent-soft);
        }
        .ncore-form-label,
        .ncore-people-create-label {
            display: block;
            margin-bottom: var(--space-1);
            color: var(--text);
            font-size: var(--type-sm);
            font-weight: var(--weight-label);
        }
        .ncore-form-field,
        .ncore-people-create-field { display: block; }
        .ncore-dialog-eyebrow,
        .ncore-people-create-eyebrow {
            color: var(--accent);
            font-size: var(--type-xs);
            font-weight: var(--weight-heading);
        }
        .ncore-dialog-title,
        .ncore-people-create-title {
            margin-top: var(--space-1);
            color: var(--text);
            font-size: var(--type-lg);
            font-weight: var(--weight-heading);
            line-height: var(--line-title);
        }
        .ncore-dialog-subtitle,
        .ncore-form-help,
        .ncore-people-create-subtitle,
        .ncore-people-create-help {
            color: var(--muted);
            font-size: var(--type-xs);
            line-height: var(--line-copy);
        }
        .ncore-form-help--offset { margin-top: var(--space-3); }
        .ncore-form-help--compact { margin-top: var(--space-1); }
        .ncore-dialog-section-title,
        .ncore-people-create-section-title {
            color: var(--text);
            font-size: var(--type-md);
            font-weight: var(--weight-heading);
            line-height: var(--line-section);
        }
        .ncore-form-checkbox,
        .ncore-people-create-checkbox-label {
            display: inline-flex;
            align-items: center;
            gap: var(--space-2);
            flex-shrink: 0;
            color: var(--muted);
            font-size: var(--type-xs);
            font-weight: var(--weight-label);
        }
        .ncore-form-error,
        .ncore-people-create-error {
            margin-bottom: var(--space-4);
            border: var(--border-width) solid var(--danger-border);
            border-radius: var(--radius-control);
            background: var(--danger-surface);
            color: var(--danger-text);
            padding: var(--space-2) var(--space-3);
            font-size: var(--type-sm);
            font-weight: var(--weight-label);
        }
        .ncore-form-control,
        .ncore-people-create-control {
            width: 100%;
            height: var(--control-height);
            border: var(--border-width) solid var(--line);
            border-radius: var(--radius-control);
            background: var(--surface);
            color: var(--text);
            padding: 0 var(--space-3);
            font-size: var(--type-sm);
        }
        .ncore-form-control:focus,
        .ncore-people-create-control:focus {
            outline: var(--focus-width) solid var(--accent-soft);
            outline-offset: var(--focus-offset);
            border-color: var(--accent);
        }
        .ncore-dialog-footer,
        .ncore-people-create-footer {
            display: flex;
            justify-content: flex-end;
            gap: var(--space-2);
            flex: 0 0 auto;
            padding: var(--space-4) var(--space-6);
            border-top: var(--border-width) solid var(--line);
            background: var(--surface);
        }
        .ncore-dialog-button,
        .ncore-people-create-button {
            min-height: var(--control-height);
            border: var(--border-width) solid var(--line);
            border-radius: var(--radius-control);
            padding: var(--space-2) var(--space-5);
            font-size: var(--type-sm);
            font-weight: var(--weight-label);
        }
        .ncore-dialog-button--primary,
        .ncore-people-create-button--primary {
            border-color: var(--accent);
            background: var(--accent);
            color: var(--surface);
        }
        .ncore-dialog-button--primary:hover,
        .ncore-people-create-button--primary:hover { background: var(--accent-strong); }
        .ncore-dialog-button--secondary,
        .ncore-people-create-button--secondary { background: var(--accent-soft); color: var(--text); }
        .ncore-dialog-button--secondary:hover,
        .ncore-people-create-button--secondary:hover { background: var(--bg-soft); }
        .ncore-dialog-button--close,
        .ncore-people-create-button--close {
            min-width: var(--space-11);
            padding: var(--space-2) var(--space-3);
            color: var(--muted);
            font-size: var(--type-lg);
            line-height: 1;
        }
        @media (max-width: 767px) {
            .ncore-dialog-overlay,
            .ncore-people-create-overlay { padding: var(--space-2); }
            .ncore-dialog-panel,
            .ncore-people-create-panel {
                width: calc(100vw - var(--space-4));
                max-height: calc(100dvh - var(--space-4));
                margin: 0;
            }
            .ncore-dialog-header,
            .ncore-dialog-scroll,
            .ncore-dialog-footer,
            .ncore-people-create-header,
            .ncore-people-create-scroll,
            .ncore-people-create-footer { padding-left: var(--space-4); padding-right: var(--space-4); }
            .ncore-dialog-grid--2,
            .ncore-dialog-grid--3 { grid-template-columns: minmax(0, 1fr); }
        }

        * { box-sizing: border-box; }

        body {
            font-family: 'SUIT', 'Noto Sans KR', sans-serif;
            color: var(--text);
            background: var(--bg) !important;
            letter-spacing: -0.01em;
        }

        .executive-dashboard-heading {
            display: flex;
            align-items: center;
            min-height: clamp(3.75rem, 5vw, 4.75rem);
            margin-bottom: 1.75rem;
        }

        .executive-dashboard-title {
            margin: 0;
            max-width: 100%;
            color: #18243b;
            font-family: 'SUIT', 'Noto Sans KR', sans-serif;
            font-size: clamp(2rem, 3.4vw, 2.75rem);
            font-weight: 800;
            line-height: 1.16;
            letter-spacing: -0.045em;
            text-wrap: balance;
            text-rendering: optimizeLegibility;
        }

        @media (max-width: 640px) {
            .executive-dashboard-heading {
                min-height: 3.5rem;
                margin-bottom: 1.5rem;
            }

            .executive-dashboard-title {
                font-size: 2rem;
                line-height: 1.2;
                letter-spacing: -0.035em;
            }
        }

        main, nav, footer { position: relative; z-index: 1; }

        .fade-in { animation: riseIn 0.42s ease-out both; }
        @keyframes riseIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        nav {
            background: var(--surface) !important;
            border-bottom: 1px solid var(--line);
            box-shadow: var(--shadow-sm);
        }

        .ncore-brand-icon {
            display: inline-block;
            object-fit: contain;
            background: #fff;
            flex-shrink: 0;
        }

        .ncore-brand-icon-nav {
            width: 28px;
            height: 28px;
            margin-right: 0.5rem;
            border-radius: var(--radius-control);
        }

        .ncore-brand-icon-login {
            width: 64px;
            height: 64px;
            border-radius: var(--radius-dialog);
        }

        footer {
            background: transparent !important;
            border-top: 1px solid var(--line) !important;
        }

        body.login-screen-active main#app-container {
            padding-bottom: 7rem !important;
        }

        body.login-screen-active footer {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 1;
            padding-top: 1.25rem !important;
            padding-bottom: 1.25rem !important;
            background: var(--bg) !important;
        }

        button {
            transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
            letter-spacing: 0;
        }
        button:active { transform: translateY(1px); }
        button:disabled { filter: saturate(0.7); }

        input, select, textarea {
            border-color: var(--line) !important;
            background-color: var(--control-surface) !important;
            color: var(--text) !important;
        }

        input:focus, select:focus, textarea:focus {
            outline: none !important;
            border-color: var(--control-focus-border) !important;
            box-shadow: var(--control-focus-ring);
        }

        .ncore-form-control:focus,
        .ncore-people-create-control:focus {
            outline: var(--focus-width) solid var(--accent-soft) !important;
            outline-offset: var(--focus-offset);
            border-color: var(--control-focus-border) !important;
            box-shadow: var(--control-focus-ring) !important;
        }

        .bg-white { background-color: var(--surface) !important; }
        .bg-gray-50 { background-color: #f7f9fd !important; }
        .bg-gray-100 { background-color: #edf2f9 !important; }
        .text-gray-900, .text-gray-800 { color: var(--text) !important; }
        .text-gray-600, .text-gray-500, .text-gray-400 { color: var(--muted) !important; }
        .border, .border-gray-100, .border-gray-200, .border-gray-300 { border-color: var(--line) !important; }
        .ncore-pregnancy-reduced-work-card {
            background-color: rgb(253 242 248) !important;
            border-color: rgb(252 231 243) !important;
            color: rgb(136 19 55) !important;
        }
        .ncore-pregnancy-reduced-work-card:hover {
            border-color: rgb(249 168 212) !important;
        }
        .ncore-pregnancy-reduced-work-badge {
            background-color: rgb(252 231 243) !important;
            border-color: rgb(251 207 232) !important;
            color: rgb(190 18 60) !important;
        }
        .shadow-sm { box-shadow: var(--shadow-sm) !important; }
        .shadow-md { box-shadow: var(--shadow-md) !important; }
        .shadow-lg, .shadow-xl, .shadow-2xl { box-shadow: var(--shadow-dialog) !important; }
        .rounded-2xl { border-radius: var(--radius-dialog) !important; }
        .rounded-xl { border-radius: var(--radius-panel) !important; }
        .rounded-lg { border-radius: var(--radius-control) !important; }

        .bg-indigo-600 { background-color: var(--accent) !important; }
        .bg-indigo-700, .hover\:bg-indigo-700:hover { background-color: var(--accent-strong) !important; }
        .bg-indigo-50 { background-color: var(--accent-soft) !important; }
        .text-indigo-800, .text-indigo-700, .text-indigo-600, .text-indigo-500 { color: var(--accent) !important; }
        .border-indigo-100, .border-indigo-200 { border-color: #bfd3ff !important; }

        .ncore-login-submit {
            background: var(--ncore-logo-blue) !important;
            box-shadow: var(--shadow-sm) !important;
        }

        .ncore-login-submit:hover {
            background: var(--ncore-logo-blue-strong) !important;
        }

        .bg-red-600 { background-color: var(--danger) !important; }
        .hover\:bg-red-700:hover { background-color: #c53d49 !important; }

        .text-green-600 { color: #1d7a59 !important; }
        .bg-green-100 { background-color: #e8f6f0 !important; }

        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 1px;
            background-color: #d7e0ec;
        }
        .calendar-cell {
            background: var(--surface);
            min-height: 146px;
            padding: 4px;
            position: relative;
        }
        .calendar-cell-today {
            background: #eef5ff !important;
            box-shadow: inset 0 0 0 1px rgba(101, 142, 232, 0.26);
        }
        .calendar-cell-selected {
            background: #ffeef2 !important;
            box-shadow: inset 0 0 0 1px rgba(232, 143, 165, 0.42);
        }
        .calendar-header-cell {
            background-color: #f3f7fd;
            padding: 12px;
            text-align: center;
            font-weight: 700;
            color: #44536b;
            font-size: 0.95rem;
        }
        .calendar-filter-subtabs {
            animation: calendar-filter-subtabs-reveal 180ms cubic-bezier(0.16, 1, 0.3, 1) both;
            transform-origin: left center;
        }
        @keyframes calendar-filter-subtabs-reveal {
            from {
                opacity: 0;
                transform: translateX(-8px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }
        @media (prefers-reduced-motion: reduce) {
            .calendar-filter-subtabs {
                animation: none;
            }
        }
        .holiday-text { color: #e54e57 !important; }
        .sat-text { color: #3a6bd6 !important; }

        #loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(242, 247, 255, 0.88);
            z-index: 9999;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
        }
        #loading-text {
            white-space: pre-line;
            text-align: center;
        }

        .today-circle {
            background-color: var(--accent);
            color: white;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .custom-scrollbar::-webkit-scrollbar { width: 6px; }
        .custom-scrollbar::-webkit-scrollbar-thumb { background-color: #c6d2e6; border-radius: 8px; }
        .custom-scrollbar::-webkit-scrollbar-track { background-color: transparent; }

        .member-card-selected {
            background: var(--accent) !important;
            border-color: #1d4fd0 !important;
            box-shadow: 0 18px 32px -20px rgba(30, 83, 217, 0.7) !important;
        }
        .member-card-selected .text-gray-800,
        .member-card-selected .text-gray-500,
        .member-card-selected .text-gray-400,
        .member-card-selected .text-indigo-600 {
            color: #ffffff !important;
        }
        .member-card-selected .bg-green-50 {
            background-color: rgba(255, 255, 255, 0.2) !important;
        }
        .member-card-selected .text-green-600 {
            color: #ffffff !important;
        }
        .member-card-absent {
            background: #fdf0f3 !important;
            border-color: #efccd5 !important;
        }
        .member-card-absent:not(.member-card-selected) {
            opacity: 0.68;
        }
        .member-absence-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            padding: 3px 8px;
            border-radius: 9999px;
            background: #ef9aad;
            color: #ffffff;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0;
            line-height: 1.1;
            white-space: nowrap;
        }

        #custom-tooltip {
            position: fixed;
            background: rgba(255, 255, 255, 0.96);
            border: 1px solid var(--line);
            border-radius: var(--radius-panel);
            padding: 12px;
            box-shadow: 0 18px 35px -22px rgba(20, 36, 62, 0.46);
            z-index: 10000;
            pointer-events: none;
            display: none;
            min-width: 280px;
            max-width: 420px;
            font-size: 0.85rem;
            overflow-wrap: anywhere;
        }

        body.situation-board-active > footer {
            display: none !important;
        }

        body.situation-board-active main#app-container {
            padding-top: 5.8rem !important;
            padding-bottom: 0 !important;
            min-height: 100vh;
        }

        .situation-board-page {
            width: 100%;
            padding: 0.8rem 1rem 1rem;
        }

        .situation-board-shell {
            height: calc(100vh - 7.6rem);
            min-height: calc(100vh - 7.6rem);
            display: flex;
            flex-direction: column;
            gap: 0.9rem;
        }

        .situation-board-content {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
            flex: 1;
            height: 100%;
            min-height: 0;
        }

        .situation-board-main {
            display: flex;
            flex-direction: column;
            min-width: 0;
            min-height: 0;
        }

        .situation-board-panel {
            display: none;
            min-height: 0;
            overflow-y: auto;
        }

        .situation-board-grid {
            display: grid;
            grid-template-columns: repeat(7, minmax(0, 1fr));
            grid-template-rows: auto repeat(6, minmax(0, 1fr));
            gap: 1px;
            background-color: #d7e0ec;
            border: 1px solid #d7e0ec;
            border-radius: var(--radius-panel);
            overflow: hidden;
            height: 100%;
            width: 100%;
            flex: 1 1 auto;
            align-self: stretch;
        }

        .situation-board-header-cell {
            background-color: #f3f7fd;
            padding: 0.8rem 0.35rem;
            text-align: center;
            font-weight: 800;
            color: #44536b;
            font-size: 1rem;
        }

        .situation-board-cell {
            background: var(--surface);
            padding: 0.55rem;
            cursor: pointer;
            transition: background 0.2s ease, box-shadow 0.2s ease;
            min-height: 0 !important;
        }

        .situation-board-calendar-wrap {
            flex: 1 1 auto;
            min-height: 0;
            display: flex;
            align-items: stretch;
            width: 100%;
        }

        .situation-board-cell:hover {
            background: #eef5ff;
        }

        .situation-board-cell.is-selected {
            background: #e3edff;
            box-shadow: inset 0 0 0 2px rgba(47, 108, 246, 0.34);
        }

        .situation-board-cell.is-today {
            box-shadow: inset 0 0 0 2px rgba(47, 108, 246, 0.18);
        }

        .situation-board-cell.is-outside {
            background: #f7f9fc;
        }

        .situation-board-mini-scroll {
            scrollbar-width: thin;
            scrollbar-color: #c7d4ea transparent;
        }

        .situation-board-mini-scroll::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }

        .situation-board-mini-scroll::-webkit-scrollbar-thumb {
            background: #c7d4ea;
            border-radius: 999px;
        }

        .situation-board-mini-scroll::-webkit-scrollbar-track {
            background: transparent;
        }

        .seat-map-stage {
            position: relative;
            width: 100%;
            aspect-ratio: 1 / 1;
            background: #ffffff;
            border: 1px solid #d7e0ec;
            border-radius: 20px;
            overflow: hidden;
        }

        .seat-map-pdf {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            border: 0;
            background: white;
        }

        .seat-map-overlay {
            position: absolute;
            inset: 0;
            pointer-events: none;
        }

        .seat-map-hotspot {
            position: absolute;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            border: 1px solid transparent;
            padding: 0.2rem;
            min-width: 0;
            pointer-events: none;
            box-shadow: none;
            text-align: center;
        }

        .seat-map-hotspot.is-working {
            background: rgba(220, 252, 231, 0.94);
            border-color: rgba(34, 197, 94, 0.45);
        }

        .seat-map-hotspot.is-annual {
            background: rgba(254, 226, 226, 0.94);
            border-color: rgba(239, 68, 68, 0.42);
        }

        .seat-map-hotspot.is-special {
            background: rgba(255, 241, 242, 0.96);
            border-color: rgba(244, 63, 94, 0.42);
        }

        .seat-map-hotspot.is-sick {
            background: rgba(224, 242, 254, 0.96);
            border-color: rgba(14, 165, 233, 0.42);
        }

        .seat-map-hotspot.is-halfday {
            background: rgba(254, 249, 195, 0.94);
            border-color: rgba(234, 179, 8, 0.4);
        }

        .seat-map-hotspot.is-timeoff-leave {
            background: rgba(207, 250, 254, 0.94);
            border-color: rgba(6, 182, 212, 0.42);
        }

        .seat-map-hotspot.is-timeoff-out {
            background: rgba(237, 233, 254, 0.94);
            border-color: rgba(124, 58, 237, 0.42);
        }

        .seat-map-hotspot.is-long {
            background: rgba(229, 238, 255, 0.96);
            border-color: rgba(47, 108, 246, 0.56);
        }

        .seat-map-hotspot.is-pending {
            background: rgba(241, 245, 249, 0.96);
            border-color: rgba(100, 116, 139, 0.4);
        }

        .seat-map-hotspot-label {
            display: inline-block;
            font-size: 14px;
            font-weight: 800;
            line-height: 1.1;
            padding: 0.08rem 0.2rem;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.96);
            box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.96);
            white-space: nowrap;
        }

        .seat-map-hotspot.is-working .seat-map-hotspot-label { color: #15803d; }
        .seat-map-hotspot.is-annual .seat-map-hotspot-label { color: #dc2626; }
        .seat-map-hotspot.is-special .seat-map-hotspot-label { color: #be123c; }
        .seat-map-hotspot.is-sick .seat-map-hotspot-label { color: #0369a1; }
        .seat-map-hotspot.is-halfday .seat-map-hotspot-label { color: #a16207; }
        .seat-map-hotspot.is-timeoff-leave .seat-map-hotspot-label { color: #0f766e; }
        .seat-map-hotspot.is-timeoff-out .seat-map-hotspot-label { color: #6d28d9; }
        .seat-map-hotspot.is-long .seat-map-hotspot-label { color: #1d4ed8; }
        .seat-map-hotspot.is-pending .seat-map-hotspot-label { color: #64748b; }

        .seat-map-annotation {
            position: absolute;
            pointer-events: none;
            z-index: 2;
        }

        .seat-map-annotation.is-centered {
            transform: translate(-50%, -50%);
        }

        .seat-map-annotation-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 60px;
            padding: 0.25rem 0.65rem;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.94);
            border: 1px solid rgba(47, 108, 246, 0.18);
            color: #2751c6;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: -0.02em;
            box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
        }

        .seat-map-entrance {
            display: flex;
            align-items: center;
        }

.seat-map-door {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.perm-col-w-88 { width: 88px; }
.perm-col-w-96 { width: 96px; }
.perm-col-w-100 { width: 100px; }
.perm-col-w-108 { width: 108px; }
.perm-col-w-112 { width: 112px; }
.perm-col-w-118 { width: 118px; }
.perm-col-w-120 { width: 120px; }
.perm-col-w-132 { width: 132px; }
.perm-col-w-156 { width: 156px; }
.perm-col-w-190 { width: 190px; }

.user-col-w-65 { width: 65px; }
.user-col-w-70 { width: 70px; }
.user-col-w-75 { width: 75px; }
.user-col-w-80 { width: 80px; }
.user-col-w-95 { width: 95px; }
.user-col-w-115 { width: 115px; }
.user-col-w-120 { width: 120px; }
.user-col-w-160 { width: 160px; }
.user-col-w-210 { width: 210px; }

.recent-request-period-grid {
    grid-template-columns: minmax(360px, max-content) minmax(110px, max-content) max-content;
}

.situation-board-cell-h-104 { min-height: 104px; }
.situation-board-cell-h-124 { min-height: 124px; }
.situation-board-cell-h-142 { min-height: 142px; }

.situation-board-grid-rows-4 {
    grid-template-rows: auto repeat(4, minmax(0, 1fr));
}

.situation-board-grid-rows-5 {
    grid-template-rows: auto repeat(5, minmax(0, 1fr));
}

.situation-board-grid-rows-6 {
    grid-template-rows: auto repeat(6, minmax(0, 1fr));
}

        @media (max-width: 768px) {
            body {
                font-size: 14px;
            }

            nav .max-w-7xl {
                padding-left: 0.75rem !important;
                padding-right: 0.75rem !important;
            }

            nav .h-16 {
                height: 64px !important;
                min-height: 64px;
                padding-top: 0 !important;
                padding-bottom: 0 !important;
            }

            nav .text-xl {
                font-size: 1rem !important;
            }

            nav .text-2xl {
                font-size: 1.15rem !important;
            }

            main#app-container {
                padding-top: 5.5rem !important;
                padding-bottom: 1.5rem !important;
            }

            footer {
                padding-top: 1rem !important;
                padding-bottom: 1rem !important;
            }

            #app-container .max-w-7xl,
            #app-container .max-w-6xl,
            #app-container .max-w-2xl {
                padding-left: 0.75rem !important;
                padding-right: 0.75rem !important;
            }

            .calendar-header-cell {
                padding: 8px 4px;
                font-size: 0.72rem;
            }

            .calendar-cell {
                min-height: 104px;
                padding: 2px;
            }

            .today-circle {
                width: 20px;
                height: 20px;
                font-size: 0.72rem;
            }

            .member-absence-badge {
                font-size: 9px;
                padding: 2px 6px;
            }

            #custom-tooltip {
                display: none !important;
            }

            .situation-board-page {
                padding: 0.6rem 0.55rem 0.9rem;
            }

            .situation-board-shell {
                height: auto;
                min-height: calc(100vh - 5.6rem);
                gap: 0.7rem;
            }

            .situation-board-content {
                grid-template-columns: 1fr;
            }

            .situation-board-header-cell {
                padding: 0.55rem 0.2rem;
                font-size: 0.78rem;
            }

            #req-modal > div,
            #pw-modal > div,
            #member-card-modal > div,
            #reject-reason-modal > div {
                width: calc(100vw - 16px) !important;
                max-width: none !important;
                max-height: calc(100vh - 24px);
                overflow-y: auto;
                margin: 8px;
                border-radius: 18px !important;
            }

            /* Phase 4 narrow-screen safety */
            [id$="-modal"]:not(#mobile-calendar-detail-modal) {
                align-items: flex-start !important;
                overflow-y: auto !important;
                padding: 8px !important;
            }

            [id$="-modal"]:not(#mobile-calendar-detail-modal) > div {
                box-sizing: border-box;
                width: calc(100vw - 16px) !important;
                max-width: calc(100vw - 16px) !important;
                max-height: calc(100dvh - 16px) !important;
                margin: 0 !important;
                overflow-y: auto;
                border-radius: var(--radius-dialog) !important;
            }

            #app-container .overflow-x-auto,
            #app-container .overflow-auto,
            [id$="-modal"] .overflow-x-auto,
            [id$="-modal"] .overflow-auto {
                max-width: 100%;
                overscroll-behavior-inline: contain;
            }

            [id$="-modal"] p,
            [id$="-modal"] a,
            [id$="-modal"] label {
                word-break: keep-all;
                overflow-wrap: break-word;
            }
            /* End Phase 4 narrow-screen safety */

            #loading-text {
                font-size: 1rem !important;
                padding-left: 1rem;
                padding-right: 1rem;
            }
        }
